/* EarnTheory website. Brand: charcoal #11181C, lime #B8FF4D, slate #2B343A, mist #F2F4F5; Montserrat headings, Inter text.
   One dark theme, like the brand. Shared by index.html (landing), support.html and privacy.html (.page). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-wght-italic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --charcoal: #11181C; --deep: #0B1013; --surface: #151C20; --raised: #1C2428; --line: #2B343A;
  --lime: #B8FF4D; --ink: #F2F4F5; --muted: #B5BDC2; --faint: #8D979D;
  --head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--deep); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--lime); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

/* ---------- Top bar ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--deep) 86%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-style: italic; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 0; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--lime); }
@media (max-width: 720px) { .nav nav a.wide { display: none; } }

/* ---------- Buttons and tags ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.lime { background: var(--lime); color: var(--charcoal); }
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--lime); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--lime); color: var(--charcoal); font-weight: 700; font-size: 16px; }
.soon svg { width: 22px; height: 22px; fill: currentColor; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--lime); color: var(--charcoal); font: 700 12px/1.6 var(--body); letter-spacing: .02em; vertical-align: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 12% -10%, #2B343A 0%, #151C20 48%, var(--deep) 100%); }
.hero::after { content: ""; position: absolute; right: -220px; top: 120px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 255, 77, .16), rgba(184, 255, 77, 0)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 72px 0; }
.hero h1 { font-weight: 800; font-size: clamp(42px, 6.4vw, 76px); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .small { margin-top: 16px; color: var(--faint); font-size: 14px; }
.hero-phones { position: relative; height: 620px; }
.hero-phones .phone { position: absolute; width: 290px; }
.hero-phones .phone.back { right: 0; top: 70px; transform: rotate(5deg); opacity: .96; }
.hero-phones .phone.front { left: 10px; top: 10px; transform: rotate(-4deg); z-index: 1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 0; }
  .hero-phones { height: 470px; max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-phones .phone { width: 220px; }
}

/* ---------- Phone frame ---------- */
.phone { border-radius: 42px; padding: 9px; background: #05080A; box-shadow: 0 0 0 1.5px var(--line), 0 30px 70px rgba(0, 0, 0, .55); }
.phone img { display: block; width: 100%; border-radius: 34px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { margin-top: 12px; font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); }
.sec-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 19px; }
.alt { background: var(--charcoal); border-block: 1px solid var(--line); }

/* Facts strip */
.facts { padding: 0; }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-family: var(--head); font-size: 17px; }
.facts span { color: var(--faint); font-size: 14px; }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--lime); color: var(--charcoal); font: 800 19px var(--head); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Worked example */
.example { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.example div { padding: 24px 22px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.example b { display: block; font: 800 clamp(30px, 4vw, 42px)/1 var(--head); color: var(--lime); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.example span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.fine { margin-top: 18px; text-align: center; color: var(--faint); font-size: 14px; }
@media (max-width: 700px) { .example { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 44px 0; }
.feature .phone { width: min(100%, 300px); margin-inline: auto; }
.feature:nth-of-type(even) .shot { order: 2; }
.feature h3 { margin-top: 12px; font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); }
.feature p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.feature li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zm4.2 6.6-4.9 5.6a.9.9 0 0 1-1.3 0L4.8 9.9l1.3-1.3 1.5 1.6 4.2-4.8z"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zm4.2 6.6-4.9 5.6a.9.9 0 0 1-1.3 0L4.8 9.9l1.3-1.3 1.5 1.6 4.2-4.8z"/></svg>') center/contain no-repeat; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature .phone { width: min(78%, 280px); }
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
.card h2, .card h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .grid, .grid.two { grid-template-columns: 1fr; } }

/* Free and Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { padding: 30px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.plan.pro { background: linear-gradient(160deg, #1F2A1A, var(--surface) 55%); border-color: var(--lime); }
.plan h3 { font-size: 24px; font-weight: 800; }
.plan .price { margin-top: 10px; font: 800 40px/1 var(--head); letter-spacing: -0.03em; }
.plan .price small { font: 500 15px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--lime); font-weight: 700; }
.plan li b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Questions */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; font: 700 18px/1.3 var(--head); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--lime); font: 500 28px/1 var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Closing call to action */
.close { text-align: center; background: radial-gradient(700px 380px at 50% 100%, rgba(184, 255, 77, .14), transparent 70%), var(--charcoal); border-top: 1px solid var(--line); }
.close h2 { font-weight: 800; font-size: clamp(32px, 5vw, 54px); }
.close p { margin: 16px auto 28px; max-width: 34em; color: var(--muted); font-size: 19px; }

/* ---------- Support and privacy pages ---------- */
main.doc { padding: 56px 0 72px; }
.page h1 { font-weight: 800; font-size: clamp(34px, 6vw, 48px); }
.page h1 + p { margin-top: 10px; }
.page h2 { margin: 34px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page strong { color: var(--ink); }
.page ul { padding-left: 22px; }
.page .card { margin: 24px 0; }
.page .card p { margin: 0; color: var(--ink); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; padding: 26px 0 40px; background: var(--deep); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--lime); }
footer .legal { flex-basis: 100%; color: var(--faint); font-size: 13px; }

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