/* Pizza Dough Workshop — "Backstube": oven-brown bench, flour paper, crust band with charred spots. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/work-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bench: #3a2420;
  --char: #2a1916;
  --flour: #fff6e6;
  --paper: #f7f1e6;
  --card: #fffcf5;
  --line: #e2d5bf;
  --ink: #2a211c;
  --soft: #685a4f;
  --crust: #d9a35a;
  --crust-dark: #8a5a12;
  --tomato: #b5321c;
  --basil: #2f6a3e;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --text: "Work Sans", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tomato); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .play:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--flour); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; }

/* Crust band with charred spots (the app's header motif) */
.crust {
  height: 12px;
  background:
    radial-gradient(circle at 4% 50%, var(--char) 3px, transparent 3.5px),
    radial-gradient(circle at 11% 40%, var(--char) 2px, transparent 2.5px),
    radial-gradient(circle at 19% 60%, var(--char) 4px, transparent 4.5px),
    radial-gradient(circle at 28% 45%, var(--char) 2px, transparent 2.5px),
    radial-gradient(circle at 36% 55%, var(--char) 3px, transparent 3.5px),
    radial-gradient(circle at 47% 50%, var(--char) 4.5px, transparent 5px),
    radial-gradient(circle at 58% 40%, var(--char) 2px, transparent 2.5px),
    radial-gradient(circle at 66% 60%, var(--char) 3.5px, transparent 4px),
    radial-gradient(circle at 75% 45%, var(--char) 2px, transparent 2.5px),
    radial-gradient(circle at 84% 55%, var(--char) 4px, transparent 4.5px),
    radial-gradient(circle at 93% 50%, var(--char) 2.5px, transparent 3px),
    var(--crust);
  background-size: 420px 12px;
}

/* Header */
.top { background: var(--bench); color: var(--flour); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-block: 8px; }
.brand img { width: 176px; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 10px 12px; color: var(--flour); text-decoration: none; font-weight: 600; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--crust); }

/* Hero: the bench at night */
.hero { background: linear-gradient(90deg, rgba(58, 36, 32, 0.97) 0%, rgba(58, 36, 32, 0.93) 48%, rgba(58, 36, 32, 0.35) 78%, rgba(58, 36, 32, 0.1) 100%), url("/assets/app/bench.webp") right bottom / 1200px auto no-repeat, var(--bench); color: var(--flour); padding: 64px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.kicker, .tag { font: 600 0.85rem/1.3 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--crust-dark); margin-bottom: 14px; }
.hero .kicker { color: var(--crust); }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 4.9rem); line-height: 1.02; }
.hero h1 .line { display: block; }
.hero h1 .line-1 { color: var(--crust); }
.lead { font-size: 1.18rem; max-width: 36em; }
.hero .lead { color: #eadccb; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 28px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; font-weight: 600; color: var(--flour); }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--crust); margin-right: 8px; vertical-align: 2px; }
.hero-shots { position: relative; height: 560px; }
.shot { border-radius: 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); background: var(--card); }
.hero-shots .shot { position: absolute; width: 270px; }
.hero-shots .shot-back { right: 0; top: 0; transform: rotate(3deg); opacity: 0.92; }
.hero-shots .shot-front { left: 6%; top: 70px; width: 290px; border: 3px solid var(--crust); }

/* Google Play button */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 14px; border-radius: 10px; background: var(--tomato); color: #fff; text-decoration: none; border: 2px solid var(--tomato); }
.play:hover { background: #8e2412; }
.play-soon { background: transparent; border-color: var(--crust); color: var(--flour); cursor: default; }
.download .play-soon { color: var(--ink); border-color: var(--crust-dark); }
.play-mark { width: 22px; height: 24px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; letter-spacing: 0.04em; }
.play-big { font: 800 1.2rem/1.1 var(--display); }

/* Example calculation */
.example { background: var(--card); border-bottom: 1px solid var(--line); }
.example-inner { padding: 40px 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 40px; align-items: start; }
.example .tag { grid-column: 1 / -1; margin: 0; }
.example h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.example-list { margin: 0; display: grid; gap: 10px; }
.example-list div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.example-list dt { font-weight: 600; color: var(--tomato); }
.example-list dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Schedule band */
.schedule { padding: 80px 0; }
.section-lead { max-width: 44em; color: var(--soft); font-size: 1.1rem; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 4px; background: var(--crust); border-radius: 2px; }
.timeline li { position: relative; padding-right: 10px; display: flex; flex-direction: column; gap: 4px; }
.t-time { font: 800 1.15rem/1.2 var(--display); height: 1.6em; white-space: nowrap; }
.t-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 4px solid var(--bench); margin: 8px 0 8px; position: relative; z-index: 1; }
.bake .t-dot { background: var(--tomato); border-color: var(--tomato); }
.t-label { font-weight: 600; line-height: 1.3; }
.t-note { color: var(--soft); font-size: 0.92rem; }

