[data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

.wrap {
  width: min(100% - 2rem, var(--content-wide));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  width: min(100% - 1.5rem, var(--content-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.brand img {
  width: 28px;
  height: 28px;
}
.nav-desktop {
  display: none;
  gap: var(--space-2);
  margin-inline: auto;
}
.nav-desktop a {
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.icon-btn:hover {
  background: var(--color-surface-offset);
}
.icon-btn:active {
  transform: scale(0.97);
}
.nav-toggle {
  display: grid;
}
.quiet-link {
  display: none;
  min-height: 44px;
  align-items: center;
  padding: 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.quiet-link:hover { color: var(--color-text); }
@media (width >= 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }
  .quiet-link { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 9px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
@media (width < 720px) {
  .btn-block,
  .page-actions .btn,
  .tool-card .btn {
    white-space: normal;
    text-wrap: balance;
  }
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px oklch(0.5 0.16 268 / 0.28);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}
.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
}
.btn-ghost:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.header-cta { padding-inline: var(--space-4); }
@media (width < 480px) {
  .header-cta span { display: none; }
  .header-cta::after { content: "Join"; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.drawer[hidden] { display: none; }
.drawer:not([hidden]) { pointer-events: auto; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.55);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(20rem, 88vw);
  background: var(--color-bg-elevated);
  border-left: 1px solid var(--color-border);
  padding: calc(var(--space-16) + env(safe-area-inset-top)) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.drawer-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding-inline: var(--space-3);
}
.drawer-panel a:hover { background: var(--color-surface-2); }
.drawer-close {
  position: absolute;
  top: calc(var(--space-4) + env(safe-area-inset-top));
  right: var(--space-4);
}

/* Hero */
.hero {
  padding: clamp(var(--space-8), 6vw, var(--space-16)) 0 clamp(var(--space-10), 7vw, var(--space-20));
  position: relative;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 50%;
  background: radial-gradient(closest-side, oklch(0.5 0.16 268 / 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (width >= 960px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-12); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-soft);
}
.hero h1 {
  margin-top: var(--space-5);
  font-size: var(--text-3xl);
  font-weight: 700;
  max-width: 14ch;
  letter-spacing: -0.045em;
}
.hero h1 .accent {
  color: var(--color-accent);
}
.lede {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  max-width: 46ch;
  font-size: var(--text-base);
}
.hero-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.stats {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 28rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.stat-label {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}
@media (width < 960px) {
  .hero { text-align: center; }
  .hero h1 { max-width: 16ch; margin-inline: auto; }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 14rem; }
  .stats { margin-inline: auto; }
  .eyebrow { margin-inline: auto; }
}

/* UI cards / product mock */
.ui-shell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  min-width: 0;
}
.live-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.ui-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-inline: var(--space-1);
}
.ui-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 600;
}
.ui-title { font-weight: 650; font-size: var(--text-sm); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-ok { background: var(--color-success-soft); color: var(--color-success); }
.badge-watch { background: var(--color-warning-soft); color: var(--color-warning); }
.badge-info { background: var(--color-primary-soft); color: var(--color-accent); }
.badge-raw { background: var(--color-error-soft); color: var(--color-error); }
.badge-new { background: var(--color-primary-soft); color: var(--color-accent); }
.dash-grid {
  display: grid;
  gap: var(--space-3);
}
.dash-grid > * { min-width: 0; }
.feature > * { min-width: 0; }
@media (width >= 560px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
.tile {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.tile-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.tile-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: var(--space-1);
}
.tile-sub { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-1); }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: 0.45rem;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
}
.row:last-child { border-bottom: 0; }
.mono { font-family: var(--font-mono); font-size: 0.8em; font-variant-numeric: tabular-nums; }
.insight {
  margin-top: var(--space-3);
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  overflow: hidden;
  margin-top: var(--space-2);
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--color-primary);
  border-radius: inherit;
}

/* Audience + banks */
.strip {
  padding-block: var(--space-8);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.pill {
  padding: 0.45rem 0.85rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
}
.marquee-wrap {
  margin-top: var(--space-8);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-label {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.marquee-track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.bank {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
.section-tight { padding-block: clamp(var(--space-10), 6vw, var(--space-16)); }
.kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}
.section h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-3);
  max-width: 24ch;
}
.accent { color: var(--color-accent); }
.section .sub {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  max-width: 52ch;
}
.center { text-align: center; }
.center h2,
.center .sub,
.center .kicker { margin-inline: auto; }
.center h2 { max-width: 28ch; }

/* Decoder */
.drop-card {
  margin-top: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  max-width: 560px;
  margin-inline: auto;
}
.drop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-weight: 700;
}
.dropzone {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-2);
  border: 1.5px dashed oklch(from var(--color-primary) l c h / 0.45);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  min-height: 160px;
  padding: var(--space-8) var(--space-4);
  text-align: center;
  cursor: pointer;
  width: 100%;
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.dropzone strong { display: block; margin-top: 0; }
.dropzone span { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 32ch; }
.fine {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}
.fine a { text-decoration: underline; text-underline-offset: 2px; }

/* Grids */
.cards-4 {
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-4);
}
@media (width >= 720px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (width >= 1100px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  margin-bottom: var(--space-2);
}
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.mini {
  margin-top: var(--space-4);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
}

/* Stand */
.stand-copy { max-width: 70ch; color: var(--color-text-muted); margin-top: var(--space-4); }
.stat-grid {
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-4);
}
@media (width >= 800px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat-card .stat-num { font-size: var(--text-2xl); }
.guarantee {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
}
@media (width >= 800px) {
  .guarantee { grid-template-columns: 1fr 1fr; }
}
.check-title {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-success);
  color: var(--color-success);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.check svg { width: 12px; height: 12px; }

/* Feature rows */
.feature {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(var(--space-8), 5vw, var(--space-14));
}
@media (width >= 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .feature.flip .feature-copy { order: 2; }
}
.feature h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-3);
  max-width: 18ch;
}
.feature .copy { margin-top: var(--space-3); color: var(--color-text-muted); max-width: 46ch; }
.soon-box {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-8);
}

/* Compare */
.compare {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}
@media (width >= 800px) {
  .compare { grid-template-columns: 1fr 1fr; }
}
.compare .card.glow { box-shadow: var(--shadow-glow); border-color: oklch(from var(--color-primary) l c h / 0.35); }

/* Table */
.table-wrap {
  margin-top: var(--space-8);
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  min-width: 640px;
  font-size: var(--text-sm);
}
.cmp th,
.cmp td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-divider);
}
.cmp th:first-child,
.cmp td:first-child { text-align: left; font-weight: 600; }
.cmp thead th {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.cmp tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--color-success); font-weight: 700; }
.no { color: var(--color-text-faint); }
.soon { color: var(--color-accent); font-size: var(--text-xs); font-weight: 700; }

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bubble {
  max-width: 92%;
  padding: var(--space-3) var(--space-4);
  border-radius: 1rem;
  font-size: var(--text-sm);
}
.bubble.user {
  margin-left: auto;
  background: var(--color-surface-offset);
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

/* Walkthrough */
.walk {
  display: grid;
  gap: var(--space-4);
}
@media (width >= 860px) {
  .walk { grid-template-columns: 240px 1fr; }
}
.walk-nav {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
@media (width >= 860px) {
  .walk-nav { flex-direction: column; overflow: visible; }
}
.walk-btn {
  text-align: left;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  white-space: nowrap;
}
.walk-btn small { display: block; color: var(--color-text-muted); font-weight: 500; }
.walk-btn[aria-selected="true"] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}
.walk-panel[hidden] { display: none; }

/* Situations */
.sit-grid {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}
@media (width >= 720px) {
  .sit-grid { grid-template-columns: 1fr 1fr; }
}
@media (width >= 1100px) {
  .sit-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Calculator */
.slider-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--color-primary);
  height: 44px;
}
.loan-out {
  margin-top: var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
}
.loan-out .tile-value { font-size: var(--text-2xl); }

