/* Beauty Treatment Journal landing.
   "The divider": every band is cut in two like the app's before/after comparison,
   peach on the left and indigo on the right, with the slider knob on the cut.
   Headings run straight across the cut and change colour where they cross it. */

/* The latin-ext files carry ő and ű; the browser fetches them only when needed. */
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/epilogue-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/epilogue-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --peach: #fbe4d2;
  --peach-deep: #f4cdb3;
  --cream: #fff9f3;
  --ink: #22225a;
  --ink-soft: #55558a;
  --lav: #cfcdea;
  --mint: #7fddbe;
  --mint-deep: #167a5c;
  --rule: rgba(34, 34, 90, 0.18);
  --display: "Epilogue", "Arial Black", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --radius: 22px;
  --split: 50%;
  --prev: 50%;
}

@media (min-width: 620px) {
  :root {
    --gutter: max(32px, calc(50vw - 590px));
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 1rem/1.6 var(--text);
  overflow-wrap: break-word;
}

@media (min-width: 900px) {
  body {
    font-size: 1.0625rem;
  }
}

img,
svg {
  max-width: 100%;
}

p,
ul,
ol,
figure {
  margin: 0;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.09em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--cream);
}

::selection {
  background: var(--mint);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

code {
  font: 600 0.88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ── Top bar: a cream card that floats over the cut ── */

.bar {
  position: absolute;
  top: 12px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--radius);
  background: var(--cream);
}

.brand {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  flex: none;
  width: 40px;
  height: 40px;
}

.brand__name {
  font: 800 1rem/1.1 var(--display);
  letter-spacing: -0.02em;
}

.bar__nav {
  order: 3;
  width: 100%;
  border-top: 2px solid var(--peach);
}

.bar__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.bar__section {
  display: none;
}

.bar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}

.bar__nav a:hover,
.bar__nav a[aria-current="page"] {
  background: var(--peach);
}

