/*
 * caloreeapp.com — landing site styles.
 *
 * Design tokens are lifted from the Caloree web app (src/app/globals.css) so the marketing site
 * and the product read as one thing: dark zinc surfaces, the Caloree orange as the only accent,
 * the logo's amber -> red gradient for emphasis, Geist for everything.
 * Dark only, like the app (`color-scheme: dark`).
 */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-variable.woff2") format("woff2");
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: dark;

  /* Brand */
  --primary: #e2611f;
  --primary-hover: #f0702d;
  --primary-press: #c9530f;
  --secondary: #fdba74;
  --brand-from: #ffc739;
  --brand-to: #ff3c00;

  /* Surfaces (zinc ladder, as in the app) */
  --bg: #09090b;
  --bg-grad-from: #0c0c0f;
  --surface: #18181b;
  --card: #111113;
  --card-high: #18181b;
  --container-high: #27272a;

  /* Text */
  --fg: #fafafa;
  --fg-muted: #a1a1aa;
  --fg-dim: #71717a;

  /* Lines */
  --border: #27272a;
  --border-strong: #3f3f46;

  /* Macros */
  --energy: #de571b;
  --protein: #ff8b7f;
  --carbs: #7ea2ff;
  --fat: #ffe08d;

  /* Metabalance, level 1 (best) .. 5 (worst) */
  --mb-1: #d6e9a2;
  --mb-2: #b6e9a2;
  --mb-3: #f1d5a2;
  --mb-4: #ffbe9a;
  --mb-5: #ff9a8f;

  /* Radii */
  --r-card: 12px;
  --r-sheet: 16px;
  --r-pill: 999px;

  /* Layout */
  --page: 1120px;
  --gutter: 20px;

  --font-sans:
    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------------------------------------------------------------- reset */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(to bottom, var(--bg-grad-from), var(--bg));
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--r-card) 0;
  font-weight: 600;
}
.skip:focus {
  left: 0;
}

section {
  position: relative;
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right, transparent, var(--border) 18%, var(--border) 82%, transparent);
}

/* ---------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--brand-from), var(--brand-to));
}

.h1 {
  font-size: clamp(34px, 6.4vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.h2 {
  font-size: clamp(27px, 4.2vw, 40px);
  letter-spacing: -0.035em;
}

.h3 {
  font-size: clamp(19px, 2.2vw, 22px);
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 20px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 56ch;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .lede {
  margin-top: 16px;
}

.center {
  margin-inline: auto;
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

.grad {
  background: linear-gradient(100deg, var(--brand-from), var(--brand-to) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 48px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(226, 97, 31, 0.8);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 30px -10px rgba(226, 97, 31, 0.95);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--fg);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--lg {
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.center .btn-row {
  justify-content: center;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-dim);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.trust svg {
  flex: none;
  color: var(--primary);
}

.center .trust {
  justify-content: center;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.site-header[data-stuck="true"] {
  border-bottom-color: var(--border);
  background: rgba(9, 9, 11, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
}

.lang a {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.lang a:hover {
  color: var(--fg);
}

.lang a[aria-current="true"] {
  background: var(--container-high);
  color: var(--fg);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-actions .lang {
    display: none;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/* Warm bloom behind the hero, echoing the logo gradient. */
.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  left: 50%;
  width: min(1180px, 150vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(226, 97, 31, 0.26),
    rgba(226, 97, 31, 0.07) 45%,
    transparent 72%
  );
  pointer-events: none;
}

/* Faint grid, so the dark page is not flat. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 72% 58% at 50% 32%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 32%, #000 35%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

.pill b {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(100deg, var(--brand-from), var(--brand-to));
  color: #1a0d00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero .h1 {
  margin-top: 24px;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy .lede,
  .hero__copy .trust {
    margin-inline: auto;
  }

  .hero__copy .btn-row,
  .hero__copy .trust {
    justify-content: center;
  }
}

/* ---------------------------------------------------------------- app mockup */

.mock {
  width: 100%;
  max-width: 352px;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(165deg, #1c1c20, #0d0d10 60%);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 48px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.5);
}

.mock__screen {
  padding: 18px 16px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(to bottom, #0f0f12, #0a0a0c);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mock__date {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
}

.mock__greet {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Calorie ring */
.ring {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
}

.ring__dial {
  position: relative;
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, var(--energy) 0 68%, #26262b 68% 100%);
  display: grid;
  place-items: center;
}

.ring__dial::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--card);
}

.ring__num {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.1;
}

.ring__num b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ring__num span {
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-dim);
}

