/* Food Cost Calculator landing.
   "Mise en place": every section is a tray of rounded containers on butter
   paper, the system of the app's store graphics. Flat colour, no shadows. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #faf4e6;
  --surface: #fffdf8;
  --aubergine: #3b1e52;
  --ink: #2a1838;
  --muted: #5f4d6e;
  --pistachio: #cde7a4;
  --leaf: #40661b;
  --lilac: #eadff2;
  --apricot: #f6d2ac;
  --butter: #f2e9d6;
  --line: #e3d8bf;
  --cream: #fffdf8;
  --on-dark: #dccfe8;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --gap: 16px;
  --r: 36px;
  --pad: 40px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}
.box--dark :focus-visible {
  outline-color: var(--pistachio);
}

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

.wrap {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

/* Containers */
.box {
  border-radius: var(--r);
  padding: var(--pad);
  min-width: 0;
}
.box--dark {
  background: var(--aubergine);
  color: var(--cream);
}
.box--green {
  background: var(--pistachio);
}
.box--peach {
  background: var(--apricot);
}
.box--lilac {
  background: var(--lilac);
}
.box--butter {
  background: var(--butter);
}
.box--paper {
  background: var(--surface);
  border: 1.5px solid var(--line);
}

.eyebrow,
.rail {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.box--dark .eyebrow {
  color: var(--pistachio);
}

.rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--aubergine);
  margin-bottom: var(--gap);
}
.rail h2 {
  font: inherit;
  letter-spacing: inherit;
}
.rail__app {
  color: var(--muted);
  text-align: right;
}

.block {
  margin-top: 88px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 48px;
  align-items: end;
  padding: 36px 12px 40px;
}
.intro h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  color: var(--aubergine);
}
.intro p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 44ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--green {
  background: var(--pistachio);
  color: var(--aubergine);
}
a.btn--green:hover {
  background: var(--cream);
}
.btn--dark {
  background: var(--aubergine);
  color: var(--cream);
}
a.btn--dark:hover {
  background: var(--ink);
}
.btn--small {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 0.9375rem;
}
/* Not published yet: a label, not a control. */
.btn--soon {
  background: transparent;
  border-style: dashed;
  cursor: default;
}
.btn--soon.btn--green {
  border-color: var(--pistachio);
  color: var(--pistachio);
}
.btn--soon.btn--dark,
.top__cta.btn--soon {
  border-color: var(--aubergine);
  color: var(--aubergine);
}
.btn__icon {
  flex: none;
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  color: var(--aubergine);
}
.textlink--light {
  color: var(--pistachio);
}
.textlink:hover {
  text-decoration-style: dashed;
}

/* Header */
.top {
  padding-top: 20px;
  margin-bottom: var(--gap);
}
.top__bar {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  background: var(--butter);
  border-radius: 999px;
  padding: 10px 12px 10px 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  color: var(--aubergine);
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
}
.top__nav {
  margin-left: auto;
}
.top__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9688rem;
  color: var(--aubergine);
  text-decoration: none;
}
.top__nav a:hover,
.top__nav a[aria-current="page"] {
  background: var(--lilac);
}
.top__cta {
  flex: none;
}

/* Hero tray */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  gap: var(--gap);
}
.hero__main {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  padding: 64px 56px 56px;
  display: flex;
  flex-direction: column;
}
.hero__main h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 24px;
}
.hero__lead {
  margin-top: 28px;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--on-dark);
  max-width: 34em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: auto;
  padding-top: 44px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--on-dark);
}
.facts li + li::before {
  content: "·";
  margin: 0 10px;
  color: var(--pistachio);
}
.hero__soon,
.get__soon {
  margin-top: 18px;
  font-size: 0.9375rem;
  max-width: 46ch;
}
.hero__soon {
  color: var(--on-dark);
}
.hero__mark {
  grid-column: 8 / 10;
  display: grid;
  place-items: center;
  padding: 24px;
}
.hero__mark .mark {
  width: min(100%, 132px);
}
.hero__figs {
  grid-column: 10 / 13;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px 30px;
}
.hero__figs p {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.9688rem;
  font-weight: 600;
  color: var(--ink);
}
.hero__figs strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  letter-spacing: -0.03em;
  color: var(--aubergine);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__figs p + p {
  border-top: 2px dashed rgba(59, 30, 82, 0.35);
  padding-top: 14px;
}
.hero__ticket {
  grid-column: 8 / 13;
  margin: 0;
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--muted);
  padding-inline: 6px;
}
.ticket {
  width: 100%;
}
.ticket--cost {
  border-radius: 5.6% / 8.7%;
}
.ticket--price {
  border-radius: 5.6% / 12.5%;
}

