/* memotrove.app.

   The site wears the app's look: a stenographer's pad (pale green-grey
   paper, blue-black ink) and the red of a recording light, kept for what is
   live: the playhead, the word being spoken, and the one button that takes
   money. Commissioner sets headings and controls; Literata sets what was
   said and anything long to read. The colours are the app's own
   (src/index.css), light and dark.

   The page is laid out as the app lays out a transcript: a narrow margin
   that says where you are, and the words beside it. */

:root {
  color-scheme: light dark;
  --paper: #f4f7f1;
  --paper-raised: #fbfcf9;
  --pad: #e6ede1;
  --pad-deep: #d6e0d0;
  --rule: #cdd8c8;
  --rule-soft: #dfe7da;
  --ink: #1b2a32;
  --ink-2: #4c5f63;
  --ink-3: #6f807c;
  --unsaid: #9aa8a4;
  --red: #d8362b;
  --red-deep: #b92a20;
  --red-soft: #fbe3df;
  --on-red: #ffffff;
  --l-amber: #a87414;
  --l-teal: #1f7d78;
  --l-violet: #7552a6;
  --focus: #2f6f8f;
  --spark: #4d55a8;
  --shadow: 0 30px 70px rgba(27, 42, 50, 0.16), 0 3px 10px rgba(27, 42, 50, 0.1);
  --mark-body: #1b2a32;
  --mark-door: #e9f0e4;
  --mark-well: #101a1f;

  --ui: "Commissioner Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: "Literata Variable", "Iowan Old Style", Georgia, serif;

  --margin: 11rem; /* the margin column */
  --gap: 3rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161d1b;
    --paper-raised: #1d2623;
    --pad: #111715;
    --pad-deep: #222d29;
    --rule: #2c3833;
    --rule-soft: #232d29;
    --ink: #e4ece4;
    --ink-2: #a9b8b1;
    --ink-3: #85948e;
    --unsaid: #5f6e68;
    --red: #ff6257;
    --red-deep: #ff7d73;
    --red-soft: #47211d;
    --on-red: #1f0c0a;
    --l-amber: #e2b45a;
    --l-teal: #62c3bb;
    --l-violet: #b9a0ee;
    --focus: #7fc4e6;
    --spark: #aab2f2;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.35);
    --mark-body: #3a5059;
    --mark-door: #e4ece4;
    --mark-well: #0c1316;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
}
button {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection {
  background: var(--pad-deep);
}

.wrap {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 1rem;
  z-index: 10;
}

/* The mark: the icon's tape recorder, flat. */
.mark {
  flex: none;
}
.mark-body {
  fill: var(--mark-body);
}
.mark-door,
.mark-hub {
  fill: var(--mark-door);
}
.mark-well {
  fill: var(--mark-well);
}

/* --- Buttons: the app's ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--ink);
  font: 550 0.95rem/1.2 var(--ui);
  text-decoration: none;
  cursor: pointer;
}
a.btn:hover,
button.btn:hover:not(:disabled) {
  border-color: var(--ink-3);
}
.btn.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
a.btn.primary:hover,
button.btn.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ink) 86%, var(--paper));
}
.btn.rec {
  border-color: var(--red);
  background: var(--red);
  color: var(--on-red);
}
a.btn.rec:hover,
button.btn.rec:hover:not(:disabled) {
  border-color: var(--red-deep);
  background: var(--red-deep);
}
.btn.big {
  min-height: 3.1rem;
  padding: 0.5rem 1.4rem;
  font-size: 1.05rem;
}
.btn:disabled,
.btn.soon {
  border-style: dashed;
  background: none;
  color: var(--ink-2);
  cursor: default;
}

/* --- The top bar ---------------------------------------------------------- */

.bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 1.6rem;
}
.nav a,
.foot-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover,
.foot-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* The language menu: a <details>, so it works with no script. */
.lang-menu {
  position: relative;
}
.lang-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.lang-pick::-webkit-details-marker {
  display: none;
}
.lang-pick::after {
  content: "";
  margin-top: 0.3rem;
  border: 0.28rem solid transparent;
  border-top-color: currentColor;
}
.lang-pick:hover,
.lang-menu[open] .lang-pick {
  color: var(--ink);
}
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 20;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}
.lang-menu a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.lang-menu a:hover {
  background: var(--pad);
}
.lang-menu a[aria-current] {
  font-weight: 650;
}
.lang-menu a[aria-current]::after {
  content: "\2713";
}

/* --- The opening ---------------------------------------------------------- */