.macros {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 11px;
}

.macro {
  display: grid;
  gap: 5px;
  list-style: none;
}

.macro__row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
}

.macro__row span:first-child {
  color: var(--fg-muted);
}

.macro__row span:last-child {
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.macro__track {
  height: 5px;
  border-radius: var(--r-pill);
  background: #26262b;
  overflow: hidden;
}

.macro__fill {
  display: block; /* <i> is inline by default, where width/height would be ignored */
  height: 100%;
  border-radius: var(--r-pill);
}

/* Logged meal */
.meal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
}

.meal__thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a1c17, #1d1512);
  font-size: 20px;
  line-height: 1;
}

.meal__body {
  flex: 1;
  min-width: 0;
}

.meal__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meal__sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.meal__kcal {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--energy);
  font-variant-numeric: tabular-nums;
}

.mock__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(226, 97, 31, 0.13);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
}

/* Metabalance strip inside the mockup */
.mb-strip {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
}

.mb-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 11px;
}

.mb-strip__head b {
  font-size: 12px;
  font-weight: 600;
}

.mb-strip__head span {
  color: var(--mb-2);
  font-weight: 600;
}

.mb-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}

.mb-bars i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: var(--mb-2);
}

/* ---------------------------------------------------------------- feature grid */

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

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

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

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

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

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.022), transparent 40%), var(--card);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid rgba(226, 97, 31, 0.28);
  border-radius: 11px;
  background: rgba(226, 97, 31, 0.1);
  color: var(--secondary);
}

.card h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.card__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(226, 97, 31, 0.14);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- split rows */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split + .split {
  margin-top: clamp(48px, 7vw, 88px);
}

.split--flip .split__visual {
  order: -1;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .split--flip .split__visual {
    order: 0;
  }
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  list-style: none;
  font-size: 15px;
  color: var(--fg-muted);
}

.checks svg {
  flex: none;
  margin-top: 4px;
  color: var(--primary);
}

.checks b {
  color: var(--fg);
  font-weight: 600;
}

/* Panel used as the visual half of a split row */
.panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 55%), var(--card);
  box-shadow: 0 32px 64px -40px rgba(0, 0, 0, 0.9);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel__meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-dim);
}

/* Scan result rows */
.scan-rows {
  display: grid;
  gap: 8px;
}

.scan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 13px;
  list-style: none;
}

.scan-row b {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-row span {
  flex: none;
  color: var(--fg-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.scan-row em {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-muted);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-dim);
}

.panel__total {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Metabalance gauge */
.gauge {
  display: grid;
  gap: 14px;
}

.gauge__scale {
  display: flex;
  gap: 5px;
}

.gauge__scale i {
  flex: 1;
  height: 9px;
  border-radius: var(--r-pill);
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.gauge__scale i:nth-child(1) {
  background: var(--mb-1);
}
.gauge__scale i:nth-child(2) {
  background: var(--mb-2);
}
.gauge__scale i:nth-child(3) {
  background: var(--mb-3);
}
.gauge__scale i:nth-child(4) {
  background: var(--mb-4);
}
.gauge__scale i:nth-child(5) {
  background: var(--mb-5);
}

.gauge__scale i[data-on="true"] {
  opacity: 1;
}

.gauge__labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.gauge__verdict {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(182, 233, 162, 0.07);
}

.gauge__verdict b {
  display: block;
  font-size: 14px;
  color: var(--mb-2);
}

.gauge__verdict p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* Day curve, drawn with a tiny inline SVG */
.curve {
  width: 100%;
  height: auto;
}

/* Coach chat */
.chat {
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.bubble--me {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: var(--primary);
  color: #fff;
}

.bubble--coach {
  justify-self: start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--fg-muted);
}

.bubble--coach b {
  color: var(--fg);
  font-weight: 600;
}

/* ---------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--card);
  list-style: none;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--brand-from), var(--brand-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 16px;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ---------------------------------------------------------------- plans */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
}

@media (max-width: 680px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--card);
}

.plan--hi {
  border-color: rgba(226, 97, 31, 0.45);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(226, 97, 31, 0.1), transparent 70%),
    var(--card);
  box-shadow: 0 24px 60px -36px rgba(226, 97, 31, 0.5);
}

