/* ==========================================================================
   PaperGen AI — landing page styles
   ========================================================================== */

:root {
  --teal-dark: #003E40;
  --teal: #1A979A;
  --teal-light: #E6F6F6;
  --teal-lighter: #F4FBFB;
  --accent: #FF8A3D;
  --accent-dark: #E06B1F;

  --ink: #0F172A;
  --ink-soft: #475569;
  --muted: #64748B;
  --border: #E2E8F0;

  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;

  --success: #16A34A;
  --white: #FFFFFF;

  --gradient-brand: linear-gradient(135deg, #003E40 0%, #1A979A 100%);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 8px 24px rgba(0, 62, 64, .10);
  --shadow-lg: 0 24px 56px rgba(0, 62, 64, .16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1200px;
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1F5F9;
    --ink-soft: #CBD5E1;
    --muted: #94A3B8;
    --border: #1E3A3A;
    --bg: #04191A;
    --bg-soft: #062526;
    --bg-card: #0A2C2D;
    --teal-light: #0C3335;
    --teal-lighter: #072829;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, .45);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient-brand); z-index: 1100;
  transition: width .12s ease-out;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-dark); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 10000;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 62, 64, .35);
  position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 62, 64, .45); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: rgba(0, 62, 64, .28);
}
.btn-outline:hover { border-color: var(--teal); background: var(--teal-lighter); }

.btn-outline-inverse { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-inverse:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-ghost { color: var(--ink-soft); padding: 10px 14px; font-weight: 600; }
.btn-ghost:hover { color: var(--teal-dark); }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.nav-wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: var(--teal-dark); }
.brand-accent { color: var(--accent); }

