@import url('/assets/css/tokens.css');

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(13% 0.012 42 / 85%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--teal);
  background: linear-gradient(135deg, oklch(66% 0.16 42 / 15%), oklch(56% 0.11 350 / 10%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-bright);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.brand-tag { font-size: 11px; letter-spacing: 0.12em; color: var(--teal); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); }
.nav-mobile-only { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); padding: 8px 10px; cursor: pointer; }

@media (max-width: 980px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 8px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.15s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .nav-mobile-only { display: block; margin-top: 6px; text-align: center; font-family: var(--font-display); font-weight: 700; }
  .nav-mobile-only[href="/app/login"] { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
  .nav-mobile-only[href="/pricing"] { background: var(--gradient-btn); color: var(--on-accent) !important; border-radius: var(--radius-sm); }
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 700px;
  background: radial-gradient(600px circle at 15% 20%, oklch(56% 0.11 350 / 16%), transparent 60%),
              radial-gradient(500px circle at 85% 10%, oklch(66% 0.16 42 / 14%), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
/* Grid items default to min-width:auto, which refuses to shrink below the
   intrinsic content width of anything nested inside — including the
   mock-window's own grids further down. Without this, that nested content
   can force the whole hero (and page) wider than the viewport on narrow
   phones, clipping text instead of wrapping it. */
.hero-grid > * { min-width: 0; }
.hero-copy h1 { font-size: 58px; font-weight: 800; margin: 24px 0 22px; }
.hero-copy p.lead { font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 15px 26px; font-size: 15.5px; }
.hero-check-row { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.hero-check-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero-check-row svg { color: var(--green); flex-shrink: 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .hero-copy h1 { font-size: 32px; }
  .section-head h2 { font-size: 28px; }
  .cta-banner h2 { font-size: 26px; }
  .cta-banner { padding: 48px 24px; }
  .split-copy h3 { font-size: 24px; }
  .page-hero h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  /* Below ~480px the fixed 130px mock-sidebar column leaves too little room
     for the 3-column mock-stats grid beside it; drop the sidebar column so
     mock-main gets the full width instead of being squeezed to ~90px. */
  .mock-row { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
}

/* ---------- Mock dashboard visual (hero) ---------- */
.mock-window {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface), var(--bg-elevated));
  box-shadow: var(--shadow-card), var(--glow-violet);
  padding: 18px;
  position: relative;
}
.mock-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-greeting { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.mock-greeting small { display: block; font-weight: 400; color: var(--text-faint); font-size: 11px; }
.mock-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.mock-row > * { min-width: 0; }
.mock-sidebar { display: flex; flex-direction: column; gap: 6px; }
.mock-sidebar span { font-size: 11.5px; color: var(--text-faint); padding: 7px 10px; border-radius: var(--radius-sm); }
.mock-sidebar span.active { color: var(--text); background: var(--surface-2); }
.mock-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats > * { min-width: 0; }
.mock-stat { overflow: hidden; }
.mock-stat span, .mock-stat b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.mock-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.mock-stat b { display: block; font-size: 14px; font-family: var(--font-display); }
.mock-stat span { font-size: 10px; color: var(--text-faint); }
.mock-chart {
  height: 90px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px;
}
.mock-chart i { flex: 1; background: linear-gradient(180deg, var(--teal), var(--violet)); border-radius: 3px 3px 0 0; opacity: 0.85; }
.mock-list { display: flex; flex-direction: column; gap: 6px; }
.mock-list div { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-faint); border-bottom: 1px solid var(--border); padding-bottom: 5px; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
}
.float-card .ico { width: 34px; height: 34px; border-radius: 9px; background: oklch(68% 0.14 145 / 15%); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-card b { display: block; font-family: var(--font-display); font-size: 14px; }
.float-card span { font-size: 11.5px; color: var(--text-faint); }
.float-1 { top: -6%; left: -8%; }
.float-2 { bottom: -6%; right: -6%; }

@media (max-width: 980px) {
  .float-card { position: static; margin-top: 10px; width: 100%; }
  .float-card div { min-width: 0; }
  .float-card b, .float-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
}

/* ---------- Trust bar ---------- */
.trust-bar { margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; background: var(--bg-elevated); }
.trust-bar .eyebrow { display: block; text-align: center; margin-bottom: 18px; }
.trust-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 12px; }
.trust-row span { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); opacity: 0.9; }

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head .eyebrow { display: inline-block; padding: 6px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); margin-bottom: 18px; }
.section-head h2 { font-size: 38px; font-weight: 800; margin-bottom: 14px; }
.section-head p { font-size: 16px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 28px; }
.feature-card.highlight { background: linear-gradient(160deg, oklch(66% 0.16 42 / 8%), var(--surface)); border-color: oklch(66% 0.16 42 / 35%); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--violet)); display: flex; align-items: center; justify-content: center; color: var(--on-accent); margin-bottom: 18px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; }

