/* ═══════════════════════════════════════════════════════════════════════════
   Yapped — warm cream canvas, saturated one-idea-per-card blocks, chunky type.
   The loudness is deliberate and bounded: colour lives in the cards, the page
   around them stays calm so the numbers land.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ol, ul, figure, dl { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }

:root {
  /* canvas + ink */
  --paper:      #fff5e8;
  --paper-2:    #fffaf2;
  --ink:        #17131f;
  --ink-2:      #4a4356;
  --ink-3:      #7d7589;
  --rule:       #e6dbc9;
  --ring:       #17131f;
  --shadow:     rgba(23, 19, 31, .16);

  /* card themes */
  --lime:       #c6f24e;  --lime-ink:  #161c06;
  --coral:      #ff5c45;  --coral-ink: #2a0806;
  --blue:       #3a5bff;  --blue-ink:  #ffffff;
  --pink:       #ff9bd9;  --pink-ink:  #2c0a23;
  --tang:       #ffb03a;  --tang-ink:  #241300;
  --mint:       #3fe3ac;  --mint-ink:  #052016;
  --violet:     #8c6bff;  --violet-ink:#ffffff;
  --butter:     #ffe45c;  --butter-ink:#241f00;
  --night:      #17131f;  --night-ink: #fff5e8;
  --good:       #12805a;  /* the green the privacy shield wears */

  --display: 'Gabarito', ui-sans-serif, system-ui, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  --r-sm: 12px; --r: 20px; --r-lg: 30px; --r-xl: 42px;
  --pad: clamp(20px, 4.6vw, 46px);
  --maxw: 1140px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.16, 1.36, .3, 1);
}

html[data-theme="dark"] {
  --paper:   #100d17;
  --paper-2: #191424;
  --ink:     #fff5e8;
  --ink-2:   #bdb3c9;
  --ink-3:   #8b8199;
  --rule:    #2b2438;
  --ring:    #000000;
  --shadow:  rgba(0, 0, 0, .5);
  --good:    #3fd39a;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper grain, keeps flat colour from looking like a swatch */
.grain {
  position: fixed; inset: 0; z-index: 9;
  pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .06; }

/* ─────────────────────────────────────────────────────────── screen switching */
.screen { display: none; }
.screen.is-on { display: block; }
.loading.is-on, .report.is-on { display: block; }

/* ───────────────────────────────────────────────────────────────────── header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px var(--pad);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.brand { text-decoration: none; }
.brand-bubble {
  display: inline-block;
  font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: -.02em; color: #fff;
  background: var(--blue);
  padding: 6px 16px 8px;
  border-radius: 999px 999px 999px 6px;
  transition: transform .34s var(--ease-pop);
}
.brand:hover .brand-bubble { transform: rotate(-3deg) scale(1.04); }
.top-right { display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper-2);
}
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.pill-lock { color: var(--ink-2); }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--rule); border-radius: 12px;
  background: var(--paper-2); cursor: pointer;
  transition: transform .18s var(--ease), background .18s;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--paper); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.i-moon { display: none; }
html[data-theme="dark"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: block; }

/* ─────────────────────────────────────────────────────────────────────── hero */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 6vw, 76px) var(--pad) clamp(40px, 7vw, 90px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 20px;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--coral);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.5); opacity: .55 } }

.hero-h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(52px, 8.6vw, 96px);
  /* Roomy enough that the highlight block on line two can never ride up over
     line one — the old .92 clipped "Your year" behind it. */
  line-height: 1.06; letter-spacing: -.045em;
  display: grid;
}
.hero-h1 .l1, .hero-h1 .l2 { display: block; white-space: nowrap; }
.hero-h1 .l2 { margin-top: .04em; }
.hero-h1 em {
  font-style: normal; display: inline-block;
  background: var(--lime); color: var(--lime-ink);
  padding: .02em .14em .1em; border-radius: 12px;
  box-decoration-break: clone;
}
.hero-sub {
  margin: 24px 0 28px; max-width: 30em;
  font-size: clamp(16.5px, 1.5vw, 19.5px); color: var(--ink-2);
}

