/* ============================================================
   DMARCmetric — landing page styles
   Aesthetic: cinematic security intelligence. Deep space dark,
   luminous "verified" aqua + "threat" coral, glassmorphism, glow.
   ============================================================ */

:root{
  --bg:#05070d; --bg-2:#080b14; --bg-3:#0b0f1b;
  --ink:#eaf0f7; --muted:#8a97ad; --dim:#5b6678;
  --accent:#2fe6c4; --accent-2:#6ea8ff; --accent-3:#b69bff;
  --bad:#ff6b5e; --warn:#ffc24b;
  --glass:rgba(255,255,255,.045);
  --glass-2:rgba(255,255,255,.07);
  --glass-border:rgba(255,255,255,.09);
  --glow:rgba(47,230,196,.32);
  --grad:linear-gradient(100deg,#2fe6c4 0%,#6ea8ff 55%,#b69bff 100%);
  --font-display:'Clash Display',sans-serif;
  --font-body:'Satoshi',-apple-system,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;
  --maxw:1180px;
  --r:18px;
  /* type scale (dashboard tightening) */
  --fs-title:1.5rem; --fs-kpi:1.7rem; --fs-card:1.05rem; --fs-chip:1.05rem;
  /* structural tokens (dark defaults) */
  --line:rgba(255,255,255,.09); --track:rgba(255,255,255,.08);
  --hairline:rgba(255,255,255,.045); --panel:rgba(0,0,0,.28);
  --shadow:0 24px 60px -30px rgba(0,0,0,.85);
  --tip-bg:rgba(12,18,24,.92); --tip-ink:#e8f0f0;
  --ok-text:#4fd1a1;
  --menu-bg:#141a29;
}

[data-theme="light"]{
  --bg:#eaf0f8; --bg-2:#e2eaf4; --bg-3:#eef2f8;
  --ink:#0e1626; --muted:#54617a; --dim:#8791a5;
  --accent:#07a892; --accent-2:#356ff0; --accent-3:#7758f5;
  --bad:#e04440; --warn:#b57e00;
  --glass:#ffffff; --glass-2:#f3f7fc; --glass-border:rgba(12,22,42,.10);
  --glow:rgba(7,168,146,.20);
  --grad:linear-gradient(100deg,#07a892 0%,#356ff0 55%,#7758f5 100%);
  --line:rgba(12,22,42,.10); --track:rgba(12,22,42,.12); --hairline:rgba(12,22,42,.06);
  --panel:rgba(12,22,42,.05); --shadow:0 18px 44px -26px rgba(24,44,84,.28);
  --tip-bg:#ffffff; --tip-ink:#0e1626;
  --ok-text:#0a7d5a;
  --menu-bg:#ffffff;
}
[data-theme="light"] body::before{
  background:
    radial-gradient(820px 560px at 82% -8%, rgba(53,111,240,.10), transparent 60%),
    radial-gradient(760px 620px at 4% 4%, rgba(7,168,146,.10), transparent 60%),
    var(--bg);
}
[data-theme="light"] .grain{opacity:.03}

*{box-sizing:border-box;margin:0;padding:0}

/* [hidden] must beat every author display: rule.
   The UA sheet's `[hidden]{display:none}` is only (0,1,0) specificity, so ANY
   author rule that gives the element a display: value silently defeats it and
   `el.hidden = true` stops hiding. This trap shipped three times here —
   .app-error (06-23), #overviewView/#detailView (06-24), and the account page's
   Upgrade button (.btn{display:inline-flex}) + interval field
   (.auth-field{display:flex}) (07-28) — and was patched per-instance each time.
   This closes the CLASS: 8 elements across billing.js/dashboard.js were relying
   on `.hidden = true` and silently staying visible.
   Ref: Wiki/Patterns/Hidden-vs-Display-Toggle · apps/web/test/hidden-attribute.test.mjs */
[hidden]{display:none !important}

html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  cursor:auto;
}
/* ambient radial atmosphere behind everything */
body::before{
  content:"";position:fixed;inset:0;z-index:-3;pointer-events:none;
  background:
    radial-gradient(820px 620px at 78% -6%, rgba(110,168,255,.16), transparent 60%),
    radial-gradient(900px 700px at 6% 8%, rgba(47,230,196,.12), transparent 60%),
    radial-gradient(700px 700px at 50% 118%, rgba(182,155,255,.12), transparent 60%),
    var(--bg);
}
#auth-field{position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.9}
.grain{
  position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- typography ---- */
h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.04;letter-spacing:-.02em}
.mono{font-family:var(--font-mono);font-feature-settings:"liga" 0}
.accent{color:var(--accent)}
.dim{color:var(--dim)}
.grad{
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.section-title{font-size:clamp(2rem,4.6vw,3.4rem)}
.lead{color:var(--muted);font-size:1.06rem;max-width:54ch;margin-top:1.1rem}
.lead.center{margin-left:auto;margin-right:auto;text-align:center}
.eyebrow{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--font-mono);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--muted);margin-bottom:1.1rem;
}
.eyebrow .dot,.dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent);animation:pulse 2.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.strike{position:relative;color:var(--bad)}
.strike::after{content:"";position:absolute;left:-2%;right:-2%;top:54%;height:3px;background:var(--bad);transform:rotate(-3deg);border-radius:2px;opacity:.85}

