/* ============================================================
   Nisan — global stylesheet
   ============================================================ */

:root {
  --ink: #0e1320;
  --ink-soft: #46506b;
  --ink-faint: #8a92ab;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #e8e6df;
  --accent: #2f6df6;
  --accent-dark: #1d4fd7;
  --accent-soft: #e8efff;
  --spring: #2fb573;
  --spring-soft: #e3f6ec;
  --coral: #ff6b5e;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(14,19,32,.05), 0 4px 16px rgba(14,19,32,.05);
  --shadow-lg: 0 8px 40px rgba(14,19,32,.10);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: -.02em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--spring) 100%);
  display: grid; place-items: center;
  color: #fff; font-size: 17px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c2436; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(47,109,246,.30); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--surface); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

.nav-signin { display: none; } /* mobile-only Sign in, shown in the open menu below 1000px */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero (home) ---------- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -300px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,109,246,.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -250px; left: -150px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,181,115,.07) 0%, transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--spring-soft); color: #1d7a4c;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spring); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(110deg, var(--accent) 10%, var(--spring) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.tag.green { background: var(--spring-soft); color: #1d7a4c; }
.tag.warm { background: #fff0ee; color: #d04437; }
.tag.more { background: transparent; border: 1px dashed var(--line); color: var(--ink-faint); }

/* ---------- Logos ---------- */
.logos { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.logos p { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 28px; }
.logo-row { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; }
.logo-row span {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: #b6bccd; letter-spacing: -.01em; transition: color .25s;
}
.logo-row span:hover { color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.15; margin-bottom: 16px;
}
.section-head p { font-size: 17px; color: var(--ink-soft); }
.h2-like { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 18px; }

/* How it works — steps with connector */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 50px; left: 12%; right: 12%;
  border-top: 2px dashed var(--line); z-index: 0;
}
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px 32px; position: relative; z-index: 1;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d8e3ff; }
.step .step-num {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: #fff; background: var(--accent);
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(47,109,246,.35);
}
.step:nth-child(2) .step-num { background: var(--ink); box-shadow: 0 4px 14px rgba(14,19,32,.25); }
.step:nth-child(3) .step-num { background: var(--spring); box-shadow: 0 4px 14px rgba(47,181,115,.35); }
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.step .step-meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px;
}
.step .step-meta b { color: var(--ink); font-weight: 700; }

/* Features split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 26px; margin-top: 28px; }
.feature { display: flex; gap: 18px; }
.feature .f-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); display: grid; place-items: center; font-size: 19px;
}
.feature:nth-child(2) .f-icon { background: var(--spring-soft); }
.feature:nth-child(3) .f-icon { background: #fff0ee; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; letter-spacing: -.01em; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }


/* FAQ / accordion */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 12px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: #d8e3ff; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-q .chev {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; transition: transform .25s;
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p, .faq-a div { padding: 0 24px 22px; font-size: 15px; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  margin: 0 24px;
  background: linear-gradient(120deg, var(--accent) 0%, #2456c9 55%, var(--spring) 130%);
  border-radius: 32px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.14), transparent 50%);
}
.cta-band .container { padding: 88px 24px; position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 16px; }
.cta-band p { font-size: 17px; opacity: .92; max-width: 540px; margin: 0 auto 36px; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.18); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer .logo { margin-bottom: 16px; }
.footer .f-desc { font-size: 14px; color: var(--ink-faint); max-width: 280px; }
.footer h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.footer ul a:hover { color: var(--ink); }
.footer-legal {
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
  display: flex; flex-direction: column; gap: 14px;
}
.footer-legal-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal .company { line-height: 1.7; }

