/* Landing page — Version B "Ink & Indigo" (approved 2026-11-19). Tokens come from /theme.css.
   The nav and the request panel are ink in both themes, like the app's top bar; the hero follows
   the theme (Santhosh, 2026-11-19: light mode must look light from the first screen); the
   sections between them sit on the Mist page with white 10px cards, as the app's screens do. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--nd-sans); font-size: 16px; line-height: 1.6; color: var(--nd-ink); background: var(--nd-bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--nh-focus); border-radius: var(--nh-radius); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--nd-ink); color: var(--nd-bg); padding: 8px 12px; border-radius: var(--nh-radius); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--nd-mono); font-variant-numeric: tabular-nums; }

/* buttons: 6px corners, weight 600, 44px targets — the app's primitives */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border-radius: var(--nh-radius); font-weight: 600; font-size: 15px; border: 1px solid transparent; white-space: nowrap; }
.btn-acc { background: var(--nd-acc); color: var(--nd-acc-ink); border-color: var(--nh-indigo-edge); }
.btn-acc:hover { background: var(--nd-acc-2); }
.btn-soft { background: var(--nd-surface); border-color: var(--nd-line-2); color: var(--nd-ink); }
.btn-soft:hover { border-color: var(--nd-ink-2); background: var(--nd-surface-2); }
.btn-ghost { color: var(--nh-topbar-muted); padding: 10px 14px; }
.btn-ghost:hover { color: var(--nh-topbar-text); background: var(--nh-topbar-raised); }
/* on ink (nav, hero, request) the action keeps the brand indigo in both themes: 7.9:1 under white */
.on-ink .btn-acc, .nav .btn-acc { background: #4338CA; border-color: #6366F1; color: #FFFFFF; }
.on-ink .btn-acc:hover, .nav .btn-acc:hover { background: #3730A3; }
.on-ink .btn-soft { background: transparent; border-color: #3B4560; color: #FFFFFF; }
.on-ink .btn-soft:hover { background: var(--nh-topbar-raised); border-color: #C7CDDA; }
.theme { display: inline-flex; border: 1px solid #3B4560; border-radius: var(--nh-radius); padding: 2px; }
.theme button { min-height: 32px; padding: 4px 10px; border-radius: var(--nh-radius-sm); font-size: 13px; font-weight: 600; color: var(--nh-topbar-muted); }
.theme button[aria-pressed="true"] { background: var(--nh-topbar-raised); color: #FFFFFF; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nh-topbar); color: var(--nh-topbar-text); border-bottom: 1px solid var(--nh-topbar-raised); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.01em; color: var(--nh-topbar-text); min-height: 44px; }
.brand .nh-logo { width: 32px; height: 32px; flex: none; }
.wordmark .wm-a { font-weight: 600; }
.wordmark .wm-b { font-weight: 700; color: var(--nh-indigo-ring); }
.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--nh-radius); color: var(--nh-topbar-muted); }
.nav-links a:hover { color: var(--nh-topbar-text); background: var(--nh-topbar-raised); }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ---------- hero: follows the theme — Mist with ink text in light, ink in dark.
   Above the fold there is only the headline, one line, two buttons and the presenter (2026-11-25),
   so the hero fills the first screen and everything else starts below it. ---------- */
:root { --hero-bg: var(--nh-indigo-tint); --hero-ink: var(--nh-ink); --hero-muted: var(--nh-text-2); --hero-glow: rgba(67, 56, 202, 0.14); --hero-pill-bg: var(--nh-surface); --hero-pill-border: var(--nh-border); --hero-accent: #4338CA; --hero-frame: var(--nh-border); }
:root[data-theme="dark"] { --hero-bg: var(--nh-topbar); --hero-ink: #FFFFFF; --hero-muted: var(--nh-topbar-muted); --hero-glow: rgba(67, 56, 202, 0.38); --hero-pill-bg: var(--nh-topbar-raised); --hero-pill-border: #2B3654; --hero-accent: var(--nh-indigo-ring); --hero-frame: #2B3654; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-bg: var(--nh-topbar); --hero-ink: #FFFFFF; --hero-muted: var(--nh-topbar-muted); --hero-glow: rgba(67, 56, 202, 0.38); --hero-pill-bg: var(--nh-topbar-raised); --hero-pill-border: #2B3654; --hero-accent: var(--nh-indigo-ring); --hero-frame: #2B3654; } }
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); padding: 48px 0 56px; color: var(--hero-ink); background: var(--hero-bg); }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 90%; background: radial-gradient(50% 55% at 70% 40%, var(--hero-glow), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.hero h1 span { color: var(--hero-accent); font-weight: 700; }
.hero .lede { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--hero-muted); max-width: 46ch; text-wrap: pretty; }
.hero-cta { display: flex; gap: 10px; margin: 30px 0 0; flex-wrap: wrap; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.ic-play { flex: none; }
.hero .btn-acc { background: #4338CA; border-color: #6366F1; color: #FFFFFF; }
.hero .btn-acc:hover { background: #3730A3; }
.hero .btn-soft { background: transparent; border-color: var(--hero-pill-border); color: var(--hero-ink); }
.hero .btn-soft:hover { background: var(--hero-pill-bg); }

/* the owl: drawn in server/templates/mascot.html, styled and animated in /mascot.css. Its box is reserved here. */
.hero-avatar { display: grid; place-items: center; }

/* ---------- demo video: a 16:9 frame that holds its space before the video loads ---------- */
.demo-frame { max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9; background: var(--nd-surface-2); }
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; background: var(--nd-surface-2); }
.demo-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: #4338CA; color: #FFFFFF; border: 2px solid #A5B4FC; box-shadow: 0 10px 30px -8px rgba(14, 21, 37, 0.5); }
.demo-play svg { margin-left: 4px; }
.demo-play:hover { background: #3730A3; }
.demo-frame.is-playing .demo-play { display: none; }
.demo-note { max-width: 1040px; margin: 12px auto 0; text-align: center; font-size: 14px; color: var(--nd-ink-2); }
.demo-steps { list-style: none; counter-reset: demo; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1040px; margin: 18px auto 0; font-size: 14px; color: var(--nd-ink-2); }
.demo-steps li { counter-increment: demo; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--nd-line); border-radius: 999px; background: var(--nd-surface); }
.demo-steps li::before { content: counter(demo); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--nh-indigo-soft); color: var(--nh-indigo-hover); font-size: 13px; font-weight: 700; }
:root[data-theme="dark"] .demo-steps li::before { color: #C7D2FE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-steps li::before { color: #C7D2FE; } }
.demo .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.demo-noscript { text-align: center; margin-top: 14px; } .demo-noscript a { color: var(--nh-link); text-decoration: underline; }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
section.block + section.block { border-top: 1px solid var(--nd-line); }
.sec-head { max-width: 64ch; margin-bottom: 36px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nh-link); margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
.sec-head p { margin-top: 12px; font-size: 17px; color: var(--nd-ink-2); text-wrap: pretty; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: var(--nh-radius-lg); padding: 24px; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--nd-ink-2); font-size: 15px; }
/* the numbered badge is the app's step-rail number: indigo circle, white numeral */
.card .n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #4338CA; color: #FFFFFF; font-weight: 700; font-size: 13px; }
.card .n { margin-bottom: 14px; }

.pricing-note { margin-top: 18px; font-size: 14px; color: var(--nd-mute); max-width: 72ch; }
.pricing-note a { color: var(--nh-link); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- pricing: the free trial and the early-bird plan (figures from server/offer.js) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--nh-indigo-hover); background: var(--nh-indigo-soft); border-radius: var(--nh-radius-sm); padding: 3px 9px; margin-bottom: 14px; }
:root[data-theme="dark"] .plan .tag { color: #C7D2FE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan .tag { color: #C7D2FE; } }
.plan-main { border: 2px solid #4338CA; }
.plan .price { display: flex; align-items: baseline; gap: 8px; color: var(--nd-ink); }
.plan .price .amt { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan .price .per { font-size: 16px; color: var(--nd-ink-2); }
.plan .plan-sub { margin-top: 4px; font-size: 14px; color: var(--nd-mute); }
.plan ul { margin: 16px 0 20px; padding-left: 18px; color: var(--nd-ink-2); font-size: 15px; flex: 1; }
.plan li + li { margin-top: 6px; }
.plan li b { color: var(--nd-ink); font-weight: 600; }
.plan .btn { align-self: flex-start; }
.plan .plan-sub b { color: var(--nd-ink); font-weight: 600; }
.plan .eb { margin-top: 14px; padding: 10px 12px; border-radius: var(--nh-radius); background: var(--nh-indigo-soft); color: var(--nd-ink); font-size: 14px; line-height: 1.5; }
:root[data-theme="dark"] .plan .eb b { color: #C7D2FE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan .eb b { color: #C7D2FE; } }
@media (max-width: 1100px) and (min-width: 861px) { .plans { grid-template-columns: 1fr 1fr; } .plans .plan:first-child { grid-column: 1 / -1; } }

/* features, the pricing teaser, security */
.card p a, .sec-links a, .teaser p a { color: var(--nh-link); text-decoration: underline; text-underline-offset: 2px; }
.soon-tag { display: inline-block; margin-left: 6px; vertical-align: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; background: var(--nh-amber-bg); color: var(--nh-amber-text); }
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: var(--nh-radius-lg); padding: 28px; }
.teaser h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.teaser p:not(.kicker) { margin-top: 8px; font-size: 16px; color: var(--nd-ink-2); max-width: 60ch; }
.teaser p b { color: var(--nd-ink); font-weight: 600; }
.sec-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; max-width: 980px; font-size: 15.5px; color: var(--nd-ink-2); }
.sec-list li { position: relative; padding-left: 28px; }
.sec-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--nh-amber-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230E1525' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sec-list b { color: var(--nd-ink); font-weight: 600; }
.sec-links { margin-top: 20px; font-size: 14.5px; color: var(--nd-mute); max-width: 72ch; }
.page-top { padding-top: 64px; }
.page-top h1 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }

/* faq */
.faq { max-width: 780px; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: var(--nh-radius-lg); padding: 0 24px; }
.faq details + details { border-top: 1px solid var(--nd-line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 18px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--nd-surface-2); font-size: 20px; font-weight: 400; color: var(--nh-link); transition: transform 0.25s var(--nd-ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--nd-ink-2); font-size: 15.5px; max-width: 64ch; }

/* request access: an ink panel, the form styled like the app's "Fix next" card */
.request { padding: 88px 0; border-top: 1px solid var(--nd-line); }
.request-panel { background: var(--nh-topbar); color: var(--nh-topbar-text); border-radius: var(--nh-radius-xl); padding: 56px clamp(20px, 5vw, 64px); text-align: center; }
.request h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.015em; font-weight: 600; }
.request p { margin: 12px auto 0; max-width: 56ch; color: var(--nh-topbar-muted); font-size: 17px; }
.request .hero-cta { margin-top: 26px; justify-content: center; }
.request .contact { margin-top: 18px; font-size: 14px; color: var(--nh-topbar-muted); }
.request .contact a { color: var(--nh-indigo-ring); font-weight: 600; }
.request .contact.ok { color: #6FD3A3; font-weight: 600; }
.request .contact.err { color: #F49B92; font-weight: 600; }
.request-form { max-width: 720px; margin: 28px auto 0; text-align: left; }
.rf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rf-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #E0E7FF; }
.rf-grid input, .rf-grid select, .rf-grid textarea { width: 100%; min-height: 44px; font: inherit; font-size: 15px; color: #FFFFFF; background: #151D31; border: 1px solid #3B4560; border-radius: var(--nh-radius); padding: 10px 12px; }
.rf-grid select option { color: var(--nd-ink); background: var(--nd-surface); }
.rf-grid textarea { resize: vertical; min-height: 88px; }
.rf-grid input:focus, .rf-grid select:focus, .rf-grid textarea:focus { outline: none; border-color: #6366F1; box-shadow: var(--nh-focus); }
.rf-full { grid-column: 1 / -1; }
.rf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-form .hero-cta { justify-content: flex-start; }
.request-form .btn[disabled] { opacity: 0.6; cursor: wait; }

/* footer */
footer { padding: 32px 0 44px; font-size: 14px; color: var(--nd-mute); border-top: 1px solid var(--nd-line); }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
footer .foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--nd-ink); }
footer .foot-brand .nh-logo { width: 22px; height: 22px; }
footer .foot-brand .wm-b { color: var(--nh-link); }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-weight: 500; color: var(--nd-ink-2); }
footer .links a { display: inline-flex; align-items: center; min-height: 32px; }
footer .links a:hover { color: var(--nh-link); }
footer .foot-contact { margin-top: 2px; }
footer p { max-width: 62ch; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s var(--nd-ease) both; }
  .d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--nd-ease), transform 0.7s var(--nd-ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: 0.08s; } .reveal:nth-child(3) { transition-delay: 0.16s; } .reveal:nth-child(4) { transition-delay: 0.24s; }
  .btn { transition: background 0.15s, border-color 0.15s; }
  .card { transition: border-color 0.2s; }

}
@media (hover: hover) { .card:hover { border-color: var(--nd-line-2); } }

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
}
@media (max-width: 860px) {
  .grid-3, .plans, .sec-list { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { min-height: 60px; }
  .nav-right .btn-ghost, .nav-right .theme { display: none; }
  .nav-right .btn { padding: 10px 14px; font-size: 14px; }
  /* phone: the owl sits small above the headline, and the two buttons stack full-width */
  .hero { align-items: flex-start; min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); padding: 28px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-avatar { order: -1; justify-items: start; }
  .hero-avatar .mascot { width: 178px; }
  .hero h1 { font-size: clamp(31px, 9vw, 38px); max-width: none; }
  .hero .lede { margin-top: 14px; font-size: 17px; }
  .hero-cta { flex-direction: column; align-items: stretch; margin-top: 22px; }
  .rf-grid { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .sec-head { margin-bottom: 24px; }
  .demo-frame { border-radius: var(--nh-radius-lg); }
  .demo-play { width: 60px; height: 60px; }
  .demo-steps { justify-content: flex-start; }
  .teaser { padding: 22px 18px; }
  .teaser .btn { width: 100%; }
  .request { padding: 56px 0; }
  .request-panel { padding: 36px 18px; border-radius: var(--nh-radius-lg); }
  .faq { padding: 0 16px; }
}
@media (max-width: 760px) and (max-height: 640px) { .hero-avatar .mascot { width: 118px; } }
@media (max-width: 400px) { .brand { font-size: 17px; } .nav-right .btn-acc { padding: 10px 12px; } }
/* the footer's small mark is static: the logo plays once, in the nav */
footer .foot-brand .nh-flap, footer .foot-brand .nh-tick { animation: none; }
footer .nh-mini { display: inline-flex; }
