/* ClickBeans site. Mobile first; no outside services, the fonts ship with the site. */

:root {
  --bg: #fdf6e9;
  --bg-soft: #f8ecd8;
  --panel: #fffdf8;
  --text: #1c1a17;
  --text-2: #4a453e;
  --muted: #6f6a5d;
  --line: rgba(28, 26, 23, 0.16);
  --line-strong: #1c1a17;
  --accent: #d4471f;
  --accent-2: #1f5fd6;
  --accent-ink: #b83a17;
  --accent-soft: #fde3d3;
  --cobalt: #1f5fd6;
  --butter: #f9e27d;
  --lilac: #e6c7f4;
  --sky: #a6d3f7;
  --pink: #f8b4dc;
  --pistachio: #d3df8d;
  --peach: #fde0cd;
  --tile: var(--peach);
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-hand: "Nanum Pen Script", "Bradley Hand", cursive;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
  --ink-frame: url("../assets/sketch/panel.svg") 22 fill / 11px;
  color-scheme: light;
}

/* ---------- Fonts (open-licensed, bundled, see assets/fonts) ---------- */

@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/instrument-serif-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("../assets/fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-sans-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("../assets/fonts/instrument-sans-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/instrument-sans-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/instrument-sans-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nanum Pen Script"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nanum-pen-script-400-normal.woff2") format("woff2"); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.grad-text {
  position: relative;
  display: inline-block;
  font-style: italic;
  padding-right: 0.06em;
}
.grad-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 0.2em;
  background: url("../assets/sketch/underline.svg") center / 100% 100% no-repeat;
}
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--panel); padding: 10px 14px; border-radius: 6px; border: 2px solid var(--text); }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

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

/* inline-block, not flex: flex would drop the spaces around the <span>s inside button labels. */
.btn {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  line-height: 1.3;
  border: 7px solid transparent;
  border-image: url("../assets/sketch/button.svg") 14 fill / 7px;
  background: none;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: rotate(-0.6deg) translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-small { padding: 4px 11px; font-size: 15px; white-space: nowrap; }
.btn-big { padding: 10px 22px; font-size: 18px; }
.btn-white { border-image-source: url("../assets/sketch/button-paper.svg"); color: var(--text); }
.btn-ink { border-image-source: url("../assets/sketch/button-ink.svg"); color: var(--bg); }
.btn-ghost {
  border-image-source: url("../assets/sketch/button-paper.svg");
  color: var(--text);
}
.btn[aria-disabled="true"], .btn:disabled {
  border: 1.5px dashed var(--muted);
  border-image: none;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: not-allowed;
  filter: none;
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--text); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font: 400 26px/1 var(--font-display);
  letter-spacing: -0.01em;
  margin-right: auto;
}
.header-nav { display: none; gap: 26px; }
.header-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:hover { color: var(--accent-ink); }
.hide-xs { display: none; }
@media (min-width: 360px) { .hide-xs { display: inline; } }
@media (min-width: 880px) { .header-nav { display: flex; } }

/* ---------- Launch banner ---------- */

.launch-bar {
  padding: 7px 16px;
  background: var(--butter);
  border-bottom: 2px solid var(--text);
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
}
.was { font-weight: 500; opacity: 0.7; }

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

.hero { position: relative; padding: 18px 0 56px; text-align: center; overflow: hidden; }
.hero-copy { position: relative; }
.hero-copy::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 2%;
  width: 46px;
  height: 46px;
  background: url("../assets/sketch/star.svg") center / contain no-repeat;
  transform: rotate(12deg);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cobalt);
  font: 400 27px/1 var(--font-hand);
  transform: rotate(-2deg);
}
.hero h1 { font-size: min(14.2vw, 5.6rem); margin: 10px auto 0; letter-spacing: -0.025em; line-height: 1; }
.lede { font-size: 17.5px; color: var(--text-2); margin: 16px auto 0; max-width: 33em; }
.cta-block { margin-top: 20px; }
.cta-block .btn-big { width: 100%; max-width: 380px; }
.fine { margin-top: 10px; font-size: 14px; color: var(--muted); }

