/* CONCEPT 'App card' - AESTHETIC: "South Bay morning-light app": a crisp phone app on a sunlit tile floor, teal
   dominant + one sun-yellow accent. FONTS: Bricolage Grotesque 200 vs 800 (display + body; optical sizes, condensed width on the big lines)
   + JetBrains Mono (the 'app data': pills, hours, step numbers, rating).
   The shop site as a small phone app. One shop colour: --brand (FAB, primary, selected chip,
   app mark). On desktop the tab bar becomes a left rail and the sheets open as a right-hand drawer. */
/* md-pairs: ink:bg, ink:surface, ink-dim:surface, ink-dim:bg, on-brand:brand, brand:surface, ink:brand-soft, ok:ok-soft, ink-dim:surface-2 */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-opsz_wdth_wght.ttf") format("truetype"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-wght.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --brand: #0b7a6f;          /* THE shop colour (fresh teal); pest e.g. #2f6b2f, pool #0a6aa8 */
  --on-brand: #ffffff;
  --brand-soft: #dcefec;
  --bg: #eef2f4;
  --surface: #ffffff;
  --surface-2: #f4f7f8;
  --ink: #0f1b24;
  --ink-dim: #4a5a66;
  --line: #d5dde2;
  --edge: #7b8a95;
  --ok: #136f3a;
  --ok-soft: #dff3e6;
  --shade: rgba(15, 27, 36, .5);
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --data: "JetBrains Mono", ui-monospace, monospace;
  --sun: #ffc94a;            /* the one sharp accent: sunlight (never text on white) */
  --tile: #e3eaee;
  --r: 24px;
  --fast: 120ms;
  --mid: 220ms;
  --slow: 420ms;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 92% -4%, var(--sun) 0 64px, transparent 260px),
    radial-gradient(circle at 1px 1px, var(--tile) 1.5px, transparent 2px) 0 0 / 24px 24px,
    var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 30; background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-dim); }

/* app bar */
.appbar { display: flex; align-items: center; gap: 12px; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); }
.mark { width: 48px; height: 48px; flex: none; }
.mark-bg { fill: var(--brand); } .mark-fg { fill: var(--on-brand); }
.appbar-title { flex: 1; min-width: 0; }
.appbar h1 { font: 800 24px/1 var(--display); letter-spacing: -.01em; }
.appbar p { font-size: 15px; color: var(--ink-dim); }
.lang { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-decoration: none; }

.pills { display: flex; gap: 8px; padding: 0 16px 16px; overflow-x: auto; scrollbar-width: none; }
.pill { font-family: var(--data); flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 40px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--edge); }
.pill-status:has([data-state="open"]) { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-soft); }
.pill-status:has([data-state="open"]) .dot { background: var(--ok); }

