/* Unstuck with Tock: the sunlit archival desk, and the lamp-lit studio it
   dims into when a step starts. Colours, type and shapes from the app's
   Theme.swift. */

:root {
  --paper: #F5EFE4;
  --card: #FCF8F1;
  --tray: #E9E0D1;
  --rule: #D5C9B7;
  --ink: #1E1916;
  --umber: #65594D;
  --clay: #75685A;

  --espresso: #16120F;
  --walnut: #241D18;
  --timber: #312821;
  --brass-umber: #493C31;
  --cream: #F7F0E5;
  --mist: #C0AF9C;
  --bronze: #9A8977;

  --persimmon: #DA582C;
  --key: #C94F26;
  --key-lip: #A23817;
  --persimmon-ink: #A8401D;
  --brass: #CF9536;
  --sage: #497E5E;
  --sage-lip: #305940;
  --sage-bright: #6BB284;
  --slate: #52687C;

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  --page-bg: var(--paper);
  --page-ink: var(--ink);
  --page-sub: var(--umber);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .24 0 0 0 0 .17 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

html.lamp {
  --page-bg: #1B1612;
  --page-ink: var(--cream);
  --page-sub: var(--mist);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg, canvas { display: block; }

a { color: var(--persimmon-ink); }

button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--persimmon); outline-offset: 2px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.kicker {
  margin: 0 0 10px;
  font: 700 12px/1.2 var(--rounded);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--persimmon-ink);
}

/* ---------------------------------------------------------------- hero */

.top,
.hero {
  background-color: var(--page-bg);
  background-image: var(--grain);
  color: var(--page-ink);
  transition: background-color .7s ease, color .7s ease;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left));
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font: 700 21px/1 var(--serif);
}
.brand img { border-radius: 9px; box-shadow: 0 1px 3px rgba(30, 25, 22, .2); }

.badge { display: inline-block; border-radius: 9px; flex: none; }
.badge img { height: 100%; width: auto; }
.badge-top { height: 40px; }

.hero { padding: 6px 16px 26px; }

.hero-copy { max-width: 560px; }
.hero .kicker { display: none; }

.hero h1 {
  margin: 4px 0 8px;
  font: 700 clamp(29px, 8.3vw, 40px)/1.08 var(--serif);
  letter-spacing: -.012em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--page-sub);
  transition: color .7s ease;
}
.lede-more { display: none; }

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-cta .badge { display: none; height: 50px; }

.facts {
  margin: 0;
  font: 600 12.5px/1.3 var(--mono);
  letter-spacing: .02em;
  color: var(--page-sub);
}

.try {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  font: 700 14.5px/1.3 var(--rounded);
  color: var(--persimmon-ink);
}
html.lamp .try,
html.lamp .hero .kicker { color: var(--brass); }
.try-arrow {
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

/* ---------------------------------------------------------- the screen */

.device { position: relative; }

.screen {
  --check-ink: #fff;
  position: relative;
  height: 740px;
  height: clamp(600px, calc(100vh - 24px), 740px);
  height: clamp(600px, calc(100svh - 24px), 740px);
  border-radius: 30px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: var(--grain), radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .5), transparent 70%);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -18px rgba(60, 40, 25, .35);
  transition: border-color .7s ease, box-shadow .7s ease;
}
html.lamp .screen { border-color: var(--brass-umber); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 24px 60px -16px rgba(0, 0, 0, .6); }

.screen-note {
  margin: 10px 4px 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--page-sub);
  text-align: center;
  transition: color .7s ease;
}

.view { position: absolute; inset: 0; display: flex; flex-direction: column; }
.view:not([hidden]) { animation: view-in .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mono-label {
  margin: 0;
  font: 700 11px/1.3 var(--mono);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--clay);
}
.mono-label.sage { color: var(--sage); }
.mono-label.center { text-align: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  font: 700 12px/1 var(--mono);
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; flex: none; }

/* Keycaps: a raised key with a lip that presses down. */
.key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: var(--key);
  color: #fff;
  font: 700 17px/1.2 var(--rounded);
  box-shadow: 0 4px 0 var(--key-lip);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.key svg { width: 17px; height: 17px; flex: none; }