.nav ul { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  position: relative; padding: 6px 0;
}
.nav a:hover { color: var(--teal-dark); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gradient-brand); border-radius: 2px;
  transition: right .22s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--teal-dark); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-cta { display: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card);
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; overflow: hidden; position: relative; }
.hero > .container { position: relative; z-index: 1; }
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-1 { width: 440px; height: 440px; background: var(--teal); opacity: .28; top: -140px; left: -100px; animation: glowFloat1 15s ease-in-out infinite; }
.glow-2 { width: 380px; height: 380px; background: var(--accent); opacity: .16; bottom: -160px; right: -80px; animation: glowFloat2 17s ease-in-out infinite; }
@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 36px) scale(1.1); }
}
@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, -30px) scale(1.06); }
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .6px;
  text-transform: uppercase; color: var(--teal);
  background: var(--teal-light); padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12; letter-spacing: -1px; font-weight: 900; color: var(--ink);
}
.hero-sub {
  margin-top: 20px; font-size: 17.5px; color: var(--ink-soft); max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.hero-trust li::before { content: '✓ '; color: var(--success); font-weight: 800; }

/* Hero visual mock */
.hero-visual {
  position: relative; min-height: 420px; padding-left: 176px;
  transition: transform .25s ease-out;
  will-change: transform;
}
.mock-chat {
  background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border); max-width: 380px;
}
.mock-chat-header {
  background: var(--gradient-brand); color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px;
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.7); }
.mock-chat-body { padding: 18px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; }
.mock-bubble {
  padding: 11px 15px; border-radius: 14px; font-size: 13px; max-width: 84%; line-height: 1.5;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.mock-bubble.bot { background: var(--bg-card); color: var(--ink); border-bottom-left-radius: 4px; }
.mock-bubble.user { background: var(--gradient-brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.hero-visual.in-view .mock-bubble:nth-child(1) { opacity: 1; transform: none; transition-delay: .3s; }
.hero-visual.in-view .mock-bubble:nth-child(2) { opacity: 1; transform: none; transition-delay: .75s; }
.hero-visual.in-view .mock-bubble:nth-child(3) { opacity: 1; transform: none; transition-delay: 1.15s; }

.mock-progress {
  height: 6px; background: rgba(0,62,64,.12); border-radius: 99px; overflow: hidden;
  opacity: 0; transition: opacity .4s ease .5s;
}
.hero-visual.in-view .mock-progress { opacity: 1; transition-delay: 1.5s; }
.mock-progress span { display: block; width: 70%; height: 100%; background: var(--gradient-brand); animation: growbar 2.4s ease-in-out infinite alternate; }
@keyframes growbar { from { width: 35%; } to { width: 85%; } }

.mock-card {
  position: absolute; background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); border: 1px solid var(--border); padding: 14px 16px; z-index: 2;
  opacity: 0; transition: opacity .5s ease;
}
.hero-visual.in-view .mock-card-1 { opacity: 1; transition-delay: .2s; }
.hero-visual.in-view .mock-card-2 { opacity: 1; transition-delay: 1.6s; }
.mock-card-1 {
  top: 28px; left: 0; width: 160px; display: flex; flex-direction: column; gap: 8px;
  animation: cardFloat 6s ease-in-out infinite;
}
.mock-card-2 {
  bottom: 26px; left: 6px; font-weight: 700; font-size: 13px; color: var(--teal-dark);
  display: flex; align-items: center; gap: 8px;
  animation: cardFloat 5.5s ease-in-out 1s infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.mock-line { height: 8px; border-radius: 4px; background: var(--border); }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-90 { width: 90%; }

/* ---------- Trust strip (marquee) ---------- */
.strip { background: var(--teal-dark); overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-row {
  display: flex; flex-shrink: 0; align-items: center; gap: 34px;
  padding: 18px 34px 18px 0;
  color: rgba(255,255,255,.88); font-weight: 600; font-size: 13.5px; letter-spacing: .2px;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section shared ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.6px; margin-top: 6px;
}
.section-sub { margin-top: 14px; color: var(--ink-soft); font-size: 16px; }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature cards ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(26,151,154,.35); }
.feature-card h3 { font-size: 17.5px; font-weight: 700; margin: 16px 0 8px; }
.feature-card p { color: var(--ink-soft); font-size: 14.5px; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--teal-light); color: var(--teal-dark);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.icon-badge svg { width: 24px; height: 24px; }
.feature-card:hover .icon-badge {
  transform: translateY(-4px) rotate(-4deg);
  background: var(--gradient-brand); color: #fff;
}

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step;
}
.step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 24px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gradient-brand); color: #fff; font-weight: 800; font-size: 16px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* ---------- Templates ---------- */
.template-card { text-align: left; }
.template-card h3 { font-size: 16.5px; font-weight: 700; margin: 16px 0 6px; }
.template-card p { color: var(--ink-soft); font-size: 13.5px; }

.template-thumb {
  height: 190px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-card); box-shadow: var(--shadow-sm);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.template-thumb::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,151,154,.06), transparent 40%);
}
.tpl-title-line { height: 10px; width: 55%; border-radius: 4px; background: var(--teal-dark); opacity: .85; }
.tpl-line { height: 6px; border-radius: 4px; background: var(--border); }
.tpl-badge { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: absolute; top: 16px; right: 16px; }
.tpl-table { height: 22px; border-radius: 5px; background: var(--teal-light); border: 1px solid var(--border); }
.tpl-mcq-row { display: flex; gap: 8px; }
.tpl-mcq-row i {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--teal);
  display: inline-block;
}
.tpl-mcq-row i:first-child { background: var(--teal); }
.tpl-line-marks { display: flex; align-items: center; gap: 8px; }
.tpl-line-marks em { flex: 1; height: 6px; border-radius: 4px; background: var(--border); font-style: normal; }
.tpl-line-marks b {
  font-size: 10px; font-weight: 800; color: var(--teal-dark); background: var(--teal-light);
  padding: 2px 7px; border-radius: 99px;
}