@media (min-width: 960px) {
  .hero { padding: 36px 0 88px; text-align: left; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
  .hero-grid .try { margin: 0; max-width: none; }
  .hero h1 { margin-left: 0; font-size: clamp(3.4rem, 5.9vw, 4.7rem); }
  .lede { margin-left: 0; font-size: 19px; }
  .cta-block .btn-big { width: auto; }
}

/* The ring that marks each click while the paw plays by itself. */
.click-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 7cqw;
  height: 7cqw;
  margin: -3.5cqw 0 0 -3.5cqw;
  border-radius: 50%;
  border: 0.45cqw solid var(--cobalt);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.click-ring.go { animation: ring 0.5s ease-out; }

/* ---------- The paw ---------- */

/* The wrapper's top-left corner is the click point. These match the app: the click point is the top of
   the paw, a press blends to a copy at 85% with a squash around that point, and it waits pivoting on the wrist. */
.paw {
  --hot-x: 28.65%;
  --hot-y: 0%;
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  aspect-ratio: 171 / 240;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}
.paw-art { position: absolute; inset: 0; transform: translate(calc(var(--hot-x) * -1), calc(var(--hot-y) * -1)); }
.paw-squish { position: absolute; inset: 0; transform-origin: var(--hot-x) var(--hot-y); }
.paw-tap { position: absolute; inset: 0; transform-origin: calc(100% - var(--hot-x)) calc(100% - var(--hot-y)); }
.paw-tap img { position: absolute; inset: 0; display: block; width: 100%; height: auto; }
.paw-tap .paw-pressed { opacity: 0; transform: scale(0.85); transform-origin: var(--hot-x) var(--hot-y); }
.paw.is-pressed .paw-normal { opacity: 0; transition: opacity 0.1s; }
.paw.is-pressed .paw-pressed { opacity: 1; transition: opacity 0.1s; }
.paw.is-pressed .paw-squish { animation: squish 0.28s; }

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

.section { padding: 72px 0; scroll-margin-top: var(--header-h); }
.section-soft { background: var(--bg-soft); }
.kicker {
  width: fit-content;
  margin: 0 auto;
  font: 400 27px/1 var(--font-hand);
  color: var(--cobalt);
  transform: rotate(-2deg);
}
.kicker::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 28px;
  margin: 12px 0 0 6px;
  background: url("../assets/sketch/arrow.svg") center / contain no-repeat;
}
.final-card::before, .final-card::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  background: #fff;
  -webkit-mask: url("../assets/sketch/star.svg") center / contain no-repeat;
  mask: url("../assets/sketch/star.svg") center / contain no-repeat;
}
.final-card::before { left: 9%; top: 18%; transform: rotate(10deg); }
.final-card::after { right: 9%; bottom: 20%; width: 38px; height: 38px; transform: rotate(-14deg); }
.section h2 { text-align: center; font-size: clamp(2.6rem, 9vw, 4.2rem); margin-top: 8px; letter-spacing: -0.02em; }
.section-lede { text-align: center; color: var(--text-2); margin: 14px auto 0; max-width: 34em; }
.card { border: 11px solid transparent; border-image: var(--ink-frame); }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* How it works */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.step { position: relative; padding: 4px 4px 14px; }
.step-art {
  height: 176px;
  border-radius: 2px;
  background: var(--tile);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.step:nth-child(1) .step-art { background: var(--butter); }
.step:nth-child(2) .step-art { background: var(--lilac); }
.step:nth-child(3) .step-art { background: var(--sky); }
.step-num {
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--text);
  font: 400 38px/1 var(--font-hand);
}
.step h3 { font-size: 29px; margin: 16px 8px 6px; }
.step p { color: var(--text-2); margin: 0 8px; font-size: 16px; }
.art-pick { display: flex; justify-content: center; align-items: center; }
.art-pick img { width: 27%; margin: 0 -2.2%; }
.art-pick img:nth-child(1) { transform: rotate(-12deg) translateY(6px); }
.art-pick img:nth-child(2) { transform: rotate(-3deg) translateY(-6px); }
.art-pick img:nth-child(3) { transform: rotate(5deg) translateY(4px); }
.art-pick img:nth-child(4) { transform: rotate(13deg) translateY(-4px); }
.art-trace img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; transform: scale(2.4); transform-origin: 45% 50%; }
.curl-demo { position: relative; width: 120px; height: 120px; }
.curl-demo img { position: absolute; inset: 0; width: 100%; }
.curl-b { opacity: 0; animation: curl-swap 2.6s steps(1) infinite; }
.curl-a { animation: curl-swap-a 2.6s steps(1) infinite; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; } }