.key:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--key-lip); }
.key:disabled { background: #B9AC9D; box-shadow: 0 3.5px 0 #A89A8A; cursor: default; }

/* Desk */

.desk-bar { display: flex; align-items: center; gap: 8px; }
.desk-bar > div { flex: 1; min-width: 0; }
.app-name { margin: 0; font: 700 26px/1.1 var(--serif); }
.pledge-line { display: flex; align-items: center; gap: 5px; margin: 3px 0 0; font: 500 10.5px/1.2 var(--mono); color: var(--umber); white-space: nowrap; }
.pledge-line .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.pledge-line .dot.on { background: var(--sage); }
.chip-free { color: var(--persimmon-ink); background: rgba(218, 88, 44, .12); }
.chip-cairn { color: var(--ink); background: var(--card); border: 1px solid var(--rule); font-size: 13px; }
.chip-cairn svg { color: var(--brass); }

.stage-row { display: flex; align-items: center; gap: 12px; }
.tock-btn {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tock-btn.squish { animation: squish .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes squish { 30% { transform: translateY(-7px) scale(1.14, .86); } }

.bubble {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.mono-label { white-space: normal; }
.bubble-text { margin: 5px 0 0; font: 500 17px/1.3 var(--serif); }

.vent {
  padding: 16px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vent-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pace {
  min-height: 32px;
  padding: 0 10px;
  margin: -6px -8px -6px 0;
  border: 1px dashed var(--rule);
  border-radius: 999px;
  background: none;
  font: 600 11px/1 var(--mono);
  color: var(--umber);
  cursor: pointer;
}
.vent textarea {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font: 16.5px/1.4 var(--sans);
}
.vent textarea::placeholder { color: #9A8C7D; }
.vent textarea:focus-visible { outline: none; }
.vent:focus-within { border-color: var(--persimmon); }
.key-crack { min-height: 48px; border-radius: 15px; font-size: 15.5px; box-shadow: 0 3.5px 0 var(--key-lip); }

.rescue { display: flex; flex-direction: column; gap: 10px; }
.rescue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rescue-grid button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: var(--card);
  text-align: left;
  font: 600 13.5px/1.2 var(--rounded);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.rescue-grid button:active { transform: translateY(2px); }
.ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--tray);
  color: var(--persimmon);
}
.ico svg { width: 16px; height: 16px; }

.tray {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(233, 224, 209, .7);
  border: 1px solid var(--rule);
}
.tray-title { margin: 3px 0 2px; font: 600 16px/1.25 var(--serif); }
.tray-sub { margin: 0; font-size: 12.5px; color: var(--umber); }

/* Step preview */

.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 4px 8px; }
.back {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  font: 600 15px/1 var(--rounded);
  color: var(--umber);
  cursor: pointer;
}
.back svg { width: 14px; height: 14px; }
.chip-vibe { color: var(--persimmon-ink); background: rgba(218, 88, 44, .12); font-size: 11px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.intro-card { padding: 14px 16px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.intro-top { display: flex; align-items: center; gap: 12px; }
.mountain-title { margin: 3px 0 0; font: 700 22px/1.15 var(--serif); }
.mountain-title:focus { outline: none; }
.opening { margin: 10px 0 0; font-style: italic; font-size: 14.5px; line-height: 1.4; color: var(--umber); }

.pebbles { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pebbles li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 13px 13px 12px;
  border-radius: 17px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.pebbles li.first { border: 1.5px solid rgba(218, 88, 44, .55); }
.pebbles .n {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--tray);
  font: 700 13px/1 var(--mono);
}
.pebbles li.first .n { background: var(--key); color: #fff; }
.pebbles div { flex: 1; min-width: 0; }
.pebbles .t { margin: 0; font: 700 15.5px/1.25 var(--rounded); }
.pebbles .d { margin: 3px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--umber); }
.pebbles .m {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--tray);
  font: 700 11.5px/1 var(--mono);
  color: var(--umber);
  white-space: nowrap;
}

.pledge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(233, 224, 209, .75);
}
.pledge-icon { width: 20px; height: 20px; flex: none; color: var(--clay); }
.pledge-icon.on { color: var(--slate); }
.pledge-card > div { flex: 1; min-width: 0; }
.pledge-title { margin: 0; font: 700 14.5px/1.2 var(--rounded); }
.pledge-sub { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--umber); }

.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #CFC3B3;
  cursor: pointer;
  transition: background-color .2s ease;
}
.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}
.switch[aria-checked="true"] { background: var(--key); }
.switch[aria-checked="true"] span { transform: translateX(20px); }