.plan__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.plan__name em {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(100deg, var(--brand-from), var(--brand-to));
  color: #1a0d00;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}

.plan__price b {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.plan__price span {
  font-size: 14px;
  color: var(--fg-dim);
}

.plan__note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-dim);
}

.plan .checks {
  margin-top: 22px;
  margin-bottom: 26px;
  flex: 1;
}

.plan .checks li {
  font-size: 14px;
}

.plan .btn {
  width: 100%;
}

/* ---------------------------------------------------------------- faq */

.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--fg-dim);
  border-bottom: 2px solid var(--fg-dim);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq__body {
  padding: 0 20px 19px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.faq__body p + p {
  margin-top: 10px;
}

/* ---------------------------------------------------------------- cta band */

.cta {
  position: relative;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 56px);
  border: 1px solid rgba(226, 97, 31, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(226, 97, 31, 0.18), transparent 65%),
    linear-gradient(to bottom, #15100e, #0c0c0f);
  text-align: center;
  overflow: hidden;
}

.cta .lede {
  max-width: 48ch;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
  padding-block: 48px 36px;
  font-size: 14px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer__brand p {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-dim);
}

.footer__col h4 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col li {
  list-style: none;
}

.footer__col a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--fg);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-dim);
}

.footer__legal {
  max-width: 76ch;
}

/* ---------------------------------------------------------------- legal pages */

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px);
}

.legal__updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--fg-dim);
}

.legal__toc {
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--card);
}

.legal__toc h2 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.legal__toc ol {
  display: grid;
  gap: 8px;
  counter-reset: toc;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 620px) {
  .legal__toc ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

.legal__toc li {
  list-style: none;
  counter-increment: toc;
  font-size: 13px;
}

.legal__toc a {
  color: var(--fg-muted);
  transition: color 0.15s ease;
}

.legal__toc a::before {
  content: counter(toc) ". ";
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.legal__toc a:hover {
  color: var(--primary);
}

.prose {
  margin-top: 40px;
  counter-reset: sec;
}

.prose section {
  padding-top: 34px;
  scroll-margin-top: 92px;
}

.prose section + section {
  border-top: 1px solid var(--border);
}

.prose h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.prose h2::before {
  counter-increment: sec;
  content: counter(sec) ". ";
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.prose h3 {
  margin-top: 26px;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.prose p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.prose a {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-color: rgba(253, 186, 116, 0.4);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--secondary);
}

.prose ul,
.prose ol {
  margin-top: 14px;
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.prose li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.prose li::marker {
  color: var(--fg-dim);
}

.prose b,
.prose strong {
  color: var(--fg);
  font-weight: 600;
}

/* Key-value block for entity details and processors */
.facts {
  margin-top: 20px;
  padding: 4px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
}

.facts div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 6px 20px;
  padding-block: 13px;
}

.facts div + div {
  border-top: 1px solid var(--border);
}

.facts dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
}

.facts dd {
  margin: 0;
  font-size: 14px;
  color: var(--fg);
}

@media (max-width: 560px) {
  .facts div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Data table for the privacy policy */
.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}

td {
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
}

td:first-child {
  color: var(--fg);
  font-weight: 500;
}

.note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 97, 31, 0.28);
  border-left-width: 3px;
  border-radius: 10px;
  background: rgba(226, 97, 31, 0.06);
}

.note p {
  margin-top: 0;
  font-size: 14px;
  color: var(--fg-muted);
}

.note p + p {
  margin-top: 10px;
}

.note b {
  color: var(--fg);
}

/* ---------------------------------------------------------------- support page */

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

@media (max-width: 680px) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.support-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-sheet);
  background: var(--card);
}

.support-card h3 {
  font-size: 16px;
}

.support-card p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.support-card a.btn {
  margin-top: 18px;
}

.mailto {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-color: rgba(253, 186, 116, 0.4);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- 404 */

.notfound {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 80px;
}

.notfound__code {
  font-size: clamp(64px, 14vw, 128px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(100deg, var(--brand-from), var(--brand-to) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- reveal */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal[data-seen="true"] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal__toc {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .prose p,
  .prose li {
    color: #222;
  }
}
