:root {
  color-scheme: light;
  --cfc-hue: 55;
  --cfc-accent-hue: 48;
  --cfc-accent: light-dark(oklch(0.64 0.19 var(--cfc-accent-hue)), oklch(0.84 0.14 var(--cfc-accent-hue)));
  --cfc-accent-fg: light-dark(oklch(0.22 0.06 55), oklch(0.18 0.05 55));
  --cfc-bg: light-dark(oklch(0.97 0.025 90), oklch(0.16 0.03 55));
  --cfc-bg-raised: light-dark(oklch(0.995 0.018 95), oklch(0.21 0.035 55));
  --cfc-bg-sink: light-dark(oklch(0.94 0.03 85), oklch(0.13 0.028 55));
  --td-tomato: oklch(0.64 0.2 32);
  --td-citrus: oklch(0.82 0.16 92);
  --td-lime: oklch(0.78 0.18 135);
  --td-berry: oklch(0.62 0.2 350);
  --td-sky: oklch(0.7 0.12 230);
  --td-ink: light-dark(oklch(0.22 0.05 55), oklch(0.96 0.02 90));
  animation:
    cfc-breathe var(--cfc-breath-period) ease-in-out infinite alternate,
    td-hue 16s ease-in-out infinite alternate;
}

:root:has(#cfc-theme-dark:checked) {
  color-scheme: dark;
}

:root:has(#cfc-theme-light:checked) {
  color-scheme: light;
}

:root:has(#cfc-theme-system:checked) {
  color-scheme: light dark;
}

@keyframes td-hue {
  from {
    --cfc-accent-hue: 38;
  }

  to {
    --cfc-accent-hue: 78;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    animation: none;
    --cfc-breath: 0.5;
    --cfc-accent-hue: 48;
  }
}

.cfc-nav {
  background: color-mix(in oklch, var(--cfc-bg) 94%, transparent);
}

body {
  background-image:
    radial-gradient(900px 520px at 8% -8%, color-mix(in oklch, var(--td-citrus) calc(28% + var(--cfc-breath) * 10%), transparent), transparent 58%),
    radial-gradient(720px 480px at 108% 4%, color-mix(in oklch, var(--td-tomato) calc(18% + var(--cfc-breath) * 8%), transparent), transparent 55%),
    radial-gradient(640px 420px at 50% 120%, color-mix(in oklch, var(--td-lime) calc(16% + var(--cfc-breath) * 8%), transparent), transparent 60%);
}

.td-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cfc-fg);
  text-decoration: none;
  font-family: var(--cfc-font-display);
  font-weight: 640;
  font-size: var(--cfc-fs-lg);
  letter-spacing: -0.03em;
}

.td-mark svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.td-ticker {
  overflow: hidden;
  border-block: 1px solid color-mix(in oklch, var(--cfc-fg) 10%, transparent);
  background: color-mix(in oklch, var(--cfc-accent) 88%, var(--td-tomato));
  color: var(--cfc-accent-fg);
}

.td-ticker-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  padding: 0.7rem 0;
  font-size: var(--cfc-fs-sm);
  font-weight: 700;
  animation: td-ticker 32s linear infinite;
}

.td-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.td-ticker-track span::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentcolor;
  opacity: 0.55;
}

@keyframes td-ticker {
  to {
    translate: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-ticker-track {
    animation: none;
  }
}

.td-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding-block: var(--cfc-space-3xl);
}

.td-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--cfc-space-2xl);
  align-items: center;
}

.td-hero-title {
  font-size: var(--cfc-fs-hero);
  line-height: 0.92;
  max-width: 11ch;
}

.td-hero-title em {
  font-style: italic;
  color: var(--cfc-accent);
}

.td-stage {
  position: relative;
  min-height: 28rem;
  display: grid;
  place-items: center;
}

.td-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}

.td-blob-a {
  width: 14rem;
  height: 14rem;
  inset: 8% auto auto 6%;
  background: color-mix(in oklch, var(--td-citrus) 70%, white);
  scale: calc(1 + var(--cfc-breath) * 0.08);
}

