/* Nexstage marketing site — single shared stylesheet for every page.
   Landing-page (body.home) vs legal-doc (body.legal) differences are scoped where
   they genuinely diverge; everything else is shared. */

/* ── Fonts: Figtree, self-hosted (latin woff2), same typeface as the app ── */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/figtree-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/figtree-latin-800-normal.woff2') format('woff2'); }

/* ── Tokens ── */
:root {
  --indigo:        #4F46E5;
  --indigo-dark:   #4338CA;
  --indigo-light:  #EEF2FF;
  --indigo-mid:    #C7D2FE;
  --zinc-50:       #FAFAFA;
  --zinc-100:      #F4F4F5;
  --zinc-200:      #E4E4E7;
  --zinc-300:      #D4D4D8;
  --zinc-400:      #A1A1AA;
  --zinc-500:      #71717A;
  --zinc-600:      #52525B;
  --zinc-700:      #3F3F46;
  --zinc-800:      #27272A;
  --zinc-900:      #18181B;
  --white:         #FFFFFF;
  --emerald:       #059669;
  --emerald-light: #ECFDF5;
  --rose:          #E11D48;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--zinc-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.legal { line-height: 1.7; }            /* legal prose reads better looser */

a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }
body.home a { text-decoration: none; }      /* landing links are not underlined by default */
body.home a:hover { text-decoration: underline; color: var(--indigo); }

/* ── Nav (shared) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--zinc-200);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--zinc-900);
  text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  color: var(--zinc-600);
}
.nav-links a { color: var(--zinc-600); }
.nav-links a:hover { color: var(--zinc-900); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-login { font-size: 0.9375rem; font-weight: 600; color: var(--zinc-700); }
.nav-login:hover { color: var(--zinc-900); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--indigo); color: var(--white); border: none; }
.btn-primary:hover { background: var(--indigo-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--indigo); border: 1.5px solid var(--indigo); }
.btn-outline:hover { background: var(--indigo-light); text-decoration: none; }
.btn-white { background: var(--white); color: var(--indigo-dark); border: none; padding: 0.8rem 2rem; font-size: 1rem; }
.btn-white:hover { background: var(--indigo-light); text-decoration: none; }

/* ── Hero ── */
.hero { padding: 96px 2rem 72px; text-align: center; background: linear-gradient(180deg, #F5F3FF 0%, var(--white) 100%); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--indigo-light);
  color: var(--indigo-dark);
  border: 1px solid var(--indigo-mid);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--zinc-900);
  max-width: 820px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--indigo); }
.hero p { font-size: 1.125rem; color: var(--zinc-600); max-width: 600px; margin: 0 auto 2.25rem; line-height: 1.7; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn { padding: 0.75rem 1.85rem; font-size: 1rem; }
.hero-note { margin-top: 2.25rem; font-size: 0.875rem; color: var(--zinc-500); }
.hero-note strong { color: var(--zinc-700); font-weight: 600; }

/* ── Integrations strip ── */
.integrations { padding: 44px 2rem; text-align: center; border-top: 1px solid var(--zinc-100); border-bottom: 1px solid var(--zinc-100); }
.integrations > p { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--zinc-500); margin-bottom: 1.5rem; }
.integration-logos { display: flex; align-items: center; justify-content: center; gap: 2.25rem; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.integration-logo { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--zinc-600); }
.integrations p.integrations-note { margin: 1.5rem auto 0; max-width: 580px; font-size: 0.875rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--zinc-500); }

/* ── Sections ── */
.section { padding: 80px 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--indigo); margin-bottom: 0.75rem; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--zinc-900); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; max-width: 640px; }
.section > .section-inner > .section-lead { font-size: 1.0625rem; color: var(--zinc-600); max-width: 600px; line-height: 1.7; margin-bottom: 3rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--zinc-50); border: 1px solid var(--zinc-200); border-radius: 12px; padding: 1.5rem; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--indigo-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon svg { color: var(--indigo); }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--zinc-900); margin-bottom: 0.375rem; }
.feature-card p { font-size: 0.9375rem; color: var(--zinc-600); line-height: 1.6; }
.feature-tag { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--indigo-dark); background: var(--indigo-light); border-radius: 6px; padding: 2px 8px; }

/* ── How it works ── */
.steps { background: var(--zinc-50); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--indigo); color: var(--white); font-size: 0.875rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { font-size: 1rem; font-weight: 700; color: var(--zinc-900); margin-bottom: 0.375rem; }
.step p { font-size: 0.9375rem; color: var(--zinc-600); line-height: 1.6; }

