/* Selluvo landing page. Tokens follow the default Pole Display theme in DESIGN.md. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --green: #316939;
  --green-light: #3b7745;
  --green-deep: #25522c;
  --green-ink: #116b33;
  --ink: #14221b;
  --muted: #526159;
  --canvas: #ffffff;
  --pale: #f1f9ef;
  --mint: #d0ecdd;
  --mint-end: #f2f8ef;
  --line: #d9e3db;
  --on-green: #ffffff;
  --on-green-muted: #d8ebdd;
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: var(--on-green);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

.hero :focus-visible,
.masthead :focus-visible,
.close :focus-visible {
  outline-color: var(--on-green);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  top: 0.75rem;
}

/* Headings: the store screenshots set line one in ink and line two in green. */

h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h2 span,
h3 span {
  display: block;
  color: var(--green-ink);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.button--light {
  background: var(--on-green);
  color: var(--green-deep);
}

.button--light:hover {
  background: var(--on-green-muted);
}

.button:active {
  transform: translateY(1px);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: grid;
  align-content: center;
  min-width: 11.5rem;
  min-height: 60px;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--on-green);
  color: var(--green-deep);
  text-decoration: none;
  line-height: 1.2;
  transition:
    background-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.store__note {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.store__name {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store:hover {
  background: var(--on-green-muted);
}

.store:active {
  transform: translateY(1px);
}

/* Hero: the Pole Display readout at page scale */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--on-green);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14rem;
  top: -22rem;
  width: 58rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

.nav {
  position: relative;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav__toggle {
  display: none;
  min-height: 44px;
  margin-left: auto;
  padding: 0 1.125rem;
  border: 1.5px solid rgb(255 255 255 / 0.6);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-green);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.nav__toggle[hidden] {
  display: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--on-green-muted);
  transition: color 0.2s var(--ease-out);
}

.nav__links a:hover {
  color: var(--on-green);
  text-decoration: underline;
}

.nav__cta {
  min-height: 44px;
  padding: 0 1.125rem;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  height: clamp(34rem, calc(100svh - 5.25rem), 58rem);
}

.hero__copy {
  padding-bottom: 2rem;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.25rem, 8.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero__lede {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--on-green-muted);
}

.hero .stores {
  margin-top: 2.25rem;
}

.hero__terms {
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-green-muted);
}

.hero__phone {
  align-self: start;
  justify-self: center;
  width: min(100%, clamp(21rem, 44svh, 27rem));
  margin-top: clamp(1rem, 4vh, 3rem);
  transform: rotate(-2deg);
  transform-origin: 50% 20%;
}

.hero__phone img {
  filter: drop-shadow(0 28px 34px rgb(9 32 16 / 0.38));
}

/* Tour: one pinned phone, chapters scroll past */

.tour {
  padding-top: var(--section);
  overflow-x: clip;
}

.tour__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  column-gap: clamp(2rem, 6vw, 6rem);
}

.tour__intro {
  grid-column: 1;
  max-width: 36rem;
}

.tour__intro p {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

.tour__chapters {
  grid-column: 1;
}

.chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(88vh, 46rem);
  max-width: 33rem;
  padding-block: 3rem;
  scroll-margin-top: 1rem;
}

.chapter__shot {
  display: none;
}

.chapter > p {
  margin-top: 1.25rem;
  color: var(--muted);
}

.rows {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 600;
}