/* primary call to action + the promise beside it */
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-lg { font-size: 17px; padding: 15px 28px; }
.promise {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--good);
}
.shield { width: 17px; height: 19px; flex: none; }
.pill-lock .shield { width: 14px; height: 16px; color: var(--good); }
.desktop-only { margin-top: 14px; font-size: 13.4px; color: var(--ink-3); }
.re-ic { display: block; color: var(--good); margin-bottom: 4px; }
.re-ic .shield { width: 18px; height: 20px; }

/* animated entrance for hero pieces */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .04s }
.hero-copy > :nth-child(2) { animation-delay: .1s }
.hero-copy > :nth-child(3) { animation-delay: .18s }
.hero-copy > :nth-child(4) { animation-delay: .26s }
.hero-copy > :nth-child(6) { animation-delay: .34s }
@keyframes rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }

/* ─────────────────────────────────────────────────────────────────── dropzone */
.drop {
  position: relative; display: block; width: 100%;
  border: 2.5px dashed color-mix(in srgb, var(--ring) 34%, transparent);
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 14px;
  background: var(--paper-2);
  padding: clamp(26px, 4vw, 40px) 26px;
  cursor: pointer; text-align: center;
  transition: transform .28s var(--ease-pop), border-color .22s, background .22s, box-shadow .28s;
}
.drop:hover, .drop:focus-visible {
  border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--paper-2));
  transform: translateY(-3px); outline: none;
  box-shadow: 0 16px 40px -18px var(--shadow);
}
.drop.dragging {
  border-color: var(--blue); border-style: solid;
  background: color-mix(in srgb, var(--blue) 13%, var(--paper-2));
  transform: scale(1.015);
}
.drop-bubbles { display: flex; justify-content: center; gap: 7px; margin-bottom: 16px; }
.bb { width: 34px; height: 24px; border-radius: 999px 999px 3px 999px; background: var(--blue); opacity: .9; }
.bb2 { width: 46px; background: var(--pink); border-radius: 999px 999px 999px 3px; }
.bb3 { width: 26px; background: var(--lime); }
.drop.dragging .bb, .drop:hover .bb { animation: bounce .7s var(--ease) infinite alternate; }
.bb2 { animation-delay: .1s !important }
.bb3 { animation-delay: .2s !important }
@keyframes bounce { to { transform: translateY(-7px) } }
.drop-lead { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -.02em; }
.drop-lead code { font-family: var(--body); font-weight: 700; background: var(--butter); color: var(--butter-ink); padding: 1px 9px; border-radius: 8px; }
.drop-sub { color: var(--ink-3); font-size: 15px; margin-top: 6px; }
.fauxlink { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .fauxlink { color: #93a8ff; }
.drop-err {
  margin-top: 14px; padding: 13px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--coral) 17%, var(--paper-2));
  border: 1.5px solid var(--coral); color: var(--ink);
  font-size: 15px; font-weight: 500;
}

/* Three equal columns whose headings and body text share a baseline: the rows
   are declared on the grid, not left to each item's own content height. */
.reassure {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto; gap: 4px 14px; margin-top: 30px;
  align-items: start;
}
.re-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 3px; }
.re-item strong { font-family: var(--display); font-weight: 800; font-size: 16px; align-self: start; }
.re-item span { font-size: 13.6px; color: var(--ink-3); line-height: 1.42; align-self: start; }
@supports not (grid-template-rows: subgrid) {
  .re-item { grid-row: auto; grid-template-rows: none; }
}

/* ────────────────────────────────────────────────────────────── phone artwork */
.hero-art { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(300px, 78vw); padding: 15px 13px 20px;
  background: var(--night); border-radius: 44px;
  box-shadow: 0 34px 70px -26px var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.09);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.6deg) } 50% { transform: translateY(-13px) rotate(-1.6deg) } }
