/* Tradeoff — i6dev.ca/tradeoff. Tokens match the app's "Lit Glass" look (Theme.swift):
   near-black canvas, white/grey interface, jade = growth, gold = fun.
   The host sends no cache headers, so phones keep an old copy of this file for days: when you
   change it, bump ?v= in every page's stylesheet link (index, support, privacy, terms). */
:root {
    color-scheme: dark;
    --canvas: #050607;
    --surface: #131518;
    --hairline: rgba(255, 255, 255, 0.08);
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.62);
    --text-tertiary: rgba(255, 255, 255, 0.38);
    --jade: #5BE3A6;
    --gold: #FFBA4A;
    --glow-jade: rgba(91, 227, 166, 0.45);
    --glow-gold: rgba(255, 186, 74, 0.5);
    --radius: 22px;
    --max-width: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font);
    background: var(--canvas);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin-bottom: 1.2rem; color: var(--text-secondary); }
strong { color: var(--text); font-weight: 600; }

a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }

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

.eyebrow {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-tertiary); margin-bottom: 16px;
}

/* Buttons: white capsule with black text, like the app's primary action */
.button, .cta-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--text); color: var(--canvas) !important;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.button:hover, .cta-button:hover { opacity: 0.88; }
.button:active, .cta-button:active { transform: scale(0.98); }
.button.secondary { background: rgba(255, 255, 255, 0.08); color: var(--text) !important; }

/* Header */
header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(5, 6, 7, 0.72);
    backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid var(--hairline);
}
nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; text-decoration: none; }
.logo img { width: 20px; height: 28px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; text-decoration: none; }
.nav-links a.active, .nav-links a:hover { color: var(--text); }
.nav-links .cta-button { padding: 10px 18px; font-size: 0.9rem; }