.rows li {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.tour__note {
  padding-bottom: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.tour__stage {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.stage {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  height: 100vh;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(34rem, 120%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(var(--mint), var(--mint-end));
  transform: translate(-50%, -50%);
}

.stage__phone {
  position: relative;
  width: min(19.5rem, calc((100vh - 9.5rem) * 0.4787));
  aspect-ratio: 720 / 1504;
  filter: drop-shadow(0 22px 28px rgb(20 34 27 / 0.22));
}

.stage__phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.75s var(--ease-out);
}

.stage__phone img.is-on {
  clip-path: inset(0 0 0 0);
}

.stage__tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--canvas);
  box-shadow: 0 6px 18px rgb(20 34 27 / 0.1);
  font-size: 0.8125rem;
  font-weight: 700;
}

.stage__tabs a {
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.stage__tabs a:hover {
  color: var(--ink);
}

.stage__tabs a[aria-current] {
  background: var(--green);
  color: var(--on-green);
}

/* Counters: the in-app theme chooser. One panel, a radio option per theme, no script. */

.counters {
  margin-top: var(--section);
  padding-block: var(--section);
  background: linear-gradient(var(--mint), var(--mint-end));
}

.counters__head p {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: #3d4f45;
}

.chooser {
  --bg: var(--green);
  --fg: #ffffff;
  --fg-muted: #d8ebdd;
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3rem;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border-radius: 28px;
  background: var(--bg);
  color: var(--fg);
  transition:
    background-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out);
}

.chooser__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.chooser__options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chooser__options ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  max-width: 27rem;
}