/* ---- glass utility ---- */
.glass{
  background:linear-gradient(180deg,var(--glass-2),var(--glass));
  border:1px solid var(--glass-border);
  border-radius:var(--r);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  box-shadow:0 24px 60px -28px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---- buttons ---- */
.btn{
  --pad:.7rem 1.15rem;
  display:inline-flex;align-items:center;gap:.5rem;justify-content:center;
  font-family:var(--font-body);font-weight:700;font-size:.92rem;
  padding:var(--pad);border-radius:12px;text-decoration:none;color:var(--ink);
  border:1px solid transparent;cursor:pointer;transition:transform .18s, box-shadow .25s, background .25s;
  position:relative;white-space:nowrap;
}
.btn-lg{--pad:.92rem 1.55rem;font-size:1rem}
.btn-block{width:100%}
.btn .arrow{transition:transform .2s}
.btn:hover .arrow{transform:translateX(4px)}
.btn-primary{
  color:#04130f;background:var(--grad);
  box-shadow:0 10px 32px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 40px -10px var(--glow)}
.btn-ghost{background:var(--glass);border-color:var(--glass-border);color:var(--ink)}
.btn-ghost:hover{background:var(--glass-2);transform:translateY(-2px)}
.iconbtn{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;cursor:pointer;
  background:var(--glass);border:1px solid var(--glass-border);color:var(--muted);transition:.18s}
.iconbtn:hover{color:var(--ink);border-color:var(--accent);background:var(--glass-2)}
.iconbtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[data-theme="dark"] .theme-sun,html:not([data-theme="light"]) .theme-sun{display:block}
[data-theme="dark"] .theme-moon,html:not([data-theme="light"]) .theme-moon{display:none}
[data-theme="light"] .theme-sun{display:none}[data-theme="light"] .theme-moon{display:block}

/* ---- nav ---- */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem clamp(1rem,4vw,2.4rem);
  transition:background .3s,border-color .3s,padding .3s;
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(8,11,20,.66);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--glass-border);padding-top:.7rem;padding-bottom:.7rem;
}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink)}
.brand-name{font-family:var(--font-display);font-weight:600;font-size:1.18rem;letter-spacing:-.01em}
.brand-accent{color:var(--accent)}
.brand-mark svg{display:block}
.brand-mark .shield{fill:none;stroke:var(--accent);stroke-width:1.6;filter:drop-shadow(0 0 6px var(--glow))}
.brand-mark .check{fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.nav-links{display:flex;gap:1.6rem}
.nav-links a{color:var(--muted);text-decoration:none;font-size:.92rem;font-weight:500;transition:color .2s;position:relative}
.nav-links a:hover{color:var(--ink)}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-4px;width:0;height:1.5px;background:var(--accent);transition:width .25s}
.nav-links a:hover::after{width:100%}
.nav-cta{display:flex;gap:.6rem;align-items:center}

/* ---- mobile menu ----
   Desktop shows the links inline and hides both of these. Below 980px the links
   used to be display:none with NO replacement, so six nav destinations and the
   Sign in button were unreachable on a phone — an existing customer could not
   log in from the marketing site at all. */
