/* ===========================================================================
   PICKAXE PLAYER — landing page styles
   Token values are verbatim from the Pickaxe Design System project
   (tokens/colors.css, typography.css, spacing.css, effects.css, fonts.css),
   same source as the iOS bridge in DesignSystem/. Two adaptations for a
   static no-JS page:
   - dark mode keys off `prefers-color-scheme` instead of [data-theme='dark']
   - Inter is not imported (no third-party requests); the --font-sans stack
     falls back to the system face, which is what the app itself uses on iOS
   When a token changes upstream, update the matching line here.
   =========================================================================== */

/* ------- FONTS ------- */
:root {
    --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
        'Liberation Mono', monospace;
}

/* ------- COLOR TOKENS (light) ------- */
:root {
    color-scheme: light;

    --pickaxe-blue: #1d366f;
    --pickaxe-green: #08c076;
    --iris-violet: #6366f1;

    --pickaxe-blue-50: #f4f7ff;
    --pickaxe-blue-100: #e7edff;
    --pickaxe-blue-200: #cdd7fb;
    --pickaxe-blue-300: #a3b7f0;
    --pickaxe-blue-400: #7a94e2;
    --pickaxe-blue-500: #5470d4;
    --pickaxe-blue-600: #314dbf;
    --pickaxe-blue-700: #1d366f;
    --pickaxe-blue-800: #152750;
    --pickaxe-blue-900: #0e1936;

    --iris-violet-100: #e0e7ff;
    --iris-violet-500: #6366f1;
    --iris-violet-600: #4f46e5;
    --iris-violet-700: #4338ca;
    --iris-violet-800: #3730a3;

    --pickaxe-green-100: #c2f4e0;
    --pickaxe-green-400: #30cf92;
    --pickaxe-green-500: #08c076;
    --pickaxe-green-600: #05a568;

    --neutral-0: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    --primary: var(--pickaxe-blue);
    --primary-hover: var(--pickaxe-blue-600);
    --primary-active: var(--pickaxe-blue-800);
    --primary-soft: var(--pickaxe-blue-100);
    --primary-contrast: var(--neutral-0);

    --accent: var(--iris-violet-600);
    --accent-hover: var(--iris-violet-700);
    --accent-active: var(--iris-violet-800);
    --accent-soft: var(--iris-violet-100);
    --accent-contrast: var(--neutral-0);

    --surface-primary: var(--neutral-0);
    --surface-secondary: var(--neutral-50);
    --surface-tertiary: var(--neutral-100);
    --surface-elevated: var(--neutral-0);

    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-700);
    --text-muted: var(--neutral-500);
    --text-subtle: var(--neutral-400);
    --text-on-primary: var(--primary-contrast);
    --text-on-accent: var(--accent-contrast);

    --border-subtle: var(--neutral-200);
    --border-base: var(--neutral-300);
    --border-strong: var(--neutral-400);

    --status-success: #0f9a63;
    --status-success-soft: #e6f6ef;

    --link: var(--pickaxe-blue-600);
    --link-hover: var(--pickaxe-blue-700);
    --focus-ring: var(--accent);

    --logo-primary: var(--pickaxe-blue);
    --logo-accent: var(--pickaxe-green);
}

/* ------- TYPOGRAPHY / SPACING / EFFECTS TOKENS ------- */
:root {
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    --leading-tight: 1.2;
    --leading-body: 1.6;
    --leading-relaxed: 1.7;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 18px 32px rgba(15, 23, 42, 0.16);
    --shadow-xl: 0 32px 62px rgba(15, 23, 42, 0.18);

    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
}

/* ------- DARK MODE ------- */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --neutral-0: #0f172a;
        --neutral-50: #1e293b;
        --neutral-100: #334155;
        --neutral-200: #475569;
        --neutral-300: #64748b;
        --neutral-400: #94a3b8;
        --neutral-500: #cbd5e1;
        --neutral-600: #e2e8f0;
        --neutral-700: #f1f5f9;
        --neutral-800: #f8fafc;
        --neutral-900: #ffffff;

        --primary: var(--pickaxe-green);
        --primary-hover: var(--pickaxe-green-400);
        --primary-active: var(--pickaxe-green-600);
        --primary-soft: rgba(8, 192, 118, 0.15);
        --primary-contrast: #04160d;

        --accent-soft: color-mix(in srgb, var(--iris-violet-500) 22%, transparent 78%);
        --accent-contrast: var(--neutral-900);

        --surface-primary: #0b1220;
        --surface-secondary: #111a2c;
        --surface-tertiary: #172335;
        --surface-elevated: #152133;

        --text-primary: var(--neutral-800);
        --text-secondary: var(--neutral-700);
        --text-muted: var(--neutral-500);
        --text-subtle: var(--neutral-400);

        --border-subtle: rgba(148, 163, 184, 0.24);
        --border-base: rgba(148, 163, 184, 0.35);
        --border-strong: rgba(148, 163, 184, 0.45);

        --status-success: #22c55e;
        --status-success-soft: rgba(34, 197, 94, 0.2);

        --link: var(--pickaxe-blue-400);
        --link-hover: var(--pickaxe-blue-300);

        --logo-primary: var(--pickaxe-green);
        --logo-accent: var(--pickaxe-blue);

        --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.72);
        --shadow-md: 0 10px 28px rgba(6, 12, 28, 0.65);
        --shadow-lg: 0 24px 48px rgba(3, 8, 22, 0.72);
        --shadow-xl: 0 36px 68px rgba(2, 6, 18, 0.78);
    }
}

