/* Aven — the homepage and the race pages (§29.2, §29.11).
   Built to the Paper boards in `§29 · Website`: board 08 (homepage 3A) and boards 42–45 (race
   pages), desktop drawn at 1440 and phone at 393. The tokens are the boards' own, which are the
   app's (DS v0.24): flat #000 ground, #1C1C1E cards, #FFFFFF29 hairlines, the text alphas, the
   on-photo alphas, the white pill. The legal pages keep `styles.css`; nothing here touches them.

   Two layouts, as drawn: the desktop board from 1024 px up and the phone board below it. Between
   the drawn widths the layout is fluid — the content column is min(1120 px, the window less
   40 px a side) on desktop and min(560 px, the window less 20 px a side) on a phone or tablet —
   and the picture-and-phone composites scale as one piece (container units), so their
   proportions are the board's at every width.

   Not drawn on the boards, and so the smallest thing that works: hover (the DS row tint
   #FFFFFF0D on menu rows, full white on text links), keyboard focus (the accent ring the legal
   pages use), and the skip link. */

:root {
  --bg: #000000;
  --text: #FFFFFF;
  --text-secondary: #EBEBF5A6;
  --text-tertiary: #EBEBF58C;
  --text-muted: #EBEBF566;
  --hairline: #FFFFFF29;
  --glass-card: #1C1C1E;
  --glass-on-photo: #FFFFFF2E;
  --row: #FFFFFF0D;
  --on-light: #06120B;
  --on-photo: #FFFFFF;
  --on-photo-secondary: #FFFFFFC7;
  --on-photo-tertiary: #FFFFFFB3;
  --accent: #3D9665;
  --pill: 999px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tight: -0.022em;
  --label: 0.06em;
  --gutter: 20px;
  --column: 560px;
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; --column: 1120px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .social:focus-visible, .menu-button:focus-visible, .menu-close:focus-visible { border-radius: var(--pill); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 10; padding: 8px 16px; border-radius: var(--pill); background: #fff; color: var(--on-light); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Desktop-only and phone-only pieces: the boards draw some lines differently per layout. */
@media (max-width: 1023.98px) { .d { display: none !important; } }
@media (min-width: 1024px) { .p { display: none !important; } }
/* Race week keeps the phone board's list until 1200 px: below that the desktop board's six
   cards are too narrow for their labels ("Carbohydrates" would break mid-word at 1024). */
@media (max-width: 1199.98px) { .wd { display: none !important; } }
@media (min-width: 1200px) { .wp { display: none !important; } }

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

/* Buttons: the white pill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--on-light); border-radius: var(--pill);
  font-family: var(--font-text); font-weight: 600; letter-spacing: var(--tight); white-space: nowrap;
}
.btn:hover { background: #FFFFFFE6; }
/* Download buttons before release (20 Dec): drawn, not linked. */
.btn:not([href]) { cursor: default; }
.btn:not([href]):hover { background: #fff; }
.btn--small { height: 36px; padding-inline: 16px; font-size: 15px; line-height: 20px; }
.btn--large { height: 52px; padding-inline: 28px; font-size: 17px; line-height: 22px; }
.btn--block { display: flex; width: 100%; height: 52px; font-size: 17px; line-height: 22px; }
.btn--card { display: flex; width: 100%; height: 44px; font-size: 15px; line-height: 20px; letter-spacing: 0; }

/* ------------------------------------------------------------------ Hero and masthead */

.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--hairline); }
.hero-media { position: absolute; inset: 0 0 auto 0; height: 540px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { display: block; height: 100%; }
.fade { position: absolute; inset-inline: 0; pointer-events: none; }
.fade-left { display: none; }
.fade-top { top: 0; height: 120px; background: linear-gradient(180deg, #000000B3 0%, #00000000 100%); }
.fade-bottom { bottom: 0; height: 240px; background: linear-gradient(180deg, #00000000 0%, #000000 92%); }

.masthead { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.wordmark img { width: 117px; height: 22px; }
.masthead-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { width: 36px; height: 36px; border-radius: var(--pill); background: var(--glass-on-photo); display: inline-flex; align-items: center; justify-content: center; color: #fff; }

.hero-body { position: relative; z-index: 1; display: flex; flex-direction: column; padding-bottom: 40px; }
.hero-head { min-height: calc(540px - 68px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-kicker { color: var(--on-photo-secondary); font-size: 11px; line-height: 26px; font-weight: 600; letter-spacing: var(--label); text-transform: uppercase; }
.hero h1 { color: var(--on-photo); font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: var(--tight); }
.hero-eyebrow { font-size: 20px; line-height: 28px; font-weight: 600; }
.hero-standfirst { margin-top: 16px; color: var(--text-secondary); font-size: 17px; line-height: 26px; }
.hero-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.hero-cta .btn { width: 100%; }
.hero-note { color: var(--text-tertiary); font-size: 13px; line-height: 18px; text-align: center; }

@media (min-width: 1024px) {
  .hero { border-bottom: 0; display: flex; flex-direction: column; min-height: 760px; }
  .hero--home { min-height: 800px; }
  .hero-media { inset: 0; height: auto; }
  .masthead { padding-block: 24px; }
  .masthead-actions { gap: 32px; }
  .hero-body { margin-top: auto; padding-bottom: 120px; }
  .hero--home .hero-body { padding-bottom: 96px; }
  .hero-head { min-height: 0; }
  .hero h1 { font-size: 80px; line-height: 84px; }
  .hero-eyebrow { font-size: 34px; line-height: 44px; }
  .hero-standfirst { margin-top: 20px; max-width: 520px; color: var(--on-photo-secondary); font-family: var(--font-display); font-size: 22px; line-height: 30px; letter-spacing: var(--tight); }
  .hero-cta { margin-top: 32px; align-items: flex-start; }
  .hero-cta .btn { width: auto; }
  .hero-note { color: var(--on-photo-tertiary); text-align: left; }

  /* Race pages: the photograph fills the hero, dimmed from the left, top and bottom. */
  .hero--race .fade-left { display: block; top: 0; bottom: 0; right: auto; width: 76.389%; background: linear-gradient(90deg, #000000D9 0%, #00000099 45%, #00000000 100%); }
  .hero--race .fade-top { height: 160px; background: linear-gradient(180deg, #00000099 0%, #00000000 100%); }
  .hero--race .fade-bottom { height: 360px; background: linear-gradient(180deg, #00000000 0%, #000000 100%); }

  /* Homepage: the photograph stands at the right, 800 px wide at 1440 and wider beyond. */
  .hero--home .hero-media { left: auto; width: max(800px, 55.556%); }
  .hero--home .fade-left { display: block; top: 0; bottom: 0; right: auto; width: 400px; background: linear-gradient(90deg, #000000 0%, #00000000 100%); }
  .hero--home .fade-top { height: 180px; background: linear-gradient(180deg, #000000B3 0%, #00000000 100%); }
  .hero--home .fade-bottom { height: 180px; background: linear-gradient(180deg, #00000000 0%, #000000 100%); }
}
@supports (background: linear-gradient(in oklab, red, blue)) {
  .fade-top { background: linear-gradient(in oklab 180deg, #000000B3 0%, #00000000 100%); }
  .fade-bottom { background: linear-gradient(in oklab 180deg, #00000000 0%, #000000 92%); }
  @media (min-width: 1024px) {
    .hero--race .fade-left { background: linear-gradient(in oklab 90deg, #000000D9 0%, #00000099 45%, #00000000 100%); }
    .hero--race .fade-top { background: linear-gradient(in oklab 180deg, #00000099 0%, #00000000 100%); }
    .hero--race .fade-bottom, .hero--home .fade-bottom { background: linear-gradient(in oklab 180deg, #00000000 0%, #000000 100%); }
    .hero--home .fade-left { background: linear-gradient(in oklab 90deg, #000000 0%, #00000000 100%); }
    .hero--home .fade-top { background: linear-gradient(in oklab 180deg, #000000B3 0%, #00000000 100%); }
  }
}

/* Desktop navigation */
.nav { display: flex; align-items: center; gap: 32px; color: var(--on-photo); font-size: 15px; line-height: 20px; }
.nav > a:hover, .plans summary:hover { color: var(--on-photo-secondary); }
.plans { position: relative; }
.plans summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.plans summary::-webkit-details-marker { display: none; }
.plans[open] .chevron { transform: rotate(180deg); }
.plans-panel {
  position: absolute; top: calc(100% + 20px); left: -24px; z-index: 5; width: 320px; padding: 8px;
  background: #000; border: 1px solid var(--hairline); border-radius: 16px; box-shadow: #00000080 0 16px 40px;
}
.plans-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 10px; }
.plans-row:hover { background: var(--row); }
.plans-name { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; line-height: 20px; }
.plans-date { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.plans-row[aria-current] { background: var(--glass-card); }
.plans-row[aria-current] .plans-name { font-weight: 600; }

.check { display: none; flex-shrink: 0; }
[aria-current] > .check, [aria-current] > span > .check { display: inline-block; }

/* Phone menu: full screen, over everything. */
.menu {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: var(--text); flex-direction: column; overflow-y: auto;
}
.menu[open] { display: flex; }
.menu::backdrop { background: #000; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.menu-close { width: 36px; height: 36px; border-radius: var(--pill); background: var(--glass-card); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.menu-list { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 20px; }
.menu-top {
  display: flex; align-items: center; gap: 8px; min-height: 56px; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: var(--tight);
}
.menu-list > .menu-top:last-child { border-bottom: 0; }
.menu-plans { padding: 14px 0 8px; border-bottom: 1px solid var(--hairline); }
.menu-title { padding-bottom: 6px; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: var(--tight); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.menu-name { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 17px; line-height: 22px; }
.menu-date { color: var(--text-tertiary); font-size: 13px; line-height: 18px; }
.menu-row[aria-current] .menu-name { color: var(--text); font-weight: 600; }
.menu-foot { padding: 20px 20px 32px; }

/* ------------------------------------------------------------------ Picture-and-phone composites */

.visual { position: relative; container-type: inline-size; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 353 / 460; }
.visual-photo img { position: absolute; top: 0; left: 0; width: 82.153%; height: 100%; object-fit: cover; border-radius: 5.666cqw; }
.visual--right .visual-photo img { left: auto; right: 0; }
.visual-phone {
  position: absolute; left: 48.442%; top: 9.565%; width: 50.992%; height: 84.783%; padding: 1.133cqw;
  background: #000; border-radius: 9.065cqw; box-shadow: #3A3A3C 0 0 0 1.5px, #00000099 0 16px 40px;
}
.visual--right .visual-phone { left: 0.567%; }
.visual-screen, .visual-screen img { display: block; width: 100%; height: 100%; }
.visual-screen img { object-fit: cover; object-position: 50% 0; border-radius: 7.932cqw; }

@media (min-width: 1024px) {
  .visual { max-width: none; aspect-ratio: 580 / 680; }
  .visual-photo img { width: 75.862%; border-radius: 4.138cqw; }
  .visual-phone { left: 51.724%; top: 10.588%; width: 46.552%; height: 85.882%; padding: 0.862cqw; border-radius: 7.586cqw; box-shadow: #3A3A3C 0 0 0 1.5px, #00000099 0 24px 60px; }
  .visual--right .visual-phone { left: 1.724%; }
  .visual-screen img { border-radius: 6.724cqw; }
}

/* ------------------------------------------------------------------ Race-page sections */

.feature { display: flex; flex-direction: column; gap: 24px; padding-top: 56px; }
.feature-head { display: flex; flex-direction: column; gap: 12px; min-height: 94px; }
.feature-head h2, .week-head h2, .races-head h2 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: var(--tight); }
.feature-head p, .week-head p, .races-head p { color: var(--text-secondary); font-size: 17px; line-height: 26px; }
.rows .row { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 88px; padding-block: 12px; border-top: 1px solid var(--hairline); }
.rows dt { color: var(--text-tertiary); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: var(--label); text-transform: uppercase; }
.rows dd { color: var(--text); font-size: 15px; line-height: 22px; }
/* In one column the rows follow the picture, so the first row carries no line above it, and the note closes the
   list with a line below it: the next section's heading then starts under a line, not under more grey text. */
.rows .row:first-child { border-top: 0; }
.feature-note { padding-block: 16px; border-block: 1px solid var(--hairline); color: var(--text-tertiary); font-size: 13px; line-height: 18px; }

@media (min-width: 1024px) {
  .feature {
    display: grid; gap: 0 60px; padding-top: 120px; align-items: start;
    grid-template-columns: minmax(0, 580fr) minmax(0, 480fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "visual ." "visual head" "visual rows" "visual .";
  }
  .feature--flip { grid-template-columns: minmax(0, 480fr) minmax(0, 580fr); grid-template-areas: ". visual" "head visual" "rows visual" ". visual"; }
  .feature > .visual { grid-area: visual; }
  .feature > .feature-head { grid-area: head; gap: 16px; min-height: 0; margin-bottom: 48px; }
  .feature > .rows, .feature > .feature-rows { grid-area: rows; }
  .feature-head h2, .week-head h2, .races-head h2 { font-size: 48px; line-height: 52px; }
  .feature-head p, .week-head p, .races-head p { line-height: 28px; }
  .rows .row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 0; min-height: 64px; padding-block: 10px; }
  .rows .row:first-child { border-top: 1px solid var(--hairline); }
  .rows dt { flex: 0 0 130px; }
  .rows dd { flex: 1; }
  .feature-note { padding-bottom: 0; border-bottom: 0; }
}

/* Race week */
.week { display: flex; flex-direction: column; gap: 24px; padding-top: 56px; }
.week-head { display: flex; flex-direction: column; gap: 12px; }
.week-note { color: var(--text-tertiary); font-size: 13px; line-height: 18px; }
.week-rows { display: flex; flex-direction: column; }
.week-row { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-top: 1px solid var(--hairline); }
.week-date { flex: 0 0 64px; color: var(--text-tertiary); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: var(--label); text-transform: uppercase; }
.week-title { flex: 1; font-size: 17px; line-height: 22px; font-weight: 600; }
/* The grams with what they are grams of under them, in every row: the phone has no card to carry the label. */
.week-carbs { flex: 0 0 92px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.week-carbs-value { font-size: 15px; line-height: 22px; }
.week-carbs--low .week-carbs-value { color: var(--text-secondary); }
.week-carbs--high .week-carbs-value { color: var(--text); font-weight: 600; }
.week-carbs-label { color: var(--text-tertiary); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: var(--label); text-transform: uppercase; }
.race-card { display: flex; flex-direction: column; gap: 20px; padding: 20px; border-radius: 16px; background: #fff; color: var(--on-light); }
.race-card-top { display: flex; flex-direction: column; gap: 6px; }
.race-card-date, .race-card-label { color: #00000080; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: var(--label); text-transform: uppercase; }
.race-card-title { font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: var(--tight); }
.race-card-line { color: #00000099; font-size: 15px; line-height: 22px; }
.race-card-kcal { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: var(--tight); }

@media (min-width: 1024px) {
  .week { gap: 40px; padding-top: 96px; }
  .week-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .week-head p { flex: 0 1 480px; }
  .week-rows, .race-card { max-width: 640px; }
  .days { display: flex; gap: 12px; }
  .day {
    flex: 1 1 0; min-width: 0; min-height: 264px; padding: 20px; border-radius: 20px;
    background: var(--glass-card); border: 1px solid var(--hairline);
    display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  }
  .day-top { display: flex; flex-direction: column; gap: 8px; }
  .day-bottom { display: flex; flex-direction: column; gap: 2px; }
  .day-date, .day-label { color: var(--text-tertiary); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: var(--label); text-transform: uppercase; }
  /* The board's "Strength, light" runs 4 px into the card's right padding at 1440; allowing
     8 px keeps it on one line there, as drawn, and it still wraps on narrower windows. */
  .day-title { margin-inline-end: -8px; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: var(--tight); }
  .day-sub { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
  .day-carbs { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: var(--tight); }
  .day-carbs--low { color: var(--text-tertiary); }
  .day--race { flex-grow: 1.7; background: #fff; border-color: #fff; color: var(--on-light); }
  .day--race .day-date, .day--race .day-label { color: #06120B99; }
  .day--race .day-title { font-size: 28px; line-height: 32px; font-weight: 700; }
  .day--race .day-sub { color: #06120BB3; }
  .day--race .day-carbs { color: var(--on-light); }
}

/* Race cards: "Other races" on a race page, "Plans for this spring's races" on the homepage. */
.races { display: flex; flex-direction: column; gap: 24px; padding-block: 48px; }
.races--other { border-bottom: 1px solid var(--hairline); }
.races-head { display: flex; flex-direction: column; gap: 12px; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.card { display: flex; flex-direction: column; gap: 20px; padding: 20px; border-radius: 16px; background: var(--glass-card); border: 1px solid var(--hairline); }
.card-top { display: flex; flex-direction: column; gap: 6px; }
.card-kicker { color: var(--text-tertiary); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: var(--label); text-transform: uppercase; }
.card-title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: var(--tight); }
.card-sub { color: var(--text-secondary); font-size: 15px; line-height: 20px; }
.card-meta { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.races-note { color: var(--text-tertiary); font-size: 13px; line-height: 18px; }

@media (min-width: 1024px) {
  .races { gap: 40px; padding-block: 120px 0; }
  .races--other { border-bottom: 0; }
  .races-head { max-width: 640px; gap: 12px; }
  .cards { flex-direction: row; gap: 16px; }
  .card { flex: 1 1 0; min-width: 0; padding: 24px; gap: 56px; justify-content: space-between; }
  .card-top { gap: 8px; }
  .card-title { font-size: 28px; line-height: 32px; }
  .card-bottom { display: flex; flex-direction: column; gap: 16px; }
}

/* ------------------------------------------------------------------ Homepage rows */

.home-row { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; }
.home-row--flip { padding-bottom: 56px; border-bottom: 1px solid var(--hairline); }
.home-row + .races { padding-top: 48px; }
.races--home { border-bottom: 1px solid var(--hairline); }
.point { display: flex; flex-direction: column; gap: 8px; }
.point:first-child { padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.point + .point { padding-top: 24px; }
.point h2 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: var(--tight); }
.point p { color: var(--text-secondary); font-size: 17px; line-height: 26px; }

@media (min-width: 1024px) {
  .home-row {
    display: grid; gap: 0 100px; align-items: center; padding-top: 120px;
    grid-template-columns: minmax(0, 580fr) minmax(0, 440fr); grid-template-areas: "visual points";
  }
  .home-row--flip { grid-template-columns: minmax(0, 440fr) minmax(0, 580fr); grid-template-areas: "points visual"; padding-bottom: 0; border-bottom: 0; }
  .home-row > .visual { grid-area: visual; }
  .home-row > .points { grid-area: points; }
  .home-row + .races { padding-top: 120px; }
  .races--home { border-bottom: 0; }
  .point { gap: 12px; }
  .point:first-child { padding-bottom: 40px; }
  .point + .point { padding-top: 40px; }
  .point h2 { font-size: 34px; line-height: 41px; }
  .point p { line-height: 28px; }
}

/* ------------------------------------------------------------------ Price */

.price { padding-block: 48px; border-bottom: 1px solid var(--hairline); }
.price-card { display: flex; flex-direction: column; gap: 20px; padding: 32px 24px; border-radius: 20px; background: var(--glass-card); }
.price-text { display: flex; flex-direction: column; gap: 8px; }
.price h2 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: var(--tight); }
.price-line { color: var(--text-secondary); font-size: 15px; line-height: 20px; }
.price .btn { width: 100%; }

@media (min-width: 1024px) {
  .price { padding-block: 96px 0; border-bottom: 0; }
  .price-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 40px; }
  .price-text { max-width: 640px; }
  .price h2 { font-size: 34px; line-height: 41px; }
  .price-line { font-size: 17px; line-height: 28px; }
  .price .btn { width: auto; flex-shrink: 0; }
}

/* ------------------------------------------------------------------ Footer */

.footer { display: flex; flex-direction: column; gap: 32px; padding: 32px 0 48px; }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-size: 15px; line-height: 20px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 18px; }
.footer-col a { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.footer-col a:hover { color: var(--text); }
.countries a { display: inline-flex; align-items: center; gap: 8px; }
.countries a[aria-current] { color: var(--text); font-weight: 600; }
/* Three by three, as the phone board draws it, at every phone and tablet width. */
.footer-col ul.socials { display: grid; grid-template-columns: repeat(3, 44px); gap: 12px; padding-top: 4px; }
.social { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); border-radius: var(--pill); color: #fff !important; }
.social:hover { background: var(--row); }
.footer-legal { display: flex; flex-direction: column; gap: 32px; color: var(--text-tertiary); font-size: 13px; line-height: 18px; }
.footer-legal a { color: inherit; }

@media (min-width: 1024px) {
  .footer { padding: 96px 0 40px; gap: 0; }
  .footer-title { padding-bottom: 4px; }
  /* Three equal columns and the icons' own width: 280 px each at 1440, as drawn, and the six
     icons stay on one row down to 1024. */
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)) max-content; gap: 0; padding-top: 48px; border-top: 1px solid var(--hairline); }
  .footer-col ul { line-height: 19px; }
  .footer-col ul.socials { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; padding-top: 0; }
  .social { width: 40px; height: 40px; }
  .footer-legal { flex-direction: row; justify-content: space-between; gap: 48px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--text-muted); line-height: 19px; }
  .footer-legal p:first-child { max-width: 760px; }
}