/* Features */
.features { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 10px; }
.feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  align-items: start;
  background: var(--peach);
  padding: 16px 16px 18px;
}
.feature:nth-child(2) { background: var(--butter); }
.feature:nth-child(3) { background: var(--lilac); }
.feature:nth-child(4) { background: var(--pistachio); }
.feature:nth-child(5) { background: var(--pink); }
.feature:nth-child(6) { background: var(--sky); }
.feature:nth-child(7) { background: var(--peach); }
.feature-icon { grid-row: span 2; }
.feature h3 { font-size: 24px; margin: 1px 0 4px; }
.feature p { font-size: 15px; color: var(--text); line-height: 1.4; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; }
.feature-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature:first-child { grid-column: 1 / -1; background: var(--cobalt); color: #fff; padding: 20px 18px 22px; }
.feature:first-child h3 { font-size: 34px; }
.feature:first-child p { color: rgba(255, 255, 255, 0.92); font-size: 16px; max-width: 26em; }
.feature:first-child .feature-icon svg { stroke: #fff; }
@media (min-width: 600px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature { display: block; padding: 20px 18px 22px; }
  .feature h3 { margin: 14px 0 6px; }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
  .feature { padding: 22px 20px 24px; }
  .feature:first-child { grid-column: span 2; }
}

/* Try it: the zone is the screen of a drawn computer. The numbers place it on assets/sketch/desk.svg. */
.try { margin: 28px auto 0; max-width: 760px; }
.sketch-desk { position: relative; container-type: inline-size; }
.sketch-art { display: block; width: 100%; height: auto; }
.try-zone {
  position: absolute;
  left: 6.3%;
  top: 8.6%;
  width: 87.4%;
  height: 57.2%;
  overflow: hidden;
  text-align: left;
  background: var(--sky);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.try-zone.mouse-mode { cursor: none; }
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-bar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  height: 6.4cqw;
  max-height: 26px;
  padding: 0 2cqw;
  background: var(--panel);
  border-bottom: 1.5px solid var(--text);
  font-size: clamp(8px, 1.9cqw, 13px);
}
.menu-bar b { font-weight: 700; }
.menu-time { margin-left: auto; font-weight: 600; }
.desk-files {
  position: absolute;
  right: 2.5%;
  top: 10%;
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  direction: rtl;
  gap: 0.8cqw 1.2cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.desk-file { position: relative; z-index: 2; direction: ltr; display: grid; justify-items: center; gap: 0.3cqw; width: 12cqw; touch-action: none; }
.desk-file.grabbed { z-index: 3; }
.desk-file img { display: block; width: 8.4cqw; height: auto; }
.desk-file span {
  padding: 0 0.6cqw;
  border-radius: 3px;
  background: rgba(255, 253, 248, 0.82);
  font-size: clamp(7.5px, 1.65cqw, 12px);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.desk-file.selected span { background: var(--cobalt); color: #fff; }
.desk-file.selected img { filter: brightness(0.9); }
.try-hint {
  position: absolute;
  left: 4%;
  top: 15%;
  width: 30%;
  padding: 1.2cqw 1.4cqw;
  background: var(--butter);
  border: 1.5px solid var(--text);
  transform: rotate(-3deg);
  font: 400 clamp(12px, 2.7cqw, 19px)/1.1 var(--font-hand);
  color: var(--text);
  transition: opacity 0.3s;
}
.try-hint strong { font-weight: 400; color: var(--accent-ink); }
.try-zone.active .try-hint { opacity: 0.35; }
.for-touch, .for-keys { display: none; }
.for-keys { color: var(--muted); }
.try-zone:focus-visible .for-keys { display: inline; }
@media (hover: none), (pointer: coarse) {
  .for-mouse { display: none; }
  .for-touch { display: inline; }
}
.try-paw.touch { width: 62px; transition: opacity 0.35s; }
.try-paw.fade { opacity: 0; }
.try-note { margin-top: 10px; text-align: center; font: 400 25px/1.1 var(--font-hand); color: var(--text); }

/* Screenshots: a wide carousel, one big slide with its neighbors peeking in. */
.shots {
  --slide: min(86vw, 660px);
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 36px calc((100% - var(--slide)) / 2) 12px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 var(--slide); margin: 0; scroll-snap-align: center; }
.shot-frame { overflow: hidden; background: var(--panel); border: 2px solid var(--text); border-radius: 4px; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; text-align: center; font: 400 25px/1.1 var(--font-hand); color: var(--text); }
.shots-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.shots-arrow {
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 2px solid var(--text);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.shots-arrow:hover:not(:disabled) { transform: rotate(-4deg) scale(1.06); }
.shots-arrow:disabled { opacity: 0.3; cursor: default; }
.shots-dots { display: flex; gap: 8px; }
.shots-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text); }
.shots-dots i.on { background: var(--text); }
@media (min-width: 960px) { .shots { gap: 28px; padding-top: 48px; } }

/* About Lynn */
.story { display: grid; gap: 64px; justify-items: center; text-align: center; }
.story-photo {
  width: min(100%, 340px);
  aspect-ratio: 1;
  border: 11px solid transparent;
  border-image: var(--ink-frame);
  transform: rotate(-2deg);
}
.story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.story-collage { position: relative; width: min(100%, 340px); }
.story-collage .story-photo { width: 100%; }
.reel-card {
  position: absolute;
  right: 2px;
  bottom: -30px;
  width: 104px;
  color: var(--text);
  text-decoration: none;
  transform: rotate(5deg);
  transition: transform 0.15s ease;
}
.reel-card:hover { transform: rotate(2deg) translateY(-3px); }
.reel-screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--butter);
  border: 2.5px solid var(--text);
  border-radius: 12px;
}
.reel-screen img { width: 72%; height: auto; transform: rotate(-8deg); }
.reel-play {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
}
.reel-play::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}
@media (min-width: 820px) { .reel-card { right: -34px; } }
.reel-label { display: block; margin-top: 5px; font: 400 19px/1 var(--font-hand); text-align: center; }
.reel-dialog {
  width: min(420px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  padding: 6px;
  background: var(--panel);
  border: 2.5px solid var(--text);
  border-radius: 4px;
}
.reel-dialog::backdrop { background: rgba(28, 26, 23, 0.6); }
.reel-player iframe { display: block; width: 100%; height: min(640px, calc(100dvh - 110px)); border: 0; background: var(--bg-soft); }
.reel-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 15px; font-weight: 500; }
.story-copy .kicker { margin: 0 auto; }
.story-copy h2 { margin-bottom: 14px; }
.story-copy > p:not(.kicker) { color: var(--text-2); max-width: 34em; margin: 0 auto; font-size: 18px; }
.story-link { display: inline-block; margin-top: 16px; font-weight: 600; }
@media (min-width: 820px) {
  .story { grid-template-columns: 340px 1fr; gap: 64px; align-items: center; justify-items: start; text-align: left; }
  .story .section-title, .story-copy h2 { text-align: left; }
  .story-copy .kicker { margin: 0; }
  .story-copy > p:not(.kicker) { margin: 0; }
}

/* Pricing */
.price-card { max-width: 460px; margin: 36px auto 0; padding: 18px 16px 14px; text-align: center; }
.price-deadline {
  display: grid;
  gap: 3px;
  margin: -32px -6px 22px;
  padding: 10px 12px 11px;
  background: var(--accent);
  border: 2px solid var(--text);
  color: #fff;
  transform: rotate(-1.5deg);
}
.price-deadline strong { font: 400 clamp(27px, 7.4vw, 34px)/1 var(--font-hand); }
.price-deadline > span { font-size: 15px; font-weight: 600; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; font-size: 16px; color: var(--muted); }
.price-line strong { font: 400 72px/1 var(--font-display); color: var(--text); letter-spacing: -0.02em; }
.price-line .was { font: 400 30px/1 var(--font-display); }
.price-list { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 9px; text-align: left; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--cobalt); }
.price-card .btn { width: 100%; }

