/* CurrentCents coming-soon page.
   Tokens mirror the 2026-09 landing handoff (design-system tokens, sketchbook brand).
   Fonts: Avenir and Quincy CF are unlicensed for web, so their documented fallbacks
   (Nunito Sans, Lustria) are self-hosted next to Public Sans. Licences: assets/fonts/OFL-*.txt */

@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Lustria"; src: url("/assets/fonts/lustria-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --brand-verdigris: #CCE3B5;
  --brand-thistle: #B5BCFC;
  --brand-sandy-brown: #FFB868;
  --doodle-green: #9CC98A;

  --color-cream: #FFF8EB;
  --color-white: #FFFFFF;
  --color-ink: #505168;
  --color-ink-deep: #3B3C4F;
  --color-orange: #FFB868;
  --color-orange-hover: #FFC27D;
  --color-orange-tint: #FFECD6;
  --color-orange-ink: #A35600;
  --color-highlight: #FFE3C2;
  --color-outline: #B5BCFC;
  --color-neg: #B42318;

  --surface-page: var(--color-cream);
  --surface-panel: var(--color-white);
  --border-control: #958F83;
  --text-body: #505168;
  --text-secondary: #5D5E79;
  --text-muted: #62637F;
  --text-link: var(--color-orange-ink);

  --font-display: "Avenir", "Avenir Next", "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-subhead: "Quincy CF", "Lustria", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking: -0.008em;

  --display: 800 40px/1.05 var(--font-display);
  --title: 400 19px/1.25 var(--font-subhead);
  --body: 400 16px/1.45 var(--font-sans);
  --caption: 400 13px/1.35 var(--font-sans);
  --micro: 700 11px/1.2 var(--font-display);

  --line: 1.5px solid var(--color-ink);
  --line-accent: 1.5px solid var(--color-outline);
  --shadow-offset: 5px 6px 0 var(--color-outline);
  --shadow-offset-lg: 6px 8px 0 var(--color-outline);
  --shadow-press: 2px 3px 0 var(--color-ink);
  --radius-swipe: 3px 12px 5px 10px / 8px 4px 10px 5px;
  --radius-sticker: 6px 6px 6px 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section-pad: clamp(36px, 7vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font: var(--body);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-link); text-underline-offset: 2px; }
a:hover { color: var(--color-ink-deep); }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* `clip`, not `hidden`, so the pinned mobile sections stay sticky. */
.page { position: relative; overflow-x: clip; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Type and small pieces ---------- */
.wordmark { font: 800 28px/1 var(--font-display); color: var(--color-orange); letter-spacing: -.02em; }
a.wordmark { text-decoration: none; }
a.wordmark:hover { color: var(--color-orange); }
.wordmark--sm { font-size: 20px; }
.h1 {
  margin: 0; max-width: 14ch;
  font: var(--display); font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.03em;
  color: var(--color-ink); text-wrap: balance;
}
.h2 {
  margin: 0;
  font: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em;
  color: var(--color-ink); text-align: center; text-wrap: balance;
}
.mark {
  background: linear-gradient(transparent 60%, var(--color-highlight) 60%, var(--color-highlight) 94%, transparent 94%);
  padding: 0 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead {
  max-width: 56ch;
  font: var(--title); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45;
  color: var(--text-secondary);
}
.muted { color: var(--text-secondary); }
.caption { font: var(--caption); color: var(--text-secondary); }
.card-title { margin: 0; font: var(--title); font-size: 22px; color: var(--color-ink); }
.card-title--sm { font-size: 20px; }

.swipe {
  align-self: flex-start;
  font: var(--micro); letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-ink); background: var(--color-highlight);
  padding: 6px 12px 5px 10px; border-radius: var(--radius-swipe);
  transform: rotate(-1deg);
}
.sticker {
  display: inline-block; white-space: nowrap;
  font: var(--micro); letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-ink); padding: 4px 8px 3px; border-radius: var(--radius-sticker);
}
.sticker--thistle { background: var(--brand-thistle); color: var(--color-ink-deep); }
.sticker--verdigris { background: var(--brand-verdigris); }
.sticker--orange { background: var(--color-orange-tint); }
.sticker--tilt-l { transform: rotate(-2deg); }
.sticker--tilt-r { transform: rotate(1.5deg); }
.sticker--tilt-s { transform: rotate(-1deg); }
.corner-sticker { position: absolute; left: -6px; top: -12px; }

