/* ==========================================================================
   GoPhoneMe — styles
   ========================================================================== */

:root {
  --paper: #faf7f2;
  --paper-2: #f1ece3;
  --ink: #1b1b2f;
  --ink-2: #4a4a63;
  --ink-3: #7d7d95;
  --line: rgba(27, 27, 47, 0.1);

  --coral: #ff5e5b;
  --coral-2: #ff8a3d;
  --gold: #ffc145;
  --violet: #6c63ff;
  --mint: #3ec97a;

  --meter-a: #ff5e5b;
  --meter-b: #ffc145;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 27, 47, 0.06), 0 4px 12px rgba(27, 27, 47, 0.06);
  --shadow-md: 0 2px 4px rgba(27, 27, 47, 0.06), 0 16px 40px rgba(27, 27, 47, 0.12);
  --shadow-lg: 0 8px 16px rgba(27, 27, 47, 0.08), 0 32px 80px rgba(27, 27, 47, 0.18);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease, background-color 0.18s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-2) 100%);
  box-shadow: 0 6px 18px rgba(255, 94, 91, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(255, 94, 91, 0.45);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(250, 247, 242, 0.75);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none !important;
}
.brand em {
  font-style: normal;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark { width: 28px; height: 28px; color: var(--ink); transition: transform 0.4s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav > a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.site-nav > a:not(.btn):hover { color: var(--ink); text-decoration: none; }

@media (max-width: 560px) {
  .site-nav > a:not(.btn) { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: clip;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.blob-a { width: 520px; height: 520px; left: -160px; top: -140px; background: #ffd6c2; }
.blob-b { width: 460px; height: 460px; right: -140px; top: 40px; background: #d9d6ff; }
.blob-c { width: 380px; height: 380px; left: 35%; bottom: -220px; background: #ffefc2; }

.floater {
  position: absolute;
  font-size: 2rem;
  opacity: 0.5;
  filter: drop-shadow(0 8px 16px rgba(27,27,47,0.15));
  user-select: none;
}
.f1 { left: 2%; top: 6%; font-size: 2.4rem; }
.f2 { left: 44%; top: 9%; }
.f3 { left: 50%; bottom: 8%; font-size: 2.2rem; }
.f4 { left: 22%; bottom: 12%; }

@media (max-width: 900px) { .floater { display: none; } }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy { padding-top: 0.5rem; }

.hero-title {
  display: flex;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}
.hero-title h1 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5.2vw, 4.2rem);
}
.hero-duo { white-space: nowrap; }

.hero-avatar {
  display: block;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #fff6ea 0%, #ffe0c8 100%);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(255, 94, 91, 0.18);
  text-decoration: none !important;
  transition: box-shadow 0.25s ease;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 58%;
  padding: 10px;
  transform-origin: center 45%;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.hero-avatar:hover {
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(255, 94, 91, 0.28);
}
.hero-avatar:hover img {
  transform: scale(1.06) rotate(-6deg);
}

@media (max-width: 560px) {
  .hero-avatar { width: 72px; height: 72px; }
  .hero-avatar img { padding: 7px; }
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hl {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.16em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 0.7s 0.6s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 1.75rem;
}
.lede strong { color: var(--ink); font-weight: 700; }
.lede:has(+ .fine) { margin-bottom: 0.55rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }

.fine { color: var(--ink-3); font-size: 0.85rem; }
.lede + .fine { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Meter card
   -------------------------------------------------------------------------- */

.meter-card {
  position: sticky;
  top: 88px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
}
@media (max-width: 900px) { .meter-card { position: static; } }

.meter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.raised { display: flex; flex-direction: column; }
.amount {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.of { color: var(--ink-3); font-size: 0.95rem; margin-top: 0.35rem; }
.of strong { color: var(--ink); }
.pct {
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-variant-numeric: tabular-nums;
}

.bar {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: visible;
  margin-bottom: 2rem;
}
.bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--meter-a), var(--meter-b));
  box-shadow: 0 4px 14px rgba(255, 120, 80, 0.45);
  overflow: hidden;
}
.bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    rgba(255,255,255,0) 0 12px,
    rgba(255,255,255,0.28) 12px 24px
  );
  background-size: 34px 100%;
  animation: stripes 1.4s linear infinite;
  mix-blend-mode: soft-light;
}
@keyframes stripes { to { background-position: 34px 0; } }

.bar-tip {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 14px;
  background: radial-gradient(circle at 60% 50%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%);
  opacity: 0;
}
.bar.is-active .bar-tip { animation: tip-pulse 1.8s ease-in-out infinite; }
@keyframes tip-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

.milestones { position: absolute; inset: 0; }
.milestones li {
  position: absolute;
  left: var(--at);
  top: 50%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.milestones li[data-at="100"] { transform: translate(-70%, -50%); }
.milestones li span {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
}
.milestones li.hit { background: var(--gold); border-color: var(--gold); transform: translate(-50%, -50%) scale(1.25); }
.milestones li[data-at="100"].hit { transform: translate(-70%, -50%) scale(1.25); }
.milestones li.hit span { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  text-align: center;
}
.stats strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 0.8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.countdown div {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 0.6rem 0.25rem 0.5rem;
  text-align: center;
}
.countdown b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown i { display: block; font-style: normal; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; margin-top: 0.25rem; }
.countdown b.tick { animation: tick 0.35s ease; }
@keyframes tick {
  0% { transform: translateY(-4px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}
.countdown-label { text-align: center; font-size: 0.85rem; color: var(--ink-3); margin: 0.75rem 0 1.25rem; }

.meter-note { text-align: center; font-size: 0.8rem; color: var(--ink-3); margin-top: 0.85rem; }

.meter-card.is-complete { --meter-a: #3ec97a; --meter-b: #6c63ff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
}
.section-head { margin-bottom: 2.25rem; }
.section-sub { color: var(--ink-2); font-size: 1.1rem; margin-top: 0.6rem; max-width: 40em; }
.section-sub.fine { font-size: 0.88rem; color: var(--ink-3); }

/* How it works */
.how { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.how .section-title { margin-bottom: 2rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), #9b94ff);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(108, 99, 255, 0.35);
}
.step:nth-child(2) .step-num { background: linear-gradient(135deg, var(--coral), var(--coral-2)); box-shadow: 0 6px 14px rgba(255,94,91,0.35); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg, var(--mint), #8ae5b3); box-shadow: 0 6px 14px rgba(62,201,122,0.35); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-2); font-size: 0.98rem; }

#stretch,
#apps,
#updates {
  scroll-margin-top: 80px;
}

/* Stretch goal */
.stretch {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.stretch .section-sub strong { color: var(--ink); }
.stretch-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.stretch-plus {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-3);
  align-self: center;
}
@media (max-width: 720px) {
  .stretch-grid { grid-template-columns: 1fr; }
  .stretch-plus { padding: 0.1rem 0; }
}
.stretch-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stretch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stretch-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.stretch-card--duo .stretch-tag {
  background: rgba(255, 94, 91, 0.14);
  color: #c43c3a;
}
.stretch-card--max .stretch-tag {
  background: rgba(108, 99, 255, 0.14);
  color: #4c46c9;
}
.stretch-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.stretch-icon svg { width: 36px; height: 36px; display: block; }
.stretch-card--duo .stretch-icon {
  background: rgba(255, 94, 91, 0.14);
  color: #c43c3a;
}
.stretch-card--max .stretch-icon {
  background: rgba(108, 99, 255, 0.14);
  color: #4c46c9;
}
.stretch-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.stretch-price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
.stretch-card--duo .stretch-price { color: var(--coral); }
.stretch-card--max .stretch-price { color: var(--violet); }
.stretch-card p { color: var(--ink-2); font-size: 0.98rem; }
.stretch-total {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Apps
   -------------------------------------------------------------------------- */

.apps {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(108,99,255,0.10), transparent 60%),
    var(--paper-2);
}

/* 3 columns: the wide SketchParty card (2 cells) + 7 icon cards = 9 cells, a full 3×3. */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  --tint: var(--violet);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s ease;
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--tint);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.app-card:hover::before { opacity: 1; transform: translateY(0); }

.app-art {
  display: block;
  margin-bottom: 1rem;
  border-radius: 22%;
  overflow: hidden;
  width: 108px;
  aspect-ratio: 1;
  box-shadow: 0 8px 20px rgba(27,27,47,0.14);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.app-card:hover .app-art { transform: rotate(-3deg) scale(1.05); }
.app-art img { width: 100%; height: 100%; object-fit: cover; }

.app-card--wide { grid-column: span 2; padding: 0 0 1.25rem; }
@media (max-width: 440px) { .app-card--wide { grid-column: span 1; } }
.app-card--wide .app-art {
  width: 100%;
  aspect-ratio: 992 / 420;
  border-radius: 0;
  margin-bottom: 1rem;
  box-shadow: none;
}
.app-card--wide .app-body { padding: 0 1.25rem; }
.app-card:hover.app-card--wide .app-art { transform: rotate(0) scale(1.015); }

.app-body { display: flex; flex-direction: column; flex: 1; }
.app-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.app-body h3 a { color: var(--ink); }
.app-body p { color: var(--ink-2); font-size: 0.95rem; flex: 1; margin-bottom: 1rem; }
.store-badge { display: inline-block; width: 120px; transition: transform 0.2s ease; }
.store-badge:hover { transform: scale(1.04); }

/* --------------------------------------------------------------------------
   Updates
   -------------------------------------------------------------------------- */

.updates { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.chart-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.chart { display: block; width: 100%; height: 180px; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .goal-line { stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.7; }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: #fff; stroke: var(--coral); stroke-width: 3; }
.chart .label { font: 600 11px var(--font); fill: var(--ink-3); }
.chart .goal-label { font: 700 11px var(--font); fill: var(--violet); }

.update-list { display: grid; gap: 0.75rem; }
.update {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.update--empty { grid-template-columns: 1fr; color: var(--ink-3); text-align: center; }
.update-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px;
  padding: 0.4rem 0.5rem;
  border-radius: 12px;
  background: var(--paper-2);
  line-height: 1;
}
.update-date b { font-size: 1.25rem; font-weight: 800; }
.update-date span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; margin-top: 0.2rem; }
.update-msg { color: var(--ink-2); padding-top: 0.15rem; }
.update-msg strong { color: var(--ink); }
.update-total { text-align: right; padding-top: 0.15rem; }
.update-total b { display: block; font-weight: 800; font-variant-numeric: tabular-nums; }
.update-total .delta { font-size: 0.8rem; font-weight: 700; color: var(--mint); }
.update-total .delta.neg { color: var(--coral); }
@media (max-width: 520px) {
  .update { grid-template-columns: auto 1fr; }
  .update-total { grid-column: 2; text-align: left; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(250,247,242,0.75);
  padding: 3rem 0 2.5rem;
  text-align: center;
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 1rem; justify-items: center; }
.footer-logo img { width: min(320px, 70vw); }
.site-footer a { color: var(--paper); font-weight: 600; }
.footer-fine { font-size: 0.8rem; opacity: 0.6; max-width: 46em; }

/* --------------------------------------------------------------------------
   Cookie consent bar
   -------------------------------------------------------------------------- */

.consent {
  position: fixed;
  z-index: 110;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  box-shadow: 0 -12px 40px rgba(27, 27, 47, 0.22);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
}
.consent[hidden] { display: none !important; }
.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.consent-copy {
  margin: 0;
  color: rgba(250, 247, 242, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}
.consent-copy a {
  color: var(--paper);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.consent-copy a:hover { text-decoration-thickness: 2px; }
.consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.consent .btn-ghost {
  color: var(--paper);
  border-color: rgba(250, 247, 242, 0.55);
}
.consent .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}
body.consent-open { padding-bottom: 7.5rem; }
body.consent-open .toast { bottom: 7.5rem; }

@media (max-width: 640px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Signup popup (Sender, same widget as SketchParty TV)
   -------------------------------------------------------------------------- */

.signup-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 105;
  width: 420px;
  max-width: calc(100vw - 2rem);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  background: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, bottom 0.25s ease;
  pointer-events: none;
}
.signup-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.signup-popup.is-hidden {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.signup-popup-close {
  position: absolute;
  top: -14px;
  left: 0.7rem;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  z-index: 1;
  padding: 0;
  box-shadow: 0 1px 4px rgba(27, 27, 47, 0.48);
  transition: background 0.15s ease;
}
.signup-popup-close:hover { background: #fff; }
.signup-popup-close:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.signup-popup-inner {
  overflow: hidden;
  border-radius: 22px;
}

.sender-form-field { min-height: 332px; }
.sender-form-field img { height: auto; max-width: 100%; }
.sender-form-field img[src*="logo-no-text"] {
  width: 56px;
  height: 13px;
}

body.consent-open .signup-popup { bottom: calc(1.5rem + 7.5rem); }

@media (max-width: 480px) {
  .signup-popup {
    bottom: 1rem;
    right: 1rem;
    width: calc(100vw - 2rem);
  }
  body.consent-open .signup-popup { bottom: calc(1rem + 7.5rem); }
}

/* --------------------------------------------------------------------------
   Toast + confetti
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.22,1,.36,1);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti-piece {
  position: absolute;
  width: 10px; height: 14px;
  border-radius: 2px;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   Reveal (GSAP sets final state; this is just the pre-state)
   -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@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; }
  .js .reveal { opacity: 1; transform: none; }
  .hl::after { transform: scaleX(1); }
}
