/* =====================================================================
   ArkWarden — shared site stylesheet
   Engraved security-print design system used by every page.
   Base layer: extracted from the homepage. Sub-page layer below restyles
   the shared page vocabulary (page-hero, prose, steps, tables, cards).
   ===================================================================== */

:root {
    --paper: #F2ECDD;
    --paper-high: #F9F4E7;
    --ink: #211733;
    --ink-soft: #5C5170;
    --ink-faint: #94899F;
    --rule: rgba(33, 23, 51, 0.16);
    --rule-strong: rgba(33, 23, 51, 0.4);
    --gold: #A87B2F;
    --gold-bright: #C8A24E;
    --violet: #5B2EAF;
    --oxblood: #8E3B32;
    --vault: #1A1230;
    --vault-text: #EFE7D4;
    --vault-text-dim: rgba(239, 231, 212, 0.55);
    --vault-line: rgba(200, 162, 78, 0.22);
    --success: #3E7C4F;
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --text: 'Newsreader', Georgia, serif;
    --mono: 'IBM Plex Mono', 'SF Mono', SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 19px;
    line-height: 1.68;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* printed-paper grain over everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--ink); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* hero load-in */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: none; }
}
.rise { opacity: 0; animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.16s; }
.rise-3 { animation-delay: 0.3s; }
.rise-4 { animation-delay: 0.44s; }
.rise-5 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .rise { opacity: 1; transform: none; transition: none; animation: none; filter: none; }
    .problem-row::after, .steps-wire::before { transform: scaleX(1); transition: none; }
    details::details-content { transition: none; }
    * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ---------- App Store badge ---------- */
.btn-appstore, .btn-appstore-header, .btn-appstore-plain {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-appstore:hover, .btn-appstore-header:hover, .btn-appstore-plain:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.btn-appstore img, .btn-appstore-header img, .btn-appstore-plain img { display: block; }

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
header.scrolled {
    background: rgba(242, 236, 221, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--rule);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1120px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-family: var(--text);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.2px;
}
.brand img { width: 42px; height: 42px; }

.header-nav { display: flex; flex-wrap: nowrap; gap: 28px; }
.header-nav a {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.header-nav a:hover { color: var(--ink); border-bottom: 1px solid var(--gold); }
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 6px;
}
.language-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.language-trigger svg { width: 18px; height: 18px; }
.language-trigger:hover,
.language-trigger:focus-visible,
.language-switcher.is-open .language-trigger {
    background: var(--rule);
    color: var(--ink);
    outline: none;
}
.language-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    min-width: 148px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--paper-high);
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: 0 18px 40px -24px rgba(40, 30, 10, 0.45);
}
.language-panel[hidden] { display: none; }
.language-panel li { margin: 0; }
.language-panel a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.language-panel a:hover,
.language-panel a:focus-visible { background: var(--rule); color: var(--ink); outline: none; }
.language-panel a.active { color: var(--ink); font-weight: 600; }
.language-panel a.active::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hamburger toggle — hidden on desktop, revealed in the mobile media query. */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--rule-strong);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Mobile navigation ----------
   On narrow screens the section links collapse behind a hamburger button.
   The panel is toggled via the `nav-open` class on the header (set in JS),
   and remains keyboard/scroll accessible. Desktop layout is untouched. */
@media (max-width: 800px) {
    .header-inner {
        padding: 12px 16px;
    }

    .nav-toggle { display: flex; }

    /* hamburger -> X when the menu is open */
    header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* keep the App Store button out of the bar on mobile (matches prior layout) */
    .header-inner > .btn-appstore-header { display: none; }

    /* Visual order is brand · globe · hamburger. The toggle stays early in the
       DOM for tab order, so `order` moves it last visually and the switcher
       takes the free space to sit beside it on the right. */
    .header-inner > .language-switcher { order: 2; margin-left: auto; margin-right: 4px; }
    .header-inner > .nav-toggle { order: 3; }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(242, 236, 221, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--rule);
        padding: 8px 16px 16px;
        box-shadow: 0 18px 40px -24px rgba(40, 30, 10, 0.45);

        /* collapsed by default — animated open/closed, no layout reflow */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s;
    }
    header.nav-open .header-nav {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .header-nav a {
        width: 100%;
        font-size: 13px;
        padding: 13px 2px;
        border-bottom: 1px solid var(--rule);
    }
    .header-nav a:last-of-type { border-bottom: none; }
    .header-nav a:hover { border-bottom: 1px solid var(--rule); color: var(--ink); }
    .header-nav a.active { color: var(--ink); }

    /* always show solid backdrop on mobile so the header reads over content */
    header { background: rgba(242, 236, 221, 0.96); border-bottom-color: var(--rule); }
}

/* ---------- Section primitives ---------- */
section { padding: 76px 0; position: relative; }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--gold);
    margin-bottom: 20px;
}
.section-kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--gold);
}
.section-head.center .section-kicker::after {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--gold);
}

h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 4.8vw, 54px);
    letter-spacing: -0.01em;
    line-height: 1.06;
    margin-bottom: 18px;
}
.section-sub {
    font-size: 20px;
    color: var(--ink-soft);
    max-width: 560px;
}
.section-sub strong { color: var(--ink); font-weight: 600; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 40px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-copy { text-align: center; }
    .hero-ctas { justify-content: center; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px solid var(--rule-strong);
    padding: 7px 14px;
    border-radius: 3px;
    margin-bottom: 30px;
}
.hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(46px, 6.4vw, 80px);
    line-height: 1.0;
    letter-spacing: -0.015em;
    margin-bottom: 26px;
}
h1 .accent {
    font-style: italic;
    color: var(--violet);
    position: relative;
}
/* Desktop keeps the whole accent phrase on one line so the gold stroke spans
   it edge to edge — the stroke belongs to the phrase, not to any fragment. */
h1 .accent:has(.accent-stroke) { white-space: nowrap; }
h1 .accent-key { white-space: nowrap; }
/* Narrow viewports: let the phrase wrap before the closing fragment, and drop
   the stroke — an absolute rule can't span a phrase broken across two lines. */