.hero {
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2rem, 4vw, 2.75rem);
}
/* The words, and beside them the tape recorder from the app's icon. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.recorder {
  width: clamp(12.5rem, 23vw, 20rem);
  height: auto;
  margin-block: -1rem;
  overflow: visible;
}
:root {
  --recorder-edge: transparent;
}
@media (prefers-color-scheme: dark) {
  :root {
    --recorder-edge: #55707b; /* so its dark body doesn't sink into a dark page */
  }
}
.recorder-body {
  stroke: var(--recorder-edge);
  stroke-width: 3;
}
/* The reels turn while the window below is playing (demo.js says when). */
.reel {
  animation: reel 3.2s linear infinite;
  animation-play-state: paused;
}
.playing .reel {
  animation-play-state: running;
}
@keyframes reel {
  to {
    transform: rotate(360deg);
  }
}
/* Keys go down when pressed, and Play stays down while it plays. */
.key {
  transition: transform 0.08s ease;
}
.key[data-demo] {
  cursor: pointer;
}
.key[data-demo]:active,
.playing .key-play {
  transform: translateY(7px);
}

.hero h1 {
  max-width: 13em;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede {
  max-width: 44rem;
  margin-top: 1.4rem;
  font: 400 clamp(1.15rem, 1.6vw, 1.3rem) / 1.6 var(--read);
  color: var(--ink);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.fine {
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.fine a,
.say a,
.ruled a,
.doc a,
.foot-more a,
.plan-note a {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 0.2em;
}
.fine a:hover,
.say a:hover,
.ruled a:hover,
.doc a:hover,
.foot-more a:hover,
.plan-note a:hover {
  text-decoration-color: currentColor;
}

/* --- The window: MemoTrove, drawn from its own parts, and working --------- */

.win-figure {
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.win {
  display: grid;
  grid-template-columns: 14.75rem 17.5rem minmax(0, 1fr); /* the app's own sidebar width */
  height: 35rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
}
.win-figure figcaption {
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.win-side {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 0.65rem 0.8rem;
  border-right: 1px solid var(--rule);
  background: var(--pad);
}
.win-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.win-side .item {
  display: flex;
  justify-content: space-between;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
}
.win-side .item.sub {
  padding-left: 1.3rem;
  color: var(--ink-2);
  font-weight: 400;
}
.win-side .item.on {
  background: var(--ink);
  color: var(--paper);
}
.win-side .item span:last-child {
  color: var(--ink-3);
  font-weight: 400;
}
.win-side .item.on span:last-child {
  color: inherit;
}
.win-side .tag {
  justify-content: flex-start;
  gap: 0.5rem;
  font-weight: 500;
}
.win-side .head {
  padding: 0.8rem 0.55rem 0.2rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 500;
}
.dot {
  flex: none;
  align-self: center;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--l-teal);
}
.dot.violet {
  background: var(--l-violet);
}
.dot.amber {
  background: var(--l-amber);
}
.win-side .foot-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-raised);
  font-weight: 550;
}
.win-side .foot-btn.primary {
  margin-top: auto;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.win-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.win-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0.9rem 0.7rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink-3);
}
.win-day {
  padding: 0.45rem 1rem 0.35rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
}
.row {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.7rem 1rem 0.75rem;
  border: 0;
  border-top: 1px solid var(--rule-soft);
  border-left: 3px solid transparent;
  background: none;
  text-align: left;
  cursor: pointer;
}
.row:hover {
  background: var(--paper-raised);
}
.row[aria-current="true"] {
  border-left-color: var(--ink);
  background: var(--pad);
}
.row:focus-visible {
  outline-offset: -2px;
}
.row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.row-top b {
  font-weight: 650;
  font-size: 0.92rem;
}
.row-top span {
  flex: none;
  color: var(--ink-3);
  font-size: 0.8rem;
}
.row-said {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font: 400 0.86rem/1.4 var(--read);
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-3);
  font-size: 0.8rem;
}
.row-meta svg {
  flex: none;
}

.win-reader {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.memo {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.memo[hidden] {
  display: none;
}
.memo-head {
  padding: 1.15rem 1.9rem 0.85rem;
  border-bottom: 1px solid var(--rule-soft);
}
.memo-head h3 {
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.memo-when {
  margin-top: 0.25rem;
  color: var(--ink-2);
}
.memo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}
.memo-src {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
  color: var(--ink-2);
}
.memo-src::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ink-3);
}
.memo-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.95rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-raised);
  color: var(--ink);
  font: 550 0.84rem/1 var(--ui);
}
button.chip {
  cursor: pointer;
}
.chip.spark {
  border-color: color-mix(in srgb, var(--spark) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--spark) 10%, var(--paper-raised));
  color: var(--spark);
  font-weight: 650;
}
button.chip.spark:hover,
button.chip.spark[aria-expanded="true"] {
  border-color: var(--spark);
  background: var(--spark);
  color: var(--paper);
}

