/* Sarafand Tech — site stylesheet
   One file for every page. Colours come from the logo (navy + steel blue);
   each app page adds its own palette through the .theme-* classes below. */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    color-scheme: light;

    --brand-navy: #003858;
    --brand-deep: #062a45;
    --brand-steel: #2a72a2;
    --brand-sky: #9cc9ee;
    --brand-tint: #eef5fb;

    --ink: #0c1a2a;
    --ink-2: #445468;
    --ink-3: #6a7a8d;
    --line: #e1e7ee;
    --line-soft: #edf1f5;
    --bg: #ffffff;
    --bg-soft: #f5f8fb;
    --bg-deep: #051c30;

    --success: #15803d;
    --warn-bg: #fff8eb;
    --warn-line: #f3d9a4;
    --warn-ink: #7a4a00;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-xs: 0 1px 2px rgba(12, 26, 42, 0.06);
    --shadow-sm: 0 1px 2px rgba(12, 26, 42, 0.05), 0 4px 12px rgba(12, 26, 42, 0.05);
    --shadow-md: 0 2px 6px rgba(12, 26, 42, 0.05), 0 12px 32px rgba(12, 26, 42, 0.08);
    --shadow-lg: 0 4px 12px rgba(12, 26, 42, 0.06), 0 28px 64px rgba(12, 26, 42, 0.14);

    --font: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1180px;
    --gutter: 24px;
    --header-h: 72px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Default app palette (overridden by .theme-*) */
    --app-900: #041a2c;
    --app-800: #062a45;
    --app-700: #0b3a5c;
    --app-accent: #5aa7e0;
    --app-accent-ink: #ffffff;
    --app-accent-2: #9cc9ee;
    --app-glow: rgba(90, 167, 224, 0.35);
    --app-soft: #eef5fb;
    --app-strong: #0b3a5c;
}

.theme-lb {
    --app-900: #0d1230;
    --app-800: #181f43;
    --app-700: #252e5e;
    --app-accent: #ef4444;
    --app-accent-ink: #ffffff;
    --app-accent-2: #f5a524;
    --app-glow: rgba(239, 68, 68, 0.32);
    --app-soft: #f3f4fa;
    --app-strong: #181f43;
}

