@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/gabarito-latin.woff2') format('woff2');
}

/* Tokens: cobalt and ant orange come from the app icon */

:root {
  --cobalt: #026fe3;
  --cobalt-deep: #0157b4;
  --cobalt-ink: #0258b8;
  --ant: #e2531b;
  --ant-ink: #b23f0e;
  --ink: #0a1f44;
  --muted: #4b5d7d;
  --paper: #ffffff;
  --porcelain: #f1f5fc;
  --sky: #e1ecfd;
  --line: #d9e3f2;
  --on-cobalt: #ffffff;
  --on-cobalt-muted: rgb(255 255 255 / 0.82);
  --display: 'Gabarito', ui-rounded, system-ui, -apple-system, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 28px;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cobalt: #0b64cc;
    --cobalt-deep: #0a56ae;
    --cobalt-ink: #7cb6ff;
    --ant: #f06a32;
    --ant-ink: #ff9a6b;
    --ink: #eaf1ff;
    --muted: #9db0cf;
    --paper: #061430;
    --porcelain: #0a1c3e;
    --sky: #0f2a58;
    --line: #1b3260;
  }
}

/* Base */

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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--cobalt-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.wrap {
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.wide {
  max-width: calc(1160px + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

header.site {
  padding: 18px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.site nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 15px;
  font-weight: 600;
}

header.site nav a {
  color: var(--ink);
  text-decoration: none;
}

header.site nav a:hover {
  color: var(--cobalt-ink);
}

header.site nav .pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.15s;
}

header.site nav .pill:hover {
  background: var(--cobalt-deep);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

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

/* The home header sits on the cobalt hero */

.hero header.site .brand,
.hero header.site nav a {
  color: var(--on-cobalt);
}

.hero header.site nav .pill {
  background: #fff;
  color: #0258b8;
}

.hero header.site nav .pill:hover {
  background: #e6f0ff;
  color: #0258b8;
}

.hero .brand img {
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.55);
}

@media (max-width: 640px) {
  header.site nav .hide-sm {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 18px;
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  header.site nav .pill {
    padding: 8px 14px;
  }
}

.nowrap {
  white-space: nowrap;
}

/* Store badge */

.store {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.15s;
}

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

.store img {
  width: 172px;
  height: auto;
}

.fineprint {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

/* Hero */

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 45%, rgb(255 255 255 / 0.18), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(0 30 90 / 0.28), transparent 70%);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 24px;
  padding-top: clamp(24px, 6vw, 72px);
}

.hero-copy {
  padding-bottom: clamp(48px, 9vw, 120px);
}

.hero h1 {
  font-size: clamp(46px, 8.2vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  max-width: 9.5em;
}

.hero .lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--on-cobalt-muted);
  max-width: 30em;
  margin: 0 0 32px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.hero .actions .text-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.5);
}

.hero .fineprint {
  color: var(--on-cobalt-muted);
  margin-top: 18px;
}

.hero-ant {
  position: relative;
  align-self: end;
  justify-self: end;
  width: min(100%, 440px);
  margin-bottom: -6px;
}

@media (min-width: 1100px) {
  .hero-ant {
    margin-right: calc(var(--gutter) * -0.75);
  }
}

.hero-ant img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgb(0 20 70 / 0.35));
  animation: ant-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ant-in {
  from {
    transform: translateY(48px);
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding-bottom: 12px;
  }

  .hero-ant {
    justify-self: center;
    width: min(64%, 300px);
  }
}

/* Sections */

.section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.section.tint {
  background: var(--porcelain);
}

.section-head {
  max-width: 40em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2,
.section h2.big {
  font-size: clamp(34px, 5.2vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 18px;
}

.section-head p {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--muted);
  margin: 0;
}

.section .after {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Intro statement */

.statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 24em;
  margin: 0;
}

.statement-sub {
  max-width: 38em;
  color: var(--muted);
  font-size: 18px;
  margin: 24px 0 0;
}

/* Steps */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cobalt-ink);
  margin-bottom: 18px;
}

.steps h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Check-in demo */