/* ===========================================================================
   BASE
   =========================================================================== */

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    color: var(--text-primary);
    background: var(--surface-primary);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    line-height: var(--leading-tight);
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===========================================================================
   HEADER / FOOTER SHELL
   =========================================================================== */

.site-header {
    padding: var(--space-5) 0;
}

.site-header .wrap,
.brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.site-header .wrap {
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: var(--space-2);
}

.brand {
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand:hover {
    text-decoration: none;
    color: var(--text-primary);
}

.brand .glyph {
    width: 28px;
    height: 28px;
    color: var(--logo-primary);
    flex: none;
}

.site-nav {
    display: flex;
    gap: var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
}

.site-nav a {
    color: var(--text-secondary);
}

.site-nav a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-24);
    padding: var(--space-8) 0 var(--space-10);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.site-footer .brand {
    font-size: var(--text-base);
}

.site-footer .glyph {
    width: 20px;
    height: 20px;
}

.footer-note {
    width: 100%;
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-subtle);
    text-wrap: balance;
}

.footer-note + .footer-note {
    margin-top: var(--space-2);
}

/* ===========================================================================
   HERO
   =========================================================================== */

.hero {
    padding: var(--space-16) 0 var(--space-8);
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-12);
    align-items: center;
}

.eyebrow {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-4);
}

.hero h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 var(--space-6);
}

.hero .lede {
    color: var(--text-secondary);
    font-size: var(--text-xl);
    line-height: 1.5;
    max-width: 34rem;
    margin: 0 0 var(--space-8);
}

.cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Apple's minimums: 40px tall onscreen, and clear space of at least a quarter
   of the badge height — the 52px height here sits inside the hero's 2rem lede
   margin and the 1rem .cta-row gap. */
.app-store-badge {
    display: inline-flex;
}

.app-store-badge img {
    display: block;
    height: 3.25rem;
    width: auto;
}

.cta-note {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ===========================================================================
   PHONE SCREENSHOT (hero)
   =========================================================================== */

.phone {
    justify-self: center;
    width: min(19.5rem, 100%);
    padding: 0.625rem;
    /* Bezel stays near-black in both themes; not a semantic token on purpose. */
    background: #020617;
    border-radius: 3.25rem;
    box-shadow: var(--shadow-xl);
}

.phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2.625rem;
}

/* ===========================================================================
   FEATURES
   =========================================================================== */

.features {
    padding: var(--space-20) 0 0;
}

.features h2,
.support h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-3);
}

.section-lede {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 40rem;
    margin: 0 0 var(--space-10);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
}

.card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card h3 {
    font-size: var(--text-lg);
    margin: 0 0 var(--space-2);
}

.card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

.essentials {
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-align: center;
    margin-top: var(--space-8);
    text-wrap: balance;
}

/* ===========================================================================
   SUPPORT
   =========================================================================== */

.support {
    padding: var(--space-20) 0 0;
}

.support-panel {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.support-panel p {
    color: var(--text-secondary);
    max-width: 34rem;
    margin: 0 auto var(--space-6);
    font-size: var(--text-lg);
    text-wrap: balance;
}

.button-primary {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--text-on-primary);
    font-weight: 600;
    font-size: var(--text-base);
    transition: background var(--transition-fast);
}

.button-primary:hover {
    background: var(--primary-hover);
    color: var(--text-on-primary);
    text-decoration: none;
}

.support-panel .support-alt {
    margin-top: var(--space-6);
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ===========================================================================
   ARTICLE (privacy policy, 404)
   =========================================================================== */

.article {
    max-width: 42rem;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6) 0;
}

.article h1 {
    font-size: var(--text-4xl);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3);
}

.article .effective {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: 0 0 var(--space-8);
}

.article h2 {
    font-size: var(--text-2xl);
    letter-spacing: -0.01em;
    margin: var(--space-10) 0 var(--space-3);
}

.article p,
.article li {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-3);
}

.article ul {
    margin: 0 0 var(--space-3);
    padding-left: var(--space-6);
}

.article .lead {
    font-size: var(--text-lg);
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

@media (max-width: 900px) {
    .hero {
        padding-top: var(--space-10);
    }

    .hero .wrap {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .phone {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .site-nav {
        gap: var(--space-4);
    }

    .hero .lede {
        font-size: var(--text-lg);
    }

    .features,
    .support {
        padding-top: var(--space-16);
    }
}