@media (max-width: 620px) {
    h1 .accent:has(.accent-stroke) { white-space: normal; }
    h1 .accent .accent-stroke { display: none; }
}
h1 .accent .accent-stroke {
    position: absolute;
    left: -2%;
    bottom: -0.14em;
    width: 104%;
    height: 0.18em;
    overflow: visible;
}
h1 .accent .accent-stroke path {
    fill: none;
    stroke: var(--gold-bright);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
    animation: drawStroke 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.9s forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

.hero-sub {
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 38px;
}
@media (max-width: 940px) { .hero-sub { margin-left: auto; margin-right: auto; } }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-ctas {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.link-quiet {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gold);
    transition: color 0.2s, border-color 0.2s;
}
.link-quiet:hover { color: var(--violet); border-bottom-color: var(--violet); }

.hero-note {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---------- Hero figure: phone + rosette + Ark ---------- */
.hero-fig {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding: 36px 30px 8px;
}

.rosette {
    position: absolute;
    top: 50%; left: 50%;
    width: 560px; height: 560px;
    transform: translate(-50%, -52%);
    pointer-events: none;
}
.rosette svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .rosette { width: 420px; height: 420px; } }

/* engraving-plate crop marks around the phone */
.plate {
    position: relative;
    padding: 22px;
}
.plate::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(var(--rule-strong) 0 0) top left / 16px 1px,
        linear-gradient(var(--rule-strong) 0 0) top left / 1px 16px,
        linear-gradient(var(--rule-strong) 0 0) top right / 16px 1px,
        linear-gradient(var(--rule-strong) 0 0) top right / 1px 16px,
        linear-gradient(var(--rule-strong) 0 0) bottom left / 16px 1px,
        linear-gradient(var(--rule-strong) 0 0) bottom left / 1px 16px,
        linear-gradient(var(--rule-strong) 0 0) bottom right / 16px 1px,
        linear-gradient(var(--rule-strong) 0 0) bottom right / 1px 16px;
    background-repeat: no-repeat;
}

.pattern-stage {
    position: relative;
    width: min(248px, 62vw);
    transform: rotate(-3deg);
}

/* iPhone shell — portrait 9:19.5 ratio.
   The bezel is a gradient painted into the border box (not a flat white
   border): gradients antialias cleanly under the stage's -3deg rotation,
   and the frame must NOT be promoted to its own GPU layer (translateZ/
   backface-visibility) or it gets rasterized before the rotation and the
   edges come out pixelated. */
.iphone-frame {
    border: 2.5px solid transparent;
    border-radius: 44px;
    padding: 0 0 28px;
    background:
        linear-gradient(#000, #000) padding-box,
        linear-gradient(155deg,
            rgba(255,255,255,0.30) 0%,
            rgba(255,255,255,0.10) 24%,
            rgba(255,255,255,0.04) 52%,
            rgba(255,255,255,0.09) 78%,
            rgba(255,255,255,0.24) 100%) border-box;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.55),
        0 26px 60px rgba(33, 23, 51, 0.35);
    position: relative;
    aspect-ratio: 9 / 19.5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.iphone-island {
    width: 80px;
    height: 24px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

.iphone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 0;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.1px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    flex-shrink: 0;
}
.iphone-status-right { display: flex; align-items: center; gap: 4px; }
.status-wifi svg, .status-cell svg, .status-battery svg { display: block; }

.iphone-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 18px 16px;
}
/* Lock-screen label. Two states share one grid cell so the copy swap on
   unlock cross-fades in place — no reflow of the pattern below it. */
.iphone-unlock-label {
    display: grid;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-align: center;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    flex-shrink: 0;
}
.iphone-unlock-label > span {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: opacity 0.32s ease;
}
.iphone-unlock-label .label-locked { opacity: 1; }
.iphone-unlock-label .label-unlocked {
    opacity: 0;
    color: #34C759;
    font-weight: 600;
}
.iphone-unlock-label .label-unlocked svg {
    width: 10px;
    height: 12px;
    flex-shrink: 0;
    overflow: visible;
}
.iphone-screen.is-unlocked .label-locked { opacity: 0; }
.iphone-screen.is-unlocked .label-unlocked { opacity: 1; }

/* The drawn trail collapses into this lock, so it occupies the same optical
   centre as the pattern grid rather than sitting in its own row. */
.pattern-lockup { position: relative; width: 88%; }
#patternSvg { width: 100%; height: auto; display: block; }

.unlock-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}
.unlock-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.unlock-mark .lock-body { fill: #34C759; }
.unlock-mark .lock-shackle {
    fill: none;
    stroke: #34C759;
    stroke-width: 5;
    stroke-linecap: round;
    transform-origin: 26px 22px;
}
.iphone-screen.is-unlocked .unlock-mark {
    opacity: 1;
    /* easeOutBack: overshoots once, then settles — the "it gave way" beat */
    transform: scale(1);
    transition: opacity 0.2s ease, transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Shackle springs open a beat after the body lands */
.iphone-screen.is-unlocked .lock-shackle {
    animation: shackleOpen 0.36s cubic-bezier(0.34, 1.4, 0.64, 1) 0.12s both;
}
@keyframes shackleOpen {
    from { transform: rotate(0deg); }
    to { transform: rotate(-32deg); }
}

@media (prefers-reduced-motion: reduce) {
    .iphone-unlock-label > span,
    .unlock-mark { transition: none; }
    .iphone-screen.is-unlocked .unlock-mark { transform: scale(1); transition: none; }
    .iphone-screen.is-unlocked .lock-shackle { animation: none; transform: rotate(-32deg); }
}

/* Ark stands beside the phone — anchored, no idle loop */
.ark-hero {
    position: absolute;
    width: 259px;
    right: -205px;
    bottom: 16px;
    pointer-events: none;
}
.ark-hero img {
    filter: drop-shadow(0 14px 18px rgba(33, 23, 51, 0.28));
}
@media (max-width: 1180px) { .ark-hero { width: 209px; right: -130px; } }
@media (max-width: 640px)  { .ark-hero { width: 154px; right: -34px; bottom: 4px; } }

.fig-caption {
    margin-top: 22px;
    text-align: center;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---------- Trust strip ---------- */
.trust-strip {
    margin-top: 84px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 17px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.trust-item svg { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; }

/* ---------- Works-with: second-factor methods (own iconography) ---------- */
.compat-strip {
    margin-top: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.compat-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.compat-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
    flex-wrap: wrap;
}
.compat-method {
    display: flex;
    align-items: center;
    gap: 11px;
}
.compat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule-strong);
    background: var(--paper-high);
    color: var(--gold);
    box-shadow: inset 0 0 0 3px var(--paper);
}
.compat-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.compat-name {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    white-space: nowrap;
}
.compat-div {
    width: 1px;
    height: 26px;
    background: var(--rule);
}
@media (max-width: 620px) {
    .compat-div { display: none; }
    .compat-methods { gap: 14px 22px; }
    .compat-name { font-size: 11px; }
}

/* ---------- PROBLEM (editorial ledger) ---------- */
.problem { padding-bottom: 80px; }
.problem .section-kicker { color: var(--oxblood); }
.problem .section-kicker::before,
.problem .section-head.center .section-kicker::after { background: var(--oxblood); }

.problem-list {
    max-width: 880px;
    margin: 0 auto;
    border-top: 1px solid var(--rule);
}
.problem-row {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 28px;
    align-items: baseline;
    padding: 40px 8px;
    transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
/* the ledger ruling draws itself as each entry scrolls into view */
.problem-row::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--rule);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.problem-row.visible::after { transform: scaleX(1); }
.problem-row:hover { padding-left: 22px; }
.problem-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    transition: color 0.3s;
}
.problem-row:hover .problem-num { color: var(--oxblood); }
.problem-row h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(23px, 3vw, 29px);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.problem-row p {
    font-size: 16.5px;
    color: var(--ink-soft);
    max-width: 600px;
}
@media (max-width: 560px) {
    .problem-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Solution / How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule);
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 36px 8px;
}
.step + .step { border-left: 1px solid var(--rule); }
@media (max-width: 880px) {
    .steps { grid-template-columns: 1fr; }
    .step + .step { border-left: none; border-top: 1px solid var(--rule); }
    .step { padding: 40px 16px; }
}

