/* ══════════════════════════════════════════════════════════════════════════════
   Atlora public pages — fonts, nav, footer
   Loaded by _PublicLayout.cshtml for all public-facing pages.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ───────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('font-files/InterVariable.woff2?v=da4bac6f-7f56-4f77-bb52-c3d680bcebee') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('font-files/IBMPlexMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('font-files/IBMPlexMono-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('font-files/InstrumentSerif-Italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

:root {
    /* Brand action — stays green on the CTA only */
    --nav-accent:      #1F8A5B;
    --nav-accent-deep: #0e5436;
    /* Stone editorial accent — Beta pill, link hovers */
    --nav-stone-deep:  #44403c;
    --nav-stone-tint:  #ece7e2;
    --nav-stone-line:  #d6d3d1;
    --nav-bg:          rgba(246,244,239,0.82);
    --nav-border:      rgba(231,226,212,0.6);
    --nav-text:        #1c1a14;
    --nav-text-md:     #3a362c;
    --nav-text-lt:     #74705f;
    --nav-raised:      #efebe2;
    --nav-mono:        'IBM Plex Mono', 'Courier New', monospace;
}

nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: 60px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px;
    background: var(--nav-bg);
    backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--nav-border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 29px; display: block; }
.nav-logo-tag  {
    font-size: 10px; font-weight: 600; color: var(--nav-stone-deep);
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--nav-stone-tint); border: 1px solid var(--nav-stone-line);
    padding: 3px 8px; border-radius: 999px;
}

.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-link,
a.nav-link {
    font-size: 13.5px; font-weight: 500; color: var(--nav-text-md);
    padding: 6px 0; border-radius: 0; text-decoration: none;
    transition: color .15s;
}
.nav-link:hover,
a.nav-link:hover { color: var(--nav-stone-deep); background: transparent; }
a.nav-link:visited { color: var(--nav-text-md); background: transparent; }
a.nav-link:visited:hover { color: var(--nav-stone-deep); }

.nav-link.active,
a.nav-link.active {
    color: var(--nav-text); font-weight: 700;
    background: var(--nav-stone-tint); padding: 6px 12px; border-radius: 999px;
}
a.nav-link.active:hover { color: var(--nav-text); }