/* Hero */
.hero { position: relative; padding: 48px 0 40px; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 60% at 72% 42%, rgba(52, 62, 92, 0.28), transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .trade {
    background: linear-gradient(100deg, var(--jade) 10%, var(--gold) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 1.2rem; max-width: 520px; margin-bottom: 14px; }
.hero .tagline { font-size: 1.2rem; color: var(--text); font-weight: 500; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Apple's "Download on the App Store" badge (official artwork, loaded from Apple; keep its proportions) */
.store-badge { display: inline-flex; margin-top: 28px; transition: opacity 0.2s; }
.store-badge:hover { opacity: 0.88; }
.store-badge img { display: block; height: 54px; width: auto; }

.hero-art img {
    width: 124%; max-width: none; margin: -6% -12%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 72%;
    -webkit-mask-image: radial-gradient(closest-side at 50% 52%, #000 64%, transparent 100%);
    mask-image: radial-gradient(closest-side at 50% 52%, #000 64%, transparent 100%);
}

/* Sections */
section.block { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; margin-bottom: 0; }

/* The trade: three scene cards */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.scene img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.scene-body { padding: 0 28px 30px; margin-top: -28px; position: relative; }
.scene-body p { margin-bottom: 0; }
.tag {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tag.jade { color: var(--jade); }
.tag.gold { color: var(--gold); }
.tag .plan { color: var(--text-tertiary); font-weight: 600; }

/* How a day works */
.day {
    background: var(--surface); border-radius: calc(var(--radius) + 6px);
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; padding: 56px;
}
.day .section-head { margin-bottom: 0; }
.steps { list-style: none; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 0 14px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.steps .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; }
.dot.jade { background: var(--jade); box-shadow: 0 0 12px var(--glow-jade); }
.dot.gold { background: var(--gold); box-shadow: 0 0 12px var(--glow-gold); }
.dot.split { background: linear-gradient(180deg, var(--jade) 50%, var(--gold) 50%); }
.dot.white { background: var(--text); }
.dot.grey { border: 2px solid var(--text-tertiary); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin-bottom: 0; }

/* Why it holds */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 30px; }
.card p { margin-bottom: 0; }
.card .glyph { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; margin-bottom: 18px; }
.card .glyph svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.plan-card { background: var(--surface); border-radius: var(--radius); padding: 36px; }
.plan-card.premium { background: linear-gradient(180deg, rgba(255, 186, 74, 0.10), rgba(255, 186, 74, 0) 55%), var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 186, 74, 0.22); }
.plan-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan-card .plan-note { font-size: 0.95rem; margin-bottom: 22px; }
.plan-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text-secondary); }
.plan-card li svg { width: 18px; height: 18px; margin-top: 4px; stroke: var(--text); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan-card.premium li svg { stroke: var(--gold); }

/* Closing */
.closing { text-align: center; padding: 96px 0 104px; }
.closing .mark-glow { width: 64px; height: 91px; margin: 0 auto 32px; filter: drop-shadow(0 0 28px rgba(91, 227, 166, 0.28)) drop-shadow(0 10px 40px rgba(255, 186, 74, 0.22)); }
.closing h2 { margin-bottom: 14px; }
.closing p { font-size: 1.1rem; margin-bottom: 28px; }
.closing .store-badge { margin: 6px 0 40px; }

/* Content pages (support, privacy, terms) */
.content-section { padding: 64px 0 100px; }
.content-section > .container > h1 { text-align: center; margin-bottom: 40px; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.content-block {
    background: var(--surface); border-radius: var(--radius); padding: 56px; margin: 0 auto 16px;
    max-width: 860px;
}
.content-block h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.content-block h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 40px; margin-bottom: 12px; }
.content-block h3 { margin-top: 24px; margin-bottom: 8px; }
.content-block p, .content-block li { font-size: 1rem; }
.content-block ul, .content-block ol { margin: 0 0 20px 22px; }
.content-block li { margin-bottom: 8px; color: var(--text-secondary); }
.content-block li::marker { color: var(--text-tertiary); }
.faq { padding: 32px 36px; }
.faq h3 { margin-top: 0; margin-bottom: 10px; }
.faq p:last-child { margin-bottom: 0; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 44px 0; font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--text-tertiary); margin-top: 28px; text-align: center; font-size: 0.82rem; }

@media (max-width: 980px) {
    .scenes, .grid { grid-template-columns: 1fr 1fr; }
    .scenes .scene:last-child { grid-column: 1 / -1; flex-direction: row; }
    .scenes .scene:last-child img {
        width: 45%; aspect-ratio: auto;
        -webkit-mask-image: linear-gradient(to right, #000 60%, transparent); mask-image: linear-gradient(to right, #000 60%, transparent);
    }
    .scenes .scene:last-child .scene-body { margin: 0; padding: 30px 28px; align-self: center; }
    .day { grid-template-columns: 1fr; gap: 36px; padding: 44px; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .nav-links { gap: 18px; }
    .nav-links a.home-link { display: none; }

    .hero { padding: 8px 0 24px; }
    .hero .container { grid-template-columns: 1fr; gap: 0; text-align: center; }
    .hero-art { order: -1; margin: 0 -16px -40px; }
    .hero-art img {
        width: 100%; margin: 0; aspect-ratio: 1 / 1; object-position: 50% 72%;
        -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 66%, transparent 100%);
        mask-image: radial-gradient(closest-side at 50% 50%, #000 66%, transparent 100%);
    }
    .hero .lead { margin-left: auto; margin-right: auto; font-size: 1.08rem; }
    .hero .tagline { font-size: 1.08rem; }
    .hero-actions { justify-content: center; }

    section.block { padding: 64px 0; }
    .scenes, .grid, .plans { grid-template-columns: 1fr; }
    .scenes .scene:last-child { flex-direction: column; }
    .scenes .scene:last-child img {
        width: 100%; aspect-ratio: 1 / 1;
        -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    }
    .scenes .scene:last-child .scene-body, .scene-body { margin-top: -28px; padding: 0 24px 28px; }
    .day { padding: 32px 24px; border-radius: var(--radius); }
    .card { padding: 26px; }
    .plan-card { padding: 30px 26px; }
    .closing { padding: 72px 0 80px; }

    .content-section { padding: 40px 0 72px; }
    .content-block { padding: 28px 22px; }
    .faq { padding: 26px 22px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