.chooser__options label {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.125rem;
  border: 1.5px solid color-mix(in srgb, var(--fg) 32%, transparent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.chooser__options label:hover {
  border-color: var(--fg);
}

.chooser__options input:checked + label {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.chooser__options input:focus-visible + label {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Every description shares one grid cell, so the panel never changes height. */
.chooser__details {
  display: grid;
}

.chooser__detail {
  grid-area: 1 / 1;
  align-self: end;
  max-width: 30rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.chooser__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
}

.chooser__detail h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.chooser__detail > p {
  margin-top: 0.875rem;
  color: var(--fg-muted);
}

/* After the app's own PRO chip on locked report rows. */
.chip {
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 14%, transparent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.chooser__phone {
  position: relative;
  justify-self: center;
  width: clamp(14rem, 24vw, 18.5rem);
  aspect-ratio: 480 / 1003;
  filter: drop-shadow(0 16px 22px rgb(0 0 0 / 0.22));
}

/* The outgoing screen stays put underneath until the incoming one has wiped over it. */
.chooser__phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0s 0.7s;
}

.chooser:has(#counter-pole:checked) {
  --bg: var(--green);
  --fg: #ffffff;
  --fg-muted: #d8ebdd;
}

.chooser:has(#counter-pole:checked) .chooser__detail.is-pole {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-pole:checked) .chooser__phone .is-pole {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

.chooser:has(#counter-viewfinder:checked) {
  --bg: #1b2620;
  --fg: #ffffff;
  --fg-muted: #c6d4ca;
}

.chooser:has(#counter-viewfinder:checked) .chooser__detail.is-viewfinder {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-viewfinder:checked) .chooser__phone .is-viewfinder {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

.chooser:has(#counter-receipt:checked) {
  --bg: #d9deda;
  --fg: #14221b;
  --fg-muted: #3a4840;
}

.chooser:has(#counter-receipt:checked) .chooser__detail.is-receipt {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-receipt:checked) .chooser__phone .is-receipt {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

.chooser:has(#counter-yellow:checked) {
  --bg: #ffd500;
  --fg: #111111;
  --fg-muted: #2e2700;
}

.chooser:has(#counter-yellow:checked) .chooser__detail.is-yellow {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-yellow:checked) .chooser__phone .is-yellow {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

.chooser:has(#counter-keys:checked) {
  --bg: #c9cec8;
  --fg: #1b2a1e;
  --fg-muted: #354238;
}

.chooser:has(#counter-keys:checked) .chooser__detail.is-keys {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-keys:checked) .chooser__phone .is-keys {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

.chooser:has(#counter-spotlight:checked) {
  --bg: #efedf6;
  --fg: #14221b;
  --fg-muted: #4a4563;
}

.chooser:has(#counter-spotlight:checked) .chooser__detail.is-spotlight {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-spotlight:checked) .chooser__phone .is-spotlight {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

.chooser:has(#counter-scanbed:checked) {
  --bg: #1d3bc4;
  --fg: #ffffff;
  --fg-muted: #dbe2ff;
}

.chooser:has(#counter-scanbed:checked) .chooser__detail.is-scanbed {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-scanbed:checked) .chooser__phone .is-scanbed {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

.chooser:has(#counter-daybook:checked) {
  --bg: #fbe1e5;
  --fg: #1b2a7a;
  --fg-muted: #4a5296;
}

.chooser:has(#counter-daybook:checked) .chooser__detail.is-daybook {
  visibility: visible;
  opacity: 1;
}

.chooser:has(#counter-daybook:checked) .chooser__phone .is-daybook {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

/* Ledger rows, after the app's order detail */

.yours {
  padding-block: var(--section);
}

.yours__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.yours__copy p {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.ledger {
  border-top: 1.5px solid var(--ink);
}

.ledger div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--line);
}

.ledger dt {
  color: var(--muted);
}

.ledger dd {
  font-weight: 700;
  text-align: right;
}

/* Plans */

.plans {
  padding-block: var(--section);
  background: var(--pale);
}

.plans__head p {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.plans__scroll {
  margin-top: 3rem;
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.compare th,
.compare td {
  padding: 1.125rem 1.25rem 1.125rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  padding-bottom: 0.875rem;
  border-bottom: 1.5px solid var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.compare thead th:last-child {
  color: var(--green-ink);
}

.compare tbody th {
  width: 36%;
  font-weight: 600;
}

.compare td {
  width: 32%;
  color: var(--muted);
}

.compare td:last-child {
  color: var(--ink);
  font-weight: 700;
}

.plans__terms {
  max-width: 44rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* FAQ: native disclosure rows on the same hairlines as the ledger */

.faq {
  padding-block: var(--section);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq__copy p {
  max-width: 26rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.faq__copy a,
.faq__list a {
  color: var(--green-ink);
  font-weight: 600;
}

.faq__list {
  border-top: 1.5px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding-block: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Plus that folds to a minus when the row is open. */
.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(var(--green-ink), var(--green-ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--green-ink), var(--green-ink)) center / 2px 100% no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  background:
    linear-gradient(var(--green-ink), var(--green-ink)) center / 100% 2px no-repeat;
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--green-ink);
}

.faq details p {
  max-width: 38rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
}

/* Close */

.close {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--on-green);
  isolation: isolate;
}

.close::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14rem;
  bottom: -32rem;
  width: 56rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green-light);
}

.close__body {
  padding-block: var(--section) clamp(3.5rem, 7vw, 5.5rem);
}

.close h2 {
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.close h2 span {
  color: #bfe5cb;
}

.close .stores {
  margin-top: 2.5rem;
}

.close__fine {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--on-green-muted);
}

.close__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  font-size: 0.9375rem;
  color: var(--on-green-muted);
}

.close__foot .brand {
  margin-right: auto;
  font-size: 1.0625rem;
  color: var(--on-green);
}

.close__foot .brand img {
  border-radius: 8px;
}

/* Privacy and terms: a reading column under a slim green masthead */

.masthead {
  background: var(--green);
  color: var(--on-green);
}

.nav__links a[aria-current] {
  color: var(--on-green);
  text-decoration: underline;
}

.masthead {
  position: relative;
  z-index: 2;
}

.doc {
  padding-block: clamp(3rem, 7vw, 5rem) var(--section);
}

.doc > * {
  max-width: 44rem;
}

.doc h1 {
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.doc__meta {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.doc h2 {
  margin-top: 3.5rem;
  font-size: 1.625rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  scroll-margin-top: 1.5rem;
}

.doc h3 {
  margin-top: 2rem;
  font-size: 1.125rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.doc p,
.doc ul,
.doc__scroll {
  margin-top: 1rem;
}

.doc__meta + p {
  margin-top: 2rem;
  font-size: 1.1875rem;
}

.doc ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc li::marker {
  color: var(--green-ink);
}

.doc a {
  color: var(--green-ink);
  font-weight: 600;
}

.doc__summary {
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1.5rem 2.75rem;
  border-radius: var(--radius);
  background: var(--pale);
  font-weight: 600;
}

.doc__scroll {
  max-width: none;
  overflow-x: auto;
}

.doc table {
  width: 100%;
  max-width: 56rem;
  min-width: 34rem;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  font-size: 0.9375rem;
  text-align: left;
}

.doc th,
.doc td {
  padding: 0.875rem 1.25rem 0.875rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc thead th {
  color: var(--muted);
  font-weight: 600;
}

.doc tbody th {
  white-space: nowrap;
}

.close--plain::before {
  display: none;
}

.close--plain .close__foot {
  border-top: 0;
  padding-top: 2rem;
}

/* 404 */

.lost {
  display: grid;
  align-content: center;
  min-height: 100svh;
  background: var(--green);
  color: var(--on-green);
}

.lost h1 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7vw, 5rem);
}

.lost p {
  margin-block: 1.5rem 2.25rem;
  color: var(--on-green-muted);
}

.lost :focus-visible {
  outline-color: var(--on-green);
}

/* Narrow screens: every chapter carries its own phone */

@media (max-width: 56rem) {
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    width: 100%;
    margin-left: 0;
  }

  .nav.has-menu .nav__links {
    position: absolute;
    z-index: 5;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: auto;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    background: var(--canvas);
    box-shadow: 0 18px 40px rgb(9 32 16 / 0.28);
    font-size: 1.0625rem;
  }

  .nav.has-menu.is-open .nav__links {
    display: flex;
  }

  .nav.has-menu .nav__links li + li {
    border-top: 1px solid var(--line);
  }

  .nav.has-menu .nav__links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    color: var(--ink);
  }

  .nav.has-menu .nav__links a[aria-current] {
    color: var(--green-ink);
  }

  .nav.has-menu .nav__links :focus-visible {
    outline-color: var(--green-ink);
  }

  .hero__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    height: auto;
    padding-top: clamp(1.5rem, 6vw, 3rem);
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero__phone {
    width: min(74%, 20rem);
    height: clamp(17rem, 78vw, 24rem);
    margin-top: 0;
  }

  .tour__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour__stage {
    display: none;
  }

  .tour__chapters {
    margin-top: 1rem;
  }

  .chapter {
    min-height: 0;
    max-width: none;
    padding-block: 2.5rem;
  }

  .chapter__shot {
    display: block;
    width: min(70%, 17rem);
    margin: 0 auto 2.25rem;
    filter: drop-shadow(0 18px 22px rgb(20 34 27 / 0.2));
  }

  .reveal .chapter__shot {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.9s var(--ease-out);
  }

  .reveal .chapter__shot.is-in {
    clip-path: inset(0 -3rem -3rem -3rem);
  }

  .chooser {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2rem;
  }

  .chooser__options ul {
    max-width: none;
  }

  .chooser__phone {
    width: min(64%, 16rem);
    margin-inline: auto;
  }

  .yours__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger div {
    flex-direction: column;
    gap: 0.25rem;
  }

  .ledger dd {
    text-align: left;
  }

  /* Plans table restacks: one feature per block, Free and Pro labelled. */
  .plans__scroll {
    margin-top: 2rem;
  }

  .compare {
    min-width: 0;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare tbody tr {
    display: block;
    padding-block: 1.125rem;
    border-bottom: 1px solid var(--line);
  }

  .compare tbody tr:first-child {
    border-top: 1.5px solid var(--ink);
  }

  .compare tbody th,
  .compare td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .compare td {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    margin-top: 0.5rem;
  }

  .compare td::before {
    content: attr(data-plan);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.9;
    color: var(--muted);
  }

  .compare td:last-child::before {
    color: var(--green-ink);
  }

  .close__foot .brand {
    width: 100%;
  }

  .close::before {
    right: -30rem;
    bottom: auto;
    top: -40rem;
  }
}

@media (max-width: 26rem) {
  .store {
    flex: 1 1 100%;
  }

  .chooser__options label {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stage__phone img,
  .chapter__shot,
  .button,
  .store,
  .stage__tabs a,
  .faq summary::after,
  .chooser,
  .chooser__options label,
  .chooser__detail,
  .chooser__phone img {
    transition: none;
  }

  /* Beats the per-theme rule, which carries an id. */
  .chooser .chooser__phone img {
    transition: none !important;
  }
}