.nav-cta,
a.nav-cta,
.site-nav a.nav-cta {
    font-size: 13.5px; font-weight: 600; color: #fff;
    background: var(--nav-accent); padding: 9px 16px; border-radius: 6px;
    border: 2px solid var(--nav-accent); letter-spacing: -0.005em;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.nav-cta:hover,
a.nav-cta:hover,
.site-nav a.nav-cta:hover {
    background: var(--nav-accent-deep); border-color: var(--nav-accent-deep); color: #fff;
}

/* ── Hamburger button (home page only) ───────────────────────────────────── */
.nav-hamburger {
    display: none; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: none; background: none;
    cursor: pointer; padding: 0; border-radius: 0;
    color: var(--nav-text-md); font-size: 18px;
}
.nav-hamburger:hover { color: var(--nav-stone-deep); }

/* ── Mobile drawer (home page only) ─────────────────────────────────────── */
.nav-drawer {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(246,244,239,0.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--nav-border);
    flex-direction: column; padding: 12px 24px 20px; gap: 4px;
    z-index: 199;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer .nav-link {
    font-size: 15px; padding: 11px 14px; border-radius: 8px;
    color: var(--nav-text-md); display: block;
}
.nav-drawer .nav-link:hover { background: var(--nav-raised); color: var(--nav-stone-deep); }
.nav-drawer .nav-link.active { background: var(--nav-raised); color: var(--nav-stone-deep); font-weight: 700; }
.nav-drawer .nav-cta {
    font-size: 14px; padding: 12px 18px; border-radius: 8px;
    text-align: center; margin-top: 8px; display: block;
}

@media (max-width: 960px) {
    nav.site-nav { padding: 0 24px; }
    .nav-logo-tag { display: none; }
    .nav-right { display: none; }
    .nav-hamburger { display: flex; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

:root {
    --foot-ink:        #1c1a14;
    --foot-ink-2:      #3a362c;
    --foot-muted:      #74705f;
    --foot-line:       #e7e2d4;
    --foot-accent-deep:#44403c;
}

footer.site-foot {
    padding: 48px 40px 40px;
    max-width: 1280px;
    margin: 64px auto 0;
    border-top: 1px solid var(--foot-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.site-foot-left { display: flex; align-items: center; gap: 24px; }
.site-foot-left img, .site-foot-left svg { height: 22px; display: block; }
.site-foot-copy { font-size: 12.5px; color: var(--foot-muted); }

.site-foot nav { display: flex; gap: 22px; font-size: 13px; color: var(--foot-ink-2); }
.site-foot nav a {
    color: var(--foot-ink-2);
    text-decoration: none;
    transition: color .15s;
}
.site-foot nav a:hover { color: var(--foot-accent-deep); }

@media (max-width: 640px) {
    footer.site-foot {
        padding: 36px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Shared editorial design system
   Migrated from the home page's former inline <style>. The .v3-* vocabulary is
   the public-page component library — home, security, privacy, legal, and
   family all compose from it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens (Atlora cream + green brand, stone editorial accents) ── */
:root {
    --bg:               #F6F4EF;
    --bg-deep:          #EFEBE2;
    --card:             #fdfcf9;
    --ink:              #1c1a14;
    --ink-2:            #3a362c;
    --muted:            #74705f;
    --muted-2:          #9a9482;
    --line:             #e7e2d4;
    --line-2:           #d8d2c2;
    /* Brand action — green, used only on CTAs, brand dots, illustrations, workflow arrows */
    --accent:           #1F8A5B;
    --accent-deep:      #0e5436;
    /* Stone editorial accent — replaces the previously green editorial tints */
    --stone-deep:       #44403c;
    --stone-mid:        #57534e;
    --stone-tint:       #ece7e2;
    --stone-line:       #d6d3d1;
    --stone-on-dark:    #a8a29e;
    --sans:             'Inter', 'Segoe UI', system-ui, sans-serif;
    --serif:            'Instrument Serif', Georgia, 'Times New Roman', serif;
    --mono:             'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--sans); background: var(--bg); color: var(--ink);
    line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
    position: relative;
}
::selection { background: var(--stone-tint); color: var(--stone-deep); }
a { text-decoration: none; color: inherit; }
strong { font-weight: 600; }
button { font-family: inherit; cursor: pointer; }

/* Grain overlay — paper feel, fixed, multiply */
.v3-grain {
    position: fixed; inset: 0; pointer-events: none;
    opacity: .35; mix-blend-mode: multiply; z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 .05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.page { position: relative; z-index: 1; padding-top: 60px; }

/* ════════════════════════════════════════════
   Shared section primitives
════════════════════════════════════════════ */
.v3-section { max-width: 1280px; margin: 0 auto; padding: 96px 40px; }
.v3-section.tight { padding: 64px 40px; }
.v3-divide { max-width: 1280px; margin: 0 auto; height: 1px; background: var(--line); }

.v3-section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 10.5px; color: var(--muted);
    letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px;
}
.v3-section-tag .bar { width: 24px; height: 1px; background: var(--line-2); }

.v3-h2 {
    font-family: var(--sans); font-weight: 600; font-size: 48px;
    line-height: 1.08; letter-spacing: -.022em; margin: 0 0 20px;
    color: var(--ink); text-wrap: balance; max-width: 760px;
}
.v3-h2 em {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    color: var(--stone-deep); letter-spacing: -.015em;
}
.v3-h2-sub {
    font-size: 17px; color: var(--ink-2); line-height: 1.55;
    max-width: 620px; text-wrap: pretty; margin: 0;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.v3-hero {
    padding-top: 72px; padding-bottom: 32px;
    display: flex; flex-direction: column; align-items: center;
}
.v3-hero-inner {
    padding: 0 40px; display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.v3-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .14em; color: var(--stone-deep);
    background: var(--stone-tint); border: 1px solid var(--stone-line);
    padding: 6px 13px; border-radius: 999px;
}
.v3-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
    box-shadow: 0 0 0 4px rgba(31,138,91,.18);
}
.v3-eyebrow--legal,
.v3-eyebrow--fam,
.v3-eyebrow--home {
    font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
    padding: 8px 17px;
    background: rgba(31,138,91,.1); border-color: rgba(31,138,91,.28); color: var(--accent-deep);
}

.v3-h1 {
    font-family: var(--sans); font-weight: 600; font-size: 72px;
    line-height: 1.02; letter-spacing: -.028em;
    margin: 22px 0; color: var(--ink); text-wrap: balance; max-width: 920px;
}
.v3-h1 em {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    color: var(--stone-deep); letter-spacing: -.015em;
    font-size: 1.04em; display: inline-block;
}

.v3-lede {
    font-size: 19px; line-height: 1.55; color: var(--ink-2);
    max-width: 620px; text-wrap: pretty; margin: 0;
}

.v3-cta-row {
    display: flex; gap: 14px; margin-top: 30px;
    align-items: center; flex-wrap: wrap; justify-content: center;
}
.v3-btn-primary {
    background: var(--accent); color: #fff;
    font-weight: 600; font-size: 15px; padding: 14px 22px; border-radius: 6px;
    border: 2px solid var(--accent); letter-spacing: -.005em;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background .15s, color .15s, border-color .15s;
}
.v3-btn-primary:hover {
    background: var(--accent-deep); border-color: var(--accent-deep); color: #fff;
}
.v3-btn-ghost {
    font-size: 15px; padding: 14px 18px; font-weight: 600; color: var(--ink);
    border-radius: 6px; background: transparent;
    border: 2px solid var(--line-2);
    transition: background .15s, color .15s, border-color .15s;
    display: inline-flex; align-items: center;
}
.v3-btn-ghost:hover { background: var(--bg-deep); border-color: var(--line-2); color: var(--ink); }

.v3-trust {
    display: flex; gap: 22px; margin-top: 26px; font-size: 13px;
    color: var(--muted); align-items: center; flex-wrap: wrap; justify-content: center;
}
.v3-trust span { display: inline-flex; align-items: center; gap: 7px; }
.v3-trust .chk {
    width: 14px; height: 14px; border-radius: 999px;
    background: var(--stone-tint); color: var(--stone-deep);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; border: 1px solid var(--stone-line);
}

/* ════════════════════════════════════════════
   VERTICAL EDITIONS (home) — Family / Legal
════════════════════════════════════════════ */
.v3-verticals { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.v3-vcard {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 24px 60px -40px rgba(50,30,12,.28);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.v3-vcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 70px -38px rgba(50,30,12,.34);
    border-color: var(--stone-line);
}
.v3-vcard__top {
    padding: 30px 32px 26px; border-bottom: 1px solid #efe9da; position: relative;
    background: linear-gradient(180deg, #fbf6ee, var(--card));
}
.v3-vcard.legal .v3-vcard__top { background: linear-gradient(180deg, #f4f1ec, var(--card)); }
.v3-vcard__icrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.v3-vcard__ic {
    width: 50px; height: 50px; border-radius: 13px;
    background: var(--stone-tint); color: var(--stone-deep);
    display: flex; align-items: center; justify-content: center; border: 1px solid var(--stone-line);
}
.v3-vcard__ic svg { width: 24px; height: 24px; }
.v3-vcard__tag {
    font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted); text-align: right;
}
.v3-vcard__tag b { display: block; color: var(--stone-deep); font-weight: 600; font-size: 10px; }
.v3-vcard__kicker {
    font-size: 12.5px; font-weight: 600; color: var(--stone-mid);
    letter-spacing: .01em; margin-bottom: 8px;
}
.v3-vcard__h {
    font-family: var(--sans); font-weight: 600; font-size: 27px; line-height: 1.12;
    letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); text-wrap: balance;
}
.v3-vcard__h em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--stone-deep); }
.v3-vcard__p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.v3-vcard__body { padding: 24px 32px 30px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.v3-vlist { display: flex; flex-direction: column; gap: 11px; }
.v3-vlist .row { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--ink); font-weight: 500; }
.v3-vlist .chk {
    width: 20px; height: 20px; border-radius: 999px;
    background: var(--stone-tint); color: var(--stone-deep); border: 1px solid var(--stone-line);
    display: flex; align-items: center; justify-content: center; flex: none; font-size: 10px; font-weight: 700;
}
.v3-vcard__foot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding-top: 20px; border-top: 1px solid #efe9da;
}
.v3-vprice { display: flex; flex-direction: column; gap: 2px; }
.v3-vprice .pl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.v3-vprice .pv { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.v3-vprice .pv b { font-family: var(--sans); font-style: normal; font-weight: 600; color: var(--stone-deep); font-size: 15px; }
.v3-vcta {
    background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
    padding: 12px 18px; border-radius: 6px; border: 2px solid var(--accent);
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; letter-spacing: -.005em;
    transition: background .15s, border-color .15s;
}
.v3-vcta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════ */
.v3-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 48px;
}
.v3-step {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 28px; position: relative;
    display: flex; flex-direction: column; gap: 14px; min-height: 340px;
}
.v3-step .stepnum {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
    color: var(--stone-mid); font-weight: 600; text-transform: uppercase;
}
.v3-step .stepart {
    height: 140px; display: flex; align-items: center; justify-content: center;
}
.v3-step .stepart img, .v3-step .stepart svg { width: 140px; height: 140px; display: block; }
.v3-step h3 {
    font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0; color: var(--ink);
}
.v3-step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.v3-step-arr {
    position: absolute; top: 50%; right: -13px;
    width: 26px; height: 26px; border-radius: 999px; background: var(--bg);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--stone-mid); z-index: 2; transform: translateY(-50%);
}

/* ════════════════════════════════════════════
   FEATURES
════════════════════════════════════════════ */
.v3-feats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 48px;
}
.v3-feat {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 24px; display: flex; flex-direction: column; gap: 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.v3-feat:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -28px rgba(50,30,12,.25);
    border-color: var(--stone-line);
}
.v3-feat .icon {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--stone-tint); color: var(--stone-deep);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--stone-line);
}
.v3-feat h4 {
    font-size: 17px; font-weight: 600; letter-spacing: -.012em; margin: 0; color: var(--ink);
}
.v3-feat p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════ */
.v3-tests {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 48px;
}
.v3-test {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.v3-test .stars { color: var(--stone-mid); letter-spacing: 2px; font-size: 14px; }
.v3-test q {
    font-family: var(--serif); font-style: italic; font-size: 21px;
    line-height: 1.4; color: var(--ink); font-weight: 400;
    quotes: "\201C" "\201D";
}
.v3-test q::before { content: open-quote; margin-right: -0.1em; }
.v3-test q::after  { content: close-quote; margin-left: -0.1em; }
.v3-test .author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.v3-test .avatar {
    width: 36px; height: 36px; border-radius: 999px;
    background: var(--stone-deep); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px;
}
.v3-test .nm   { font-size: 14px; font-weight: 600; color: var(--ink); }
.v3-test .role { font-size: 12.5px; color: var(--muted); }

/* ════════════════════════════════════════════
   FINALE (dark CTA panel)
════════════════════════════════════════════ */
.v3-finale-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.v3-finale {
    background: var(--ink); color: var(--bg);
    border-radius: 24px; padding: 80px 64px; text-align: center;
    position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto;
}
.v3-finale::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(168,162,158,.28), transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(168,162,158,.22), transparent 50%);
    pointer-events: none;
}
.v3-finale h2 {
    font-family: var(--sans); font-weight: 600; font-size: 54px;
    line-height: 1.04; letter-spacing: -.025em; margin: 0 0 18px;
    color: var(--bg); position: relative; text-wrap: balance;
}
.v3-finale h2 em {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    color: var(--stone-on-dark); letter-spacing: -.015em;
}
.v3-finale p {
    font-size: 18px; color: #cdc9bd; max-width: 580px; margin: 0 auto;
    line-height: 1.55; text-wrap: pretty; position: relative;
}
.v3-finale .cta-row {
    margin-top: 32px; display: flex; gap: 14px; justify-content: center;
    position: relative; align-items: center; flex-wrap: wrap;
}
.v3-finale .ghost-link {
    color: #cdc9bd; font-size: 14.5px; font-weight: 500;
    text-decoration: underline; text-underline-offset: 4px;
    text-decoration-color: rgba(205,201,189,.35);
}
.v3-finale .ghost-link:hover { text-decoration-color: rgba(205,201,189,.85); color: var(--bg); }

/* ════════════════════════════════════════════
   RESPONSIVE (shared editorial)
════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .v3-h1 { font-size: 58px; }
}
@media (max-width: 960px) {
    .v3-section { padding: 64px 24px; }
    .v3-finale-wrap { padding: 0 24px; }
    .v3-finale { padding: 64px 28px; border-radius: 20px; }
    .v3-steps,
    .v3-feats,
    .v3-tests { grid-template-columns: 1fr 1fr; }
    .v3-step-arr { display: none; }
}
@media (max-width: 640px) {
    .v3-h1 { font-size: 40px; }
    .v3-h2 { font-size: 32px; }
    .v3-finale h2 { font-size: 32px; }
    .v3-lede { font-size: 16px; }
    .v3-cta-row { flex-direction: column; align-items: stretch; }
    .v3-btn-primary, .v3-btn-ghost { justify-content: center; }
    .v3-steps,
    .v3-feats,
    .v3-tests { grid-template-columns: 1fr; }
    .v3-verticals { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   VERTICAL PRICING — embedded pricing sections on vertical pages (Legal, Family)
   ══════════════════════════════════════════════════════════════════════════════ */
.v3-pgrid { display: grid; gap: 20px; margin: 44px auto 0; }
.v3-pgrid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.v3-pgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.v3-pcard {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 32px 28px; display: flex; flex-direction: column; position: relative;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.v3-pcard:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(50,30,12,.25); }
.v3-pcard--featured { border-color: var(--accent); box-shadow: 0 4px 24px rgba(31,138,91,.14); }
.v3-pbadge {
    display: inline-block; width: fit-content; font-family: var(--mono); font-size: 10px;
    font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 18px;
    background: var(--stone-tint); color: var(--stone-deep); border: 1px solid var(--stone-line);
}
.v3-pbadge--accent { background: rgba(31,138,91,.12); color: var(--accent-deep); border-color: rgba(31,138,91,.25); }
.v3-pname { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; color: var(--ink); }
.v3-pdesc { font-size: 14px; color: var(--muted); margin: 0 0 22px; line-height: 1.5; min-height: 21px; }
.v3-pprice { margin-bottom: 24px; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.v3-pnum { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 42px; color: var(--stone-deep); letter-spacing: -.02em; }
.v3-pper { font-size: 14px; color: var(--muted); }
.v3-pnote { font-size: 12.5px; color: var(--muted); margin-top: 4px; width: 100%; }
.v3-plimits { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.v3-plimits li { font-size: 14px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.v3-plimits li::before { content: "✓"; color: var(--accent-deep); font-weight: 700; flex-shrink: 0; }
.v3-pcta { margin-top: auto; }
.v3-pbtn {
    display: block; width: 100%; text-align: center; padding: 12px 18px;
    border-radius: 6px; font-weight: 600; font-size: 14px; border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.v3-pbtn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.v3-pbtn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.v3-pbtn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.v3-pbtn-outline:hover { background: var(--bg-deep); }
.v3-pinclude { text-align: center; margin-top: 40px; font-size: 13px; color: var(--muted); }
.v3-pinclude strong { color: var(--ink-2); font-weight: 600; }
/* Variant: sits directly under the section sub-heading instead of below the grid. */
.v3-pinclude--lede { margin-top: 18px; text-align: left; }
@media (max-width: 860px) {
    .v3-pgrid.cols-2, .v3-pgrid.cols-3 { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}
.v3-ptoggle {
    display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px;
    padding: 4px; gap: 2px; margin: 20px 0 0;
}
.v3-ptoggle-btn {
    border: none; background: transparent; padding: 9px 18px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
    font-family: inherit; transition: background .15s, color .15s; white-space: nowrap;
}
.v3-ptoggle-btn.active { background: var(--accent); color: #fff; }
.v3-ptoggle-save {
    font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; margin-left: 6px;
    background: var(--stone-tint); color: var(--stone-deep); white-space: nowrap; display: inline-block;
}
.v3-ptoggle-btn.active .v3-ptoggle-save { background: rgba(255,255,255,.25); color: #fff; }
.v3-billing-monthly, .v3-billing-annual { display: none; align-items: baseline; gap: 5px; }
[data-billing="monthly"] .v3-billing-monthly { display: inline-flex; }
[data-billing="annual"] .v3-billing-annual { display: inline-flex; }

/* ══════════════════════════════════════════════════════════════════════════════
   SECURITY page — composes from .v3-* primitives, plus a couple of page helpers
   ══════════════════════════════════════════════════════════════════════════════ */
.sec-hero { padding-bottom: 8px; }

.sec-grid {
    display: grid; gap: 18px; margin-top: 48px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Compliance posture — editorial callout */
.sec-note {
    max-width: 860px; margin: 0 auto;
    background: var(--card); border: 1px solid var(--line);
    border-left: 4px solid var(--stone-line);
    border-radius: 0 16px 16px 0; padding: 28px 32px;
}
.sec-note h3 {
    font-size: 22px; font-weight: 600; letter-spacing: -.015em;
    margin: 0 0 10px; color: var(--ink);
}
.sec-note h3 em {
    font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--stone-deep);
}
.sec-note p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

@media (max-width: 640px) {
    .sec-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRIVACY page — editorial long-form reading column on top of .v3-* primitives
   ══════════════════════════════════════════════════════════════════════════════ */
.prv-doc { max-width: 760px; margin: 0 auto; padding: 8px 40px 0; }
.prv-block { margin-top: 56px; }
.prv-block:first-child { margin-top: 0; }
.prv-block h2 {
    font-family: var(--sans); font-weight: 600; font-size: 28px;
    line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 16px; color: var(--ink);
}
.prv-block h2 em {
    font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--stone-deep);
}
.prv-block p {
    font-size: 16.5px; line-height: 1.7; color: var(--ink-2);
    margin: 0 0 14px; text-wrap: pretty;
}
.prv-block p:last-child { margin-bottom: 0; }
.prv-block ul {
    list-style: none; margin: 0 0 14px; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.prv-block li {
    position: relative; padding-left: 22px;
    font-size: 16.5px; line-height: 1.6; color: var(--ink-2);
}
.prv-block li::before {
    content: ""; position: absolute; left: 4px; top: 11px;
    width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.prv-block a {
    color: var(--accent-deep); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-color: rgba(14,84,54,.35);
    transition: text-decoration-color .15s;
}
.prv-block a:hover { text-decoration-color: var(--accent-deep); }

.prv-callout {
    margin: 4px 0 14px;
    background: var(--card); border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0; padding: 20px 24px;
}
.prv-callout p { margin: 0; }
.prv-callout strong { color: var(--ink); }

/* Terms page — DB-stored markdown body (bare h2/p under one container, no .prv-block
   wrappers). Mirrors the .prv-block editorial typography. */
.atl-terms-doc h2 {
    font-family: var(--sans); font-weight: 600; font-size: 28px;
    line-height: 1.15; letter-spacing: -.02em; margin: 56px 0 16px; color: var(--ink);
}
.atl-terms-doc h2:first-child { margin-top: 0; }
.atl-terms-doc p {
    font-size: 16.5px; line-height: 1.7; color: var(--ink-2);
    margin: 0 0 14px; text-wrap: pretty;
}
.atl-terms-doc a {
    color: var(--accent-deep); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-color: rgba(14,84,54,.35);
    transition: text-decoration-color .15s;
}
.atl-terms-doc a:hover { text-decoration-color: var(--accent-deep); }

.prv-eff {
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); margin-top: 18px;
}

@media (max-width: 640px) {
    .prv-doc { padding: 8px 24px 0; }
    .prv-block h2 { font-size: 23px; }
    .prv-block p, .prv-block li { font-size: 15.5px; }
}

/* ════════════════════════════════════════════
   TOKENIZATION MODAL (pure-CSS :target)
════════════════════════════════════════════ */
.sec-inline-link {
    color: var(--stone-deep); text-decoration: underline;
    text-decoration-color: var(--stone-line); text-underline-offset: 2px;
    font-weight: 500;
}
.sec-inline-link:hover { text-decoration-color: var(--stone-deep); }

.sec-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.sec-modal:target { opacity: 1; visibility: visible; }
.sec-modal-scrim {
    position: absolute; inset: 0;
    background: rgba(30,20,10,.45); backdrop-filter: blur(4px);
}
.sec-modal-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 32px; box-shadow: 0 30px 80px -30px rgba(50,30,12,.45);
    transform: translateY(8px); transition: transform .2s;
}
.sec-modal:target .sec-modal-card { transform: translateY(0); }
.sec-modal-card .icon {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--stone-tint); color: var(--stone-deep);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--stone-line); margin-bottom: 16px;
}
.sec-modal-card h3 {
    font-size: 21px; font-weight: 600; letter-spacing: -.012em;
    margin: 0 0 14px; color: var(--ink);
}
.sec-modal-card p {
    font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px;
}
.sec-modal-card p:last-child { margin-bottom: 0; }
.sec-modal-close {
    position: absolute; top: 16px; right: 20px;
    font-size: 26px; line-height: 1; color: var(--muted); text-decoration: none;
}
.sec-modal-close:hover { color: var(--ink); }

/* Standalone error/not-found pages (ErrorController) — no shell, no org-category dependency. */
.atl-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
    font-family: var(--sans);
}

.atl-error-card {
    max-width: 440px;
    width: 100%;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 48px 36px;
}

.atl-error-logo {
    display: inline-block;
    margin-bottom: 32px;
}

.atl-error-logo img {
    height: 28px;
    display: block;
}

.atl-error-card h1 {
    font-size: 22px;
    color: var(--ink);
    margin: 0 0 12px;
}

.atl-error-card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.atl-error-card .atl-error-code {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted-2);
}

.atl-error-cta {
    display: inline-block;
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.atl-error-cta:hover {
    background: var(--accent-deep);
}

/* Non-prod auth gate (AuthController Gate view) — rides the error-card shell. */
.atl-gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atl-gate-input {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
}

.atl-gate-btn {
    border: none;
    cursor: pointer;
    font-family: var(--sans);
}

.atl-gate-error {
    color: var(--danger, #c0392b);
    font-size: 13px;
}