/* ── Pricing + calculator ── */
.calc { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--white); border: 1.5px solid var(--indigo-mid); border-radius: 14px; padding: 1.5rem 1.75rem; margin-bottom: 2rem; box-shadow: 0 12px 40px -18px rgba(79,70,229,0.25); }
.calc-field { flex: 1; min-width: 220px; }
.calc-field label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--zinc-500); margin-bottom: 0.5rem; }
.calc-input { display: flex; align-items: center; border: 1px solid var(--zinc-300); border-radius: 8px; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.calc-input:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-light); }
.calc-input span { padding: 0 0.4rem 0 0.85rem; color: var(--zinc-500); font-weight: 600; font-size: 1.0625rem; }
.calc-input input { border: none; outline: none; padding: 0.7rem 0.85rem 0.7rem 0; font-size: 1.125rem; font-weight: 600; color: var(--zinc-900); width: 100%; background: transparent; }
.calc-arrow { color: var(--indigo); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.calc-result { text-align: right; min-width: 190px; }
.calc-price { font-size: 1.875rem; font-weight: 800; color: var(--indigo); letter-spacing: -0.01em; line-height: 1.1; }
.calc-band { font-size: 0.875rem; color: var(--zinc-500); margin-top: 0.25rem; }

.pricing-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; }
.pricing-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--zinc-200); border-radius: 12px; overflow: hidden; }
.pricing-table th, .pricing-table td { text-align: left; padding: 0.8rem 1.25rem; font-size: 0.9375rem; }
.pricing-table thead th { background: var(--zinc-50); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--zinc-500); font-weight: 700; }
.pricing-table tbody tr { border-top: 1px solid var(--zinc-100); }
.pricing-table tbody td:first-child { color: var(--zinc-700); }
.pricing-table tbody td:last-child { font-weight: 700; color: var(--zinc-900); text-align: right; }
.pricing-aside { background: var(--indigo-light); border: 1px solid var(--indigo-mid); border-radius: 12px; padding: 1.75rem 1.5rem; }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.5rem; }
.pricing-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9375rem; color: var(--zinc-700); }
.pricing-list svg { flex-shrink: 0; color: var(--emerald); margin-top: 3px; }
.pricing-aside .btn { display: block; width: 100%; text-align: center; padding: 0.8rem; font-size: 1rem; }
.pricing-fine { margin-top: 1rem; font-size: 0.8125rem; color: var(--zinc-600); line-height: 1.6; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem 3rem; max-width: 920px; }
.faq-item h3 { font-size: 1rem; font-weight: 700; color: var(--zinc-900); margin-bottom: 0.4rem; }
.faq-item p { font-size: 0.9375rem; color: var(--zinc-600); line-height: 1.65; }

/* ── CTA banner ── */
.cta-banner { padding: 80px 2rem; text-align: center; background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%); color: var(--white); }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.cta-banner p { font-size: 1.0625rem; opacity: 0.9; max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-banner .cta-fine { margin-top: 1rem; font-size: 0.8125rem; opacity: 0.8; }

/* ── Legal docs (privacy / terms / data-deletion) ── */
.page-header { background: var(--zinc-50); border-bottom: 1px solid var(--zinc-200); padding: 48px 2rem 40px; }
.page-header-inner { max-width: 760px; margin: 0 auto; }
.page-header h1 { font-size: 1.875rem; font-weight: 800; color: var(--zinc-900); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.page-header .meta { font-size: 0.9375rem; color: var(--zinc-500); }
.content-wrap { max-width: 760px; margin: 0 auto; padding: 48px 2rem 80px; }

.toc { background: var(--zinc-50); border: 1px solid var(--zinc-200); border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.toc h2 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--zinc-500); margin-bottom: 0.75rem; }
.toc ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.toc li { font-size: 0.9375rem; }
.toc a { color: var(--indigo); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.policy-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--zinc-100); }
.policy-section:last-child { border-bottom: none; }
.policy-section h2 { font-size: 1.1875rem; font-weight: 700; color: var(--zinc-900); margin-bottom: 1rem; padding-top: 0.25rem; }
.policy-section h3 { font-size: 1rem; font-weight: 700; color: var(--zinc-800); margin: 1.25rem 0 0.5rem; }
.policy-section p { font-size: 0.9375rem; color: var(--zinc-700); margin-bottom: 0.75rem; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul, .policy-section ol { padding-left: 1.5rem; margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.policy-section li { font-size: 0.9375rem; color: var(--zinc-700); }

.highlight-box { background: var(--indigo-light); border-left: 3px solid var(--indigo); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1rem 0 2.5rem; font-size: 0.9375rem; color: var(--zinc-700); }
.required-statement { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0; font-size: 0.9375rem; color: var(--zinc-700); font-style: italic; }
.steps-box { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1rem 0; }
.steps-box h3 { margin-top: 0; }
.steps-box ol { margin-bottom: 0; }
code { background: var(--zinc-100); border-radius: 4px; padding: 1px 6px; font-size: 0.85em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--zinc-800); }

/* ── Footer (shared base; layout differs landing vs legal) ── */
footer { border-top: 1px solid var(--zinc-200); }
.footer-inner { max-width: 1100px; margin: 0 auto; }

/* Landing footer: multi-column */
body.home footer { padding: 56px 2rem 40px; background: var(--zinc-50); }
body.home .footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--zinc-900); font-size: 1rem; margin-bottom: 0.75rem; }
.footer-about { font-size: 0.875rem; color: var(--zinc-500); max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--zinc-500); font-weight: 700; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.9375rem; color: var(--zinc-600); }
.footer-col a:hover { color: var(--zinc-900); text-decoration: none; }
.footer-bottom { max-width: 1100px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--zinc-200); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8125rem; color: var(--zinc-500); }

/* Legal footer: single row */
body.legal footer { padding: 32px 2rem; }
body.legal .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-left { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--zinc-900); font-size: 0.9375rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer-links a { color: var(--zinc-500); text-decoration: none; }
.footer-links a:hover { color: var(--zinc-800); }
.footer-copy { font-size: 0.875rem; color: var(--zinc-500); }

/* ── Responsive ── */
@media (max-width: 820px) {
  body.home .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body.home .nav-links { display: none; }
  body.home .hero { padding: 64px 1.25rem 48px; }
  body.home .section { padding: 56px 1.25rem; }
  body.home .footer-inner { grid-template-columns: 1fr 1fr; }
  body.home .footer-bottom { flex-direction: column; text-align: center; }
  body.legal .page-header { padding: 32px 1.25rem 28px; }
  body.legal .content-wrap { padding: 32px 1.25rem 64px; }
  body.legal .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 720px) { .pricing-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .calc-arrow { display: none; } .calc-result { text-align: left; min-width: 0; } }