.highlight-card {
  position: relative;
  background: var(--color-cream);
  border: var(--line-accent); border-radius: 16px;
  box-shadow: var(--shadow-offset);
}

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(24px, 5vw, 48px) 0 clamp(16px, 3vw, 32px); }
.hero > .container { position: relative; z-index: 1; }
.hero-stack { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }

.hero-doodles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hd { position: absolute; overflow: visible; opacity: .3; }
.hd path { stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.hd-1 { top: 6%; left: -30px; width: clamp(180px, 30vw, 340px); rotate: -8deg; stroke: var(--brand-thistle); }
.hd-2 { top: 14%; right: -40px; width: clamp(200px, 32vw, 380px); rotate: 6deg; stroke: var(--brand-sandy-brown); }
.hd-3 { bottom: 18%; left: 6%; width: clamp(70px, 9vw, 120px); stroke: var(--doodle-green); }
.hd-4 { bottom: 6%; right: 8%; width: clamp(160px, 22vw, 280px); rotate: -3deg; stroke: var(--brand-thistle); }
.hd-5 { top: 42%; right: 6%; width: clamp(40px, 5vw, 64px); rotate: 10deg; stroke: var(--brand-sandy-brown); }
.hd-6 { top: 46%; left: 4%; width: clamp(90px, 11vw, 150px); rotate: -12deg; stroke: var(--doodle-green); }

/* ---------- Signup ---------- */
.signup-slot { width: 100%; max-width: 460px; margin: 0 auto; }
.signup { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: center; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-field { flex: 1 1 220px; display: flex; }
.signup input[type="email"] {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 18px;
  border: none; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--color-ink);
  background: var(--surface-panel);
  font: var(--body); letter-spacing: var(--tracking); color: var(--text-body);
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.signup input[type="email"]::placeholder { color: var(--text-muted); }
.signup input[type="email"]:focus-visible { box-shadow: inset 0 0 0 1.5px var(--color-ink), 0 0 0 3px var(--color-outline); }
.signup input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--color-neg); }
.btn-primary {
  flex: 1 1 150px; min-height: 52px; padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: var(--line);
  background: var(--color-orange); color: var(--color-ink-deep);
  box-shadow: var(--shadow-press);
  font: 700 16px/1 var(--font-sans); letter-spacing: var(--tracking);
  cursor: pointer;
  transition: background var(--ease) 120ms;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--color-orange-hover); }
.btn-primary:active { transform: translate(2px, 3px); box-shadow: none; }
.btn-primary:focus-visible { outline: none; box-shadow: var(--shadow-press), 0 0 0 3px var(--color-outline); }
.btn-primary[aria-busy="true"] { cursor: progress; opacity: .8; }
.signup-error { font: var(--caption); color: var(--color-neg); }
.signup-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup-done {
  margin-top: 10px; width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 22px 18px 16px; text-align: left;
}
.signup-done img { width: 52px; height: auto; flex: none; }
.signup-done b { overflow-wrap: anywhere; }

/* ---------- Showcase ---------- */
.showcase-desktop { padding: 24px 0 40px; }
.phone-row { display: flex; justify-content: center; align-items: flex-start; }
.phone { flex: none; height: auto; filter: drop-shadow(6px 8px 0 var(--color-outline)); }
.phone--side { width: 257px; margin-top: 60px; position: relative; z-index: 0; }
.phone--left { rotate: -4deg; margin-right: -56px; }
.phone--right { rotate: 4deg; margin-left: -56px; }
.phone--center { width: 304px; position: relative; z-index: 1; }