.web-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--umber); }

.preview-foot {
  padding: 10px 18px max(16px, env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -3px 8px rgba(0, 0, 0, .06);
}

/* Lamp-lit studio */

.view-session {
  --check-ink: var(--key);
  background-color: var(--espresso);
  background-image: var(--grain);
  color: var(--cream);
  padding: 12px 18px max(14px, env(safe-area-inset-bottom));
  gap: 10px;
  overflow: hidden;
}
.view-session::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  width: 135%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(218, 88, 44, .24), rgba(207, 149, 54, .10) 55%, transparent);
  pointer-events: none;
  animation: lamp-breath 5.7s ease-in-out infinite;
  transition: opacity .4s ease;
}
.view-session > * { position: relative; }
.screen[data-paused] .view-session::before { opacity: .5; }
@keyframes lamp-breath { 50% { transform: translate(-50%, -50%) scale(1.04); } }

.session-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip-lamp { background: var(--walnut); border: 1px solid var(--brass-umber); color: var(--mist); font-size: 11px; }
.chip-lamp svg { color: var(--bronze); }
.chip-lamp.on svg { color: var(--brass); }
.dots { display: flex; gap: 6px; align-items: center; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--brass-umber); transition: width .3s ease, background-color .3s ease; }
.dots i.now { width: 20px; background: var(--persimmon); }
.dots i.done { background: var(--sage-bright); }
.round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px -6px -6px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
}
.round::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: var(--walnut); }
.round svg { position: relative; width: 13px; height: 13px; }

.dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 auto; justify-content: center; min-height: 0; }
.dial { position: relative; width: 200px; height: 200px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-ring circle { fill: none; }
.dial-ring .bezel { stroke: rgba(73, 60, 49, .75); stroke-width: 6; stroke-dasharray: 2 8; stroke-linecap: round; }
.dial-ring .track { stroke: var(--walnut); stroke-width: 9; }
.dial-ring .arc { stroke: url(#arc-grad); stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 100px 100px; stroke-dasharray: 100 100; }
.tock-lamp { margin-top: -10px; }
.countdown { position: relative; margin: -8px 0 0; font: 700 25px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--cream); }
.countdown.paused { color: var(--brass); }
.banner {
  margin: 4px 0 0;
  max-width: 320px;
  min-height: 2.7em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: var(--mist);
}
.speed-note { margin: 0; font: 600 10.5px/1.2 var(--mono); color: var(--bronze); letter-spacing: .02em; }

.pebble-card {
  padding: 15px 16px;
  border-radius: 22px;
  background: var(--walnut);
  border: 1.2px solid var(--brass-umber);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.pebble-head { display: flex; align-items: baseline; gap: 6px; margin: 0; font: 700 11px/1.2 var(--mono); text-transform: uppercase; }
.pebble-head .brass { color: var(--brass); flex: none; }
.pebble-head .tiny { color: var(--sage-bright); flex: none; font-size: 10.5px; }
.pebble-head .mt { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; font-weight: 500; color: var(--bronze); }
.pebble-title { margin: 8px 0 6px; font: 600 22px/1.2 var(--serif); color: var(--cream); }
.pebble-detail { margin: 0; font-size: 14px; line-height: 1.4; color: var(--mist); }

.rescue-row { display: flex; gap: 8px; }
.lamp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: var(--timber);
  color: var(--cream);
  font: 700 13px/1.1 var(--rounded);
  cursor: pointer;
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.lamp-btn:active { transform: translateY(2px); }
.lamp-btn svg { width: 12px; height: 12px; flex: none; }
.lamp-btn.shrink { flex: 1; white-space: nowrap; font-size: 12.5px; padding: 0 10px; color: var(--brass); box-shadow: inset 0 0 0 1px rgba(207, 149, 54, .35); }
.rescue-row:has(.shrink[hidden]) { justify-content: center; }

.sounds { display: flex; gap: 6px; }
.sounds button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--walnut);
  color: var(--mist);
  font: 600 12px/1 var(--rounded);
  cursor: pointer;
  position: relative;
}
.sounds button::after { content: ""; position: absolute; inset: -4px 0; }
.sounds button svg { width: 12px; height: 12px; }
.sounds button[aria-pressed="true"] { background: var(--brass); color: var(--espresso); }

.session-foot { padding-top: 4px; }
.key-done.final { background: var(--sage); box-shadow: 0 4px 0 var(--sage-lip); --check-ink: var(--sage); }
.key-done.final:active { box-shadow: 0 1px 0 var(--sage-lip); }

.confirm {
  position: absolute !important;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: rgba(10, 8, 6, .6);
}
.confirm-card {
  width: 100%;
  padding: 18px 14px 14px;
  border-radius: 22px;
  background: var(--walnut);
  border: 1px solid var(--brass-umber);
  text-align: center;
}
.confirm-title { margin: 0; font: 700 17px/1.3 var(--rounded); }
.confirm-msg { margin: 6px 0 14px; font-size: 13.5px; color: var(--mist); }
.confirm-card button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  font: 700 16px/1 var(--rounded);
  cursor: pointer;
}
.confirm-leave { background: var(--timber); color: #F08A66; }
.confirm-stay { background: var(--cream); color: var(--espresso); }

/* Mountain cleared */

.done-scroll { align-items: stretch; gap: 14px; padding-top: 28px; }
.done-art { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.done-title { margin: -6px 0 0; text-align: center; font: 700 27px/1.15 var(--serif); }
.done-title:focus { outline: none; }
.done-sub { margin: -6px 0 0; text-align: center; font-size: 15px; line-height: 1.4; color: var(--umber); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats div + div { border-left: 1px solid var(--rule); }
.stats strong { font: 700 22px/1 var(--mono); }
.stats span { font: 700 10px/1 var(--mono); text-transform: uppercase; color: var(--clay); letter-spacing: .03em; }
.convert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(218, 88, 44, .11);
  text-align: center;
}
.convert-title { margin: 0; font: 700 16px/1.3 var(--rounded); text-wrap: balance; }
.convert-sub { margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: var(--umber); }
.convert .badge { height: 48px; }

/* ------------------------------------------------------------- the page */

.inside { padding: 56px 0 24px; }
.inside h2,
.faq h2,
.finale h2 { margin: 0 0 22px; font: 700 clamp(28px, 7vw, 42px)/1.1 var(--serif); letter-spacing: -.01em; text-wrap: balance; }

.inside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inside-list li {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.inside-list li:first-child { border: 1.5px solid rgba(218, 88, 44, .55); }
.num {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tray);
  font: 700 14px/1 var(--mono);
}
.inside-list li:first-child .num { background: var(--key); color: #fff; }
.inside-list h3 { margin: 4px 0 6px; font: 700 18px/1.25 var(--rounded); }
.inside-list p { margin: 0; color: var(--umber); line-height: 1.5; }

.shots {
  display: flex;
  gap: 14px;
  margin: 28px -20px 0;
  padding: 4px 20px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
}
.shots figure { flex: none; width: min(62vw, 260px); margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 10px 26px -12px rgba(60, 40, 25, .45); }

.price-line {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--brass);
  background: rgba(233, 224, 209, .6);
  border-radius: 0 14px 14px 0;
  line-height: 1.5;
}

.faq { padding: 40px 0 48px; }
.faq details {
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  font: 700 16.5px/1.3 var(--rounded);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2.4px solid var(--persimmon);
  border-bottom: 2.4px solid var(--persimmon);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-a { padding: 0 16px 16px; color: var(--umber); line-height: 1.55; }
.faq-a p { margin: 0; }

.finale {
  position: relative;
  overflow: hidden;
  padding: 56px 0 60px;
  background-color: var(--espresso);
  background-image: radial-gradient(60% 90% at 30% 20%, rgba(218, 88, 44, .22), rgba(207, 149, 54, .08) 55%, transparent 80%), var(--grain);
  color: var(--cream);
}
.finale-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.finale h2 { margin-bottom: 10px; }
.finale p { margin: 0 0 22px; color: var(--mist); font-size: 17px; }
.finale .badge { height: 50px; }

.foot { padding: 34px 0 max(34px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--umber); }
.foot nav:first-child { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.more h2 { margin: 20px 0 4px; font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--clay); }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.more li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--umber); font-weight: 500; }
.foot p { margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; }

/* ------------------------------------------------------------ narrow */

@media (max-width: 359px) {
  .hero { padding-left: 12px; padding-right: 12px; }
  .facts { font-size: 11px; }
  .scroll { padding: 14px 12px 18px; gap: 14px; }
  .app-name { font-size: 22px; }
  .stage-row canvas { width: 80px !important; height: 80px !important; }
  .bubble { padding: 11px 12px; }
  .bubble-text { font-size: 15.5px; }
  .vent { padding: 14px 13px; }
  .vent-head .mono-label { font-size: 10px; }
  .pace { font-size: 10px; padding: 0 8px; white-space: nowrap; }
  .rescue-grid button { font-size: 12.5px; padding: 8px; gap: 7px; }
  .ico { width: 26px; height: 26px; }
  .view-session { padding-left: 12px; padding-right: 12px; }
  .dial { transform: scale(.88); margin: -12px 0; }
  .pebble-title { font-size: 19px; }
  .lamp-btn { padding: 0 10px; font-size: 12px; }
  .lamp-btn.shrink { font-size: 11.5px; padding: 0 8px; }
  .rescue-row { gap: 6px; }
  [data-pause] { width: 44px; padding: 0; }
  [data-pause-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sounds { gap: 4px; }
  .sounds button { padding: 0 8px; font-size: 11.5px; }
  .preview-foot { padding-left: 12px; padding-right: 12px; }
  .key { font-size: 15.5px; }
}

/* ------------------------------------------------------------ larger */

@media (min-width: 600px) {
  .lede-more { display: inline; }
  .more ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .inside-list { grid-template-columns: repeat(3, 1fr); }
  .inside-list li { flex-direction: column; }
}

@media (min-width: 960px) {
  .badge-top { display: none; }
  .top { padding: 22px 40px 0; max-width: 1240px; margin: 0 auto; background: none; }
  body { background-color: var(--page-bg); background-image: var(--grain); transition: background-color .7s ease; }
  .inside, .faq, .foot { background: var(--paper); }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 56px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 40px 64px;
    background: none;
  }
  .hero .kicker { display: block; }
  .hero h1 { font-size: clamp(48px, 5vw, 66px); margin-bottom: 18px; }
  .lede { font-size: 20px; max-width: 30em; margin-bottom: 26px; }
  .hero-cta .badge { display: inline-block; }
  .try { margin-top: 32px; }
  .try-arrow { transform: rotate(-45deg); }

  .device {
    padding: 12px;
    border-radius: 58px;
    background: linear-gradient(160deg, #3A2E26, #1E1814);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 40px 80px -30px rgba(40, 25, 15, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .screen { height: 730px; border-radius: 46px; border: 0; }
  .screen-note { position: absolute; left: 0; right: 0; bottom: -44px; }

  .shots { margin: 36px 0 0; padding: 4px 0 14px; overflow: visible; }
  .shots figure { flex: 1; width: auto; }
  .shots figure:nth-child(odd) { transform: translateY(18px); }
  .faq summary { font-size: 17.5px; }
  .finale-inner { flex-direction: row; text-align: left; gap: 36px; justify-content: center; }
  .more ul { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
