/* SteepPilot: the app's own dark theme (src/assets/main.css), so the site looks like what people download. Near-black
   green ground, layered green-grey surfaces, sage for anything you can press, Manrope for everything. The water
   temperature keeps the app's three heat colours. */
:root {
  --bg: #0a0f0a;
  --sf: #121812;
  --sf-high: #181e18;
  --sf-highest: #222822;
  --outline: #2e3a2e;
  --outline-v: #3d4d3d;
  --text: #f0ede8;
  --body: #cfd3cb;
  --muted: #8a9a82;
  --pri: #7a9e7e;
  --on-pri: #0a1f0a;
  --sec: #b8c5a0;
  --tert: #c5b08a;
  --err: #ffb4ab;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pri); text-underline-offset: 3px; }
a:hover { color: var(--sec); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; }
a:focus-visible, summary:focus-visible { border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
svg { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The app's small labels: bold, muted, set in capitals, with a little air between the letters. */
.label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); line-height: 1.3; }

.bar, main, .foot { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 20px; max-width: 1240px; margin: 0 auto; }
.bar .home { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.bar .home::before { content: ''; width: 26px; height: 26px; background: var(--pri); -webkit-mask: url(/steeppilot/mark.svg) center / contain no-repeat; mask: url(/steeppilot/mark.svg) center / contain no-repeat; }
.bar .store { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 999px; background: var(--sf-high); }
.bar .store:hover { background: var(--sf-highest); color: var(--text); }
main { max-width: 1240px; margin: 0 auto; }

/* Hero: the pitch on the left, the session plan on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.pitch h1 { font-size: clamp(46px, 6.4vw, 82px); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 36ch; }
.cta { display: inline-block; margin-top: 32px; background: var(--pri); color: var(--on-pri); font-weight: 700; font-size: 17px; text-decoration: none; padding: 16px 26px; border-radius: 16px; }
.cta:hover { background: #8aae8e; color: var(--on-pri); }
.cta:active { transform: scale(.98); }
.fine { margin-top: 16px; font-size: 14.5px; color: var(--muted); max-width: 44ch; }

.demo { margin: 0; background: var(--sf); border-radius: 28px; padding: clamp(16px, 2.6vw, 28px); }

/* Tea pills, as on the app's session screen. */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.types button {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 10px;
  font: 600 15px 'Manrope', sans-serif; color: var(--muted); background: var(--sf-highest); border: 0; border-radius: 999px; cursor: pointer;
}
.types button:hover { color: var(--text); }
.types button[aria-pressed="true"] { background: var(--pri); color: var(--on-pri); }
.types svg, .features svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 0; }
.facts div { padding: 2px 0 2px 16px; border-left: 1px solid var(--outline); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dd { margin: 6px 0 0; display: flex; flex-direction: column; }
.facts b { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.facts span { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.facts .cool { color: var(--pri); }
.facts .warm { color: var(--tert); }
.facts .hot { color: var(--err); }

/* Gong fu parameters: three stepper tiles, like GongfuParams in the app. */
.params { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.stepper { background: var(--sf-high); border-radius: 18px; padding: 14px 12px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ctl { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 10px; }
.ctl output { min-width: 52px; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctl button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--sf-highest); color: var(--text); cursor: pointer; }
.ctl button:hover { background: #2c332c; }
.ctl button[aria-disabled="true"] { opacity: .35; cursor: default; }
.ctl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* The schedule: one countdown ring per steep, sage for infusions and the app's tan for rinses. */
.plan { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--outline); }
.rings { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 12px 4px; }
.rings li { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.ring { position: relative; width: 46px; height: 46px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring .track { stroke: var(--sf-highest); }
.ring .arc { stroke: var(--pri); stroke-linecap: round; }
.rinse .ring .arc { stroke: var(--tert); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rings .no { font-size: 12px; color: var(--muted); line-height: 1; }
.rinse .no { color: var(--tert); }
.sum { margin-top: 18px; font-size: 15.5px; color: var(--body); }
.sum span { display: block; }
.sum span + span { margin-top: 2px; color: var(--muted); }
.demo figcaption { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ring .arc { transition: stroke-dashoffset .5s cubic-bezier(.25, 1, .5, 1); }
  .types button, .ctl button { transition: background-color .15s ease, color .15s ease; }
}

/* Features: plain text in a grid, each with its line icon. */
.features { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--outline); }
.features h2, .help h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.features svg { width: 26px; height: 26px; color: var(--pri); }
.grid h3 { margin-top: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.grid p { margin-top: 8px; color: var(--muted); max-width: 38ch; }

.help { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--outline); }
.help-cols { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.faq { background: var(--sf); border-radius: 24px; padding: 4px 24px; }
.faq details { padding: 20px 0; }
.faq details + details { border-top: 1px solid var(--outline); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--pri); font-weight: 500; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.faq details p + p { margin-top: 12px; }
.faq b { color: var(--text); font-weight: 600; }
.contact { background: var(--sf); border-radius: 24px; padding: 28px; }
.contact h3 { font-size: 22px; font-weight: 700; }
.contact p { margin-top: 8px; color: var(--muted); }
.contact .mail { margin-top: 18px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.copy { margin-top: 16px; font: 600 15px 'Manrope', sans-serif; color: var(--text); background: var(--sf-highest); border: 0; border-radius: 12px; padding: 11px 16px; cursor: pointer; }
.copy:hover { background: #2c332c; }

.foot { max-width: 1240px; margin: 0 auto; padding-bottom: max(36px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
.foot > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--outline); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--pri); }

/* Legal pages: one comfortable reading column. */
.legal > * { max-width: 720px; }
.legal { padding-top: clamp(24px, 5vw, 64px); padding-bottom: 72px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.035em; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.legal .intro { margin-top: 28px; font-size: 21px; line-height: 1.5; max-width: 36ch; }
.legal section { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--outline); }
.legal h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.legal section p { margin-top: 10px; color: var(--body); max-width: 64ch; }
.legal section p + p { margin-top: 14px; }
.legal b { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .types button { font-size: 14.5px; gap: 6px; padding: 8px 6px; }
  .facts div { padding-left: 12px; }
    /* Steppers become rows: label on the left, the controls on the right, like the app's infusions tile. */
  .params { grid-template-columns: 1fr; gap: 6px; }
  .stepper { flex-direction: row; justify-content: space-between; gap: 12px; text-align: left; padding: 6px 6px 6px 16px; }
  .stepper .ctl { margin-top: 0; }
  .ctl button { width: 40px; height: 40px; }
  .faq { padding: 2px 20px; }
  .contact { padding: 24px 20px; }
}
