/* ============================================================
   nerpa.work — landing draft (landing-n1)
   Design system: brand-identity set B "Ice Field"
   Sources: product/brand-identity/nerpa/kit/B/tokens/tokens.css
            product/brand-identity/nerpa/site/b-ice-field/apply.json (roles)
   Fonts:   Fira Sans (display 700 / text 400,600) + Fira Mono (data face)
   ============================================================ */
:root {
  /* brand tones (kit B palette) */
  --ink: #0b2233;          /* brand-1 Ink Navy — primary */
  --signal: #2778b8;       /* brand-2 Signal Blue — accent */
  --coat-navy: #142c45;    /* brand-8 Coat Navy */
  --ice: #b9ddeb;          /* brand-3 Ice Blue */
  --pelt: #f8f4ee;         /* brand-4 Nerpa Pelt */
  --pelt-shade: #c4cfdb;   /* brand-5 Pelt Shade */
  --fog: #8999aa;          /* brand-6 Fog */
  --coat-slate: #495e77;   /* brand-7 Coat Slate */

  /* page roles (apply.json, light) */
  --bg: #eff4f7;
  --surface: #ffffff;
  --surface-alt: #e5eaed;
  --line: #d3dce2;
  --line-strong: #cbd4d9;
  --text: #131d25;
  --muted: #4c5760;
  --primary: #0b2233;
  --primary-hover: #142c45;
  --on-primary: #ffffff;
  --accent: #2778b8;
  --link: #0b2233;

  --shadow: 0 16px 40px rgba(11, 34, 51, .08);
  --shadow-soft: 0 8px 22px rgba(11, 34, 51, .06);
  --nav-pill-bg: rgba(255, 255, 255, .9);
  --nav-pill-shadow: 0 8px 28px rgba(11, 34, 51, .10);
  --btn-radius: 9999px;
  --card-radius: 1.15rem;

  --font-display: "Fira Sans", system-ui, sans-serif;
  --font-text: "Fira Sans", system-ui, sans-serif;
  --font-mono: "Fira Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -.01em; }
h1, h2, h3, h4, p, ul { margin-top: 0; }

.skip-link { position: fixed; z-index: 2000; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--ink); color: #fff; border-radius: .5rem; }
.skip-link:focus-visible { top: 1rem; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ice); }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .74rem; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--coat-slate); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); padding: .32rem .85rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }
.accent { color: var(--signal); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.5rem; border-radius: var(--btn-radius); border: 1px solid transparent; font-family: var(--font-text); font-size: .95rem; font-weight: 600; line-height: 1.2; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn-primary { background: var(--ink); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-large { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- nav ---------- */
.glass-nav { position: sticky; top: 10px; z-index: 100; width: min(1240px, calc(100% - 2*max(5vw, 24px))); margin: 14px auto 0; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 9px 12px 9px 20px; background: var(--nav-pill-bg); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); backdrop-filter: blur(14px); box-shadow: var(--nav-pill-shadow); }
.glass-nav.scrolled { box-shadow: 0 12px 32px rgba(11, 34, 51, .14); }
.logo-link { display: inline-flex; align-items: center; }
.logo-img { display: block; width: auto; height: 34px; }
.desktop-nav, .nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.desktop-nav a, .nav-link-login { color: var(--muted); font-size: .92rem; font-weight: 600; }
.desktop-nav a:hover, .nav-link-login:hover { color: var(--signal); }
.nav-actions { gap: 1rem; }
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line-strong); border-radius: .6rem; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- layout ---------- */
main { display: block; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 1rem 0 .6rem; }
.section-heading > p { color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }
section { padding: 96px max(5vw, 24px); }

/* reveal on scroll */
.fade-in-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-in { opacity: 0; transition: opacity .7s ease; }
.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; } .delay-3 { transition-delay: .24s; } .delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in-up, .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4vw; align-items: center; max-width: 1240px; margin: 0 auto; padding-top: 72px; padding-bottom: 72px; }
.hero-content .eyebrow { margin-bottom: 1.3rem; }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 0 0 1.1rem; }
.hero-title .no-limits { display: block; color: var(--signal); }
.hero-sub { color: var(--muted); font-size: 1.13rem; max-width: 34rem; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.hero-note { font-family: var(--font-mono); font-size: .78rem; color: var(--coat-slate); letter-spacing: .02em; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-strong); }
.hero-proof .stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-val { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.stat-label { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fog); }