/* Reveal on scroll */
.reveal { transition: opacity .6s ease, transform .6s ease; }
/* The hiding applies ONLY when JS is on (html.js). WHY: if .reveal were
   opacity:0 unconditionally and JS did not run — disabled, failed, or a
   crawler bot — the product cards, steps and CTA would stay invisible
   FOR GOOD. On a marketing site that means showing the search engine an empty
   page. The class is added by the one-line script in <head>; it runs before
   render, so the content does not "show first, then vanish". */
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }
/* Reduced-motion preference: no animation, the content shows directly. */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Subpage head ---------- */
.page-head { padding: 56px 0 8px; }
.crumb { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; }
.crumb a { color: var(--accent); font-weight: 500; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.page-head p { font-size: 16.5px; color: var(--ink-soft); max-width: 620px; }
.page-section { padding: 48px 0 96px; }

/* ---------- Forms (shared) ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,109,246,.12); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a92ab' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { display: none; margin-bottom: 18px; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.form-msg.error { background: #fdeceb; color: #b3261e; border: 1px solid #f5c6c2; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow-lg);
}
.form-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.form-card .sub { font-size: 14px; color: var(--ink-faint); margin-bottom: 28px; }
.success-card { display: none; text-align: center; padding: 48px 24px; }
.success-card .s-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--spring-soft); color: var(--spring);
  display: grid; place-items: center; font-size: 28px;
}
.success-card h2 { font-size: 24px; margin-bottom: 10px; }
.success-card p { font-size: 15px; color: var(--ink-soft); max-width: 380px; margin: 0 auto 28px; }

/* ---------- Apply page ---------- */
.apply-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; padding: 72px 0 96px; align-items: start; }
.apply-intro h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px; }
.apply-intro p.lead { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 32px; }
.perk { display: flex; gap: 14px; margin-bottom: 20px; }
.perk .p-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; font-size: 17px; }
.perk:nth-child(odd) .p-icon { background: var(--spring-soft); }
.perk h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.perk p { font-size: 13.5px; color: var(--ink-soft); }
.vetting-note {
  margin-top: 28px; padding: 16px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
}
.vetting-note b { color: var(--ink); }

