/* Challengor website: landing page and legal pages. The web app itself lives in app/. */
:root {
    --sage: #C5CDB6;
    --forest: #1F2C13;
    --night: #000702;
    --rust: #A94802;
    --bg: var(--night);
    --surface: #0d1609;
    --surface-2: #16220f;
    --text: #e8ecdf;
    --muted: #a9b29a;
    --accent: var(--sage);
    --line: #2a3a1d;
    --radius: 18px;
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Never a sideways scrollbar: cut off anything that sticks out (glows, phones before they fly in). "clip" makes no
   scroll box, so the pinned (sticky) sections keep working. */
html, body { overflow-x: clip; }

body {
    margin: 0;
    cursor: default; /* the arrow over text, not the text cursor; links keep the hand */
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }
.hero .wrap > *, .feature > * { min-width: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(0, 7, 2, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 999px;
    font-weight: 600; font-size: 16px; text-decoration: none;
    border: 1px solid var(--sage);
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage); color: var(--night); }
.btn-primary:hover { background: #dfe6d2; color: var(--night); }
.btn-ghost { color: var(--sage); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.soon { opacity: .55; pointer-events: none; }
.btn small { font-weight: 500; opacity: .8; }

/* Hero */
.hero { padding: 72px 0 48px; background: radial-gradient(1200px 500px at 70% -10%, #23361a 0%, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 span { color: var(--sage); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.phone {
    border-radius: 34px; overflow: hidden;
    border: 6px solid #1b2714;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
    max-width: 320px; margin: 0 auto;
}
@media (max-width: 860px) {
    .hero { padding-top: 40px; }
    .hero .wrap { grid-template-columns: 1fr; }
    .hero .phone { max-width: 260px; }
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--sage); font-weight: 700; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 18px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin: 0 0 80px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-img { order: 2; }
.feature h3 { font-size: 28px; margin: 0 0 12px; line-height: 1.2; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { color: var(--muted); padding-left: 20px; margin: 0; }
.feature .phone { max-width: 280px; }
@media (max-width: 760px) {
    .feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
    .feature.flip .feature-img { order: 0; }
    .feature .phone { max-width: 240px; }
}

/* Small cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h4 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { font-size: 26px; margin-bottom: 8px; }

/* Feature card grid and screenshot strip */
.feature-cards, .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-cards { margin-top: 80px; }
.feature-cards .card { min-width: 0; }
.feature-cards .phone { max-width: 180px; border-radius: 24px; border-width: 4px; margin-bottom: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
.shots figure { margin: 0; min-width: 0; text-align: center; }
.shots .phone { max-width: 220px; border-radius: 26px; border-width: 4px; }
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; }
@media (max-width: 600px) {
    .feature-cards, .shots { grid-template-columns: 1fr; }
    .feature-cards { margin-top: 64px; }
}

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.plan { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.featured { border-color: var(--sage); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-size: 32px; font-weight: 700; margin: 8px 0 16px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); border-top: 1px solid var(--line); }
.plan li:first-child { border-top: none; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--sage); font-weight: 700; }
.plans-note { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 860px; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA */
.cta { text-align: center; }
.cta .buttons { justify-content: center; }
.cta img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal and support pages */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: #d3d9c8; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.doc .box p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--sage); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.fill { background: var(--rust); color: #fff; padding: 0 4px; border-radius: 4px; }
