:root {
  --bg: oklch(0.985 0.004 250);
  --surface: oklch(1 0 0);
  --ink: oklch(0.22 0.012 250);
  --ink-soft: oklch(0.4 0.012 250);
  --muted: oklch(0.5 0.012 250);
  --line: oklch(0.92 0.008 250);
  --accent: oklch(0.75 0.14 58);
  --accent-hover: oklch(0.72 0.145 56);
  --accent-ink: oklch(0.27 0.05 45);
  --accent-text: oklch(0.58 0.13 55);
  --link: oklch(0.5 0.13 55);
  --link-hover: oklch(0.42 0.12 50);
  --group-55: oklch(0.64 0.15 55);
  --group-145: oklch(0.64 0.15 145);
  --group-235: oklch(0.64 0.15 235);
  --gutter: clamp(20px, 5vw, 32px);
}

html { background: var(--bg); }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

@keyframes slDotRing { 0% { transform: scale(1); opacity: .55 } 70% { transform: scale(3.4); opacity: 0 } 100% { transform: scale(3.4); opacity: 0 } }
@keyframes slDotCore { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.18) } }

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  max-width: 1160px; width: 100%; box-sizing: border-box; margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex; align-items: center;
}
.brand {
  position: relative; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); padding-left: 2px;
}
.brand:hover { color: var(--ink); }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

/* Pulsing brand dot */
.dot-wrap { width: 6px; height: 6px; }
.dot { position: relative; display: block; width: 6px; height: 6px; }
.dot-ring, .dot-core { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); }
.dot-ring { animation: slDotRing 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.dot-core { box-shadow: 0 0 6px var(--accent); animation: slDotCore 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .dot-ring, .dot-core { animation: none; }
  .dot-ring { opacity: 0; }
}

/* Hero */
main { flex: 1; display: flex; flex-direction: column; }
.hero {
  max-width: 1160px; width: 100%; box-sizing: border-box; margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) var(--gutter) clamp(56px, 8vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 540px; min-width: 0; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); }
h1 {
  margin: 0; font-weight: 600; font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05; letter-spacing: -.025em;
}
h1 em { font-style: italic; font-weight: 600; color: var(--accent-text); }
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.cta-block { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-top: 6px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-size: 17px; font-weight: 600;
  box-shadow: 0 8px 22px oklch(0.75 0.14 58 / 0.4);
}
.cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
.reassurance { font-size: 14px; color: var(--muted); }

/* Illustration */
.illustration {
  position: relative; justify-self: center; width: 100%; max-width: 420px;
  padding: 48px 12px 88px; box-sizing: border-box; min-width: 0;
}
.note {
  position: absolute; z-index: 2; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10); padding: 14px 18px;
}
.note-top { top: 0; right: 0; font-size: 15px; font-weight: 500; max-width: 230px; line-height: 1.35; }
.note-bottom { bottom: 0; left: 0; max-width: 260px; display: flex; gap: 12px; align-items: flex-start; }
.note-icon { flex: none; margin-top: 2px; color: var(--accent-text); }
.note-text { display: flex; flex-direction: column; gap: 3px; }
.note-title { font-size: 16px; font-weight: 600; line-height: 1.25; }
.note-sub { font-size: 13px; color: var(--muted); }

.card {
  position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-head { position: relative; padding: 22px 20px 6px 30px; display: flex; flex-direction: column; gap: 4px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.card-sub { font-size: 14px; color: var(--muted); }
.rows { display: flex; flex-direction: column; padding-top: 6px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px 0 30px; }
.row-bought { min-height: 44px; color: var(--muted); }
.row-name { flex: 1; font-size: 16px; }
.row-bought .row-name { font-size: 15px; text-decoration: line-through; }
.row-qty { font-size: 14px; color: var(--muted); }
.row-bought .row-qty { font-size: 13px; opacity: .8; color: inherit; }
.row-price { font-size: 14px; color: var(--ink); }
.row-price-none { color: var(--muted); }
.rows .label { padding: 16px 20px 6px 30px; }

/* Group bars: consecutive items of the same hue share one continuous bar */
.bar { position: absolute; left: 12px; top: 8px; bottom: 8px; width: 5px; border-radius: 3px; }
.row-bought .bar { opacity: .45; }
.bar-start { bottom: 0; border-radius: 3px 3px 0 0; }
.bar-end { top: 0; border-radius: 0 0 3px 3px; }
.g55 { background: var(--group-55); }
.g145 { background: var(--group-145); }
.g235 { background: var(--group-235); }

.total {
  margin-top: 10px; display: flex; align-items: baseline; gap: 8px;
  padding: 14px 20px 18px 24px; border-top: 1px solid var(--line); background: var(--bg);
}
.total-sum { font-size: 20px; font-weight: 600; }
.total-count { font-size: 14px; color: var(--muted); }

/* Benefits */
.benefits { border-top: 1px solid var(--line); }
.benefits-grid {
  max-width: 1160px; box-sizing: border-box; margin: 0 auto;
  padding: clamp(40px, 6vw, 56px) var(--gutter) clamp(48px, 7vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px;
}
.benefit { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 22px; min-width: 0; }
.benefit .bar { left: 0; top: 4px; bottom: 4px; }
.benefit-n { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
h2 { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.benefit p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1160px; box-sizing: border-box; margin: 0 auto;
  padding: 28px var(--gutter); display: flex; align-items: center; gap: 12px;
}
.footer-brand { font-size: 15px; font-weight: 600; }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.footer-year { font-size: 14px; color: var(--muted); }
