/* NXT Signal Analyzer marketing site.
   Colours, font, radius and control heights come from the nextologies-cp brandbook tokens (css/nxt-tokens.css,
   design-a7), dark theme = the nextologies.com palette. The brandbook covers app screens, not marketing pages:
   the hero and section heading sizes below are the one addition (marked "marketing scale"). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
    margin: 0;
    font: var(--font);
    font-size: var(--fz-l);
    line-height: 1.55;
    background: var(--white);
    color: var(--text-primary, var(--black));
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; color: var(--text-primary, var(--black)); }
h1 { font-size: 2.75rem; font-weight: 700; }          /* marketing scale */
h2 { font-size: 1.875rem; font-weight: 700; }         /* marketing scale */
h3 { font-size: var(--fz-xxl); font-weight: 600; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--xl); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--m); }
.center { text-align: center; justify-content: center; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--action); color: var(--on-action); padding: 0.5rem 1rem; border-radius: 0.25rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--chrome); border-bottom: 1px solid var(--fill-subtle); }
.top-row { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: var(--fz-l); white-space: nowrap; }
.brand img { border-radius: 0.5rem; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a { color: var(--text-secondary); text-decoration: none; font-size: var(--fz); }
.nav a:hover, .nav a:focus-visible { color: var(--action); }

/* Buttons: the brandbook Button variants (primary, outlined), heights 2.5rem / 2rem, radius 0.25rem */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 2.5rem; padding: 0 1.25rem; border-radius: 0.25rem;
    font: 500 var(--fz) / 1 var(--os); text-decoration: none; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer; transition: var(--transition-ease);
}
.btn-middle { height: 2rem; padding: 0 1rem; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outlined { border-color: var(--action); color: var(--action); background: transparent; }
.btn-outlined:hover { background: var(--accent-bg, var(--fill-subtle)); }
.btn:focus-visible, .nav a:focus-visible, .link:focus-visible, summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.link { color: var(--action); }

/* Hero */
.hero { padding: 4rem 0 3rem; background: var(--chrome); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--action); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fz); font-weight: 600; margin-bottom: 0.75rem; }
.lead { font-size: var(--fz-xxxl); color: var(--text-secondary); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { font-size: var(--fz); padding: 0.25rem 0.75rem; border-radius: 0.125rem; background: var(--fill-subtle); color: var(--text-primary); }
.chips li.soon { color: var(--text-secondary); }
.hero-shot img, .split figure img { border-radius: 0.5rem; box-shadow: var(--shadow-raised, none); }
figure { margin: 0; }

/* Bands and topics */
.band { background: var(--surface-raised); padding: 3.5rem 0; }
.topic { padding: 4rem 0; border-top: 1px solid var(--fill-subtle); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid4 p { color: var(--text-secondary); font-size: var(--fz); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.split.rev > :first-child { order: 2; }
.topic p { color: var(--text-secondary); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0.25rem; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); }
.badge { display: inline-block; vertical-align: middle; font-size: var(--fz-xs); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.125rem 0.5rem; border-radius: 0.125rem; background: var(--accent-bg, var(--fill-subtle)); color: var(--accent-fg, var(--action)); font-weight: 600; }
.topic.is-focus { background: var(--surface-raised); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0 1rem; }
.plan { background: var(--white); border: 1px solid var(--fill-subtle); border-radius: 0.5rem; padding: 1.5rem; }
.plan-pro { border-color: var(--action); }
.note { color: var(--text-secondary); font-size: var(--fz); }

/* FAQ */
details { border-bottom: 1px solid var(--fill-subtle); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 600; font-size: var(--fz-xxl); }
details p { margin: 0.75rem 0 0; }

/* Get */
.get-icon { margin: 0 auto 1rem; border-radius: 1.25rem; }

/* Footer */
.foot { background: var(--chrome); padding: 2.5rem 0; border-top: 1px solid var(--fill-subtle); }
.foot-row { display: grid; gap: 0.5rem; justify-items: start; color: var(--text-secondary); font-size: var(--fz); }
.foot-row p { margin: 0; }
.fine { font-size: var(--fz-s); }

@media (max-width: 60rem) {
    .nav { display: none; }
    .top-row .btn { margin-left: auto; }
    .hero-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.rev > :first-child { order: 0; }
    .grid4 { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 2.125rem; }
}
@media (max-width: 36rem) {
    .grid4, .plans { grid-template-columns: 1fr; }
    .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Hardware: connection diagram (inline SVG, colours from tokens), DekTec cards, dock preview */
.sub { color: var(--text-secondary); max-width: var(--m); }
.diagram { margin: 2rem 0 0.5rem; }
.diagram svg { width: 100%; height: auto; }
.d-ipad { fill: var(--surface-inverse); stroke: var(--fill-strong); }
.d-box { fill: var(--white); stroke: var(--fill-muted); }
.d-dock { stroke: var(--action); stroke-width: 2; }
.d-line { stroke: var(--fill-strong); stroke-width: 2; }
.d-line.d-accent { stroke: var(--action); }
.d-arrow { fill: var(--text-secondary); }
.d-t { fill: var(--text-primary); font: 600 15px var(--os); }
.d-in { fill: var(--text-primary); font: 600 15px var(--os); }
.d-s { fill: var(--text-secondary); font: 400 12px var(--os); }
.d-s.d-acc { fill: var(--action); }
.hw-title { margin-top: 2.5rem; }
.hw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
.hw-card { background: var(--white); border: 1px solid var(--fill-subtle); border-radius: 0.5rem; padding: 1.5rem; }
.hw-card h4 { margin: 0 0 0.5rem; font-size: var(--fz-xxl); }
.hw-card p { color: var(--text-secondary); font-size: var(--fz); }
.hw-links { margin: 0; }
.dock-shots { display: grid; gap: 1rem; }
.dock-shots img { border-radius: 0.5rem; }
@media (max-width: 36rem) { .hw-cards { grid-template-columns: 1fr; } }

/* Three plans; GLITS figures */
.plans3 { grid-template-columns: repeat(3, 1fr); }
.stats { display: grid; gap: 1rem; }
.stat { background: var(--surface-raised); border: 1px solid var(--fill-subtle); border-radius: 0.5rem; padding: 1.25rem 1.5rem; display: grid; gap: 0.25rem; }
.stat-n { font-size: 1.875rem; font-weight: 700; color: var(--action); line-height: 1.1; }   /* marketing scale */
.stat-l { color: var(--text-secondary); font-size: var(--fz); }
@media (max-width: 60rem) { .plans3 { grid-template-columns: 1fr; } }

/* Sign-up (launch offer): form follows the brandbook field (outlined, label above), one primary button */
.signup .inc-title { margin-top: 1.5rem; }
.inc { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1rem; margin: 0.75rem 0 1rem; font-size: var(--fz); }
.inc dt { font-weight: 600; color: var(--text-primary); }
.inc dd { margin: 0; color: var(--text-secondary); }
.steps { margin: 1.25rem 0 0; padding-left: 1.25rem; color: var(--text-secondary); font-size: var(--fz); }
.steps li { margin-bottom: 0.5rem; }
.steps strong { color: var(--text-primary); }
.signup-card { background: var(--white); border: 1px solid var(--action); border-radius: 0.5rem; padding: 1.5rem; display: grid; gap: 0.875rem; align-self: start; }
.signup-card h3 { margin: 0; }
.field { display: grid; gap: 0.25rem; }
.field span { font-size: var(--fz-s); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); font-weight: 600; }
.field input, .field select {
    height: 2.5rem; padding: 0 0.75rem; border-radius: 0.25rem; border: 1px solid var(--fill-muted);
    background: var(--surface-raised); color: var(--text-primary); font: var(--font); font-size: var(--fz-l);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--action); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .err, .consent .err { color: var(--danger); font-size: var(--fz-s); }
.consent { display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--fz); color: var(--text-secondary); }
.consent input { margin-top: 0.2rem; accent-color: var(--action); width: 1rem; height: 1rem; flex: none; }
.hp { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: var(--fz); min-height: 1.2em; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.bad { color: var(--danger); }
.signup-card .fine { color: var(--text-secondary); margin: 0; }
.signup-card button[disabled] { opacity: 0.6; cursor: progress; }
.price { color: var(--action); font-weight: 600; font-size: var(--fz); margin: -0.25rem 0 0.75rem; }
.hero-note { margin-top: 0.75rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0 1rem; }
.gallery img { border-radius: 0.5rem; border: 1px solid var(--fill-subtle); }
.gallery figcaption { margin-top: 0.5rem; font-size: var(--fz); color: var(--text-secondary); }
.gallery figcaption strong { color: var(--text-primary); }
@media (max-width: 60rem) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .gallery { grid-template-columns: 1fr; } .inc { grid-template-columns: 1fr; } }
.price-tbd { color: var(--text-secondary); font-weight: 400; }

/* Offer mode: html[data-offer] is "waitlist" until /api/mode says "codes" (js/site.js). Waitlist never promises a code. */
html[data-offer="waitlist"] .when-codes, html[data-offer="codes"] .when-waitlist { display: none !important; }

/* Legal pages (privacy notice) */
.legal h1 { font-size: 1.875rem; }
.legal h2 { font-size: var(--fz-xxxl); margin-top: 2rem; }
.legal p, .legal li { color: var(--text-secondary); }
.legal em { color: var(--text-secondary); }

/* "Get the DekTec hardware": official logo on a white tile (the artwork is made for white), no prices */
.dektec-cta { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-top: 1.5rem;
              background: var(--white); border: 1px solid var(--fill-subtle); border-radius: 0.5rem; padding: 1.5rem; }
.dektec-logo { display: block; background: #fff; border-radius: 0.25rem; padding: 0.75rem 1rem; }   /* brand tile for third-party logo */
.dektec-logo img { width: 10rem; height: auto; }
.dektec-cta h3 { margin-bottom: 0.5rem; }
.dektec-cta p { color: var(--text-secondary); font-size: var(--fz); }
.dektec-cta .cta-row { margin: 1rem 0; }
@media (max-width: 36rem) { .dektec-cta { grid-template-columns: 1fr; } }

/* Nextologies logo (brandbook design-b40 assets/Logos/logoWhite.svg, used as is) */
.by-nxt { display: flex; align-items: center; gap: 0.375rem; color: var(--text-secondary); text-decoration: none; font-size: var(--fz-s); }
.by-nxt img { height: 1.25rem; width: auto; display: block; }
.foot-logo img { height: 2.25rem; width: auto; }
@media (max-width: 60rem) { .by-nxt span { display: none; } }
@media (max-width: 36rem) { .by-nxt { display: none; } }