/* ---------- Stats ---------- */
.stats { padding: 60px 0; background: var(--teal-lighter); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat-num { display: block; font-size: 42px; font-weight: 900; color: var(--teal-dark); letter-spacing: -1px; }
.stat-label { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; margin: 0; box-shadow: var(--shadow-sm);
}
.quote-card p { font-size: 15.5px; color: var(--ink); line-height: 1.65; }
.quote-card p::before { content: '\201C'; color: var(--teal); font-weight: 800; }
.quote-card cite {
  display: block; margin-top: 16px; font-style: normal; font-weight: 700;
  font-size: 13px; color: var(--muted);
}

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 26px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-featured {
  border-color: var(--teal); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--teal-lighter), var(--bg-card) 40%);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 5px 14px; border-radius: 99px;
  animation: badgePulse 2.6s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(255,138,61,.4); }
  50% { box-shadow: 0 8px 24px rgba(255,138,61,.7); }
}
.price-card h3 { font-size: 18px; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; font-size: 15px; color: var(--muted); font-weight: 600; }
.price span { font-size: 34px; font-weight: 900; color: var(--ink); letter-spacing: -.5px; }
.price-desc { margin-top: 6px; color: var(--ink-soft); font-size: 13.5px; }
.price-features { margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-features li { font-size: 14px; color: var(--ink-soft); padding-left: 24px; position: relative; }
.price-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800;
}

/* ---------- Accordion / FAQ ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 20px 4px; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.accordion-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
  transition: transform .25s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.accordion-panel p { padding: 0 4px 20px; color: var(--ink-soft); font-size: 14.5px; max-width: 680px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--gradient-brand); padding: 88px 0; }
.cta-inner { text-align: center; color: #fff; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.6px; }
.cta-inner p { margin-top: 14px; color: rgba(255,255,255,.86); font-size: 16px; }
.cta-inner .hero-ctas { justify-content: center; margin-top: 30px; }
.cta-banner .btn-primary { background: #fff; color: var(--teal-dark); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.cta-banner .btn-primary:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.62); max-width: 280px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-accent { color: var(--accent); }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.72); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--gradient-brand); color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 25, 26, .55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; padding: 34px 30px; position: relative;
  transform: translateY(16px) scale(.97); transition: transform .22s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink-soft);
  font-size: 18px; line-height: 1;
}
.modal-close:hover { background: var(--teal-light); color: var(--teal-dark); }
.modal h3 { font-size: 20px; font-weight: 800; padding-right: 30px; }
.modal-sub { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
#planForm { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
#planForm label { font-size: 13px; font-weight: 700; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
#planForm .optional { font-weight: 500; color: var(--muted); }
#planForm input {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 14.5px;
  color: var(--ink); background: var(--bg-soft); outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#planForm input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,151,154,.15); }
#planForm .btn { margin-top: 4px; }
.form-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 2px; }

.modal-success { text-align: center; padding-top: 6px; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800;
  margin: 0 auto 16px;
}
.modal-success h3 { text-align: center; }
.modal-success p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }
.modal-success .btn { margin-top: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Cascade grid/step children in on scroll instead of popping in together */
.grid > .reveal:nth-child(1), .steps > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 80ms; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 160ms; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: 240ms; }
.grid > .reveal:nth-child(5) { transition-delay: 320ms; }
.grid > .reveal:nth-child(6) { transition-delay: 400ms; }
.grid > .reveal:nth-child(7) { transition-delay: 480ms; }
.grid > .reveal:nth-child(8) { transition-delay: 560ms; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; margin-top: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav.mobile-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: 10px 24px 20px;
  }
  .nav.mobile-open ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav.mobile-open a { display: block; padding: 12px 0; width: 100%; }
  .nav.mobile-open .mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; width: 100%; }
  .nav.mobile-open .mobile-cta .btn { width: 100%; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .mock-card-1 { display: none; }
  .hero-visual { padding-left: 0; }
}