/* The ticket mark, coloured per container */
.mark__tag {
  fill: var(--aubergine);
}
.mark__cut {
  fill: var(--pistachio);
}
.mark__line {
  stroke: var(--pistachio);
}
.box--dark .mark__tag {
  fill: var(--pistachio);
}
.box--dark .mark__cut {
  fill: var(--aubergine);
}
.box--dark .mark__line {
  stroke: var(--aubergine);
}

/* The sum */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}
.steps__item {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
  background: var(--butter);
  min-height: 190px;
}
.steps__op {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  min-height: 28px;
  color: var(--muted);
}
.steps__item strong {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.875rem, 3.3vw, 2.875rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--aubergine);
}
.steps__label {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9688rem;
  line-height: 1.3;
}
.steps__item--3 {
  background: var(--pistachio);
}
.steps__item--4 {
  background: var(--lilac);
}
.steps__item--5 {
  background: var(--aubergine);
  color: var(--cream);
}
.steps__item--5 strong {
  color: var(--cream);
}
.steps__item--5 .steps__op {
  color: var(--pistachio);
}

.pair {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.pair__ticket {
  grid-column: 1 / 11;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 28px 24px;
}
.pair__head {
  grid-column: 11 / 25;
}
.pair__head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
}
.pair__head p {
  margin-top: 14px;
  color: var(--on-dark);
  max-width: 56ch;
}
.pair__def {
  grid-column: 11 / 18;
  padding: 30px 32px;
}
.pair__def--b {
  grid-column: 18 / 25;
}
.pair__def h4 {
  font-size: 1.5rem;
  color: var(--aubergine);
}
.pair__def p {
  margin-top: 8px;
}
.formula {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--aubergine);
  font-variant-numeric: tabular-nums;
}
.pair__def .formula {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed rgba(59, 30, 82, 0.35);
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
}

/* Screens: the store posters' tray, two to a row */
.posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px var(--gap);
}
.poster {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: var(--gap);
}
.poster--flip {
  grid-template-columns: minmax(0, 1fr) 132px;
}
.poster__num {
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.25rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--aubergine);
}
.poster--flip .poster__num {
  grid-column: 2;
}
.poster--flip .poster__cap {
  grid-column: 1;
  grid-row: 1;
}
.poster__cap {
  padding: 32px 34px 34px;
}
.poster__cap h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.9375rem);
  margin-top: 12px;
}
.poster__cap p:last-child {
  margin-top: 14px;
  color: var(--on-dark);
  font-size: 1rem;
}
.poster__screen {
  grid-column: 1 / -1;
  padding: 36px 36px 0;
  overflow: hidden;
  aspect-ratio: 1 / 1.4;
}
.poster__screen img {
  width: 100%;
  border-radius: 28px 28px 0 0;
}

/* Also inside */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.bento__item {
  display: flex;
  flex-direction: column;
  padding: 34px 36px 36px;
}
.bento__item h3 {
  font-family: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.bento__item .formula {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
}
.bento__item p:last-child {
  margin-top: 16px;
  max-width: 58ch;
}
.bento__item--yield {
  grid-column: span 5;
  background: var(--lilac);
}
.bento__item--labour {
  grid-column: span 7;
  background: var(--butter);
}
.bento__item--scale {
  grid-column: span 7;
  background: var(--pistachio);
}
.bento__item--vat {
  grid-column: span 5;
  background: var(--apricot);
}
.bento__item--period {
  grid-column: span 4;
  background: var(--surface);
  border: 1.5px solid var(--line);
}
.bento__item--calc {
  grid-column: span 4;
  background: var(--butter);
}
.bento__item--export {
  grid-column: span 4;
  background: var(--aubergine);
  color: var(--cream);
}
.bento__item--export h3 {
  color: var(--pistachio);
}
.bento__item--export p:last-child {
  font-size: 1.125rem;
}

/* Who */
.who {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 44px 16px;
}
.who li {
  padding: 4px 32px;
}
.who li + li {
  border-left: 2px dashed rgba(59, 30, 82, 0.3);
}
.who h3 {
  font-size: 1.5rem;
  color: var(--aubergine);
}
.who p {
  margin-top: 10px;
  color: var(--muted);
}

/* Private */
.private {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
}
.private__main {
  grid-row: 1 / 3;
  padding: 56px;
}
.private__main h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.private__side h3 {
  font-size: 1.5rem;
  color: var(--aubergine);
}
.private__side p {
  margin-top: 10px;
}
.ticks {
  margin: 28px 0;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--pistachio);
  border-bottom: 3px solid var(--pistachio);
  transform: rotate(-45deg);
}
.ticks--dark li::before {
  border-color: var(--leaf);
}
.private__main .ticks {
  font-size: 1.125rem;
  color: var(--cream);
}

