/* Darts Scorekeeper Pro — landing site
   Brand palette mirrors the iOS app: dartboard green + brass on dark surface. */

:root {
    --bg: #0B0D0F;
    --surface: #15181B;
    --surface-2: #1B1F23;
    --divider: #2A2F35;
    --text: #F2F4F6;
    --text-2: #B0B6BD;
    --text-3: #6E7680;
    --green: #2A8C5A;
    --green-deep: #1F6F44;
    --green-soft: #14241B;
    --brass: #B59760;
    --brass-bright: #E1C988;
    --brass-deep: #6F5A2D;
    --brass-soft: #1B1410;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --max: 760px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brass-bright);
    text-decoration: none;
    border-bottom: 1px solid rgba(225, 201, 136, 0.25);
    transition: color 0.15s, border-color 0.15s;
}
a:hover { color: var(--green); border-color: var(--green); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 24px 80px;
}

header.site {
    border-bottom: 1px solid var(--divider);
    background: rgba(11, 13, 15, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}
header.site .inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
header.site .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.2px;
    color: var(--text);
    border-bottom: none;
}
header.site .brand .dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--green), var(--green-deep) 70%);
    box-shadow: 0 0 0 1px rgba(181, 151, 96, 0.25);
    display: inline-block;
}
header.site nav {
    margin-left: auto;
    display: flex;
    gap: 18px;
    font-size: 13px;
}
header.site nav a {
    color: var(--text-2);
    border-bottom: none;
}
header.site nav a:hover { color: var(--brass-bright); }

.hero {
    text-align: center;
    padding: 64px 0 32px;
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brass-bright);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.2px;
    margin: 0 0 16px;
    font-weight: 900;
}
.hero p.lede {
    color: var(--text-2);
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto 32px;
}
.hero .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: linear-gradient(180deg, var(--green), var(--green-deep));
    color: white;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(42, 140, 90, 0.25);
}
.hero .cta:hover { color: white; border-color: transparent; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 48px 0 24px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.feature h3 {
    font-size: 15px;
    margin: 0 0 6px;
    color: var(--text);
}
.feature p {
    color: var(--text-2);
    font-size: 13px;
    margin: 0;
}

footer.site {
    border-top: 1px solid var(--divider);
    margin-top: 48px;
    padding: 24px;
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
}
footer.site .links {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
footer.site a { color: var(--text-2); border-bottom: none; }
footer.site a:hover { color: var(--brass-bright); }

/* Long-form pages (privacy, terms, help). */
article.doc {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 32px clamp(20px, 4vw, 40px);
    margin-top: 24px;
}
article.doc h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
    margin: 0 0 6px;
}
article.doc .meta {
    color: var(--text-3);
    font-size: 12px;
    margin-bottom: 24px;
}
article.doc h2 {
    font-size: 18px;
    margin: 32px 0 8px;
    letter-spacing: -0.2px;
}
article.doc h3 {
    font-size: 15px;
    margin: 24px 0 6px;
    color: var(--text-2);
}
article.doc p, article.doc li { color: var(--text-2); font-size: 14.5px; }
article.doc ul, article.doc ol { padding-left: 22px; }
article.doc code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--surface-2);
    border: 1px solid var(--divider);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--brass-bright);
}
article.doc strong { color: var(--text); }
article.doc hr {
    border: none;
    border-top: 1px solid var(--divider);
    margin: 28px 0;
}

/* 404 */
.notfound {
    text-align: center;
    padding: 96px 0;
}
.notfound h1 { font-size: 64px; margin: 0; color: var(--brass-bright); }
.notfound p { color: var(--text-2); margin: 12px 0 24px; }

@media (max-width: 540px) {
    .hero { padding: 40px 0 24px; }
    article.doc { padding: 22px 18px; }
    header.site nav { gap: 12px; }
}

