:root,
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1b1814;
    --bg-2: #221e19;
    --surface: #2a2520;
    --surface-hi: #332c26;
    --line: #3c352d;
    --line-strong: #50463a;
    --ink: #eee1c9;
    --ink-dim: #aa9e8a;
    --ink-mute: #73695a;
    --action: #28724f;
    --action-ink: #f3ebd6;
    --winner: #d9a75f;
    --live: #e09257;
    --action-shadow: rgba(40, 114, 79, 0.28);
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55), 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f5efe2;
    --bg-2: #eee6d2;
    --surface: #fbf6ea;
    --surface-hi: #f1e9d5;
    --line: #d4c6aa;
    --line-strong: #afa084;
    --ink: #1b1814;
    --ink-dim: #554b3c;
    --ink-mute: #877a64;
    --action: #1d5a40;
    --action-ink: #f7ead4;
    --action-shadow: rgba(29, 90, 64, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
}

.narrow {
    width: min(100% - 32px, 960px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(14px);
}

.nav,
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav {
    min-height: 64px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.brand-icon.small {
    width: 34px;
    height: 34px;
}

.brand small {
    margin-left: 4px;
    color: var(--ink-mute);
    font: 700 11px/1 "JetBrains Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links,
.footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--ink-dim);
    font-size: 14px;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--ink);
}

.nav-cta,
.solid-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 700;
}

.nav-cta,
.solid-button {
    background: var(--action);
    color: var(--action-ink);
}

.theme-switcher {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    padding: 3px;
}

.theme-option {
    min-width: 58px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-dim);
    padding: 0 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.theme-option:hover {
    color: var(--ink);
}

.theme-option:focus-visible {
    outline: 2px solid var(--winner);
    outline-offset: 2px;
}

.theme-option[aria-pressed="true"] {
    background: var(--action);
    color: var(--action-ink);
    box-shadow: 0 8px 20px var(--action-shadow);
}

.outline-button {
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.outline-button:hover {
    background: var(--surface-hi);
}

.paper-bg {
    background-image:
        radial-gradient(rgba(217, 167, 95, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(217, 167, 95, 0.04) 1px, transparent 1px);
    background-position: 0 0, 14px 14px;
    background-size: 28px 28px, 56px 56px;
}

html[data-theme="light"] .paper-bg {
    background-image:
        radial-gradient(rgba(27, 24, 20, 0.06) 1px, transparent 1px),
        radial-gradient(rgba(27, 24, 20, 0.04) 1px, transparent 1px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 104px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 72px;
}

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-glow-left {
    top: -220px;
    left: -180px;
    background: var(--action);
}

.hero-glow-right {
    right: -220px;
    top: 170px;
    background: var(--winner);
}

.eyebrow,
.section-kicker,
.hero-meta,
.strip-list,
.pricing-note {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    color: var(--ink-dim);
    padding: 0 12px;
    font-size: 12px;
}

.eyebrow strong {
    color: var(--ink);
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    overflow: hidden;
    border-radius: 999px;
    background: var(--live);
}

.hero h1,
.section-head h2,
.final-cta h2 {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.02;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(56px, 7vw, 84px);
}

em {
    color: var(--action);
}

.hero-copy > p,
.section-head p,
.final-cta p {
    color: var(--ink-dim);
    font-size: 18px;
}

.hero-copy > p {
    max-width: 560px;
    margin: 24px 0 0;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.store-row.center {
    justify-content: center;
}

.store-badge {
    min-width: 190px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--bg);
    padding: 8px 18px;
    transition: transform 160ms ease, background 160ms ease;
}

.store-badge:hover {
    transform: translateY(-1px);
    background: var(--action);
    color: var(--action-ink);
}

.store-badge img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.store-badge small,
.store-badge span {
    display: block;
}

.store-badge span {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.05;
}

.store-badge small {
    margin-bottom: 2px;
    opacity: 0.72;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.store-primary {
    background: var(--action);
    color: var(--action-ink);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    color: var(--ink-mute);
    font-size: 11px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta span + span::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.45;
}

.phone-stage {
    position: relative;
    min-height: 640px;
}

.phone {
    position: absolute;
    width: 280px;
    padding: 8px;
    border-radius: 44px;
    background: linear-gradient(160deg, #1c1f27 0%, #0c0d11 100%);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-host {
    top: 0;
    right: 48px;
    transform: rotate(5deg);
}

.phone-guest {
    bottom: 0;
    left: 0;
    width: 260px;
    transform: rotate(-6deg);
}

.phone-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 580px;
    overflow: hidden;
    border-radius: 36px;
    background: #0b0c0f;
    color: #eee1c9;
}

.phone-short {
    min-height: 540px;
}

.notch {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 96px;
    height: 24px;
    border-radius: 0 0 14px 14px;
    background: #000;
    transform: translateX(-50%);
    z-index: 2;
}

.phone-status,
.phone-head,
.phone-title,
.timer-block,
.player-list,
.code-card,
.guest-note {
    margin-left: 20px;
    margin-right: 20px;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    color: rgba(238, 225, 201, 0.8);
    font: 700 10px/1 "JetBrains Mono", monospace;
}

.battery {
    width: 13px;
    height: 8px;
    border: 1px solid rgba(238, 225, 201, 0.6);
    border-radius: 2px;
}

.phone-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 34px;
}

.phone-title {
    padding-top: 34px;
}

.phone small,
.timer-block small,
.code-card small {
    color: var(--ink-mute);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.phone strong {
    display: block;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 22px;
    line-height: 1.1;
}

.align-right {
    text-align: right;
}

.room-code,
.join-code,
.timer,
.live-label,
.player time {
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.room-code {
    color: var(--action);
    font-size: 14px;
    letter-spacing: 0.12em;
}

.timer-block {
    margin-top: 28px;
}

.timer {
    margin-top: 4px;
    color: var(--action);
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
}

.live-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--live);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.player-list {
    display: grid;
    gap: 6px;
    margin-top: 26px;
}

.player {
    min-height: 38px;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: rgba(51, 44, 38, 0.48);
    padding: 0 12px;
    font-size: 12px;
}

.player.active {
    border: 1px solid var(--action);
    background: color-mix(in srgb, var(--action) 12%, transparent);
}

.player span {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--surface-hi);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
}

.player.active span {
    background: var(--action);
    color: var(--action-ink);
}

.player time {
    color: var(--ink-dim);
    font-size: 10px;
}

.player.active time {
    color: var(--action);
}

.phone-button {
    min-height: 44px;
    margin: auto 20px 24px;
    border: 0;
    border-radius: 14px;
    background: var(--action);
    color: var(--action-ink);
    font-weight: 800;
}

.code-card {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    padding: 18px;
}

.join-code {
    margin-top: 7px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 18px;
}

.keypad span {
    display: grid;
    min-height: 40px;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-hi);
    font: 700 14px/1 "JetBrains Mono", monospace;
}

.guest-note {
    margin-top: 14px;
    color: var(--ink-mute);
    text-align: center;
    font-size: 10px;
}

.game-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-2) 62%, transparent);
}