/* Pricing */
.price-grid {
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-4);
}
@media (width >= 800px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
}
.price .amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: var(--space-2);
}
.price ul {
  margin: var(--space-6) 0;
  display: grid;
  gap: var(--space-3);
}
.price li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
}
.price .btn { margin-top: auto; }
.price {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.price.featured { box-shadow: var(--shadow-glow); border-color: oklch(from var(--color-primary) l c h / 0.4); }
.plan-tag {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Trust */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.trust-pills span {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* FAQ */
.faq {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
}
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-5);
}
.faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--color-text-muted);
  font-size: 1.25rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  max-width: 70ch;
}

/* Final CTA */
.final {
  display: grid;
  gap: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  box-shadow: var(--shadow-md);
}
@media (width >= 860px) {
  .final { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}

/* Footer */
.site-footer {
  padding: var(--space-16) 0 calc(var(--space-12) + var(--safe-bottom));
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.foot-grid {
  display: grid;
  gap: var(--space-8);
}
@media (width >= 800px) {
  .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}
.site-footer h2 {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}
.site-footer ul { display: grid; gap: var(--space-2); }
.site-footer a:hover { color: var(--color-text); }
.legal { margin-top: var(--space-10); font-size: var(--text-xs); color: var(--color-text-faint); }

/* Cookie + sticky mobile CTA */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: oklch(from var(--color-bg-elevated) l c h / 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-bottom));
}
.cookie-inner {
  width: min(100%, var(--content-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
}
.cookie p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; }
.cookie a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

.sticky-cta {
  display: none;
}
@media (width < 720px) {
  body.has-sticky .sticky-cta {
    display: flex;
    position: fixed;
    left: var(--space-3);
    right: var(--space-3);
    bottom: calc(var(--space-3) + var(--safe-bottom));
    z-index: 40;
    justify-content: center;
  }
  body.has-sticky .sticky-cta .btn { width: 100%; box-shadow: var(--shadow-lg); }
}

/* Chart bars */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 72px;
  margin: var(--space-3) 0;
}
.week i {
  display: block;
  background: var(--color-surface-offset);
  border-radius: 4px 4px 0 0;
  height: var(--h, 40%);
}
.week i.hot { background: var(--color-error); }

.ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 65%, var(--color-surface-offset) 0);
  display: grid;
  place-items: center;
}
.ring span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vis-hidden { display: none; }

body.has-cookie {
  padding-bottom: calc(6.5rem + var(--safe-bottom));
}
@media (width < 720px) {
  body.has-cookie {
    padding-bottom: calc(8.5rem + var(--safe-bottom));
  }
  body.has-cookie.has-sticky {
    padding-bottom: calc(14.5rem + var(--safe-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.tool-layout .drop-card {
  margin-top: 0;
  margin-inline: 0;
  max-width: none;
}
p { max-width: 100%; }
@media (width < 720px) {
  .cookie { padding-block: 0.55rem; }
  .cookie p { font-size: 0.75rem; line-height: 1.35; }
  .cookie-actions .btn { min-height: 40px; padding-inline: 0.75rem; }
}