.td-blob-b {
  width: 9rem;
  height: 9rem;
  inset: auto 4% 12% auto;
  background: color-mix(in oklch, var(--td-tomato) 65%, white);
  scale: calc(1.05 - var(--cfc-breath) * 0.06);
}

.td-blob-c {
  width: 6rem;
  height: 6rem;
  inset: auto auto 18% 12%;
  background: color-mix(in oklch, var(--td-lime) 70%, white);
}

.td-phone {
  position: relative;
  z-index: 1;
  width: min(100%, 19.5rem);
  border-radius: 2rem;
  padding: 0.7rem;
  background: light-dark(oklch(0.22 0.04 55), oklch(0.12 0.03 55));
  box-shadow: var(--cfc-shadow-awake);
}

.td-phone-screen {
  border-radius: 1.45rem;
  overflow: clip;
  background: var(--cfc-bg-raised);
  min-height: 28rem;
  display: flex;
  flex-direction: column;
}

.td-phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem 0.4rem;
  font-size: var(--cfc-fs-xs);
  font-weight: 700;
}

.td-wait {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2em 0.65em;
  border-radius: var(--cfc-radius-full);
  background: color-mix(in oklch, var(--td-lime) 28%, transparent);
  color: light-dark(oklch(0.38 0.12 135), oklch(0.86 0.12 135));
}

.td-wait i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--td-lime);
  box-shadow: 0 0 calc(0.4rem + var(--cfc-breath) * 0.5rem) var(--td-lime);
}

.td-menu-item {
  display: flex;
  justify-content: space-between;
  gap: var(--cfc-space-sm);
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--cfc-line);
}

.td-menu-item strong {
  display: block;
  font-size: var(--cfc-fs-sm);
}

.td-menu-item small {
  color: var(--cfc-fg-muted);
  font-size: var(--cfc-fs-xs);
}

.td-price {
  font-weight: 800;
  color: var(--cfc-accent);
  font-variant-numeric: tabular-nums;
}

.td-float {
  position: absolute;
  z-index: 2;
  padding: 0.65rem 0.85rem;
  font-size: var(--cfc-fs-xs);
  font-weight: 700;
  max-width: 13rem;
}

.td-float-pos {
  top: 8%;
  right: -8%;
  color: light-dark(oklch(0.32 0.1 145), oklch(0.86 0.1 145));
}

.td-float-sms {
  bottom: 10%;
  left: -10%;
}

.td-section {
  padding-block: var(--cfc-space-3xl);
}

.td-pull {
  padding-block: var(--cfc-space-2xl) var(--cfc-space-3xl);
}

.td-pull-quote {
  font-family: var(--cfc-font-display);
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.15rem);
  font-weight: 420;
  font-style: italic;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 22ch;
  color: var(--cfc-fg);
}

.td-pull-quote em {
  font-style: italic;
  color: var(--cfc-accent);
}

.td-pull .td-note {
  max-width: 42ch;
}

.td-center {
  text-align: center;
}

.td-feature-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.td-feature-grid > * {
  grid-column: span 2;
}

.td-feature-grid > *:nth-child(5) {
  grid-column: 2 / span 2;
}

.td-feature-grid > *:nth-child(6) {
  grid-column: 4 / span 2;
}

.td-feature-grid > *:nth-child(7) {
  grid-column: 6 / span 2;
}

@container (max-width: 48rem) {
  .td-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-feature-grid > *,
  .td-feature-grid > *:nth-child(5),
  .td-feature-grid > *:nth-child(6),
  .td-feature-grid > *:nth-child(7) {
    grid-column: auto;
  }
}

.td-center .cfc-lede,
.td-center .td-note,
.td-center .cfc-prose {
  margin-inline: auto;
}

.td-pillar {
  --td-tone: var(--cfc-accent);
  border-top: 5px solid var(--td-tone);
}

.td-pillar[data-tone="tomato"] { --td-tone: var(--td-tomato); }
.td-pillar[data-tone="citrus"] { --td-tone: var(--td-citrus); }
.td-pillar[data-tone="sky"] { --td-tone: var(--td-sky); }
.td-pillar[data-tone="berry"] { --td-tone: var(--td-berry); }