.strip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    padding: 24px 0;
    color: var(--ink-mute);
    font-size: 11px;
}

.strip-list span + span::before {
    content: "/";
    margin-right: 22px;
    opacity: 0.45;
}

.section {
    padding: 112px 0;
}

.section-alt {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.section-head {
    max-width: 690px;
}

.section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-kicker {
    display: block;
    margin-bottom: 16px;
    color: var(--action);
    font-size: 12px;
}

.section-kicker::before {
    content: "-- ";
}

.section-head h2,
.final-cta h2 {
    font-size: clamp(40px, 5vw, 64px);
}

.section-head p {
    margin: 20px 0 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.feature-card,
.steps li,
.price-card,
.faq-list details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.feature-card {
    padding: 24px;
}

.feature-card > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--action) 16%, transparent);
    color: var(--action);
    font: 800 18px/1 "JetBrains Mono", monospace;
}

.feature-card h3,
.steps h3,
.price-card h3 {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 25px;
}

.feature-card p,
.steps p,
.price-card p,
.faq-list p {
    margin: 8px 0 0;
    color: var(--ink-dim);
    font-size: 14px;
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
}

.steps::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--winner) 62%, transparent) 1px, transparent 1.5px);
    background-size: 12px 2px;
}

.steps li {
    position: relative;
    padding: 24px;
}

.steps li > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--action);
    color: var(--action-ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 23px;
    font-weight: 800;
}

.steps li:last-child > span {
    background: var(--winner);
    color: var(--bg);
    box-shadow: 0 0 52px rgba(217, 167, 95, 0.28);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
}

.price-card.featured {
    border-color: color-mix(in srgb, var(--action) 65%, transparent);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    box-shadow: 0 0 60px var(--action-shadow), 0 0 0 1px color-mix(in srgb, var(--action) 28%, transparent);
}

.price-label {
    position: absolute;
    top: -13px;
    left: 32px;
    display: grid;
    min-height: 26px;
    place-items: center;
    border-radius: 999px;
    background: var(--action);
    color: var(--action-ink);
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.price-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.price-top strong {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 46px;
    line-height: 1;
}

.price-top small {
    color: var(--ink-dim);
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.price-card ul {
    display: grid;
    gap: 12px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.price-card li {
    display: flex;
    gap: 10px;
}

.price-card li::before {
    content: "+";
    color: var(--action);
    font-weight: 800;
}

.price-card .outline-button,
.price-card .solid-button {
    margin-top: auto;
}

.pricing-note {
    margin: 24px 0 0;
    color: var(--ink-mute);
    text-align: center;
    font-size: 11px;
}

.faq-wrap {
    width: min(100% - 32px, 780px);
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 52px;
}

.faq-list details {
    padding: 20px 24px;
}

.faq-list details[open] {
    background: var(--surface-hi);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    color: var(--action);
    font: 700 26px/1 "JetBrains Mono", monospace;
    transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.final-cta {
    position: relative;
    padding: 112px 0;
    overflow: hidden;
    text-align: center;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--action) 8%, transparent), transparent);
    pointer-events: none;
}

.final-cta .container {
    position: relative;
    width: min(100% - 32px, 760px);
}

.cta-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 24px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer-grid {
    min-height: 104px;
    padding: 24px 0;
}

.footer-grid p {
    margin: 0;
    color: var(--ink-mute);
    font: 700 11px/1.4 "JetBrains Mono", monospace;
    letter-spacing: 0.12em;
    text-align: right;
    text-transform: uppercase;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.86);
    }
}

.live-label .status-dot,
.hero-meta .status-dot {
    animation: pulseDot 1.6s ease-in-out infinite;
}

@media (max-width: 920px) {
    .nav-links {
        display: none;
    }

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

    .phone-stage {
        min-height: 600px;
        max-width: 520px;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .container,
    .narrow,
    .faq-wrap {
        width: min(100% - 24px, 1120px);
    }

    .nav {
        min-height: 60px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 64px 0 72px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .store-badge {
        width: 100%;
    }

    .phone-stage {
        display: none;
    }

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

    .section,
    .final-cta {
        padding: 78px 0;
    }

    .section-head h2,
    .final-cta h2 {
        font-size: 40px;
    }

    .strip-list span + span::before {
        display: none;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid p {
        text-align: left;
    }
}
