/* all4beats.com – public website. Fonts are served from this host (wwwroot/fonts, licences alongside), so the site
   still loads nothing from other hosts. */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

:root {
    --bg: #060409;
    --bg-alt: #0b0712;
    --surface: #110b1a;
    --border: #2a2035;
    --border-strong: #3a2d4c;
    --text: #f7f5ff;
    --text-soft: #cfc9dd;
    --text-muted: #a8a0ba;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-strong: #a78bfa;
    --accent-pale: #c4b5fd;
    --warning: #f5a524;
    --radius-sm: 8px;
    --radius: 14px;
    --font: Archivo, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;
    --gutter: clamp(16px, 5vw, 40px);
    --section-gap: clamp(72px, 9vw, 128px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Only once a link has focus: a plain smooth html keeps Chromium at the top when /#features is opened from another
   page, such as the legal pages. */
@media (prefers-reduced-motion: no-preference) {
    html:focus-within { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-pale); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible {
    outline: 2px solid var(--accent-pale);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* The design has a separate phone board with its own crops and shorter copy. */
@media (min-width: 641px) { .only-phone { display: none !important; } }
@media (max-width: 640px) { .only-wide { display: none !important; } }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    z-index: 100;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-pale);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); color: #fff; }
.button-ghost { padding: 0 24px; border-color: var(--border-strong); color: var(--text); }
.button-ghost:hover { border-color: var(--accent-pale); color: var(--text); }
.button-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-by { color: var(--text-muted); font-size: 13px; }

.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav-section, .nav-signin { color: var(--text-muted); text-decoration: none; }
.nav-section:hover, .nav-signin:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero .eyebrow { margin-bottom: 20px; }
.hero-title {
    margin: 0;
    /* A little below the design's 6vw/84px: with the real font that size left "once." alone on a second line. */
    font-size: clamp(42px, 5.6vw, 80px);
    font-weight: 800;
    font-stretch: 105%;
    line-height: 1.02;
    letter-spacing: -0.03em;
}
.hero-accent { color: var(--accent-strong); }
.hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 64px;
    margin-top: 32px;
}
.hero-lede {
    flex: 1 1 480px;
    max-width: 660px;
    margin: 0;
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.5;
    color: var(--text-soft);
}
.hero-cta { flex: 0 1 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 12px 0 0; font-size: 14px; color: var(--text-muted); }
.hero-figure { margin: clamp(36px, 4vw, 56px) 0 0; }
.hero-frame {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg-alt);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.10), 0 40px 120px rgba(124, 58, 237, 0.22);
}
.hero-frame img { width: 100%; }
.hero-figure figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--text-muted); }

/* ---------- Features ---------- */