.td-pillar .cfc-card-title {
  color: var(--td-tone);
}

.td-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cfc-space-lg);
  position: relative;
}

.td-step-num {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cfc-accent);
  color: var(--cfc-accent-fg);
  font-family: var(--cfc-font-display);
  font-size: var(--cfc-fs-xl);
  font-weight: 640;
}

.td-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cfc-space-lg);
}

.td-compare ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--cfc-fg-muted);
}

.td-compare li {
  padding-inline-start: 1.4rem;
  position: relative;
}

.td-no li::before,
.td-yes li::before {
  position: absolute;
  left: 0;
  font-weight: 800;
}

.td-no {
  border-color: color-mix(in oklch, var(--cfc-danger) 40%, var(--cfc-line));
}

.td-no .cfc-card-title { color: var(--cfc-danger); }
.td-no li::before { content: "×"; color: var(--cfc-danger); }

.td-yes {
  border-color: color-mix(in oklch, var(--cfc-ok) 45%, var(--cfc-line));
}

.td-yes .cfc-card-title { color: var(--cfc-ok); }
.td-yes li::before { content: "✓"; color: var(--cfc-ok); }

.td-clock {
  width: min(100%, 14rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 8px solid color-mix(in oklch, var(--td-tomato) 50%, var(--cfc-line));
  background:
    conic-gradient(from -90deg, var(--td-lime) calc(var(--cfc-breath) * 55%), color-mix(in oklch, var(--cfc-fg) 8%, transparent) 0);
  display: grid;
  place-items: center;
}

.td-clock span {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cfc-bg-raised);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--cfc-font-display);
  font-size: var(--cfc-fs-xl);
  font-weight: 640;
  line-height: 1.1;
}

.td-sms.td-phone {
  width: min(100%, 20.5rem);
  margin-inline: auto;
}

.td-sms .td-phone-screen {
  min-height: 0;
  background: light-dark(oklch(0.97 0.012 85), oklch(0.17 0.02 55));
}

.td-sms-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.85rem 0.65rem;
  border-bottom: 1px solid var(--cfc-line);
  text-align: center;
}

.td-sms-head strong {
  display: block;
  font-size: var(--cfc-fs-sm);
  font-weight: 700;
}

.td-sms-head .cfc-card-meta {
  margin-block-start: 0.15rem;
}

.td-sms .td-avatar {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.85rem;
}

.td-sms-time {
  margin: 0.75rem 0 0.35rem;
  text-align: center;
  font-size: var(--cfc-fs-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cfc-fg-faint);
}

.td-sms-thread {
  padding: 0.25rem 0.7rem 1.1rem;
}

.td-sms-bubble {
  margin: 0;
  max-width: 92%;
  padding: 0.7rem 0.9rem;
  border-radius: 1.2rem 1.2rem 1.2rem 0.28rem;
  background: light-dark(oklch(0.92 0.012 85), oklch(0.28 0.02 55));
  color: var(--cfc-fg);
  font-size: var(--cfc-fs-sm);
  line-height: 1.45;
}

.td-sms-link {
  display: block;
  margin-top: 0.45rem;
  color: light-dark(oklch(0.48 0.16 250), oklch(0.78 0.1 230));
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 650;
}

.td-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--cfc-accent);
  color: var(--cfc-accent-fg);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.td-stars {
  color: var(--td-citrus);
  letter-spacing: 0.12em;
  font-size: var(--cfc-fs-lg);
  text-align: center;
}

.td-stars-empty {
  color: color-mix(in oklch, var(--cfc-fg) 22%, transparent);
}

.td-listing-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 28.125rem));
  justify-content: center;
  gap: var(--cfc-space-xl);
  width: 100%;
}

.td-listing-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cfc-space-sm);
}

.td-listing-col .cfc-kicker {
  margin-inline: auto;
  font-size: var(--cfc-fs-lg);
  letter-spacing: 0.1em;
}