.nav-toggle{
  display:none;flex-direction:column;justify-content:center;align-items:center;gap:4px;
  width:40px;height:40px;padding:0;border-radius:11px;cursor:pointer;
  background:var(--glass);border:1px solid var(--glass-border);color:var(--ink);flex:0 0 auto;
}
.nav-toggle span{display:block;width:17px;height:1.5px;border-radius:2px;background:currentColor;
  transition:transform .22s ease,opacity .15s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
/* surfaced in the panel only where the header's ghost Sign in is hidden (<=560px),
   so the two can never both be on screen */
.nav-signin{display:none}

/* ---- layout sections ---- */
main{position:relative;z-index:1}
section{padding:clamp(4rem,9vw,8rem) clamp(1rem,4vw,2.4rem);max-width:var(--maxw);margin:0 auto}
.section-head{text-align:center;max-width:42rem;margin:0 auto 3.2rem}
.section-head .eyebrow{margin-bottom:1rem}

/* ---- hero ---- */
.hero{
  min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:2.5rem;
  padding-top:8rem;
}
.hero-title{font-size:clamp(2.7rem,6.6vw,5.1rem);font-weight:600;margin:.4rem 0}
.hero-sub{color:var(--muted);font-size:1.12rem;max-width:46ch;margin-top:1.3rem}
.hero-actions{display:flex;gap:.8rem;margin-top:2rem;flex-wrap:wrap}
.hero-micro{margin-top:1.3rem;color:var(--dim);font-size:.86rem;font-family:var(--font-mono)}

/* hero glass dashboard */
.hero-panel{position:relative}
.panel-glow{position:absolute;inset:-12% var(--bleed-x,-8%) -8%;background:var(--grad);filter:blur(70px);opacity:.22;border-radius:50%}
.panel{position:relative;padding:1.3rem}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.panel-domain{display:flex;align-items:center;gap:.55rem;font-size:.95rem}
.status-dot{width:9px;height:9px;border-radius:50%}
.status-dot.ok{background:var(--accent);box-shadow:0 0 10px var(--accent)}
.pill{font-family:var(--font-mono);font-size:.72rem;padding:.28rem .6rem;border-radius:999px;font-weight:500}
.pill-ok{color:var(--accent);background:rgba(47,230,196,.12);border:1px solid rgba(47,230,196,.3)}
.pill-warn{color:var(--warn);background:rgba(255,194,75,.12);border:1px solid rgba(255,194,75,.3)}
.panel-chart{margin:.4rem 0 1.1rem}
.bars{display:flex;align-items:flex-end;gap:5px;height:118px}
.bars .bar{flex:1;border-radius:4px 4px 2px 2px;background:linear-gradient(180deg,var(--accent),rgba(47,230,196,.25));opacity:.9;transform-origin:bottom;animation:grow .9s cubic-bezier(.2,.8,.2,1) both}
.bars .bar.bad{background:linear-gradient(180deg,var(--bad),rgba(255,107,94,.2))}
@keyframes grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.axis{display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:.66rem;color:var(--dim);margin-top:.5rem}
.panel-sources{display:flex;flex-direction:column;gap:.5rem}
.src{display:flex;align-items:center;justify-content:space-between;font-size:.85rem;padding:.5rem .7rem;border-radius:10px;background:rgba(255,255,255,.025)}
.src.alert{background:rgba(255,107,94,.07);border:1px solid rgba(255,107,94,.22)}
.src-name{display:flex;align-items:center;gap:.5rem}
.led{width:7px;height:7px;border-radius:50%}
.led.ok{background:var(--accent);box-shadow:0 0 8px var(--accent)}
.led.bad{background:var(--bad);box-shadow:0 0 8px var(--bad)}
.bad{color:var(--bad)}
.dns-chip{position:absolute;left:6%;right:6%;bottom:-26px;padding:.7rem .9rem;font-size:.72rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---- strip ---- */
.strip{display:flex;align-items:center;gap:2rem;justify-content:center;flex-wrap:wrap;padding-top:2rem;padding-bottom:2rem;opacity:.85}
.strip-label{font-size:.8rem;color:var(--dim);letter-spacing:.04em}
.strip-logos{display:flex;gap:1.7rem;list-style:none;flex-wrap:wrap;justify-content:center}
.strip-logos li{font-size:1rem;color:var(--muted);font-weight:500;opacity:.7;transition:opacity .2s,color .2s}
.strip-logos li:hover{opacity:1;color:var(--ink)}

/* ---- problem ---- */
.problem-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.xmlcard{padding:1.1rem;font-size:.78rem}
.xml-head{font-size:.72rem;padding-bottom:.7rem;border-bottom:1px solid var(--glass-border);margin-bottom:.8rem}
pre.xml{white-space:pre;overflow-x:auto;line-height:1.7;color:var(--muted)}
pre.xml .t{color:var(--accent-2)}
pre.xml .k{color:var(--dim)}
.xml-foot{margin-top:.9rem;padding-top:.8rem;border-top:1px solid var(--glass-border);font-size:.8rem}
.arrow-down{color:var(--bad);font-weight:700;margin-right:.3rem}

/* ---- features ---- */
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.feat{padding:1.5rem 1.3rem;transition:transform .25s,border-color .25s,background .25s}
.feat:hover{transform:translateY(-5px);border-color:rgba(47,230,196,.35)}
.feat-ic{display:block;margin-bottom:.9rem;color:var(--accent)}
.feat-ic svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px var(--glow))}
.feat h3{font-size:1.12rem;margin-bottom:.45rem}
.feat p{color:var(--muted);font-size:.9rem;line-height:1.5}