.memo-body {
  position: relative; /* so a word's place is measured from here (demo.js) */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.4rem 1.9rem 1.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

/* The transcript: paragraphs with the time each starts in the margin, like
   the counter on a recorder. */
.transcript {
  max-width: 40rem;
  font: 400 1.14rem/1.62 var(--read);
}
.para {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  margin-bottom: 1em;
}
.para-time {
  padding-top: 0.5em;
  color: var(--ink-3);
  font: 500 0.78rem/1 var(--ui);
}
.w {
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.18s ease;
}
.w:hover {
  background: var(--pad);
}
.tracking .w {
  color: var(--unsaid);
}
.tracking .w.said {
  color: var(--ink);
}
.tracking .w.now {
  color: var(--ink);
  background: var(--red-soft);
  box-shadow: 0 2px 0 var(--red);
}

.player {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.4rem 0.8rem 1.9rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.play {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.play:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--paper));
}
.play.on {
  background: var(--red);
  color: var(--on-red);
}
.play .pause,
.play.on .go {
  display: none;
}
.play.on .pause {
  display: block;
}
.skip {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.skip:hover {
  background: var(--pad);
  color: var(--ink);
}
.time {
  min-width: 2.6em;
  color: var(--ink-2);
  font-size: 0.82rem;
  white-space: nowrap;
}
.time.end {
  text-align: right;
}
/* Commissioner has no fixed-width figures, so each digit of the clock gets a
   cell as wide as the 0 and nothing beside it shivers (as the app's Num). */
.time .digit {
  display: inline-block;
  width: 1ch;
  text-align: center;
}
.speed {
  height: 1.75rem;
  min-width: 2.9rem;
  padding: 0 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: none;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.speed:hover {
  border-color: var(--ink-3);
}

/* The speech map: a bar for every stretch of talking, a gap for every
   silence, drawn from the words' timings. It is the scrubber. */
.map {
  position: relative;
  height: 2.1rem;
  cursor: pointer;
  touch-action: none;
}
.map-layer {
  position: absolute;
  inset: 0.7rem 0;
}
.map-layer i {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
  border-radius: 3px;
  background: var(--rule);
}
.map-layer.said i {
  background: var(--ink);
}
.map-head {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--red);
}
.map-head::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* A note set apart above a transcript, on the pad's green. */
.sum {
  margin-bottom: 1.3rem;
  padding: 0.95rem 1.15rem 1rem;
  border-radius: 8px;
  background: var(--pad);
}
.sum[hidden] {
  display: none;
}
.sum-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  font-weight: 650;
}
.sum-head svg {
  align-self: center;
  color: var(--spark);
}
.sum-head small {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 400;
}
.sum > p:not(.sum-head) {
  margin-top: 0.5rem;
  font: 400 1rem/1.55 var(--read);
}
.sum h4 {
  margin: 0.85rem 0 0.25rem;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 650;
}
.sum li {
  display: flex;
  gap: 0.55rem;
  padding: 0.12rem 0;
  font-size: 0.9rem;
}
.sum li::before {
  content: "";
  flex: none;
  width: 0.3rem;
  height: 0.3rem;
  margin: 0.55em 0.15rem 0;
  border-radius: 50%;
  background: var(--ink-3);
}
.sum .todo li::before {
  width: 0.65rem;
  height: 0.65rem;
  margin: 0.33em 0 0;
  border: 1.5px solid var(--ink-3);
  border-radius: 3px;
  background: none;
}

/* --- Sections: a margin that says where you are, the words beside it ------ */

.sec {
  display: grid;
  grid-template-columns: var(--margin) minmax(0, 1fr);
  column-gap: var(--gap);
  padding-block: clamp(3rem, 6vw, 4.75rem);
  border-top: 1px solid var(--rule);
}
.sec > h2 {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  padding-top: 0.55rem;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.sec > h2 svg {
  display: inline;
  margin-right: 0.3rem;
  vertical-align: -0.1em;
  color: var(--spark);
}
.lead {
  max-width: 22em;
  font-weight: 750;
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.say {
  max-width: 38rem;
  margin-top: 1.3rem;
  font: 400 1.14rem/1.65 var(--read);
}
.say + .say {
  margin-top: 0.9rem;
}

/* A short ruled list, a name and what it is on each line: the form the app's
   own Account page takes. */
.ruled {
  max-width: 50rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--rule-soft);
}
.ruled > div {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--rule-soft);
}
.ruled dt {
  font-weight: 650;
}
.ruled dd {
  color: var(--ink-2);
}
.ruled + .say {
  margin-top: 1.8rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: 2.5rem;
  align-items: start;
}
.split .ruled > div {
  grid-template-columns: minmax(0, 1fr);
}
.split .sum {
  margin: 2rem 0 0;
}