.td-listing {
  text-align: center;
  width: 100%;
  min-height: 28.125rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--cfc-space-xl);
}

.td-listing .cfc-card-title {
  font-size: var(--cfc-fs-xl);
  margin-block: 0 0.7rem;
}

.td-listing-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.6rem;
  font-size: var(--cfc-fs-xl);
  font-variant-numeric: tabular-nums;
}

.td-listing .td-stars {
  font-size: var(--cfc-fs-2xl);
  letter-spacing: 0.08em;
}

.td-listing-review {
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
  font-size: var(--cfc-fs-md);
  line-height: 1.45;
  color: var(--cfc-fg-muted);
  text-wrap: pretty;
}

.td-pos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cfc-space-md);
}

.td-pos-tile {
  text-align: center;
  padding: var(--cfc-space-lg) var(--cfc-space-sm);
  font-weight: 750;
}

.td-pos-tile[data-tone="tomato"] { color: var(--td-tomato); }
.td-pos-tile[data-tone="citrus"] { color: light-dark(oklch(0.55 0.14 85), var(--td-citrus)); }
.td-pos-tile[data-tone="lime"] { color: light-dark(oklch(0.5 0.14 135), var(--td-lime)); }
.td-pos-tile[data-tone="sky"] { color: var(--td-sky); }

.td-price-card {
  max-width: 34rem;
  margin-inline: auto;
  border: 2px solid var(--td-lime);
  position: relative;
}

.td-price-card .cfc-badge {
  position: absolute;
  inset: 0 auto auto 50%;
  translate: -50% -55%;
  background: var(--td-lime);
  color: oklch(0.22 0.08 135);
  border-color: var(--td-lime);
}

.td-amount {
  font-family: var(--cfc-font-display);
  font-size: var(--cfc-fs-3xl);
  line-height: 0.9;
  color: light-dark(oklch(0.48 0.16 135), var(--td-lime));
}

.td-amount small {
  font-size: var(--cfc-fs-lg);
  color: var(--cfc-fg-muted);
}

.td-cta {
  text-align: center;
  padding-block: var(--cfc-space-3xl);
}

.td-sticker {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem;
  rotate: -8deg;
  font-size: var(--cfc-fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  bottom: 18%;
  right: -4%;
  background: var(--cfc-bg-raised);
  border-radius: var(--cfc-radius-md);
}

.td-note {
  color: var(--cfc-fg-muted);
  max-width: var(--cfc-measure);
  font-size: var(--cfc-fs-lg);
}

.td-qr {
  width: 5.4rem;
  aspect-ratio: 1;
  border-radius: 0.35rem;
  background-color: var(--cfc-fg);
  background-image:
    linear-gradient(var(--cfc-bg-raised), var(--cfc-bg-raised)),
    linear-gradient(var(--cfc-bg-raised), var(--cfc-bg-raised)),
    linear-gradient(var(--cfc-bg-raised), var(--cfc-bg-raised)),
    linear-gradient(var(--cfc-bg-raised), var(--cfc-bg-raised)),
    linear-gradient(var(--cfc-bg-raised), var(--cfc-bg-raised)),
    linear-gradient(var(--cfc-bg-raised), var(--cfc-bg-raised));
  background-size: 26% 26%, 26% 26%, 26% 26%, 10% 10%, 10% 18%, 14% 10%;
  background-position: 14% 14%, 86% 14%, 14% 86%, 52% 48%, 70% 58%, 48% 72%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 3px var(--cfc-fg), 0 0 0 6px var(--cfc-bg-raised);
}

@media (width < 40rem) {
  .td-listing-pair {
    grid-template-columns: 1fr;
    max-width: 28.125rem;
    margin-inline: auto;
  }
}

@media (width < 60rem) {
  .td-hero-grid,
  .td-compare,
  .td-steps,
  .td-pos {
    grid-template-columns: 1fr;
  }

  .td-float-pos,
  .td-float-sms {
    left: 4%;
    right: 4%;
  }

  .td-float-pos { top: -4%; }
  .td-float-sms { bottom: -6%; }
}
