/* First Call website: the app's "Lanes" look. A red track band with lane lines, a finish-line checker, warm
   infield paper, display type in Bahnschrift (Barlow Condensed elsewhere). Plain static pages, no scripts. */

:root {
  --red: #C2412D; --red-dark: #963020; --red-soft: #FBEAE6;
  --green: #2F8F55; --green-soft: #E3F2E8;
  --ink: #15202B; --ink-2: #26323F; --muted: #5D6977; --line: #E1E4E8;
  --bg: #F2F0EB; --surface: #fff; --lane: #F8F5F1;
  --display: Bahnschrift, "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --checker: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%);
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: .3px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kicker { font: 700 .85rem var(--display); letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); margin: 0 0 .6em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* The band: the track surface with lane lines, the logo, the pages ---------------------------------------- */
.band { color: #fff; background: var(--red);
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.45) 22px 24px); }
.band-in { background: linear-gradient(90deg, var(--red) 0 55%, rgba(194,65,45,.75)); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 12px; padding-bottom: 12px; }
.band a { color: #fff; text-decoration: none; }
.wordmark { display: flex; align-items: center; gap: 10px; font: 700 1.25rem var(--display); letter-spacing: 2px; }
.wordmark img { height: 36px; background: #fff; border-radius: 10px; padding: 3px; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 20px; font-size: .95rem; opacity: .92; }
.nav a:hover { background: rgba(0,0,0,.15); opacity: 1; }
.nav a[aria-current="page"] { background: rgba(0,0,0,.25); opacity: 1; font-weight: 600; }
.finish { height: 10px; background: var(--checker) 0 0 / 10px 10px; }
.nav-toggle, .nav-open { display: none; }

/* Sections ------------------------------------------------------------------------------------------------ */
section { padding: 64px 0; }
section:not(.dark):not(.band-section) + section:not(.dark):not(.band-section) { padding-top: 0; }
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.page-head { padding: 48px 0 24px; }
.band-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.band-section + section { padding-top: 64px; }
.dark { background: var(--ink); color: #fff; }
.dark .kicker { color: #F3A190; }
.dark .lead, .dark .muted { color: #C9D1DA; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 1rem var(--body); text-decoration: none; }
.button:hover { border-color: var(--red); }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red-dark); }
.button.primary:hover { background: var(--red-dark); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.card h3 { color: var(--red-dark); }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }

/* Numbered steps, like the app's menu ------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.15rem var(--display); }
.steps li:first-child::before { background: var(--red); }
.dark .steps li::before { background: rgba(255,255,255,.16); }
.dark .steps li:first-child::before { background: var(--red); }
.steps b { display: block; font: 700 1.15rem var(--display); letter-spacing: .3px; }

/* The day as a track: stops along a line ----------------------------------------------------------------- */
.track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; margin: 32px 0 8px; padding: 0; list-style: none; }
.track::before { content: ""; position: absolute; top: 14px; left: 7%; right: 7%; height: 4px; background: var(--line); }
.track li { position: relative; text-align: center; font: 600 .95rem var(--display); letter-spacing: .3px; color: var(--muted); }
.track li::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%;
  background: #A3ACB6; border: 4px solid var(--bg); position: relative; }
.track li.on { color: var(--ink); } .track li.on::before { background: var(--red); }

/* Screens: laptop and phone frames ---------------------------------------------------------------------- */
.screen { margin: 0; }
.screen img { width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(21,32,43,.35);
  background: #fff; }
.screen.crop img { aspect-ratio: 16 / 10.5; object-fit: cover; object-position: top left; }
.screen figcaption, .phone figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 10px; }
.phone { margin: 0 auto; max-width: 270px; }
.phone .frame { background: var(--ink); border-radius: 30px; padding: 10px; box-shadow: 0 18px 40px -18px rgba(21,32,43,.5); }
.phone img { border-radius: 22px; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; width: 100%; }
.hero-shots { position: relative; }
.hero-shots .phone { position: absolute; right: -12px; bottom: -36px; width: 34%; max-width: 200px; }
.phones { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.phones .phone { width: 220px; }

/* Roles ------------------------------------------------------------------------------------------------- */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.role { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 14px 16px; }
.role b { font: 700 1.1rem var(--display); display: block; }
.role.no-app { border-left-color: var(--green); }
.role span { font-size: .92rem; color: var(--muted); }

/* Quotes and principles --------------------------------------------------------------------------------- */
.principle { border-left: 4px solid var(--red); padding: 4px 0 4px 18px; margin: 0 0 22px; }
.principle b { font: 700 1.25rem var(--display); display: block; }
blockquote { margin: 0; font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--display); letter-spacing: .2px; }

/* Downloads --------------------------------------------------------------------------------------------- */
.download { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: var(--ink); }
.download:hover { border-color: var(--red); }
.download .icon { flex: none; width: 46px; height: 56px; border-radius: 6px; background: var(--red-soft); color: var(--red-dark);
  display: grid; place-items: center; font: 700 .8rem var(--display); letter-spacing: 1px; border: 1px solid #F1C7BD; }
.download b { font: 700 1.15rem var(--display); display: block; color: var(--red-dark); }

/* Diagram: the model ------------------------------------------------------------------------------------ */
.flowline { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.flowline .node { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.flowline .node b { font: 700 1.1rem var(--display); display: block; color: var(--red-dark); }
.flowline .arrow { align-self: center; font: 700 1.6rem var(--display); color: var(--muted); }
.flowline .node.playbook { border-top: 4px solid var(--green); }
.flowline .node.meet { border-top: 4px solid var(--red); }

/* Behind the Scenes: code, data shapes and the architecture sketch ------------------------------------- */
pre, code { font: .92em/1.5 Consolas, "Cascadia Code", "SF Mono", Menlo, monospace; }
pre { background: var(--ink); color: #E6EBF0; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 1em;
  font-size: .86rem; }
pre .c { color: #8FA3B5; } pre .k { color: #F3A190; } pre .s { color: #9AD9B0; }
p code, li code, td code { background: var(--lane); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--red-dark); }
.arch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.arch .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.arch .box b { font: 700 1.1rem var(--display); display: block; color: var(--red-dark); }
.arch .box ul { margin: 8px 0 0; padding-left: 18px; font-size: .95rem; color: var(--ink-2); }
.arch .link { text-align: center; font-size: .85rem; color: var(--muted); max-width: 140px; }
.arch .link::before { content: "⟷"; display: block; font-size: 1.8rem; color: var(--red); line-height: 1; margin-bottom: 4px; }
.worked { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px 8px; }
.worked table { border: 0; }
.worked td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.worked td.late { color: var(--red-dark); font-weight: 600; }
.honest li { margin-bottom: .5em; }
.honest li b { color: var(--red-dark); }

/* Proof strip: the director's record under the hero ---------------------------------------------------- */
.band-section.proof { padding: 30px 0; }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.proof b { display: block; font: 700 clamp(1.9rem, 4vw, 2.8rem)/1 var(--display); color: var(--red); letter-spacing: .3px; }
.proof span { display: block; margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* The director: byline on Home, portrait on About ------------------------------------------------------- */
.byline-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 0; }
.byline-row p { margin: 0; line-height: 1.25; }
.byline-row b { display: block; font: 700 1.1rem var(--display); letter-spacing: .3px; }
.byline-row span { color: var(--muted); font-size: .95rem; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -6px rgba(21,32,43,.45); flex: none; }
.portrait { margin: 0 auto; max-width: 380px; }
.portrait img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(21,32,43,.45); }

/* Project Story: prose with a screenshot per round ----------------------------------------------------- */
.byline { color: var(--muted); font-size: .98rem; margin-top: -4px; }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.1em; }
.round { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.round:first-of-type { border-top: 0; }
.round .num { font: 700 .85rem var(--display); letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); margin: 0 0 .4em; }
.round h3 { font-size: 1.5rem; }
.round.turn { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; margin: 8px 0; }
.round.turn .num { color: var(--green); }
.pull { font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--display); color: var(--ink); border-left: 4px solid var(--red);
  padding-left: 20px; margin: 1.4em 0; }

/* About: questions as fold-outs ------------------------------------------------------------------------ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font: 700 1.05rem var(--display); letter-spacing: .2px; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 22px; color: var(--red); font-weight: 700; }
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: 0 0 14px 22px; color: var(--ink-2); }
.faq h3 { margin: 24px 0 10px; color: var(--muted); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }

table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .8rem var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: var(--lane); }
tr:last-child td { border-bottom: 0; }

/* Footer ------------------------------------------------------------------------------------------------ */
footer { margin-top: 32px; }
footer .finish { height: 10px; }
.foot { background: var(--ink); color: #C9D1DA; padding: 32px 0 40px; font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.foot a { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Phones and small tablets ------------------------------------------------------------------------------ */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-grid, .split, .grid-2, .grid-3, .grid-4, .round { grid-template-columns: 1fr; gap: 28px; }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .portrait { max-width: 300px; }
  .arch { grid-template-columns: 1fr; }
  .arch .link { max-width: none; } .arch .link::before { content: "↕"; }
  .round.turn { padding: 24px 20px; }
  .split.flip > :first-child { order: 0; }
  .hero-shots .phone { position: static; width: 60%; margin: 24px auto 0; }
  section { padding: 44px 0; }
  .track { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .track::before { display: none; }
  .nav-open { display: block; margin-left: auto; cursor: pointer; padding: 6px 12px; border-radius: 20px; background: rgba(0,0,0,.2); font-weight: 600; }
  .nav { display: none; width: 100%; margin: 0; flex-direction: column; }
  .nav a { padding: 10px 12px; }
  .nav-toggle:checked ~ .nav { display: flex; }
}