.checkin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.checkin-layout .section-head {
  margin-bottom: 0;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

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

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cobalt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

@media (max-width: 860px) {
  .checkin-layout {
    grid-template-columns: 1fr;
  }

  .checkin {
    max-width: 460px;
  }
}

.checkin-wrap {
  position: relative;
  padding-top: 128px;
}

.checkin-ant {
  position: absolute;
  top: 0;
  right: 32px;
  z-index: 1;
  width: 120px;
  filter: drop-shadow(0 8px 10px rgb(2 40 100 / 0.18));
}

.checkin {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow:
    0 1px 0 var(--line),
    0 24px 60px -20px rgb(2 60 140 / 0.35);
  border: 1px solid var(--line);
}

.checkin-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.checkin-total {
  font-family: var(--display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cobalt-ink);
  font-variant-numeric: tabular-nums;
}

.checkin-total-label {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.checkin-streak {
  text-align: right;
  font-size: 15px;
  color: var(--muted);
}

.checkin-streak strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.days {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}

.days li {
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--cobalt);
}

.days li.slip {
  background: var(--ant);
}

.days li.today {
  background: transparent;
  border: 2px dashed color-mix(in srgb, var(--cobalt) 60%, transparent);
}

.days li.today.done {
  border: 0;
  background: var(--cobalt);
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.days li.today.slip {
  border: 0;
  background: var(--ant);
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes pop {
  from {
    transform: scale(0.4);
  }
}

.checkin-question {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 14px;
}

.checkin-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkin button {
  font: 600 16px/1 var(--text);
  border-radius: 14px;
  padding: 16px 12px;
  cursor: pointer;
  border: 0;
  transition:
    background-color 0.15s,
    transform 0.1s;
}

.checkin button:active {
  transform: scale(0.98);
}

.checkin .yes {
  background: var(--cobalt);
  color: #fff;
}

.checkin .yes:hover {
  background: var(--cobalt-deep);
}

.checkin .no {
  background: var(--porcelain);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.checkin .no:hover {
  background: var(--sky);
}

.checkin-result {
  display: none;
  min-height: 0;
}

.checkin-result p {
  margin: 0 0 12px;
  font-size: 17px;
}

.checkin .again {
  background: none;
  padding: 0;
  color: var(--cobalt-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: 15px;
}

.checkin[data-state='done'] .checkin-ask,
.checkin[data-state='slip'] .checkin-ask {
  display: none;
}

.checkin[data-state='done'] .checkin-result,
.checkin[data-state='slip'] .checkin-result {
  display: block;
}

.checkin-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Feature rows */

.features {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.feature-row.flip .feature-visual {
  order: -1;
}

.feature-row h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.feature-row p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 12px;
  max-width: 32em;
}

.feature-visual {
  background: var(--sky);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  place-items: center;
  min-height: 340px;
}

@media (max-width: 820px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row.flip .feature-visual {
    order: 0;
  }

  .feature-visual {
    min-height: 0;
  }
}

/* Craving SOS visual */

.sos {
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: end;
  text-align: center;
}

.sos-ant {
  grid-row: 1 / span 2;
  width: 100%;
  max-width: 150px;
  justify-self: end;
  filter: drop-shadow(0 12px 16px rgb(2 40 100 / 0.2));
}

.sos-ring {
  position: relative;
  width: min(100%, 220px);
  margin: 0 auto 20px;
}

.sos-ring svg {
  display: block;
  width: 100%;
  transform: rotate(-90deg);
}

.sos-ring .track {
  stroke: color-mix(in srgb, var(--cobalt) 18%, transparent);
}

.sos-ring .progress {
  stroke: var(--cobalt);
}

.sos-time {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sos-time small {
  font-family: var(--text);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 6px;
}

.sos-why {
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
}

.sos-why span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* Scanner visual */

.scan-visual {
  gap: 0;
}

.scan-ant {
  width: min(100%, 320px);
  margin-bottom: -10px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 16px rgb(2 40 100 / 0.2));
}

.scan {
  width: min(100%, 380px);
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.scan li {
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
}

.scan b {
  font-weight: 600;
}

.scan small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

.verdict {
  grid-row: 1;
  grid-column: 2;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.verdict.fits {
  background: var(--sky);
  color: var(--cobalt-ink);
}

.verdict.avoid {
  background: color-mix(in srgb, var(--ant) 16%, transparent);
  color: var(--ant-ink);
}

.verdict.unsure {
  background: var(--porcelain);
  color: var(--muted);
}

/* More features */

.more {
  margin-top: clamp(64px, 9vw, 112px);
}

.more h3.more-title {
  font-size: 24px;
  margin: 0 0 24px;
}

.more dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 32px;
  margin: 0;
}

.more dl > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.more dt {
  font-weight: 700;
  margin-bottom: 4px;
}

.more dd {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Goals */

.goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.goal {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.goal.all-in {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--on-cobalt);
}

.goal-kind {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.goal.all-in .goal-kind,
.goal.all-in p {
  color: var(--on-cobalt-muted);
}

.goal h3 {
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.goal p {
  margin: 0 0 24px;
  color: var(--muted);
}

.rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rules li {
  position: relative;
  padding-left: 32px;
}

.rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ant) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%23e2531b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.rules li.ok::before {
  background: var(--sky)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.7 2.6L14 7.4' fill='none' stroke='%23026fe3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.rules li.plus {
  font-weight: 600;
}

.rules li.plus::before {
  background: rgb(255 255 255 / 0.2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 6v8M6 10h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.goal.all-in .rules li::before {
  background-color: rgb(255 255 255 / 0.95);
}

.goal.all-in .rules li.plus::before {
  background-color: rgb(255 255 255 / 0.2);
}

@media (max-width: 760px) {
  .goals {
    grid-template-columns: 1fr;
  }
}

/* Timeline */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline .when {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--cobalt-ink);
  font-variant-numeric: tabular-nums;
}

.timeline .when small {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline h3 {
  font-size: 24px;
  margin: 0 0 6px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}

@media (max-width: 600px) {
  .timeline li {
    grid-template-columns: 1fr;
  }
}

/* 30-day program */

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.head-ant {
  flex: none;
  width: clamp(96px, 13vw, 170px);
  margin: 0 clamp(0px, 4vw, 48px) 20px 0;
  filter: drop-shadow(0 12px 16px rgb(2 40 100 / 0.2));
}

.program {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.program a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 96px;
  padding: 14px 16px 16px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.program a:hover {
  border-color: var(--cobalt);
  background: var(--sky);
}

.program b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--cobalt-ink);
}

.program-more {
  display: none;
}

@media (max-width: 960px) {
  .program {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .program {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program a {
    min-height: 96px;
  }

  .program.collapsed li:nth-child(n + 9) {
    display: none;
  }

  .program.collapsed + .program-more {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: 600 16px/1 var(--text);
    cursor: pointer;
  }
}

/* Link list (guides) */

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 64px);
}

.link-list li {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: block;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}

.link-list h3 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
}

.link-list a:hover h3 {
  color: var(--cobalt-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.link-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 700px) {
  .link-list {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-layout .section-head {
  position: sticky;
  top: 32px;
}

@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout .section-head {
    position: static;
  }
}

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

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

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  padding: 20px 44px 20px 0;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--sky)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 12l5 5 5-5' fill='none' stroke='%23026fe3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 28px no-repeat;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

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

.faq details p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 38em;
}

/* Closing band */

.closing {
  background: var(--cobalt);
  color: var(--on-cobalt);
  overflow: clip;
}

.closing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.closing-copy {
  padding: clamp(64px, 9vw, 112px) 0;
}

.closing h2 {
  font-size: clamp(36px, 5.6vw, 68px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 11em;
}

.closing p {
  color: var(--on-cobalt-muted);
  font-size: 19px;
  margin: 0 0 28px;
  max-width: 28em;
}

.closing .fineprint {
  color: var(--on-cobalt-muted);
  font-size: 14px;
  margin: 16px 0 0;
}

.closing-ant {
  width: clamp(280px, 34vw, 460px);
  margin-bottom: -4px;
}

.closing-ant img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 20px 30px rgb(0 20 70 / 0.35));
}

@media (max-width: 700px) {
  .closing .wrap {
    grid-template-columns: 1fr;
  }

  .closing-copy {
    padding-bottom: 0;
  }

  .closing-ant {
    width: min(100%, 300px);
    justify-self: center;
  }
}

/* Interior pages: compact app band at the end of articles */

.cta {
  position: relative;
  background: var(--cobalt);
  color: var(--on-cobalt);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  padding-right: clamp(28px, 30%, 220px);
  margin: 56px 0;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.cta p {
  color: var(--on-cobalt-muted);
  margin: 0 0 22px;
}

.cta .fineprint {
  color: var(--on-cobalt-muted);
}

.cta::after {
  content: '';
  position: absolute;
  right: -12px;
  bottom: -34px;
  width: clamp(110px, 26%, 200px);
  aspect-ratio: 440 / 688;
  background: url('/ant-hero-440.webp') bottom / contain no-repeat;
  filter: drop-shadow(0 14px 24px rgb(0 20 70 / 0.35));
}

@media (max-width: 520px) {
  .cta {
    padding-right: 28px;
    padding-bottom: 150px;
  }

  .cta::after {
    width: 110px;
    right: 16px;
  }
}

/* Interior pages */

.page-main {
  padding-bottom: 24px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-top: clamp(12px, 3vw, 32px);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--muted);
}

.article {
  padding-bottom: 24px;
  font-size: 18px;
  line-height: 1.7;
}

.article h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 20px 0 20px;
}

.article .lead {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}

.article .meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 36px;
}

.article h2 {
  clear: both;
  font-size: clamp(27px, 3.6vw, 36px);
  letter-spacing: -0.03em;
  margin: 64px 0 14px;
  scroll-margin-top: 24px;
}

.article h3 {
  font-size: 22px;
  margin: 36px 0 8px;
  scroll-margin-top: 24px;
}

.article li {
  margin: 8px 0;
}

.art-ant {
  float: right;
  width: 190px;
  margin: 8px 0 16px 32px;
  filter: drop-shadow(0 12px 16px rgb(2 40 100 / 0.18));
}

.art-ant.wide {
  width: 300px;
}

@media (max-width: 600px) {
  .art-ant,
  .art-ant.wide {
    float: none;
    display: block;
    margin: 8px auto 20px;
  }

  .art-ant {
    width: 150px;
  }

  .art-ant.wide {
    width: min(100%, 280px);
  }
}

.article strong {
  font-weight: 650;
}

.article table,
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  margin: 20px 0;
}

.article th,
.article td,
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.article th,
.doc th {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

.answer {
  position: relative;
  background: var(--sky);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 28px;
}

.answer p {
  margin: 0;
}

.answer strong {
  color: var(--cobalt-ink);
}

.toc {
  background: var(--porcelain);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 16px;
  line-height: 1.45;
}

.toc strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 240px;
  column-gap: 32px;
}

.toc li {
  margin: 0 0 8px;
  break-inside: avoid;
}

.toc li::marker {
  color: var(--muted);
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--cobalt-ink);
  text-decoration: underline;
}

.callout {
  border-left: 3px solid var(--ant);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--muted);
}

.app-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 12px 32px -18px rgb(2 60 140 / 0.3);
}

.app-note img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}

.app-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.app-note strong {
  color: var(--cobalt-ink);
}

.article .grid,
.related .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.article .grid.two,
.related .grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tile {
  background: var(--porcelain);
  border-radius: var(--radius);
  padding: 22px;
}

.tile h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.tile ul {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.tile .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cobalt-ink);
  background: var(--sky);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.card-link:hover {
  border-color: var(--cobalt);
  background: var(--sky);
}

.card-link h3 {
  color: var(--ink);
}

.faq-list details,
.article details {
  border-top: 1px solid var(--line);
}

.sources {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 8px;
}

.sources h2 {
  font-size: 20px;
  margin: 20px 0 10px;
}

.sources li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.disclaimer {
  font-size: 14px;
  color: var(--muted);
}

.related {
  padding: 16px 0 8px;
}

.related h2 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

/* Article FAQ blocks reuse the accordion look */

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

/* Documents (privacy, terms, support) */

.doc {
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: 72px;
}

.doc h1 {
  font-size: clamp(38px, 6vw, 56px);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.doc h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 44px 0 10px;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 32px;
}

.doc li {
  margin: 6px 0;
}

.card {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}

/* 404 */

.not-found {
  text-align: center;
  padding: clamp(32px, 8vw, 96px) 0 96px;
}

.not-found img {
  width: 170px;
}

.not-found h1 {
  font-size: clamp(38px, 6vw, 56px);
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
}

.not-found p {
  color: var(--muted);
  font-size: 19px;
  margin: 0 auto 24px;
  max-width: 28em;
}

.not-found ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.not-found ul a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sky);
  text-decoration: none;
  font-weight: 600;
}

