/* Grumpy Grid — website styling.
   Mirrors the iOS app: black canvas with a top-down stage-light glow,
   gradient wordmark, vivid pad-color accents. */

:root {
    --bg-black: #000000;
    --bg-stage-blue: #1a2e6b;
    --pad-stroke: rgba(255, 255, 255, 0.9);

    --cyan: #5AC8FA;
    --cyan-bright: #BFF2FF;
    --blue: #007AFF;

    --pad-red: #FF3B30;
    --pad-yellow: #FFCC00;
    --pad-blue: #007AFF;
    --pad-green: #34C759;
    --pad-orange: #FF9500;
    --pad-purple: #AF52DE;
    --pad-cyan: #5AC8FA;
    --pad-pink: #FF2D55;

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg-black);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Layered background — the iOS scene's top radial blue glow, plus a
   subtle vignette so text stays readable when the bloom spreads. */
.bg-stage {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 0%,
                                rgba(26, 46, 107, 0.65) 0%,
                                transparent 50%);
    z-index: -2;
    pointer-events: none;
}

.bg-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%,
                                transparent 40%,
                                rgba(0, 0, 0, 0.55) 100%);
    z-index: -1;
    pointer-events: none;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* Hero / brandmark */
.hero {
    text-align: center;
    padding: 40px 0 28px;
}

.hero.compact {
    padding: 32px 0 28px;
}

.wordmark {
    font-size: clamp(58px, 13vw, 96px);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(90deg,
                                #FFFFFF 0%,
                                var(--cyan-bright) 50%,
                                #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 32px rgba(90, 200, 250, 0.35);
}

.tagline {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--text-secondary);
}

/* Pad-color strip — the iOS home pad-preview, ported. Decorative;
   hidden from assistive tech because the labels are repeated in the
   prose below. */
.pad-strip {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 32px auto 8px;
    flex-wrap: wrap;
    max-width: 480px;
}

.pad {
    width: 44px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid var(--pad-stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #FFFFFF;
    font-size: 16px;
}

.pad sub {
    font-size: 10px;
    vertical-align: sub;
}

.pad.c     { background: var(--pad-red);    box-shadow: 0 0 12px rgba(255, 59, 48, 0.55); }
.pad.d     { background: var(--pad-yellow); box-shadow: 0 0 12px rgba(255, 204, 0, 0.55); color: rgba(0,0,0,0.85); }
.pad.e     { background: var(--pad-blue);   box-shadow: 0 0 12px rgba(0, 122, 255, 0.55); }
.pad.gnote { background: var(--pad-green);  box-shadow: 0 0 12px rgba(52, 199, 89, 0.55); }
.pad.a     { background: var(--pad-orange); box-shadow: 0 0 12px rgba(255, 149, 0, 0.55); }
.pad.c2    { background: var(--pad-purple); box-shadow: 0 0 12px rgba(175, 82, 222, 0.55); }
.pad.f     { background: var(--pad-cyan);   box-shadow: 0 0 12px rgba(90, 200, 250, 0.55); }
.pad.d2    { background: var(--pad-pink);   box-shadow: 0 0 12px rgba(255, 45, 85, 0.55); }

/* Glass card */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card p {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 14px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card p.lead {
    font-size: 22px;
    font-weight: 600;
    color: var(--cyan-bright);
    margin-bottom: 20px;
}

.card p.effective-date {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.card h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.card h2:first-of-type {
    margin-top: 8px;
}

.card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.card ul {
    margin: 12px 0 16px 24px;
    color: var(--text-primary);
}

.card li {
    margin-bottom: 8px;
}

.card code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    background: rgba(90, 200, 250, 0.1);
    color: var(--cyan);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(90, 200, 250, 0.2);
}

.card a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dashed rgba(90, 200, 250, 0.4);
    transition: all 0.2s ease;
}

.card a:hover {
    color: var(--cyan-bright);
    border-bottom-color: var(--cyan);
}

.card strong {
    color: var(--cyan-bright);
    font-weight: 600;
}

/* App Store CTA — echoes the iOS app's Quick Start pill (blue→cyan
   gradient + breathing cyan glow on hover), but reads "Download on
   the App Store" with an Apple-logo glyph. Sized to read as the
   primary call to action below the description. */
.store-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 90%;
    margin: 0 auto 32px;
    padding: 16px 28px;
    color: #FFFFFF;
    text-decoration: none;
    background: linear-gradient(90deg,
                                #007AFF 0%,
                                var(--cyan) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(90, 200, 250, 0.35);
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.store-cta:hover,
.store-cta:focus-visible {
    box-shadow: 0 0 36px rgba(90, 200, 250, 0.7);
    transform: translateY(-1px);
}

.store-cta-mark {
    width: 22px;
    height: 27px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.store-cta-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.store-cta-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.store-cta-main {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Bottom links — pill style matching the iOS HUD chrome */
.links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.links a {
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 10px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.links a:hover {
    color: var(--cyan-bright);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(90, 200, 250, 0.35);
}

footer {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: 40px;
}
