/* ==========================================================================
   A wall of love made of paper.
   All colours live here as CSS variables: light first, then dark.
   ========================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --paper-3: #e7decc;
  --card: #fffdf8;
  --ink: #1d1a16;
  --ink-2: #514a40;
  --ink-3: #877d6e;
  --line: #e4dac8;
  --line-2: #d3c6af;

  --accent: #e8492f;
  --accent-2: #c43a22;
  --accent-soft: #fbe1d8;
  --on-accent: #ffffff;

  --butter: #fbe7a1;
  --mint: #cdebd3;
  --lilac: #ddd3f5;
  --peach: #fbd3bf;
  --sky: #cfe3f4;
  --note-ink: #2a241c;
  --tape: rgba(255, 255, 255, 0.55);

  --ok: #1d7f4f;
  --ok-soft: #d9efe1;
  --warn: #a86b0c;
  --danger: #bf3520;
  --danger-soft: #fbe2db;

  --band: #1b1713;
  --band-ink: #f4ede1;
  --band-2: #27211b;
  --code-bg: #17140f;
  --code-ink: #efe7da;

  --shadow-1: 0 1px 0 rgba(70, 48, 15, 0.04), 0 1px 3px rgba(70, 48, 15, 0.07);
  --shadow-2: 0 1px 2px rgba(70, 48, 15, 0.06), 0 16px 36px -20px rgba(70, 48, 15, 0.38);
  --shadow-3: 0 2px 6px rgba(70, 48, 15, 0.06), 0 36px 70px -34px rgba(70, 48, 15, 0.5);
  --note-shadow: 0 1px 1px rgba(60, 40, 10, 0.08), 0 18px 28px -16px rgba(60, 40, 10, 0.45);

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --display: var(--serif);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #15120e;
    --paper-2: #1b1712;
    --paper-3: #26211a;
    --card: #1f1b16;
    --ink: #f3ecdf;
    --ink-2: #cbc0ae;
    --ink-3: #928876;
    --line: #2f2920;
    --line-2: #40372b;
    --accent: #ff6a4d;
    --accent-2: #ff8a70;
    --accent-soft: #3b1e16;
    --butter: #eedb94;
    --mint: #b9dcc1;
    --lilac: #cbc0ec;
    --peach: #efc1aa;
    --sky: #b9d2e6;
    --tape: rgba(255, 255, 255, 0.32);
    --ok: #63cf93;
    --ok-soft: #17301f;
    --warn: #e0a44a;
    --danger: #ff7a62;
    --danger-soft: #3a1a14;
    --band: #0e0c09;
    --band-2: #1a1611;
    --code-bg: #0f0d0a;
    --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.8);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, 0.4), 0 40px 80px -36px rgba(0, 0, 0, 0.9);
    --note-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 20px 30px -16px rgba(0, 0, 0, 0.75);
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #15120e;
  --paper-2: #1b1712;
  --paper-3: #26211a;
  --card: #1f1b16;
  --ink: #f3ecdf;
  --ink-2: #cbc0ae;
  --ink-3: #928876;
  --line: #2f2920;
  --line-2: #40372b;
  --accent: #ff6a4d;
  --accent-2: #ff8a70;
  --accent-soft: #3b1e16;
  --butter: #eedb94;
  --mint: #b9dcc1;
  --lilac: #cbc0ec;
  --peach: #efc1aa;
  --sky: #b9d2e6;
  --tape: rgba(255, 255, 255, 0.32);
  --ok: #63cf93;
  --ok-soft: #17301f;
  --warn: #e0a44a;
  --danger: #ff7a62;
  --danger-soft: #3a1a14;
  --band: #0e0c09;
  --band-2: #1a1611;
  --code-bg: #0f0d0a;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.8);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, 0.4), 0 40px 80px -36px rgba(0, 0, 0, 0.9);
  --note-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 20px 30px -16px rgba(0, 0, 0, 0.75);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body > main { flex: 1; }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
code, pre { font-family: var(--mono); }
:not(pre) > code { font-size: 0.86em; background: var(--paper-3); padding: 0.12em 0.42em; border-radius: 6px; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.78rem; }
.center { text-align: center; }
.js .js-hide { display: none; }

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 5.4vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.018em;
}
.display em, .h-display em { font-style: italic; }
.display-sm { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem); }
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.3rem + 2.9vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.h-page { font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.3rem); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem); color: var(--ink-2); max-width: 36em; line-height: 1.55; }

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

.btn {
  --btn-shadow: 0 0 0 transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.82em 1.25em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 620 0.95rem/1.1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.05s; }
.btn .icon { flex: none; }
.btn-lg { font-size: 1.04rem; padding: 1em 1.55em; }
.btn-sm { font-size: 0.86rem; padding: 0.6em 0.95em; }
.btn-block { width: 100%; }
.btn-sub { font-weight: 450; opacity: 0.78; }

.btn-accent { background: var(--accent); color: var(--on-accent); --btn-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 10px 22px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-accent:hover { --btn-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 16px 30px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ink { background: var(--ink); color: var(--paper); --btn-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-dev { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--line-2); }
.btn-brand { background: var(--accent); color: var(--on-accent); --btn-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 95%, transparent); }

.link-quiet { background: none; border: 0; padding: 0; color: var(--ink-2); font-weight: 600; font-size: 0.93rem; text-decoration: none; cursor: pointer; }
.link-quiet:hover { color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35em; color: var(--ink-2); margin-top: 10px; text-decoration: none; font-weight: 600; }
.link-arrow:hover { color: var(--ink); }
.link-danger { background: none; border: 0; padding: 0; color: var(--danger); cursor: pointer; font-weight: 600; margin-top: 10px; }

/* ---------- Header & footer ---------- */

.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.wordmark span { font-family: var(--serif); font-size: 1.62rem; letter-spacing: -0.01em; line-height: 1; }
.logo-mark { flex: none; color: var(--ink); transition: transform 0.4s var(--ease); }
.wordmark:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 560; font-size: 0.95rem; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-actions { display: flex; align-items: center; gap: 18px; }