/* app mockup (pure CSS, nerpa colors) */
.hero-visual { position: relative; }
.app-window { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 1.1rem; box-shadow: var(--shadow); overflow: hidden; }
.app-chrome { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: var(--pelt-shade); }
.app-chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(11, 34, 51, .28); }
.app-chrome .app-title { margin-left: .5rem; font-family: var(--font-mono); font-size: .72rem; color: rgba(11, 34, 51, .65); letter-spacing: .08em; text-transform: uppercase; }
.app-pane { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; }
.app-rec { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--coat-slate); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); padding: .25rem .7rem; }
.app-rec b { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: rec-pulse 2.4s ease-out infinite; }
@keyframes rec-pulse { 0% { box-shadow: 0 0 0 0 rgba(39, 120, 184, .4); } 70% { box-shadow: 0 0 0 7px rgba(39, 120, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(39, 120, 184, 0); } }
.app-turn { display: flex; flex-direction: column; gap: .3rem; }
.app-chip { align-self: flex-start; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .18rem .55rem; border-radius: var(--btn-radius); }
.app-chip.s1 { color: var(--ink); background: var(--ice); }
.app-chip.s2 { color: var(--coat-navy); background: var(--pelt-shade); }
.app-line { height: 9px; border-radius: 5px; background: var(--surface-alt); }
.app-line.w90 { width: 92%; } .app-line.w70 { width: 70%; } .app-line.w50 { width: 52%; }
.app-note { border-top: 1px dashed var(--line-strong); padding-top: .8rem; display: flex; align-items: flex-start; gap: .6rem; }
.app-note .app-badge { flex-shrink: 0; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--btn-radius); padding: .18rem .6rem; }
.app-note-lines { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding-top: .2rem; }
.app-float { position: absolute; right: -14px; bottom: -20px; background: var(--ink); color: var(--ice); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: .55rem .9rem; border-radius: .7rem; box-shadow: var(--shadow); }
.app-float b { color: #fff; font-weight: 400; }

/* ---------- features ---------- */
.features { background: var(--surface); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1240px; margin: 0 auto; }
.feature-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--card-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.fc-media { padding: 1.3rem 1.3rem 0; }
.fc-window { background: var(--surface); border: 1px solid var(--line-strong); border-radius: .8rem .8rem 0 0; border-bottom: 0; overflow: hidden; }
.fc-chrome { display: flex; gap: .35rem; padding: .55rem .8rem; background: var(--pelt-shade); }
.fc-chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(11, 34, 51, .28); }
.fc-pane { padding: .9rem; display: flex; flex-direction: column; gap: .55rem; min-height: 176px; }
.fc-wave { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.fc-wave i { flex: 1; background: var(--ice); border-radius: 3px; animation: wave 1.6s ease-in-out infinite; }
.fc-wave i:nth-child(odd) { height: 60%; animation-delay: .2s; }
.fc-wave i:nth-child(3n) { height: 90%; animation-delay: .5s; }
.fc-wave i:nth-child(4n) { height: 35%; }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.fc-rec { position: absolute; z-index: 1; margin: 1.9rem 0 0 2.2rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); padding: .16rem .55rem; }
.fc-turn { display: flex; flex-direction: column; gap: .3rem; }
.fc-chip { align-self: flex-start; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; padding: .14rem .5rem; border-radius: var(--btn-radius); }
.fc-chip.s1 { color: var(--ink); background: var(--ice); }
.fc-chip.s2 { color: var(--coat-navy); background: var(--pelt-shade); }
.fc-line { height: 8px; border-radius: 4px; background: var(--surface-alt); }
.fc-line.w80 { width: 82%; } .fc-line.w60 { width: 62%; } .fc-line.w40 { width: 42%; }
.fc-note-head { display: flex; justify-content: space-between; align-items: center; }
.fc-note-title { width: 55%; height: 9px; border-radius: 5px; background: var(--pelt-shade); }
.fc-badge { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--btn-radius); padding: .12rem .5rem; }
.fc-check { display: flex; align-items: center; gap: .5rem; }
.fc-check b { color: var(--signal); font-size: .8rem; }
.fc-people { display: flex; gap: .5rem; }
.fc-person { flex: 1; display: flex; flex-direction: column; gap: .35rem; background: var(--bg); border: 1px solid var(--line-strong); border-radius: .55rem; padding: .55rem; }
.fc-person .dot { width: 18px; height: 18px; border-radius: 50%; }
.fc-person .dot.p1 { background: var(--ice); } .fc-person .dot.p2 { background: var(--pelt-shade); } .fc-person .dot.p3 { background: var(--fog); }
.fc-code { margin: 0; font-family: var(--font-mono); font-size: .68rem; line-height: 1.55; color: var(--coat-slate); white-space: pre; overflow: hidden; }
.fc-code .k { color: var(--signal); }
.fc-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.fc-body h3 { font-size: 1.15rem; margin: 0; }
.fc-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.fc-link { margin-top: auto; padding-top: .4rem; font-size: .88rem; font-weight: 600; color: var(--signal); }
.fc-link:hover { text-decoration: underline; }
.fc-media { position: relative; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1240px; margin: 0 auto; }
.how-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.how-step { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.how-card h3 { font-size: 1.18rem; margin: 0; }
.how-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- integrations ---------- */
.integrations-section { background: var(--surface); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1240px; margin: 0 auto; }
.int-card { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--card-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.int-card h3 { font-size: 1.12rem; margin: 0; }
.int-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.int-tag { align-self: flex-start; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coat-slate); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); padding: .2rem .6rem; }
.int-mcp { grid-column: span 3; background: var(--ink); border-color: var(--ink); color: var(--ice); }
.int-mcp h3 { color: #fff; }
.int-mcp p { color: var(--pelt-shade); }
.int-mcp .int-tag { color: var(--ice); background: transparent; border-color: rgba(185, 221, 235, .4); }
.int-mcp pre { margin: .4rem 0 0; font-family: var(--font-mono); font-size: .78rem; line-height: 1.6; color: var(--ice); background: rgba(185, 221, 235, .08); border: 1px solid rgba(185, 221, 235, .18); border-radius: .6rem; padding: .9rem 1.1rem; overflow-x: auto; }

/* ---------- use cases marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-inner { display: flex; width: max-content; }
.marquee-track { display: flex; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.marquee.marquee-ready .marquee-inner { animation: marquee var(--marquee-speed, 46s) linear infinite; }
.marquee.marquee-ready:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee.marquee-ready .marquee-inner { animation: none; }
}
.uc-card { width: 300px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; }
.uc-head { display: flex; align-items: center; gap: .7rem; }
.uc-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ice); }
.uc-role { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coat-slate); }
.uc-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 1280px; margin: 0 auto; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); padding: 1.7rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease; }
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.pricing-card.popular { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.popular-badge { position: absolute; top: -.95rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--ice); border-radius: var(--btn-radius); padding: .3rem .9rem; white-space: nowrap; }
.plan-name { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coat-slate); }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--ink); margin: .5rem 0 .2rem; }
.plan-price span { font-family: var(--font-text); font-size: .95rem; font-weight: 400; color: var(--muted); }
.plan-credits { font-family: var(--font-mono); font-size: .74rem; color: var(--signal); margin: 0 0 .7rem; }
.plan-desc { color: var(--muted); font-size: .92rem; min-height: 3.2em; }
.plan-features { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; }
.plan-features li { display: flex; gap: .55rem; align-items: flex-start; }
.check-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: .18rem; color: var(--signal); }
.pricing-card .btn { margin-top: auto; }
.pricing-note { max-width: 720px; margin: 1.4rem auto 0; text-align: center; color: var(--fog); font-size: .82rem; }
#pricing-status { margin: 20px 0 0; text-align: center; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line-strong); border-radius: .9rem; padding: 0; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); position: relative; padding-right: 3rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.2rem; color: var(--signal); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .96rem; }
.faq-body a { color: var(--signal); font-weight: 600; }

/* ---------- CTA ---------- */
.cta-section { max-width: 1240px; margin: 0 auto; padding-top: 24px; }
.cta-card { position: relative; overflow: hidden; background: var(--ink); color: var(--ice); border-radius: 1.5rem; padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 80% 10%, rgba(39, 120, 184, .35), transparent 60%), radial-gradient(40% 70% at 12% 90%, rgba(185, 221, 235, .12), transparent 60%); pointer-events: none; }
.cta-card h2 { position: relative; color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .8rem; }
.cta-card p { position: relative; max-width: 34rem; margin: 0 auto 1.8rem; color: var(--pelt-shade); font-size: 1.05rem; }
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cta-card .btn-primary { background: var(--signal); color: #fff; }
.cta-card .btn-primary:hover { background: #17639d; }
.cta-alt-link { align-self: center; color: var(--ice); font-size: .92rem; font-weight: 600; }
.cta-alt-link:hover { color: #fff; }
.cta-mascot { position: relative; width: 92px; height: 92px; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; background: var(--pelt); border-radius: 50%; }
.cta-mascot img { width: 66px; height: auto; display: block; }

/* ---------- footer ---------- */
.glass-footer { border-top: 1px solid var(--line-strong); background: var(--surface); padding: 56px max(5vw, 24px) 32px; }
.footer-content { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: .9rem; }
.footer-logo-img { height: 34px; width: auto; }
.footer-tagline { color: var(--muted); font-size: .92rem; max-width: 20rem; margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.link-group { display: flex; flex-direction: column; gap: .55rem; }
.link-group h4 { font-family: var(--font-mono); font-weight: 400; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); margin: 0 0 .3rem; }
.link-group a { color: var(--muted); font-size: .92rem; }
.link-group a:hover { color: var(--signal); }
.footer-bottom { max-width: 1240px; margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { margin: 0; color: var(--fog); font-size: .85rem; }

/* ---------- inner page hero (features/downloads/legal) ---------- */
.page-hero { max-width: 1240px; margin: 0 auto; padding: 64px max(5vw, 24px) 24px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0 .8rem; }
.page-hero p { max-width: 40rem; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

/* downloads */
.dl-section { max-width: 1080px; margin: 0 auto; padding: 40px max(5vw, 24px) 96px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.dl-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.dl-platform { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coat-slate); }
.dl-card h3 { margin: 0; font-size: 1.2rem; }
.dl-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.dl-status { font-family: var(--font-mono); font-size: .74rem; color: var(--fog); }
.dl-steps { margin-top: 3.5rem; }
.dl-steps ol { color: var(--muted); font-size: .97rem; display: flex; flex-direction: column; gap: .5rem; padding-left: 1.2rem; }

/* legal */
.legal-page { max-width: 800px; margin: 0 auto; padding: 40px max(5vw, 24px) 96px; }
.legal-page section { padding: 0; margin: 1.6rem 0; }
.legal-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin: 1.2rem 0 1rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
.legal-page h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.legal-page p, .legal-page li { color: var(--muted); font-size: .97rem; }
.legal-updated { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .nav-actions .nav-link-login { display: none; }
  .nav-burger { display: flex; }
  .mobile-nav { display: none; position: fixed; z-index: 99; top: 84px; left: max(4vw, 16px); right: max(4vw, 16px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 1.2rem; box-shadow: var(--shadow); padding: 1rem; }
  .nav-open .mobile-nav { display: flex; flex-direction: column; gap: .2rem; }
  .mobile-nav a { padding: .8rem 1rem; border-radius: .7rem; font-weight: 600; color: var(--text); }
  .mobile-nav a:hover { background: var(--bg); color: var(--signal); }
  .hero { grid-template-columns: 1fr; gap: 2.6rem; padding-top: 48px; }
  .hero-visual { max-width: 680px; }
  .feature-grid, .how-grid, .int-grid, .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-mcp { grid-column: span 2; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  .feature-grid, .how-grid, .int-grid, .pricing-grid, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .int-mcp { grid-column: span 1; }
  .hero-proof { gap: 1.4rem; }
  .app-float { right: 6px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- nerpa imagery (large reference art: trust, safety, protection) ---------- */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: 1.6rem; background: var(--pelt); box-shadow: var(--shadow); border: 1px solid var(--line-strong); }
.ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero { max-width: 1380px; grid-template-columns: .82fr 1.18fr; gap: 3vw; }
.hero-photo { aspect-ratio: 1.02 / 1; border-radius: 2rem; }
.hero-photo > img { object-position: 50% 20%; }
.ph-chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); padding: .32rem .8rem; box-shadow: var(--shadow-soft); backdrop-filter: blur(6px); }
.ph-chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: rec-pulse 2.4s ease-out infinite; }
.ph-rec { top: 1.1rem; left: 1.1rem; }
.ph-card { position: absolute; left: 1.1rem; bottom: 1.1rem; width: min(40%, 230px); background: rgba(255,255,255,.93); border: 1px solid var(--line-strong); border-radius: .9rem; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: var(--shadow-soft); backdrop-filter: blur(6px); }
.ph-card .app-chip { font-size: .6rem; }
.ph-caption { position: absolute; left: 0; right: 0; top: 0; padding: 1.1rem 1.1rem 0 0; display: flex; justify-content: flex-end; pointer-events: none; }
.ph-caption span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(11,34,51,.82); border-radius: var(--btn-radius); padding: .34rem .8rem; }
.ph-quote { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; background: rgba(11,34,51,.88); color: #fff; border-radius: 1rem; padding: 1rem 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; backdrop-filter: blur(4px); }
.ph-quote small { display: block; margin-top: .35rem; font-family: var(--font-mono); font-weight: 400; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }

.trust-section { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.trust-photo { aspect-ratio: 1.3 / 1; }
.trust-copy .eyebrow { margin-bottom: 1.1rem; }
.trust-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 1rem; }
.trust-copy > p { color: var(--muted); font-size: 1.06rem; margin: 0 0 1.6rem; max-width: 34rem; }
.trust-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.trust-points li { display: flex; gap: 1rem; align-items: flex-start; }
.tp-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.tp-icon svg { width: 22px; height: 22px; }
.trust-points h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.trust-points p { margin: 0; color: var(--muted); font-size: .95rem; }

.how-split { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: stretch; }
.how-photo { min-height: 100%; }
.how-photo > img { position: absolute; inset: 0; object-position: 50% 15%; }
.how-split .how-grid { grid-template-columns: 1fr; }

.page-hero-photo { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; text-align: left; }
.page-hero-photo p { margin-left: 0; margin-right: 0; }
.page-hero-photo .ph { aspect-ratio: 1.25 / 1; }
.page-hero-photo .ph > img { object-position: 50% 30%; }

.legal-banner { max-width: 800px; margin: 28px auto 0; padding: 0 max(5vw, 24px); }
.legal-banner .ph { height: clamp(150px, 26vw, 240px); border-radius: 1.3rem; }
.legal-banner .ph > img { object-position: 50% var(--pos, 30%); }
.legal-banner .ph-quote { left: 1rem; right: auto; bottom: 1rem; font-size: .98rem; padding: .7rem 1rem; max-width: 70%; }

.cta-card.cta-photo { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; text-align: left; padding: clamp(1.6rem, 4vw, 3.2rem); }
.cta-photo .cta-copy { position: relative; }
.cta-photo p { margin-left: 0; }
.cta-photo .cta-actions { justify-content: flex-start; }
.cta-photo .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 1.2rem; box-shadow: none; border-color: rgba(185,221,235,.3); }
.cta-photo .ph > img { object-fit: cover; }

@media (max-width: 1080px) {
  .trust-section, .how-split, .page-hero-photo, .cta-card.cta-photo { grid-template-columns: 1fr; }
  .how-photo { min-height: 340px; }
  .page-hero-photo { text-align: center; }
  .page-hero-photo p { margin-left: auto; margin-right: auto; }
  .hero-photo { max-width: 620px; }
}
@media (max-width: 720px) {
  .ph-card { width: 62%; }
  .cta-card.cta-photo { text-align: center; }
  .cta-photo p { margin-left: auto; }
  .cta-photo .cta-actions { justify-content: center; }
}

.cta-photo .ph-logo { aspect-ratio: 1 / 1; max-width: 420px; justify-self: center; width: 100%; }
.cta-photo .ph-logo > img { object-fit: contain; }

/* ---------- views (nerpa from every side) ---------- */
.views-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.view-card { margin: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.view-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.view-card .ph { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 1.42 / 1; }
.view-card .ph > img { object-position: 50% 20%; }
.view-card figcaption { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.view-tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.view-card h3 { font-size: 1.12rem; margin: 0; }
.view-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 1080px) { .views-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .views-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- video tour, free tool, guides (ported from the previous landing) ---------- */
.video-section, .resources-section { max-width: 1240px; margin: 0 auto; }
.video-frame { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 1.5rem; overflow: hidden; background: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.video-note { max-width: 640px; margin: 1.2rem auto 0; text-align: center; color: var(--muted); font-size: .95rem; }
.guide-banner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 1.4rem; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem); box-shadow: var(--shadow-soft); }
.guide-banner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: .8rem 0 .5rem; }
.guide-banner p { margin: 0; color: var(--muted); max-width: 40rem; }
.gb-btn { flex-shrink: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.guide-card { display: flex; flex-direction: column; gap: .5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); padding: 1.4rem 1.35rem 1.2rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--ink); }
.gc-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.gc-icon svg { width: 21px; height: 21px; }
.guide-card .tag { align-self: flex-start; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.guide-card h3 { font-size: 1.05rem; margin: 0; }
.guide-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.guide-card .more { margin-top: auto; padding-top: .5rem; font-size: .86rem; font-weight: 600; color: var(--signal); }
.guide-all { text-align: center; margin: 2rem 0 0; }
.guide-all a { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
@media (max-width: 1080px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } .guide-banner { flex-direction: column; align-items: flex-start; } }

/* ---------- ported from the previous landing: guides, tools, agents ---------- */
.legal-content, .agents-page-section { max-width: 860px; margin: 0 auto; padding: 48px 5vw; }
.guide-layout { max-width: 860px; margin: 0 auto; padding: 40px 5vw 40px; }
.guide-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.6rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.guide-back:hover { color: var(--primary); }
.guide-layout h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; }
.guide-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: 1rem 0 2rem; color: var(--muted); font-size: .85rem; }
.guide-answer { margin: 0 0 2.4rem; padding: 24px 28px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 1rem; }
.guide-answer > strong { display: block; margin-bottom: .5rem; color: var(--signal); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.guide-answer p { margin: 0; color: var(--text); }
.guide-answer p strong { color: var(--text); }
.guide-toc { margin: 0 0 2.6rem; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.guide-toc > strong { display: block; margin-bottom: .7rem; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .5rem; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: flex; align-items: baseline; gap: .7rem; color: var(--text); font-size: .95rem; font-weight: 500; text-decoration: none; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--primary); font-size: .8rem; font-weight: 700; }
.guide-toc a:hover { color: var(--primary); }
.guide-layout h2 { margin: 2.8rem 0 .9rem; font-size: 1.65rem; font-weight: 600; }
.guide-layout h3 { margin: 2rem 0 .7rem; font-size: 1.18rem; border-left: 4px solid var(--signal); padding-left: .75rem; }
.guide-layout p, .guide-layout li { color: var(--muted); line-height: 1.65; }
.guide-layout a { color: var(--primary); text-decoration: underline; }
.guide-layout a.btn { text-decoration: none; }
.guide-layout a.btn-primary { color: #fff; }
.guide-layout a.btn-secondary { color: var(--text); }
.guide-steps { padding-left: 0; list-style: none; counter-reset: guide-step; }
.guide-steps li { position: relative; margin: .7rem 0; padding-left: 2.4rem; counter-increment: guide-step; }
.guide-steps li::before { content: counter(guide-step); position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; color: #fff; background: var(--primary); border-radius: 50%; font-size: .8rem; font-weight: 800; }
.guide-note { margin: 1.4rem 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: .7rem; }
.guide-table { width: 100%; margin: 1.6rem 0; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: .8rem; overflow: hidden; font-size: .92rem; }
.table-scroll .guide-table { margin: 0; }
.guide-table th, .guide-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table th:not(:last-child), .guide-table td:not(:last-child) { border-right: 1px solid var(--line); }
.guide-table tbody tr:last-child td { border-bottom: none; }
.guide-table th { background: var(--bg); color: var(--text); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.guide-table td { color: var(--muted); }
.guide-table tbody tr:nth-child(even) { background: var(--bg); }
.guide-cta { display: grid; gap: .4rem; margin: 2.8rem 0; padding: 30px 32px; background: linear-gradient(135deg, var(--bg), #fff); border: 1px solid var(--line-strong); border-radius: 1.25rem; box-shadow: var(--shadow-soft); }
.guide-cta h3 { margin: 0 0 .5rem; font-size: 1.45rem; border-left: none; padding-left: 0; }
.guide-cta p { margin: 0 0 1.2rem; }
.guide-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.guide-cta .btn-primary { background: var(--signal); }
.guide-cta .btn-primary:hover { background: #17639d; }
.guides-hub-wrap { background: var(--bg); }
.guides-hub { max-width: 1240px; margin: 0 auto; padding: 40px 5vw 64px; }
.guides-hub .hub-heading { text-align: center; }
.guides-hub .hub-heading h1 { margin: .6rem 0 1rem; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
.guides-hub .hub-heading p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.guide-banner .gb-eyebrow { display: block; margin-bottom: .5rem; color: var(--primary); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.guide-banner .gb-link { flex-shrink: 0; color: var(--text); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.guide-banner .gb-link::after { content: " →"; }
.guide-banner .gb-link:hover { color: var(--primary); }
@media (max-width: 860px) {
  .guide-banner .gb-link { margin-top: .6rem; }
}
@media (max-width: 590px) {
  .guide-layout { padding: 40px 24px 32px; }
  .guide-cta { padding: 24px 20px; }
  .guide-cta-actions .btn { width: 100%; }
}
@media (max-width: 590px) {
  .guide-meta { gap: .5rem 1rem; }
  .guide-answer { padding: 18px 18px; }
  .legal-content, .agents-page-section { padding: 52px 24px; }
}
.ft-layout { max-width: 860px; margin: 0 auto; padding: 40px 5vw 72px; }
.ft-layout h1 { margin-bottom: .8rem; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.ft-layout h2 { margin: 2.4rem 0 1rem; font-size: 1.55rem; }
.ft-layout p, .ft-layout li { color: var(--muted); line-height: 1.65; }
.ft-layout a { color: var(--primary); text-decoration: underline; }
.ft-layout a.btn { text-decoration: none; }
.ft-layout a.btn-primary { color: #fff; }
.ft-subtitle { max-width: 640px; margin-bottom: 1.8rem; font-size: 1.08rem; }
.ft-card { margin: 0 0 2.6rem; padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--shadow-soft); }
.ft-panel[data-panel="idle"] { display: grid; gap: 1rem; }
.ft-dropzone { display: grid; justify-items: center; gap: .35rem; padding: 34px 20px; text-align: center; color: var(--muted); background: var(--bg); border: 2px dashed var(--signal); border-radius: 1rem; cursor: pointer; }
.ft-dropzone strong { color: var(--text); font-size: 1.05rem; }
.ft-dropzone svg { color: var(--primary); }
.ft-dropzone:hover, .ft-dropzone:focus-visible, .ft-dropzone.ft-dragover { border-color: var(--primary); background: var(--bg); }
.ft-file-help { font-size: .8rem; }
.ft-selected { margin: 0; padding: .6rem .9rem; color: var(--text) !important; background: var(--bg); border: 1px solid var(--line-strong); border-radius: .6rem; font-size: .92rem; }
.ft-turnstile { display: flex; justify-content: center; min-height: 0; }
.ft-turnstile:empty { display: none; }
.ft-terms { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; color: var(--muted) !important; }
.ft-terms input { margin-top: .25rem; accent-color: var(--primary); }
.ft-status-title { margin: 0 0 .8rem; color: var(--text) !important; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.ft-status-detail { margin: .7rem 0 0; font-size: .95rem; }
.ft-progress { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.ft-progress-bar { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.ft-spinner { width: 34px; height: 34px; margin: 1.2rem auto 0; border: 3px solid var(--ice); border-top-color: var(--primary); border-radius: 50%; animation: ft-spin 1s linear infinite; }
.ft-result { min-height: 320px; max-height: 640px; margin: 0 0 1.2rem; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: .9rem; overflow-y: auto; }
.ft-result-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.ft-cta { display: grid; gap: .4rem; margin-top: 1.8rem; padding: 26px 28px; background: linear-gradient(135deg, var(--bg), #fff); border: 1px solid var(--line-strong); border-radius: 1.1rem; }
.ft-cta h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.ft-cta p { margin: 0 0 1.1rem; }
.ft-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.ft-cta .btn-primary { background: var(--signal); }
.ft-cta .btn-primary:hover { background: #17639d; }
.ft-error-text { margin: 0 0 1rem; color: var(--signal) !important; font-weight: 600; }
.ft-trust ul, .ft-how ol, .ft-related ul { padding-left: 1.3rem; }
.ft-trust li, .ft-how li { margin: .5rem 0; }
.ft-faq h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.ft-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 590px) {
  .ft-layout { padding: 40px 24px 60px; }
  .ft-card { padding: 20px 18px; }
  .ft-cta { padding: 20px 16px; }
  .ft-cta-actions .btn, .ft-result-actions .btn { width: 100%; }
}
.ft-panel[hidden] { display: none !important; }
.ft-cta-below { display: none; margin-top: 26px; }
#ft-app ~ .ft-cta-below[data-panel="done"], #ft-app[data-state="error"] ~ .ft-cta-below[data-panel="error"] { display: block; }
.ft-result { min-height: 320px; }
.tb-layout { max-width: 1240px; }
.tb-section { position: relative; }
.tb-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; font-size: 11px; letter-spacing: .17em; color: var(--primary-hover); font-weight: 800; text-transform: uppercase; }
.tb-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--signal); border-radius: 8px; }
.tb-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.tb-layout h1 { font-family: var(--font-display); font-size: clamp(40px, 4.7vw, 64px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; margin: 0 0 13px; }
.tb-title-dot { color: var(--signal); }
.tb-subtitle { color: var(--muted); font-size: 17px; margin: 0; max-width: 620px; }
.tb-controls { display: none; align-items: center; gap: 10px; flex: 0 0 auto; margin-bottom: 5px; }
.tb-js .tb-controls { display: flex; }
.tb-counter { font-size: 12px; font-weight: 800; color: var(--muted) !important; letter-spacing: .08em; margin-right: 11px; font-variant-numeric: tabular-nums; }
.tb-counter strong { font-size: 17px; color: var(--text); letter-spacing: 0; }
.tb-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; box-shadow: 0 4px 12px rgba(31,64,53,.035); }
.tb-arrow:not(:disabled):hover { background: var(--text); border-color: var(--text); color: #fff; transform: translateY(-2px); }
.tb-arrow:disabled { opacity: .35; cursor: not-allowed; }
.tb-arrow svg { height: 19px; width: 19px; }
.tb-track { list-style: none; margin: 0; padding: 5px 2px 23px; display: flex; align-items: stretch; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-color: #cbd4d9 transparent; scrollbar-width: thin; }
.tb-js .tb-track { scrollbar-width: none; }
.tb-js .tb-track::-webkit-scrollbar { display: none; }
.tb-card { scroll-snap-align: start; position: relative; width: 355px; min-width: 355px; min-height: 362px; overflow: hidden; border-radius: 23px; border: 1px solid var(--line); background: var(--surface); padding: 28px 29px 25px; display: flex; flex-direction: column; box-shadow: 0 5px 22px rgba(23,50,45,.025); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tb-card:not(.tb-soon):hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd4d9; }
.tb-featured { background: linear-gradient(145deg, #eff4f7 0%, #fff 70%); border-color: #cbd4d9; }
.tb-featured::after { content: ''; position: absolute; right: -48px; top: -46px; width: 136px; height: 136px; border-radius: 50%; background: radial-gradient(circle, #a9dfce8a, transparent 70%); pointer-events: none; }
.tb-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.tb-icon { width: 51px; height: 51px; border: 1px solid #cbd4d9; border-radius: 15px; display: grid; place-items: center; background: var(--bg); color: var(--primary); }
.tb-icon svg { width: 24px; height: 24px; }
.tb-icon-orange { background: var(--bg); color: var(--signal); border-color: var(--line-strong); }
.tb-icon-gray { background: #eff4f7; color: #8999aa; border-color: #e5eaed; }
.tb-status { display: inline-flex; gap: 7px; align-items: center; padding: 8px 10px; border: 1px solid #cbd4d9; background: #eff4f7; border-radius: 999px; color: #2778b8 !important; font-weight: 800; font-size: 10px; letter-spacing: .055em; white-space: nowrap; text-transform: uppercase; }
.tb-dot { width: 6px; height: 6px; background: #2778b8; border-radius: 50%; }
.tb-soon-status { background: #eff4f7; border-color: #e5eaed; color: #8999aa !important; }
.tb-soon-status .tb-dot { background: #8999aa; }
.tb-cat { margin: 0 0 7px; color: #8999aa !important; text-transform: uppercase; font-weight: 800; font-size: 10px; letter-spacing: .12em; }
.tb-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 25px; font-weight: 770; letter-spacing: -.03em; line-height: 1.18; max-width: 345px; color: var(--text); }
.tb-desc { color: #4c5760 !important; font-size: 15px; line-height: 1.65; margin: 0; max-width: 350px; }
.tb-foot { margin-top: auto; padding-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-cta { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-hover) !important; text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap; }
.tb-cta:hover .tb-cta-icon { transform: translateX(3px); background: var(--primary-hover); color: #fff; }
.tb-cta-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eff4f7; transition: transform .2s, background .2s, color .2s; }
.tb-cta-icon svg { width: 16px; height: 16px; }
.tb-free { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary) !important; }
.tb-soon { background: #eff4f7; }
.tb-soon .tb-title { color: #4c5760; }
.tb-soon .tb-desc { color: #8999aa !important; }
.tb-soon-foot { color: #8999aa !important; text-transform: uppercase; font-weight: 800; font-size: 11px; letter-spacing: .12em; }
.tb-base { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 5px; }
.tb-rail { height: 3px; background: #e5eaed; border-radius: 9px; max-width: 390px; flex: 1; position: relative; overflow: hidden; }
.tb-fill { height: 100%; width: 28%; background: linear-gradient(90deg, var(--primary), #2778b8); border-radius: 9px; transition: width .14s linear; }
.tb-hint { display: inline-flex; gap: 8px; align-items: center; color: #8999aa !important; font-size: 12px; font-weight: 600; }
.tb-hint svg { width: 15px; height: 15px; }
.tb-why { border-top: 1px solid #e5eaed; margin-top: 63px; padding-top: 36px; display: grid; grid-template-columns: 245px 1fr; gap: 35px; }
.tb-why h2 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.tb-why p { margin: 0; color: #4c5760 !important; font-size: 15px; line-height: 1.9; max-width: 750px; }
.tb-why p + p { margin-top: 12px; }
.tb-why a { color: var(--primary-hover) !important; font-weight: 750; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .tb-layout { padding: 62px 24px 80px; }
  .tb-card { width: min(390px, 56%); min-width: min(390px, 56%); }
  .tb-why { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .tb-head-row { display: block; margin-bottom: 23px; }
  .tb-controls { margin-top: 24px; justify-content: flex-end; }
  .tb-counter { margin-right: auto; }
  .tb-arrow { height: 40px; width: 40px; }
  .tb-track { gap: 13px; padding: 4px 2px 22px; }
  .tb-card { min-width: 87%; width: 87%; min-height: 371px; padding: 23px 22px; border-radius: 20px; }
  .tb-icon { width: 47px; height: 47px; }
  .tb-title { font-size: 24px; }
  .tb-desc { font-size: 14px; }
  .tb-status { font-size: 9px; padding: 7px 9px; }
  .tb-why { margin-top: 42px; padding-top: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-card, .tb-arrow, .tb-cta-icon, .tb-fill { transition: none; }
}
body.mt-page .ft-layout { max-width: 1290px; }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.mt-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .9rem 1rem; }
.mt-field { display: grid; gap: .3rem; }
.mt-field-full { grid-column: 1 / -1; }
.mt-field label { color: var(--text); font-size: .86rem; font-weight: 600; }
.mt-field input, .mt-field select { height: 2.75rem; box-sizing: border-box; }
.mt-field textarea { min-height: 2.75rem; }
.mt-field input, .mt-field select, .mt-field textarea { padding: .6rem .75rem; color: var(--text); font-family: inherit; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; }
.mt-field input:focus, .mt-field select:focus, .mt-field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.mt-field textarea { resize: vertical; }
.mt-hint { color: var(--muted) !important; font-size: .78rem; font-weight: 400; }
.mt-field label .mt-hint { margin-left: .35rem; }
.mt-counter { justify-self: end; color: var(--muted) !important; font-variant-numeric: tabular-nums; font-size: .78rem; }
.mt-turnstile { grid-column: 1 / -1; justify-content: flex-start; margin: .2rem 0 .5rem; }
.mt-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7rem; }
.mt-form-actions .btn-large { flex: 1; }
.mt-note { grid-column: 1 / -1; margin: 0; color: var(--muted) !important; font-size: .8rem; }
.mt-error { margin: 0 0 1.2rem; padding: 14px 18px; color: var(--signal) !important; background: var(--bg); border: 1px solid var(--line-strong); border-radius: .8rem; font-weight: 600; }
.mt-result { display: grid; gap: .8rem; align-content: start; }
.mt-result-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.mt-result-header h2 { margin: 0; font-size: 1.15rem; }
.mt-result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.mt-remaining { margin: 0; color: var(--muted) !important; font-size: .8rem; }
.mt-result-text { width: 100%; min-height: 480px; padding: 16px 18px; color: var(--text) !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; line-height: 1.55; background: var(--bg); border: 1px solid var(--line); border-radius: .9rem; }
.mt-result-text:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.mt-example-wrap { margin-top: 1rem; }
.mt-example-render { max-height: none; font-size: .92rem; }
.mt-example-toggle { margin-top: .7rem; font-size: .82rem; }
.mt-example { margin: 0; padding: 18px 20px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; line-height: 1.55; background: var(--bg); border: 1px solid var(--line); border-radius: .9rem; overflow-x: auto; white-space: pre; }
.mt-cta-below { margin-top: 26px; }
.mt-result-render { min-height: 480px; max-height: 720px; overflow-y: auto; padding: 18px 22px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: .9rem; font-size: .95rem; line-height: 1.6; }
.mt-result-render:empty::after { content: "Your minutes will appear here. Fill in the form and click Generate minutes, or click Get blank template to start from an empty structure."; color: var(--muted); }
.mt-result-render h1 { font-size: 1.3rem; margin: .2rem 0 .8rem; }
.mt-result-render h2 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; }
.mt-result-render h3 { font-size: .98rem; margin: 1.1rem 0 .4rem; }
.mt-result-render h1:first-child, .mt-result-render h2:first-child, .mt-result-render h3:first-child { margin-top: 0; }
.mt-result-render p { margin: .5rem 0; color: var(--text); }
.mt-result-render ul, .mt-result-render ol { margin: .5rem 0; padding-left: 1.4rem; }
.mt-result-render li { margin: .25rem 0; color: var(--text); line-height: 1.55; }
.mt-result-render table { margin: .6rem 0; border-collapse: collapse; font-size: .88rem; width: 100%; }
.mt-result-render th, .mt-result-render td { padding: .4rem .65rem; border: 1px solid var(--line); text-align: left; }
.mt-result-render th { background: var(--surface); font-weight: 600; }
@media (max-width: 860px) {
  .mt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mt-grid { grid-template-columns: 1fr; }
  .mt-form { grid-template-columns: 1fr; }
  .mt-result-actions { flex-wrap: nowrap; overflow-x: auto; }
  .mt-result-actions .btn { flex-shrink: 0; }
}
@media (max-width: 590px) {
  .mt-form-actions .btn, .mt-result-actions .btn { flex-shrink: 0; }
}
@keyframes ft-spin { to { transform: rotate(360deg); } }
.desktop-nav a.active { color: var(--signal); }

.glass-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); }
.gradient-text { color: var(--signal); }
.badge { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coat-slate); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); padding: .32rem .85rem; }

/* balanced headline wrapping (no one-word last lines) */
.section-title, .page-hero h1, .trust-copy h2, .cta-card h2, .guide-banner h2 { text-wrap: balance; }

/* sections inside ported article layouts manage their own spacing (the global `section` padding is for page sections) */
.ft-layout section, .guide-layout section, .guides-hub-wrap { padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; }
.agents-page-section { padding: 20px; }

@media (max-width: 720px) {
  .guide-layout .guide-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mt-form-actions .btn, .mt-result-actions .btn { flex: 1 1 100%; flex-shrink: 1; }
}
@media (max-width: 860px) {
  .mt-grid, .mt-form { grid-template-columns: minmax(0, 1fr); }
  .mt-field input, .mt-field select, .mt-field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
}
@media (max-width: 860px) {
  .mt-result, .mt-result-header, .mt-result-actions, .mt-result-render { min-width: 0; max-width: 100%; }
  .mt-result-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
  .mt-result-actions .btn { flex: 1 1 auto; }
  .mt-result-render { overflow-x: auto; }
}
.nav-actions .nav-btn { white-space: nowrap; }

/* keep the hero single-column on tablets/phones (must come after the desktop .hero override) */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}