.phone-notch { width: 82px; height: 5px; border-radius: 99px; background: #3a3348; margin: 0 auto 15px; }
.thread { display: grid; gap: 8px; }
.msg {
  max-width: 82%; padding: 9px 14px; border-radius: 19px;
  font-size: 14px; line-height: 1.34; animation: pop .5s var(--ease-pop) both;
}
.msg.in { background: #322b40; color: #f3eefa; border-bottom-left-radius: 5px; justify-self: start; }
.msg.out { background: var(--blue); color: #fff; border-bottom-right-radius: 5px; justify-self: end; }
.msg.sticker { background: none; font-size: 34px; padding: 0 4px; }
.msg:nth-child(1) { animation-delay: .5s } .msg:nth-child(2) { animation-delay: .78s }
.msg:nth-child(3) { animation-delay: 1.06s } .msg:nth-child(4) { animation-delay: 1.34s }
.msg:nth-child(5) { animation-delay: 1.62s } .msg:nth-child(6) { animation-delay: 1.9s }
@keyframes pop { from { opacity: 0; transform: translateY(9px) scale(.9) } to { opacity: 1; transform: none } }
.typing { display: flex; gap: 4px; padding: 11px 14px; background: #322b40; border-radius: 19px 19px 19px 5px; justify-self: start; animation: pop .5s 2.2s var(--ease-pop) both; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8b8199; animation: blink 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .2s } .typing span:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%,60%,100% { opacity: .3 } 30% { opacity: 1 } }

.art-badge {
  position: absolute; font-family: var(--display); font-weight: 800; font-size: 14.5px;
  padding: 9px 15px; border-radius: 999px; border: 2px solid var(--ring);
  box-shadow: 3px 3px 0 var(--ring); white-space: nowrap;
}
.badge-a { background: var(--lime); color: var(--lime-ink); top: -2%; left: -7%; transform: rotate(-8deg); animation: sway 5s ease-in-out infinite; }
.badge-b { background: var(--pink); color: var(--pink-ink); bottom: 11%; right: -3%; transform: rotate(7deg); animation: sway 5.6s ease-in-out .4s infinite reverse; }
@keyframes sway { 0%,100% { rotate: -8deg } 50% { rotate: -3deg } }

/* ─────────────────────────────────────────────────────────────── how it works */
.how {
  max-width: 820px; margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 9vw, 110px);
}
.how-h { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.03em; margin-bottom: 26px; }
.how-h code { font-family: var(--body); font-size: .82em; background: var(--mint); color: var(--mint-ink); padding: 2px 10px; border-radius: 9px; }
.steps { display: grid; gap: 14px; margin-bottom: 26px; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; background: var(--paper-2);
  border: 1.5px solid var(--rule); border-radius: var(--r);
}
.step-n {
  display: grid; place-items: center; width: 32px; height: 32px;
  font-family: var(--display); font-weight: 800; font-size: 16px;
  background: var(--ink); color: var(--paper); border-radius: 50%;
}
.steps strong { font-family: var(--display); font-weight: 700; font-size: 17.5px; }
.steps p { color: var(--ink-2); font-size: 15px; margin-top: 3px; }
kbd {
  font-family: var(--body); font-size: 12.5px; font-weight: 700;
  padding: 2px 7px; border: 1.5px solid var(--rule); border-bottom-width: 3px;
  border-radius: 7px; background: var(--paper); margin-right: 2px;
}
.pathrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pathrow code {
  font-size: 13.4px; background: var(--paper); border: 1.5px solid var(--rule);
  padding: 6px 11px; border-radius: 9px; word-break: break-all;
}
.copy {
  font-size: 13px; font-weight: 700; padding: 6px 13px; cursor: pointer;
  border: 1.5px solid var(--ring); border-radius: 9px; background: var(--butter); color: var(--butter-ink);
  transition: transform .16s var(--ease);
}
.copy:hover { transform: translateY(-1px); }
.copy.done { background: var(--mint); color: var(--mint-ink); }

.faq { border: 1.5px solid var(--rule); border-radius: var(--r); background: var(--paper-2); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 17px 22px; font-family: var(--display);
  font-weight: 700; font-size: 17px; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 24px; font-weight: 700; color: var(--ink-3);
  transition: transform .3s var(--ease); line-height: 1;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.2px; display: grid; gap: 11px; }
.faq-body code { background: var(--paper); border: 1px solid var(--rule); padding: 1px 6px; border-radius: 6px; font-size: 13.4px; }
.faq-lead { font-family: var(--display); font-weight: 700; font-size: 17.5px; color: var(--ink); letter-spacing: -.015em; }

/* ───────────────────────────────────────────────────────── contacts step */
.contacts { min-height: 74vh; display: none; place-items: center; padding: clamp(30px, 6vw, 70px) var(--pad); }
.contacts.is-on { display: grid; }
.cts-wrap { width: min(640px, 100%); }
.cts-kicker { font-size: 13px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); }
.cts-h { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.04em; margin: 12px 0 14px; line-height: 1.04; }
.cts-sub { color: var(--ink-2); font-size: 16.5px; margin-bottom: 26px; max-width: 46ch; }
.cts-sub em { font-style: normal; font-weight: 700; color: var(--ink); }
.steps-tight li { padding: 15px 18px; }
.drop-sm { padding: 26px 22px; margin-top: 6px; }
.cts-actions { display: flex; justify-content: center; margin-top: 22px; }

/* restored-from-storage banner */
.restored {
  max-width: var(--maxw); margin: 12px auto 0; padding: 11px 16px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--good) 13%, var(--paper-2));
  border: 1.5px solid color-mix(in srgb, var(--good) 40%, transparent);
  border-radius: 999px; font-size: 14px; width: fit-content;
}
.restored[hidden] { display: none; }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
}
html[data-theme="dark"] .linkbtn { color: #93a8ff; }
.btn-danger { border-color: var(--coral); color: var(--coral); }
html[data-theme="dark"] .btn-danger { color: #ff8f7d; }

/* ──────────────────────────────────────────────────────────────────── loading */
.loading { min-height: 78vh; display: none; place-items: center; padding: 60px var(--pad); }
.loading.is-on { display: grid; }
.load-wrap { text-align: center; max-width: 460px; width: 100%; }
.load-bubbles { display: flex; justify-content: center; gap: 9px; margin-bottom: 26px; }
.load-bubbles span {
  width: 15px; height: 15px; border-radius: 50%;
  animation: hop .9s var(--ease) infinite alternate;
}
.load-bubbles span:nth-child(1) { background: var(--blue) }
.load-bubbles span:nth-child(2) { background: var(--coral); animation-delay: .15s }
.load-bubbles span:nth-child(3) { background: var(--lime); animation-delay: .3s }
@keyframes hop { to { transform: translateY(-15px) } }
.load-count {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(50px, 11vw, 92px); line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.load-label { color: var(--ink-2); font-size: 16px; margin-top: 6px; min-height: 1.5em; }
.load-track { height: 10px; background: var(--rule); border-radius: 99px; overflow: hidden; margin: 24px 0 14px; }
.load-bar {
  height: 100%; width: 4%; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--violet) 45%, var(--pink));
  transition: width .35s var(--ease);
}
.load-fine { font-size: 13.4px; color: var(--ink-3); }

/* ───────────────────────────────────────────────────────────────────── report */
.report { display: none; }
.report.is-on { display: block; }
.yearbar {
  position: sticky; top: 66px; z-index: 15;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
}
.yearbar::-webkit-scrollbar { display: none; }
.ychip {
  flex: none; font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 8px 17px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--rule); background: var(--paper-2); color: var(--ink-2);
  transition: transform .2s var(--ease-pop), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.ychip:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.ychip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ychip small { opacity: .55; font-weight: 600; margin-left: 5px; font-size: .84em; }
.ychip-all { background: var(--lime); color: var(--lime-ink); border-color: var(--ring); }
.ychip-all.on { background: var(--ink); color: var(--paper); }
.ychip.off { opacity: .45; }

.cards {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--pad) 40px;
  display: grid; gap: clamp(16px, 2.4vw, 26px);
}