/* Already bought it? */
.bought { text-align: center; }
.bought-buttons { display: grid; gap: 12px; max-width: 520px; margin: 24px auto 0; }
@media (min-width: 560px) { .bought-buttons { grid-template-columns: 1fr 1fr; } }
.bought-buttons .btn { padding-left: 10px; padding-right: 10px; font-size: 16.5px; }

/* FAQ */
.faq { margin-top: 32px; border-top: 2px solid var(--text); }
.faq details { border-bottom: 2px solid var(--text); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 44px 16px 0;
  font: 400 25px/1.15 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background:
    linear-gradient(var(--text), var(--text)) center / 18px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 18px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 18px 0; color: var(--text-2); font-size: 16px; }

/* Final call to action */
.final { padding-top: 24px; }
.final-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: var(--cobalt);
  padding: 44px 22px 40px;
}
.final-paw { position: relative; width: 104px; height: auto; animation: bob 3s ease-in-out infinite; }
.final-card h2 { position: relative; color: #fff; margin-top: 14px; }
.final-card p { position: relative; margin: 10px 0 24px; color: rgba(255, 255, 255, 0.92); }
.final-card .btn { position: relative; width: 100%; max-width: 360px; }
@media (min-width: 960px) { .final { padding-top: 0; } .final-card { padding: 64px 24px 60px; } }

/* Footer */
.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 2px solid var(--text); }
.footer-row { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer-row .logo { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-small { font-size: 14px; line-height: 1.7; }
@media (min-width: 960px) {
  .footer-row { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; }
  .footer-nav { justify-content: center; justify-self: center; }
  .footer-small { text-align: right; }
}

/* ---------- Checkout, success and legal pages ---------- */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.test-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--butter);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid var(--text);
}
.test-banner svg { flex: none; width: 18px; height: 18px; }