/* ---------- Benefit / feature cards (subpages) ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.benefit .b-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--accent-soft); display: grid; place-items: center; font-size: 19px;
}
.benefit:nth-child(even) .b-icon { background: var(--spring-soft); }
.benefit h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.benefit p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: #b8ccff; box-shadow: var(--shadow-lg); }
.price-card .plan { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.price-card .plan-sub { font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }
.price-card .amount { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 2px; }
.price-card .amount span { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.price-card li { font-size: 14px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "✓"; color: var(--spring); font-weight: 700; }
.badge-featured {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Prose (legal & long-form) ---------- */
.prose { max-width: 760px; }
.prose .updated { font-size: 13px; color: var(--ink-faint); margin-bottom: 36px; }
.prose h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 38px 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.prose a { color: var(--accent); font-weight: 500; }
.prose strong { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 24px 130px; }
.notfound .code {
  font-family: var(--font-display); font-size: clamp(72px, 12vw, 120px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(110deg, var(--accent) 10%, var(--spring) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: 28px; margin: 18px 0 10px; letter-spacing: -.02em; }
.notfound p { font-size: 16px; color: var(--ink-soft); max-width: 420px; margin: 0 auto 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-links .nav-signin { display: block; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 20px 24px; gap: 18px;
  }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .benefit-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .apply-wrap { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .steps, .benefit-grid, .price-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .cta-band { margin: 0 12px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 28px 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav-cta .btn { padding: 10px 14px; }
}

/* ---------- Product dropdown (mega-menu) — N-013 ----------
   Its content comes from the config/features.php inventory. On desktop it opens on
   hover AND focus (so keyboard users are not left out); on mobile the mega-menu
   drops to a flat list, because a three-column panel is unreadable on a small screen. */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--ink-soft); background: none; border: none; cursor: pointer;
  padding: 0; transition: color .2s;
}
.nav-drop-btn svg { transition: transform .2s; }
.nav-drop:hover .nav-drop-btn,
.nav-drop:focus-within .nav-drop-btn,
.nav-drop.active .nav-drop-btn { color: var(--ink); }
.nav-drop:hover .nav-drop-btn svg,
.nav-drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }

.nav-mega {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(880px, calc(100vw - 48px));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
/* Invisible bridge: in the gap between the button and the panel the pointer must not
   count as having left the panel — otherwise the menu closes under the user's hand. */
.nav-mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav-drop:hover .nav-mega,
.nav-drop:focus-within .nav-mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-mega-col {
  display: block; padding: 16px; border-radius: 14px; transition: background .18s;
}
.nav-mega-col:hover { background: var(--bg); }
.nav-mega-head { display: flex; gap: 12px; align-items: flex-start; }
.nav-mega-icon {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 18px; background: var(--bg);
}
.nav-mega-head strong {
  display: block; font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.nav-mega-head em {
  display: block; font-style: normal; font-size: 13px; color: var(--ink-faint);
  margin-top: 2px; line-height: 1.4;
}
.nav-mega-list { display: block; margin: 14px 0 0 48px; }
.nav-mega-list span {
  display: block; font-size: 13.5px; color: var(--ink-soft); padding: 3px 0;
}

@media (max-width: 900px) {
  .nav-mega {
    position: static; transform: none; width: auto; grid-template-columns: 1fr;
    opacity: 1; visibility: visible; box-shadow: none; border: none;
    background: transparent; padding: 4px 0 0;
  }
  .nav-mega::before { display: none; }
  .nav-drop { width: 100%; }
  .nav-mega-col { padding: 10px 0; }
  .nav-mega-list { display: none; }   /* on mobile the sub-list is noise */
}

/* ---------- Product page — N-013 ---------- */
.prod-hero { padding: 72px 0 16px; position: relative; }
/* The section RIGHT AFTER the product hero gets less breathing room: with two big gaps
   stacked, the page looked broken (2026-08-26 browser check). */
.prod-hero + section { padding-top: 40px; }
.prod-hero .eyebrow { margin-bottom: 20px; }
.prod-hero h1 { max-width: 16ch; }
.prod-hero .lead { max-width: 60ch; }
.feature-rows { display: grid; gap: 14px; }
.feature-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.feature-row h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  letter-spacing: -.015em; margin: 0 0 6px;
}
.feature-row .fr-blurb { font-size: 14px; color: var(--accent); font-weight: 500; }
.feature-row p.fr-detail { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
}

/* Cross-product strip: every product page bridges to the other two */
.cross-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .cross-grid { grid-template-columns: 1fr; } }
.cross-card {
  display: block; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .18s, box-shadow .18s;
}
.cross-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cross-card strong {
  display: block; font-family: var(--font-display); font-size: 18px;
  font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px;
}
.cross-card span { color: var(--ink-soft); font-size: 15px; }

/* Pricing grid has two columns — Nisan has two rails, not three plans (ADR-0013) */
.price-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .price-grid, .price-grid.two { grid-template-columns: 1fr; } }
.price-card .rail-note {
  margin-top: 4px; font-size: 13px; color: var(--ink-faint); line-height: 1.5;
}
.free-strip {
  max-width: 860px; margin: 24px auto 0; padding: 22px 26px;
  border-radius: var(--radius); background: var(--spring-soft);
  border: 1px solid #c6ead7; display: flex; gap: 14px; align-items: flex-start;
}
.free-strip strong { font-family: var(--font-display); }
.free-strip p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ==========================================================================
   Dodo MECHANICS (specs/web.md: take Dodo's mechanics, not its lime colour)
   Taken: centred hero · pastel mesh gradient + dot-grid texture ·
   pill announcement badge · black primary button → brand colour on hover ·
   product tab switcher + duotone icons.
   Not taken: the lime/chartreuse accent. The palette is Nisan's (blue + spring green).
   ========================================================================== */

/* Black primary button turns to the BRAND colour on hover — the mechanic the spec
   names. Its earlier version went to a darker grey; that was half the mechanic. */
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(47,109,246,.28); }

/* ---------- Centred mesh hero ---------- */
.hero-mesh {
  position: relative; overflow: hidden;
  padding: 84px 0 72px; text-align: center;
  /* Pastel mesh: three soft washes. Dodo uses pink/lavender/mint; here it is
     Nisan's blue + spring green + cream — same mechanic, our palette. */
  background:
    radial-gradient(60% 55% at 12% 8%,  rgba(47,109,246,.13) 0%, transparent 60%),
    radial-gradient(55% 50% at 88% 12%, rgba(47,181,115,.12) 0%, transparent 62%),
    radial-gradient(70% 60% at 50% 108%, rgba(47,109,246,.10) 0%, transparent 60%),
    var(--bg);
}
/* Dot-grid texture: on top of the mesh, fading out towards the edges. */
.hero-mesh::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14,19,32,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 42%, #000 30%, transparent 78%);
          mask-image: radial-gradient(72% 62% at 50% 42%, #000 30%, transparent 78%);
}
.hero-mesh > .container { position: relative; z-index: 1; }
.hero-mesh h1 { max-width: 20ch; margin: 0 auto 20px; }
.hero-mesh .lead { max-width: 62ch; margin: 0 auto 34px; }
.hero-mesh .hero-actions { justify-content: center; }