/* card shell ---------------------------------------------------------------- */
.card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 48px);
  border: 2px solid var(--ring);
  box-shadow: 6px 6px 0 var(--ring);
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.card.seen { opacity: 1; transform: none; }
.card--lime   { background: var(--lime);   color: var(--lime-ink) }
.card--coral  { background: var(--coral);  color: var(--coral-ink) }
.card--blue   { background: var(--blue);   color: var(--blue-ink) }
.card--pink   { background: var(--pink);   color: var(--pink-ink) }
.card--tang   { background: var(--tang);   color: var(--tang-ink) }
.card--mint   { background: var(--mint);   color: var(--mint-ink) }
.card--violet { background: var(--violet); color: var(--violet-ink) }
.card--butter { background: var(--butter); color: var(--butter-ink) }
.card--night  { background: var(--night);  color: var(--night-ink) }
.card--paper  { background: var(--paper-2); color: var(--ink); box-shadow: 4px 4px 0 var(--rule); border-color: var(--rule); }

.card-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  opacity: .62; margin-bottom: 14px;
}
.card-h {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 3.5vw, 40px); line-height: 1.03; letter-spacing: -.035em;
}
.card-note { margin-top: 14px; font-size: clamp(15px, 1.4vw, 17.5px); opacity: .78; max-width: 44ch; }