/* ---- AI spotlight ---- */
.ai{position:relative}
.ai-glow{position:absolute;inset:0;z-index:-1;background:radial-gradient(620px 380px at 80% 40%,rgba(110,168,255,.16),transparent 65%)}
.ai-inner{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.ticks{list-style:none;margin-top:1.6rem;display:flex;flex-direction:column;gap:.7rem}
.ticks li{display:flex;align-items:center;gap:.7rem;color:var(--ink);font-size:.98rem}
.ticks li::before{content:"✓";color:#04130f;background:var(--accent);width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:.7rem;font-weight:900;box-shadow:0 0 12px var(--glow)}
.ai-card{padding:1.6rem}
.ai-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--glass-border)}
.ai-body{color:var(--ink);font-size:1.04rem;line-height:1.6}
.ai-body strong{color:var(--accent)}
.ai-action{margin-top:1.1rem;padding-top:1.1rem;border-top:1px solid var(--glass-border);color:var(--muted);font-size:.94rem}
.ai-do{display:inline-block;font-family:var(--font-mono);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);border:1px solid rgba(47,230,196,.35);border-radius:6px;padding:.15rem .45rem;margin-right:.5rem}

/* ---- how ---- */
.steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;counter-reset:s}
.step{padding:1.7rem 1.5rem;position:relative}
.step-n{font-size:1.5rem;color:var(--accent);opacity:.85;display:block;margin-bottom:.9rem}
.step h3{font-size:1.2rem;margin-bottom:.5rem}
.step p{color:var(--muted);font-size:.93rem}
.step-dns{display:block;margin-top:1rem;font-size:.74rem;color:var(--muted);background:rgba(0,0,0,.35);padding:.6rem .7rem;border-radius:8px;border:1px solid var(--glass-border);overflow-x:auto}

/* ---- pricing ---- */
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;align-items:start}
.plan{padding:1.9rem 1.6rem;position:relative;transition:transform .25s}
.plan:hover{transform:translateY(-5px)}
.plan-feature{border-color:rgba(47,230,196,.4);box-shadow:0 28px 70px -30px var(--glow), inset 0 1px 0 rgba(255,255,255,.08)}
.plan-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);font-family:var(--font-mono);font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:#04130f;background:var(--grad);padding:.3rem .7rem;border-radius:999px;font-weight:700}
.plan-name{font-size:1.3rem;margin-bottom:.6rem}
.plan-price{margin-bottom:1.3rem}
.plan-price .amt{font-family:var(--font-display);font-size:2.6rem;font-weight:600}
.plan-price .per{color:var(--dim);font-size:.9rem;margin-left:.2rem}
.plan-feats{list-style:none;display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.6rem}
.plan-feats li{color:var(--muted);font-size:.92rem;padding-left:1.4rem;position:relative}
.plan-feats li::before{content:"+";position:absolute;left:0;color:var(--accent);font-weight:700}