.theme-epa {
    --app-900: #040c17;
    --app-800: #0a1e32;
    --app-700: #0f2c48;
    --app-accent: #00d9ff;
    --app-accent-ink: #04202b;
    --app-accent-2: #32ade6;
    --app-glow: rgba(0, 217, 255, 0.28);
    --app-soft: #eefafd;
    --app-strong: #0a1e32;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-steel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-navy); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); font-weight: 720; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
::selection { background: #cfe3f5; color: var(--ink); }

:focus-visible {
    outline: 3px solid #5aa7e0;
    outline-offset: 2px;
    border-radius: 6px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--brand-navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 12px rgba(12, 26, 42, 0.04);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 32px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }

.primary-nav { margin-left: auto; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 0;
    background: none;
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 560;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--bg-soft); }
.nav-link[aria-current="page"] { color: var(--brand-navy); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { margin-left: 8px; }

.has-menu { position: relative; }
.menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 360px;
    transform: translateX(-50%) translateY(6px);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-menu.is-open .menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    transition: background-color 0.15s;
}
.menu-item:hover { background: var(--bg-soft); color: var(--ink); }
.menu-item img { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow-xs); }
.menu-item strong { display: block; font-size: 0.9375rem; font-weight: 640; line-height: 1.3; }
.menu-item small { display: block; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; }
.menu-foot {
    display: block;
    margin-top: 4px;
    padding: 10px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-steel);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s var(--ease), background-color 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--brand-navy);
    --btn-ink: #fff;
    --btn-line: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--btn-line);
    background: var(--btn-bg);
    color: var(--btn-ink);
    font-size: 0.9875rem;
    font-weight: 620;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { color: var(--btn-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { --btn-bg: var(--brand-navy); }
.btn-primary:hover { --btn-bg: var(--brand-deep); }
.btn-secondary { --btn-bg: #fff; --btn-ink: var(--ink); --btn-line: var(--line); }
.btn-secondary:hover { --btn-line: #c9d3de; }
.btn-light { --btn-bg: #fff; --btn-ink: var(--app-strong); }
.btn-ghost-light { --btn-bg: rgba(255, 255, 255, 0.06); --btn-ink: #fff; --btn-line: rgba(255, 255, 255, 0.22); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-line: rgba(255, 255, 255, 0.4); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 620;
    text-decoration: none;
    color: var(--brand-steel);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 188px;
    min-height: 56px;
    padding: 9px 20px 9px 16px;
    border-radius: 14px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    line-height: 1.15;
    transition: transform 0.15s var(--ease), background-color 0.15s, border-color 0.15s;
}
.store-btn:hover { color: #fff; transform: translateY(-1px); background: #161616; }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.78; letter-spacing: 0.01em; }
.store-btn strong { display: block; font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
.store-btn.is-pending { background: rgba(255, 255, 255, 0.06); border-style: dashed; border-color: rgba(255, 255, 255, 0.35); }
.store-btn.is-pending:hover { background: rgba(255, 255, 255, 0.12); }
.on-light .store-btn.is-pending { background: #fff; color: var(--ink); border-color: #b9c5d2; }
.on-light .store-btn.is-pending:hover { color: var(--ink); background: var(--bg-soft); }
.store-note { margin-top: 14px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.on-light .store-note { color: var(--ink-3); }

/* ---------- Sections & type ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.section-soft { background: var(--bg-soft); }
.section-line { border-top: 1px solid var(--line-soft); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-steel);
}
.eyebrow::before {
    content: '';
    width: 18px; height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 2.85rem); font-weight: 740; letter-spacing: -0.032em; }
.lead { margin-top: 18px; font-size: clamp(1.075rem, 1rem + 0.35vw, 1.2rem); line-height: 1.6; color: var(--ink-2); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 7vw, 96px) clamp(72px, 8vw, 112px);
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(42, 114, 162, 0.12), transparent 70%),
        radial-gradient(700px 420px at 0% 100%, rgba(0, 56, 88, 0.07), transparent 70%),
        var(--bg);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 56, 88, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 56, 88, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
}
.hero-title {
    font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.35rem);
    font-weight: 760;
    letter-spacing: -0.042em;
    line-height: 1.02;
}
.hero-title .accent { color: var(--brand-steel); }
.hero-sub { margin-top: 24px; max-width: 560px; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.28rem); line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 36px;
    padding: 0;
    list-style: none;
    font-size: 0.925rem;
    color: var(--ink-2);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--brand-steel); }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 560px;
}
.hero-visual .device-wrap { position: absolute; --device-scale: 0.98; }
.hero-visual .device-a { transform: translateX(-46%) translateY(-10px) rotate(-4deg); z-index: 1; }
.hero-visual .device-b { transform: translateX(42%) translateY(34px) rotate(4deg); z-index: 2; }
.hero-visual::before {
    content: '';
    position: absolute;
    width: 78%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 114, 162, 0.2), transparent 65%);
    filter: blur(8px);
}

/* ---------- Device (phone frame) ---------- */
.device {
    width: 272px;
    zoom: var(--device-scale, 1);
    aspect-ratio: 9 / 19.2;
    padding: 11px;
    border-radius: 46px;
    background: linear-gradient(145deg, #2b3440, #0d1117 45%, #1e252e);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 2px 4px rgba(0, 0, 0, 0.18),
        0 40px 80px -20px rgba(6, 20, 36, 0.45),
        0 18px 40px -18px rgba(6, 20, 36, 0.4);
    flex-shrink: 0;
}
.device-screen {
    position: relative;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.device-screen::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    width: 30%; height: 24px;
    transform: translateX(-50%);
    background: #000;
    border-radius: 999px;
    z-index: 3;
}
/* Real app screens, cut from the store screenshots */
.device-shot { background: #fff; }
.device-shot img { display: block; width: 100%; height: auto; }
.device-shot.is-full img { height: 100%; object-fit: cover; object-position: top; }
.device-shot.has-island::before { display: none; } /* the screenshot has its own */

/* Floating chips next to devices */
.float-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    line-height: 1.25;
    white-space: nowrap;
}
.float-chip b { display: block; font-weight: 680; }
.float-chip small { display: block; color: var(--ink-3); font-size: 0.78rem; }
.float-chip .chip-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--app-soft);
    color: var(--app-strong);
}
.float-chip .chip-icon svg { width: 18px; height: 18px; }
.float-chip .chip-icon.is-alert { background: #fee2e2; color: #b91c1c; }
.float-chip .chip-icon.is-ok { background: #dcfce7; color: #15803d; }

/* ---------- App cards (home) ---------- */
.app-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-card-top {
    position: relative;
    height: 250px;
    overflow: hidden;
    background:
        radial-gradient(420px 220px at 80% 0%, var(--app-glow), transparent 70%),
        linear-gradient(160deg, var(--app-700), var(--app-900));
}
.app-card-top .device-wrap {
    --device-scale: 0.84;
    position: absolute;
    right: 32px;
    top: 34px;
    transform: rotate(-4deg);
}
.app-card-top .app-icon {
    position: absolute;
    left: 32px;
    bottom: 32px;
}
.app-icon {
    width: 72px; height: 72px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-card-body { display: flex; flex-direction: column; flex: 1; padding: 28px 32px 32px; }
.app-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 620;
    color: var(--ink-2);
    line-height: 1.4;
}
.chip-status { background: #fff7e6; border-color: #f7ddaa; color: #8a5300; }
.chip-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.app-card h3 { font-size: 1.6rem; font-weight: 740; letter-spacing: -0.03em; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.app-card-tagline { margin-top: 6px; font-weight: 600; color: var(--ink); }
.app-card-desc { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.check-list { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; font-size: 0.975rem; color: var(--ink-2); line-height: 1.5; }
.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a72a2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.app-card-foot {
    margin-top: auto;
    padding-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.app-card-foot .platforms { font-size: 0.875rem; color: var(--ink-3); }
.app-card-foot .link-arrow { position: relative; z-index: 2; }

/* ---------- Feature tiles ---------- */
.feature {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover { border-color: #cdd8e3; box-shadow: var(--shadow-sm); }
.feature-icon {
    width: 46px; height: 46px;
    margin-bottom: 18px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--app-soft);
    color: var(--app-strong);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.125rem; font-weight: 680; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; font-size: 0.975rem; color: var(--ink-2); line-height: 1.6; }
.feature .tag { margin-left: 6px; vertical-align: 2px; }
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--app-soft);
    color: var(--app-strong);
}

/* Principles (home) */
.principle { padding-top: 22px; border-top: 2px solid var(--line); }
.principle .num { font-size: 0.8125rem; font-weight: 700; color: var(--brand-steel); letter-spacing: 0.06em; }
.principle h3 { margin-top: 10px; font-size: 1.2rem; font-weight: 690; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: 0.99rem; }

/* ---------- App page: sub-navigation ---------- */
.app-bar {
    position: relative;
    z-index: 5;
    background: var(--app-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.app-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 56px;
}
.app-bar-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 680;
    font-size: 0.95rem;
    text-decoration: none;
}
.app-bar-name:hover { color: #fff; }
.app-bar-name img { width: 28px; height: 28px; border-radius: 7px; }
.app-tabs {
    display: flex;
    gap: 2px;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
    list-style: none;
    padding: 0;
}
.app-tabs::-webkit-scrollbar { display: none; }
.app-tabs a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 560;
    text-decoration: none;
    white-space: nowrap;
}
.app-tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.app-tabs a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- App page: hero ---------- */
.app-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px);
    background:
        radial-gradient(800px 500px at 88% 20%, var(--app-glow), transparent 70%),
        radial-gradient(600px 400px at 0% 100%, rgba(255, 255, 255, 0.05), transparent 70%),
        linear-gradient(170deg, var(--app-800), var(--app-900));
}
.app-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 10%, transparent 75%);
    pointer-events: none;
}
.app-hero .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.app-hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 1.3rem + 4.3vw, 4.4rem);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.02;
}
.app-hero h1 .accent { color: var(--app-accent); }
.app-hero .hero-sub { color: rgba(255, 255, 255, 0.78); }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id .app-icon { width: 64px; height: 64px; border-radius: 16px; }
.app-id b { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
.app-id small { display: block; margin-top: 2px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }
.app-hero .store-buttons { margin-top: 36px; }
.app-hero .hero-visual { min-height: 600px; }
.app-hero .hero-visual::before { background: radial-gradient(circle, var(--app-glow), transparent 62%); }
.app-hero .hero-visual .device-wrap { position: relative; --device-scale: 1.07; }
.app-hero .float-chip.chip-1 { left: 0; bottom: 10%; }
.app-hero .float-chip.chip-2 { right: 0; top: 4%; }
.app-hero .float-chip.chip-low { top: auto; bottom: 7%; left: 0; }
.app-hero .float-chip.chip-high { bottom: auto; top: 30%; right: -4%; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; color: var(--app-accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; }
.step {
    position: relative;
    padding: 30px 28px 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--app-strong);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}
.step h3 { font-size: 1.125rem; font-weight: 680; }
.step p { margin-top: 8px; font-size: 0.975rem; color: var(--ink-2); }

/* ---------- Split (text + visual) ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.split-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(420px 280px at 70% 20%, var(--app-glow), transparent 70%),
        linear-gradient(160deg, var(--app-700), var(--app-900));
    overflow: hidden;
    padding: 40px;
}

.bullet-list { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 18px; }
.bullet-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.bullet-list .bl-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--app-soft);
    color: var(--app-strong);
}
.bullet-list .bl-icon svg { width: 20px; height: 20px; }
.bullet-list b { display: block; font-weight: 660; }
.bullet-list span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.975rem; }

/* ---------- Exam sections (EPA) ---------- */
.exam-card {
    position: relative;
    padding: 26px 24px 24px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}
.exam-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 4px;
    background: var(--c, var(--app-accent));
}
.exam-card .exam-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.exam-card h3 { margin-top: 6px; font-size: 1.3rem; font-weight: 720; }
.exam-card p { margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); }
.exam-card.c-core { --c: #00b8d9; }
.exam-card.c-t1 { --c: #32ade6; }
.exam-card.c-t2 { --c: #ff9500; }
.exam-card.c-t3 { --c: #af52de; }
.exam-note {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-size: 0.95rem;
    color: var(--ink-2);
}
.exam-note b { color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 860px; margin-inline: auto; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}
.plan.is-featured { border: 2px solid var(--app-strong); box-shadow: var(--shadow-md); }
.plan-badge {
    position: absolute;
    top: -13px; left: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--app-strong);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.plan h3 { font-size: 1.05rem; font-weight: 650; color: var(--ink-2); letter-spacing: -0.01em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan-price b { font-size: 3rem; font-weight: 780; letter-spacing: -0.045em; line-height: 1; }
.plan-price span { color: var(--ink-3); font-weight: 560; }
.plan-sub { margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); }
.plan .check-list { margin-top: 22px; }
.plan-foot { margin-top: auto; padding-top: 24px; }
.fine-print { margin-top: 28px; text-align: center; font-size: 0.875rem; color: var(--ink-3); max-width: 760px; margin-inline: auto; }

.compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    font-size: 0.975rem;
}
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.compare thead th { background: var(--bg-soft); font-size: 0.85rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.02em; }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 22%; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--ink); font-weight: 550; }
.compare td small { display: block; color: var(--ink-3); font-weight: 450; font-size: 0.85rem; }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: #dcfce7; color: #15803d; }
.no { background: var(--bg-soft); color: #9aa6b2; }
.yes svg, .no svg { width: 14px; height: 14px; }
.compare .price-row td { background: var(--bg-soft); font-weight: 700; }
.compare .price-row td b { font-size: 1.15rem; }

/* ---------- Privacy band ---------- */
.privacy-band {
    border-radius: var(--radius-xl);
    padding: clamp(36px, 5vw, 64px);
    background: linear-gradient(160deg, var(--app-800), var(--app-900));
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.privacy-band h2 { color: #fff; }
.privacy-band .lead { color: rgba(255, 255, 255, 0.75); }
.privacy-band .eyebrow { color: var(--app-accent-2); }
.privacy-band .link-arrow { color: var(--app-accent-2); margin-top: 24px; }
.privacy-points { list-style: none; padding: 0; display: grid; gap: 12px; }
.privacy-points li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.975rem;
    line-height: 1.5;
}
.privacy-points svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--app-accent-2); }

/* ---------- Callouts ---------- */
.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    color: var(--warn-ink);
    font-size: 0.95rem;
    line-height: 1.55;
}
.callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.callout strong { color: #5c3700; }
.callout-info { background: var(--brand-tint); border-color: #cfe1f1; color: #1d4a6b; }
.callout-info strong { color: var(--brand-navy); }
.callout a { color: inherit; font-weight: 600; }
.callout > div > p + p { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: #cdd8e3; box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-weight: 640;
    font-size: 1.04rem;
    letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    width: 22px; height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23445468' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
    transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-2); font-size: 0.99rem; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Notify band (launch updates form) ---------- */
.notify {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(36px, 5vw, 64px);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(90, 167, 224, 0.25), transparent 70%),
        linear-gradient(160deg, #0b3a5c, #041a2c);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}
.notify h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.5rem); }
.notify p { margin-top: 12px; color: rgba(255, 255, 255, 0.75); }
.notify-form { display: grid; gap: 12px; }
.notify-fields { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.field-dark {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
}
.field-dark::placeholder { color: rgba(255, 255, 255, 0.55); }
.field-dark:focus { outline: none; border-color: #9cc9ee; box-shadow: 0 0 0 3px rgba(156, 201, 238, 0.3); }
select.field-dark { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
select.field-dark option { color: var(--ink); }
.notify .btn { min-height: 52px; }
.form-note { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.form-note a { color: rgba(255, 255, 255, 0.85); }

.form-status {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.925rem;
    font-weight: 550;
}
.form-status svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-status.is-visible { display: flex; }
.form-status.is-success { background: rgba(34, 197, 94, 0.15); color: #bbf7d0; }
.form-status.is-error { background: rgba(239, 68, 68, 0.15); color: #fecaca; }
.on-light .form-status.is-success { background: #dcfce7; color: #14532d; }
.on-light .form-status.is-error { background: #fee2e2; color: #7f1d1d; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
    background:
        radial-gradient(700px 320px at 90% 0%, rgba(42, 114, 162, 0.1), transparent 70%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.4rem); font-weight: 760; letter-spacing: -0.04em; }
.page-hero .lead { max-width: 680px; }
.page-hero.theme-dark {
    color: #fff;
    background:
        radial-gradient(700px 360px at 90% 0%, var(--app-glow), transparent 70%),
        linear-gradient(170deg, var(--app-800), var(--app-900));
    border-bottom: 0;
}
.page-hero.theme-dark h1 { color: #fff; }
.page-hero.theme-dark .lead { color: rgba(255, 255, 255, 0.75); }
.page-hero.theme-dark .eyebrow { color: var(--app-accent-2); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.theme-dark .breadcrumbs { color: rgba(255, 255, 255, 0.6); }
.theme-dark .breadcrumbs a:hover { color: #fff; }

/* ---------- Prose (support, about, notices) ---------- */
.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.72; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; color: var(--ink); font-size: 1.6rem; font-weight: 720; letter-spacing: -0.028em; }
.prose h3 { margin-top: 1.8em; color: var(--ink); font-size: 1.15rem; font-weight: 680; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--brand-steel); }
.prose strong { color: var(--ink); }
.prose code, .kbd {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--ink);
}

.steps-ol { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps-ol li {
    counter-increment: s;
    position: relative;
    padding: 16px 18px 16px 62px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.steps-ol li::before {
    content: counter(s);
    position: absolute;
    left: 18px; top: 15px;
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--app-strong);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
}
.steps-ol li b { color: var(--ink); }

/* Support layout */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.side-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}
.side-card + .side-card { margin-top: 16px; }
.side-card h2, .side-card h3 { font-size: 1.05rem; font-weight: 680; letter-spacing: -0.01em; }
.side-card p { margin-top: 6px; font-size: 0.95rem; color: var(--ink-2); overflow-wrap: anywhere; }
.side-card .btn { margin-top: 16px; }
.side-links { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 2px; }
.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    margin-inline: -10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 560;
    color: var(--ink);
    text-decoration: none;
}
.side-links a:hover { background: var(--bg-soft); }
.side-links a::after { content: '→'; color: var(--ink-3); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.info-card {
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}
.info-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.info-card p, .info-card ol, .info-card ul { font-size: 0.975rem; }
.info-card ol, .info-card ul { padding-left: 1.2em; }

/* ---------- Legal documents (markup exported by each app, styled here only) ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; font-size: 0.875rem; }
.legal-toc h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.legal-toc ol { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a {
    display: block;
    padding: 5px 0 5px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--ink-2);
    text-decoration: none;
    line-height: 1.4;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-active { color: var(--brand-navy); border-left-color: var(--brand-steel); font-weight: 600; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 28px; font-size: 0.875rem; color: var(--ink-3); }
.legal-meta a { font-weight: 600; }

.legal { max-width: 780px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 760; letter-spacing: -0.04em; color: var(--ink); }
.legal .updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
}
.legal .preamble { margin-top: 20px; }
.legal .preamble:first-of-type { margin-top: 28px; }
.legal section { margin-top: 44px; }
.legal section.summary {
    margin-top: 32px;
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    background: var(--brand-tint);
    border: 1px solid #d6e6f4;
}
.legal section.summary h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 1.1rem; color: var(--brand-navy); }
.legal section.summary li { color: #26435c; }
.legal h2 {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.legal p + p { margin-top: 14px; }
.legal ul { margin-top: 12px; padding-left: 1.25em; }
.legal ul + p { margin-top: 14px; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--brand-steel); }
.legal strong { color: var(--ink); }
.legal a { overflow-wrap: anywhere; }

/* ---------- Hub cards (legal hubs, support hub) ---------- */
.hub-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
}
.hub-card img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow-xs); flex-shrink: 0; }
.hub-card h3 { font-size: 1.15rem; font-weight: 700; }
.hub-card p { margin-top: 4px; font-size: 0.95rem; color: var(--ink-2); }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hub-links a {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.hub-links a:hover { border-color: #c3cfdb; background: #fff; }

.hub-title { margin-bottom: 24px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.hub-section { margin-top: 72px; }
.legal-date { font-size: 0.875rem; color: var(--ink-3); }
.grid + .callout { margin-top: 48px; }
.hero-visual .float-chip.chip-lb { left: -6%; top: 0; }
.hero-visual .float-chip.chip-epa { right: -8%; bottom: 4%; }

.hub-card h3, .hub-card-title { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
a.hub-card { color: inherit; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
a.hub-card:hover { color: inherit; border-color: #c9d5e1; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature-title { font-size: 1.125rem; font-weight: 680; letter-spacing: -0.015em; }
.prose .steps-ol, .prose .bullet-list { padding-left: 0; }
.prose .steps-ol li + li, .prose .bullet-list li + li { margin-top: 0; }
.prose .grid { margin-top: 20px; }
.contact-item a { font-size: 0.9rem; overflow-wrap: anywhere; }
.form-privacy { margin-top: 18px; }

.support-main > * + * { margin-top: 56px; }
.prose .faq-heading { margin-top: 1.6em; margin-bottom: 0.7em; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.prose h2 + .faq-heading { margin-top: 0.6em; }
.prose .faq summary { color: var(--ink); }
.form-card > h2 + p { margin-top: 6px; color: var(--ink-2); }
.form-card .contact-form { margin-top: 4px; }
.side-note { margin-top: 12px !important; font-size: 0.875rem !important; color: var(--ink-3) !important; }

/* ---------- Screenshots (the apps' store screenshots) ---------- */
.shots-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 4px 2px 14px;
}
.shots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shots li { scroll-snap-align: start; }
.shots img, .shots video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.shots-wrap:focus-visible { outline: 2px solid var(--brand-steel); outline-offset: 4px; border-radius: 20px; }
.shots-note { margin-top: 10px; font-size: 0.875rem; color: var(--ink-3); text-align: center; }
.shots-note a { color: var(--ink-2); }
@media (max-width: 960px) { .shots { grid-auto-columns: 38%; } }
@media (max-width: 640px) { .shots { grid-auto-columns: 64%; gap: 14px; } }

/* ---------- Free kit page (/epa608masterypro/exam-changes-2026) ---------- */
.exam-kit { margin-top: 22px; }
.kit-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kit-hero h1 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3rem); line-height: 1.12; }
.kit-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.kit-btn { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.kit-btn svg { width: 20px; height: 20px; }
.kit-meta { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.kit-cover { display: block; justify-self: center; width: 100%; max-width: 330px; }
.kit-cover img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotate(2deg); }
.kit-source { font-size: 0.925rem; color: var(--ink-3); }
.kit-question { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.kit-question .kit-q { color: var(--ink); font-weight: 650; line-height: 1.5; }
.prose .kit-options { list-style: none; display: grid; gap: 8px; margin-top: 16px; padding: 0; }
.prose .kit-options li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.975rem; line-height: 1.5; }
.kit-options b { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand-navy); font-size: 0.8rem; }
.kit-answer { margin-top: 16px; }
.kit-answer summary { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border-radius: 999px; background: var(--brand-navy); color: #fff; font-size: 0.925rem; font-weight: 620; cursor: pointer; list-style: none; }
.kit-answer summary::-webkit-details-marker { display: none; }
.kit-answer summary:hover { background: var(--brand-deep); }
.kit-answer summary:focus-visible { outline: 2px solid var(--brand-steel); outline-offset: 3px; }
.kit-answer .when-open, .kit-answer[open] .when-closed { display: none; }
.kit-answer[open] .when-open { display: inline; }
.kit-answer p { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--brand-tint); color: #1d4a6b; }
.kit-app { display: flex; align-items: flex-start; gap: 24px; }
.kit-app .app-icon { flex-shrink: 0; }
.kit-app .section-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.kit-app .lead { margin-top: 12px; }
.kit-coming { margin-top: 20px; font-weight: 650; color: var(--ink); }
.kit-app .link-arrow { margin-top: 10px; }
.kit-note { max-width: none; margin: 48px 0 0; text-align: left; }
@media (max-width: 960px) {
    .kit-grid { grid-template-columns: 1fr; }
    .kit-cover { max-width: 230px; }
}
@media (max-width: 640px) {
    .kit-app { flex-direction: column; gap: 16px; }
    .kit-question { padding: 18px; }
}

/* ---------- About ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.1rem; font-weight: 700; }
.stat span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.facts { list-style: none; padding: 0; display: grid; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--ink-3); }
.facts b { font-weight: 600; text-align: right; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.5rem; font-weight: 720; }
.form-card > p { margin-top: 6px; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 620; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid #cfd8e2;
    background: #fff;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23445468' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-steel); box-shadow: 0 0 0 3px rgba(42, 114, 162, 0.18); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-hint { font-size: 0.85rem; color: var(--ink-3); }

.contact-item { display: flex; gap: 14px; }
.contact-item + .contact-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.contact-item .ci-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--brand-tint);
    color: var(--brand-navy);
}
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: 0.95rem; }
.contact-item span, .contact-item address { display: block; font-style: normal; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-deep);
    color: rgba(255, 255, 255, 0.72);
    padding-block: 72px 36px;
    font-size: 0.925rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 320px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }
.footer-brand address { margin-top: 18px; font-style: normal; line-height: 1.6; color: rgba(255, 255, 255, 0.55); font-size: 0.875rem; }
.footer-brand a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-brand a:hover { color: #fff; }
.footer-brand .footer-social-title { margin: 26px 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer-social { list-style: none; padding: 0; display: grid; gap: 14px; font-size: 0.875rem; }
.footer-social li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.footer-social span { flex-basis: 100%; color: rgba(255, 255, 255, 0.62); }
.footer-social a { padding: 2px 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.8125rem; }
.footer-social a:hover { border-color: rgba(255, 255, 255, 0.5); }
.footer-col h2 { margin-bottom: 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p { max-width: 720px; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; letter-spacing: -0.06em; color: var(--brand-tint); -webkit-text-stroke: 2px #c9dcec; line-height: 1; }

/* ---------- Reveal on scroll (JS marks only elements that start below the fold) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
    .reveal-pending.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .legal-layout { grid-template-columns: 1fr; gap: 0; }
    .legal-toc { display: none; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 12px var(--gutter) 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; border-radius: 10px; font-size: 1.02rem; }
    .nav-cta { margin: 10px 0 0; }
    .nav-cta .btn { width: 100%; }
    .menu {
        position: static;
        width: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        padding: 0 0 6px 4px;
        display: none;
    }
    .has-menu.is-open .menu { display: block; transform: none; }
    .brand img { height: 40px; }

    .hero-grid, .app-hero .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 520px; }
    .app-hero .hero-visual { min-height: 0; padding-top: 16px; }
    .split, .privacy-band, .notify { grid-template-columns: 1fr; }
    .app-cards { grid-template-columns: 1fr; }
    .grid-3, .steps { grid-template-columns: 1fr 1fr; }
    .support-grid, .contact-grid { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
    .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 1rem; }
    .grid-2, .grid-3, .grid-4, .steps, .pricing, .info-grid, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-visual { min-height: 420px; }
    .hero-visual .device-wrap { --device-scale: 0.68; }
    .hero-visual .device-a { transform: translateX(-30%) rotate(-4deg); }
    .hero-visual .device-b { transform: translateX(30%) translateY(20px) rotate(4deg); }
    .hero-visual .float-chip { display: none; }
    .app-hero .hero-visual .device-wrap { --device-scale: 0.92; }
    .app-hero .float-chip { display: none; }
    .app-card-top { height: 220px; }
    .app-card-top .device-wrap { --device-scale: 0.7; right: 16px; }
    .app-card-top .app-icon { left: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 15px; }
    .app-card-body { padding: 24px 22px 26px; }
    .app-card-foot { flex-direction: column; align-items: flex-start; }
    .notify-fields { grid-template-columns: 1fr; }
    .store-btn { flex: 1 1 180px; }
    .compare th, .compare td { padding: 12px 12px; }
    .compare { font-size: 0.9rem; }
    .plan { padding: 28px 24px; }
    .split-visual { min-height: 0; padding: 28px 16px; }
    .app-bar-name span { display: none; }
    .legal section.summary { padding: 22px 20px; }
    .faq summary { padding: 18px 18px; }
    .faq .answer { padding: 0 18px 20px; }
}

@media print {
    .site-header, .site-footer, .app-bar, .legal-toc, .notify, .skip-link { display: none !important; }
    .legal-layout { display: block; }
    body { font-size: 11pt; }
}
