/* ---------- Design tokens ---------- */
:root {
    /* Brand accent from the WTF? app icon: orange -> gold gradient */
    --orange: #ff8a00;
    --gold: #ffc400;

    /* Light theme: warm paper, ink text */
    --bg: #fbf7f0;
    --surface: #ffffff;
    --ink: #1b160e;
    --muted: #5f5644;
    --line: #e7ddcd;
    --accent: #b8560c;              /* links: contrast-safe amber on paper */
    --accent-ink: #1b160e;          /* text sitting on an orange/gold fill */
    --focus: #1b57d6;

    --maxw: 66rem;
    --radius: 16px;
    --radius-lg: 22px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14110b;
        --surface: #1f1a11;
        --ink: #f4ece0;
        --muted: #a99e8b;
        --line: #322a1c;
        --accent: #ffb060;
        --focus: #7aa2ff;
    }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--accent);
    text-underline-offset: 2px;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ---------- Layout ---------- */
.wrap {
    width: min(100% - 2.5rem, var(--maxw));
    margin-inline: auto;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

/* Skip link */
.skip {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    background: var(--ink);
    color: var(--bg);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    z-index: 100;
    transition: top 0.15s ease;
}

.skip:focus {
    top: 0.5rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.brand {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

/* "bright" in a deep orange-to-gold gradient, straight down like the app icon. */
.brand .bright {
    background-image: linear-gradient(180deg, #f47f00 0%, #ffb300 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    gap: clamp(0.75rem, 2.5vw, 1.75rem);
    align-items: center;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    border-bottom-color: var(--gold);
}

/* ---------- Buttons + App Store badge ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font: inherit;
    font-weight: 600;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.12s ease, transform 0.12s ease;
}

.btn:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.appstore {
    display: inline-flex;
    border-radius: 10px;
}

.appstore img {
    height: 48px;
    width: auto;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

/* ---------- Hero (WTF?) ---------- */
.hero {
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 3vw, 1.5rem);
}

.hero-head {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(1.5rem, 5vw, 3rem);
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.1rem, 3vw, 1.6rem);
}

.hero-text h1 {
    margin: 0;
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}

.hero-text .lead {
    margin: 0;
    max-width: 42ch;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
    color: var(--muted);
}

.hero-art {
    justify-self: center;
}

.app-icon img {
    width: clamp(7rem, 20vw, 11rem);
    border-radius: 24%;
    box-shadow: 0 22px 46px -20px color-mix(in srgb, var(--orange) 55%, transparent),
                0 8px 20px -12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-icon:hover img {
    transform: translateY(-3px);
    box-shadow: 0 28px 54px -20px color-mix(in srgb, var(--orange) 60%, transparent),
                0 10px 24px -12px rgba(0, 0, 0, 0.35);
}

/* ---------- "Also from Westbright" cards ---------- */
.also {
    padding: clamp(2.5rem, 7vw, 4.5rem) 0;
    border-top: 1px solid var(--line);
}

.also > .wrap > h2 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2rem);
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 1.1rem;
}

.card-icon.round {
    border-radius: 50%;
}

.card .role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.4rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--muted);
    margin: 0 0 1.35rem;
}

.card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: clamp(2rem, 6vw, 3rem) 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
}

.site-footer nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--ink);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    text-decoration-color: var(--gold);
}

/* ---------- Content sections (WTF? page) ---------- */
.section {
    padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.section-tight {
    padding-top: clamp(1.75rem, 4.5vw, 3rem);
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section h2 {
    font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
    text-align: center;
}

.section .sub {
    text-align: center;
    color: var(--muted);
    max-width: 48ch;
    margin: 0.75rem auto 0;
}

.section h2 + .prose {
    margin-top: 1.25rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.step {
    text-align: center;
}

.step .num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.step h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.step p {
    color: var(--muted);
    margin: 0 auto;
    max-width: 26ch;
}

.shot {
    width: 100%;
    max-width: 14rem;
    margin: 0 auto 1.25rem;
    border-radius: 30px;
    box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.4);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: clamp(1.25rem, 3.5vw, 2rem);
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.feature h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.feature p {
    color: var(--muted);
    margin: 0;
}

.center-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- Video + quote (Zombies) ---------- */
.video {
    max-width: 40rem;
    margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}

.video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.quote {
    max-width: 44rem;
    margin: clamp(2rem, 5vw, 3rem) auto 0;
    text-align: center;
}

.quote blockquote {
    margin: 0;
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
    font-style: italic;
    line-height: 1.5;
}

.quote figcaption {
    margin-top: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* ---------- Archived / centred intro ---------- */
.lead-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    margin: 0 auto 1.25rem;
}

.center-block {
    text-align: center;
}

.center-block .lead {
    color: var(--muted);
    max-width: 46ch;
    margin-inline: auto;
}

/* ---------- Support: prominent contact ---------- */
.contact-email {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
    font-weight: 700;
}

/* ---------- Prose (privacy policy etc.) ---------- */
.prose {
    max-width: 42rem;
    margin-inline: auto;
}

.prose h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
    margin-bottom: 1.25rem;
}

.prose h2 {
    font-size: 1.35rem;
    margin: 2.25rem 0 0.6rem;
}

.prose h3 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.4rem;
}

.prose p {
    margin: 0 0 1rem;
}

/* ---------- Press kit ---------- */
.btn-sm {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
}

.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    margin-top: 1.5rem;
}

.facts dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.2rem;
}

.facts dd {
    margin: 0;
}

.asset-icon {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.asset-icon img {
    width: 88px;
    border-radius: 22px;
    flex-shrink: 0;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: clamp(1.25rem, 3.5vw, 2rem);
    margin-top: 1.5rem;
    max-width: 42rem;
}

.asset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.asset .shot {
    margin: 0;
    max-width: 100%;
}

/* ---------- Screenshot gallery + old iPhone frame ---------- */
.screenshow {
    display: flex;
    gap: clamp(1.25rem, 3.5vw, 2rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1.25rem;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    scrollbar-width: thin;
}

.shot-frame {
    flex: 0 0 auto;
    scroll-snap-align: center;
    margin: 0;
    text-align: center;
}

.shot-frame figcaption {
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.iphone {
    position: relative;
    width: clamp(9rem, 42vw, 11.5rem);
    padding: 2.6rem 0.5rem;
    background: linear-gradient(#3a3a3c, #0b0b0c);
    border-radius: 2.4rem;
    box-shadow: 0 0 0 2px #cfcfd2,
                0 20px 42px -20px rgba(0, 0, 0, 0.55);
}

.iphone .screen {
    width: 100%;
    aspect-ratio: 320 / 480;
    object-fit: cover;
    border-radius: 2px;
    background: #000;
}

.iphone::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.4rem;
    height: 0.28rem;
    border-radius: 999px;
    background: #58585b;
}

.iphone::after {
    content: "";
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid #58585b;
    background: radial-gradient(circle at 50% 38%, #202022, #0a0a0b);
}

/* ---------- A11y: focus + reduced motion ---------- */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .hero-head {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text {
        align-items: center;
    }

    .hero-text .lead {
        margin-inline: auto;
    }

    .hero-art {
        order: -1;
    }

    .card-row {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}