/* Questions */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
  align-items: start;
}
.faq__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 320px;
  align-self: stretch;
}
.faq__head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--aubergine);
}
.faq__head .mark {
  width: 120px;
}
.faq__list,
.help__topics {
  padding: 12px 36px;
}
details + details {
  border-top: 2px dashed var(--line);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
  color: var(--aubergine);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lilac);
  font-family: var(--text);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1;
}
details[open] > summary::after {
  content: "–";
  background: var(--pistachio);
}
details > p {
  padding: 0 56px 24px 0;
  max-width: 68ch;
}

/* Download */
.get {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--gap);
}
.get__main {
  padding: 64px 56px;
}
.get__main h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: var(--aubergine);
}
.get__main > p:first-of-type {
  margin: 16px 0 32px;
  font-size: 1.25rem;
}
.get__mark {
  display: grid;
  place-items: center;
}
.get__mark .mark {
  width: min(70%, 200px);
}

/* Footer */
.foot {
  margin-top: var(--gap);
  padding-bottom: 20px;
}
.foot__box {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 32px 40px;
  padding: 48px 56px 36px;
}
.foot__brand p {
  margin-top: 12px;
  color: var(--muted);
}
.foot__meta {
  font-size: 0.9375rem;
}
.foot__col h2 {
  font-family: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.foot__col li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  color: var(--aubergine);
  text-underline-offset: 4px;
}
.foot__col p {
  color: var(--muted);
}
.foot__mail {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--aubergine);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.foot__note {
  grid-column: 1 / -1;
  border-top: 2px dashed rgba(59, 30, 82, 0.3);
  padding-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Inner pages */
.doc {
  padding-bottom: 72px;
}
.doc h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.doc__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
}
.doc__title {
  padding: 56px;
  display: flex;
  flex-direction: column;
}
.doc__title p {
  margin-top: 20px;
  color: var(--on-dark);
  max-width: 52ch;
}
.doc__title .doc__date {
  margin-top: auto;
  padding-top: 28px;
  color: var(--pistachio);
  font-weight: 700;
}
.doc__short h2,
.help__side h2,
.help__write h2,
.help__topics > h2,
.doc__toc h2,
.log__body h2 {
  font-size: 1.5rem;
  color: var(--aubergine);
}
.doc__short .ticks {
  margin-bottom: 0;
}
.doc__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
  margin-top: var(--gap);
  align-items: start;
}
.doc__toc {
  position: sticky;
  top: 16px;
  padding: 32px 36px;
}
.doc__toc ol {
  margin-top: 12px;
  counter-reset: toc;
}
.doc__toc li {
  counter-increment: toc;
}
.doc__toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  font-weight: 600;
  color: var(--aubergine);
  text-decoration: none;
}
.doc__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}
.doc__toc a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.doc__text {
  padding: 16px 56px 40px;
}
.doc__text section {
  padding: 36px 0 4px;
  scroll-margin-top: 16px;
}
.doc__text section + section {
  border-top: 2px dashed var(--line);
  margin-top: 32px;
}
.doc__text h2 {
  font-size: 1.75rem;
  color: var(--aubergine);
}
.doc__text h2 span {
  display: block;
  font-family: var(--text);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.doc__text p,
.doc__text ul,
.doc__text table {
  margin-top: 16px;
  max-width: 70ch;
}
.doc__text ul {
  list-style: disc;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.doc__text li::marker {
  color: var(--leaf);
}
.doc__text a {
  font-weight: 700;
  color: var(--aubergine);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.doc__text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.doc__text th,
.doc__text td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1.5px solid var(--line);
}
.doc__text th {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc__text td:not(:first-child) {
  white-space: nowrap;
}

.help {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
  align-items: start;
}
.help__title {
  padding: 56px;
  align-self: stretch;
}
.help__title p {
  margin-top: 20px;
  color: var(--on-dark);
  font-size: 1.1875rem;
  max-width: 40ch;
}
.help__write {
  align-self: stretch;
}
.help__write p {
  margin-top: 10px;
}
.help__write .btn {
  margin-top: 24px;
}
.help__mail a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  color: var(--aubergine);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.help__topics {
  padding-top: 36px;
}
.help__topics > h2 {
  margin-bottom: 8px;
}
.help__side {
  display: grid;
  gap: var(--gap);
}
.help__side .ticks {
  margin: 16px 0 0;
}
.help__side p + p {
  margin-top: 12px;
}

.log {
  display: grid;
  gap: var(--gap);
}
.log__title {
  padding: 56px;
}
.log__title p {
  margin-top: 16px;
  color: var(--on-dark);
  font-size: 1.1875rem;
}
.log__entry {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--gap);
}
.log__ver {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.log__ver strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--aubergine);
}
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--aubergine);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.log__body .ticks {
  margin-bottom: 0;
}