/* Captures of the app: one across, the rest two by two. */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 2rem;
}
.shot.wide {
  grid-column: 1 / -1;
}
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.shot.wide img {
  border-radius: 12px;
}
.shot figcaption {
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Free and full, side by side, a rule between them. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 54rem;
  margin-top: 2.4rem;
}
.plan {
  padding-right: 2.5rem;
}
.plan + .plan {
  padding: 0 0 0 2.5rem;
  border-left: 1px solid var(--rule);
}
.plan h3 {
  font-weight: 650;
  font-size: 1.05rem;
}
.amt {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.3rem;
  font-weight: 800;
  font-size: 3.1rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.amt small {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
}
.plan ul {
  margin-top: 1.3rem;
  border-bottom: 1px solid var(--rule-soft);
}
.plan li {
  padding-block: 0.6rem;
  border-top: 1px solid var(--rule-soft);
}
.plan .btn {
  margin-top: 1.5rem;
}
.plan-note {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Where to get it. */
.get {
  max-width: 50rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--rule-soft);
}
.get li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule-soft);
}
.get b {
  display: block;
  font-weight: 650;
  font-size: 1.1rem;
}
.get span {
  color: var(--ink-2);
}

/* --- The foot: the pad's cover -------------------------------------------- */

.foot {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: 2rem 2.4rem;
  border-top: 1px solid var(--rule);
  background: var(--pad);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.foot-more {
  margin-top: 1.2rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* --- Pages of words: support, privacy, terms, refunds --------------------- */

.doc {
  display: grid;
  grid-template-columns: var(--margin) minmax(0, 1fr);
  column-gap: var(--gap);
  padding-block: clamp(2rem, 5vw, 3.5rem) 3rem;
}
.doc > * {
  grid-column: 2;
  max-width: 41rem;
}
.doc h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.doc .dated {
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.doc h2 {
  margin-top: 2.6rem;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.doc h3 {
  margin-top: 1.7rem;
  font-weight: 650;
  font-size: 1.05rem;
}
.doc p,
.doc li {
  font: 400 1.08rem/1.68 var(--read);
}
.doc p {
  margin-top: 0.9rem;
}
.doc ul,
.doc ol {
  margin-top: 0.9rem;
  padding-left: 1.3rem;
}
.doc ul {
  list-style: disc;
}
.doc ol {
  list-style: decimal;
}
.doc li + li {
  margin-top: 0.45rem;
}
.doc li::marker {
  color: var(--ink-3);
}
.doc strong {
  font-weight: 650;
}
.doc .btn {
  margin-top: 1.4rem;
}

/* --- Buying ---------------------------------------------------------------- */

.buy {
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 29rem);
  gap: 4.5rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) 3rem;
}
.buy h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.buy .amt {
  margin-top: 1.1rem;
}
.buy .btn {
  margin-top: 1.5rem;
}
.buy-what h2 {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.buy-what ul {
  margin-top: 0.8rem;
  border-bottom: 1px solid var(--rule-soft);
}
.buy-what li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule-soft);
}
.note {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.note[hidden] {
  display: none;
}
.note strong {
  color: var(--ink);
}

/* --- Narrower -------------------------------------------------------------- */

@media (max-width: 68rem) {
  .win {
    grid-template-columns: 17.5rem minmax(0, 1fr);
  }
  .win-side {
    display: none;
  }
}

@media (max-width: 52rem) {
  :root {
    --margin: 0rem;
    --gap: 0rem;
  }
  .nav {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .recorder {
    order: -1;
    width: 8.5rem;
    margin-block: 0;
  }
  .lang-pick span {
    display: none; /* the globe alone, beside Download */
  }
  .win {
    grid-template-columns: minmax(0, 1fr);
    height: 31rem;
  }
  .win-list {
    display: none;
  }
  .memo-head,
  .memo-body {
    padding-inline: 1.15rem;
  }
  .player {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding-inline: 1.15rem;
  }
  .player .skip,
  .player .speed {
    display: none;
  }
  .memo-acts .chip:not(.spark) {
    display: none;
  }
  .sec,
  .doc {
    display: block;
  }
  .sec > h2 {
    position: static;
    padding: 0 0 0.8rem;
  }
  .ruled > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }
  .split,
  .buy {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .plan,
  .plan + .plan {
    padding: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .w {
    transition: none;
  }
  .reel {
    animation: none;
  }
  .key {
    transition: none;
  }
}