.showcase-mobile { display: none; position: relative; height: 300vh; --ps: .6; }
.showcase-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 16px 20px 20px; overflow: hidden;
}
.showcase-stage { position: relative; flex: none; height: calc(var(--ps) * 780px + 20px); }
.showcase-phone {
  position: absolute; left: 50%; top: 0;
  width: calc(var(--ps) * 390px); height: calc(var(--ps) * 780px);
  margin-left: calc(var(--ps) * -195px);
  filter: drop-shadow(4px 5px 0 var(--color-outline));
  will-change: transform, opacity;
}
.showcase-phone + .showcase-phone { opacity: 0; }
.showcase-card { width: 100%; max-width: 420px; margin: 10px auto 0; padding: 22px 16px 14px; }
.showcase-captions { position: relative; height: 96px; }
.showcase-caption { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; }
.showcase-caption + .showcase-caption { opacity: 0; }
.cap-title { font: var(--title); font-size: 20px; color: var(--color-ink); }
.showcase-caption p:not(.cap-title) { font-size: 14px; line-height: 1.4; color: var(--text-secondary); }

.dots { display: none; gap: 6px; justify-content: center; margin-top: 4px; }
.dots span {
  height: 8px; width: 8px; border-radius: 5px;
  border: 1.5px solid var(--color-ink);
  transition: width .25s var(--ease), background-color .25s;
}
.dots span.is-on { background: var(--brand-thistle); }
.dots span.is-current { width: 26px; }
.showcase-mobile .dots { display: flex; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--cta { padding: var(--section-pad) 0 clamp(48px, 8vw, 96px); }
.section-inner { position: relative; }
.section-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px 40px; }

.step-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 18px 18px; border: var(--line); border-radius: 16px; background: var(--surface-panel);
}
.tilt-a { transform: rotate(-1deg); }
.tilt-b { transform: rotate(.8deg); }
.tilt-c { transform: rotate(-.6deg); }
.step-num {
  position: absolute; left: -10px; top: -14px; width: 34px; height: 34px;
  border-radius: 50%; border: var(--line);
  display: grid; place-items: center;
  font: 800 16px/1 var(--font-display); color: var(--color-ink);
}
.step-num--verdigris { background: var(--brand-verdigris); }
.step-num--thistle { background: var(--brand-thistle); }
.step-num--orange { background: var(--color-orange-tint); }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature img { width: 72px; height: auto; flex: none; }
.feature-text { display: flex; flex-direction: column; gap: 6px; }

.who-card { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; padding: 26px 18px 18px; }
.who-card img { width: 64px; height: auto; }

.cta-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: clamp(32px, 6vw, 56px) 20px;
  border: var(--line); border-radius: 28px; background: var(--color-cream);
  box-shadow: var(--shadow-offset-lg); text-align: center;
}
.cta-card > img { width: 84px; height: auto; }
.cta-copy { max-width: 46ch; }