/* the giant number ---------------------------------------------------------- */
.bignum {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(74px, 17vw, 190px); line-height: .82;
  letter-spacing: -.055em; font-variant-numeric: tabular-nums;
  display: block; margin: 10px 0 0;
  /* .82 line-height clips descenders on commas — pad below instead of raising it */
  padding-bottom: .12em;
}
.bignum-sm { font-size: clamp(50px, 10vw, 104px); }
.bigunit { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 2.2vw, 27px); letter-spacing: -.02em; opacity: .72; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(18px, 3vw, 40px); align-items: end; }
.substat { display: grid; gap: 2px; }
.substat b { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.substat span { font-size: 13.6px; font-weight: 600; opacity: .68; letter-spacing: .01em; }

/* sent / received split bar ------------------------------------------------- */
.ratio { display: flex; height: 46px; border-radius: 14px; overflow: hidden; border: 2px solid currentColor; margin-top: 26px; }
.ratio > div { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14.5px; transition: flex-grow .9s var(--ease); }
.ratio .mine { background: currentColor; }
.ratio .mine span { color: var(--paper); mix-blend-mode: normal; }
html[data-theme="dark"] .ratio .mine span { color: var(--night); }
.ratio .theirs { background: color-mix(in srgb, currentColor 16%, transparent); }

/* leaderboard -------------------------------------------------------------- */
.board { display: grid; gap: 9px; margin-top: 24px; }
.row {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 16px; border-radius: 15px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  position: relative; overflow: hidden;
}
.row > * { position: relative; }
/* Must out-specify `.row > *` above, or the fill claims a grid column and
   shoves the whole row sideways. */
.row > .row-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: color-mix(in srgb, currentColor 13%, transparent);
  transition: width 1.1s var(--ease);
}
.row-rank { font-family: var(--display); font-weight: 900; font-size: 19px; opacity: .5; font-variant-numeric: tabular-nums; }
.row-name { font-family: var(--display); font-weight: 700; font-size: 17.5px; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name .tag { font-family: var(--body); font-size: 11.5px; font-weight: 700; opacity: .55; margin-left: 8px; text-transform: uppercase; letter-spacing: .07em; }
.row-meta { font-size: 12.8px; opacity: .62; font-weight: 500; margin-top: 1px; }
.row-n { font-family: var(--display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.row-n small { display: block; font-size: 11.5px; font-weight: 600; opacity: .58; }
.row-1 { background: color-mix(in srgb, currentColor 17%, transparent); }
.row-hide {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%) scale(.8);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease-pop);
  font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent);
}
.row:hover .row-hide { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }

/* hour bars ---------------------------------------------------------------- */
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 190px; margin-top: 30px; }
.hbar {
  border-radius: 5px 5px 3px 3px; background: currentColor; opacity: .34;
  min-height: 3px; height: 0; transition: height 1s var(--ease), opacity .2s;
  position: relative;
}
.hbar.peak { opacity: 1; }
.hbar:hover { opacity: .9; }
.hbar[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); white-space: nowrap; z-index: 4;
  font-size: 12px; font-weight: 700; font-family: var(--body);
  padding: 6px 10px; border-radius: 9px; background: var(--ink); color: var(--paper);
  pointer-events: none;
}
.hours-axis { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 8px; font-size: 10.5px; font-weight: 700; opacity: .5; text-align: center; }
.hours-axis span:not(:nth-child(4n+1)) { visibility: hidden; }

/* month strip -------------------------------------------------------------- */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; margin-top: 26px; }
.mbar { background: currentColor; opacity: .32; border-radius: 7px 7px 4px 4px; height: 0; transition: height 1s var(--ease); position: relative; }
.mbar.top { opacity: 1; }
.months-axis { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 8px; font-size: 11px; font-weight: 700; opacity: .55; text-align: center; }

/* heat grid --------------------------------------------------------------- */
.heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2.5px; margin-top: 26px; }
.heat-lab { font-size: 10.5px; font-weight: 700; opacity: .55; display: grid; place-items: center; }
.hcell { aspect-ratio: 1; border-radius: 3.5px; background: currentColor; transition: transform .16s var(--ease); }
.hcell:hover { transform: scale(1.5); z-index: 3; }