/* cards */
main { padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.card { background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: 0 1px 0 var(--line); }
.hero { background: var(--brand-soft); display: grid; gap: 12px; }
.hero-art { width: 100%; max-width: 280px; height: auto; justify-self: center; }
.hero-art .line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .soft { stroke: var(--brand); stroke-width: 4; stroke-linecap: round; opacity: .35; }
.hero-art .spark { fill: var(--brand); }
.hero-art .bubble { fill: none; stroke: var(--brand); stroke-width: 3; }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -64px; top: -64px; width: 200px; height: 200px; border-radius: 50%; background: var(--sun); opacity: .55; }
.hero > * { position: relative; }
.hero h2 { font: 200 40px/1 var(--display); letter-spacing: -.02em; }
.hero h2 b { font-weight: 800; font-stretch: 75%; display: block; font-size: 64px; line-height: .9; color: var(--brand); margin-top: 8px; }
.hero-actions { display: grid; gap: 12px; margin-top: 8px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 40px; font: 700 17px var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform var(--fast) ease-out; }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--brand); color: var(--on-brand); }
.btn-soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brand); text-decoration: none; }
.link-btn::after { content: ""; width: 8px; height: 8px; margin-left: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

.block-h { font: 800 40px/1 var(--display); font-stretch: 75%; letter-spacing: -.01em; margin-bottom: 16px; }

/* swipeable chips (radio + CSS) */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.chips label { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 40px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; cursor: pointer; white-space: nowrap; transition: transform var(--fast) ease-out; }
.chips label:active { transform: scale(.97); }
.panel { display: none; }
#s-standard:checked ~ .panels .p-standard, #s-deep:checked ~ .panels .p-deep, #s-move:checked ~ .panels .p-move,
#s-office:checked ~ .panels .p-office, #s-windows:checked ~ .panels .p-windows { display: block; animation: rise var(--mid) ease-out; }
#s-standard:checked ~ .chips [for="s-standard"], #s-deep:checked ~ .chips [for="s-deep"], #s-move:checked ~ .chips [for="s-move"],
#s-office:checked ~ .chips [for="s-office"], #s-windows:checked ~ .chips [for="s-windows"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
#s-standard:focus-visible ~ .chips [for="s-standard"], #s-deep:focus-visible ~ .chips [for="s-deep"], #s-move:focus-visible ~ .chips [for="s-move"],
#s-office:focus-visible ~ .chips [for="s-office"], #s-windows:focus-visible ~ .chips [for="s-windows"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.panel h3 { font-size: 20px; font-weight: 750; margin-bottom: 8px; }
.ticks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 8px; height: 14px; border-right: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(40deg); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.steps { list-style: none; margin: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.num { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--sun); color: var(--ink); font: 800 24px/1 var(--data); }
.steps h3 { font-size: 17px; font-weight: 700; }
.steps p { color: var(--ink-dim); font-size: 16px; }

.rating { display: flex; gap: 24px; align-items: center; }
.big { font-family: var(--data); font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stars { width: 120px; height: 24px; display: block; }
.stars path { fill: var(--brand); }

.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.week li { font-family: var(--data); display: grid; gap: 4px; justify-items: center; padding: 12px 0; border-radius: 16px; background: var(--surface); color: var(--ink-dim); text-align: center; font-size: 14px; }
.week b { font-size: 15px; color: var(--ink); }
.week .is-today { background: var(--ink); color: var(--surface); }
.week .is-today b { color: var(--surface); }
.note { margin-top: 8px; font-size: 14px; }

.list { list-style: none; margin: 0; padding: 8px 24px; }
.list li { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }

.textus { display: grid; gap: 12px; }
.textus h2 { font: 800 32px/1 var(--display); }

.foot { padding: 16px 0 24px; color: var(--ink-dim); font-size: 15px; display: grid; gap: 4px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; }

/* bottom sheets */
.sheet { display: none; }
.sheet:target { display: block; position: fixed; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: var(--shade); animation: fade var(--mid) ease-out; }
.sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow: auto; background: var(--surface);
  border-radius: 24px 24px 0 0; padding: 8px 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom));
  animation: up var(--slow) cubic-bezier(.2, .8, .2, 1);
}
.grabber { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { font: 800 32px/1 var(--display); }
.close { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; color: var(--brand); }
.sheet form { display: grid; gap: 8px; }
.sheet button[type=submit] { position: sticky; bottom: 0; box-shadow: 0 -12px 12px var(--surface); }
.sheet label, .sheet legend { font-weight: 650; font-size: 16px; }
.sheet input:not([type=checkbox]):not([type=radio]), .sheet select, .sheet textarea {
  font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--edge); border-radius: 12px; min-height: 52px; padding: 12px; width: 100%;
}
.seg { border: 0; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg legend { margin-bottom: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--edge); font-weight: 700; }
.seg input:checked + span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; margin: 8px 0; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--brand); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding: 8px 4px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 56px; font-size: 12px; font-weight: 650; text-decoration: none; color: var(--ink-dim); border-radius: 16px; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .fab { color: var(--ink); }
.tabbar .fab svg { width: 56px; height: 56px; padding: 16px; margin-top: -24px; border-radius: 50%; background: var(--brand); stroke: var(--on-brand); stroke-width: 2.5; box-shadow: 0 4px 12px var(--shade); }

/* the one page-load reveal: app bar, pills, then the cards rise in sequence */
.appbar, .pills, main > * { animation: rise var(--slow) cubic-bezier(.2, .8, .2, 1) both; }
.pills { animation-delay: 60ms; }
main > :nth-child(1) { animation-delay: 120ms; } main > :nth-child(2) { animation-delay: 180ms; }
main > :nth-child(3) { animation-delay: 240ms; } main > :nth-child(n+4) { animation-delay: 300ms; }

@media (min-width: 900px) {
  body { padding: 0 0 0 96px; }
  .tabbar { top: 0; right: auto; width: 96px; grid-template-columns: 1fr; grid-auto-rows: min-content; align-content: center; gap: 12px; border-top: 0; border-right: 1px solid var(--line); padding: 24px 8px; }
  .tabbar .fab svg { margin-top: 0; }
  .appbar, .pills { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
  .appbar { padding-top: 32px; }
  main { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
  .hero { grid-template-columns: 1fr 320px; grid-template-areas: "h art" "p art" "a art"; padding: 40px; align-items: center; }
  .hero h2 { grid-area: h; font-size: 56px; } .hero h2 b { font-size: 88px; } .hero > p { grid-area: p; } .hero-actions { grid-area: a; grid-template-columns: auto auto; justify-content: start; }
  .hero-art { grid-area: art; max-width: 320px; }
  .grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .week { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .sheet-body { left: auto; top: 0; width: 440px; max-height: none; border-radius: 24px 0 0 24px; padding: 24px 32px; animation-name: side; }
  .chips { margin: 0 0 12px; padding: 0 0 4px; flex-wrap: wrap; }
  @keyframes side { from { transform: translateX(100%); } to { transform: none; } }
}

@media (pointer: coarse) { .link-btn, .close, .foot a { min-height: 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chips label { transition: none; }
  .panel, .scrim, .sheet-body, .appbar, .pills, main > * { animation: none !important; }
}