/* ---- final cta ---- */
.cta-final{max-width:var(--maxw)}
.cta-card{position:relative;text-align:center;padding:clamp(2.5rem,6vw,4.5rem);overflow:hidden}
.cta-glow{position:absolute;inset:-40% 0 auto 0;height:80%;background:var(--grad);filter:blur(90px);opacity:.16}
.cta-card .btn{margin-top:1.8rem}

/* ---- footer ---- */
.footer{max-width:var(--maxw);margin:0 auto;padding:3rem clamp(1rem,4vw,2.4rem);border-top:1px solid var(--glass-border)}
.foot-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-bottom:1.6rem}
.foot-links{display:flex;gap:1.4rem;flex-wrap:wrap}
.foot-links a{color:var(--muted);text-decoration:none;font-size:.9rem}
.foot-links a:hover{color:var(--ink)}
.foot-bottom{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.78rem;padding-top:1.4rem;border-top:1px solid var(--glass-border)}

/* ---- reveal animation ---- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.is-visible{opacity:1;transform:none}
.reveal[data-d="1"]{transition-delay:.08s}.reveal[data-d="2"]{transition-delay:.16s}
.reveal[data-d="3"]{transition-delay:.24s}.reveal[data-d="4"]{transition-delay:.32s}
.reveal[data-d="5"]{transition-delay:.40s}.reveal[data-d="6"]{transition-delay:.48s}
.reveal[data-d="7"]{transition-delay:.56s}

/* ---- horizontal overflow guards ----
   Grid items default to min-width:auto, so a 1fr track REFUSES to shrink below
   its content's min-content width. Measured on an iPhone 13 Pro viewport (390px):
   the hero track resolved to 431.7px and the .showcase track to 498.3px, so the
   hero copy, the "· 30-day history" line and the example panel were all painted
   outside the viewport. body{overflow-x:hidden} then CLIPPED them rather than
   letting the page scroll — which is why the text read as cut off, and why a
   naive "can you scroll sideways?" check reported no problem.
   These are unconditional: on desktop the tracks are wide enough that min-width:0
   changes nothing, and scoping them to a breakpoint would just hide the bug again. */
.hero > *,
.showcase > *{min-width:0}
/* pre already has overflow-x:auto, but the wrapper's automatic minimum size was
   still propagating the full code-line width up into the track. With min-width:0
   the sample scrolls inside its own box, which is what a code block should do. */
.api-snip{min-width:0}

/* ---- responsive ---- */
@media(max-width:980px){
  .hero{grid-template-columns:1fr;gap:3.5rem;text-align:left}
  .ai-inner,.problem-grid{grid-template-columns:1fr;gap:2rem}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .steps,.plans{grid-template-columns:1fr}
  /* The inline row becomes a drop panel under the header; closed by default so a
     no-JS visitor sees exactly today's layout rather than a permanently open list.

     EVERY selector below is scoped to `.nav` on purpose. The KB header (.kb-nav)
     reuses the same .nav-links class but collapses at 720px, and kb.css declares
     `.kb-nav .nav-links{display:flex}` at higher specificity. An unscoped
     `.nav-links` block leaked its position/flex-direction into the KB header while
     losing only `display` — between 721 and 980px that left every KB page with a
     permanently open floating panel and no toggle to close it. Measured at 768px,
     not theorised. kb.css owns the KB variant end to end. */
  .nav .nav-toggle{display:flex}
  /* OPAQUE, and var(--bg-2) so it follows the theme instead of hardcoding a pair.
     A translucent panel with backdrop-filter was tried first and the hero headline
     read straight through it: .nav already has backdrop-filter, and a nested one
     samples its ancestor's backdrop root, so the blur never covered the page and
     .97 alpha alone was not enough. A drop panel needs legibility, not glass. */
  .nav .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;
    flex-direction:column;gap:0;padding:.35rem clamp(1rem,4vw,2.4rem) .9rem;
    background:var(--bg-2);border-bottom:1px solid var(--glass-border);
    box-shadow:0 24px 50px -30px rgba(0,0,0,.9);
  }
  .nav[data-open="true"] .nav-links{display:flex}
  /* the bar has to match the panel seamlessly, including at scrollTop 0 where
     .scrolled is off and the bar is otherwise transparent */
  .nav[data-open="true"]{background:var(--bg-2)}
  .nav .nav-links a{padding:.9rem .1rem;font-size:1rem;color:var(--ink);border-bottom:1px solid var(--hairline)}
  .nav .nav-links a:last-child{border-bottom:0}
  .nav .nav-links a::after{display:none}   /* the sliding underline is a horizontal-row affordance */
  /* the hero goes single-column HERE, so the decorative blurs start bleeding past
     a now full-width parent from this breakpoint on — not only below 560px */
  .tour-glow,.panel-glow{--bleed-x:0px}
}
@media(max-width:560px){
  .feature-grid{grid-template-columns:1fr}
  .nav-cta .btn-ghost{display:none}
  .nav-signin{display:block}   /* the ghost Sign in just went away — surface it in the panel */
  /* Static = in flow, so white-space:nowrap made the whole DNS record the grid
     track's minimum width. Wrap instead of ellipsis: the record's value is the
     interesting part, and truncating it teaches the reader nothing. */
  .dns-chip{position:static;margin-top:2rem;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important}
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
  #auth-field{display:none}
}