/* engraved seal numerals */
.step-num {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px; height: 62px;
    border-radius: 50%;
    border: 1px solid var(--rule-strong);
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink);
    margin-bottom: 26px;
}
.step-num::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: 0.7;
}
@keyframes sealSpin { to { transform: rotate(360deg); } }
.step:hover .step-num::after { animation: sealSpin 14s linear infinite; }
.step:hover .step-num { border-color: var(--gold); }

.step h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 10px;
}
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Features: printed index table ---------- */
.feature-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--rule);
    background: var(--paper-high);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 24px 70px -54px rgba(33, 23, 51, 0.42);
}
.feature-cell {
    position: relative;
    display: block;
    padding: 36px 30px 40px;
    text-decoration: none;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.feature-cell:nth-child(4n) { border-right: none; }
.feature-cell:nth-last-child(-n+4) { border-bottom: none; }
.feature-cell:hover { background: #F4ECD7; transform: translateY(-2px); }

@media (max-width: 980px) {
    .feature-table { grid-template-columns: 1fr 1fr; }
    .feature-cell:nth-child(4n) { border-right: 1px solid var(--rule); }
    .feature-cell:nth-child(2n) { border-right: none; }
    .feature-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--rule); }
    .feature-cell:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
    .feature-table { grid-template-columns: 1fr; }
    .feature-cell { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }
    .feature-cell:last-child { border-bottom: none !important; }
}

.f-index {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 22px;
}
.f-arrow {
    position: absolute;
    top: 32px; right: 26px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink-faint);
    transition: color 0.25s, transform 0.25s;
}
.feature-cell:hover .f-arrow {
    color: var(--violet);
    transform: translate(3px, -3px);
}
.f-icon {
    color: var(--ink-soft);
    margin-bottom: 16px;
    transition: color 0.25s;
}
.f-icon svg { width: 25px; height: 25px; stroke: currentColor; }
.feature-cell:hover .f-icon { color: var(--violet); }
.feature-cell h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 23px;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--ink);
}
.feature-cell p {
    font-size: 16.5px;
    line-height: 1.62;
    color: var(--ink-soft);
}

/* ---------- Mini-grid decoration on feature cells ---------- */
.mini-grid {
    position: absolute;
    right: 20px; bottom: 18px;
    display: grid;
    grid-template-columns: repeat(5, 5px);
    gap: 7px;
    opacity: 0.22;
    pointer-events: none;
}
.mini-grid span {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
    animation: dotPulse 2.8s ease-in-out infinite;
}
.mini-grid.violet span { background: var(--violet); }
.mini-grid span:nth-child(2)  { animation-delay: 0.10s; }
.mini-grid span:nth-child(3)  { animation-delay: 0.20s; }
.mini-grid span:nth-child(4)  { animation-delay: 0.30s; }
.mini-grid span:nth-child(5)  { animation-delay: 0.40s; }
.mini-grid span:nth-child(6)  { animation-delay: 0.50s; }
.mini-grid span:nth-child(7)  { animation-delay: 0.60s; }
.mini-grid span:nth-child(8)  { animation-delay: 0.70s; }
.mini-grid span:nth-child(9)  { animation-delay: 0.80s; }
.mini-grid span:nth-child(10) { animation-delay: 0.90s; }
.mini-grid span:nth-child(11) { animation-delay: 1.00s; }
.mini-grid span:nth-child(12) { animation-delay: 1.10s; }
.mini-grid span:nth-child(13) { animation-delay: 1.20s; }
.mini-grid span:nth-child(14) { animation-delay: 1.30s; }
.mini-grid span:nth-child(15) { animation-delay: 1.40s; }
.mini-grid span:nth-child(16) { animation-delay: 1.50s; }
.mini-grid span:nth-child(17) { animation-delay: 1.60s; }
.mini-grid span:nth-child(18) { animation-delay: 1.70s; }
.mini-grid span:nth-child(19) { animation-delay: 1.80s; }
.mini-grid span:nth-child(20) { animation-delay: 1.90s; }
.mini-grid span:nth-child(21) { animation-delay: 2.00s; }
.mini-grid span:nth-child(22) { animation-delay: 2.10s; }
.mini-grid span:nth-child(23) { animation-delay: 2.20s; }
.mini-grid span:nth-child(24) { animation-delay: 2.30s; }
.mini-grid span:nth-child(25) { animation-delay: 2.40s; }
@keyframes dotPulse { 50% { opacity: 0.25; transform: scale(0.8); } }

/* ---------- Vault panel (dark engraved plaque) ---------- */
.vault-panel {
    position: relative;
    background: var(--vault);
    color: var(--vault-text);
    padding: 80px 64px;
    box-shadow: 0 30px 70px rgba(33, 23, 51, 0.3);
}
.vault-panel::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--vault-line);
    pointer-events: none;
}
.vault-panel::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(200, 162, 78, 0.1);
    pointer-events: none;
}
@media (max-width: 760px) { .vault-panel { padding: 56px 28px; } }

.vault-panel h2 { color: var(--vault-text); }
.vault-panel .section-sub { color: var(--vault-text-dim); }
.vault-panel .section-sub strong { color: var(--vault-text); }
.vault-panel .section-kicker { color: var(--gold-bright); }
.vault-panel .section-kicker::before,
.vault-panel .section-head.center .section-kicker::after { background: var(--gold-bright); }
.vault-panel ::selection { background: var(--gold-bright); color: var(--vault); }
/* security-overview link sits on the dark panel: light text, gold underline */
.vault-panel .final-text-link {
    color: var(--vault-text);
    border-bottom-color: var(--gold-bright);
    margin-bottom: 0;
}
.vault-panel .final-text-link:hover {
    color: var(--gold-bright);
    border-bottom-color: var(--gold-bright);
}

.vault-rosette {
    position: absolute;
    top: -160px; left: 50%;
    width: 620px; height: 620px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.5;
}
.vault-rosette svg { width: 100%; height: 100%; }

/* Ark perched on the vault's top edge */
.ark-guard {
    position: absolute;
    top: 0; right: 56px;
    width: 148px;
    transform: translateY(-91%);
    pointer-events: none;
}
.ark-guard img { filter: drop-shadow(0 10px 14px rgba(33, 23, 51, 0.3)); }
@media (max-width: 760px) { .ark-guard { width: 104px; right: 22px; } }