.section-title {
    margin: 0 0 clamp(44px, 5vw, 72px);
    max-width: 860px;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.feature + .feature { margin-top: var(--section-gap); }
.feature-title {
    margin: 0 0 12px;
    font-size: clamp(27px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.feature-head p { margin: 0; color: var(--text-soft); }
.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    color: var(--text-soft);
}
.feature-list li { padding-top: 12px; border-top: 1px solid var(--border); }

.shot { margin: 0; min-width: 0; }
.shot figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.shot-img { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.shot-stacked { margin-top: 12px; }
.shot-crop, .shot-phone {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg-alt);
}
.shot-crop { aspect-ratio: 1280 / 790; }
.shot-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-phone { height: 620px; }
.shot-phone img { width: 100%; }

@media (min-width: 1001px) {
    .feature-batch {
        grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
        grid-template-areas: "head figure" "list figure";
        grid-template-rows: 1fr 1fr;
        gap: 22px 56px;
    }
    .feature-batch .feature-head { grid-area: head; align-self: end; }
    .feature-batch .shot { grid-area: figure; align-self: center; }
    .feature-batch .feature-list { grid-area: list; align-self: start; }

    .feature-calendar {
        grid-template-columns: minmax(0, 560px) minmax(0, 600px);
        grid-template-areas: "head list" "figure figure";
        justify-content: space-between;
        align-items: end;
        gap: 32px 56px;
    }
    .feature-calendar .feature-head { grid-area: head; }
    .feature-calendar .shot { grid-area: figure; }
    .feature-calendar .feature-list { grid-area: list; gap: 8px; }
    .feature-calendar .feature-list li { padding-top: 0; border-top: 0; }

    .feature-store {
        grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
        grid-template-areas: "figure head" "figure list";
        grid-template-rows: auto 1fr;
        gap: 22px 56px;
    }
    .feature-store .feature-head { grid-area: head; }
    .feature-store .shot { grid-area: figure; }
    .feature-store .feature-list { grid-area: list; }
}

.also { margin-top: var(--section-gap); }
.also-title { margin: 0 0 20px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.also-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.also-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.also-number { flex: 0 0 36px; font-family: var(--mono); font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.also-list strong { flex: 1 1 280px; font-weight: 600; }
.also-optional { font-weight: 400; color: var(--text-muted); }
.also-text { flex: 999 1 420px; color: var(--text-soft); }

/* ---------- YouTube access ---------- */

.yt-section {
    margin-top: var(--section-gap);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.yt-inner { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.yt-title { margin-bottom: 0; }
.yt-intro { margin: 20px 0 0; max-width: 760px; font-size: 18px; color: var(--text-soft); }

.perm { margin-top: 44px; border-top: 1px solid var(--border-strong); }
.perm-head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 40px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}
.perm-head span:first-child { flex: 1 1 380px; }
.perm-head span:last-child { flex: 1.3 1 480px; }
.perm dl { margin: 0; }
.perm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.perm-row dt { flex: 1 1 380px; font-weight: 600; }
.perm-row dd { flex: 1.3 1 480px; margin: 0; color: var(--text-soft); }
.perm-optional {
    display: inline-block;
    margin-left: 4px;
    padding: 0 8px;
    border: 1px solid var(--accent-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-pale);
}

.yt-columns { display: flex; flex-wrap: wrap; gap: 40px 72px; margin-top: 56px; }
.yt-columns > div { flex: 1 1 400px; min-width: 0; }
.yt-subtitle { margin: 0 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.yt-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-soft);
}
.yt-list strong { font-weight: 600; color: var(--text); }
.yt-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 44px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 16px;
}

/* ---------- Closing ---------- */

.closing { padding-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(64px, 9vw, 136px); }
.closing-ruler {
    height: 14px;
    margin-bottom: 44px;
    background:
        repeating-linear-gradient(90deg, #8b5cf6 0 3px, transparent 3px 6.25%),
        repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 1.5625%);
}
.closing-title {
    margin: 0;
    max-width: 980px;
    font-size: clamp(38px, 5.4vw, 76px);
    font-weight: 800;
    font-stretch: 105%;
    line-height: 1.02;
    letter-spacing: -0.03em;
}
.closing-text {
    margin: 24px 0 32px;
    max-width: 640px;
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.5;
    color: var(--text-soft);
}

/* ---------- 404 and error pages ---------- */

.section { padding: 96px 0; }
.lead { color: var(--text-soft); font-size: 1.125rem; max-width: 40em; margin: 0 0 28px; }
.message-page { min-height: 55vh; display: flex; align-items: center; }
.message-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* ---------- Legal pages ---------- */

.legal { padding-top: 64px; padding-bottom: 96px; }
.legal-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 10px; }
.legal-subtitle { color: var(--text-muted); font-size: 1.0625rem; margin: 0 0 10px; }
.legal-meta { color: var(--text-muted); font-size: 14px; font-family: var(--mono); margin: 0 0 28px; }

.draft-notice {
    border: 1px solid rgba(245, 165, 36, 0.55);
    background: rgba(245, 165, 36, 0.08);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 36px;
}
.draft-notice p { margin: 0 0 8px; color: var(--text); font-size: 15px; }
.draft-notice p:last-child { margin-bottom: 0; }
.draft-title { font-weight: 700; color: var(--warning) !important; letter-spacing: 0.02em; }
.draft-missing { color: var(--text-muted) !important; }

.open-field {
    background: rgba(245, 165, 36, 0.16);
    color: #fcd58a;
    border: 1px dashed rgba(245, 165, 36, 0.6);
    border-radius: 5px;
    padding: 0 5px;
    font-family: var(--mono);
    font-size: 0.86em;
}

.review-note {
    border-left: 3px solid var(--warning);
    background: rgba(245, 165, 36, 0.06);
    padding: 10px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-size: 14.5px;
}
.review-note strong { color: var(--warning); }

.legal-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 40px;
}
.legal-toc h2 { font-size: 1rem; margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; font-size: 15px; }

.legal-body section { margin-bottom: 40px; }
.legal-body h2 { font-size: 1.375rem; padding-top: 8px; }
.legal-body h3 { font-size: 1.0625rem; margin-top: 24px; }
.legal-body p, .legal-body li { color: #ddd8ea; overflow-wrap: anywhere; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body address { font-style: normal; margin: 0 0 16px; line-height: 1.8; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { padding-top: 56px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 30ch; font-size: 15px; color: var(--text-muted); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col h2 {
    margin: 0 0 6px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.footer-col a { color: var(--text-soft); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-note { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* ---------- Phone ---------- */

@media (max-width: 640px) {
    body { line-height: 1.55; }
    .eyebrow { font-size: 12px; letter-spacing: 0.1em; margin-bottom: 12px; }

    .header-inner { flex-wrap: nowrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
    .brand { gap: 10px; min-height: 44px; }
    .brand img { width: 38px; height: 38px; border-radius: 9px; }
    .brand-name { font-size: 15px; }
    .brand-by { font-size: 12px; }
    .header-nav { flex-wrap: nowrap; gap: 12px; }
    .nav-section { display: none; }
    .nav-signin { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); white-space: nowrap; }
    .button-small { padding: 0 14px; }

    .hero { padding-top: 36px; padding-bottom: 56px; }
    .hero .eyebrow { margin-bottom: 14px; }
    .hero-title { font-size: 44px; line-height: 1.03; }
    .hero-row { display: block; margin-top: 18px; }
    .hero-lede { margin-bottom: 24px; font-size: 18px; line-height: 1.45; }
    .hero-actions .button, .closing-actions .button { width: 100%; }
    .closing-actions { flex-direction: column; gap: 10px; }
    .hero-note { margin-top: 10px; text-align: center; }
    .hero-figure { margin-top: 32px; }
    .hero-frame { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.10), 0 24px 72px rgba(124, 58, 237, 0.22); }
    .hero-figure figcaption { margin-top: 10px; font-size: 12px; }

    .section-title { font-size: 34px; line-height: 1.08; margin-bottom: 36px; }
    .feature + .feature { margin-top: 56px; }
    .feature-title { font-size: 27px; line-height: 1.15; margin-bottom: 8px; }
    .feature-list { gap: 10px; }
    .feature-list li { padding-top: 10px; }
    .shot figcaption { margin-top: 10px; font-size: 12px; }
    .shot-img { border-radius: 12px; }

    .also { margin-top: 56px; }
    .also-title { font-size: 24px; margin-bottom: 14px; }
    .also-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; padding: 14px 0; }
    .also-number { font-size: 13px; line-height: 1.9; }
    .also-text { grid-column: 1 / -1; font-size: 16px; }

    .yt-section { margin-top: 56px; }
    .yt-title { margin-bottom: 0; }
    .yt-intro { margin-top: 16px; font-size: 17px; }
    .perm { margin-top: 28px; }
    .perm-head { display: none; }
    .perm-row { display: block; padding: 16px 0; }
    .perm-row dd { margin-top: 4px; font-size: 16px; }
    .yt-columns { display: block; margin-top: 36px; }
    .yt-columns > div + div { margin-top: 36px; }
    .yt-subtitle { font-size: 22px; margin-bottom: 12px; }
    .yt-list { font-size: 16px; }
    .yt-links { flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 28px; padding-top: 12px; }
    .yt-links a { display: flex; align-items: center; min-height: 44px; }

    .closing-ruler {
        margin-bottom: 32px;
        background:
            repeating-linear-gradient(90deg, #8b5cf6 0 3px, transparent 3px 25%),
            repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 6.25%);
    }
    .closing-title { font-size: 40px; line-height: 1.04; }
    .closing-text { margin: 16px 0 24px; font-size: 18px; line-height: 1.45; }

    .legal { padding-top: 40px; padding-bottom: 64px; }
    .legal-toc ol { columns: 1; }

    .footer-inner { padding-top: 40px; padding-bottom: 28px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .footer-col { gap: 0; font-size: 16px; }
    .footer-col h2 { margin-bottom: 4px; font-size: 12px; }
    .footer-col a { display: flex; align-items: center; min-height: 44px; }
    .footer-note { margin-top: 28px; padding-top: 18px; }
}

/* The smallest phones cannot fit the name next to both header links; the logo link keeps its aria-label. */
@media (max-width: 350px) {
    .site-header .brand-text { display: none; }
}
