/* Tracker Turtle. The palette, the sunrise and the mountain come from the app
   icon and the App Store screenshots; the green field is the app's own
   on-track colour. */

:root {
  --sky: linear-gradient(180deg, #FFAE7A 0%, #FFD9BA 38%, #FFEEDF 70%);
  --sky-top: #FFAE7A;
  --paper: #FFF7F0;
  --card: #FFFFFF;
  --line: rgba(12, 48, 44, .12);
  --ink: #0C302C;
  --sub: #2C524C;
  --accent: #C23C0C;
  --accent-fill: #C23C0C;
  --mtn-top: #21645C;
  --mtn: #0C302C;
  --ridge: rgba(74, 140, 128, .5);
  --on-mtn: #FFF4EA;
  --on-mtn-sub: #BFE9D6;
  --field: #0A8049;
  --field-deep: #077140;
  --plate: #4CD08A;
  --flag: #E8300F;
  --wash: #F3E7DC;
  --sun: #FF7A3D;

  --display: ui-rounded, "SF Pro Rounded", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --wrap: 1220px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 28px;
  --shadow: 0 30px 70px -20px rgba(8, 30, 27, .35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: linear-gradient(180deg, #0E3A35 0%, #0A2724 100%);
    --sky-top: #0E3A35;
    --paper: #0A2724;
    --card: #103B35;
    --line: rgba(191, 233, 214, .16);
    --ink: #FFF4EA;
    --sub: #BFE9D6;
    --accent: #FF8A52;
    --mtn-top: #1B5149;
    --mtn: #061A18;
    --ridge: rgba(127, 224, 176, .14);
    --wash: #0E322D;
    --sun: rgba(255, 244, 234, .85);
    --shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.1vw, 3.5rem); line-height: 1.03; font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.06; font-weight: 800; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 800; letter-spacing: -.012em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 16px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--sub); font-weight: 500; }
.fine { font-size: .92rem; color: var(--sub); }
.eyebrow { font: 700 .76rem/1 var(--body); letter-spacing: .09em; text-transform: uppercase; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font: 800 1.06rem/1 var(--display); letter-spacing: -.005em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent-fill); color: #fff; box-shadow: 0 14px 30px -12px rgba(160, 44, 4, .75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(160, 44, 4, .8); }
.btn-light { background: #FFF4EA; color: #0C302C; }
.btn-light:hover { transform: translateY(-2px); }
.btn-small { padding: 11px 18px; font-size: .95rem; }

/* Top bar: the three pages as a segmented control, the way the app switches
   between Front, Side and Back. */

.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -.02em; }
.brand img { flex: none; width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 6px 14px -6px rgba(8, 30, 27, .5); }
.tabs { display: flex; padding: 4px; margin: 0; list-style: none; border-radius: 999px; background: rgba(12, 48, 44, .1); }
.tabs a { display: block; padding: 9px 18px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .96rem; line-height: 1.2; text-decoration: none; }
.tabs a:hover { background: rgba(255, 255, 255, .35); }
.tabs a[aria-current="page"] { background: var(--card); box-shadow: 0 2px 8px rgba(8, 30, 27, .16); }
@media (prefers-color-scheme: dark) {
  .tabs { background: rgba(191, 233, 214, .12); }
  .tabs a:hover { background: rgba(191, 233, 214, .1); }
}
.nav .btn { margin-left: 4px; }
@media (max-width: 760px) {
  .nav .btn { display: none; }
  .tabs a { padding: 8px 13px; font-size: .92rem; }
}
@media (max-width: 430px) {
  .brand span { display: none; }
}

/* Hero */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky); }
.hero-head { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 410px); align-items: end; gap: clamp(24px, 4vw, 64px); padding-top: clamp(12px, 2.2vw, 30px); }
.hero-pitch .lead { font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.hero-actions .fine { flex: 1 1 11em; line-height: 1.35; }
.stages { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 40px; padding-top: clamp(28px, 3.2vw, 44px); padding-bottom: 250px; }
.stage-label { margin-bottom: 14px; font-size: .95rem; color: var(--sub); }
.stage-label b { margin-right: 8px; color: var(--ink); font: 800 1.04rem/1.3 var(--display); letter-spacing: -.01em; }

.scene { position: absolute; z-index: 1; inset: auto 0 0 0; width: 100%; height: 540px; pointer-events: none; }
.scene .mtn-far { fill: var(--ridge); }
.scene .sun { fill: var(--sun); }
.scene .tile { fill: var(--plate); }
.scene .tile-next { fill: none; stroke: #7FE0B0; stroke-width: 4; stroke-dasharray: 9 7; stroke-linejoin: round; }
.scene .tile-later { fill: rgba(127, 224, 176, .2); }
.scene .tick { fill: none; stroke: #fff; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }

/* The turtle and the tiles under it sit at one point on the slope. */
.scene { --cx: 300; }
.climber, .trail { transform: translate(calc(var(--cx) * 1px), calc((480 - .2224 * (var(--cx) + 40)) * 1px)) rotate(-12.54deg); }
.climber { transform: translate(calc(var(--cx) * 1px), calc((480 - .2224 * (var(--cx) + 40)) * 1px)) rotate(-12.54deg) scale(1.55) translate(-50px, -56.5px); }

@media (min-width: 1160px) and (max-width: 1339px) {
  .demo { zoom: .88; }
}
@media (max-width: 1159px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-pitch { max-width: 34em; }
  .stages { justify-content: center; align-items: flex-start; gap: clamp(20px, 4vw, 48px); }
  .stage { flex: 1 1 0; min-width: 0; max-width: 360px; }
  .scene { height: 430px; --cx: 585; }
}

/* The turtle. Legs step in two pairs. */

.turtle .leg { transform-box: fill-box; }
.walking .leg-a { animation: step .62s ease-in-out infinite alternate; }
.walking .leg-b { animation: step .62s ease-in-out infinite alternate-reverse; }
@keyframes step { from { transform: translateY(0); } to { transform: translateY(-3px); } }

/* The demos: a phone holding a photo, and what the app makes of it beside it. */

.demo { position: relative; width: 566px; height: 584px; }
.phone { position: absolute; left: 0; top: 0; width: 252px; height: 524px; padding: 9px; border-radius: 44px; background: #0B0B0C; box-shadow: 0 50px 90px -30px rgba(8, 30, 27, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.phone-screen { display: grid; grid-template-rows: 46px 1fr 98px; height: 100%; border-radius: 35px; background: #000; }
.phone-top { display: grid; place-items: center; }
.phone-top i { width: 74px; height: 22px; border-radius: 999px; background: #17171A; }
.shot { position: relative; }
.shot-clip { position: absolute; inset: 0; overflow: hidden; }
.shot-clip img { width: 100%; height: 100%; object-fit: cover; }
.corners { position: absolute; inset: 16px; }
.corners::before, .corners::after { content: ""; position: absolute; inset: 0; border: 3px solid rgba(255, 255, 255, .92); border-radius: 14px; }
.corners::before { clip-path: polygon(0 0, 26px 0, 26px 26px, 0 26px, 0 calc(100% - 26px), 26px calc(100% - 26px), 26px 100%, 0 100%); }
.corners::after { clip-path: polygon(100% 0, calc(100% - 26px) 0, calc(100% - 26px) 26px, 100% 26px, 100% calc(100% - 26px), calc(100% - 26px) calc(100% - 26px), calc(100% - 26px) 100%, 100% 100%); }
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(180deg, rgba(76, 208, 138, 0), rgba(76, 208, 138, .5)); border-bottom: 2px solid #B9FBD6; opacity: 0; transform: translateY(-110%); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.phone-bottom { display: grid; place-items: center; }
.shutter { width: 62px; height: 62px; padding: 0; border: 4px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.shutter::before { content: ""; display: block; width: 46px; height: 46px; margin: auto; border-radius: 50%; background: #fff; transition: transform .12s ease; }
.shutter:hover::before { transform: scale(.92); }
.shutter:active::before { transform: scale(.82); }

.tags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.tag { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.tag::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .4); }
.tag-pill { position: absolute; bottom: 12px; display: grid; gap: 1px; padding: 7px 11px 8px; border-radius: 14px; background: #fff; color: #0C302C; white-space: nowrap; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .55); transition: opacity .25s ease; }
.tag-l .tag-pill { right: -14px; border-bottom-right-radius: 4px; }
.tag-r .tag-pill { left: -14px; border-bottom-left-radius: 4px; }
.tag-name { font: 600 .72rem/1.15 var(--body); }
.tag-kcal { font: 800 .98rem/1 var(--display); font-variant-numeric: tabular-nums; }
.tag-kcal small { font: 600 .68rem/1 var(--body); opacity: .6; }
.tag.is-out .tag-pill { opacity: .5; }
.tag.is-out .tag-name { text-decoration: line-through; }

.result { position: absolute; left: 266px; top: 52px; width: 300px; padding: 18px 18px 16px; border-radius: var(--radius); background: #fff; color: #0C302C; box-shadow: var(--shadow); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #E3F5EB; color: #0A6B3D; font: 700 .72rem/1 var(--body); }
.replay { padding: 6px 2px; border: 0; background: none; color: #C23C0C; font: 700 .8rem/1 var(--body); cursor: pointer; }
.replay:hover { text-decoration: underline; }
.result-name { margin-top: 14px; font: 800 1.12rem/1.2 var(--display); letter-spacing: -.01em; }
.result-total { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font-family: var(--display); }
.result-total b { font-size: 3.3rem; line-height: 1; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.result-total span { font-size: 1.05rem; font-weight: 700; color: #5C7A75; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.macros div { padding: 9px 10px 10px; border-radius: 14px; background: #F2F2F7; }
.macros dt { font: 600 .7rem/1 var(--body); color: #5C7A75; }
.macros dd { margin: 5px 0 0; font: 800 1.12rem/1 var(--display); font-variant-numeric: tabular-nums; }
.macros dd small { font: 600 .72rem/1 var(--body); color: #5C7A75; }
.result-label { margin-top: 16px; color: #5C7A75; }
.items { margin: 6px 0 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(12, 48, 44, .1); transition: opacity .2s ease; }
.item-toggle { position: relative; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #E5484D; cursor: pointer; }
.item-toggle::before, .item-toggle::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2.5px; border-radius: 2px; background: #fff; }
.item-toggle::after { transform: scaleX(0) rotate(90deg); transition: transform .15s ease; }
.item.is-out .item-toggle { background: #0A8049; }
.item.is-out .item-toggle::after { transform: rotate(90deg); }
.item-what { display: grid; gap: 1px; min-width: 0; }
.item-name { font: 600 .93rem/1.25 var(--body); }
.item-qty { font-size: .76rem; line-height: 1.25; color: #5C7A75; }
.item-kcal { font: 800 .98rem/1 var(--display); font-variant-numeric: tabular-nums; }
.item-kcal small { font: 600 .7rem/1 var(--body); color: #5C7A75; }
.item.is-out .item-what, .item.is-out .item-kcal { opacity: .4; }
.item.is-out .item-name { text-decoration: line-through; }
.item-pick { justify-self: start; max-width: 100%; padding: 0 20px 0 0; border: 0; border-radius: 6px; appearance: none; -webkit-appearance: none; cursor: pointer; color: #C23C0C; font: 700 .93rem/1.25 var(--body);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 1.8 9 4.5M3 7.5 6 10.2 9 7.5' fill='none' stroke='%23C23C0C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 12px no-repeat; }
.result-note { margin-top: 4px; padding-top: 11px; border-top: 1px solid rgba(12, 48, 44, .1); font-size: .78rem; line-height: 1.4; color: #5C7A75; }

@media (max-width: 1159px) {
  .demo { width: 100%; height: auto; padding-top: 6px; }
  .phone { position: relative; margin-inline: auto; }
  .result { position: relative; left: auto; top: auto; width: 100%; margin-top: -20px; }
}

/* Narrower than two cards: the two phones stay side by side, each under its
   name and drawn smaller. One card shows beneath them, for the phone that
   was last touched, with a notch pointing up at it; two cards one under the
   other could not say which phone each belonged to. The stage and the demo
   give up their boxes so the phones and the card can be placed on one grid.
   Without script nothing is picked and both cards show. */
@media (max-width: 699px) {
  .stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .stage, .demo { display: contents; }
  .stage-label { grid-row: 1; align-self: end; margin-bottom: 12px; font-size: 0; text-align: center; }
  .stage-label b { display: inline-block; margin-right: 0; padding: 8px 14px; border-radius: 999px; font-size: .95rem; line-height: 1.2; }
  .stage-more { display: none; }
  .phone { grid-row: 2; transition: opacity .25s ease; }
  .result { grid-column: 1 / -1; grid-row: 3; margin-top: 22px; }
  .weigh .result { grid-row: 4; }

  .stages[data-show] .stage-label { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .stages[data-show] .stage-label b { background: rgba(255, 255, 255, .3); }
  .stages[data-show] .stage-label.is-shown b { background: var(--card); box-shadow: 0 2px 8px rgba(8, 30, 27, .16); }
  .stages[data-show] .phone:not(.is-shown) { opacity: .5; }
  .stages[data-show] .result { grid-row: 3; }
  .stages[data-show] .result:not(.is-shown) { display: none; }
  .stages[data-show] .result::before { content: ""; position: absolute; top: -9px; left: calc(25% - 13.5px); width: 20px; height: 20px; border-radius: 5px 0 0 0; background: #fff; transform: rotate(45deg); }
  .stages[data-show] .weigh .result::before { left: calc(75% - 6.5px); }
}
@media (max-width: 562px) { .phone { zoom: .8; } }
@media (max-width: 457px) { .phone { zoom: .66; } }
@media (max-width: 389px) { .phone { zoom: .6; } }
@media (max-width: 359px) {
  .stages { column-gap: 10px; }
  .phone { zoom: .5; }
}

/* The second demo: two photos of one pose with a line to drag between them,
   and the trend and weigh-ins beside it. */

.compare { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.compare .shot-clip img { position: absolute; inset: 0; pointer-events: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .35); }
.compare-line::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 7 5 12l4.5 5M14.5 7 19 12l-4.5 5' fill='none' stroke='%230C302C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.compare-tag { position: absolute; top: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .86); color: #0C302C; font: 700 .68rem/1 var(--body); font-variant-numeric: tabular-nums; }
.compare-tag-l { left: 10px; }
.compare-tag-r { right: 10px; }
.compare-range { width: 178px; height: 30px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: ew-resize; }
.compare-range::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #E2622F var(--cut, 50%), #48484D var(--cut, 50%)); }
.compare-range::-moz-range-track { height: 5px; border-radius: 3px; background: #48484D; }
.compare-range::-moz-range-progress { height: 5px; border-radius: 3px; background: #E2622F; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 22px; margin-top: -8.5px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.compare-range::-moz-range-thumb { width: 34px; height: 22px; border: 0; border-radius: 999px; background: #fff; }

.result-aside { color: #5C7A75; font: 600 .74rem/1 var(--body); }
.result-total em { margin-left: auto; align-self: center; color: #5C7A75; font: 600 .78rem/1.2 var(--body); font-style: normal; }
.chart { width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.chart-goal { fill: none; stroke: #C23C0C; stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .7; }
.chart-text { fill: #C23C0C; font: 700 9px var(--body); }
.chart-daily { fill: none; stroke: #C7C7CC; stroke-width: 1.1; stroke-linejoin: round; }
.chart-trend { fill: none; stroke: #C23C0C; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #C23C0C; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto 78px; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(12, 48, 44, .1); font-size: .93rem; color: #5C7A75; }
.entry .item-kcal { justify-self: end; color: #0C302C; }
.entry-down, .entry-up { font-size: .82rem; font-variant-numeric: tabular-nums; }
.entry-up { color: #D7263D; }

/* The scan plays once: shutter, flash, a sweep down the plate, then the
   foods and the numbers. Without script, or with motion turned down, the
   finished state is simply shown. */

.scan.is-waiting .tag, .scan.is-waiting .item, .scan.is-waiting .result-note { opacity: 0; }
.scan.is-waiting .tag { transform: translateY(8px) scale(.9); }
.scan.is-waiting .item { transform: translateY(6px); }
.scan .tag { transition: opacity .3s ease, transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.scan .item, .scan .result-note { transition: opacity .3s ease, transform .3s ease; }
.scan.is-waiting .tag.is-on, .scan.is-waiting .item.is-on, .scan.is-waiting .result-note.is-on { opacity: 1; transform: none; }
.scan.is-flash .flash { animation: flash .32s ease-out; }
.scan.is-sweep .sweep { animation: sweep 1.15s cubic-bezier(.45, 0, .3, 1); }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
@keyframes sweep { 0% { opacity: 1; transform: translateY(-110%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(300%); } }

/* Sections */

.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec-tight { padding-top: 0; }
.sec-head { max-width: 40em; }
.sec-head .lead { margin-top: 16px; }

/* A heading that stays put on the left while its content runs down the right. */
.rail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: clamp(24px, 5vw, 72px); }
.rail > .sec-head { position: sticky; top: 32px; }
@media (max-width: 960px) {
  .rail { grid-template-columns: minmax(0, 1fr); }
  .rail > .sec-head { position: static; }
}

.band-mtn { background: var(--mtn); color: var(--on-mtn); padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 120px); }
.band-mtn .lead { color: var(--on-mtn-sub); }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 60px); }
.check p { margin-top: 10px; color: var(--on-mtn-sub); }
.check h3 { margin-top: 22px; }
.snippet { min-height: 172px; padding: 16px; border-radius: 22px; background: #fff; color: #0C302C; font-size: .9rem; line-height: 1.45; display: flex; flex-direction: column; justify-content: center; }
.snippet .eyebrow { color: #5C7A75; margin-bottom: 10px; }
.snippet-note { color: #3D5F59; }
.snippet-note b { display: block; margin-bottom: 4px; color: #0C302C; font: 800 1.02rem/1.2 var(--display); }
.snippet .item:first-of-type { border-top: 0; }
.snippet .item-toggle { cursor: default; }
.menu { margin: 0; padding: 0; list-style: none; }
.menu li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(12, 48, 44, .1); font-weight: 600; }
.menu li:first-child { border-top: 0; color: #C23C0C; }
.menu li span { font: 800 .95rem/1.4 var(--display); font-variant-numeric: tabular-nums; }
.menu li:first-child::before { content: "\2713"; margin-right: -4px; font-weight: 800; }
.menu li:not(:first-child) { padding-left: 21px; }
.menu li b { flex: 1; font-weight: 600; }
@media (max-width: 860px) {
  .checks { grid-template-columns: minmax(0, 1fr); }
  .snippet { min-height: 0; }
}

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 52px); }
.way { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(8, 30, 27, .4); }
.way-art { display: grid; align-content: center; min-height: 150px; margin-bottom: 20px; padding: 16px; border-radius: 18px; background: var(--wash); color: var(--ink); }
.way p { margin-top: 8px; color: var(--sub); }
.typed { padding: 12px 14px; border-radius: 12px; background: var(--card); font-size: .92rem; line-height: 1.4; }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--accent); }
.typed-out { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--sub); }
.typed-out b { font: 800 1.15rem/1 var(--display); color: var(--ink); }
.barcode { height: 54px; border-radius: 6px; background:
  repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 16px, var(--ink) 16px 17px, transparent 17px 21px); }
.barcode-out { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9rem; font-weight: 600; }
.barcode-out b { font: 800 1.05rem/1 var(--display); white-space: nowrap; }
.recents { margin: 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; }
.recents li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.recents li:first-child { border-top: 0; }
.recents li::after { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-fill); color: #fff; font: 800 1rem/1 var(--display); }
@media (max-width: 860px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Text beside a screen from the app */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.split-copy .lead { margin-top: 16px; }
.split-copy .fine { margin-top: 18px; }
.split-art { position: relative; display: flex; justify-content: center; }
.device { width: min(100%, 296px); padding: 9px; border-radius: 46px; background: #0B0B0C; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.device img { width: 100%; height: auto; border-radius: 37px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: min(100%, 520px); }
.pair .device { width: 100%; }
.pair .device:first-child { transform: translate(8%, 0) rotate(-3deg); z-index: 1; }
.pair .device:last-child { transform: translate(-8%, 9%) rotate(3deg); }
.facts { margin: 26px 0 0; display: grid; gap: 18px; }
.facts dt { font: 800 1.08rem/1.25 var(--display); }
.facts dd { margin: 4px 0 0; color: var(--sub); }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-art { order: 2; }
  .pair { margin-bottom: 8%; }
}

.band-field { background: var(--field); color: #fff; }
.band-field .lead { color: rgba(255, 255, 255, .88); }
.band-field .fine { color: rgba(255, 255, 255, .75); }
.band-field .facts dd { color: rgba(255, 255, 255, .85); }

/* Plans */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(8, 30, 27, .4); }
.plan-plus { background: var(--accent-fill); color: #fff; box-shadow: 0 30px 60px -30px rgba(160, 44, 4, .8); }
.plan .eyebrow { opacity: .75; }
.plan h3 { margin-top: 10px; font-size: 1.7rem; }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; font-weight: 500; }
.plan li { position: relative; padding-left: 36px; }
.plan li::before { content: ""; position: absolute; left: 0; top: -1px; width: 24px; height: 27px; background: var(--field); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.plan li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.plan-plus li::before { background: #fff; }
.plan-plus li::after { border-color: #C23C0C; }
.plan-notes { margin-top: 20px; display: grid; gap: 10px; color: var(--sub); font-size: .98rem; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Privacy card and questions */

.keep { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px); background: linear-gradient(180deg, #0E3A35, #0A2724); color: #FFF4EA; }
.keep a { color: #FFB48A; font-weight: 600; }
.keep ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.keep li { padding-left: 20px; border-left: 3px solid #4CD08A; color: #D9F2E6; }
.keep h2 + p { margin-top: 18px; }
@media (max-width: 860px) { .keep { grid-template-columns: minmax(0, 1fr); } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; cursor: pointer; list-style: none; font: 800 1.14rem/1.3 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2px 22px; max-width: 44em; color: var(--sub); }
.faq-more { margin-top: 18px; color: var(--sub); font-size: .98rem; }

/* The summit: where the page ends */

.summit { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #0E3A35 0%, #0A2724 100%); color: #FFF4EA; }
.summit-inner { position: relative; z-index: 2; padding-block: clamp(72px, 10vw, 140px) clamp(150px, 22vw, 300px); }
.summit h2 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; }
.summit .btn { margin-top: 28px; }
.summit-scene { position: absolute; z-index: 1; inset: auto 0 0 0; width: 100%; height: clamp(260px, 46vw, 560px); pointer-events: none; }
.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 22px; border-top: 1px solid rgba(191, 233, 214, .18); font-size: .92rem; color: #BFE9D6; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.foot a { color: #FFF4EA; }
.summit-plain .summit-inner { padding-block: 0; }

/* Support and Privacy: a short sky, then the page */

.sub-hero { background: var(--sky); padding-bottom: clamp(36px, 5vw, 64px); }
.sub-hero h1 { margin-top: clamp(22px, 4vw, 48px); font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.sub-hero .lead { margin-top: 14px; max-width: 34em; }
.page { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(28px, 6vw, 84px); padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.toc { position: sticky; top: 24px; align-self: start; font-size: .94rem; }
.toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.toc a { color: var(--sub); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.prose h2 { margin-top: 44px; font-size: 1.6rem; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font: 700 1.08rem/1.35 var(--body); letter-spacing: 0; }
.prose p { margin-top: 10px; color: var(--sub); }
.prose h3 + p { margin-top: 6px; }
.callout { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(8, 30, 27, .4); }
.callout p { margin: 0; color: var(--ink); }
.callout h2 { margin: 0 0 8px; }
.callout + h2 { margin-top: 44px; }
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px 20px; border-radius: 20px; background: var(--wash); }
}

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

.sub-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.walker { flex: none; width: clamp(96px, 13vw, 150px); margin-bottom: calc(-1 * clamp(36px, 5vw, 64px) - 6px); overflow: visible; }
@media (max-width: 560px) { .walker { width: 84px; } }
