/* The home page (brainscroll.app): BrainScroll's own colours (app/src/theme/tokens.ts), system fonts, nothing from other sites. */
:root {
  --bg: #131f24;
  --bg-deep: #0e171b;
  --surface: #202f36;
  --border: #37464f;
  --brand: #7856ff;
  --brand-edge: #5031c2;
  --brand-text: #ae9dff;
  --gold: #ffc857;
  --text: #f7f9fc;
  --muted: #a7b0c0;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-text); }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.12; }
p { margin: 0; }

.eyebrow { color: var(--brand-text); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.mascot { width: 120px; height: auto; }
.mascot.big { width: 200px; }
.mascot.tiny { width: 64px; margin: 0 auto 8px; }

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(19, 31, 36, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 19px; }
.brand img { border-radius: 8px; width: 32px; height: 32px; }
.pill { color: #fff; background: var(--brand); text-decoration: none; font-weight: 800; padding: 8px 16px; border-radius: 999px; border-bottom: 3px solid var(--brand-edge); font-size: 15px; }

section { padding: 56px var(--gutter); }
section > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.band { background: var(--bg-deep); }

.hero {
  display: grid; gap: 32px; align-items: center;
  background: radial-gradient(ellipse at 80% 0%, rgba(120, 86, 255, 0.28), transparent 60%), var(--bg);
  padding-top: 40px;
}
.hero h1 { font-size: clamp(40px, 9vw, 68px); }
.hero h1 span { color: var(--brand-text); }
.lead { color: var(--muted); font-size: 19px; margin-top: 16px; max-width: 34em; }
.hero-art { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; max-width: 400px; width: 100%; }
.hero-art .phone { width: 230px; }
.hero-art .mascot.big { position: absolute; left: 0; bottom: 0; width: 130px; z-index: 2; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.button {
  display: inline-block; text-decoration: none; text-align: center; font-weight: 900; letter-spacing: 0.04em;
  padding: 15px 22px; border-radius: 16px; color: #fff; background: var(--brand); border-bottom: 4px solid var(--brand-edge);
}
.button:active { transform: translateY(2px); border-bottom-width: 2px; }
.soon { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--border); color: var(--text); font-weight: 800; }
[hidden] { display: none !important; }

.phone {
  /* A phone: a dark bezel, the app's own background for the status bar and home bar,
     and the screenshot in between, so nothing is cut by the rounded corners. */
  position: relative;
  background: #131f24;
  border: 9px solid #0b1215;
  border-radius: 46px;
  padding: 30px 0 18px;
  box-shadow: 0 0 0 2px #3d4f58, 0 28px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.phone::before {
  /* The camera notch. */
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 14px; border-radius: 999px; background: #0b1215;
}
.phone::after {
  /* The home bar. */
  content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 4px; border-radius: 999px; background: #5a6a73;
}
.phone img { width: 100%; height: auto; }
.phone.small { width: 180px; margin: 0 auto 20px; border-width: 7px; border-radius: 34px; padding: 22px 0 13px; }
.phone.small::before { top: 6px; height: 10px; }
.phone.small::after { bottom: 4px; height: 3px; }

.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.section-head .mascot { width: 96px; flex: none; }
h2 { font-size: clamp(28px, 6vw, 42px); }
.steps { display: grid; gap: 20px; }
.card { background: var(--surface); border: 2px solid var(--border); border-bottom-width: 5px; border-radius: 24px; padding: 24px 20px; text-align: center; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); }

.split { display: grid; gap: 32px; align-items: center; }
.split-copy p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 18px; }
.split-copy .mascot { margin-bottom: 12px; width: 100px; }
.split-art { display: flex; justify-content: center; gap: 16px; }
.split-art { gap: 20px; }
/* Two phones side by side: as wide as the column allows, with a slim frame so
   they keep a real phone's proportions instead of looking stretched. */
.split-art .phone { width: min(270px, 47%); border-width: 7px; border-radius: 38px; padding: 16px 0 10px; }
.split-art .phone::before { top: 5px; height: 9px; width: 26%; }
.split-art .phone::after { bottom: 3px; height: 3px; }
.split-art .phone.offset { margin-top: 56px; }
.split-art .phone:only-child { width: min(240px, 70%); }

.subjects { display: grid; gap: 28px; }
.subject h3 { font-size: 20px; margin-bottom: 14px; }
.trees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.trees li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.trees img { width: 72px; height: 72px; }

.free { text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(255, 200, 87, 0.12), transparent 60%), var(--bg); }
.free .app-icon { margin: 0 auto 8px; width: min(280px, 70%); height: auto; filter: drop-shadow(0 24px 40px rgba(120, 86, 255, 0.35)); }
.free p { color: var(--muted); max-width: 36em; margin: 16px auto 0; font-size: 18px; }
.free .stores { justify-content: center; }

.foot { text-align: center; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.foot a { color: var(--muted); }
.foot .fine { margin-top: 6px; font-size: 13px; }

@media (min-width: 820px) {
  :root { --gutter: 32px; }
  section { padding-top: 88px; padding-bottom: 88px; }
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .hero-art { max-width: 470px; justify-self: end; }
  .hero-art .phone { width: 270px; }
  .hero-art .mascot.big { width: 190px; left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-copy { order: 2; }
  .subjects { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