/* ---------- Spec sheet (standards & crypto) ---------- */
.spec-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 64px;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
@media (max-width: 760px) { .spec-cols { grid-template-columns: 1fr; } }

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 15px 2px;
    border-bottom: 1px solid var(--vault-line);
    transition: border-color 0.3s;
}
.spec-row:hover { border-bottom-color: rgba(200, 162, 78, 0.55); }
.spec-row code {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    white-space: nowrap;
}
.spec-row span {
    font-size: 14px;
    color: var(--vault-text-dim);
    text-align: right;
}
@media (max-width: 420px) {
    .spec-row { flex-direction: column; gap: 2px; }
    .spec-row span { text-align: left; }
}

/* ---------- Security marquee strips ---------- */
.sec-marquee-wrap {
    margin-top: 48px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.sec-marquee-wrap::before,
.sec-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.sec-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--vault), transparent); }
.sec-marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--vault), transparent); }

.sec-marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
}
.sec-marquee-track.forward { animation: marqueeLeft 28s linear infinite; }
.sec-marquee-track.reverse { animation: marqueeRight 34s linear infinite; margin-top: 12px; }

.sec-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vault-text-dim);
    white-space: nowrap;
}
.sec-marquee-track span em {
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.06em;
    opacity: 0.5;
}
.sec-marquee-track span::after {
    content: '';
    display: inline-block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--gold-bright);
    opacity: 0.4;
    flex-shrink: 0;
}
.sec-marquee-track.forward span { color: var(--gold-bright); }
.sec-marquee-track.reverse span { color: var(--vault-text-dim); }

@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .sec-marquee-track { animation: none !important; }
}

/* ---------- Reviews ---------- */
.reviews-head {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
}
/* the meditating Ark is the only one allowed to float — it levitates */
.ark-levitate { position: relative; flex-shrink: 0; padding-bottom: 14px; }
.ark-levitate img {
    width: 108px;
    animation: levitate 6s ease-in-out infinite;
}
.ark-levitate::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 6px;
    width: 64px; height: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(33, 23, 51, 0.3), transparent 70%);
    animation: levitateShadow 6s ease-in-out infinite;
}
@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@keyframes levitateShadow {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
    50% { transform: translateX(-50%) scaleX(0.78); opacity: 0.6; }
}
@media (max-width: 640px) { .ark-levitate img { width: 78px; } }

/* ---------- Under pressure / Wing ---------- */
.pressure {
    position: relative;
    background: var(--bg-elevated);
    overflow: hidden;
}
.pressure .container-narrow { position: relative; }
.pressure .section-head { position: relative; }

/* Ark leans in to whisper from the left of the title — still, never bouncing;
   just an engraved shadow. Nudged down so it reads alongside "So you do." */
.pressure-ark {
    position: absolute;
    left: -4px; top: 46px;
    width: 118px;
    pointer-events: none;
    z-index: 2;
}
.pressure-ark img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 12px 16px rgba(33, 23, 51, 0.26));
}
.pressure-soyoudo {
    font-style: italic;
    color: var(--gold);
}
@media (max-width: 980px) {
    .pressure-ark { width: 100px; left: 8px; top: 40px; }
}
@media (max-width: 720px) {
    .pressure-ark {
        position: static;
        width: 88px;
        margin: 0 auto 6px;
    }
    .pressure-ark img { margin: 0 auto; }
}

/* ---------- Who is Ark (about page) ---------- */
.ark-who {
    display: flex;
    align-items: center;
    gap: 48px;
}
.ark-who-text {
    flex: 1;
}
.ark-who-text p {
    margin: 0 0 12px;
    line-height: 1.65;
}
.ark-who-text p:last-child { margin-bottom: 0; }
.ark-who-img {
    flex-shrink: 0;
}
.ark-who-img img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(33, 23, 51, 0.2));
}
@media (max-width: 640px) {
    .ark-who { flex-direction: column; gap: 24px; }
    .ark-who-img { order: -1; }
    .ark-who-img img { width: 140px; height: 140px; margin: 0 auto; }
}

.pressure .pull-quote {
    margin-top: 36px;
    font-size: 18px;
}
.pressure-link {
    text-align: center;
    margin-top: 30px;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule);
}
.review-card {
    padding: 44px 34px 12px;
    position: relative;
}
.review-card + .review-card { border-left: 1px solid var(--rule); }
@media (max-width: 880px) {
    .reviews { grid-template-columns: 1fr; }
    .review-card + .review-card { border-left: none; border-top: 1px solid var(--rule); }
    .review-card { padding: 36px 8px 28px; }
}

.review-card::before {
    content: '\201C';
    display: block;
    font-family: var(--serif);
    font-size: 64px;
    line-height: 0.6;
    color: var(--gold-bright);
    margin-bottom: 18px;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 13px; height: 13px; fill: var(--gold); }
.review-card p {
    font-size: 18.5px;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 22px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 11px;
}
.review-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--rule-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 16px;
    color: var(--gold);
}
.review-name {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary {
    padding: 24px 4px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}
summary:hover { color: var(--violet); }
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--gold);
    transition: transform 0.25s;
    flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { color: var(--violet); }
.faq-body {
    padding: 0 4px 26px;
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 640px;
}

.faq-contact { text-align: center; margin-top: 44px; }
.btn-faq-contact {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid var(--rule-strong);
    border-radius: 3px;
    padding: 14px 30px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-faq-contact:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* ---------- Final CTA ---------- */
.final-cta { padding-bottom: 120px; }
.final-cta .vault-panel { text-align: center; overflow: hidden; }

.final-ark {
    width: 138px;
    margin: 0 auto 26px;
    position: relative;
    z-index: 1;
}
/* one-time wave when the panel scrolls into view; again on hover */
@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    55% { transform: rotate(3deg); }
    80% { transform: rotate(-2deg); }
}
.final-ark img { transform-origin: 50% 88%; }
.final-ark.visible img { animation: wave 1.1s ease-in-out 0.5s 1; }
.final-cta .vault-panel:hover .final-ark img { animation: wave 1.1s ease-in-out 1; }