/* ---- dns-suggest (domain-settings record-aware diff) ---- */
.dns-suggest .dns-block { margin: .35rem 0 .6rem; }
.dns-suggest .dns-block-label { font-size: .8rem; opacity: .7; margin-bottom: .25rem; }
.dns-suggest code.dns-current,
.dns-suggest code.dns-recommended { display: block; padding: .6rem .75rem; border-radius: 8px;
  background: var(--panel); word-break: break-all; white-space: pre-wrap; font-size: .82rem; }
.dns-suggest mark.dns-add { background: rgba(80,220,180,.22); color: inherit; padding: 0 .1em; border-radius: 3px; }
.dns-suggest .dns-kept { color: var(--ok-text); font-size: .82rem; margin: .3rem 0 0; }
.dns-suggest .dns-note { font-size: .78rem; opacity: .75; margin: .3rem 0 0; }
.dns-suggest .dns-warn { margin: 0 0 .5rem; padding: .5rem .7rem; border-radius: 8px;
  background: rgba(240,110,90,.14); color: #f0a58f; font-size: .82rem; line-height: 1.45; }
.dns-suggest .dns-additive p { font-size: .85rem; line-height: 1.5; margin: 0; }
.dns-suggest .dns-ok-title { color: var(--ok-text); font-weight: 600; font-size: .9rem; margin: 0 0 .55rem;
  padding: .5rem .7rem; border-radius: 8px; background: rgba(80,220,180,.14); line-height: 1.45; }

/* ============================================================
   Launch sections — product tour, enforcement, protection, FAQ.
   Real product screenshots (apps/web/shots/*) framed on the dark canvas.
   ============================================================ */

/* framed real-product screenshot */
.shot{border-radius:16px;overflow:hidden;border:1px solid var(--glass-border);background:var(--bg-3);
  box-shadow:0 44px 90px -36px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05)}
.shot img{display:block;width:100%;height:auto}
.shot-label{display:flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-size:.72rem;
  color:var(--dim);letter-spacing:.03em;margin:0 0 .75rem}
.shot-label .led{flex:none}

/* product tour */
.tour-head{margin-bottom:2.6rem}
.tour-stage{display:grid;grid-template-columns:1.5fr 1fr;gap:1.1rem;align-items:start}
.tour-strip{grid-column:1 / -1}
.tour-side{display:grid;gap:1.1rem;align-content:start}
.tour-main{position:relative}
.tour-glow{position:absolute;inset:-40px var(--bleed-x,-20px) 20px;background:radial-gradient(60% 55% at 30% 20%,var(--glow),transparent 70%);
  filter:blur(30px);opacity:.5;z-index:-1;pointer-events:none}
.tour-actions{display:flex;justify-content:center;gap:1rem;margin-top:2.8rem;flex-wrap:wrap}

/* two-column visual showcase (enforcement / protection) */
.showcase{display:grid;grid-template-columns:1fr 1fr;gap:3.2rem;align-items:center}
.showcase .section-title{font-size:clamp(1.7rem,3.4vw,2.5rem);text-align:left}
.showcase-copy .eyebrow{margin-bottom:1rem}
.showcase-copy .lead{margin-top:1rem}
.showcase.flip .showcase-visual{order:-1}

