/* ============================================================================
   NQ School - marketing site
   ----------------------------------------------------------------------------
   The palette, radii and card shell are lifted from the product itself so the
   site and the app read as one thing:
     - theme_color      #0369a1 (sky-700)   - manifest.template.json
     - background_color #082f49 (sky-950)   - manifest.template.json
     - card shell       bg-white rounded-xl border-gray-100 shadow-sm
                                            - components/ui/WidgetCard.tsx
     - semantics        rose / amber / emerald, violet as a minor accent
   The app is light-only (index.css paints body #fff and ships no dark mode),
   so this site commits to light as well. Every colour is painted explicitly,
   which keeps the page correct on a dark host ground.
   ========================================================================== */

:root {
    /* Brand - Tailwind sky, the app's primary ramp */
    --sky-50:  #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-800: #075985;
    --sky-900: #0c4a6e;
    --sky-950: #082f49;

    /* Neutrals - Tailwind gray, the app's canvas and type ramp */
    --white:    #ffffff;
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantics - separate from the brand hue on purpose */
    --emerald-50:  #ecfdf5;
    --emerald-600: #059669;
    --amber-50:    #fffbeb;
    --amber-500:   #f59e0b;
    --amber-600:   #d97706;
    --rose-50:     #fff1f2;
    --rose-500:    #f43f5e;
    --rose-600:    #e11d48;
    --violet-50:   #f5f3ff;
    --violet-600:  #7c3aed;

    /* Roles */
    --canvas:      var(--gray-50);
    --surface:     var(--white);
    --card-border: var(--gray-100);
    --hairline:    var(--gray-200);
    --text:        var(--gray-900);
    --text-mid:    var(--gray-600);
    --text-soft:   var(--gray-500);
    --primary:     var(--sky-700);

    /* On the deep brand ground */
    --on-deep:      #eaf4fb;
    --on-deep-soft: #9fc2da;
    --deep-line:    rgba(255, 255, 255, .12);

    --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, .05);
    --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, .07), 0 2px 4px -2px rgba(16, 24, 40, .05);
    --shadow-lg: 0 12px 20px -8px rgba(8, 47, 73, .16), 0 4px 8px -4px rgba(8, 47, 73, .08);
    --shadow-float: 0 24px 48px -20px rgba(8, 47, 73, .45), 0 8px 16px -8px rgba(8, 47, 73, .3);

    --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-body:    "Public Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;

    --r-md: 8px;    /* rounded-lg  - controls */
    --r-lg: 12px;   /* rounded-xl  - cards */
    --r-xl: 16px;

    --gutter: 20px;
    --maxw:   1180px;

    color-scheme: light;
}

/* -- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-wrap: balance;
    color: var(--text);
    margin: 0;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--sky-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(44px, 6vw, 76px); }

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--sky-700); color: #fff;
    padding: 10px 16px; border-radius: var(--r-md);
}
.skip:focus { left: 12px; top: 12px; }

/* -- Shared type ----------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sky-700);
    background: var(--sky-50);
    border: 1px solid var(--sky-100);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.on-deep .eyebrow {
    color: var(--sky-200);
    background: rgba(56, 189, 248, .1);
    border-color: rgba(125, 211, 252, .25);
}

.h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.lede {
    font-size: clamp(1.02rem, 1.4vw, 1.14rem);
    color: var(--text-mid);
    line-height: 1.65;
}
.prose { max-width: 60ch; }
.on-deep .lede { color: var(--on-deep-soft); }
.on-deep h2, .on-deep h3 { color: #fff; }

/* -- Buttons --------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: .94rem;
    font-weight: 600;
    line-height: 1;
    padding: 13px 20px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn svg { flex: none; }
.btn-primary {
    background: var(--sky-700);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--sky-800); }
.btn-light { background: #fff; color: var(--sky-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--sky-50); }
.btn-outline { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--sky-500); color: var(--sky-700); background: var(--sky-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* -- Brand lockup ---------------------------------------------------------- */

.lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -.03em;
    color: inherit;
}
.lockup .mark {
    width: 34px; height: 34px;
    flex: none;
    border-radius: 9px;
    background: linear-gradient(160deg, var(--sky-500), var(--sky-700) 60%, var(--sky-800));
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}
.lockup .mark svg { width: 21px; height: 21px; display: block; }