.lang {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.lang__item {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.lang__item.is-current {
  background: var(--ink);
  color: var(--cream);
}

a.lang__item:hover {
  background: var(--peach);
}

@media (min-width: 900px) {
  .bar {
    top: 18px;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 10px 12px 10px 14px;
  }

  .brand {
    flex: none;
  }

  .brand__name {
    font-size: 1.08rem;
  }

  .bar__nav {
    order: 0;
    width: auto;
    margin-left: auto;
    border-top: 0;
  }

  .bar__nav ul {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1100px) {
  .bar__section {
    display: block;
  }
}

/* ── Bands ── */

.band {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: linear-gradient(90deg, var(--peach) var(--split), var(--ink) var(--split));
}

/* the divider line, and the step from the cut of the band above */
.band::before,
.band::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: var(--cream);
  pointer-events: none;
}

.band::before {
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 3px;
  margin-left: -1.5px;
}

.band::after {
  top: 0;
  left: min(var(--split), var(--prev));
  width: calc(max(var(--split), var(--prev)) - min(var(--split), var(--prev)) + 3px);
  height: 3px;
  margin-left: -1.5px;
}

.band > * {
  position: relative;
  z-index: 1;
}

.band__head {
  padding: 52px 0 84px;
}

.band:first-of-type > .band__head {
  padding-top: 156px;
}

/* a band whose picture carries the knob itself */
.band--noknob > .band__head {
  padding-bottom: 32px;
}

@media (min-width: 900px) {
  .band__head {
    padding: 84px 0 104px;
  }

  .band:first-of-type > .band__head {
    padding-top: 148px;
  }

  .band--noknob > .band__head {
    padding-bottom: 56px;
  }
}

/* Text that runs across the cut: indigo on the peach side, cream on the indigo side.
   The element is as wide as the band, so its gradient stops exactly on the divider. */
.across {
  display: block;
  margin: 0;
  padding: 0.12em var(--gutter) 0.14em;
  background: var(--cream);
  color: var(--ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .across {
    background: linear-gradient(90deg, var(--ink) var(--split), var(--cream) var(--split));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

h1.across {
  font-size: clamp(2.3rem, 6.5vw, 5.75rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2.across {
  font-size: clamp(1.85rem, 4.7vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-privacy h1.across,
.page-support h1.across,
.page-changelog h1.across,
.page-not-found h1.across {
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
}

.tag.across {
  padding-bottom: 0.5em;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.sub.across {
  max-width: none;
  padding-top: 1em;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .tag.across {
    font-size: 0.9rem;
  }

  .sub.across {
    font-size: 1.3rem;
    padding-right: max(var(--gutter), 30vw);
  }
}

/* ── The knob ── */

.knob {
  position: absolute;
  left: var(--split);
  bottom: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 0 0 -26px;
  padding: 0;
  border: 5px solid var(--cream);
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font: inherit;
}

.knob svg {
  display: block;
  width: 100%;
  height: 100%;
}

.knob--drag {
  cursor: ew-resize;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.knob--drag:hover,
.knob--drag.is-dragging {
  background: var(--mint-deep);
  color: var(--cream);
}

@media (min-width: 900px) {
  .knob {
    bottom: 24px;
    width: 60px;
    height: 60px;
    margin-left: -30px;
  }
}

/* ── Cards, plates, notes ── */

.card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}

.card--ink {
  border: 3px solid var(--cream);
  background: var(--ink);
  color: var(--cream);
}

.card--peach {
  border: 3px solid var(--cream);
  background: var(--peach-deep);
}

.card > * + *,
.field > * + * {
  margin-top: 0.8em;
}

.card h3,
.field h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.field h3:not(:first-child) {
  margin-top: 1.5em;
}

.lead {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.plate {
  display: inline-block;
  padding: 7px 16px 6px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: 800 0.78rem/1.3 var(--text);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* A block of text that lies directly on one colour field on wide screens.
   On narrow screens the fields are too narrow for that, so it becomes a cream card. */
.field {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  --soft: var(--ink-soft);
  --line: var(--rule);
  --accent: var(--mint-deep);
}

@media (min-width: 900px) {
  .field {
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .field--navy {
    color: var(--cream);
    --soft: var(--lav);
    --line: rgba(255, 249, 243, 0.3);
    --accent: var(--mint);
  }

  .lead {
    font-size: 1.22rem;
  }
}

.more {
  font-weight: 800;
}

.more::after {
  content: " →";
}

/* ── Screens ── */

.screen {
  display: block;
  overflow: hidden;
  border: 5px solid var(--cream);
  border-radius: 30px;
  background: var(--peach);
  line-height: 0;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
}

.screen--tall {
  aspect-ratio: 720 / 1290;
}

.screen--mid {
  aspect-ratio: 720 / 1096;
}

.screen--detail {
  aspect-ratio: 720 / 1272;
}

.screen--goals {
  aspect-ratio: 720 / 1282;
}

.screen--tall img,
.screen--mid img,
.screen--detail img,
.screen--goals img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.shot .screen {
  width: min(310px, 100%);
}

.shot figcaption {
  max-width: 330px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--cream);
  text-align: center;
}

/* ── Google Play call to action ── */

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 24px 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
}

a.cta__button:hover {
  background: var(--mint-deep);
  border-color: var(--mint-deep);
}

.cta__button.is-soon {
  border-style: dashed;
  background: none;
  color: var(--ink);
}

.cta__button svg {
  flex: none;
}

.cta__note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ── Hero ── */

.hero__body {
  display: grid;
  gap: 28px;
  padding: 0 var(--gutter);
}

.hero__card > * + * {
  margin-top: 18px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts li {
  padding: 5px 12px 5px 30px;
  border-radius: 999px;
  background: var(--peach) no-repeat 10px 50% / 14px 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5 5.5 11 12 3.5' fill='none' stroke='%23167A5C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-weight: 700;
  font-size: 0.9rem;
}

/* the screen stands on the bottom edge of the band and runs off it */
.hero__shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.hero__shots .screen {
  flex: none;
  width: min(290px, 78%);
  aspect-ratio: 720 / 1080;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}

.hero__shots .screen img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* the sections of the page as cream plates: readable wherever the cut is dragged */
.hero__index {
  display: none;
}

.hero__index a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 52px;
  padding: 14px 22px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: 800 1.12rem/1.2 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hero__index a:hover {
  background: var(--mint);
}

.hero__index span {
  color: var(--mint-deep);
  font: 800 0.8rem/1 var(--text);
  letter-spacing: 0.12em;
}

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

@media (min-width: 900px) {
  .hero__body {
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .hero__card {
    margin-bottom: 72px;
    padding: 30px 30px 28px;
  }

  .hero__shots {
    align-self: end;
    gap: 36px;
  }

  .hero__shots .screen {
    width: min(320px, 50%);
    aspect-ratio: 720 / 1330;
  }

  .hero__index {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin-top: 56px;
  }
}

/* ── Two-field layouts ── */

.split,
.trio,
.templates,
.vault,
.get,
.pagehead__body,
.releases,
.doc,
.help {
  padding: 0 var(--gutter) 64px;
}

.split,
.trio,
.split__a,
.split__b {
  display: grid;
  gap: 20px;
}

.split > *,
.trio > *,
.duo > * {
  min-width: 0;
}

.duo {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: var(--split) minmax(0, 1fr);
    gap: 0;
    align-items: start;
    padding: 0 0 104px;
  }

  .split__a {
    gap: 28px;
    padding: 0 44px 0 var(--gutter);
  }

  .split__b {
    gap: 28px;
    padding: 0 var(--gutter) 0 44px;
  }

  .trio {
    grid-template-columns: minmax(0, 1fr) 330px minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    padding-bottom: 104px;
  }

}

@media (min-width: 1180px) {
  .duo {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 36px;
    align-items: start;
  }

  .duo--flip {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

/* entry */

.rows {
  counter-reset: row;
  border-bottom: 1px solid var(--line);
}

.rows li {
  counter-increment: row;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.rows li::before {
  content: counter(row);
  color: var(--accent);
  font: 800 1.1rem/1.45 var(--display);
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cats__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
}

.cats__item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ee7c52;
}

.cats__item--2::before {
  background: #4f9bd0;
}

.cats__item--3::before {
  background: #d99a16;
}

.cats__item--4::before {
  background: #8a76de;
}

.cats__item--5::before {
  background: #36ae88;
}

@media (min-width: 900px) {
  .field--navy .cats__item {
    background: var(--cream);
  }

  .entry__shot .shot,
  .calendar__shot .shot {
    justify-self: center;
  }

  .split__b > .field {
    max-width: 600px;
  }
}

/* templates */

.templates {
  display: grid;
  gap: 20px;
}

.templates__list {
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .templates {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    padding-bottom: 96px;
  }

  .chips {
    gap: 10px;
  }

  .chips li {
    padding: 10px 20px;
    font-size: 1.02rem;
  }
}

/* photos */

.trio__shot {
  order: -1;
}

.trio__shot .screen {
  width: min(330px, 100%);
}

@media (min-width: 900px) {
  .trio__shot {
    order: 0;
  }
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li + li {
  margin-top: 0.7em;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 16px;
  height: 9px;
  border: solid var(--accent, var(--mint-deep));
  border-width: 0 0 3px 3px;
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* calendar */

.steps {
  display: grid;
  gap: 22px;
}

.steps > * + * {
  margin-top: 0;
}

.steps__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
}

.steps__no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font: 800 1.2rem/1 var(--display);
}

.steps .steps__item h3 {
  align-self: center;
  margin: 0;
}

.steps__item p {
  grid-column: 2;
}

.quiet {
  display: grid;
  gap: 4px;
}

.quiet > * + * {
  margin-top: 0;
}

/* spending */

.sample {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.sample > .card {
  width: 100%;
}

.figure > * + * {
  margin-top: 2px;
}

.figure__period {
  color: var(--mint);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.figure__amount {
  font: 800 clamp(2.4rem, 9vw, 3.4rem) / 1.1 var(--display);
  letter-spacing: -0.03em;
}

.figure__detail {
  color: var(--lav);
  font-size: 0.95rem;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
}

.bars li + li {
  margin-top: 16px;
}

.bars__name,
.bars__amount {
  font: 700 1.08rem/1.3 var(--display);
}

.bars__track {
  grid-column: 1 / -1;
  height: 9px;
  border-radius: 999px;
  background: var(--peach-deep);
}

.bars__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.bars__fill--iris {
  background: #8a76de;
}

.bars__fill--honey {
  background: #d99a16;
}

.bars__detail {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* goals */

.sample--navy {
  padding: 20px;
  border: 3px solid var(--cream);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
}

.sample__goal {
  font-weight: 700;
}

.tiles {
  display: grid;
  gap: 0;
  width: 100%;
}

.tiles li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 249, 243, 0.3);
}

.tiles strong {
  font: 800 clamp(2.6rem, 11vw, 4.4rem) / 1 var(--display);
  letter-spacing: -0.04em;
}

.tiles span {
  color: var(--lav);
  line-height: 1.35;
}

@media (min-width: 900px) {
  .sample--navy {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
}

/* privacy on the home page */

.vault {
  display: grid;
  gap: 16px;
}

.vault__grid {
  display: grid;
  gap: 12px;
}

.vault__grid .card > * + * {
  margin-top: 0.5em;
}

.vault__grid h3 {
  font-size: 1.1rem;
}

.vault__grid p {
  font-size: 0.96rem;
  line-height: 1.5;
}

@media (min-width: 620px) {
  .vault__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .vault {
    gap: 20px;
    padding-bottom: 104px;
  }

  .vault__limits {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 40px;
    padding: 30px 32px;
  }

  .vault__limits > * + * {
    margin-top: 0;
  }

  .vault__limits h3 {
    grid-row: 1 / span 2;
    font-size: 1.6rem;
  }

  .vault__limits p + p {
    margin-top: 0.8em;
  }
}

@media (min-width: 1180px) {
  .vault__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* download */

.get {
  display: grid;
  justify-items: center;
}

.get__card {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
}

.get__card > * + * {
  margin-top: 0;
}

.get__card img {
  width: 56px;
  height: 56px;
}

.get__card .cta {
  margin-top: 18px;
}

.get__contact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.get__contact a,
.mail,
.foot__mail {
  overflow-wrap: anywhere;
  font-weight: 800;
}

@media (min-width: 900px) {
  .get {
    padding-bottom: 120px;
  }

  .get__card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    padding: 36px 40px;
  }

  .get__card img {
    width: 88px;
    height: 88px;
  }
}

/* ── Inner pages ── */

.pagehead__body .card {
  max-width: 660px;
}

@media (min-width: 900px) {
  .pagehead__body {
    padding-bottom: 80px;
  }

  .pagehead__body .card {
    padding: 28px 30px;
  }
}

.band--doc {
  padding-top: 28px;
}

.doc,
.help,
.releases {
  display: grid;
  gap: 20px;
}

.doc > *,
.help > * {
  min-width: 0;
}

.doc__toc h2,
.help__contact h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.doc__toc ol {
  counter-reset: toc;
}

.doc__toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 2.1em minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.doc__toc li::before {
  content: counter(toc);
  padding-top: 9px;
  color: var(--soft);
  font-weight: 800;
  font-size: 0.86rem;
}

.doc__toc a {
  display: block;
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
}

.doc__toc a:hover {
  text-decoration: underline;
}

.doc__body > * + * {
  margin-top: 0;
}

.doc__summary {
  padding: 20px;
  border-radius: 16px;
  background: var(--peach);
}

.doc__summary h2 {
  margin-bottom: 0.6em;
  font-size: 1.3rem;
  font-weight: 800;
}

.doc__section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 16px;
}

.doc__section h2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0.6em;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.doc__no {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.doc__section p + p,
.doc__section ul + p,
.doc__section p + ul,
.doc__section p + table {
  margin-top: 0.9em;
}

.doc__section ul li {
  position: relative;
  padding-left: 22px;
}

.doc__section ul li + li {
  margin-top: 0.6em;
}

.doc__section ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--mint-deep) 50%, var(--peach-deep) 50%);
}

.doc__section a,
.faq a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* the data table: rows become stacked blocks on narrow screens */
.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.facts-table thead {
  display: none;
}

.facts-table tr {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.facts-table th[scope="row"] {
  display: block;
  font: 700 1.02rem/1.3 var(--display);
  letter-spacing: -0.01em;
}

.facts-table td {
  display: block;
  padding: 4px 0 0;
}

.facts-table td::before {
  content: attr(data-label) ": ";
  color: var(--ink-soft);
  font-weight: 700;
}

@media (min-width: 760px) {
  .facts-table thead {
    display: table-header-group;
  }

  .facts-table tr {
    display: table-row;
    padding: 0;
  }

  .facts-table th,
  .facts-table td,
  .facts-table th[scope="row"] {
    display: table-cell;
    padding: 10px 14px 10px 0;
    border-top: 1px solid var(--rule);
    vertical-align: top;
  }

  .facts-table thead th {
    border-top: 0;
    color: var(--ink-soft);
    font: 800 0.78rem/1.3 var(--text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .facts-table th[scope="row"] {
    width: 27%;
  }

  .facts-table td:last-child {
    width: 30%;
    padding-right: 0;
  }

  .facts-table td::before {
    content: none;
  }
}

@media (min-width: 900px) {
  .band--doc {
    padding-top: 56px;
  }

  .doc {
    grid-template-columns: var(--split) minmax(0, 1fr);
    gap: 0;
    align-items: start;
    padding: 0 0 104px;
  }

  .doc__toc {
    position: sticky;
    top: 20px;
    margin: 0 36px 0 var(--gutter);
  }

  .doc__body {
    max-width: 860px;
    margin: 0 var(--gutter) 0 36px;
    padding: 36px 40px 44px;
  }

  .doc__summary {
    padding: 24px 26px;
  }

  .doc__section h2 {
    font-size: 1.6rem;
  }
}

/* support */

.help__title {
  justify-self: start;
}

.help__faq {
  display: grid;
  gap: 10px;
  align-content: start;
}

.faq {
  padding: 0;
}

.faq > * + * {
  margin-top: 0;
}

.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px 12px 20px;
  border-radius: var(--radius);
  font: 700 1.06rem/1.3 var(--display);
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--peach) no-repeat 50% 50% / 14px 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 2v10M2 7h10' fill='none' stroke='%2322225A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.faq[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10' fill='none' stroke='%2322225A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.faq p {
  padding: 0 20px 20px;
}

.mail {
  font-size: min(1.1rem, 4vw);
}

.help__contact .note {
  color: var(--soft);
}

@media (min-width: 900px) {
  .help {
    grid-template-columns: var(--split) minmax(0, 1fr);
    gap: 0;
    align-items: start;
    padding: 0 0 104px;
  }

  .help__faq {
    padding: 0 44px 0 var(--gutter);
  }

  .help__contact {
    position: sticky;
    top: 20px;
    padding: 0 var(--gutter) 0 44px;
  }
}

/* version history */

.release {
  display: grid;
  gap: 16px;
}

.release > * + * {
  margin-top: 0;
}

.release__label {
  color: var(--mint-deep);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.release h2 {
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.release .ticks {
  margin-top: 1em;
}

@media (min-width: 900px) {
  .releases {
    gap: 24px;
    padding-bottom: 104px;
  }

  .release {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 40px;
    max-width: 920px;
    padding: 36px 40px;
  }

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

  .release .ticks {
    columns: 2;
    column-gap: 36px;
  }

  .release .ticks li {
    break-inside: avoid;
  }
}

/* ── Footer ── */

.foot {
  padding: 44px var(--gutter) 28px;
  border-top: 3px solid var(--cream);
  background: var(--ink);
  color: var(--cream);
}

.foot__grid {
  display: grid;
  gap: 28px;
}

.foot__grid > * > * + * {
  margin-top: 8px;
}

.brand--foot {
  gap: 12px;
}

.foot__disc {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--mint) 50%, var(--cream) 50%);
}

.foot h2 {
  color: var(--lav);
  font: 800 0.78rem/1.3 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot li a,
.foot li span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.foot li span {
  color: var(--lav);
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.foot__meta,
.foot__legal {
  color: var(--lav);
  font-size: 0.88rem;
}

.foot__legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 249, 243, 0.25);
}

@media (min-width: 620px) {
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .foot {
    padding-top: 64px;
  }

  .foot__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 0.7fr);
    gap: 40px;
  }
}

@media print {
  .bar,
  .knob,
  .foot__lang {
    display: none;
  }
}