/* enforcement: hand-set before/after DNS record */
.diffcard{margin-top:1.5rem;border:1px solid var(--glass-border);border-radius:12px;background:var(--glass);overflow:hidden}
.diffrow{display:flex;align-items:center;gap:.7rem;padding:.7rem .9rem;font-family:var(--font-mono);font-size:.8rem;word-break:break-all}
.diffrow + .diffrow{border-top:1px solid var(--glass-border)}
.diffrow .tag{flex:none;font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;padding:.2rem .45rem;border-radius:5px}
.diffrow.was .tag{color:var(--bad);background:rgba(255,107,94,.14)}
.diffrow.now{background:rgba(47,230,196,.05)}
.diffrow.now .tag{color:var(--accent);background:rgba(47,230,196,.14)}
.diffrow mark{background:rgba(47,230,196,.22);color:inherit;border-radius:3px;padding:0 .15em}

/* protection: alert type list */
.alert-list{list-style:none;display:flex;flex-direction:column;gap:.75rem;margin-top:1.5rem}
.alert-list li{display:flex;align-items:flex-start;gap:.75rem;font-size:.95rem;color:var(--muted);line-height:1.45}
.alert-list li b{color:var(--ink);font-weight:600}
.alert-list .led{margin-top:.42rem}

/* FAQ accordion (no JS — native <details>) */
.faq-list{max-width:52rem;margin:0 auto;display:flex;flex-direction:column;gap:.7rem}
.faq-item{border:1px solid var(--glass-border);border-radius:14px;background:var(--glass);overflow:hidden;transition:border-color .2s}
.faq-item[open]{border-color:rgba(47,230,196,.3)}
.faq-item summary{cursor:pointer;padding:1.15rem 1.35rem;font-weight:600;font-size:1.03rem;color:var(--ink);
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1.2rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--accent);font-size:1.4rem;line-height:1;font-weight:400;flex:none;transition:transform .2s}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{margin:0;padding:0 1.35rem 1.25rem;color:var(--muted);font-size:.95rem;line-height:1.65;max-width:60ch}
.faq-item p .mono{color:var(--ink)}

/* free-plan emphasis */
.plan.plan-free{border-color:rgba(110,168,255,.32)}
.plan-free .plan-price .amt{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.plan-note{margin-top:.9rem;font-size:.78rem;color:var(--dim);text-align:center;line-height:1.5}
.plan-feats .hl{color:var(--ink);font-weight:600}

@media(max-width:980px){
  .tour-stage,.showcase{grid-template-columns:1fr;gap:1.5rem}
  .showcase.flip .showcase-visual{order:0}
  .showcase .section-title{text-align:left}
}

/* forensic failure-sample card (hand-set, on-brand) */
.fsample{padding:1.35rem 1.45rem}
.fs-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem;gap:1rem}
.fs-rows{margin:0;font-size:.87rem}
.fs-rows > div{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-top:1px solid var(--glass-border)}
.fs-rows dt{color:var(--dim);margin:0}
.fs-rows dd{margin:0;color:var(--ink)}
.fs-rows dd.bad{color:var(--bad)}
.fs-note{margin:1.05rem 0 0;font-size:.8rem;color:var(--muted);display:flex;gap:.55rem;align-items:flex-start;line-height:1.5;
  padding:.65rem .8rem;border-radius:9px;background:rgba(47,230,196,.06);border:1px solid rgba(47,230,196,.18)}

/* trust strip */
.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1.1rem;margin-top:3.4rem}
.trust{padding:1.25rem 1.2rem;border:1px solid var(--glass-border);border-radius:14px;background:var(--glass)}
.trust-ic{display:block;color:var(--accent);margin-bottom:.75rem}
.trust-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px var(--glow))}
.trust b{display:block;font-size:.95rem;margin-bottom:.28rem;color:var(--ink)}
.trust span{font-size:.82rem;color:var(--muted);line-height:1.5}

/* teams: workspace + roles map */
.wsmap{padding:1.45rem}
.wsmap-agency{display:flex;align-items:center;gap:.6rem;font-weight:600;margin-bottom:1rem;font-size:1rem}
.wsmap-agency .led{flex:none}
.wsmap-list{display:flex;flex-direction:column;gap:.6rem;list-style:none}
.wsmap-list li{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem .85rem;
  border:1px solid var(--glass-border);border-radius:10px;background:rgba(255,255,255,.02)}
