/* Self-hosted fonts (SIL OFL), subset latin + latin-ext — replaces the Google Fonts stylesheet. */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/space-grotesk-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}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/space-grotesk-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}
@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}

/*
 * Braintide - marketing & legal pages
 *
 * Derived from tritonsleep.css, which is the shared layout every Triton app
 * subsite uses; structural classes carry the bt- prefix. The palette is a
 * single-point remap onto the APP's own tokens (BRANDING.md sec.3) so the site
 * and the product are the same dark violet rather than merely similar:
 * background #08070F, brand violet #7B61FF, spark cyan #3BE7F0 for highlights.
 */
:root {
    --bt-night: #08070F;
    --bt-night-surface: #0E0C18;
    --bt-night-raised: #171531;
    --bt-lavender: #7B61FF;
    /* Button hover fill. Measured, not chosen by eye: the brand's violetDeep
       (#5A45E0) gives only 3.21:1 behind --bt-night ink, an AA failure on a
       control label. Lifting rather than deepening the violet gets 6.85:1. */
    --bt-lavender-dim: #9A85FF;
    --bt-moon: #3BE7F0;
    --bt-cream: #F3F1FA;

    --bt-text: #F3F1FA;
    --bt-text-secondary: #C9C4DF;
    --bt-text-muted: #9A93B8;
    --bt-border: rgba(123, 97, 255, 0.18);

    --bt-max-width: 1120px;
    --bt-reading-width: 720px;
    --bt-radius: 16px;

    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bt-night);
    color: var(--bt-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 720px) {
    body { font-size: 16px; }
}

a {
    color: var(--bt-lavender);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover, a:focus {
    color: var(--bt-cream);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--bt-cream);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(36px, 7vw, 72px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 2em; }
h3 { font-size: clamp(22px, 3vw, 28px); margin-top: 1.5em; }
h4 { font-size: clamp(18px, 2vw, 22px); margin-top: 1.25em; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

code, pre {
    font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
    background: rgba(165, 180, 252, 0.10);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.9em;
}

hr {
    border: 0;
    border-top: 1px solid var(--bt-border);
    margin: 2em 0;
}

/* Layout shell */

.bt-shell {
    max-width: var(--bt-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 720px) {
    .bt-shell { padding: 0 48px; }
}

@media (min-width: 1024px) {
    .bt-shell { padding: 0 80px; }
}

/* Skip link */

.bt-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--bt-lavender);
    color: var(--bt-night);
    padding: 8px 12px;
    z-index: 1000;
}

.bt-skip:focus { left: 8px; top: 8px; }

/* Top bar */

.bt-topbar {
    background: var(--bt-night-surface);
    color: var(--bt-cream);
    padding: 16px 0;
    border-bottom: 1px solid var(--bt-border);
}

.bt-topbar .bt-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.bt-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--bt-cream);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bt-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.bt-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.bt-nav a {
    color: var(--bt-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.bt-nav a:hover, .bt-nav a:focus, .bt-nav a[aria-current="page"] {
    color: var(--bt-cream);
}

/* Page hero (legal/support pages) */

.bt-page-hero {
    background: linear-gradient(180deg, var(--bt-night-surface), var(--bt-night));
    padding: 64px 0 48px;
}

.bt-page-hero .bt-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 600;
    color: var(--bt-lavender);
    margin: 0 0 12px;
}

.bt-page-hero .bt-meta {
    color: var(--bt-text-muted);
    font-size: 15px;
    margin-top: 8px;
}

/* Long-form reading column */

.bt-prose {
    max-width: var(--bt-reading-width);
    margin: 0 auto;
    padding: 48px 0 96px;
}

.bt-prose h2 { margin-top: 2em; }
.bt-prose h3 { margin-top: 1.5em; }

.bt-prose ol > li::marker { color: var(--bt-text-muted); }

.bt-toc {
    background: var(--bt-night-surface);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 16px 20px;
    margin-bottom: 32px;
}

.bt-toc strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
}

.bt-toc ol { margin: 0; padding-left: 1.2em; }

/* Buttons */

.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--bt-lavender);
    color: var(--bt-night);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    min-height: 48px;
}

.bt-btn:hover, .bt-btn:focus { background: var(--bt-lavender-dim); color: var(--bt-night); }
.bt-btn:active { transform: scale(0.98); }

.bt-btn--ghost {
    background: transparent;
    color: var(--bt-cream);
    border: 1.5px solid var(--bt-cream);
}

.bt-btn--ghost:hover, .bt-btn--ghost:focus { background: var(--bt-cream); color: var(--bt-night); }