/* Footer */

footer.site {
  background: #0a1f44;
  color: rgb(234 241 255 / 0.7);
  padding: 64px 0 40px;
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  footer.site {
    background: #030c1f;
  }
}

footer.site .cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

footer.site .brand {
  color: #fff;
}

footer.site h2 {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  margin: 4px 0 14px;
}

footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site li {
  margin: 8px 0;
}

footer.site a {
  color: rgb(234 241 255 / 0.7);
  text-decoration: none;
}

footer.site a:hover {
  color: #fff;
  text-decoration: underline;
}

footer.site .tagline {
  margin: 14px 0 0;
  max-width: 300px;
}

footer.site .legal {
  border-top: 1px solid rgb(234 241 255 / 0.14);
  padding-top: 24px;
  font-size: 14px;
}

@media (max-width: 760px) {
  footer.site .cols {
    grid-template-columns: 1fr 1fr;
  }

  footer.site .cols > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .doc thead {
    display: none;
  }

  .doc tr,
  .doc td {
    display: block;
  }

  .doc tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .doc td {
    padding: 2px 0;
    border: 0;
  }

  .doc td + td {
    color: var(--muted);
  }
}

.link-list.one {
  grid-template-columns: 1fr;
}

.link-list.one li:last-child {
  border-bottom: 1px solid var(--line);
}