.final-cta h2 { margin-bottom: 14px; position: relative; z-index: 1; }
.final-cta .section-sub { position: relative; z-index: 1; }
.final-cta .btn-appstore { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
/* ---------- Related use cases ---------- */
.related-uc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.related-uc-item {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 14px 20px;
    border: 1px solid var(--rule);
    border-left: 2px solid var(--gold);
    background: var(--paper);
    transition: color 0.2s, border-color 0.2s;
    display: block;
}
.related-uc-item:hover { color: var(--ink); border-left-color: var(--gold); border-color: var(--vault-line); }

/* ---------- Feature links in footer ---------- */
.footer-features {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-features-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
}
.footer-features a {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-features a:hover { color: var(--gold); }
.footer-compare {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-compare a {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-compare a:hover { color: var(--gold); }

footer {
    border-top: 1px solid var(--rule);
    padding: 44px 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.footer-features { justify-content: center; }
.footer-compare { justify-content: center; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
}

/* ---------- QR + badge download block ---------- */
.download-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}
.qr-block {
    display: none;
}
.download-block .btn-appstore-plain {
    display: none;
}
@media (min-width: 768px) {
    .qr-block {
        display: flex;
        align-items: center;
        gap: 16px;
        border: 1px solid var(--rule);
        background: var(--paper);
        padding: 16px 20px;
    }
    .qr-block img {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        display: block;
    }
    .qr-block-copy {
        display: flex;
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
    .qr-block-title {
        font-family: var(--serif);
        font-size: 14px;
        font-weight: 400;
        color: var(--ink);
        line-height: 1.3;
    }
    .qr-block-sub {
        font-size: 12px;
        color: var(--ink-soft);
        line-height: 1.5;
    }
    .qr-block-copy-link {
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        color: var(--violet);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        text-align: left;
        margin-top: 2px;
    }
    .qr-block-copy-link:hover { color: var(--gold); }
    .download-block .btn-appstore-plain {
        display: inline-flex;
    }
}
@media (max-width: 767px) {
    .download-block {
        flex-direction: column;
        gap: 0;
    }
    .download-block .btn-appstore-plain {
        display: inline-flex;
    }
}

/* ---------- Finishing touches (security-print furniture) ---------- */

/* certificate frame: fixed double hairline around the viewport,
   like the border of a printed bond. Sits under the header (z 100)
   so the scrolled header bar passes over it. */
body::before {
    content: '';
    position: fixed;
    inset: 12px;
    z-index: 90;
    pointer-events: none;
    border: 1px solid rgba(33, 23, 51, 0.2);
    outline: 1px solid rgba(168, 123, 47, 0.22);
    outline-offset: 3px;
}
@media (max-width: 720px) { body::before { display: none; } }

/* the guilloché ornaments turn imperceptibly, like a watch movement */
.rosette svg, .vault-rosette svg, .page-rosette svg {
    animation: rosetteTurn 240s linear infinite;
}
@keyframes rosetteTurn { to { transform: rotate(360deg); } }

/* engraved divider between chapters: hairlines meeting a gold lozenge */
.flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.flourish::before, .flourish::after {
    content: '';
    height: 1px;
    width: min(180px, 22vw);
}
.flourish::before { background: linear-gradient(to right, transparent, var(--rule-strong)); }
.flourish::after { background: linear-gradient(to left, transparent, var(--rule-strong)); }
.flourish span {
    width: 7px; height: 7px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* registration ticks appear in the feature cell corners on hover,
   echoing the crop marks on the hero engraving plate */
.feature-cell::before, .feature-cell::after {
    content: '';
    position: absolute;
    width: 13px; height: 13px;
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.feature-cell::before {
    top: 9px; left: 9px;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}
.feature-cell::after {
    bottom: 9px; right: 9px;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}
.feature-cell:hover::before, .feature-cell:hover::after { opacity: 0.75; }

/* ink-settle: section heads sharpen as they come into view */
.section-head.reveal {
    filter: blur(7px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-head.reveal.visible { filter: none; }

/* the gold thread draws itself through the three step seals */
.steps-wire { position: relative; }
.steps-wire::before {
    content: '';
    position: absolute;
    top: 79px; /* centre of the 62px seal below the 48px step padding */
    left: 11%; right: 11%;
    height: 1px;
    background-image: repeating-linear-gradient(to right, var(--gold) 0 6px, transparent 6px 13px);
    opacity: 0.55;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.steps-wire:has(.step.visible)::before { transform: scaleX(1); }
.steps-wire .step-num { background: var(--paper); z-index: 1; }
@media (max-width: 880px) { .steps-wire::before { display: none; } }

/* FAQ entries unfold instead of snapping open (progressive enhancement) */
details { interpolate-size: allow-keywords; }
details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                content-visibility 0.4s allow-discrete;
}
details[open]::details-content { block-size: auto; }

/* the hero pattern grid invites you to draw on it */
#patternSvg.drawable { cursor: crosshair; touch-action: none; }

/* banknote microprint strip above the footer rule */
.microprint {
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0 12px;
    font-family: var(--mono);
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink-faint);
    opacity: 0.55;
    user-select: none;
}

/* =====================================================================
   Sub-page layer — feature, use-case and legal pages
   ===================================================================== */

:root {
    /* legacy aliases: older inline style="" attributes resolve to the new palette */
    --bg-primary: var(--paper);
    --bg-elevated: var(--paper-high);
    --bg-inset: #EDE4CF;
    --violet-bright: var(--violet);
    --violet-soft: var(--violet);
    --teal: var(--gold);
    --teal-soft: var(--gold);
    --teal-bright: var(--gold);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --text-disabled: var(--ink-faint);
    --divider: var(--rule);
    --radius: 3px;
    --font: var(--text);
}

.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* thin reading-progress rule at the very top */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px; width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--gold);
    z-index: 200;
    pointer-events: none;
}

.header-nav a.active { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* ---------- Page hero ---------- */
.page-hero { padding: 168px 0 64px; text-align: center; position: relative; }
.page-hero-glow, .final-glow, .closing-glow { display: none; }
.page-hero .container { position: relative; }
.page-hero h1 {
    font-size: clamp(40px, 5.6vw, 66px);
    margin-bottom: 24px;
}
.accent { font-style: italic; color: var(--violet); }
.page-hero-sub {
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 38px;
}
.page-hero-sub strong { color: var(--ink); font-weight: 600; }
.page-hero .section-kicker::after,
.final-cta .section-kicker::after,
.closing .section-kicker::after {
    content: '';
    width: 26px; height: 1px;
    background: var(--gold);
}
.page-hero .hero-ctas, .page-hero-ctas {
    display: flex;
    gap: 26px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* guilloché rosette behind page heroes */
.page-rosette {
    position: absolute;
    top: -150px; left: 50%;
    width: 640px; height: 640px;
    transform: translateX(-50%);
    pointer-events: none;
}
.page-rosette svg { width: 100%; height: 100%; display: block; }

/* ---------- Buttons (printed, quiet) ---------- */
.btn, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--rule-strong);
    border-radius: 3px;
    padding: 14px 30px;
    color: var(--ink);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    cursor: pointer;
}
.btn:hover, .btn-outline:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.btn-primary:hover { background: var(--violet); border-color: var(--violet); }

/* ---------- Pattern demo (engraving plate) ---------- */
.pattern-demo {
    padding: 0 0 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.pattern-demo-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.pattern-svg-wrap {
    position: relative;
    display: inline-block;
    background: var(--paper-high);
    border: 1px solid var(--rule);
    padding: 32px;
}
.pattern-svg-wrap::before {
    content: '';
    position: absolute;
    inset: 8px;
    pointer-events: none;
    background:
        linear-gradient(var(--rule-strong) 0 0) top left / 14px 1px,
        linear-gradient(var(--rule-strong) 0 0) top left / 1px 14px,
        linear-gradient(var(--rule-strong) 0 0) top right / 14px 1px,
        linear-gradient(var(--rule-strong) 0 0) top right / 1px 14px,
        linear-gradient(var(--rule-strong) 0 0) bottom left / 14px 1px,
        linear-gradient(var(--rule-strong) 0 0) bottom left / 1px 14px,
        linear-gradient(var(--rule-strong) 0 0) bottom right / 14px 1px,
        linear-gradient(var(--rule-strong) 0 0) bottom right / 1px 14px;
    background-repeat: no-repeat;
}
.pattern-svg-wrap svg { display: block; overflow: visible; }
.pattern-svg { display: block; }

/* ---------- Flow diagram (ledger cells) ---------- */
.flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    margin: 48px 0 64px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    background: var(--paper-high);
    border: 1px solid var(--rule);
    flex-shrink: 0;
    transition: border-color 0.3s;
}
.flow-step:hover { border-color: var(--gold); }
.flow-step code {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--violet);
    margin-bottom: 5px;
    white-space: nowrap;
}
.flow-step span {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
}
.flow-arrow { color: var(--gold); font-size: 16px; padding: 0 8px; flex-shrink: 0; align-self: center; }
@media (max-width: 640px) { .flow { justify-content: flex-start; } }

/* ---------- Stat cards ---------- */
.stat-row, .stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0 0 64px;
}
.stat-strip { margin: 56px 0 0; }
@media (max-width: 640px) { .stat-row, .stat-strip { grid-template-columns: 1fr; } }
.stat-card {
    background: var(--paper-high);
    border: 1px solid var(--rule);
    padding: 30px 22px;
    text-align: center;
}
.stat-value {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 4.5vw, 48px);
    color: var(--ink);
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 8px;
}
.stat-value .unit { font-size: 18px; color: var(--gold); }
.stat-label { font-size: 15px; color: var(--ink-soft); font-weight: 400; line-height: 1.5; }

/* ---------- Vertical numbered steps (sub-pages) ---------- */
.steps:has(.step-number) {
    display: flex;
    flex-direction: column;
    gap: 56px;
    border-top: none;
}
.steps:has(.step-number) .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 26px;
    align-items: start;
    text-align: left;
    padding: 0;
}
.steps:has(.step-number) .step + .step { border: none; }
.step-number {
    position: relative;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1px solid var(--rule-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    flex-shrink: 0;
}
.step-number::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: 0.7;
}
.step:hover .step-number { border-color: var(--gold); }
.step:hover .step-number::after { animation: sealSpin 14s linear infinite; }
.steps:has(.step-number) .step h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(23px, 3vw, 29px);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--ink);
}
.steps:has(.step-number) .step p {
    font-size: 16.5px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 14px;
}
.steps:has(.step-number) .step p:last-child { margin-bottom: 0; }
.step ul {
    margin: 14px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step li {
    font-size: 15.5px;
    color: var(--ink-soft);
    padding-left: 20px;
    position: relative;
    line-height: 1.65;
}
.step li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
}
.step strong { color: var(--ink); font-weight: 600; }