.showcase { margin-top: 20px; padding: 40px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.showcase .feature-icon { margin-bottom: 22px; }
.showcase h3 { font-size: 24px; margin-bottom: 12px; }
.showcase p { font-size: 15px; }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .mock-analytics .mock-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Analytics dashboard mockup (showcase) */
.mock-analytics { padding: 16px; border-radius: var(--radius-lg); }
.mock-analytics .mock-topbar b { font-size: 13px; }
.mock-analytics .mock-stats { grid-template-columns: repeat(4, 1fr); }
.mock-donut { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(var(--teal) 0 45%, var(--blue) 45% 68%, var(--violet) 68% 84%, var(--surface-2) 84% 100%); position: relative; flex-shrink: 0; }
.mock-donut::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); }
.mock-two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 8px; }
.mock-heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; margin-top: 8px; }
.mock-heat i { aspect-ratio: 1; border-radius: 2px; background: var(--surface-2); }

/* ---------- Benefit grid (why) ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.benefit-card { padding: 26px; }
.benefit-icon { width: 44px; height: 44px; border-radius: 11px; background: oklch(68% 0.14 145 / 12%); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-card h3 { font-size: 17px; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; }
@media (max-width: 980px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .benefit-grid { grid-template-columns: 1fr; } }

.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.split-row.reverse .split-visual { order: 2; }
.split-visual .card { padding: 16px; }
.split-copy .eyebrow { display: inline-block; padding: 6px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); margin-bottom: 18px; }
.split-copy h3 { font-size: 30px; margin-bottom: 16px; }
.split-copy p.lead { font-size: 15.5px; margin-bottom: 22px; }
.split-copy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.split-copy li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.split-copy li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.split-copy li b { color: var(--text); }
@media (max-width: 980px) {
  .split-row, .split-row.reverse .split-visual { grid-template-columns: 1fr; order: initial; }
  .split-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mock-kanban { grid-template-columns: 1fr; }
  .mock-files { grid-template-columns: repeat(2, 1fr); }
}

/* Kanban mock */
.mock-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kanban > * { min-width: 0; }
.mock-kanban h5 { font-size: 11.5px; color: var(--text-faint); margin: 0 0 8px; display: flex; justify-content: space-between; }
.mock-kanban .col { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px; }
.mock-kanban .task { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 8px; margin-bottom: 6px; font-size: 10.5px; }
.mock-kanban .task b { display: block; font-size: 11px; margin-bottom: 3px; }
.mock-kanban .task span { color: var(--text-faint); }

/* File manager mock */
.mock-files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-files > * { min-width: 0; }
.mock-file { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; }
.mock-file .tag { display: inline-block; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-bottom: 8px; }
.mock-file b { display: block; font-size: 10.5px; margin-bottom: 3px; }
.mock-file span { font-size: 9.5px; color: var(--text-faint); }
.tag-pdf { background: oklch(63% 0.2 25 / 18%); color: var(--red); }
.tag-docx { background: oklch(60% 0.13 65 / 18%); color: oklch(68% 0.13 65); }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 56px; }
.step-card { padding: 22px 20px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--green); margin-bottom: 10px; }
.step-card h4 { font-size: 15px; margin-bottom: 6px; }
.step-card p { font-size: 13px; }
@media (max-width: 980px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr 1fr; } }

.cta-banner {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  padding: 64px 40px;
  text-align: center;
  background: radial-gradient(600px circle at 50% 0%, oklch(66% 0.16 42 / 12%), transparent 60%), var(--bg-elevated);
}
.cta-banner .eyebrow { display: inline-block; padding: 6px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); margin-bottom: 20px; }
.cta-banner h2 { font-size: 36px; margin-bottom: 16px; }
.cta-banner p { max-width: 560px; margin: 0 auto 30px; }
.cta-banner .hero-ctas { justify-content: center; }