/* awards ------------------------------------------------------------------ */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 26px; }
.award {
  padding: 18px 19px; border-radius: 17px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent);
  transition: transform .26s var(--ease-pop);
}
.award:hover { transform: translateY(-4px) rotate(-.7deg); }
.award-t { font-family: var(--display); font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.award-p { font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -.025em; margin: 7px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-s { font-size: 13px; font-weight: 600; opacity: .66; }
.award-sub { font-size: 12.4px; opacity: .55; margin-top: 6px; line-height: 1.35; }

/* chips (words, emoji) ---------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.chip {
  font-family: var(--display); font-weight: 700;
  padding: 8px 15px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border: 1.5px solid color-mix(in srgb, currentColor 26%, transparent);
  transition: transform .22s var(--ease-pop);
}
.chip:hover { transform: translateY(-3px) rotate(-2deg); }
.chip b { font-variant-numeric: tabular-nums; opacity: .55; margin-left: 7px; font-weight: 700; font-size: .86em; }
.chip-1 { font-size: 21px; }
.chip-2 { font-size: 18px; }
.chip-3 { font-size: 16px; }

.emoji-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.emo { text-align: center; }
.emo-g { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.emo-n { font-family: var(--display); font-weight: 800; font-size: 14px; opacity: .66; font-variant-numeric: tabular-nums; }

/* tapback row ------------------------------------------------------------- */
.tapbacks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tb {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 11%, transparent);
  border: 1.5px solid color-mix(in srgb, currentColor 24%, transparent);
}
.tb-g { font-size: 22px; }
.tb-n { font-family: var(--display); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }

/* archetype card ---------------------------------------------------------- */
.arch { text-align: center; padding: clamp(34px, 6vw, 70px) clamp(24px, 4vw, 48px); }
.arch-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .6; }
.arch-name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(38px, 8.2vw, 92px); line-height: .92; letter-spacing: -.045em;
  margin: 16px 0 18px;
}
.arch-blurb { font-size: clamp(16px, 1.7vw, 21px); max-width: 30ch; margin: 0 auto; opacity: .82; }
.arch-ev { margin-top: 22px; display: inline-block; font-family: var(--display); font-weight: 700; font-size: 14.5px; padding: 9px 18px; border-radius: 999px; border: 2px solid currentColor; }
.arch-runner { margin-top: 20px; font-size: 13.6px; opacity: .6; }

/* Dunbar circles ---------------------------------------------------------- */
.circles { display: grid; gap: 12px; margin-top: 26px; }
.circ { display: grid; grid-template-columns: 118px 1fr 52px; gap: 14px; align-items: center; }
.circ b { font-family: var(--display); font-weight: 800; font-size: 14.5px; }
.circ i {
  display: block; height: 20px; border-radius: 6px; width: 0;
  background: currentColor; opacity: .85;
  transition: width 1s var(--ease);
}
.circ:nth-child(2) i { opacity: .62 }
.circ:nth-child(3) i { opacity: .42 }
.circ:nth-child(4) i { opacity: .26 }
.circ span { font-family: var(--display); font-weight: 800; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }

/* warmth ledger ----------------------------------------------------------- */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 26px; }
.led {
  padding: 15px 16px; border-radius: 15px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent);
}
.led b { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.led span { display: block; font-size: 12.6px; font-weight: 600; opacity: .68; margin-top: 5px; }
.led-bad { opacity: .74; }

/* drift columns (rising / new / fading, pursuer / distancer) --------------- */
.drift { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin-top: 24px; }
.drift-h {
  font-family: var(--display); font-weight: 800; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .07em; opacity: .62; margin-bottom: 10px;
}
.drift-new::before { content: '✦ '; }
.drift-up::before { content: '↑ '; }
.drift-down::before { content: '↓ '; }
.mini-list { display: grid; gap: 7px; }
.ml-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 7px; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.ml-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ml-name { font-family: var(--display); font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-val { font-size: 12.8px; font-weight: 600; opacity: .64; white-space: nowrap; }

/* quote / longest message ------------------------------------------------- */
.quote {
  margin-top: 24px; padding: 22px 24px; border-radius: 18px 18px 18px 6px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 16px; line-height: 1.5; max-height: 12em; overflow: hidden;
  position: relative; font-style: italic;
}
.quote::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3.4em; background: linear-gradient(transparent, color-mix(in srgb, var(--paper) 70%, transparent)); }

/* ─────────────────────────────────────────────────────────────────── footer */
.foot { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) clamp(60px, 9vw, 110px); text-align: center; }
.foot-big { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 6vw, 62px); letter-spacing: -.045em; margin-bottom: 26px; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.foot-fine { margin-top: 26px; font-size: 13.4px; color: var(--ink-3); }