/* Section doodles: width clamp(N, N/3.9 vw, 1.9N) */
.deco { position: absolute; z-index: 0; pointer-events: none; overflow: visible; }
.deco path { stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.deco-how-0 { top: 6%; right: 8px; width: clamp(120px, 30.8vw, 228px); stroke: var(--brand-sandy-brown); }
.deco-how-1 { bottom: 7%; left: 6px; width: clamp(200px, 51.3vw, 380px); stroke: var(--brand-thistle); }
.deco-how-2 { bottom: 15%; right: 24px; width: clamp(48px, 12.3vw, 91px); stroke: var(--doodle-green); }
.deco-feat-0 { top: 5%; left: -6px; width: clamp(190px, 48.7vw, 361px); stroke: var(--brand-sandy-brown); }
.deco-feat-1 { bottom: 7%; right: -4px; width: clamp(170px, 43.6vw, 323px); stroke: var(--doodle-green); }
.deco-feat-2 { top: 11%; right: 22px; width: clamp(44px, 11.3vw, 84px); stroke: var(--brand-thistle); }
.deco-who-0 { top: 6%; right: -6px; width: clamp(180px, 46.2vw, 342px); stroke: var(--brand-thistle); }
.deco-who-1 { bottom: 12%; right: 30px; width: clamp(70px, 17.9vw, 133px); stroke: var(--brand-sandy-brown); }
.deco-who-2 { bottom: 6%; left: 4px; width: clamp(170px, 43.6vw, 323px); stroke: var(--doodle-green); }

/* ---------- Footer ---------- */
.footer { border-top: 1.5px dashed var(--border-control); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 24px; }

/* ---------- Mobile (< 720px) ---------- */
@media (max-width: 719.98px) {
  .showcase-desktop { display: none; }
  .showcase-mobile { display: block; }

  .snap-section { padding: 0; }
  .snap-3 { height: calc(100vh + 2 * 75vh); }
  .snap-4 { height: calc(100vh + 3 * 75vh); }
  .snap-section .section-inner {
    position: sticky; top: 0; height: 100vh; min-height: 560px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .snap-section .card-row {
    display: flex; overflow-x: hidden; gap: 16px;
    padding: 14px 24px 18px; margin: 0 -24px;
    scrollbar-width: none;
  }
  .snap-section .card-row > * { flex: 0 0 min(80%, 300px); transition: opacity .3s; }
  .snap-section .section-body { gap: 28px; }
  .snap-section .dots { display: flex; margin-top: -16px; }
}

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hd path { stroke-dashoffset: 1; animation: cc-draw 1.8s cubic-bezier(.4, 0, .2, 1) forwards; }
  .hd-1 path { animation-delay: 300ms; }
  .hd-2 path { animation-delay: 520ms; }
  .hd-3 path { animation-delay: 740ms; }
  .hd-4 path { animation-delay: 960ms; }
  .hd-5 path { animation-delay: 1180ms; }
  .hd-6 path { animation-delay: 1400ms; }
  .hd { animation: cc-drift-a 6s ease-in-out infinite alternate; }
  .hd-2 { animation-name: cc-drift-b; animation-duration: 6.9s; animation-delay: 300ms; }
  .hd-3 { animation-name: cc-drift-c; animation-duration: 7.8s; animation-delay: 600ms; }
  .hd-4 { animation-name: cc-drift-d; animation-duration: 8.7s; animation-delay: 900ms; }
  .hd-5 { animation-name: cc-drift-e; animation-duration: 9.6s; animation-delay: 1200ms; }
  .hd-6 { animation-name: cc-drift-f; animation-duration: 10.5s; animation-delay: 1500ms; }

  /* Section doodles draw in with scroll (landing.js sets the offset). */
  .js .deco path { stroke-dashoffset: 1; }
  .deco { animation: cc-drift-even 5.2s ease-in-out infinite alternate; }
  .deco[data-deco="1"] { animation-name: cc-drift-odd; animation-duration: 6.1s; }
  .deco[data-deco="2"] { animation-duration: 7s; }

  /* Fade-up reveal (landing.js adds .is-in). */
  .js [data-reveal], .js [data-reveal-kids] > *, .js [data-snap] {
    opacity: 0; translate: 0 22px;
    transition: opacity .6s var(--ease) var(--rv-delay, 0ms), translate .6s var(--ease) var(--rv-delay, 0ms);
  }
  .js [data-snap] [data-reveal] { opacity: 1; translate: none; transition: opacity .3s; }
  .js .is-in, .js [data-reveal-kids] > .is-in { opacity: 1; translate: 0 0; }
}

@keyframes cc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cc-drift-a { to { translate: 10px -8px; } }
@keyframes cc-drift-b { to { translate: -10px 8px; } }
@keyframes cc-drift-c { to { translate: 10px 8px; } }
@keyframes cc-drift-d { to { translate: -10px -8px; } }
@keyframes cc-drift-e { to { translate: 10px 8px; } }
@keyframes cc-drift-f { to { translate: -10px 8px; } }
@keyframes cc-drift-even { to { translate: 8px -6px; } }
@keyframes cc-drift-odd { to { translate: -8px 6px; } }