/* === Released-state landing additions ===
   Scoped to the home page via `body.home` so the existing 760px container
   max width is preserved for /help/, /privacy/, /terms/, and /404. Every
   selector below is additive — no rule above this comment is overridden
   destructively. */

body.home {
    --max: 1080px;
}

/* Header brand icon replaces the green dot on the home page only — the dot
   selector is preserved for any other page that might still use it. */
.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    box-shadow: 0 0 0 1px rgba(225, 201, 136, 0.18);
    display: inline-block;
}

/* Tiny App Store text-button in the header — desktop only. */
header.site nav .header-cta {
    color: var(--brass-bright);
    font-weight: 600;
    border-bottom: none;
    padding-left: 4px;
}
header.site nav .header-cta:hover { color: var(--green); }
@media (max-width: 860px) {
    header.site nav .header-cta { display: none; }
}

/* Hero (released-state, two-column on desktop). */
.hero--released {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 56px;
    text-align: left;
    align-items: center;
    padding: 80px 0 56px;
}
.hero--released .eyebrow { margin-bottom: 18px; }
.hero--released h1 {
    font-size: clamp(34px, 5.4vw, 54px);
    margin: 0 0 18px;
}
.hero--released p.lede {
    margin: 0 0 28px;
    max-width: 560px;
}
.hero--released .hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shot {
    width: 100%;
    height: auto;
    max-width: 480px;
    display: block;
    margin-inline: auto;
    filter:
        drop-shadow(0 30px 60px rgba(30, 142, 62, 0.18))
        drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.hero .badge-link {
    display: inline-block;
    height: 56px;
    line-height: 0;
    border-bottom: none;
    padding: 0;
    background: none;
    box-shadow: none;
}
.hero .badge-link:hover { border-bottom: none; }
.hero .badge-link svg {
    height: 56px;
    width: auto;
    display: block;
}

.hero .meta-line {
    color: var(--text-3);
    font-size: 13px;
    margin-top: 12px;
    letter-spacing: 0.02em;
}

@media (max-width: 860px) {
    .hero--released {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding: 48px 0 32px;
    }
    .hero--released p.lede { margin-inline: auto; }
    .hero--released .hero-art { order: -1; }
}

/* Trust strip — sits between hero and feature grid. */
.trust-strip {
    text-align: center;
    color: var(--brass);
    font-size: 13px;
    letter-spacing: 0.04em;
    margin: 24px 0 56px;
    opacity: 0.85;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.trust-strip span { display: inline-block; }
.trust-strip span + span::before {
    content: " · ";
    color: var(--text-3);
    margin: 0 12px;
}
@media (max-width: 540px) {
    .trust-strip { flex-direction: column; gap: 6px; }
    .trust-strip span + span::before { content: ""; margin: 0; }
}

/* Feature cards with screenshots on top. */
.features--shot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 16px 0 48px;
}
.feature--shot {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}
.feature--shot img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
    border-radius: 14px;
}
.feature--shot h3 {
    font-size: 17px;
    margin: 0 0 8px;
    padding-top: 12px;
    position: relative;
    color: var(--text);
}
.feature--shot h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 1px;
    background: var(--green);
}
.feature--shot p {
    font-size: 14px;
    color: var(--text-2);
}
@media (max-width: 860px) {
    .features--shot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .features--shot { grid-template-columns: 1fr; }
}

/* Zigzag mode rows — image one side, copy the other on desktop;
   stacked image-then-copy on mobile regardless of zigzag direction. */
