/* ============================================================
   PDF Editor and Scanner — design tokens
   Palette: gold (product primary) + ink + paper
   Accents: indigo (CTA), green (saved/success), slate (neutral)
   Type: Plus Jakarta Sans (display + body)
   ============================================================ */

:root {
  --gold-50:  #FFFBEB;
  --gold-100: #FEF3C7;
  --gold-200: #FDE68A;
  --gold-400: #FBBF24;
  --gold-500: #E5C158;
  --gold-600: #D4A83C;
  --gold-700: #B8922E;
  --gold-800: #92751F;
  --gold-900: #6B5615;

  --ink:      #0F172A;
  --ink-soft: #475569;
  --ink-faint:#94A3B8;

  --paper:    #F8FAFC;
  --paper-2:  #F1F5F9;
  --white:    #FFFFFF;

  --indigo:   #4F46E5;
  --indigo-hover:#4338CA;

  --green:    #10B981;
  --green-100:#D1FAE5;

  --border:       #E2E8F0;
  --border-strong:#CBD5E1;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.14);

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-600);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(229,193,88,0.30);
}
.btn-primary:hover { background: var(--gold-700); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(229,193,88,0.36); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.store-badge:hover { background: #1e293b; transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .badge-copy { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .badge-copy small { font-size: 10.5px; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; }
.store-badge .badge-copy strong { font-size: 16.5px; font-weight: 700; }

.store-badge.disabled {
  background: var(--paper-2);
  color: var(--ink-faint);
  cursor: default;
  pointer-events: none;
}
.store-badge.disabled .badge-copy strong { color: var(--ink-faint); }

/* ---------- Nav ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,250,252,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(248,250,252,0.95); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 18px; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-menu-btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  padding: 152px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-50);
  color: var(--gold-700);
  padding: 7px 16px 7px 8px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  border: 1px solid var(--gold-100);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-100);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 22px;
  max-width: 600px;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--gold-600); }

.hero-sub {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 36px; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.hero-proof .proof-item { display: flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; }

/* ---- Phone mockup ---- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.phone-glow {
  position: absolute;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(229,193,88,0.20) 0%, rgba(229,193,88,0) 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 572px;
  background: var(--ink);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--white) 0%, var(--gold-50) 100%);
  border-radius: 34px;
  overflow: hidden;
  padding: 38px 18px 18px;
}

.screen-header { margin-bottom: 16px; }
.screen-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.screen-sub { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

.mock-pdf {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 12px;
}
.mock-line {
  height: 6px;
  background: var(--paper-2);
  border-radius: 3px;
  margin-bottom: 6px;
}
.mock-line.short { width: 60%; }
.mock-line.med   { width: 80%; }

.mock-toolbar {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.mock-tool {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.mock-tool.active { background: var(--gold-600); color: var(--white); }
.mock-tool.inactive { background: var(--paper-2); color: var(--ink-faint); }

.mock-saved {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--green-100);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 4px;
}
.mock-saved svg { width: 10px; height: 10px; }

.float-chip {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  border: 1px solid var(--border);
}
.float-chip svg { width: 16px; height: 16px; }
.chip-scan { top: 68px; left: -34px; color: var(--gold-600); }
.chip-scan svg { color: var(--gold-600); }
.chip-sign { bottom: 48px; right: -30px; color: var(--indigo); }
.chip-sign svg { color: var(--indigo); }

@media (max-width: 720px) {
  .chip-scan { left: -8px; top: 56px; }
  .chip-sign { right: -8px; }
}

/* ---------- Section shell ---------- */
section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item svg { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; }
.trust-item .t-num { font-weight: 700; font-size: 17px; line-height: 1.1; }
.trust-item .t-label { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.how-wrap {
  background: var(--gold-900);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.how-wrap::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(229,193,88,0.35) 0%, rgba(20,184,166,0) 70%);
  top: -160px; right: -120px;
}
.how-wrap .section-head h2, .how-wrap .section-eyebrow { color: var(--white); }
.how-wrap .section-eyebrow { color: var(--gold-400); }
.how-wrap .section-head p { color: rgba(255,255,255,0.6); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.how-step { padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); }
.how-step .step-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.how-step h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.how-step p { color: rgba(255,255,255,0.62); font-size: 14.5px; }

/* ---------- Autosave spotlight ---------- */
.autosave-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.autosave-visual {
  background: var(--gold-50);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.autosave-lock {
  width: 132px; height: 132px;
  background: var(--white);
  border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.autosave-lock svg { width: 56px; height: 56px; color: var(--gold-600); }
.autosave-visual .grid-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(229,193,88,0.20);
}
.autosave-tag {
  position: absolute;
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-600);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gold-100);
}

.autosave-copy .section-eyebrow { color: var(--gold-600); }
.autosave-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.autosave-list li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.autosave-list svg { width: 19px; height: 19px; color: var(--gold-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
}
.price-card.featured { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-50); }
.price-badge {
  position: absolute; top: -12px; left: 22px;
  background: var(--gold-600); color: var(--white);
  font-size: 11px; font-weight: 700;
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.price-plan { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; margin-bottom: 8px; }
.price-amount { font-size: 26px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.price-amount span { font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.price-note { font-size: 12.5px; color: var(--ink-soft); }
.price-features { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.price-features li { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.price-features svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; }
.pricing-foot { text-align: center; margin-top: 28px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Platforms / download ---------- */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.platform-card .p-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.platform-card .p-icon svg { width: 22px; height: 22px; }
.platform-card h3 { font-size: 19px; margin-bottom: 8px; }
.platform-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 22px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.status-pill.live { background: var(--green-100); color: var(--green); }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: none; border: none;
  font-size: 15.5px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--ink-faint); }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-soft); max-width: 620px; }

/* ---------- Final CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-900) 100%);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 45%);
}
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 32px; position: relative; font-size: 16px; }
.cta-band .hero-ctas { justify-content: center; position: relative; }
.cta-band .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { border-color: var(--white); }

/* ---------- Footer ---------- */
footer.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; color: var(--ink-faint); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 14px; color: var(--ink-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--ink-faint);
}

/* ---------- Legal pages ---------- */
.legal-hero { padding: 148px 0 40px; }
.legal-hero .section-eyebrow { color: var(--gold-600); }
.legal-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.legal-hero .updated { font-size: 13.5px; color: var(--ink-faint); }

.legal-body { padding: 0 0 90px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: flex-start; }
.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.legal-toc a {
  text-decoration: none; font-size: 13.5px; color: var(--ink-faint);
  padding: 7px 0; border-left: 2px solid var(--border); padding-left: 14px;
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc a:hover { color: var(--ink); border-color: var(--border-strong); }

.legal-content { max-width: 700px; }
.dev-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 34px; }
.dev-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.dev-card .dc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-600); margin-bottom: 10px; }
.dev-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; }
.dev-card dt { color: var(--ink-faint); }
.dev-card dd { color: var(--ink); font-weight: 500; word-break: break-word; }

.legal-content h2 { font-size: 20px; font-weight: 700; margin: 40px 0 14px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 20px; color: var(--ink-soft); font-size: 15px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1, .hero-sub { max-width: 100%; }
  .phone-stage { margin-top: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .autosave-section { grid-template-columns: 1fr; }
  .autosave-visual { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .platform-grid { grid-template-columns: 1fr; }
  .how-wrap { padding: 48px 28px; }
  .how-steps { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .dev-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .trust-row { justify-content: flex-start; }
  .cta-band { padding: 48px 26px; }
  .footer-top { flex-direction: column; }
}