/* ---------- Testimonials ---------- */
.testimonial-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.testimonial-card { padding: 46px; text-align: center; position: relative; }
.quote-mark { color: var(--teal); font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.stars { color: var(--amber); letter-spacing: 3px; margin-bottom: 18px; }
.testimonial-text { font-size: 20px; color: var(--text); font-weight: 500; line-height: 1.5; margin-bottom: 26px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--violet)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--on-accent); }
.testimonial-author b { display: block; font-size: 14.5px; }
.testimonial-author span { font-size: 13px; color: var(--green); }
.t-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.t-arrow.prev { left: -60px; }
.t-arrow.next { right: -60px; }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.t-dots span { width: 26px; height: 5px; border-radius: 4px; background: var(--surface-2); cursor: pointer; }
.t-dots span.active { background: var(--gradient-brand); }
@media (max-width: 980px) {
  .t-arrow.prev { left: 0; }
  .t-arrow.next { right: 0; }
  .testimonial-card { padding: 40px 24px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { font-size: 14px; margin: 16px 0 20px; max-width: 340px; }
.footer-divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.footer-contact p, .footer-contact a { font-size: 13.5px; display: block; margin-bottom: 2px; overflow-wrap: anywhere; }
.footer-contact b { font-size: 13.5px; }
.footer-col h5 { color: var(--teal); font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-faint); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Generic inner page hero ---------- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero .eyebrow { display: inline-block; padding: 6px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); margin-bottom: 18px; }
.page-hero h1 { font-size: 44px; margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 16px; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text); }
.prose .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: 30px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--teal); background: linear-gradient(160deg, oklch(66% 0.16 42 / 8%), var(--surface)); position: relative; }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient-btn); color: var(--on-accent); font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: var(--radius-pill); }
.price-card h3 { font-size: 18px; margin-bottom: 14px; }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: 38px; margin-bottom: 4px; }
.price-amount span { font-size: 15px; color: var(--text-faint); font-weight: 600; }
.price-period { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { font-size: 13.5px; color: var(--text-muted); display: flex; gap: 8px; }
.price-card li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { width: 100%; justify-content: center; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-faq-note { text-align: center; margin-top: 40px; font-size: 14px; color: var(--text-faint); }

/* Embedded checkout modal */
.checkout-overlay { position: fixed; inset: 0; background: oklch(13% 0.012 42 / 80%); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.checkout-overlay.open { display: flex; }
.checkout-modal { background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; position: relative; padding: 8px; }
.checkout-close { position: absolute; top: 10px; right: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 50%; width: 32px; height: 32px; color: var(--text); cursor: pointer; z-index: 2; }
#checkout-mount { min-height: 420px; padding: 16px; }
.checkout-status { padding: 40px 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ---------- Forms ---------- */
.form-card { padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--teal); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); }
.form-check input { width: auto; margin-top: 3px; }
.form-note { font-size: 13px; margin-top: 14px; min-height: 18px; }
.form-note.error { color: var(--red); }
.form-note.success { color: var(--green); }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info .card { padding: 26px; margin-bottom: 16px; }
.contact-info .ico { width: 40px; height: 40px; border-radius: 10px; background: oklch(66% 0.16 42 / 14%); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.contact-info h4 { font-size: 15px; margin-bottom: 6px; }
.contact-info p, .contact-info a { font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.faq-q svg { transition: transform 0.2s ease; flex-shrink: 0; color: var(--teal); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 24px 20px; font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- Success page ---------- */
.success-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 100px 0; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: oklch(68% 0.14 145 / 15%); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; }
.success-details { text-align: left; margin: 30px 0; padding: 22px; }
.success-details div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.success-details div:last-child { border-bottom: none; }
.success-details span:first-child { color: var(--text-faint); }
.success-details span:last-child { font-weight: 600; }

/* ---------- AOS overrides ---------- */
/* AOS ships its own inline transition/transform; we only tune timing/easing
   here so it matches the rest of the site's motion language, and hard-disable
   it under reduced motion (AOS's own setting also does this, but we don't
   rely solely on JS config). */
[data-aos] {
  transition-property: transform, opacity !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  display: none;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out-quart), opacity 0.3s var(--ease-out-quart);
}
.cookie-consent.show { display: block; }
.cookie-consent.in { transform: translateY(0); opacity: 1; }
.cookie-consent h3 { font-size: 15px; margin-bottom: 8px; }
.cookie-consent p { font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.cookie-consent .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent .cookie-actions .btn { padding: 9px 16px; font-size: 13px; }

.cookie-prefs-panel { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cookie-prefs-panel.show { display: block; }
.cookie-pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cookie-pref-row:last-child { border-bottom: none; padding-bottom: 14px; }
.cookie-pref-row .cookie-pref-copy .label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.cookie-pref-row .cookie-pref-copy .desc { font-size: 12px; color: var(--text-faint); margin-top: 2px; line-height: 1.5; }

.cookie-toggle { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle .track {
  position: absolute; inset: 0; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.cookie-toggle .track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--text-faint); transition: transform 0.15s ease, background 0.15s ease;
}
.cookie-toggle input:checked + .track { background: oklch(66% 0.16 42 / 20%); border-color: var(--teal); }
.cookie-toggle input:checked + .track::after { transform: translateX(16px); background: var(--teal); }
.cookie-toggle input:disabled + .track { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 640px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-consent .cookie-actions { flex-direction: column; }
  .cookie-consent .cookie-actions .btn { width: 100%; justify-content: center; }
}
