/* stoop.fm, the walkthrough draft: the app's own calm light look; the station covers carry the color. */
:root {
  --ground: #fcfcfc;
  --panel: #f2f3f5;
  --card: #ffffff;
  --ink: #1c1d1f;
  --dim: #5d6166;
  --rule: #e7e8ea;
  --accent: #9b2f22;
  --name: "Archivo", "Arial Narrow", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, .mark { font-family: var(--name); font-stretch: 62%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.95; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.top, main > section, footer { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; max-width: 1180px; margin: 0 auto; }
.mark { font-size: 1.9rem; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top nav a:not(.button) { text-decoration: none; color: var(--dim); }
.top nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 560px) { .top nav a[href="#how"], .top nav a[href="/support/"] { display: none; } }

.button { display: inline-block; background: var(--ink); color: var(--ground); text-decoration: none; font: 600 1rem/1 var(--text); padding: 14px 20px; border-radius: 10px; border: 0; cursor: pointer; }
.button.small { padding: 10px 14px; font-size: 0.9rem; }
.button:hover { background: #000; }
.quiet { color: var(--dim); text-decoration: none; margin-left: 14px; }
.quiet:hover { color: var(--ink); }

/* Hero: the words, then the covers, edge to edge */
.hero { max-width: 1180px; margin: 0 auto; padding-top: clamp(28px, 6vw, 72px); }
.hero-words { max-width: 860px; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--dim); max-width: 36em; margin: 22px 0 26px; }
.actions { margin: 0; }
.wall { margin: clamp(36px, 5vw, 60px) calc(50% - 50vw) 0; display: grid; gap: 18px; overflow: hidden; padding-block: 4px; }
.wall-row { display: flex; gap: 14px; align-items: start; width: max-content; animation: drift var(--t, 160s) linear infinite; }
.wall-row:nth-child(2) { animation-direction: reverse; }
.wall-row:hover { animation-play-state: paused; }
.wt { width: clamp(112px, 12vw, 164px); display: grid; gap: 7px; }
.wc { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.wc img { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.wl { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px; background: linear-gradient(transparent 25%, rgba(20, 21, 23, .86)); color: #fff; font-size: 0.8rem; line-height: 1.3; opacity: 0; transition: opacity .2s; }
.wt:hover .wl { opacity: 1; }
.wt .nm { font-size: 0.98rem; line-height: 1.05; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-row { animation: none; } }

/* The walkthrough */
.how { max-width: 1180px; margin: 0 auto; padding-top: clamp(72px, 10vw, 128px); }
.sub { color: var(--dim); margin: 10px 0 34px; }
.walk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 84px); align-items: start; }
.phone-col { display: grid; justify-items: center; gap: 12px; }
.sound { display: flex; align-items: center; gap: 14px; margin: 6px 0 0; }
.sound-key { font: 600 0.95rem/1 var(--text); background: var(--panel); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.sound-key[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.am { font-size: 0.9rem; color: var(--dim); }
.fine { font-size: 0.85rem; color: var(--dim); margin: 0; text-align: center; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; max-width: 30em; }
.steps li { border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps button { all: unset; display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 18px 0; cursor: pointer; }
.steps .n { font: 600 0.95rem/1 var(--text); color: var(--dim); width: 1.2em; }
.steps .t { font-family: var(--name); font-stretch: 62%; font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; color: #a6a9ad; transition: color .25s; }
.steps p { margin: -6px 0 20px calc(1.2em + 16px); color: var(--dim); display: none; }
.steps li.on .t { color: var(--ink); }
.steps li.on .n { color: var(--accent); }
.steps li.on p { display: block; }
.steps li.done .t { color: var(--dim); }

@media (max-width: 820px) {
  .walk { grid-template-columns: minmax(0, 1fr); }
  .steps li:not(.on) { display: none; }
  .steps { order: -1; }
  .steps li.on { border: 0; min-height: 11.5em; }   /* (each step as tall: the phone under it stays put) */
}

/* The phone: an iPhone's screen at its own proportions (an iPhone 17 Pro: 402 by 874 points) */
.phone { --w: min(clamp(290px, 31vw, 370px), calc((100svh - 140px) * 0.462)); width: var(--w); aspect-ratio: 402 / 874; border-radius: calc(var(--w) * 0.15); background: #0b0c0d; padding: calc(var(--w) * 0.028); box-shadow: 0 30px 60px -20px rgba(28, 29, 31, .35); position: relative; }
.screen { position: absolute; inset: calc(var(--w) * 0.028); border-radius: calc(var(--w) * 0.125); overflow: hidden; background: var(--ground); container-type: inline-size; }
.screen > .layer, .screen > .island { font-size: 4.33cqw; }
.island { position: absolute; top: 1.3%; left: 50%; width: 32%; height: 3.9%; translate: -50% 0; background: #000; border-radius: 99px; z-index: 5; }
.layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease; display: flex; flex-direction: column; }
.layer.on { opacity: 1; pointer-events: auto; }
.screen img { -webkit-user-drag: none; user-select: none; }
.ls-body { user-select: none; }
.status { display: flex; justify-content: space-between; padding: 0 9%; height: 6.2%; align-items: center; font: 600 1em/1 var(--text); }
.nm { font-family: var(--name); font-stretch: 62%; font-weight: 700; text-transform: uppercase; line-height: 1; }
.dim { color: var(--dim); }
.tap { position: relative; cursor: pointer; }
.tap.hint { z-index: 3; }
.tap.hint::before { content: ""; position: absolute; inset: -0.55em; border-radius: 0.9em; border: 0.24em solid var(--accent); box-shadow: 0 0 0 0.3em rgba(155, 47, 34, .18); pointer-events: none; }
.tap.hint::after { content: ""; position: absolute; inset: -0.55em; border-radius: 0.9em; border: 0.24em solid var(--accent); animation: ping 1.4s ease-out infinite; pointer-events: none; }
.tile.tap.hint::before, .tile.tap.hint::after { inset: -0.45em; }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .tap.hint::after { animation: none; opacity: 0; } }
.icon { width: 1.4em; height: 1.4em; display: block; }

/* the Logbook's covers */
.lg-top { display: flex; align-items: center; justify-content: space-between; padding: 1.5% 5% 3%; border-bottom: 1.5px solid var(--ink); }
.avatar { width: 2em; height: 2em; border-radius: 50%; background: conic-gradient(#e2412f 0 25%, #264653 0 50%, #f2ebdf 0 75%, #2a6f97 0); }
.round { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; }
.round .icon { width: 1.25em; height: 1.25em; }
.lg-body { padding: 4% 5% 0; overflow: hidden; flex: 1; }
.lg-head { font-size: 1.5em; padding-bottom: 2%; border-bottom: 1.5px solid var(--ink); margin-bottom: 5%; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em 0.9em; }
.tile img { width: 100%; aspect-ratio: 1; border-radius: 5px; display: block; }
.tile .nm { font-size: 0.95em; margin-top: 0.45em; }
.tile .dim { font-size: 0.72em; line-height: 1.25; margin-top: 0.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tabs { display: flex; justify-content: space-around; padding: 0.5em 0 1.9em; background: var(--panel); border-top: 1px solid var(--rule); font: 500 0.62em/1 var(--text); color: var(--dim); }
.tabs span { display: grid; justify-items: center; gap: 0.35em; }
.tabs .icon { width: 2.3em; height: 2.3em; }
.tabs span.on { color: var(--ink); }

/* the Listen view (and a station's card) */
.ls-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 5.5%; height: 13%; padding-top: 4%; }
.x { width: 2.25em; height: 2.25em; border-radius: 50%; background: var(--panel); display: grid; place-items: center; }
.x .icon { width: 1.15em; height: 1.15em; }
.time { font-size: 0.9em; }
.ls-body { padding: 2% 6.6% 0; display: flex; flex-direction: column; flex: 1; touch-action: pan-y; }
.cover { width: 100%; aspect-ratio: 1; border-radius: 0.6em; overflow: hidden; box-shadow: 0 0.7em 1.3em -0.5em rgba(0,0,0,.3); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; animation: breathe 18s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.06) translate(1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .cover img { animation: none; } }
.on-line { display: flex; align-items: flex-start; gap: 0.4em; margin-top: 1.8em; font-size: 0.82em; white-space: nowrap; }
.on-line .dot { margin-top: 0.45em; }
.on-line > .dim { line-height: 1.4; }
.dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--dim); flex: none; }
.on-line .nm { font-size: 1.15em; min-width: 0; white-space: normal; line-height: 1.05; padding-top: 0.08em; }   /* (the bookmark sits right after the name, as in the app) */
.on-line .mk { flex: none; margin-left: 0.2em; }
.on-line .mk .icon { width: 1.55em; height: 1.55em; }
.song { font: 600 1.5em/1.15 var(--text); margin-top: 0.55em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.artist { font-size: 1.1em; margin-top: 0.15em; color: #3d3f43; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album { font-size: 0.92em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.2em; }
.prog { margin-top: 2.1em; }
.track { height: 0.3em; border-radius: 9px; background: var(--rule); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--accent); width: 38%; }
.times { display: flex; justify-content: space-between; font-size: 0.7em; color: var(--dim); margin-top: 0.4em; font-variant-numeric: tabular-nums; }
.transport { display: flex; justify-content: center; align-items: center; gap: 2.2em; margin-top: 1.1em; }
.transport .icon { width: 2.1em; height: 2.1em; }
.transport .play .icon { width: 3.2em; height: 3.2em; }
.keys { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 0 0.2em 2.8em; color: var(--dim); }
.keys .icon { width: 1.75em; height: 1.75em; }
.mark-on { color: var(--ink); }

/* a station's card: from a cover, or Take a Chance */
.pill { display: flex; align-items: center; gap: 0.4em; background: var(--panel); border-radius: 99px; padding: 0.5em 0.8em; font-size: 0.82em; max-width: 72%; white-space: nowrap; }
.pill .nm { font-size: 1.1em; overflow: hidden; text-overflow: ellipsis; }
.pill .icon { width: 1.1em; height: 1.1em; }
.ch-name { font-size: 1.9em; margin-top: 0.75em; }
.ch-line { font-size: 1.06em; color: var(--dim); margin-top: 0.5em; line-height: 1.3; }
.ch-meta { font-size: 0.82em; color: var(--dim); margin-top: 0.45em; }
.ch-keys { display: flex; gap: 0.55em; align-items: center; margin-top: 1.5em; }
.k { font: 600 0.88em/1 var(--text); border-radius: 0.5em; padding: 0.75em 0.85em; display: flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.k.solid { background: var(--ink); color: var(--ground); }
.k.ghost { border: 1px solid var(--rule); background: var(--card); }
.k .icon { width: 1em; height: 1em; }
.ch-keys .mk { margin-left: auto; }
.ch-keys .mk .icon { width: 1.5em; height: 1.5em; }
.ch-hint { font-size: 0.76em; color: var(--dim); margin-top: 1.1em; }

/* Why, Get it, Questions */
.why, .get, .faq { max-width: 1180px; margin: 0 auto; padding-top: clamp(80px, 11vw, 140px); }
.cols { columns: 2 22em; column-gap: 48px; margin-top: 28px; }
.cols p { margin: 0 0 1.1em; break-inside: avoid; max-width: 34em; }

.get-words p { color: var(--dim); max-width: 34em; }
.get form { display: grid; gap: 8px; max-width: 26em; margin: 22px 0 14px; }
.get label { font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.get label span { font-weight: 400; color: var(--dim); }
.get input { font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--ink); }
.get form .button { justify-self: start; margin-top: 10px; }
.get .fine { text-align: left; }
.trap { position: absolute; left: -9999px; }
.problem { color: var(--accent) !important; }
.faq dl { margin: 26px 0 0; max-width: 46em; }
.faq dt { font-weight: 600; margin-top: 1.3em; }
.faq dd { margin: 0.3em 0 0; color: var(--dim); }
footer { max-width: 1180px; margin: clamp(80px, 10vw, 120px) auto 0; padding-block: 26px 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.9rem; color: var(--dim); }
footer p { margin: 0; }
footer a { margin-left: 16px; }
.steps p.do { color: var(--accent); font-size: 0.92rem; margin-top: -12px; }
.again { font: 600 0.92rem/1 var(--text); color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cover { position: relative; }
.swipe-cue { position: absolute; left: 50%; bottom: 0.9em; translate: -50% 0; display: flex; align-items: center; gap: 0.4em; background: rgba(20, 21, 23, .78); color: #fff; font: 600 0.9em/1 var(--text); padding: 0.6em 0.9em; border-radius: 99px; animation: nudge 1.6s ease-in-out infinite; }
.swipe-cue .icon { width: 1.3em; height: 1.3em; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-0.8em); } }
@media (prefers-reduced-motion: reduce) { .swipe-cue { animation: none; } }
.ls-bar .pill.tap .icon { width: 1.1em; height: 1.1em; color: var(--dim); }
.toast { position: absolute; left: 50%; top: 42%; translate: -50% 0; background: rgba(20, 21, 23, .86); color: #fff; font: 600 1em/1 var(--text); padding: 0.8em 1.2em; border-radius: 0.8em; animation: toast 1.1s ease both; z-index: 4; }
@keyframes toast { 0% { opacity: 0; transform: scale(.9); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mlist { display: grid; }
.mrow { display: flex; gap: 0.8em; align-items: center; padding: 0.75em 0; border-bottom: 1px solid var(--rule); }
.mrow img { width: 3.3em; height: 3.3em; border-radius: 0.3em; flex: none; }
.mrow .nm { font-size: 1.12em; }
.mrow .dim { font-size: 0.8em; margin-top: 0.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 13em; }
.mrow .dim b { color: var(--ink); font-weight: 500; }
.mrow.new { animation: land .7s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes land { from { opacity: 0; transform: translateY(-1.2em); } }
@media (prefers-reduced-motion: reduce) { .mrow.new, .toast { animation: none; } }
.do .button.small { margin-right: 14px; color: var(--ground); text-decoration: none; }
.steps p[hidden] { display: none !important; }
.mini { display: flex; align-items: center; gap: 0.7em; margin: 0 0.6em 0.5em; padding: 0.55em 0.8em 0.55em 0.55em; background: #eceef1; border-radius: 1em; box-shadow: 0 0.4em 1em -0.4em rgba(0,0,0,.35); }
.mini img { width: 2.6em; height: 2.6em; border-radius: 0.35em; }
.mini > div { flex: 1; min-width: 0; }
.mini .t { font: 600 0.95em/1.2 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .on { font-size: 0.7em; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .icon { width: 1.5em; height: 1.5em; }

/* On now: a ticker of what's playing, a visual break between the words */
.ticker { margin: clamp(64px, 9vw, 110px) calc(50% - 50vw) 0; border-block: 1px solid var(--rule); overflow: hidden; padding-block: 14px; }
.ticker-row { display: flex; gap: 36px; width: max-content; animation: drift 140s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.tk { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.tk img { width: 44px; height: 44px; border-radius: 4px; }
.tk .nm { font-size: 1.05rem; }
.tk .s { font-size: 0.92rem; color: var(--dim); }
.tk .s b { color: var(--ink); font-weight: 600; }
.tk .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@media (prefers-reduced-motion: reduce) { .ticker-row { animation: none; } }

/* What it's for: four uses, then a line on going deeper */
.why .sub { max-width: 38em; }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 36px; max-width: 960px; }
@media (max-width: 640px) { .uses { grid-template-columns: 1fr; } }
.uses h3 { margin: 0 0 8px; font-size: 1.15rem; }
.uses p { margin: 0; color: var(--dim); max-width: 30em; }
.why .after { margin-top: 40px; max-width: 46em; }