.btn {
  font-family: var(--display); font-weight: 700; font-size: 15.5px;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--ring); background: var(--paper-2); color: var(--ink);
  transition: transform .2s var(--ease-pop), box-shadow .2s;
  box-shadow: 3px 3px 0 var(--ring);
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ring); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ring); }
.btn-primary { background: var(--blue); color: #fff; }

/* ─────────────────────────────────────────────────────────────────── sheets */
/* `display:grid` on a class beats the UA rule for [hidden], so restate it. */
.sheet[hidden] { display: none; }
.sheet {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--night) 62%, transparent);
  backdrop-filter: blur(7px);
  animation: fade .26s var(--ease);
}
@keyframes fade { from { opacity: 0 } }
.sheet-card {
  width: min(620px, 100%); max-height: 88vh; overflow: auto;
  background: var(--paper); border: 2px solid var(--ring);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 34px 80px -22px rgba(0,0,0,.5);
  animation: sheetin .34s var(--ease-pop);
}
@keyframes sheetin { from { opacity: 0; transform: translateY(22px) scale(.97) } }
.sheet-card-share { width: min(430px, 100%); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.sheet-head h2 { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.028em; }
.sheet-note { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.ig-list { display: grid; gap: 7px; }
.ig-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; border: 1.5px solid var(--rule); border-radius: 13px; background: var(--paper-2); }
.ig-row label { font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-why { font-size: 11.6px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 99px; }
.ig-why.service { background: var(--tang); color: var(--tang-ink) }
.ig-why.self { background: var(--mint); color: var(--mint-ink) }
.ig-why.manual { background: var(--pink); color: var(--pink-ink) }
.ig-n { font-size: 12.6px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--blue); cursor: pointer; }
.sheet-foot { margin-top: 20px; display: flex; justify-content: flex-end; }
.sheet-foot-split { justify-content: space-between; align-items: center; }
.chk { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.share-preview { border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--rule); background: var(--paper-2); }
.share-preview canvas { width: 100%; height: auto; }
.ig-empty { padding: 22px; text-align: center; color: var(--ink-3); font-size: 14.5px; }

/* ─────────────────────────────────────────────────────────────── responsive */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 10px; }
  .phone { width: min(250px, 66vw); }
  .art-badge { font-size: 13px; }
  .yearbar { top: 62px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .reassure { grid-template-columns: 1fr; gap: 11px; }
  .card { box-shadow: 4px 4px 0 var(--ring); }
  .hours { height: 140px; gap: 2px; }
  .heat { grid-template-columns: 26px repeat(24, 1fr); gap: 1.5px; }
  .row { grid-template-columns: 22px 1fr auto; gap: 10px; padding: 11px 12px; }
  .row-name { font-size: 15.5px; }
  .months { height: 110px; gap: 4px; }
  .months-axis { font-size: 9.5px; }
  .top { padding: 11px 16px; }
  .pill-lock { display: none; }
  /* Stays absolute on touch — as a static 4th child it would wrap the grid row. */
  .row-hide { opacity: 1; pointer-events: auto; transform: translateY(-50%); right: 6px; top: 50%; }
  .row { padding-right: 62px; }
}

/* ─────────────────────────────────────────────────────── reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important; animation-delay: 0s !important;
    transition-duration: .001s !important;
  }
  .card { opacity: 1; transform: none; }
}

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

/* ── quiet attribution ─────────────────────────────────────────────────── */
.byline {
  margin-top: 22px; text-align: center;
  font-size: 12.5px; letter-spacing: .01em; opacity: .75;
}
.byline a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.byline a:hover { opacity: 1; }
.byline span { margin: 0 6px; opacity: .5; }
