/* App pages: "inside the house". Each page opens under a wide gable in the app's colour (--roof),
   the same roof the app has on the home page street. Screens are the real apps running on demo data.
   Shares the brand tokens with the home page. */
:root {
  --navy: #0F2D46;
  --teal: #2E7D73;
  --amber: #F4A261;
  --coral: #E76F51;
  --sand: #EDE6DB;
  --offwhite: #FAF9F6;
  --fern: #5B8A6E;

  --bg: var(--offwhite);
  --ink: var(--navy);
  --ink-2: #4E6070;
  --rule: #DDD6CA;
  --street: var(--navy);
  --street-ink: #F3F1EC;
  --street-ink-2: #B9C6D1;
  --wall: #FFFFFF;
  --band: var(--sand);
  --ok: var(--teal);
  --wip: #C9792F;
  --frame: #0B1C2B;
  --shot-shadow: 0 1px 2px rgba(15, 45, 70, .08), 0 24px 48px -24px rgba(15, 45, 70, .35);
  --roof: var(--teal);
  --roof-ink: #FFFFFF;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1C2B; --ink: #EEF1EC; --ink-2: #A7B6C2; --rule: #23394C; --street: #081521;
    --wall: #12283B; --band: #10273A; --ok: #6FC3B4; --wip: #F4A261; --frame: #000;
    --shot-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1C2B; --ink: #EEF1EC; --ink-2: #A7B6C2; --rule: #23394C; --street: #081521;
  --wall: #12283B; --band: #10273A; --ok: #6FC3B4; --wip: #F4A261; --frame: #000;
  --shot-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
body.vero { --roof: #2E7D73; }
body.wild { --roof: #5B8A6E; }
body.draft { --roof: #2A4F70; }
body.playoffs { --roof: #E76F51; }
body.classcircle { --roof: #2838CC; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; margin: 0; font-optical-sizing: auto; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Logo + header (same as the home page) */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo .word { display: grid; line-height: 1; }
.logo .word b { font: 500 1.5rem/1 var(--serif); letter-spacing: -.01em; }
.logo .word small { font: 500 .5625rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; margin-top: 5px; padding-left: 2px; opacity: .8; }
.top { background: var(--street); color: var(--street-ink); --mark-roof: var(--street-ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.top nav a { text-decoration: none; color: var(--street-ink-2); font-size: .875rem; padding-block: 8px; }
.top nav a:hover { color: var(--street-ink); }

/* The roof: a wide gable in the app's colour, sitting on the navy street */
.roof { background: var(--street); }
.roof .gable { height: clamp(72px, 10vw, 140px); background: var(--roof); clip-path: polygon(0 100%, 50% 0, 100% 100%);
  display: grid; place-items: end center; padding-bottom: clamp(10px, 1.6vw, 20px); }
.roof .gable svg { width: clamp(26px, 3vw, 38px); height: clamp(26px, 3vw, 38px); color: var(--roof-ink); }

/* Hero, inside the house */
.hero { background: var(--wall); padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 88px); }
.hero .wrap { display: grid; gap: clamp(28px, 4vw, 48px); }
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; }
.intro h1 { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; letter-spacing: -.025em; }
.intro .for { font: 500 clamp(1.125rem, 2vw, 1.375rem)/1.35 var(--sans); margin-top: 14px; max-width: 30ch; }
.intro .side { display: grid; gap: 14px; color: var(--ink-2); max-width: 44ch; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9375rem; color: var(--ink); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.status.beta { --dot: var(--ok); }
.status.wip { --dot: var(--wip); }

/* Screens */
.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shot-shadow); background: var(--frame); }
.shot.desk img { border: 1px solid var(--rule); }
.shot.phone { justify-items: center; }
.shot.phone img { width: min(100%, 300px); border-radius: 30px; border: 8px solid var(--frame); }
.shot figcaption { font-size: .875rem; color: var(--ink-2); }
.shot.phone figcaption { text-align: center; max-width: 30ch; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.phones .shot:nth-child(2) { margin-top: clamp(0px, 4vw, 56px); }

/* Feature rows */
.features { padding-block: clamp(56px, 8vw, 112px); display: grid; gap: clamp(56px, 8vw, 104px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.feature.flip .text { order: 2; }
.feature.narrow { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.feature .text { display: grid; gap: 14px; max-width: 34em; }
.feature h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.015em; }
.feature p { color: var(--ink-2); }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 6px; }

/* Facts band: plain statements, no cards */
.facts { background: var(--band); padding-block: clamp(56px, 7vw, 96px); }
.facts h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.015em; margin-bottom: clamp(24px, 3vw, 40px); max-width: 24ch; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 6vw, 96px); }
.facts dt { font: 500 1.25rem/1.25 var(--serif); }
.facts dd { margin: 6px 0 0; color: var(--ink-2); max-width: 36em; }

/* Next door: the other houses */
.street { background: var(--street); color: var(--street-ink); padding-block: clamp(48px, 6vw, 80px) 0; }
.street h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 28px; }
.houses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: end; }
.house { position: relative; display: grid; grid-template-rows: auto 1fr; color: var(--ink); }
.house .r { height: clamp(48px, 5vw, 64px); background: var(--c); clip-path: polygon(0 100%, 50% 0, 100% 100%); margin-inline: -5px;
  display: grid; place-items: end center; padding-bottom: 8px; }
.house .r svg { width: 22px; height: 22px; color: #fff; }
.house .w { background: var(--wall); padding: 18px 20px 20px; display: grid; gap: 4px; }
.house a { font: 500 1.25rem/1.2 var(--serif); text-decoration: none; }
.house a::after { content: ""; position: absolute; inset: 0; }
.house a:focus-visible { outline: none; }
.house:has(a:focus-visible) { outline: 2px solid var(--amber); outline-offset: 4px; }
.house:hover .w { background: color-mix(in srgb, var(--wall) 92%, var(--c)); }
.house p { color: var(--ink-2); font-size: .9375rem; }
.house.vero { --c: #2E7D73; }
.house.wild { --c: #5B8A6E; }
.house.draft { --c: #2A4F70; }
.house.playoffs { --c: #E76F51; }
.house.cc { --c: #2838CC; }
.ground { height: clamp(40px, 5vw, 64px); }

footer { background: var(--street); color: var(--street-ink-2); --mark-roof: var(--street-ink); border-top: 1px solid rgba(255, 255, 255, .08); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .875rem; }
footer .logo { color: var(--street-ink); }
footer a { text-decoration: none; }
footer nav a:hover { color: var(--street-ink); }
.demo-note { font-size: .8125rem; }

@media (max-width: 900px) {
  .intro, .feature, .feature.flip, .feature.narrow, .facts dl { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .text { order: 0; }
  .houses { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 560px) {
  .houses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .phones { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .phones .shot:nth-child(2) { margin-top: 0; }
  .logo .word b { font-size: 1.3125rem; }
  .logo svg { width: 36px; height: 36px; }
}