.lost {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
}
.lost__num {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -0.04em;
  color: var(--aubergine);
}
.lost__text {
  padding: 64px 56px;
}
.lost__text p {
  margin: 16px 0 32px;
  color: var(--on-dark);
  font-size: 1.1875rem;
}

/* Tablet */
@media (max-width: 1060px) {
  :root {
    --pad: 32px;
    --r: 32px;
  }
  .top__bar {
    flex-wrap: wrap;
    border-radius: 32px;
    padding: 10px 12px;
  }
  .top__nav {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .top__cta {
    margin-left: auto;
  }
  .hero__main,
  .hero__ticket {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .hero__main {
    padding: 48px 40px;
  }
  .hero__mark {
    grid-column: span 4;
  }
  .hero__figs {
    grid-column: span 8;
    flex-direction: row;
    justify-content: flex-start;
    gap: 28px;
  }
  .hero__figs p {
    flex: 1;
  }
  .hero__figs p + p {
    border-top: 0;
    padding-top: 0;
    border-left: 2px dashed rgba(59, 30, 82, 0.35);
    padding-left: 28px;
  }
  .hero__ticket {
    align-items: center;
  }
  .hero__ticket .ticket {
    max-width: 620px;
  }
  .steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .steps__item {
    grid-column: span 2;
    min-height: 160px;
  }
  .steps__item--4,
  .steps__item--5 {
    grid-column: span 3;
  }
  .pair__ticket,
  .pair__head {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .pair__ticket {
    align-items: center;
  }
  .pair__ticket .ticket {
    max-width: 620px;
  }
  .pair__def,
  .pair__def--b {
    grid-column: span 12;
  }
  .poster,
  .poster--flip {
    grid-template-columns: minmax(0, 1fr);
    grid-row: span 3;
  }
  .poster__num,
  .poster--flip .poster__num {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 96px;
    height: 72px;
    padding: 0;
    font-size: 2.5rem;
    border-radius: 22px;
  }
  .poster--flip .poster__num {
    justify-self: end;
  }
  .poster__cap,
  .poster--flip .poster__cap {
    grid-column: 1;
    grid-row: 2;
    padding: 28px;
  }
  .poster__screen {
    grid-row: 3;
    padding: 24px 24px 0;
  }
  .bento__item--yield,
  .bento__item--labour,
  .bento__item--scale,
  .bento__item--vat,
  .bento__item--period,
  .bento__item--calc {
    grid-column: span 6;
  }
  .bento__item--export {
    grid-column: 1 / -1;
  }
  .faq,
  .doc__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq__head {
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }
  .faq__head .mark {
    width: 84px;
  }
  .doc__toc {
    position: static;
  }
  .foot__box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
}

/* Phone */
@media (max-width: 720px) {
  :root {
    --gap: 12px;
    --pad: 26px;
    --r: 28px;
  }
  body {
    font-size: 1rem;
  }
  .wrap {
    width: min(100% - 24px, 1240px);
  }
  .top {
    padding-top: 12px;
  }
  .top__bar {
    border-radius: 28px;
    gap: 6px 12px;
  }
  .brand {
    font-size: 1.0625rem;
    gap: 10px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .top__nav ul {
    justify-content: space-between;
  }
  .top__nav a {
    padding: 0 8px;
    font-size: 0.875rem;
  }
  .facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    width: 100%;
  }
  .facts li::before,
  .facts li + li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 10px 1px 0;
    border-radius: 50%;
    background: var(--pistachio);
  }
  .rail {
    min-height: 48px;
    padding: 8px 20px;
    font-size: 0.75rem;
  }
  .rail__app {
    display: none;
  }
  .block {
    margin-top: 56px;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 8px 28px;
  }
  .intro p {
    font-size: 1.0625rem;
  }
  .hero__main {
    padding: 36px 26px 30px;
  }
  .hero__main h1 {
    margin-top: 18px;
  }
  .hero__lead {
    font-size: 1.125rem;
    margin-top: 20px;
  }
  .hero__cta {
    padding-top: 32px;
  }
  .btn {
    padding-inline: 22px;
  }
  .hero__cta .btn,
  .get__main .btn {
    width: 100%;
  }
  .hero__mark {
    grid-column: span 4;
    padding: 16px;
  }
  .hero__figs {
    grid-column: span 8;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
  }
  .hero__figs p + p {
    border-left: 0;
    padding-left: 0;
    border-top: 2px dashed rgba(59, 30, 82, 0.35);
    padding-top: 12px;
  }
  .hero__ticket,
  .pair__ticket {
    padding: 16px 16px 18px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps__item,
  .steps__item--4,
  .steps__item--5 {
    grid-column: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 28px auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: 22px;
  }
  .steps__item strong {
    margin: 0;
    font-size: 1.875rem;
  }
  .steps__label {
    margin: 0;
    text-align: right;
  }
  .steps__op {
    min-height: 0;
  }
  .pair__def,
  .pair__def--b {
    grid-column: 1 / -1;
    padding: 26px;
  }
  .posters {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .poster,
  .poster--flip {
    grid-row: auto;
    grid-template-rows: none;
  }
  .poster__cap,
  .poster--flip .poster__cap {
    padding: 26px;
  }
  .poster__screen {
    padding: 18px 18px 0;
    aspect-ratio: 1 / 1.45;
  }
  .poster__screen img {
    border-radius: 20px 20px 0 0;
  }
  .bento__item,
  .bento__item--yield,
  .bento__item--labour,
  .bento__item--scale,
  .bento__item--vat,
  .bento__item--period,
  .bento__item--calc,
  .bento__item--export {
    grid-column: 1 / -1;
    padding: 26px;
  }
  .who {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 26px;
  }
  .who li {
    padding: 22px 0;
  }
  .who li + li {
    border-left: 0;
    border-top: 2px dashed rgba(59, 30, 82, 0.3);
  }
  .private,
  .get,
  .doc__head,
  .help,
  .lost,
  .log__entry {
    grid-template-columns: minmax(0, 1fr);
  }
  .private__main,
  .get__main,
  .doc__title,
  .help__title,
  .log__title,
  .lost__text {
    grid-row: auto;
    padding: 36px 26px;
  }
  .private__main .ticks {
    font-size: 1.0625rem;
  }
  .faq__list,
  .help__topics {
    padding: 6px 22px;
  }
  .help__topics {
    padding-top: 26px;
  }
  summary {
    font-size: 1.0625rem;
  }
  details > p {
    padding-right: 0;
  }
  .get__mark {
    padding: 28px;
  }
  .get__mark .mark {
    width: 96px;
  }
  .lost__num {
    padding: 28px;
  }
  .foot__box {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 26px 26px;
    gap: 24px;
  }
  .doc {
    padding-bottom: 40px;
  }
  .doc__toc {
    padding: 26px;
  }
  .doc__text {
    padding: 4px 24px 28px;
  }
  .doc__text section {
    padding-top: 28px;
  }
  .doc__text section + section {
    margin-top: 24px;
  }
  .doc__text h2 {
    font-size: 1.5rem;
  }
  /* The data table becomes one block per row. */
  .doc__text thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .doc__text tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1.5px solid var(--line);
  }
  .doc__text td {
    display: block;
    border: 0;
    padding: 2px 0;
    white-space: normal !important;
  }
  .doc__text td:not(:first-child)::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media print {
  .top__nav,
  .top__cta,
  .doc__toc {
    display: none;
  }
}