/* Pill announcement badge — white, thin border, with an arrow. It does not replace
   .eyebrow (green fill); the two do different jobs: the badge ANNOUNCES, the eyebrow LABELS. */
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13.5px; font-weight: 500;
  padding: 7px 8px 7px 16px; border-radius: 999px; margin-bottom: 26px;
  box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s;
}
.pill-badge:hover { border-color: #cfd8ea; transform: translateY(-1px); }
.pill-badge .pb-arrow {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--accent); font-size: 12px;
}

/* ---------- Product tab switcher (Dodo's signature mechanic) ---------- */
.prod-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.prod-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-faint);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.prod-tab:hover { color: var(--ink-soft); }
.prod-tab[aria-selected="true"] {
  background: var(--surface); border-color: var(--line);
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.prod-tab .duo { width: 20px; height: 20px; flex: none; }

.prod-panels { margin-top: 28px; }
.prod-panel { display: none; }
.prod-panel.on { display: block; animation: panelIn .35s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-card {
  max-width: 980px; margin: 0 auto; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow-lg);
  padding: 34px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px;
}
@media (max-width: 820px) { .panel-card { grid-template-columns: 1fr; padding: 26px; } }
.panel-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.panel-card > div > p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.panel-list { display: grid; gap: 10px; align-content: start; }
.panel-list span {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-soft);
}
.panel-list span::before {
  content: "✓"; color: var(--spring); font-weight: 700; flex: none;
}
.panel-more { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 600; font-size: 14.5px; }

/* Duotone icon: one two-tone SVG — semi-transparent body (.duo-bg) + opaque line.
   Replaces emoji (emoji changes per platform and does not carry the brand). */
.duo .duo-bg { opacity: .22; }

/* Mega menu: the feature list is now LINKS (the 18 SEO pages are reachable from the nav) */
.nav-mega-title { display: block; }
.nav-mega-col { padding: 16px; border-radius: 14px; }
.nav-mega-list a {
  display: block; font-size: 13.5px; color: var(--ink-soft);
  padding: 5px 0; transition: color .15s;
}
.nav-mega-list a:hover { color: var(--accent); }
.nav-mega-sm { width: 260px; grid-template-columns: 1fr; }
.nav-mega-sm .nav-mega-list { margin: 0; }
.nav-mega-sm .nav-mega-list a { font-size: 14.5px; padding: 7px 0; }

/* Wide footer: logo + three product columns + company/legal (Dodo's IA) */
.footer-grid-wide { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px 28px; }
.footer-grid-wide h4 a { color: inherit; }
@media (max-width: 980px) { .footer-grid-wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid-wide { grid-template-columns: 1fr; } }

/* ---------- Developer page (/docs) — N-013 second wave ---------- */
/* The status line is INSIDE the hero: if "the API is not open yet" were a footnote at the
   bottom of the page, the promise on top could be read and the warning below missed. */
.doc-status {
  max-width: 660px; margin: 22px auto 0; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
}
.doc-status strong { color: var(--ink); }
.doc-status a { color: var(--accent); font-weight: 500; }

.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc-clause {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.doc-clause h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  letter-spacing: -.015em; margin: 0 0 8px;
}
.doc-clause p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; }

.doc-code-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.doc-code {
  background: var(--ink); border-radius: var(--radius); padding: 22px 24px;
  overflow-x: auto; margin: 0;
}
.doc-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.75; color: #e8ecf6; white-space: pre;
}
/* Comments are dimmed: the real information in the example is the FIELD NAMES, not the explanation. */
.doc-code .c { color: #7f8aa6; }

.doc-note {
  max-width: 760px; margin: 22px auto 0; font-size: 14px;
  color: var(--ink-soft); line-height: 1.7; text-align: center;
}
.doc-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; background: var(--accent-soft); color: var(--accent-dark);
  padding: 2px 6px; border-radius: 6px;
}

@media (max-width: 860px) {
  .doc-grid, .doc-code-wrap { grid-template-columns: minmax(0, 1fr); }
}