.narrow-main { padding: 28px 0 64px; }
.page-title { font-size: clamp(2.8rem, 9vw, 4rem); letter-spacing: -0.02em; }
.page-sub { color: var(--text-2); margin-top: 8px; }
.checkout-grid { display: grid; gap: 16px; margin-top: 24px; }
.panel { border: 11px solid transparent; border-image: var(--ink-frame); padding: 10px; }
.panel h2 { font-size: 28px; margin-bottom: 12px; }
.product-row { display: flex; gap: 14px; align-items: center; }
.product-thumb { flex: none; width: 64px; height: 64px; display: grid; place-items: center; background: var(--butter); }
.product-thumb img { width: 46px; height: 46px; }
.product-thumb.is-app { background: none; }
.product-thumb.is-app img { width: 64px; height: 64px; }
.product-name { font: 400 28px/1.1 var(--font-display); }
.product-blurb { font-size: 14.5px; color: var(--text-2); margin-top: 3px; }
.perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks svg { flex: none; width: 20px; height: 20px; color: var(--cobalt); margin-top: 1px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--text); }
.total-row strong { font: 400 34px/1 var(--font-display); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 15.5px; }
.field input {
  width: 100%;
  height: 54px;
  padding: 0 9px;
  border: 7px solid transparent;
  border-image: url("../assets/sketch/field.svg") 14 fill / 7px;
  background: none;
  color: var(--text);
  font: 17px var(--font);
}
.field input:focus { outline: none; border-image-source: url("../assets/sketch/field-focus.svg"); }
.field-hint { font-size: 14px; color: var(--muted); }
.waitlist-form { width: min(100%, 420px); margin: 22px auto 0; display: grid; gap: 12px; text-align: left; }
.waitlist-form .btn { width: 100%; }
.waitlist-form .form-notes { text-align: center; }
/* Off screen, not display: none, so bots still find the field and fill it in. */
.waitlist-trap { position: absolute; left: -9999px; }
.form-error { color: var(--accent-ink); font-size: 14.5px; font-weight: 600; min-height: 1.2em; }
.pay-btn { width: 100%; margin-top: 14px; }
.pay-btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.form-notes { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 18px; }
@media (min-width: 860px) {
  .narrow-main { padding: 48px 0 96px; }
  .checkout-grid { grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; margin-top: 32px; }
  .panel { padding: 26px; }
}