.app-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; }
.app-header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.app-nav { display: flex; gap: 4px; flex: 1; }
.app-nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 0.93rem; }
.app-nav a:hover { color: var(--ink); background: var(--paper-2); }
.app-nav a[aria-current] { color: var(--ink); background: var(--paper-3); }
.app-actions { display: flex; align-items: center; gap: 16px; }
.app-actions form { margin: 0; }
.plan-pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.78rem; font-weight: 650; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
a.plan-pill:hover { border-color: var(--accent); color: var(--accent); }
.plan-pill.plan-pro { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-pill.lg { font-size: 0.95rem; padding: 7px 16px; }

.auth-top { padding: 22px clamp(16px, 4vw, 40px); }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; margin-top: auto; }
.site-footer.is-app { padding: 28px 0 34px; }
.site-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand p { margin: 0; color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.is-app .footer-brand p { display: none; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.theme-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.theme-toggle .when-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .when-dark { display: inline-flex; }
  :root:not([data-theme='light']) .theme-toggle .when-light { display: none; }
}
:root[data-theme='dark'] .theme-toggle .when-dark { display: inline-flex; }
:root[data-theme='dark'] .theme-toggle .when-light { display: none; }

/* ---------- Sticky notes (shared) ---------- */

.f-butter { --nc: var(--butter); }
.f-mint { --nc: var(--mint); }
.f-lilac { --nc: var(--lilac); }
.f-peach { --nc: var(--peach); }
.f-sky { --nc: var(--sky); }

.hnote {
  position: relative;
  margin: 0;
  background: var(--nc, var(--butter));
  color: var(--note-ink);
  padding: 24px 20px 18px;
  border-radius: 3px 3px 6px 20px / 3px 3px 6px 12px;
  box-shadow: var(--note-shadow);
}
.hnote::after { content: ''; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; border-radius: 0 0 6px 0; background: linear-gradient(315deg, rgba(0, 0, 0, 0.08), transparent 58%); pointer-events: none; }
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 86px;
  height: 25px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  border-left: 1px dashed rgba(0, 0, 0, 0.06);
  border-right: 1px dashed rgba(0, 0, 0, 0.06);
}
.mini-stars { display: inline-flex; gap: 2px; }
.mini-stars svg { width: 13px; height: 13px; fill: var(--note-ink); }

/* ---------- Landing: hero ---------- */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent);
  pointer-events: none;
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 14px 7px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 560;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.hero .display { margin-bottom: 26px; }
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble em { color: var(--accent); padding-right: 0.06em; }
.scribble svg { position: absolute; left: -3%; bottom: -0.16em; width: 106%; height: 0.32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s 0.55s var(--ease) forwards; vector-effect: non-scaling-stroke; }
.scribble path + path { stroke-width: 3; opacity: 0.7; animation-delay: 1.15s; animation-duration: 0.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 0.92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--ok); }