.ws-name{display:flex;align-items:center;gap:.55rem;font-size:.9rem;font-family:var(--font-mono)}
.role-chips{display:flex;gap:.35rem;flex-wrap:wrap}
.role{font-family:var(--font-mono);font-size:.62rem;letter-spacing:.03em;padding:.16rem .45rem;border-radius:5px;color:var(--muted);background:rgba(255,255,255,.06)}
.role.owner{color:var(--accent);background:rgba(47,230,196,.13)}

/* REST API snippet */
.api-snip{margin-top:1.6rem;border:1px solid var(--glass-border);border-radius:12px;overflow:hidden;background:var(--bg-3)}
.api-snip .api-head{font-family:var(--font-mono);font-size:.7rem;color:var(--dim);letter-spacing:.03em;padding:.6rem .9rem;border-bottom:1px solid var(--glass-border)}
.api-snip pre{margin:0;padding:.9rem 1rem;font-family:var(--font-mono);font-size:.78rem;color:var(--ink);overflow-x:auto;line-height:1.75}
.api-snip .mtd{color:var(--accent)}
.api-snip .cmt{color:var(--dim)}

/* KB teaser band */
.kbsec{padding-block:clamp(2.5rem,5vw,4rem)}
.kb-card{display:flex;align-items:center;justify-content:space-between;gap:1.5rem 2.5rem;flex-wrap:wrap;
  padding:1.9rem 2.1rem;border:1px solid var(--glass-border);border-radius:var(--r);background:var(--glass)}
.kb-card h3{font-size:1.35rem;margin-bottom:.35rem}
.kb-card .kb-lead{color:var(--muted);font-size:.94rem;max-width:40ch}
.kb-links{display:flex;gap:1.5rem;flex-wrap:wrap;font-size:.92rem;align-items:center}
.kb-links a{color:var(--accent);transition:opacity .2s}
.kb-links a:hover{opacity:.75}

@media(max-width:980px){
  .trust-strip{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .trust-strip{grid-template-columns:1fr}
  .kb-card{flex-direction:column;align-items:flex-start}
}

/* ---- very narrow phones (iPhone SE class) ----
   The header carries brand + Start free + the menu toggle. At 320px that is 34px
   more than fits, and the toggle — added 2026-08-05 — is what tipped it over, so
   this is a regression guard, not a nicety. Claw the space back from gaps and
   padding rather than dropping the CTA. */
@media(max-width:380px){
  .nav{gap:.45rem;padding-inline:.75rem}
  .nav .brand-name{font-size:1rem}
  .nav-toggle{width:36px;height:36px}
}

/* ============================================================
   In-site modal (shared modal.js) — MOVED HERE 2026-08-07.
   modal.js is shared by four call sites, but its CSS was inlined per page:
   domain-settings.html and account.html each carried a copy, admin.html carried
   NONE. So on admin.html the dialog rendered completely unstyled — no backdrop,
   no centring, no max-width — as a plain block appended to the end of <body>,
   which is where the operator had to scroll to find the confirmation for a
   button they had just clicked at the top.
   The declarations below are account.html's copy (the more complete of the two,
   and the one proven in production), not a rewrite. Only `white-space:pre-line`
   is new: admin.js joins its two sentences with '\n\n' and without it they
   collapse into one run-on paragraph.
   ⛔ Do not re-inline these on a page. One definition, one place — two copies is
   how they drifted for five days without anyone noticing.
   ============================================================ */
.dm-modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;
  padding:1rem;background:color-mix(in srgb,var(--bg) 62%,transparent);backdrop-filter:blur(2px)}
.dm-modal{width:100%;max-width:440px;padding:1.6rem 1.5rem}
.dm-modal-title{font-size:1.15rem;margin-bottom:.6rem}
.dm-modal-msg{color:var(--muted);font-size:.92rem;margin-bottom:1rem;white-space:pre-line}
.dm-modal-label{display:flex;flex-direction:column;gap:.4rem;font-size:.82rem;color:var(--muted);margin-bottom:1rem}
.dm-modal-err{color:var(--bad);font-size:.86rem;margin-bottom:.8rem}
.dm-modal-actions{display:flex;justify-content:flex-end;gap:.6rem}
/* modal.js pairs this with .auth-input, which carries the look; this only makes
   the field fill the flex-column label. Every class modal.js emits is styled. */
.dm-modal-input{width:100%}