/* -- Deep brand ground ----------------------------------------------------- */

.on-deep {
    background: var(--sky-950);
    color: var(--on-deep);
    position: relative;
    isolation: isolate;
}
/* A soft brand glow, not a two-stop gradient wash. */
.on-deep::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(720px 420px at 18% -10%, rgba(14, 165, 233, .28), transparent 65%),
        radial-gradient(560px 360px at 92% 8%, rgba(3, 105, 161, .32), transparent 62%);
    pointer-events: none;
}

/* -- Masthead -------------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--sky-950);
    transition: box-shadow .2s ease, background-color .2s ease;
}
.masthead.is-stuck {
    background: rgba(8, 47, 73, .92);
    backdrop-filter: saturate(1.5) blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-md);
}
.masthead-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    padding-block: 12px;
    color: #fff;
}
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav a {
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 500;
    color: var(--on-deep-soft);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--r-md);
    transition: color .15s, background-color .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.masthead-cta { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.masthead .btn { padding: 10px 16px; font-size: .87rem; }
@media (max-width: 1000px) {
    .nav { display: none; }
    .masthead-cta { margin-left: auto; }
}
@media (max-width: 460px) {
    .masthead-cta .btn-outline-light { display: none; }
}

/* -- Hero ------------------------------------------------------------------ */

.hero { padding-block: clamp(44px, 6.5vw, 80px) clamp(96px, 12vw, 150px); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(36px, 5vw, 60px);
    align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
    font-size: clamp(2.3rem, 5.4vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -.038em;
    color: #fff;
    margin-bottom: 20px;
}
.hero h1 .hl {
    color: var(--sky-300);
    /* Underscored like a field on a form the school already fills in. */
    box-shadow: inset 0 -.14em 0 rgba(56, 189, 248, .28);
}
.hero .lede { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 26px;
    font-size: .86rem;
    color: var(--on-deep-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--sky-400); flex: none; }

/* -- Product shot ---------------------------------------------------------- */

.shot {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}
.shot-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--card-border);
}
.shot-bar .sb-mark {
    width: 22px; height: 22px; border-radius: 6px; flex: none;
    background: linear-gradient(160deg, var(--sky-500), var(--sky-700));
    color: #fff; display: grid; place-items: center;
}
.shot-bar .sb-mark svg { width: 14px; height: 14px; }
.shot-bar .sb-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .84rem;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pill {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    flex: none;
}
.pill-sample { margin-left: auto; background: var(--amber-50); color: var(--amber-600); border: 1px solid #fde68a; }

.shot-body { padding: 16px; display: grid; gap: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    padding: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.tile .t-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.tile .t-ico {
    width: 24px; height: 24px; border-radius: 7px; flex: none;
    display: grid; place-items: center;
}
.tile .t-ico svg { width: 14px; height: 14px; }
.tile .t-ico.sky { background: var(--sky-50); color: var(--sky-600); }
.tile .t-ico.emerald { background: var(--emerald-50); color: var(--emerald-600); }
.tile .t-ico.rose { background: var(--rose-50); color: var(--rose-600); }
.tile .t-ico.violet { background: var(--violet-50); color: var(--violet-600); }
.tile .t-label {
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: .01em;
}
.tile .t-val {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.tile .t-sub { font-size: .74rem; color: var(--text-soft); margin-top: 3px; }
.tile .t-sub.good { color: var(--emerald-600); }
.tile .t-sub.bad { color: var(--rose-600); }

.spark {
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}
.spark-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.spark-head .sh-t { font-size: .78rem; font-weight: 600; color: var(--gray-700); }
.spark-head .sh-m { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; color: var(--text-soft); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 62px; }
.bars .bar-col { display: grid; gap: 6px; align-content: end; height: 100%; }
.bars .bar {
    background: var(--sky-100);
    border-radius: 4px 4px 2px 2px;
    min-height: 4px;
}
.bars .bar.hi { background: var(--sky-500); }
.bars .bar.low { background: var(--rose-500); }
.bars .bar-lab {
    font-family: var(--font-mono);
    font-size: .58rem;
    color: var(--gray-400);
    text-align: center;
}
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } }

/* -- Proof strip (pulled up over the hero band) ---------------------------- */

.proof-wrap { margin-top: clamp(-118px, -11vw, -84px); position: relative; z-index: 2; }
.proof {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}
.proof-item { padding: 24px 22px; border-right: 1px solid var(--card-border); }
.proof-item:last-child { border-right: 0; }
.proof-item .p-ico {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--sky-50); color: var(--sky-600);
    display: grid; place-items: center; margin-bottom: 12px;
}
.proof-item .p-ico svg { width: 17px; height: 17px; }
.proof-item .p-t {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--gray-900);
    margin-bottom: 5px;
    letter-spacing: -.015em;
}
.proof-item .p-d { font-size: .85rem; color: var(--text-soft); line-height: 1.5; }
@media (max-width: 900px) {
    .proof { grid-template-columns: 1fr 1fr; }
    .proof-item:nth-child(2n) { border-right: 0; }
    .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--card-border); }
}
@media (max-width: 520px) {
    .proof { grid-template-columns: 1fr; }
    .proof-item { border-right: 0; border-bottom: 1px solid var(--card-border); }
    .proof-item:last-child { border-bottom: 0; }
}