/* ---------- Pull quote ---------- */
.pull-quote {
    border-left: 2px solid var(--gold);
    background: var(--paper-high);
    padding: 22px 26px;
    margin: 32px 0 0;
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-style: italic;
}

/* ---------- Prose ---------- */
.prose { font-size: 17.5px; color: var(--ink-soft); line-height: 1.72; }
.prose h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(22px, 2.6vw, 27px);
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 48px 0 14px;
}
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--violet);
    background: var(--paper-high);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 2px 7px;
}
.prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}
.prose a:hover { color: var(--violet); }
.prose ul, .prose ol {
    margin: 16px 0 18px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.prose li {
    font-size: 16.5px;
    color: var(--ink-soft);
    padding-left: 22px;
    position: relative;
    line-height: 1.65;
}
.prose li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
}
.prose li strong { color: var(--ink); }

/* ---------- Printed tables ---------- */
.table-wrap, .slim-table-wrap, .rules-table-wrap, .chain-table-wrap, .indep-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rule);
    background: var(--paper-high);
    margin: 0 0 48px;
}
.slim-table-wrap { margin: 24px 0 40px; }
.rules-table-wrap { margin: 0 0 40px; }
.chain-table-wrap, .indep-table-wrap { margin: 32px 0 48px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
thead th {
    background: #EDE4CF;
    padding: 14px 18px;
    text-align: left;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule-strong);
}
thead th.col-aw { color: var(--violet); }
tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-soft);
    vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
tbody tr:hover td { background: #F4ECD7; }
td.col-aw { color: var(--ink) !important; }
.check { color: var(--success); font-weight: 600; }
.cross { color: var(--oxblood); font-weight: 600; }
.partial { color: var(--gold); font-weight: 600; }
.slim-table-wrap table, .rules-table-wrap table, .chain-table-wrap table, .indep-table-wrap table { font-size: 14.5px; }
.slim-table-wrap thead th, .rules-table-wrap thead th, .chain-table-wrap thead th, .indep-table-wrap thead th { padding: 12px 16px; }
.slim-table-wrap tbody td, .rules-table-wrap tbody td, .chain-table-wrap tbody td, .indep-table-wrap tbody td { padding: 13px 16px; }
.indep-table-wrap thead th:nth-child(2) { color: var(--violet); }
.indep-table-wrap thead th:nth-child(3) { color: var(--gold); }

/* ---------- Comparison table (scannable: symbol + note) ---------- */
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper-high); margin: 0 0 48px; }
.cmp-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-table-wrap thead th { background: #EDE4CF; padding: 12px 16px; text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--rule-strong); }
.cmp-table-wrap thead th:nth-child(2) { color: var(--violet); }
.cmp-table-wrap tbody td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp-table-wrap tbody tr:last-child td { border-bottom: none; }
.cmp-table-wrap tbody tr:hover td { background: #F4ECD7; }
.cmp-feat { font-weight: 600; color: var(--ink); font-size: 14px; }
.cmp-feat-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }
.cmp-sym { font-size: 17px; font-weight: 700; line-height: 1; }
.cmp-sym.yes { color: var(--success); }
.cmp-sym.no { color: var(--oxblood); }
.cmp-sym.partial { color: var(--gold); }
.cmp-val { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.cmp-cat { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 40px 0 10px; }
.cmp-cat:first-of-type { margin-top: 0; }

/* ---------- Threat list ---------- */
.threat-list { display: flex; flex-direction: column; gap: 14px; margin: 32px 0; }
.threat-item { background: var(--paper-high); border: 1px solid var(--rule); padding: 20px 24px; }
.threat-item h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 6px;
}
.threat-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.threat-head {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--ink);
    margin: 64px 0 24px;
}

/* ---------- Honesty box (certificate) ---------- */
.honesty-box {
    position: relative;
    background: var(--paper-high);
    border: 1px solid var(--rule-strong);
    padding: 36px 38px;
    margin: 40px 0;
}
.honesty-box::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed var(--gold);
    opacity: 0.55;
    pointer-events: none;
}
.honesty-box h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 23px;
    color: var(--ink);
    margin-bottom: 18px;
    position: relative;
}
.honesty-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    position: relative;
}
.honesty-list li {
    font-size: 15.5px;
    color: var(--ink-soft);
    padding-left: 22px;
    position: relative;
    line-height: 1.65;
}
.honesty-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