/* Cards / grid */

.bt-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 720px) {
    .bt-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .bt-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.bt-card {
    background: var(--bt-night-surface);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 24px;
}

.bt-card h3 { margin-top: 0; }

.bt-card-icon {
    font-size: 32px;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

/* Hero */

.bt-hero {
    background:
        radial-gradient(ellipse 55% 40% at 78% 10%, rgba(253, 230, 138, 0.10), transparent),
        radial-gradient(ellipse 50% 38% at 18% 30%, rgba(165, 180, 252, 0.12), transparent),
        linear-gradient(180deg, var(--bt-night-raised), var(--bt-night));
    color: var(--bt-cream);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}

.bt-hero h1 { color: var(--bt-cream); }

.bt-hero .bt-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 600;
    color: var(--bt-lavender);
    margin: 0 0 12px;
}

.bt-hero .bt-lede {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--bt-text-secondary);
    max-width: 640px;
}

.bt-hero-cta {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bt-hero-meta {
    margin-top: 16px;
    color: var(--bt-text-muted);
    font-size: 15px;
}

/* Pricing strip */

.bt-pricing {
    background: var(--bt-night-surface);
    color: var(--bt-cream);
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--bt-border);
}

.bt-pricing strong { color: var(--bt-moon); }

/* Store badges */

.bt-stores {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bt-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--bt-night-raised);
    border: 1px solid var(--bt-border);
    color: var(--bt-cream);
    text-decoration: none;
    text-align: left;
    line-height: 1.2;
}

.bt-store-badge:hover, .bt-store-badge:focus { border-color: var(--bt-lavender); color: var(--bt-cream); }

/* Store not live yet: same shape, but visibly inert rather than a dead link.
   NOT done with opacity. At 0.55 the 12px "Coming soon to the" line measures
   2.7:1 against the page - an AA failure - because opacity fades the text
   toward the background along with the frame. A dashed border and a flat fill
   read as inert just as clearly and leave every ratio untouched. */
.bt-store-badge--pending {
    cursor: default;
    border-style: dashed;
    background: transparent;
}

.bt-store-badge--pending:hover, .bt-store-badge--pending:focus { border-color: var(--bt-border); }

.bt-store-badge small { display: block; font-size: 12px; color: var(--bt-text-muted); }
.bt-store-badge strong { font-size: 17px; }

.bt-store-glyph {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.bt-store-glyph svg {
    display: block;
}

/* Screenshot figures */

.bt-figure {
    margin: 0;
    text-align: center;
}

.bt-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--bt-text-muted);
}

.bt-shot {
    border-radius: var(--bt-radius);
    border: 1px solid var(--bt-border);
}

.bt-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    border: 1px dashed var(--bt-border);
    border-radius: var(--bt-radius);
    color: var(--bt-text-muted);
    font-size: 14px;
    background: var(--bt-night-surface);
    padding: 16px;
}

/* Disclaimer strip */

.bt-disclaimer {
    font-size: 14px;
    color: var(--bt-text-muted);
    max-width: 720px;
    margin: 32px auto 0;
    text-align: center;
}

/* Footer */

.bt-footer {
    background: var(--bt-night-surface);
    color: var(--bt-text-secondary);
    padding: 56px 0 32px;
    margin-top: 64px;
    font-size: 15px;
    border-top: 1px solid var(--bt-border);
}

/* When the Pricing strip sits directly above the footer, the two dark bands
   should meet flush. */
.bt-pricing + .bt-footer {
    margin-top: 0;
}

.bt-footer a { color: var(--bt-text-secondary); text-decoration: none; }
.bt-footer a:hover, .bt-footer a:focus { color: var(--bt-cream); text-decoration: underline; }

.bt-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 720px) {
    .bt-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.bt-footer h3, .bt-footer h4 {
    color: var(--bt-cream);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}

.bt-footer ul { list-style: none; padding: 0; margin: 0; }
.bt-footer li { margin-bottom: 8px; }

.bt-footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--bt-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--bt-text-muted);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bt-btn { transition: none; }
}

/* Print */

@media print {
    .bt-topbar, .bt-footer, .bt-page-hero { background: white; color: black; }
    .bt-prose { padding: 0; }
}

/* TritonApps social profiles in the footer bar. */

.bt-footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bt-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid currentColor;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bt-footer-social a:hover,
.bt-footer-social a:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .bt-footer-social a {
        transition: none;
    }

    .bt-footer-social a:hover,
    .bt-footer-social a:focus-visible {
        transform: none;
    }
}