/* Stations */
.stations { background: var(--bench); color: var(--flour); padding: 80px 0 40px; }
.stations .tag { color: var(--crust); }
.station { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid rgba(255, 246, 230, 0.14); }
.station.flip { grid-template-columns: 1fr 340px; }
.station.flip .station-shot { order: 2; }
.station-shot .shot { width: 320px; margin-inline: auto; }
.station-copy { max-width: 560px; }
.station-copy p { color: #eadccb; }
.no { font: 800 3.4rem/1 var(--display); color: var(--crust); margin-bottom: 10px; }
.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.points li { padding-left: 26px; position: relative; font-weight: 600; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--crust); box-shadow: 4px 3px 0 -2px var(--char); }

/* Privacy strip */
.strip { background: var(--basil); color: #f2f7ef; padding: 56px 0; }
.strip-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px 48px; align-items: center; }
.strip h2 { margin: 0; }
.strip p { margin: 0; }
.strip a { color: #fff; font-weight: 600; }

/* FAQ */
.faq { padding: 80px 0; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 40px 18px 0; font: 700 1.2rem/1.35 var(--display); list-style: none; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.8rem; color: var(--tomato); }
details[open] summary::after { content: "–"; }
details p { color: var(--soft); max-width: 42em; }

/* Download */
.download { background: var(--crust); padding: 48px 0; }
.download-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.download img { border-radius: 22px; }
.download h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.download p { margin: 0; }
.download a:not(.play) { color: var(--ink); font-weight: 600; }

/* Footer */
.foot { background: var(--char); color: #d8c8b6; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 32px 0 16px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-name { font: 800 1.15rem/1.2 var(--display); color: var(--flour); margin: 0; }
.foot-small { margin: 0; font-size: 0.92rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; align-items: center; }
.foot-links a { color: var(--crust); display: inline-block; padding: 8px 0; }
.foot-note { font-size: 0.85rem; padding-bottom: 28px; margin: 0; color: #a8978a; }

/* Policy and simple pages */
.page { padding: 56px 0 80px; }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.policy h2 { font-size: 1.45rem; margin-top: 1.8em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 0.4em; }
.small { font-size: 0.92rem; color: var(--soft); }
.lost { min-height: 40vh; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero { background: linear-gradient(180deg, rgba(58, 36, 32, 0.97) 0%, rgba(58, 36, 32, 0.93) 55%, rgba(58, 36, 32, 0.3) 100%), url("/assets/app/bench.webp") center bottom / 900px auto no-repeat, var(--bench); }
  .hero-shots { height: 440px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-shots .shot { width: 46%; }
  .hero-shots .shot-front { width: 50%; left: 2%; top: 50px; }
  .example-inner { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .timeline::before { left: 117px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 100px 26px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 0 0 18px; }
  .t-time { grid-row: 1 / 3; height: auto; padding-top: 2px; }
  .t-dot { grid-row: 1 / 3; margin: 2px 0 0; }
  .t-note { grid-column: 3; }
  .station, .station.flip { grid-template-columns: 1fr; gap: 28px; }
  .station.flip .station-shot { order: 0; }
  .station-shot .shot { width: min(300px, 78vw); }
  .strip-grid { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .brand img { width: 150px; }
  .nav a { padding: 10px 8px; }
  .hero { padding-top: 40px; }
  .hero-shots { height: 380px; }
  .example-list div { grid-template-columns: 1fr; gap: 2px; }
  .timeline::before { left: 95px; }
  .timeline li { grid-template-columns: 78px 26px 1fr; }
  .t-time { font-size: 1rem; }
}
