/* Training Database — public welcome page.
   Standalone stylesheet (not part of the Tailwind app build). Palette follows the
   TD logo: deep navy base, magenta chainring, blue→violet→teal accents. */

:root {
    --bg: #070a14;
    --bg-2: #0b1020;
    --surface: #10172b;
    --surface-2: #151d35;
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.26);
    --text: #e8ecf6;
    --text-2: #a5b0c8;
    --text-3: #7d89a5;
    --magenta: #ff2e93;
    --violet: #7c5cff;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --green: #2ee6a6;
    --amber: #fbbf24;
    --danger: #fb7185;
    --grad: linear-gradient(100deg, #ff2e93 0%, #a855f7 45%, #3b82f6 75%, #22d3ee 100%);
    --grad-btn: linear-gradient(135deg, #ff2e93 0%, #7c5cff 100%);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora", "Inter", system-ui, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88em;
    background: rgba(124, 92, 255, 0.14);
    border: 1px solid rgba(124, 92, 255, 0.25);
    padding: 0.05em 0.4em;
    border-radius: 6px;
    color: #d6ccff;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--surface-2); color: var(--text); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 600 15px/1 var(--font);
    padding: 13px 20px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(255, 46, 147, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(255, 46, 147, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 163, 184, 0.45); }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    background: rgba(7, 10, 20, 0.55);
    border-bottom: 1px solid transparent;
    transition: background-color .25s ease, border-color .25s ease;
}
.site-nav.is-scrolled { background: rgba(7, 10, 20, 0.85); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-mobile-only { display: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-inner { gap: 12px; }
    .nav-desktop-only { display: none; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 42px; height: 42px; padding: 0 11px;
        background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
    }
    .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-links {
        position: absolute; left: 0; right: 0; top: 68px; margin: 0;
        flex-direction: column; gap: 0;
        background: rgba(7, 10, 20, 0.97); border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px;
        display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-mobile-only { display: block; color: var(--text) !important; font-weight: 600 !important; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; isolation: isolate; }
.hero-glow {
    position: absolute; inset: -120px 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 380px at 78% 30%, rgba(124, 92, 255, 0.28), transparent 70%),
        radial-gradient(520px 360px at 95% 60%, rgba(34, 211, 238, 0.14), transparent 70%),
        radial-gradient(520px 420px at 10% 10%, rgba(255, 46, 147, 0.18), transparent 70%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
    opacity: 0.45;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 22px; padding: 7px 14px;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #c9d2e6;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.18); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.lede { margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14.5px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 17px; height: 17px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; padding: 10px 44px 50px 0; }
.browser {
    position: relative;
    background: #0d1426;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 90px -20px rgba(124, 92, 255, 0.45);
}
.browser-bar {
    display: flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 14px;
    background: #121a30; border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3450; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span {
    margin: 0 auto; transform: translateX(-20px);
    font-size: 11.5px; color: var(--text-3); background: rgba(255, 255, 255, 0.04);
    padding: 3px 14px; border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero .browser img { aspect-ratio: 1800 / 1180; object-fit: cover; object-position: top; width: 100%; }

.phone {
    position: absolute; right: 0; bottom: 0; width: 30%; max-width: 200px;
    padding: 7px; border-radius: 30px;
    background: linear-gradient(160deg, #2b3450, #0d1222);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow), 0 0 50px -10px rgba(255, 46, 147, 0.4);
}
.phone img { border-radius: 23px; aspect-ratio: 9 / 18.5; object-fit: cover; object-position: top; width: 100%; }

.float-chip {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 11px 16px 11px 11px;
    background: rgba(16, 23, 43, 0.82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-strong); border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    font-size: 13px; line-height: 1.3;
    animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-weight: 600; }
.float-chip small { color: var(--text-3); font-size: 12px; }
.chip-icon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: rgba(251, 191, 36, 0.14); color: var(--amber); font-size: 16px;
}
.chip-icon.chip-green { background: rgba(46, 230, 166, 0.14); color: var(--green); font-size: 13px; }
.chip-a { left: -26px; top: 42%; }
.chip-b { left: 16%; bottom: 8px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.strip {
    list-style: none; margin: 72px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}
.strip li { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.strip li + li { border-left: 1px solid var(--line); }
.strip strong { font: 700 17px/1.3 var(--font-display); }
.strip span { color: var(--text-3); font-size: 14px; }

@media (max-width: 980px) {
    .hero { padding-top: 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 720px; margin: 0 auto; width: 100%; }
    .chip-a { left: -8px; }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .strip li:nth-child(3) { border-left: 0; }
    .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .hero-visual { padding-right: 26px; padding-bottom: 36px; }
    .float-chip { display: none; }
    .hero-ctas .btn { width: 100%; }
    .strip li { padding: 18px 16px; }
    .strip strong { font-size: 15px; }
    .strip span { font-size: 13px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.section-head p:not(.kicker) { color: var(--text-2); font-size: 18px; margin: 18px 0 0; }
.kicker {
    margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block;
}
@media (max-width: 600px) {
    .section { padding: 76px 0; }
    .section-head { margin-bottom: 40px; }
    .section-head p:not(.kicker) { font-size: 16.5px; }
}

/* ---------- Cards / bento ---------- */
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(21, 29, 53, 0.9), rgba(16, 23, 43, 0.9));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .25s ease, transform .25s ease;
}
.card-feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 20px; font-weight: 700; margin: 18px 0 10px; }
.card p { color: var(--text-2); margin: 0; font-size: 15.5px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento .card:not(.card-wide) h3 { font-size: 18.5px; }
.bento .card:not(.card-wide) p { font-size: 15px; }
.card-wide {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 36px; align-items: center;
    padding: 36px; overflow: hidden;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(255, 46, 147, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(21, 29, 53, 0.95), rgba(16, 23, 43, 0.95));
}
.card-wide h3 { font-size: clamp(22px, 2.3vw, 28px); }
.card-shot {
    border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    margin-right: -80px;
}
.card-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; font-weight: 500; }
.ticks li::before {
    content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
    background: rgba(46, 230, 166, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6a6' 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;
}

.icon-badge {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
    border: 1px solid currentColor;
}
.icon-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ib-magenta { color: var(--magenta); background: rgba(255, 46, 147, 0.1); border-color: rgba(255, 46, 147, 0.3); }
.ib-violet  { color: #a78bfa; background: rgba(124, 92, 255, 0.12); border-color: rgba(124, 92, 255, 0.32); }
.ib-blue    { color: #60a5fa; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.32); }
.ib-cyan    { color: var(--cyan); background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.3); }
.ib-green   { color: var(--green); background: rgba(46, 230, 166, 0.1); border-color: rgba(46, 230, 166, 0.3); }
.ib-amber   { color: var(--amber); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }

@media (max-width: 1100px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .card-wide { grid-template-columns: 1fr; padding: 28px; }
    .card-shot { margin-right: 0; }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; gap: 14px; }
    .card { padding: 22px; }
    .card-wide { padding: 22px; gap: 26px; }
}

/* ---------- Tour ---------- */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 10px; }
.tour-tabs button {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 20px; border-radius: 14px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
    transition: background-color .2s, border-color .2s;
    position: relative; overflow: hidden;
}
.tour-tabs button:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); }
.tour-tabs button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tour-tabs button strong { font: 600 16px/1.3 var(--font-display); color: var(--text); }
.tour-tabs button span { font-size: 14px; color: var(--text-3); line-height: 1.45; }
.tour-tabs button[aria-selected="true"] {
    background: linear-gradient(135deg, rgba(255, 46, 147, 0.12), rgba(124, 92, 255, 0.12));
    border-color: rgba(124, 92, 255, 0.45);
}
.tour-tabs button[aria-selected="true"]::before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-btn);
}
.tour-tabs button[aria-selected="true"] span { color: var(--text-2); }
.tour-stage [role="tabpanel"] { max-height: 640px; overflow: hidden; }
.tour-stage [role="tabpanel"]:focus-visible { outline-offset: -3px; }
.tour-stage img { width: 100%; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .tour { grid-template-columns: 1fr; }
    .tour-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
    .tour-tabs::-webkit-scrollbar { display: none; }
    .tour-tabs button { flex: 0 0 auto; scroll-snap-align: start; padding: 12px 16px; }
    .tour-tabs button span { display: none; }
    .tour-tabs button[aria-selected="true"]::before { left: 14px; right: 14px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
    .tour-stage [role="tabpanel"] { max-height: 520px; }
}

/* ---------- How it works ---------- */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.loop::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 37px; height: 2px;
    background: var(--grad); opacity: 0.55; border-radius: 2px;
}
.loop-step { position: relative; padding: 0 6px; text-align: center; }
.loop-num {
    display: grid; place-items: center; margin: 0 auto 22px;
    width: 74px; height: 74px; border-radius: 50%;
    font: 700 20px/1 var(--font-display);
    background: var(--bg); border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(124, 92, 255, 0.6);
    position: relative;
}
.loop-num::after {
    content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.loop-step h3 { font-size: 19px; margin-bottom: 8px; }
.loop-step p { color: var(--text-2); margin: 0; font-size: 15px; }
.loop-step:last-child .loop-num::before {
    content: "↻"; position: absolute; right: -8px; top: -8px;
    width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
    background: var(--green); color: #04261a; font-size: 15px; font-weight: 800;
}
@media (max-width: 860px) {
    .loop { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
    .loop::before { left: 36px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, #ff2e93, #7c5cff, #3b82f6, #22d3ee); }
    .loop-step { display: grid; grid-template-columns: 74px 1fr; column-gap: 20px; text-align: left; padding: 0 0 30px; }
    .loop-num { grid-row: span 2; margin: 0; }
    .loop-step h3 { align-self: end; margin-top: 12px; }
}

/* ---------- Devices ---------- */
.devices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.devices-copy h2 { font-size: clamp(30px, 3.4vw, 42px); }
.devices-copy > p { color: var(--text-2); font-size: 17.5px; margin: 18px 0 0; }
.need { margin-top: 30px; padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.need h3 { font-size: 16px; margin-bottom: 8px; }
.need p { margin: 0; color: var(--text-2); font-size: 15px; }
.devices-visual { position: relative; padding: 0 70px 40px 0; max-width: 520px; justify-self: center; width: 100%; }
.tablet {
    padding: 12px; border-radius: 30px;
    background: linear-gradient(160deg, #2b3450, #0d1222);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow), 0 0 80px -20px rgba(59, 130, 246, 0.45);
}
.tablet img { border-radius: 19px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.phone-sm { width: 38%; max-width: 190px; }
@media (max-width: 900px) {
    .devices { grid-template-columns: 1fr; gap: 48px; }
    .devices-visual { padding-right: 40px; max-width: 440px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color .2s, background-color .2s;
}
.faq details[open] { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.035); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 22px; font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 12px; height: 12px;
    border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
    transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }

/* ---------- Request access ---------- */
.request { overflow: hidden; border-top: 1px solid var(--line); }
.request-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% 40%, rgba(124, 92, 255, 0.22), transparent 70%),
        radial-gradient(500px 360px at 10% 90%, rgba(255, 46, 147, 0.16), transparent 70%);
}
.request-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; }
.request-copy h2 { font-size: clamp(32px, 3.8vw, 46px); }
.request-copy > p { color: var(--text-2); font-size: 17.5px; margin: 18px 0 0; }
.next-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.next-steps li { display: flex; gap: 16px; align-items: flex-start; }
.next-steps li > span {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    font: 700 14px/1 var(--font-display); background: rgba(124, 92, 255, 0.15); border: 1px solid rgba(124, 92, 255, 0.35); color: #c4b5fd;
}
.next-steps strong { display: block; font-weight: 600; margin-bottom: 2px; }
.next-steps div { color: var(--text-2); font-size: 15px; }
.request-login { margin: 32px 0 0 !important; font-size: 15.5px !important; }
.request-login a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(124, 92, 255, 0.6); }
.request-login a:hover { border-bottom-color: var(--magenta); }

.form-card { padding: 32px; box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, 0.12); }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); padding: 0; }
.optional { font-weight: 400; color: var(--text-3); }
.field input[type="text"], .field input[type="email"], .field textarea {
    width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
    background: rgba(7, 10, 20, 0.6); border: 1px solid var(--line-strong); border-radius: 12px;
    padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6b86; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; font-size: 13px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: rgba(7, 10, 20, 0.6); border: 1px solid var(--line-strong); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { margin: 0 !important; text-align: center; padding: 10px 6px; border-radius: 10px; cursor: pointer; font-weight: 500 !important; color: var(--text-2) !important; transition: background-color .2s, color .2s; }
.seg label:hover { color: var(--text) !important; }
.seg input:checked + label { background: var(--grad-btn); color: #fff !important; font-weight: 600 !important; }
.seg input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 14px 0 0 !important; font-size: 13px !important; color: var(--text-3) !important; text-align: center; }
.form-status { margin-top: 16px; font-size: 15px; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; background: rgba(46, 230, 166, 0.1); border: 1px solid rgba(46, 230, 166, 0.35); color: #a7f3d0; }
.form-status.is-err { padding: 14px 16px; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.35); color: #fecdd3; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-card.is-done form > :not(.form-status) { display: none; }
.form-card.is-done .form-status { margin-top: 0; font-size: 16px; padding: 22px; }

@media (max-width: 900px) {
    .request-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) {
    .form-card { padding: 22px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 9px; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 15px; }
.footer-brand span { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; margin: 8px 0 0; color: var(--text-3); font-size: 13px; }
@media (max-width: 700px) { .footer-links { margin-left: 0; } }

/* ---------- Reveal on scroll (JS adds .js to <html>) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