/* -- Section heading ------------------------------------------------------- */

.sec-head { max-width: 60ch; margin-bottom: 42px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-bottom: 14px; }

/* -- Roles ----------------------------------------------------------------- */

.roles-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}
@media (max-width: 940px) { .roles-grid { grid-template-columns: 1fr; } }

.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.role-tab {
    font-family: var(--font-display);
    font-size: .86rem;
    font-weight: 600;
    padding: 9px 15px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-mid);
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.role-tab:hover { border-color: var(--sky-300); color: var(--sky-700); }
.role-tab[aria-selected="true"] {
    background: var(--sky-700);
    border-color: var(--sky-700);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-head .ch-ico {
    width: 30px; height: 30px; border-radius: 8px; flex: none;
    background: var(--sky-50); color: var(--sky-600);
    display: grid; place-items: center;
}
.card-head .ch-ico svg { width: 16px; height: 16px; }
.card-head h3 { font-size: .98rem; letter-spacing: -.015em; }
.card-body { padding: 20px; }

.role-note { font-size: .9rem; color: var(--text-soft); margin-bottom: 20px; }
.perm-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 11px;
}
.perm-label svg { width: 13px; height: 13px; }
.perm-label.yes svg { color: var(--emerald-600); }
.perm-label.no svg { color: var(--gray-400); }
.perm-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0 0 22px; }
.perm-list:last-child { margin-bottom: 0; }
.perm {
    font-family: var(--font-body);
    font-size: .8rem;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid;
}
.perm.granted { background: var(--sky-50); border-color: var(--sky-100); color: var(--sky-800); }
.perm.denied {
    background: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-400);
    text-decoration: line-through;
}

/* -- Modules --------------------------------------------------------------- */

.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 16px;
}
.module {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.module:hover { box-shadow: var(--shadow-md); border-color: var(--sky-200); transform: translateY(-2px); }
.module .m-ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--sky-50); color: var(--sky-600);
    margin-bottom: 14px;
}
.module .m-ico svg { width: 19px; height: 19px; }
.module h3 { font-size: 1rem; margin-bottom: 12px; }
.module ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.module li {
    font-size: .88rem;
    color: var(--text-mid);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}
.module li::before {
    content: "";
    position: absolute;
    left: 2px; top: .5em;
    width: 6px; height: 6px;
    border-radius: 2px;
    background: var(--sky-200);
}

/* -- Student Intelligence -------------------------------------------------- */

.iq-head {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: end;
    margin-bottom: clamp(30px, 4vw, 46px);
}
@media (max-width: 940px) { .iq-head { grid-template-columns: 1fr; align-items: start; } }
.iq-head h2 { margin-bottom: 16px; }

.iq-aside {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--deep-line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
}
.iq-aside .ia-t {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    margin-bottom: 7px;
}
.iq-aside p { font-size: .88rem; color: var(--on-deep-soft); line-height: 1.55; }

/* The demo is a real product surface: white card on the deep ground. */
.iq-demo {
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}
.iq-demo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--card-border);
}
.iq-demo-head .idh-t {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .84rem;
    color: var(--gray-700);
}
.student-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.student-tab {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--surface);
    color: var(--text-mid);
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.student-tab:hover { border-color: var(--sky-300); color: var(--sky-700); }
.student-tab[aria-selected="true"] { background: var(--sky-700); border-color: var(--sky-700); color: #fff; }

.iq-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 880px) { .iq-body { grid-template-columns: 1fr; } }