/* Success */
.success-head { text-align: center; position: relative; padding-top: 8px; }
.success-badge { position: relative; display: inline-block; width: 96px; height: 96px; }
.success-badge img { width: 100%; animation: bob 3s ease-in-out infinite; }
.success-badge .check {
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--bg);
}
.success-badge .check svg { width: 20px; height: 20px; }
.success-head h1 { font-size: clamp(3.2rem, 11vw, 5rem); margin-top: 14px; letter-spacing: -0.02em; }
.success-head .page-sub { max-width: 30em; margin: 8px auto 0; }
.confetti { position: absolute; inset: -10px 0 auto; height: 160px; pointer-events: none; overflow: visible; }
.confetti svg { position: absolute; width: 18px; height: 18px; fill: var(--accent); opacity: 0; animation: float-up 2.4s ease-out forwards; }
.success-stack { display: grid; gap: 16px; margin-top: 28px; }
.key-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--butter);
  border: 2px dashed var(--text);
}
.key-text { flex: 1 1 230px; font: 650 17px/1.4 var(--mono); letter-spacing: 0.03em; word-break: break-all; padding: 2px 4px; user-select: all; -webkit-user-select: all; }
.copy-btn { padding: 5px 11px; font-size: 15.5px; flex: none; }
@media (max-width: 559px) {
  .key-text { flex-basis: 100%; font-size: 15px; letter-spacing: 0; text-align: center; }
  .copy-btn { width: 100%; }
}
.key-meta { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }
.key-meta strong { color: var(--text); word-break: break-all; }
.dl-buttons { display: grid; gap: 12px; }
.btn-download { display: flex; align-items: center; min-height: 66px; padding: 3px 11px; text-align: left; gap: 14px; font-size: 16.5px; }
.btn-download svg { flex: none; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-download .dl-label { display: grid; line-height: 1.25; }
.btn-download .dl-label small { font-weight: 550; font-size: 13.5px; opacity: 0.9; }
.btn-download.secondary { border-image-source: url("../assets/sketch/button-paper.svg"); color: var(--text); }
.os-steps { display: grid; gap: 10px; margin-top: 16px; }
.os-steps details { border: 2px solid var(--text); border-radius: 4px; background: var(--panel); }
.os-steps summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.os-steps summary::-webkit-details-marker { display: none; }
.os-steps summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--text); font-weight: 500; }
.os-steps details[open] summary::after { content: "–"; }
.num-list { list-style: none; counter-reset: n; margin: 0; padding: 0 16px 16px; display: grid; gap: 10px; }
.num-list li { counter-increment: n; position: relative; padding-left: 36px; font-size: 15.5px; color: var(--text-2); }
.num-list li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  color: var(--cobalt);
  font: 400 26px/25px var(--font-hand);
  text-align: center;
}
.num-list strong { color: var(--text); }
.tip { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.phone-card { border-image-source: url("../assets/sketch/panel-strong.svg"); }
.phone-card .icon-big { width: 44px; height: 44px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-card h2 { font-size: 30px; margin: 10px 0 6px; }
.phone-card p { color: var(--text-2); font-size: 15.5px; }
.btn-row { display: grid; gap: 10px; margin-top: 16px; }
.btn-row .btn { font-size: 16px; padding: 7px 5px; }
@media (min-width: 480px) { .btn-row { grid-template-columns: 1fr 1fr; } }
.sent-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.sent-note:empty { display: none; }
.unlock-btn { width: 100%; }
.activate-btn { display: block; width: 100%; margin-top: 16px; padding: 7px 11px; font-size: 16px; }
.next-step { display: flex; gap: 14px; align-items: center; }
.next-step img { width: 52px; height: 52px; flex: none; }
.next-step p { color: var(--text-2); font-size: 15.5px; }
.lost { text-align: center; }
.lost .btn { margin-top: 18px; }
@media (min-width: 860px) {
  .dl-buttons { grid-template-columns: 1fr 1fr; }
  .os-steps { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Legal */
.legal-layout { display: grid; gap: 22px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-nav a { color: var(--text); font-weight: 500; text-decoration: none; padding: 2px 0; }
.legal-nav a:hover { color: var(--accent-ink); }
.legal-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.legal-nav .legal-label { width: 100%; font: 400 26px/1 var(--font-hand); color: var(--cobalt); }
@media (min-width: 860px) {
  .legal-layout { grid-template-columns: 200px minmax(0, 720px); gap: 56px; justify-content: center; }
  .legal-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; flex-direction: column; }
}
.doc { max-width: 720px; }
.doc h2 { font-size: 31px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text-2); font-size: 16.5px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .summary-box { margin-top: 22px; }
.doc .summary-box ul { margin: 6px 0 0; }

/* ---------- Animations ---------- */

@keyframes squish {
  0% { transform: scale(1); animation-timing-function: ease-out; }
  35% { transform: scale(0.78); animation-timing-function: ease-in-out; }
  70% { transform: scale(1.07); animation-timing-function: ease-in-out; }
  100% { transform: scale(1); }
}
@keyframes ring { 0% { opacity: 1; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes curl-swap { 0% { opacity: 0; } 50% { opacity: 1; } 82% { opacity: 0; } }
@keyframes curl-swap-a { 0% { opacity: 1; } 50% { opacity: 0; } 82% { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes float-up {
  0% { opacity: 0; transform: translateY(40px) scale(0.6) rotate(var(--r, 0deg)); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-60px) scale(1) rotate(var(--r, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .confetti { display: none; }
}