/* ---------- "Not stored" callout ---------- */
.not-stored {
    background: var(--paper-high);
    border: 1px solid var(--rule);
    border-left: 2px solid var(--gold);
    padding: 20px 24px;
    margin: 32px 0;
}
.not-stored p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.not-stored ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.not-stored li {
    font-size: 15.5px;
    color: var(--ink-soft);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}
.not-stored li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

/* ---------- Best practices ---------- */
.practices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
@media (max-width: 640px) { .practices-grid { grid-template-columns: 1fr; } }
.practice-card { background: var(--paper-high); border: 1px solid var(--rule); padding: 30px; }
.practice-card.do { border-top: 2px solid var(--success); }
.practice-card.avoid { border-top: 2px solid var(--oxblood); }
.practice-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.practice-label.do { color: var(--success); }
.practice-label.avoid { color: var(--oxblood); }
.practice-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.practice-card li {
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.65;
    padding-left: 18px;
    position: relative;
}
.practice-card.do li::before,
.practice-card.avoid li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 5px; height: 5px;
    border-radius: 50%;
}
.practice-card.do li::before { background: var(--success); }
.practice-card.avoid li::before { background: var(--oxblood); }
.practice-card li strong { color: var(--ink); font-weight: 600; }

/* ---------- Recovery phrase card (certificate) ---------- */
.phrase-card-visual {
    position: relative;
    background: var(--paper-high);
    border: 1px solid var(--rule-strong);
    padding: 30px;
    max-width: 480px;
    margin: 56px auto 0;
}
.phrase-card-visual::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed var(--gold);
    opacity: 0.55;
    pointer-events: none;
}
.phrase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
}
.phrase-word {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 7px 10px;
}
.phrase-num {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--gold);
    min-width: 14px;
    text-align: right;
}
.phrase-text { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.phrase-caption {
    text-align: center;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    position: relative;
}

/* ---------- Factor cards (2FA) ---------- */
.factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 56px 0; }
@media (max-width: 760px) { .factor-grid { grid-template-columns: 1fr; } }
.factor-card {
    background: var(--paper-high);
    border: 1px solid var(--rule);
    padding: 34px 28px;
    transition: border-color 0.3s, background 0.3s;
}
.factor-card:hover { border-color: var(--gold); background: #F4ECD7; }
.factor-icon {
    width: 50px; height: 50px;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.factor-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.factor-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 23px;
    color: var(--ink);
    margin-bottom: 10px;
}
.factor-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 16px; }
.factor-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 3px;
    padding: 4px 10px;
}

/* ---------- Trigger cards (Wing) ---------- */
.trigger-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
@media (max-width: 640px) { .trigger-grid { grid-template-columns: 1fr; } }
.trigger-card { background: var(--paper-high); border: 1px solid var(--rule); padding: 20px; }
.trigger-card h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 8px;
}
.trigger-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Dual vault visual (Wing) ---------- */
.dual-vault {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0 auto;
    max-width: 680px;
}
@media (max-width: 560px) { .dual-vault { grid-template-columns: 1fr; max-width: 320px; } }
.vault-card {
    position: relative;
    background: var(--paper-high);
    border: 1px solid var(--rule-strong);
    padding: 30px 24px;
    text-align: center;
    overflow: hidden;
}
.vault-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}
.vault-card.main::before { background: var(--violet); }
.vault-card.wing::before { background: var(--gold); }
.vault-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 14px;
}
.vault-pattern { margin: 0 auto 16px; }
.vault-name { font-family: var(--serif); font-size: 21px; margin-bottom: 4px; }
.vault-name.main-color { color: var(--violet); }
.vault-name.wing-color { color: var(--gold); }
.vault-sub { font-size: 14px; color: var(--ink-soft); }
.vault-arrow {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 10px;
}

/* ---------- Unlock flow (Wing) ---------- */
.unlock-flow {
    display: flex;
    flex-direction: column;
    margin: 32px 0 48px;
    border: 1px solid var(--rule);
    background: var(--paper-high);
}
.unlock-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--rule);
}
.unlock-step:last-child { border-bottom: none; }
.unlock-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--rule-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.unlock-step p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.unlock-step strong { color: var(--ink); font-weight: 600; }

/* ---------- Use-case cards ---------- */
.uc-count { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.uc-count-dot {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 5px 11px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.uc-count-dot:hover { color: var(--ink); border-color: var(--gold); }
.uc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 580px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--paper-high);
    border: 1px solid var(--rule);
    padding: 32px 28px 28px;
    transition: background 0.3s, border-color 0.3s;
}
.uc-card:hover { background: #F4ECD7; border-color: var(--rule-strong); }
.uc-num {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.uc-icon { margin-bottom: 14px; color: var(--ink-soft); }
.uc-icon svg {
    width: 24px; height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.uc-icon.gold { color: var(--gold); }
.uc-icon.teal { color: var(--violet); }
.uc-card h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 24px;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--ink);
}
.uc-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; flex: 1; margin-bottom: 22px; }
.uc-features { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; position: relative; z-index: 1; }
.uc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px solid var(--rule-strong);
    border-radius: 3px;
    padding: 4px 9px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.uc-pill:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.uc-pill.gold { color: var(--gold); }
.uc-pill.teal { color: var(--violet); }
.uc-pill.gold:hover, .uc-pill.teal:hover { color: var(--paper); }
.uc-pill svg {
    width: 11px; height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.mini-grid.gold span { background: var(--gold); }
.mini-grid.teal span { background: var(--violet); }

/* ---------- Closing / final CTA (sub-pages) ---------- */
.closing { text-align: center; padding: 90px 0; position: relative; }
.closing h2 { margin-bottom: 18px; }
.closing .section-sub { margin: 0 auto 38px; }
.closing-btns { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.final-cta { text-align: center; }
.final-cta .section-sub { margin: 0 auto 36px; }
.final-cta-btns {
    display: flex;
    gap: 26px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.final-text-link {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gold);
    margin-bottom: 36px;
    transition: color 0.2s, border-color 0.2s;
}
.final-text-link:hover { color: var(--violet); border-bottom-color: var(--violet); }

/* sub-page trust strips: plain mono lines, gold dot markers */
.final-cta .trust-strip, .closing .trust-strip {
    margin-top: 36px;
    border-top: none;
    border-bottom: none;
    padding: 0;
}
.trust-item:not(:has(svg))::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.faq-body a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}
.faq-body a:hover { color: var(--violet); }

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 90px; }
.legal .container { max-width: 720px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); margin-bottom: 10px; }
.legal .updated {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 48px;
}
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 12px; }
.legal p { font-size: 17px; color: var(--ink-soft); margin-bottom: 14px; }
.legal ul {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.legal li {
    font-size: 16.5px;
    color: var(--ink-soft);
    padding-left: 20px;
    position: relative;
    line-height: 1.65;
}
.legal li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
}
.legal li strong, .legal p strong { color: var(--ink); font-weight: 600; }
.legal a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}
.legal a:hover { color: var(--violet); }