.row-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 64px 0;
    border-top: 1px solid var(--divider);
}
.row-mode__art img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}
.row-mode__copy h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    margin: 0 0 14px;
    letter-spacing: -0.4px;
}
.row-mode__copy p {
    color: var(--text-2);
    font-size: 16px;
    margin: 0 0 18px;
    max-width: 520px;
}
.row-mode__copy ul.chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.row-mode__copy ul.chips li {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

/* Right-image variant: flip column order on desktop only. */
.row-mode--rev .row-mode__art { order: 2; }
.row-mode--rev .row-mode__copy { order: 1; }

@media (max-width: 860px) {
    .row-mode {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0;
    }
    .row-mode__art,
    .row-mode--rev .row-mode__art {
        order: -1;
    }
    .row-mode__copy,
    .row-mode--rev .row-mode__copy {
        order: 1;
        text-align: center;
    }
    .row-mode__copy p { margin-inline: auto; }
    .row-mode__copy ul.chips { justify-content: center; }
}

/* Practice band — centered, no image. */
.practice-band {
    text-align: center;
    padding: 80px 0 16px;
    border-top: 1px solid var(--divider);
    max-width: 720px;
    margin: 0 auto;
}
.practice-band h2 {
    font-size: clamp(26px, 3.6vw, 36px);
    margin: 0 0 14px;
    letter-spacing: -0.4px;
}
.practice-band p {
    color: var(--text-2);
    font-size: 16px;
    margin: 0;
}

/* Free vs Pro comparison. */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 64px 0 16px;
}
.compare-card {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
}
.compare-card h3 {
    font-size: 18px;
    margin: 0 0 14px;
    color: var(--text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.compare-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.compare-card ul li {
    color: var(--text-2);
    font-size: 14.5px;
    padding: 8px 0 8px 22px;
    border-bottom: 1px dashed rgba(42, 47, 53, 0.6);
    position: relative;
}
.compare-card ul li:last-child { border-bottom: none; }
.compare-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--green);
    font-weight: 700;
}
.compare-card--pro {
    border-color: var(--brass-deep);
    box-shadow: 0 0 0 1px rgba(225, 201, 136, 0.12) inset;
    background: linear-gradient(180deg, var(--surface) 0%, #181410 100%);
}
.compare-card--pro h3 { color: var(--brass-bright); }
.compare-card--pro ul li::before { color: var(--brass-bright); }
.compare-note {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-3);
    font-size: 12.5px;
    margin: 14px 0 0;
}
@media (max-width: 540px) {
    .compare { grid-template-columns: 1fr; }
}

/* Privacy band — full-bleed dark stripe. */
.privacy-band {
    background: linear-gradient(180deg, #0B0D0F 0%, #101418 100%);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    padding: 80px 24px;
    text-align: center;
    margin-top: 56px;
}
.privacy-band__inner {
    max-width: 720px;
    margin: 0 auto;
}
.privacy-band h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    margin: 0 0 18px;
    letter-spacing: -0.4px;
}
.privacy-band p {
    color: var(--text-2);
    font-size: 16px;
    margin: 0 0 14px;
}
.privacy-band__footnote {
    color: var(--text-3);
    font-size: 13.5px !important;
    margin-top: 18px !important;
}

/* FAQ. */
.faq {
    margin: 72px 0 32px;
}
.faq__title {
    font-size: clamp(22px, 3vw, 30px);
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}
.faq details {
    border-top: 1px solid var(--divider);
    padding: 18px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--divider); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--brass-bright);
    font-weight: 400;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.15s, content 0.15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
    color: var(--text-2);
    margin: 12px 0 0;
    font-size: 14.5px;
}

/* Final CTA band. */
.cta-band {
    background: linear-gradient(180deg, #0B0D0F 0%, #1B1F23 100%);
    padding: 96px 24px;
    text-align: center;
    border-top: 1px solid var(--divider);
    margin-top: 24px;
}
.cta-band__inner {
    max-width: 720px;
    margin: 0 auto;
}
.cta-band h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    color: var(--text);
}
.cta-band .lede {
    color: var(--text-2);
    font-size: 16px;
    margin: 0 0 28px;
}
.cta-band .badge-link {
    display: inline-block;
    height: 56px;
    line-height: 0;
    border-bottom: none;
}
.cta-band .badge-link:hover { border-bottom: none; }
.cta-band .badge-link svg {
    height: 56px;
    width: auto;
    display: block;
}

