/* the13 marketing site — standalone, no framework. Mirrors the app's dark
   design language (tokens from docs/IOS.md + The13.UI app.css). */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-1: #231F20;
    --bg-2: #222831;
    --card: #31363F;
    --purple: #61297A;
    --purple-stroke: #9B4DC4;
    --teal: #76ABAE;
    --text: #EEEEEE;
    --text-dim: #999999;
    --win: #00D471;
    --loss: #FB2C36;
    --draw: #FE9A00;
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Top nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(35, 31, 32, 0.72);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.nav-logo img { height: 30px; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color .15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: rgba(97, 41, 122, 0.85);
    border-color: var(--purple-stroke);
    color: #fff;
}

.btn-primary:hover { background: var(--purple); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
}

.btn-lg { font-size: 16px; padding: .95rem 1.7rem; }

/* App Store "coming soon" badge */
.appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 1.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    cursor: default;
}

.appstore-badge .apple { font-size: 26px; line-height: 1; }

.appstore-badge .as-copy { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }

.appstore-badge .as-small { display: block; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

.appstore-badge .as-big { display: block; font-family: var(--font); font-size: 15px; font-weight: 600; }

.appstore-badge .as-soon { color: var(--teal); font-size: 11px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 5.5rem 0 4.5rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 380px at 50% 0%, rgba(97,41,122,0.28) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
    display: inline-block;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal);
    padding: .35rem .8rem;
    border: 1px solid rgba(118,171,174,0.35);
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.05;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.hero h1 .thin { font-weight: 500; display: block; }

.hero-sub {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 2.25rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 1.1rem;
    font-size: 13px;
    color: var(--text-dim);
}

.hero-shot {
    margin: 3.5rem auto 0;
    max-width: 880px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    display: block;
    width: 100%;
}

.hero-shot.portrait { max-width: 440px; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

.section-head h2 {
    font-family: var(--font);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 .75rem;
}

.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.step {
    background: rgba(49,54,63,0.28);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 1.75rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(97,41,122,0.30);
    border: 1px solid var(--purple-stroke);
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 { font-family: var(--font); font-size: 19px; font-weight: 600; margin: 0 0 .5rem; }

.step p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* Feature rows */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature + .feature { margin-top: 4rem; }

.feature.reverse .feature-media { order: 2; }

.feature-media img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.feature h3 { font-family: var(--font); font-size: clamp(24px,3vw,30px); font-weight: 600; margin: 0 0 .85rem; }

.feature p { color: var(--text-dim); font-size: 17px; margin: 0 0 1rem; }

.feature ul { list-style: none; margin: 0; padding: 0; }

.feature li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; color: var(--text); font-size: 15px; }

.feature li .tick { color: var(--win); flex-shrink: 0; margin-top: 2px; }

/* Scoring chips */
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.score-card {
    text-align: center;
    background: rgba(49,54,63,0.28);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 1.5rem 1rem;
}

.score-val { font-family: var(--font); font-size: 34px; font-weight: 700; line-height: 1; }

.score-val.win { color: var(--win); }
.score-val.draw { color: var(--draw); }
.score-val.loss { color: var(--loss); }

.score-lbl { color: var(--text-dim); font-size: 13px; margin-top: .5rem; }

/* CTA band */
.cta-band {
    text-align: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(97,41,122,0.35) 0%, rgba(49,54,63,0.2) 45%, transparent 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 3.5rem 2rem;
}

.cta-band h2 { font-family: var(--font); font-size: clamp(28px,4vw,40px); font-weight: 700; margin: 0 0 .75rem; }

.cta-band p { color: var(--text-dim); font-size: 18px; margin: 0 0 2rem; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 3rem;
    padding: 3rem 0 2.5rem;
}

.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

.footer-brand img { height: 26px; margin-bottom: .75rem; }

.footer-brand p { color: var(--text-dim); font-size: 13px; max-width: 280px; margin: 0; }

.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }

.footer-col h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin: 0 0 .9rem; }

.footer-col a { display: block; font-size: 14px; color: var(--text); margin-bottom: .55rem; transition: color .15s ease; }

.footer-col a:hover { color: var(--teal); }

.footer-legal { margin-top: 2.5rem; color: var(--text-dim); font-size: 12px; text-align: center; }

/* ---------- Simple content pages (about/privacy/terms/contact) ---------- */
.page { padding: 3.5rem 0 2rem; }

.page h1 { font-family: var(--font); font-size: clamp(32px,5vw,46px); font-weight: 700; margin: 0 0 .5rem; }

.page .lede { color: var(--text-dim); font-size: 18px; margin: 0 0 2.5rem; }

.prose { max-width: 760px; }

.prose h2 { font-family: var(--font); font-size: 24px; font-weight: 600; margin: 2.25rem 0 .75rem; }

.prose h3 { font-family: var(--font); font-size: 18px; font-weight: 600; margin: 1.5rem 0 .5rem; }

.prose p, .prose li { color: #cfd3da; font-size: 16px; }

.prose ul { padding-left: 1.2rem; }

.prose a { color: var(--teal); text-decoration: underline; }

.prose strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
    .feature { grid-template-columns: 1fr; gap: 1.5rem; }
    .feature.reverse .feature-media { order: 0; }
    .nav-links { gap: 1.1rem; }
    .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn, .hero-ctas .appstore-badge { width: 100%; }
}