/* =====================================================================
   Motion layer — new micro-interactions & design elements
   Purely additive. Every rule below targets a NEW selector or a NEW
   pseudo-element so nothing in the base sheet is overridden. No copy,
   no markup, no existing rule is touched. Site-wide via shared CSS.
   ===================================================================== */

/* tunables for the additions in this layer */
:root {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ---------------------------------------------------------------------
   4. Spec sheet — a gold index caret slides in on hover and the code
   gets a brief glow. .spec-row had no ::before, so this is new.
   --------------------------------------------------------------------- */
.spec-row { position: relative; padding-left: 0; transition: border-color 0.3s, padding-left 0.35s var(--ease-out); }
.spec-row::before {
    content: '\203A'; /* › */
    position: absolute;
    left: -16px;
    color: var(--gold-bright);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
    font-family: var(--mono);
}
.spec-row:hover { padding-left: 8px; }
.spec-row:hover::before { opacity: 1; transform: translateX(0); }
.spec-row:hover code { text-shadow: 0 0 12px rgba(200, 162, 78, 0.5); }

/* ---------------------------------------------------------------------
   5. Trust strip — a ring pulse blooms from each icon on hover.
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   6. Review cards — the engraved quote mark lifts and tints on hover.
   Targets the existing ::before through a new hover rule only.
   --------------------------------------------------------------------- */
.review-card { transition: transform 0.4s var(--ease-out); }
.review-card::before { transition: transform 0.5s var(--ease-spring), color 0.4s var(--ease-out); }
.review-card:hover { transform: translateY(-4px); }
.review-card:hover::before { transform: translateY(-3px) rotate(-4deg) scale(1.08); color: var(--gold); }
.review-card:hover .review-avatar { border-color: var(--gold); color: var(--gold-bright); transition: border-color 0.3s, color 0.3s; }


/* ---------------------------------------------------------------------
   8. Step seals — gold filament progress + a settle bounce when the
   trio reveals. New keyframe on a new utility class added by JS.
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   9. Count-up odometer for the stat cards — the value rolls up and a
   hairline underline draws beneath it. JS toggles .aw-counted.
   --------------------------------------------------------------------- */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
    content: '';
    position: absolute;
    left: 22px; right: 22px; bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s var(--ease-out) 0.15s;
}
.stat-card.aw-counted::after { transform: scaleX(1); }
.stat-card .stat-value { transition: transform 0.4s var(--ease-out); }
.stat-card:hover .stat-value { transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   10. Wax-seal flourish — the existing chapter dividers gain a slow
   breathing glow and the lozenge rotates a touch on hover of the page.
   New keyframe, applied through a new rule.
   --------------------------------------------------------------------- */
@keyframes awSealBreathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 123, 47, 0); }
    50%      { box-shadow: 0 0 0 4px rgba(168, 123, 47, 0.10); }
}
.flourish span {
    transition: transform 0.5s var(--ease-spring), background 0.4s var(--ease-out);
    animation: awSealBreathe 5s ease-in-out infinite;
}
.flourish:hover span { transform: rotate(135deg) scale(1.25); background: rgba(168, 123, 47, 0.12); }

/* ---------------------------------------------------------------------
   11. FAQ — the gold "+" gets a springy rotate and the row nudges
   right when open. (Base rotates it linearly; new layer adds spring +
   indent via new rules; does not redefine the base transition target.)
   --------------------------------------------------------------------- */
summary { transition: color 0.2s, padding-left 0.3s var(--ease-out); }
summary::after { transition: transform 0.4s var(--ease-spring), color 0.3s; }
details[open] > summary { padding-left: 8px; }
details > summary:hover::after { color: var(--violet); }

/* ---------------------------------------------------------------------
   12. Marquee — pauses on hover so a passing reader can catch a term.
   --------------------------------------------------------------------- */
.sec-marquee-wrap:hover .sec-marquee-track { animation-play-state: paused; }
.sec-marquee-track span { transition: color 0.3s, transform 0.3s var(--ease-out); }
.sec-marquee-track span:hover { color: var(--gold-bright); transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   13. Hero badge — the live dot gets a sonar ring behind the blink.
   New ::after on the existing badge dot; base .dot blink untouched.
   --------------------------------------------------------------------- */
.hero-badge .dot { position: relative; }
.hero-badge .dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--success);
    opacity: 0;
    animation: awSonar 2.6s ease-out infinite;
}
@keyframes awSonar {
    0%   { opacity: 0.7; transform: scale(0.8); }
    70%  { opacity: 0;   transform: scale(2.6); }
    100% { opacity: 0;   transform: scale(2.6); }
}

/* ---------------------------------------------------------------------
   14. Buttons — a tactile press. The printed buttons "ink down" when
   clicked. New :active rules; existing hover rules are not redefined.
   --------------------------------------------------------------------- */
.btn:active, .btn-outline:active, .btn-primary:active,
.btn-faq-contact:active, .uc-pill:active, .uc-count-dot:active,
.link-quiet:active, .final-text-link:active {
    transform: translateY(1px) scale(0.985);
    transition: transform 0.08s ease-out;
}
.btn, .btn-outline, .uc-pill, .uc-count-dot {
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.18s var(--ease-out);
}


/* ---------------------------------------------------------------------
   16. Section reveal stagger — children of a revealed head fade up in
   sequence. A NEW reveal variant so existing .reveal timing is intact.
   --------------------------------------------------------------------- */
.aw-stagger > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.aw-stagger.visible > * { opacity: 1; transform: none; }
.aw-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.aw-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.aw-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.aw-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.aw-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.aw-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.aw-stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }
.aw-stagger.visible > *:nth-child(9) { transition-delay: 0.64s; }
.reviews.aw-stagger.visible > .review-card:hover { transform: translateY(-4px); }
.feature-table.aw-stagger.visible > .feature-cell:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   17. Vault panel — a slow guilloché shimmer creeps across the gold
   inner frame, like security ink shifting under light.
   --------------------------------------------------------------------- */
.vault-panel > .section-head,
.vault-panel > .sec-marquee-wrap { position: relative; z-index: 1; }
.vault-panel::after { background-clip: padding-box; }
.aw-vault-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(115deg,
        transparent 35%,
        rgba(200, 162, 78, 0.06) 50%,
        transparent 65%);
    background-size: 250% 100%;
    animation: awSheen 9s linear infinite;
}
@keyframes awSheen {
    from { background-position: 130% 0; }
    to   { background-position: -130% 0; }
}

/* honour reduced motion across the whole new layer */
@media (prefers-reduced-motion: reduce) {
    .aw-vault-sheen { display: none; }
    .flourish span, .hero-badge .dot::after { animation: none; }
    .aw-stagger > * { opacity: 1; transform: none; transition: none; }
}