.iq-verdict {
    padding: 22px;
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--gray-50);
}
@media (max-width: 880px) { .iq-verdict { border-right: 0; border-bottom: 1px solid var(--card-border); } }

.stu { display: flex; align-items: center; gap: 12px; }
.stu .avatar {
    width: 42px; height: 42px; border-radius: 999px; flex: none;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .88rem;
    background: var(--sky-100);
    color: var(--sky-800);
}
.stu .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -.02em;
    color: var(--gray-900);
    display: block;
}
.stu .klass { font-family: var(--font-mono); font-size: .7rem; color: var(--text-soft); display: block; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    font-size: .74rem;
    font-weight: 600;
    font-family: var(--font-display);
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid;
}
.chip[data-sev="1"] { background: var(--rose-50);    border-color: #fecdd3; color: var(--rose-600); }
.chip[data-sev="2"] { background: var(--amber-50);   border-color: #fde68a; color: var(--amber-600); }
.chip[data-sev="3"] { background: var(--sky-50);     border-color: var(--sky-200); color: var(--sky-700); }
.chip[data-sev="4"] { background: var(--violet-50);  border-color: #ddd6fe; color: var(--violet-600); }
.chip[data-sev="5"] { background: var(--emerald-50); border-color: #a7f3d0; color: var(--emerald-600); }
.chip[data-sev="0"] { background: var(--gray-100);   border-color: var(--gray-200); color: var(--gray-500); }
.chip.is-primary::after {
    content: "primary";
    font-family: var(--font-mono);
    font-weight: 400;
    margin-left: 7px;
    opacity: .7;
    font-size: .6rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.iq-rec {
    margin-top: auto;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--r-md);
    padding: 14px;
}
.iq-rec .rec-label {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sky-700);
    margin-bottom: 8px;
}
.iq-rec .rec-label svg { width: 13px; height: 13px; }
.iq-rec p { font-size: .86rem; color: var(--text-mid); line-height: 1.55; }

.metrics { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 26px; align-content: start; }
@media (max-width: 560px) { .metrics { grid-template-columns: 1fr; } }

.metric .m-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.metric .m-name { font-size: .76rem; color: var(--text-soft); margin-right: auto; }
.metric .m-val {
    font-family: var(--font-mono);
    font-size: .76rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--gray-800);
}
.metric .m-val[data-null="true"] { color: var(--gray-400); font-size: .68rem; }
.track { height: 6px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.fill {
    height: 100%;
    border-radius: 999px;
    background: var(--sky-500);
    transition: width .45s cubic-bezier(.22, .8, .3, 1), background-color .3s;
}
.fill[data-band="low"]  { background: var(--rose-500); }
.fill[data-band="mid"]  { background: var(--amber-500); }
.fill[data-band="high"] { background: var(--emerald-600); }
.fill[data-band="none"] {
    background: repeating-linear-gradient(90deg, var(--gray-200) 0 4px, transparent 4px 8px);
}

.iq-foot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border-top: 1px solid var(--card-border);
    background: var(--gray-50);
}
.iq-foot div { padding: 16px 20px; border-right: 1px solid var(--card-border); }
.iq-foot div:last-child { border-right: 0; }
.iq-foot .k {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .84rem;
    color: var(--gray-800);
    display: block;
    margin-bottom: 5px;
}
.iq-foot .v { font-size: .8rem; color: var(--text-soft); line-height: 1.5; }

.categories {
    margin-top: clamp(30px, 4vw, 46px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
}
.categories li {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--deep-line);
    border-radius: var(--r-lg);
    padding: 16px 18px;
}
.categories .cat-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.categories .dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.categories .cat-desc { font-size: .84rem; color: var(--on-deep-soft); line-height: 1.55; }

/* -- Security -------------------------------------------------------------- */

.sec-grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
@media (max-width: 920px) { .sec-grid { grid-template-columns: 1fr; } }

.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 640px) { .sec-list { grid-template-columns: 1fr; } }
.sec-list li {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}
.sec-list .st {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    color: var(--gray-900);
    margin-bottom: 7px;
}
.sec-list .st svg { width: 16px; height: 16px; color: var(--sky-600); flex: none; }
.sec-list .sd { font-size: .85rem; color: var(--text-soft); line-height: 1.55; }

/* -- Pricing --------------------------------------------------------------- */

.pricing { background: var(--surface); border-top: 1px solid var(--card-border); }
.price-head { text-align: center; max-width: 56ch; margin: 0 auto 44px; }
.price-head h2 { margin-bottom: 14px; }
.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.price-amount .amt {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    color: var(--sky-700);
    font-variant-numeric: tabular-nums;
}
.price-amount .per { font-size: .92rem; color: var(--text-soft); font-weight: 500; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 18px; }
.tier {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tier.featured {
    border-color: var(--sky-600);
    box-shadow: 0 0 0 1px var(--sky-600), var(--shadow-lg);
    position: relative;
}
.tier .tier-flag {
    position: absolute;
    top: -11px; left: 24px;
    background: var(--sky-700);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
}
.tier h3 { font-size: 1.08rem; }
.tier .tp {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sky-700);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.tier .tp small { font-weight: 500; font-size: .8rem; color: var(--text-soft); letter-spacing: 0; }
.tier > p { font-size: .89rem; color: var(--text-mid); line-height: 1.55; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tier li {
    font-size: .86rem;
    color: var(--text-mid);
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.5;
}
.tier li svg { width: 15px; height: 15px; color: var(--emerald-600); flex: none; margin-top: .2em; }
.tier .btn { margin-top: auto; }
.price-note {
    margin: 30px auto 0;
    text-align: center;
    font-size: .88rem;
    color: var(--text-soft);
    max-width: 66ch;
}

/* -- Contact --------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(30px, 4.5vw, 60px);
    align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-aside .ca-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-aside .ca-list li { display: flex; gap: 13px; align-items: flex-start; }
.contact-aside .ca-ico {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    background: var(--sky-50); color: var(--sky-600);
    display: grid; place-items: center;
}
.contact-aside .ca-ico svg { width: 17px; height: 17px; }
.contact-aside .ca-t { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--gray-900); }
.contact-aside .ca-d { font-size: .86rem; color: var(--text-soft); }
.contact-aside .ca-d a { color: var(--sky-700); font-weight: 500; }

.form-card { padding: 26px; }
@media (max-width: 480px) { .form-card { padding: 20px; } }
form { display: grid; gap: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--gray-700); }
.field label .req { color: var(--rose-600); }
.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--gray-900);
    background: var(--surface);
    border: 1px solid var(--gray-300);
    border-radius: var(--r-md);
    padding: 11px 13px;
    width: 100%;
    min-width: 0;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--rose-500); }
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(244, 63, 94, .14); }
.field .err { font-size: .76rem; color: var(--rose-600); }
.field .err:empty { display: none; }

/* iOS Safari force-zooms a focused control under 16px - same guard the app uses. */
@media (max-width: 1023.98px) {
    .field input, .field select, .field textarea { font-size: 16px; }
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
    font-size: .88rem;
    border-radius: var(--r-md);
    padding: 12px 14px;
    border: 1px solid var(--sky-100);
    background: var(--sky-50);
    color: var(--sky-800);
}
.form-status[hidden] { display: none !important; }
.form-status.ok { background: var(--emerald-50); border-color: #a7f3d0; color: #047857; }
.form-status.bad { background: var(--rose-50); border-color: #fecdd3; color: var(--rose-600); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-foot .fine { font-size: .78rem; color: var(--text-soft); max-width: 40ch; }

/* -- Footer ---------------------------------------------------------------- */

.foot { background: var(--sky-950); color: var(--on-deep-soft); padding-block: 52px 34px; }
.foot-top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--deep-line);
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 440px) { .foot-top { grid-template-columns: 1fr; } }
.foot .lockup { color: #fff; }
.foot-brand p { font-size: .87rem; color: var(--on-deep-soft); margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.foot-col h4 {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sky-300);
    margin-bottom: 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { font-size: .88rem; color: var(--on-deep-soft); text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-base {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: .8rem;
    color: var(--on-deep-soft);
    align-items: center;
}
.foot-base .sep { margin-left: auto; }
@media (max-width: 560px) { .foot-base .sep { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .module:hover { transform: none; }
}