.hero-art { position: relative; }
.board { position: relative; height: 540px; }
.board .hnote {
  position: absolute;
  width: 232px;
  rotate: var(--rot, 0deg);
  animation: note-drop 0.9s var(--ease) backwards, note-float 7s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.9s);
  transition: rotate 0.4s var(--ease), scale 0.4s var(--ease);
}
.board .hnote:hover { rotate: 0deg; scale: 1.04; z-index: 5; }
.board blockquote { margin: 10px 0 12px; font-family: var(--serif); font-size: 1.32rem; line-height: 1.14; letter-spacing: -0.005em; }
.board figcaption { font-size: 0.8rem; opacity: 0.78; }
.hnote-1 { --rot: -3.5deg; --d: 0.1s; top: 0; left: 0; width: 50% !important; }
.hnote-2 { --rot: 3deg; --d: 0.25s; top: 34px; right: 0; width: 47% !important; }
.hnote-3 { --rot: 2deg; --d: 0.4s; top: 236px; left: 3%; width: 42% !important; }
.hnote-4 { --rot: -2.5deg; --d: 0.55s; top: 262px; right: 2%; width: 45% !important; }
.hnote-5 { --rot: -1.5deg; --d: 0.7s; top: 396px; left: 1%; width: 46% !important; z-index: 2; }
@keyframes note-drop { from { opacity: 0; translate: 0 -28px; scale: 1.06; } }
@keyframes note-float { from { translate: 0 0; } to { translate: 0 -7px; } }
.hero-stamp {
  position: absolute;
  top: 436px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  font: 700 0.8rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  rotate: -11deg;
  z-index: 3;
  animation: stamp 0.5s 1.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
}
@keyframes stamp { from { opacity: 0; scale: 1.8; } }
.hero-chip {
  position: absolute;
  right: -1%;
  top: 492px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  background: var(--band);
  color: var(--band-ink);
  border-radius: 999px;
  box-shadow: var(--shadow-3);
  font-size: 0.8rem;
  animation: note-drop 0.8s 1.1s var(--ease) backwards;
}
.hero-chip code { background: none; padding: 0; font-size: 0.8rem; color: #ffd2c6; }
.hero-chip .chip-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(99, 207, 147, 0.16); color: #7fe0aa; font-weight: 650; }
.chip-live i, .chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip-live i { animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.example-tag { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; font-size: 0.82rem; color: var(--ink-3); }
.example-tag em { font-style: italic; }

/* ---------- Landing: platform strip ---------- */

.platform-strip { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.strip-track { display: flex; width: max-content; animation: strip 46s linear infinite; }
.strip-track ul { display: flex; align-items: center; gap: 44px; margin: 0; padding: 0 22px; list-style: none; }
.strip-track li { font-family: var(--serif); font-size: 1.55rem; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.strip-track li + li::before { content: '✦'; font-size: 0.7rem; color: var(--accent); margin-left: -22px; margin-right: -22px; }
.strip-track .strip-label { font: 650 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.platform-strip:hover .strip-track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- Landing: sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: color-mix(in srgb, var(--paper-2) 75%, transparent); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head.left { text-align: left; margin: 0; }
.section-lede { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; margin: 20px auto 0; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 28px; box-shadow: var(--shadow-1); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.step-art { background: var(--paper-2); border-radius: 16px; padding: 12px; margin-bottom: 22px; aspect-ratio: 26 / 18; display: grid; place-items: center; overflow: hidden; }
.step-n, .step h3, .step p { margin-inline: 14px; }
.step-n { display: block; font: 600 0.78rem/1 var(--mono); color: var(--accent); letter-spacing: 0.08em; margin-bottom: 10px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1; margin-bottom: 10px; }
.step p { color: var(--ink-2); margin-bottom: 0; }

.illo { width: 100%; height: auto; overflow: visible; }
.illo .s-ink { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.illo .s-line { stroke: var(--line-2); fill: none; }
.illo .s-paper { stroke: var(--card); fill: none; stroke-width: 2.4; }
.illo .s-round { stroke-linecap: round; fill: none; }
.illo .s-fat { stroke-width: 6; }
.illo .s-thin { stroke-width: 1.5; }
.illo .s-dash { stroke-dasharray: 3 4; stroke-width: 1.4; }
.illo .f-card { fill: var(--card); }
.illo .f-none { fill: none; }
.illo .f-ink { fill: var(--ink); }
.illo .f-line { fill: var(--line-2); }
.illo .f-accent { fill: var(--accent); }
.illo .f-butter { fill: var(--butter); }
.illo .f-mint { fill: var(--mint); }
.illo .f-lilac { fill: var(--lilac); }
.illo .f-peach { fill: var(--peach); }
.illo-float-a { animation: bob 5s ease-in-out infinite alternate; }
.illo-float-b { animation: bob 6s 0.6s ease-in-out infinite alternate-reverse; }
@keyframes bob { to { transform: translateY(-6px); } }
.illo-stamp { transform-origin: 190px 132px; transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.step:hover .illo-stamp { transform: rotate(-12deg) scale(1.08); }
.illo-stars path { transform-box: fill-box; }
.step:hover .illo-snap { animation: snap 0.6s var(--ease); }
@keyframes snap { 40% { transform: translateY(-5px); } }

/* Match-my-site mocks: these colours simulate other people's websites, so they ignore our theme. */
.mocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.mock { margin: 0; }
.mock > div:first-child, .mock-bar { border-radius: 16px 16px 0 0; }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--paper-3); border: 1px solid var(--line-2); border-bottom: 0; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.mock-bar span { margin-left: 10px; flex: 1; font: 500 0.72rem/1 var(--mono); color: var(--ink-3); background: var(--card); padding: 6px 10px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-site { min-height: 460px; padding: 30px 26px 30px; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: var(--shadow-2); }
.mock figcaption { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--ink-3); }
.mock-kicker { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.mock-title { margin: 0 0 22px; line-height: 1.1; }
.mock-coach .mock-site { background: #fbf7f0; color: #2f2a24; font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif; font-size: 15px; }
.mock-coach .mock-title { font-size: 1.75rem; font-style: italic; }
.mock-studio .mock-site { background: #0f1013; color: #e9e7e2; font-family: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif; font-size: 14.5px; border-color: #2a2b30; }
.mock-studio .mock-title { font-size: 1.95rem; font-weight: 800; letter-spacing: -0.03em; }
.mock-studio .mock-kicker { color: #c6ff4a; opacity: 1; }
.mock-shop .mock-site { background: #fff1e5; color: #3d2418; font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Trebuchet MS', system-ui, sans-serif; font-size: 15px; }
.mock-shop .mock-title { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.01em; }
.mock-widget { min-height: 200px; }

.style-switch { display: grid; justify-items: center; gap: 26px; }
.style-stage { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow-2); }
.style-preview { min-height: 380px; color: var(--ink); }

.section-ink { background: var(--band); color: var(--band-ink); --ink: var(--band-ink); --ink-2: #cbbfad; --ink-3: #998e7c; --line: #3a3229; }
.section-ink .kicker { color: #a99c88; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.install-grid .section-lede { margin: 20px 0 26px; color: #cbbfad; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--ok); margin-top: 3px; flex: none; }
.section-ink .ticks .icon { color: #7fe0aa; }
.install-demo { position: relative; padding-bottom: 70px; }
.code-card { background: #0b0907; border: 1px solid #332b22; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); rotate: -1.2deg; }
.code-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #2a231b; font: 500 0.76rem/1 var(--mono); color: #8d8270; }
.code-copy-tag, .code-top .code-copy { display: inline-flex; align-items: center; gap: 6px; color: #7fe0aa; }
.code-card pre { margin: 0; padding: 22px 20px 26px; font-size: 0.9rem; line-height: 1.7; color: #efe7da; white-space: pre-wrap; word-break: break-all; }
.tk-p { color: #8d8270; } .tk-t { color: #ff8a70; } .tk-a { color: #eedb94; } .tk-s { color: #b9dcc1; }
.live-card {
  position: absolute;
  right: 4%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 16px;
  background: #fffdf8;
  color: #1d1a16;
  border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  rotate: 1.5deg;
}
.live-card strong { display: block; font-size: 0.92rem; }
.live-card span:not(.pulse) { font-size: 0.8rem; color: #6d6456; }
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #1d7f4f; flex: none; }
.pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #1d7f4f; opacity: 0; animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

/* Pricing */
.pricing { display: grid; justify-items: center; gap: 34px; }
.bill-toggle { display: inline-flex; padding: 5px; background: var(--paper-3); border-radius: 999px; }
.bill-toggle label { padding: 9px 18px; border-radius: 999px; font-weight: 620; font-size: 0.92rem; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; transition: background 0.2s, color 0.2s; }
.save { font-size: 0.72rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
#bill-m:checked ~ .bill-toggle label[for='bill-m'],
#bill-y:checked ~ .bill-toggle label[for='bill-y'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
#bill-m:focus-visible ~ .bill-toggle label[for='bill-m'], #bill-y:focus-visible ~ .bill-toggle label[for='bill-y'] { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.price-y { display: none !important; }
#bill-y:checked ~ .plans .price-y { display: flex !important; }
#bill-y:checked ~ .plans .price-m { display: none !important; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; max-width: 900px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px 34px 34px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.plan-price .amt { font-family: var(--serif); font-size: 4.2rem; line-height: 1; letter-spacing: -0.02em; }
.plan-price .per { color: var(--ink-3); font-weight: 550; }
.plan-note { color: var(--ink-2); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li .icon { color: var(--ok); flex: none; margin-top: 3px; }
.plan li.dim { color: var(--ink-3); }
.plan li.dim .icon { color: var(--accent); }
.plan-pro { background: var(--band); color: var(--band-ink); border-color: var(--band); box-shadow: var(--shadow-3); --ink-2: #cbbfad; --ink-3: #9a8f7d; }
.plan-pro li .icon { color: #7fe0aa; }
.plan-flag { position: absolute; top: -13px; right: 28px; background: var(--accent); color: var(--on-accent); font-size: 0.76rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; rotate: 3deg; box-shadow: var(--shadow-2); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: transform 0.35s var(--ease), background 0.2s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq summary:hover i { border-color: var(--ink); }
.faq details p { color: var(--ink-2); margin: -6px 0 24px; max-width: 42em; }

/* Final CTA */
.final { padding: clamp(80px, 11vw, 150px) 0; text-align: center; position: relative; overflow: hidden; }
.final-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.final .lede { margin: 0; }
.final-notes .fn { position: absolute; padding: 12px 16px; background: var(--nc); color: var(--note-ink); font-family: var(--serif); font-size: 1.3rem; box-shadow: var(--note-shadow); border-radius: 3px 3px 5px 14px; animation: note-float 6s ease-in-out infinite alternate; }
.fn:nth-child(1) { top: -30px; left: 4%; rotate: -8deg; }
.fn:nth-child(2) { top: 10px; right: 6%; rotate: 6deg; animation-delay: -2s; }
.fn:nth-child(3) { bottom: 0; left: 10%; rotate: 5deg; animation-delay: -3s; }
.fn:nth-child(4) { bottom: 20px; right: 9%; rotate: -5deg; animation-delay: -1s; }

/* ---------- Forms ---------- */

.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 620; font-size: 0.9rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field small { color: var(--ink-3); font-size: 0.8rem; }
.opt { font-style: normal; font-weight: 450; color: var(--ink-3); font-size: 0.82rem; margin-left: 4px; }
input:not([type='radio']):not([type='checkbox']):not([type='color']),
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 0.8; }
input:not([type='radio']):not([type='checkbox']):focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input[readonly] { background: var(--paper-2); }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { margin: 0; padding: 11px 14px; background: var(--danger-soft); color: var(--danger); border-radius: 12px; font-weight: 560; font-size: 0.92rem; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--ok-soft); color: var(--ink); border-radius: 14px; margin-bottom: 14px; }
.callout p { margin: 0; }
.callout .icon { color: var(--ok); flex: none; margin-top: 2px; }
.count { justify-self: end; font: 500 0.75rem/1 var(--mono); color: var(--ink-3); margin-top: -2px; }
.count.near { color: var(--warn); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 520; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--paper-3); border-radius: 999px; }
.seg a, .seg button, .seg label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-weight: 620;
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.seg b { font-weight: 650; font-size: 0.78rem; color: var(--ink-3); }
.seg a:hover, .seg button:hover, .seg label:hover span { color: var(--ink); }
.seg a[aria-current], .seg button[aria-pressed='true'], .seg label input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.seg label { position: relative; display: inline-flex; }
.seg label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.seg-lg button { padding: 10px 20px; font-size: 0.95rem; }

/* ---------- Auth ---------- */

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; padding: 0 0 32px; }
.auth-card { width: 100%; max-width: 430px; margin: 0 auto; align-self: center; padding: clamp(24px, 6vh, 64px) clamp(16px, 4vw, 32px); }
.h-auth { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem); margin-bottom: 10px; }
.auth-sub { margin-bottom: 28px; }
.auth-aside { position: relative; margin: 0 clamp(16px, 3vw, 32px) 0 0; border-radius: 32px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; min-height: 560px; padding: 40px; }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%); }
.auth-notes { position: relative; width: 100%; max-width: 420px; height: 360px; }
.auth-notes .hnote { position: absolute; width: 230px; animation: note-drop 0.9s var(--ease) backwards, note-float 7s ease-in-out infinite alternate; }
.auth-notes blockquote { margin: 0 0 10px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.auth-notes figcaption { font-size: 0.8rem; opacity: 0.75; }
.an-1 { top: 0; left: 0; rotate: -4deg; }
.an-2 { top: 90px; right: 0; rotate: 3deg; animation-delay: 0.15s, 1s !important; }
.an-3 { bottom: 0; left: 18%; rotate: -1.5deg; animation-delay: 0.3s, 1.2s !important; }
.auth-aside-line { position: relative; font-family: var(--serif); font-size: 1.9rem; margin: 24px 0 0; text-align: center; }
.auth-aside-line em { color: var(--accent); }

/* ---------- App ---------- */

.app { padding: 34px 0 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head .kicker { margin-bottom: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-3);
  font-weight: 560;
  font-size: 0.92rem;
  translate: -50% 0;
  animation: toast-in 0.5s var(--ease) backwards, toast-out 0.5s 4.5s var(--ease) forwards;
}
.toast .icon { color: #7fe0aa; flex: none; }
@keyframes toast-in { from { opacity: 0; translate: -50% 16px; } }
@keyframes toast-out { to { opacity: 0; translate: -50% 16px; visibility: hidden; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.stat { display: grid; gap: 4px; padding: 20px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); }
.stat-label { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.stat-num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; letter-spacing: -0.02em; margin-top: 6px; }
.stat-num small { font-size: 1.5rem; color: var(--ink-3); }
.stat-meta { font-size: 0.86rem; color: var(--ink-2); }
.stat-hot { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.stat-hot .stat-num { color: var(--accent-2); }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 650; white-space: nowrap; text-decoration: none; position: relative; z-index: 2; }
.chip .icon { width: 13px; height: 13px; }
.chip-live { background: var(--ok-soft); color: var(--ok); }
.chip-wait { background: var(--paper-3); color: var(--ink-2); }
.chip-wait i { background: transparent; border: 1.5px solid currentColor; }
.chip-hot { background: var(--accent); color: var(--on-accent); }
a.chip-hot:hover { background: var(--accent-2); }
.chip-muted { background: var(--paper-3); color: var(--ink-2); }

.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.wall-card { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-1); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s; overflow: hidden; }
.wall-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--wc, var(--accent)); }
.wall-card:not(.wall-card-new):not(.wall-card-upsell):hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.wall-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.wall-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wall-swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--wc, var(--accent)); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-2); flex: none; }
.wall-swatch.lg { width: 22px; height: 22px; margin-top: 12px; }
.wall-card-name { font-family: var(--serif); font-weight: 400; font-size: 1.95rem; line-height: 1.05; margin: 18px 0 6px; letter-spacing: -0.01em; }
.wall-card-meta { color: var(--ink-2); font-size: 0.9rem; margin: 0 0 22px; }
.wall-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.wall-card-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: transform 0.3s var(--ease), background 0.2s; }
.wall-card:hover .wall-card-go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateX(3px); }
.wall-card-new, .wall-card-upsell { background: transparent; border: 1.5px dashed var(--line-2); box-shadow: none; }
.wall-card-new::before, .wall-card-upsell::before { display: none; }
.wall-card-new .wall-card-name, .wall-card-upsell .wall-card-name { margin-top: 0; margin-bottom: 14px; font-size: 1.6rem; }
.create-form .btn { justify-self: start; }

.empty-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-2); }
.empty-hero-art { position: relative; height: 280px; }
.empty-hero-art .hnote { position: absolute; display: block; width: 210px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; animation: note-drop 0.9s var(--ease) backwards, note-float 6s ease-in-out infinite alternate; }
.e1 { top: 10px; left: 6%; rotate: -5deg; }
.e2 { bottom: 10px; right: 6%; rotate: 4deg; font-size: 1.8rem !important; letter-spacing: 0.08em; animation-delay: 0.2s, 1s !important; }
.empty-hero-copy .h-display { margin-bottom: 10px; }
.empty-hero-copy .create-form { margin-top: 24px; }

.crumbs { display: flex; gap: 8px; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.wall-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.wall-head-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.h-wall { font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem); overflow-wrap: anywhere; }
.wall-head-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.wall-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px 14px; text-decoration: none; color: var(--ink-2); font-weight: 620; font-size: 0.95rem; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); }
.tabs a[aria-current]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--ink); }
.tab-count { background: var(--accent); color: var(--on-accent); font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; font-weight: 700; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-1); }
.panel.narrow { max-width: 680px; }
.panel-title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: 6px; }
.panel-sub { font-size: 1rem; font-weight: 650; margin: 28px 0 10px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.panel-danger { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.panel-danger .panel-title { color: var(--danger); }
.panel > p.muted:not(:last-child) { margin-bottom: 18px; }

/* Testimonials */
.tm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.add-panel summary { list-style: none; }
.add-panel summary::-webkit-details-marker { display: none; }
.add-panel[open] { flex-basis: 100%; order: 3; }
.add-panel[open] summary { margin-bottom: 12px; }
.add-form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-2); }
.add-form > p { margin: 0; }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.9rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--accent); }
.rating-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }

.tm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm { display: flex; justify-content: space-between; gap: 24px; padding: 22px 22px 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); animation: rise-in 0.5s var(--ease) backwards; }
.tm:nth-child(2) { animation-delay: 0.04s; } .tm:nth-child(3) { animation-delay: 0.08s; } .tm:nth-child(4) { animation-delay: 0.12s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
.tm.is-pinned { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tm-main { min-width: 0; flex: 1; }
.tm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars-row { display: inline-flex; gap: 2px; }
.stars-row svg { width: 17px; height: 17px; }
.stars-row .on { fill: var(--accent); }
.stars-row .off { fill: var(--line-2); }
.tm-body { font-size: 1.07rem; line-height: 1.55; margin: 12px 0 10px; white-space: pre-line; overflow-wrap: anywhere; max-width: 62em; }
.tm-who { margin: 0 0 6px; font-size: 0.94rem; }
.tm-who span { color: var(--ink-2); }
.tm-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.tm-email { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.tm-email em { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper-3); padding: 2px 6px; border-radius: 5px; color: var(--ink-3); }
.tm-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; min-width: 128px; }
.tm-actions form { margin: 0; }
.act { width: 100%; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: transparent; font-size: 0.85rem; font-weight: 620; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.act:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); }
.act-go { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.act-go:hover { background: var(--ink); color: var(--paper); opacity: 0.88; }
.act-danger:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }

.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: 24px; }
.empty-note { width: 84px; height: 84px; display: grid !important; place-items: center; rotate: -5deg; margin-bottom: 14px; padding: 0 !important; }
.empty-note .icon { color: var(--accent); }
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.empty p { max-width: 30em; }

/* Design */
.design { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 26px; align-items: start; }
.design-controls { display: grid; gap: 4px; }
.ctl { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.ctl legend { font-weight: 650; font-size: 0.9rem; margin-bottom: 10px; padding: 0; }
.ctl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 0.8rem; color: var(--ink-3); margin: 8px 0 0; }
.layout-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.layout-opt { position: relative; cursor: pointer; }
.layout-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.layout-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--card); transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease); }
.layout-card svg { width: 30px; height: 30px; color: var(--ink-2); }
.layout-card b { font-size: 0.9rem; font-weight: 620; }
.layout-opt:hover .layout-card { border-color: var(--ink-3); }
.layout-opt input:checked + .layout-card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-2); }
.layout-opt input:checked + .layout-card svg { color: var(--accent); }
.layout-opt input:focus-visible + .layout-card { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.seg-input { display: flex; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease); }
.swatch:hover { transform: scale(1.1); }
.swatch input[type='radio'] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch:has(input[type='radio']:checked) { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.swatch:has(input[type='radio']:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 6px; }
.swatch-custom { background: conic-gradient(#ff5e5e, #ffd25e, #5eff8f, #5ec8ff, #a35eff, #ff5ec8, #ff5e5e); padding: 4px; }
.swatch-custom input[type='color'] { position: relative; z-index: 1; width: 100%; height: 100%; padding: 0; border: 2px solid var(--card); border-radius: 50%; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.swatch-custom input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-custom input[type='color']::-webkit-color-swatch { border: none; border-radius: 50%; }
.swatch-custom input[type='color']::-moz-color-swatch { border: none; border-radius: 50%; }
.checks { display: grid; gap: 10px; }
.design-save { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 12px 12px 18px; background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2); margin-top: 6px; }
.dirty { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--warn); }
.dirty::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.design-preview { position: sticky; top: 86px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-2); overflow: hidden; }
.pv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pv-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.pv-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.pv-tools { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.pv-group { display: inline-flex; align-items: center; gap: 6px; }
.pv-k { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.pv-bg { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--b); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.pv-bg[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.pv-bg-custom { background: conic-gradient(#ff5e5e, #ffd25e, #5eff8f, #5ec8ff, #a35eff, #ff5ec8, #ff5e5e); }
.pv-bg-custom input { position: absolute; inset: -6px; width: 34px; height: 34px; opacity: 0; cursor: pointer; }
.pv-group select { width: auto; padding: 5px 28px 5px 10px; font-size: 0.82rem; border-radius: 999px; border-width: 1px; background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; }
.pv-w { border: 1px solid var(--line-2); background: transparent; padding: 5px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pv-w[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pv-stage { padding: clamp(14px, 2.4vw, 28px); background: var(--paper-2); background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.2px); background-size: 18px 18px; min-height: 540px; display: flex; justify-content: center; align-items: flex-start; }
.pv-site { --pv-bg: #f4efe6; --pv-fg: #2b2620; width: 100%; max-width: 100%; background: var(--pv-bg); color: var(--pv-fg); font-family: var(--pv-font, system-ui, -apple-system, 'Segoe UI', sans-serif); border-radius: 16px; padding: 18px clamp(16px, 3vw, 30px) 30px; box-shadow: var(--shadow-2); transition: max-width 0.45s var(--ease), background-color 0.3s, color 0.3s; font-size: 15.5px; }
.pv-site.is-phone { max-width: 375px; border-radius: 30px; }
.pv-site-head { display: flex; gap: 8px; margin-bottom: 22px; }
.pv-site-head span { height: 8px; border-radius: 4px; background: currentColor; opacity: 0.12; }
.pv-site-head span:nth-child(1) { width: 60px; opacity: 0.25; }
.pv-site-head span:nth-child(2) { width: 40px; margin-left: auto; }
.pv-site-head span:nth-child(3) { width: 40px; }
.pv-note { margin: 0; padding: 12px 18px; font-size: 0.82rem; color: var(--ink-3); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }

/* Collect tab */
.collect-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.copy-field { display: flex; gap: 8px; margin: 14px 0 4px; }
.copy-field input { font-family: var(--mono); font-size: 0.85rem !important; min-width: 0; }
.copy-block { display: grid; gap: 8px; }
.copy-block textarea { min-height: 96px; font-size: 0.92rem; background: var(--paper-2); }
.copy-block .btn { justify-self: start; }
.ideas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ideas li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); }
.ideas b { font-size: 0.92rem; }
.ideas span { font-size: 0.84rem; color: var(--ink-2); }
.qr-panel { text-align: center; }
.qr-card { margin: 18px auto 0; max-width: 280px; padding: 26px 26px 18px; background: #fffdf8; color: #1d1a16; border-radius: 20px; box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(0, 0, 0, 0.06); rotate: -1.5deg; transition: rotate 0.4s var(--ease); }
.qr-card:hover { rotate: 0deg; }
.qr-img svg { width: 100%; height: auto; display: block; }
.qr-cap { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin: 10px 0 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }

/* Install tab */
.install { display: grid; gap: 18px; }
.install-status { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; border: 1.5px dashed var(--line-2); background: var(--card); }
.install-status .pulse { background: var(--warn); }
.install-status .pulse::after { border-color: var(--warn); }
.install-status.is-live { border-style: solid; border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.install-status.is-live .pulse { background: var(--ok); }
.install-status.is-live .pulse::after { border-color: var(--ok); }
.is-text { display: grid; gap: 2px; }
.is-text strong { font-size: 1.05rem; }
.is-text span { font-size: 0.9rem; color: var(--ink-2); }
.code-copy { display: grid; gap: 10px; justify-items: start; margin-top: 12px; }
.code-copy pre, .code-block { width: 100%; margin: 0; padding: 18px 20px; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; font-size: 0.86rem; line-height: 1.65; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.code-block { margin: 14px 0 0; white-space: pre; word-break: normal; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.platforms > label { padding: 8px 15px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 620; font-size: 0.9rem; cursor: pointer; color: var(--ink-2); transition: all 0.2s; background: var(--card); }
.platforms > label:hover { border-color: var(--ink-3); color: var(--ink); }
.platforms > input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.platforms > input:focus-visible + label { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.guide { display: none; flex-basis: 100%; margin-top: 18px; padding: 22px; border-radius: 18px; background: var(--paper-2); animation: rise-in 0.35s var(--ease); }
.guide h3 { font-size: 1.05rem; margin-bottom: 14px; }
.platforms:has(#pf-wordpress:checked) [data-guide='wordpress'],
.platforms:has(#pf-shopify:checked) [data-guide='shopify'],
.platforms:has(#pf-squarespace:checked) [data-guide='squarespace'],
.platforms:has(#pf-webflow:checked) [data-guide='webflow'],
.platforms:has(#pf-framer:checked) [data-guide='framer'],
.platforms:has(#pf-wix:checked) [data-guide='wix'],
.platforms:has(#pf-kajabi:checked) [data-guide='kajabi'],
.platforms:has(#pf-carrd:checked) [data-guide='carrd'],
.platforms:has(#pf-ghost:checked) [data-guide='ghost'],
.platforms:has(#pf-html:checked) [data-guide='html'],
.platforms:has(#pf-someone:checked) [data-guide='someone'] { display: block; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.guide-steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; }
.guide-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line-2); font: 600 0.78rem/1 var(--mono); }
.guide-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--butter) 55%, var(--card)); color: var(--note-ink); font-size: 0.88rem; }
.share-box { display: grid; gap: 8px; }
.share-box form { margin: 0; }
.install-more { display: grid; gap: 10px; }
.install-more details.panel { padding: 0; }
.install-more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-size: 0.95rem; }
.install-more summary::-webkit-details-marker { display: none; }
.install-more summary .icon { flex: none; transition: transform 0.3s var(--ease); }
.install-more details[open] summary .icon { transform: rotate(45deg); }
.install-more details > :not(summary) { margin-left: 22px; margin-right: 22px; }
.install-more details > :last-child { margin-bottom: 22px; }

/* Settings & account */
.settings-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.narrow-wrap { max-width: 800px; }
.narrow-wrap .panel { margin-bottom: 18px; }
.plan-now { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.plan-now .kicker { margin-bottom: 4px; }
.plan-name { font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1; margin-bottom: 6px; }
.upgrade { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 22px; background: var(--paper-2); border-radius: 18px; }
.upgrade h3 { font-size: 1.1rem; margin-bottom: 10px; }
.upgrade-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.upgrade-btns form { margin: 0; }
.plan-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.plan-actions form { margin: 0; }
.dev-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 8px; }

/* ---------- Brand pages (collect, thanks, public wall) ---------- */

.brand-page { position: relative; padding: clamp(28px, 6vh, 64px) 16px 40px; }
.brand-glow, .brand-page::before { content: ''; position: absolute; inset: 0 0 auto; height: 520px; background: radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); pointer-events: none; z-index: -1; }
.brand-head { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 0.98rem; }
.monogram { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.03em; box-shadow: 0 8px 18px -10px var(--accent); }
.brand-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.012em; margin: 20px 0 10px; }
.collect-card { position: relative; max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 30px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow-3); }
.collect-sub { margin-bottom: 28px; }
.collect-form { display: grid; gap: 18px; }
.rate { border: 0; padding: 0; margin: 0 0 4px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { cursor: pointer; padding: 2px; border-radius: 10px; transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.rate-stars svg { width: clamp(40px, 9vw, 52px); height: clamp(40px, 9vw, 52px); display: block; fill: var(--paper-3); stroke: var(--line-2); stroke-width: 1.2; stroke-linejoin: round; transition: fill 0.15s, stroke 0.15s; }
.rate-stars label:hover { transform: scale(1.14) rotate(-4deg); }
.rate-stars label:hover svg, .rate-stars label:hover ~ label svg, .rate-stars input:checked ~ label svg { fill: var(--accent); stroke: var(--accent); }
.rate-stars input:checked + label { animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.rate-stars input:focus-visible + label { outline: 2.5px solid var(--accent); outline-offset: 2px; }
@keyframes pop { 50% { transform: scale(1.25); } }
.rate-word { margin: 6px 0 0; min-height: 1.8em; font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--accent); }
.rate-word span { display: none; }
.rate:not(:has(input:checked)) .rate-word [data-w='0'] { display: inline; color: var(--ink-3); }
.rate:has(#r1:checked) [data-w='1'], .rate:has(#r2:checked) [data-w='2'], .rate:has(#r3:checked) [data-w='3'], .rate:has(#r4:checked) [data-w='4'], .rate:has(#r5:checked) [data-w='5'] { display: inline; }
.rate-word.js-word span { display: none !important; }
.rate-word.js-word span.on { display: inline !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 0.84rem; color: var(--ink-3); margin: 0; }
.collect-form .btn-brand { margin-top: 2px; }
.powered { text-align: center; margin: 26px 0 0; font-size: 0.82rem; }
.powered a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; }
.powered a:hover { color: var(--ink); }

.thanks { display: grid; place-items: center; min-height: 80vh; overflow: hidden; }
.thanks-card { position: relative; text-align: center; max-width: 560px; display: grid; justify-items: center; }
.thanks-note { width: 132px; height: 132px; display: grid; place-items: center; background: var(--butter); border-radius: 3px 3px 6px 20px; box-shadow: var(--note-shadow); position: relative; rotate: -5deg; margin-bottom: 30px; animation: fly-in 1s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.thanks-note .icon { color: var(--accent); animation: beat 1.4s 1s ease-in-out infinite; }
@keyframes fly-in { from { opacity: 0; translate: 0 -160px; rotate: -40deg; scale: 0.6; } }
@keyframes beat { 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } 60% { transform: scale(1); } }
.thanks .brand-title { font-size: clamp(3rem, 2rem + 4vw, 4.6rem); margin-top: 14px; }
.thanks-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 26em; }
.try-link { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 26px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 0.88rem; color: var(--ink-2); text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--ease); }
.try-link b { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.try-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -20px; left: calc(var(--i) * 4.5% + 1%); width: 11px; height: 15px; border-radius: 2px; background: var(--accent); opacity: 0; animation: fall 3.4s calc(var(--i) * 70ms + 0.3s) cubic-bezier(0.25, 0.4, 0.6, 1) forwards; }
.confetti i:nth-child(5n + 1) { background: var(--butter); }
.confetti i:nth-child(5n + 2) { background: var(--mint); width: 9px; height: 9px; border-radius: 50%; }
.confetti i:nth-child(5n + 3) { background: var(--lilac); }
.confetti i:nth-child(5n + 4) { background: var(--sky); width: 14px; height: 8px; }
@keyframes fall {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(85vh) translateX(calc((var(--i) - 11) * 6px)) rotate(calc(var(--i) * 70deg)); }
}

.public-wall .pw-head { text-align: center; display: grid; justify-items: center; padding: clamp(24px, 6vh, 56px) 0 clamp(28px, 5vh, 48px); }
.pw-title { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); margin-bottom: 26px; max-width: 14em; }
.pw-body { padding-bottom: 80px; color: var(--ink); }
.pw-noscript { list-style: none; padding: 0; display: grid; gap: 14px; }
.pw-noscript li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }

/* ---------- Docs, legal & messages ---------- */

.doc { padding: 40px 0 80px; }
.doc-wrap { max-width: 860px; }
.doc .lede { margin: 18px 0 30px; }
.doc .panel { margin-bottom: 18px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 38px 0 10px; }
.prose p { color: var(--ink-2); max-width: 44em; }
.template-flag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--butter); color: var(--note-ink); font-size: 0.82rem; font-weight: 650; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.guide-list { display: grid; gap: 8px; margin-top: 12px; }
.guide-acc { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.guide-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 620; cursor: pointer; }
.guide-acc summary::-webkit-details-marker { display: none; }
.guide-acc[open] { padding-bottom: 18px; }
.guide-acc[open] summary .icon { transform: rotate(45deg); }

.message-page { display: grid; place-items: center; padding: 60px 16px; }
.message-card { text-align: center; max-width: 480px; display: grid; justify-items: center; gap: 10px; }
.message-note { display: grid !important; place-items: center; min-width: 120px; min-height: 96px; font-family: var(--serif); font-size: 2rem; rotate: -4deg; margin-bottom: 18px; }
.message-card .h-display { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); }

/* ---------- Printable counter card ---------- */

.is-print { background: #f1ede6; color: #1d1a16; }
.print-page { display: grid; justify-items: center; gap: 24px; padding: 30px 16px 60px; }
.print-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; max-width: 640px; text-align: center; font-size: 0.92rem; color: #514a40; }
.print-tools p { margin: 0; }
.print-tools .btn-ink { background: #1d1a16; color: #fff; }
.counter-card { width: min(100%, 560px); aspect-ratio: 210 / 148; background: #fff; border-radius: 6px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6% 10%; position: relative; }
.counter-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 10px; background: var(--accent); border-radius: 6px 6px 0 0; }
.cc-kicker { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.cc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 4.5vw, 2.1rem); line-height: 1.08; margin: 0 0 14px; max-width: 16em; }
.cc-qr { width: 34%; }
.cc-qr svg { width: 100%; height: auto; display: block; }
.cc-scan { margin: 12px 0 2px; font-size: 0.9rem; }
.cc-stars { margin: 0; color: var(--accent); letter-spacing: 0.2em; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  .no-print { display: none !important; }
  .is-print { background: #fff; }
  .print-page { padding: 0; gap: 0; }
  .counter-card { width: 210mm; height: 148.5mm; aspect-ratio: auto; box-shadow: none; border-radius: 0; border-bottom: 1px dashed #bbb; padding: 14mm 24mm; }
  .counter-card::before { border-radius: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .design { grid-template-columns: 1fr; }
  .design-preview { position: relative; top: 0; order: -1; }
  .pv-stage { min-height: 420px; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .board { height: 500px; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .mocks { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .install-grid, .faq-grid { grid-template-columns: 1fr; }
  .collect-grid, .settings-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .empty-hero { grid-template-columns: 1fr; }
  .empty-hero-art { height: 200px; max-width: 420px; }
}

@media (max-width: 680px) {
  .site-actions .link-quiet { display: none; }
  .app-header-inner { gap: 12px; }
  .app-nav a { padding: 7px 9px; }
  .app-actions .plan-pill:not(.plan-pro) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .stat-num { font-size: 2.6rem; }
  .plans { grid-template-columns: 1fr; }
  .field-pair, .ctl-pair, .ideas { grid-template-columns: 1fr; }
  .tm { flex-direction: column; gap: 16px; padding: 18px; }
  .tm-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .act { width: auto; }
  .board { height: 548px; }
  .board .hnote { padding: 20px 14px 13px; }
  .board blockquote { font-size: 1.06rem; margin: 8px 0 9px; }
  .board figcaption { font-size: 0.72rem; }
  .hnote-3 { top: 214px; }
  .hnote-4 { top: 236px; }
  .hnote-5 { top: 362px; left: 0; width: 50% !important; }
  .hero-stamp { left: 54%; top: 392px; font-size: 0.68rem; padding: 5px 9px; }
  .hero-chip { right: 0; top: 504px; font-size: 0.72rem; }
  .hero-chip code { font-size: 0.7rem; }
  .btn-lg { white-space: normal; }
  .install-demo { padding-bottom: 80px; }
  .live-card { right: 0; left: 8%; }
  .final-notes .fn { font-size: 1rem; padding: 8px 12px; }
  .fn:nth-child(1) { top: -50px; }
  .fn:nth-child(3), .fn:nth-child(4) { bottom: -50px; }
  .wall-head-actions { width: 100%; }
  .copy-field { flex-direction: column; }
  .copy-field .btn { align-self: flex-start; }
  .pv-tools { gap: 10px; }
  .pv-site.is-phone { border-radius: 22px; }
  .install-status { padding: 16px 18px; }
  .counter-card { padding: 6% 8%; }
}

@media (max-width: 400px) {
  .site-actions .btn { padding: 0.55em 0.85em; }
  .wordmark span { font-size: 1.4rem; }
  .app-header .wordmark span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .strip-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .strip-track ul + ul { display: none; }
  .confetti { display: none; }
  .toast { animation: none !important; }
}

.reveal { justify-self: end; font-size: 0.8rem; margin-top: -2px; }

/* Plan notices on the Account page */
.callout > div > p { margin: 0; }
.callout > div > p + p { margin-top: 6px; }
.callout.is-warn { background: color-mix(in srgb, var(--butter) 45%, var(--card)); color: var(--note-ink); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.callout.is-warn .icon { color: var(--warn); }
.callout.is-danger { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.callout.is-danger .icon { color: var(--danger); }
.callout.is-info { background: var(--paper-2); border: 1px solid var(--line); }
.callout.is-info .icon { color: var(--ink-2); }
.plan-pill.plan-ending { background: color-mix(in srgb, var(--butter) 55%, var(--card)); color: var(--note-ink); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.plan-pill.plan-ending:hover { border-color: var(--warn); color: var(--note-ink); }
