/* ==========================================================================
   Linkwren · landing page
   Palette, type and shapes come from the Linkwren logo kit and brand sheet.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette (logo kit README + brand basics PDF) */
  --wren-rust: #C4532A;
  --deep-rust: #A8431F;
  --light-rust: #F0A584;
  --ink: #1C1B1A;
  --paper: #F7F4EE;
  --sand: #F1E2D6;
  --moss: #2F4A3A;

  /* Semantic roles */
  --color-primary: var(--wren-rust);
  --color-primary-strong: var(--deep-rust);
  --color-primary-soft: var(--light-rust);
  --color-secondary: var(--ink);
  --color-accent: var(--moss);
  --color-background: var(--paper);
  --color-surface: #FFFFFF;
  --color-panel: var(--sand);
  --color-text: var(--ink);
  --color-text-muted: #5F5A53;
  --color-text-subtle: #8A837A;
  --color-text-inverse: var(--paper);
  --color-text-inverse-muted: rgba(247, 244, 238, 0.72);
  --color-border: #E8E1D6;
  --color-border-strong: #D5CABB;
  --color-ink-raised: #2A2826;
  --color-ink-line: rgba(247, 244, 238, 0.12);
  --color-moss-raised: #3A5848;
  /* Only used inside product mockups as “user content” (matches the home page design) */
  --color-content-gold: #E2B04A;

  /* Type */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-h3-display: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  --fs-h2-xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h1: clamp(2.625rem, 1.4rem + 3.9vw, 5rem);

  /* Space */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 75rem;

  /* Shape — rounded like the links in the logo */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: clamp(24px, 2vw + 12px, 40px);
  --radius-pill: 999px;

  /* Depth (warm ink-tinted shadows) */
  --shadow-xs: 0 1px 2px rgba(28, 27, 26, 0.06);
  --shadow-sm: 0 1px 2px rgba(28, 27, 26, 0.05), 0 4px 12px -4px rgba(28, 27, 26, 0.08);
  --shadow-md: 0 2px 4px rgba(28, 27, 26, 0.04), 0 16px 32px -12px rgba(28, 27, 26, 0.16);
  --shadow-lg: 0 4px 8px rgba(28, 27, 26, 0.04), 0 32px 64px -24px rgba(28, 27, 26, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 640ms;

  --header-h: 72px;
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 5px var(--deep-rust);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; font-size: var(--fs-h3); }
p { text-wrap: pretty; }

::selection { background: var(--light-rust); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Type helpers ---------- */

.h2 { font-size: var(--fs-h2); }
.h2--xl { font-size: var(--fs-h2-xl); line-height: 0.98; }
.h3-display { font-size: var(--fs-h3-display); letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); color: var(--color-text-muted); line-height: 1.55; }
.muted { color: var(--color-text-muted); }
.text-rust-light { color: var(--light-rust); }


/* ---------- 4. Buttons & controls ---------- */
.btn {
  --btn-bg: var(--wren-rust);
  --btn-fg: #FFFFFF;
  --btn-border: transparent;
  --btn-bg-hover: var(--deep-rust);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }
.btn:focus-visible { border-radius: var(--radius-pill); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn .icon--arrow { transition: transform var(--dur) var(--ease-spring); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bg-hover: #000; }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bg-hover: #FFFFFF; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); --btn-bg-hover: var(--ink); }
.btn--outline:hover { --btn-fg: var(--paper); color: var(--paper); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #FFFFFF; --btn-border: rgba(255, 255, 255, 0.9); --btn-bg-hover: #FFFFFF; }
.btn--outline-light:hover { color: var(--deep-rust); }
.btn--soft { --btn-bg: var(--color-surface); --btn-fg: var(--ink); --btn-border: var(--color-border); --btn-bg-hover: var(--color-surface); box-shadow: var(--shadow-xs); }
.btn--soft:hover { border-color: var(--color-border-strong); }
.btn--sm { min-height: 40px; padding: 0.5rem 1.125rem; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-btn {
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.link-btn:hover { background: rgba(28, 27, 26, 0.06); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 27, 26, 0.06);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: rgba(28, 27, 26, 0.12); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:focus-visible { border-radius: 50%; }

.inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--deep-rust);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: calc(var(--container) + var(--gutter) * 2);
  min-height: 68px;
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.brand { display: inline-flex; flex: none; padding: 4px; border-radius: var(--radius-xs); }
.brand img { height: 32px; width: auto; }

.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; gap: var(--space-lg); list-style: none; padding: 0; }
.primary-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.primary-nav a:hover { color: var(--deep-rust); }
.primary-nav a[aria-current="true"] { text-decoration-line: underline; text-decoration-color: var(--wren-rust); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-xs); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}
.menu-toggle:focus-visible { border-radius: 50%; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .site-header__actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 560px) {
  .site-header__actions .link-btn,
  .site-header__actions .btn { display: none; }
  .brand img { height: 28px; }
}

/* Mobile menu sheet */
.menu-sheet {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  display: none;
  flex-direction: column;
}
.menu-sheet[open] { display: flex; animation: sheet-in var(--dur-slow) var(--ease-out); }
.menu-sheet::backdrop { background: rgba(28, 27, 26, 0.4); }
.menu-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter) 12px calc(var(--gutter) + 6px);
}
.menu-sheet__head img { height: 30px; width: auto; }
.menu-sheet__links { list-style: none; padding: var(--space-lg) var(--gutter); }
.menu-sheet__links li { border-bottom: 1px solid var(--color-border); }
.menu-sheet__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu-sheet__links a::after {
  content: "";
  width: 12px; height: 12px;
  border-top: 2.5px solid var(--wren-rust);
  border-right: 2.5px solid var(--wren-rust);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-spring);
}
.menu-sheet__links a:hover::after { transform: translateX(4px) rotate(45deg); }
.menu-sheet__links li { opacity: 0; animation: rise var(--dur-slow) var(--ease-out) forwards; }
.menu-sheet__links li:nth-child(2) { animation-delay: 40ms; }
.menu-sheet__links li:nth-child(3) { animation-delay: 80ms; }
.menu-sheet__links li:nth-child(4) { animation-delay: 120ms; }
.menu-sheet__links li:nth-child(5) { animation-delay: 160ms; }
.menu-sheet__foot { display: grid; gap: var(--space-sm); margin-top: auto; padding: var(--space-lg) var(--gutter) calc(var(--space-xl) + env(safe-area-inset-bottom)); }
.menu-sheet__note { text-align: center; color: var(--color-text-muted); font-size: var(--fs-sm); }

@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Sections & sheets ---------- */
.section { padding-block: var(--section-y); }
.section--pt0 { padding-top: 0; }
.section--white { background: var(--color-surface); }
.section--sand { background: var(--sand); }
.section--flush { padding-block: 0; }


/* Seams: sheets sit between a white section and a paper section */

/* ---------- 7. Hero ---------- */
.hero {
  --hero-overlap: clamp(56px, 2rem + 6vw, 140px);
  position: relative;
  padding-top: clamp(3rem, 1.5rem + 3.5vw, 5rem);
  isolation: isolate;
  overflow-x: clip;
}
.hero::before {
  /* a faint warm light from the top, the only decoration in the hero */
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  left: 50%;
  width: min(1100px, 140vw);
  aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, rgba(240, 165, 132, 0.22), rgba(241, 226, 214, 0.18) 55%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 72rem;
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
.hero__accent { display: block; color: var(--wren-rust); }
.hero__lead {
  max-width: 36rem;
  margin-top: var(--space-lg);
  text-wrap: balance;
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.hero__product {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  margin-bottom: calc(var(--hero-overlap) * -1);
  animation: rise 0.9s var(--ease-out) 0.1s both;
}
.hero__stage {
  padding: 8px 10px 10px;
  border: 1px solid rgba(196, 83, 42, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--sand), rgba(241, 226, 214, 0.45));
  box-shadow: 0 40px 80px -48px rgba(168, 67, 31, 0.35);
}
.hero__hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 6px 8px 12px;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}
.hero__live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.hero__live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wren-rust); box-shadow: 0 0 0 4px rgba(196, 83, 42, 0.16); }
.hero__hint-narrow { display: none; }
.section--after-hero { padding-top: calc(var(--section-y) + var(--hero-overlap, clamp(56px, 2rem + 6vw, 140px))); }

/* Editor window (the product shot) */
.editor {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow:
    0 1px 2px rgba(28, 27, 26, 0.04),
    0 24px 48px -24px rgba(28, 27, 26, 0.18),
    0 64px 120px -48px rgba(28, 27, 26, 0.22);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.editor__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  height: 56px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--color-border);
}
.editor__crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.editor__mark { width: 30px; height: auto; }
.editor__sep { color: var(--color-border-strong); font-size: 1.125rem; }
.editor__page { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.editor__av {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.5625rem;
  font-weight: 800;
}
.editor__url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--color-text-muted);
  font-weight: 600;
}
.editor__live { width: 7px; height: 7px; border-radius: 50%; background: #3F8F5A; box-shadow: 0 0 0 3px rgba(63, 143, 90, 0.18); }
.editor__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.editor__status { color: var(--color-text-subtle); white-space: nowrap; }
.editor__publish {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--wren-rust);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.editor__publish:hover:not(:disabled) { background: var(--deep-rust); }
.editor__publish:disabled { background: #EFEAE2; color: var(--color-text-subtle); cursor: default; }
.editor__publish.is-done { background: var(--moss); color: var(--paper); }
.editor__publish:focus-visible { border-radius: 9px; }

.editor__body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 268px;
  grid-template-areas: "blocks canvas design";
}
.editor__panel { min-width: 0; padding: 14px 12px 16px; background: #FBF9F5; }
.editor__blocks { grid-area: blocks; display: flex; flex-direction: column; border-right: 1px solid var(--color-border); }
.editor__design { grid-area: design; display: flex; flex-direction: column; border-left: 1px solid var(--color-border); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 6px 10px; }
.panel-title { font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.panel-count { color: var(--color-text-subtle); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.panel-link { padding: 3px 8px; border: 0; border-radius: 6px; background: none; color: var(--color-text-muted); font-size: 0.75rem; font-weight: 600; transition: background-color var(--dur-fast), color var(--dur-fast); }
.panel-link:hover { background: #F0EBE3; color: var(--ink); }
.panel-link:focus-visible { border-radius: 6px; }
.panel-hint { margin-top: auto; padding: 14px 6px 0; color: var(--color-text-subtle); font-size: 0.7rem; line-height: 1.45; }

/* Layers list */
.layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 0 6px 0 2px;
  border-radius: 9px;
  transition: background-color var(--dur-fast);
}
.layer--header { gap: 10px; margin-bottom: 6px; padding: 7px 10px 7px 20px; border: 1px solid var(--color-border); background: var(--color-surface); }
.layer__pin { width: 13px; height: 13px; margin-left: auto; color: var(--color-text-subtle); }
.layers { display: grid; gap: 1px; }
.layers .layer:hover { background: #F2EDE5; }
.layers .layer.is-selected { background: #F7E7DE; box-shadow: inset 2px 0 0 var(--wren-rust); }
.layer__grip {
  flex: none;
  width: 14px; height: 14px;
  background-image: radial-gradient(circle, #B8AE9F 1.1px, transparent 1.4px);
  background-size: 4.6px 4.6px;
  background-position: center;
  opacity: 0;
  cursor: grab;
  transition: opacity var(--dur-fast);
}
.layer:hover .layer__grip { opacity: 1; }
.layer__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  text-align: left;
}
.layer__main:focus-visible { border-radius: 8px; }
.layer__thumb { flex: none; width: 30px; height: 30px; border-radius: 7px; background: var(--sand); object-fit: cover; box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.06); }
.layer__thumb--round { border-radius: 50%; }
.layer__thumb--icon { display: grid; place-items: center; background: #EFE8DE; color: var(--deep-rust); }
.layer__thumb--icon .icon { width: 15px; height: 15px; }
.layer__text { display: grid; flex: 1; min-width: 0; transition: opacity var(--dur); }
.layer__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 0.8125rem; font-weight: 600; }
.layer__meta { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--color-text-subtle); font-size: 0.7rem; white-space: nowrap; }
.layer__badge { padding: 1px 6px; border-radius: 4px; background: #E9E4F5; color: #5A4B8C; font-size: 0.62rem; font-weight: 700; }
.layer:has(input:not(:checked)) .layer__text,
.layer:has(input:not(:checked)) .layer__thumb { opacity: 0.45; }

.eye {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 7px;
  color: var(--color-text-subtle);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.eye:hover { background: rgba(28, 27, 26, 0.06); color: var(--ink); }
.eye input { position: absolute; opacity: 0; pointer-events: none; }
.eye .icon { width: 16px; height: 16px; }
.eye__off { display: none; }
.eye:has(input:not(:checked)) .eye__on { display: none; }
.eye:has(input:not(:checked)) .eye__off { display: block; color: var(--deep-rust); }
.eye:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.layer:not(:hover):not(.is-selected) .eye:has(input:checked) { opacity: 0.55; }

.editor__canvas {
  grid-area: canvas;
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(28, 27, 26, 0.1) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.editor__canvas-label { position: absolute; top: 14px; left: 16px; color: var(--color-text-subtle); font-size: 0.75rem; font-weight: 600; }

.insp { display: grid; gap: 10px; padding: 14px 6px; border-top: 1px solid var(--color-border); }
.insp__label { margin-bottom: 10px; padding: 0; color: var(--color-text-muted); font-size: 0.72rem; font-weight: 600; }
legend.insp__label { float: left; width: 100%; }
legend.insp__label + * { clear: both; }

/* Font menu */
.font-select { position: relative; }
.font-select__button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.font-select__button:hover { border-color: var(--color-text-subtle); }
.font-select__button[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 27, 26, 0.08); }
.font-select__button:focus-visible { border-radius: 10px; }
.font-select__button > .icon { width: 16px; height: 16px; margin-left: auto; color: var(--color-text-subtle); transition: transform var(--dur) var(--ease-out); }
.font-select__button[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.font-select__current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-select__aa {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}
.font-select__button .font-select__aa { font-family: var(--demo-font, var(--font-display)); }
.font-select__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(28, 27, 26, 0.06), 0 18px 40px -12px rgba(28, 27, 26, 0.3);
  animation: menu-in 0.16s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.font-select__menu.is-up { top: auto; bottom: calc(100% + 6px); }
.font-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.font-select__option:hover,
.font-select__option:focus { background: #F2EDE5; }
.font-select__option:focus-visible { box-shadow: inset 0 0 0 2px var(--deep-rust); }
.font-select__label { display: grid; flex: 1; min-width: 0; }
.font-select__label i { color: var(--color-text-subtle); font-size: 0.68rem; font-style: normal; font-weight: 500; }
.font-select__check { width: 15px; height: 15px; color: var(--wren-rust); stroke-width: 2.6; visibility: hidden; }
.font-select__option[aria-selected="true"] .font-select__check { visibility: visible; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.theme-opt { position: relative; display: grid; gap: 6px; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt__thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--t-bg);
  box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.1);
  transition: box-shadow var(--dur-fast);
}
.theme-opt__thumb::before {
  /* avatar */
  content: "";
  position: absolute;
  top: 16%; left: 50%;
  width: 26%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--t-fg);
  transform: translateX(-50%);
}
.theme-opt__thumb::after {
  /* two buttons */
  content: "";
  position: absolute;
  left: 18%; right: 18%; top: 50%;
  height: 8%;
  border-radius: 2px;
  background: var(--t-btn);
  box-shadow: 0 7px 0 var(--t-btn), 0 14px 0 var(--t-btn);
}
.theme-opt__name { color: var(--color-text-muted); font-size: 0.68rem; font-weight: 600; text-align: center; }
.theme-opt:hover .theme-opt__thumb { box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.1), 0 0 0 2px var(--color-border-strong); }
.theme-opt:has(input:checked) .theme-opt__thumb { box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.1), 0 0 0 2px var(--ink); }
.theme-opt:has(input:checked) .theme-opt__name { color: var(--ink); }
.theme-opt:has(input:focus-visible) .theme-opt__thumb { box-shadow: var(--focus-ring); }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #F3EFE8;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 6px 4px;
  border-radius: 7px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.segmented input:checked + span { background: var(--color-surface); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 26, 0.12); }
.segmented span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.shape { display: block; width: 22px; height: 9px; border: 1.5px solid currentColor; }
.shape--rounded { border-radius: 3px; }
.shape--pill { border-radius: 999px; }
.shape--square { border-radius: 0; }
.segmented input:focus-visible + span { box-shadow: var(--focus-ring); }

.editor__plan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}
.editor__plan > span:last-child { display: grid; font-size: 0.75rem; color: var(--color-text-muted); }
.editor__plan b { color: var(--ink); font-size: 0.8125rem; }
.editor__plan-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--sand);
  color: var(--deep-rust);
}
.editor__plan-icon .icon { width: 16px; height: 16px; }

/* Phone preview inside the editor */
.phone {
  --pg-bg: var(--sand);
  --pg-text: var(--ink);
  --pg-muted: #6B635A;
  --pg-card: #FFFFFF;
  --pg-card-text: var(--ink);
  --pg-feature: var(--ink);
  --pg-feature-text: var(--paper);
  --pg-accent: var(--deep-rust);
  --pg-avatar: var(--ink);
  --pg-avatar-text: var(--paper);
  --pg-line: rgba(28, 27, 26, 0.85);
  --pg-radius: 12px;
  --pg-font: var(--font-display);
  --pg-thumb-radius: 8px;
  --pg-card-line: rgba(28, 27, 26, 0.07);
  --pg-card-muted: #7A7268;
  --pg-chip: #F3ECE3;
  width: 272px;
  padding: 8px;
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 0 2px 4px rgba(28, 27, 26, 0.08), 0 28px 48px -24px rgba(28, 27, 26, 0.45);
}
.phone[data-font="jakarta"] { --pg-font: var(--font-body); }
.phone[data-font="fraunces"] { --pg-font: "Fraunces", Georgia, serif; }
.phone[data-font="mono"] { --pg-font: "DM Mono", ui-monospace, monospace; }
.phone[data-shape="pill"] { --pg-radius: 999px; --pg-thumb-radius: 50%; }
.phone[data-shape="square"] { --pg-radius: 3px; --pg-thumb-radius: 2px; }

.phone__screen {
  position: relative;
  height: 556px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--pg-bg);
  transition: background-color var(--dur-slow) var(--ease-out);
}
.phone__screen::before {
  /* camera island */
  content: "";
  position: absolute;
  z-index: 3;
  top: 9px; left: 50%;
  width: 70px; height: 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transform: translateX(-50%);
}

/* Status bar over the cover photo */
.phone__status {
  position: absolute;
  z-index: 2;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 22px 0 28px;
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  pointer-events: none;
}
.phone__status-icons { display: flex; align-items: center; gap: 5px; }
.phone__status-icons .sig {
  width: 14px; height: 9px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 2.5px 35% no-repeat,
    linear-gradient(currentColor, currentColor) 3.8px 100% / 2.5px 60% no-repeat,
    linear-gradient(currentColor, currentColor) 7.6px 100% / 2.5px 80% no-repeat,
    linear-gradient(currentColor, currentColor) 11.4px 100% / 2.5px 100% no-repeat;
}
.phone__status-icons .bat {
  position: relative;
  width: 20px; height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 3px;
}
.phone__status-icons .bat::before { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; border-radius: 1px; background: currentColor; }
.phone__status-icons .bat::after { content: ""; position: absolute; top: 2.5px; right: -3px; width: 1.5px; height: 3px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.75); }

/* Maya's page */
.lp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow-y: auto;
  padding: 0 12px 22px;
  color: var(--pg-text);
  text-align: center;
  scrollbar-width: none;
  transition: color var(--dur-slow) var(--ease-out);
}
.lp::-webkit-scrollbar { display: none; }
.lp__cover {
  position: relative;
  flex: none;
  align-self: stretch;
  height: 116px;
  margin: 0 -12px;
  background: var(--sand);
}
.lp__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp__cover::after {
  /* keeps the status bar readable over any photo */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 48px;
  background: linear-gradient(rgba(28, 27, 26, 0.35), transparent);
}
.lp__avatar {
  position: relative;
  flex: none;
  width: 68px; height: 68px;
  margin-top: -34px;
  border: 3px solid var(--pg-bg);
  border-radius: 50%;
  background: var(--sand);
  object-fit: cover;
  transition: border-color var(--dur-slow) var(--ease-out);
}
.lp__name { margin-top: 8px; font-family: var(--pg-font); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.2; }
.lp__bio { max-width: 15.5rem; margin-top: 4px; color: var(--pg-muted); font-size: 0.7rem; line-height: 1.45; transition: color var(--dur-slow); }

.lp__links { display: grid; gap: 8px; width: 100%; margin-top: 16px; }
.lp__card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px 6px 6px;
  border: 0;
  border-radius: var(--pg-radius);
  background: var(--pg-card);
  color: var(--pg-card-text);
  box-shadow: 0 0 0 1px var(--pg-card-line), 0 1px 2px rgba(28, 27, 26, 0.05);
  text-align: left;
  transition: background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out), border-radius var(--dur) var(--ease-out);
}
.lp__thumb {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--pg-thumb-radius);
  background: var(--sand);
  object-fit: cover;
  transition: border-radius var(--dur) var(--ease-out);
}
.lp__thumb--icon {
  display: grid;
  place-items: center;
  background: var(--pg-chip);
  color: var(--pg-accent);
  transition: border-radius var(--dur) var(--ease-out), background-color var(--dur-slow), color var(--dur-slow);
}
.lp__thumb--icon .icon { width: 16px; height: 16px; }
.lp__text { display: grid; flex: 1; gap: 1px; min-width: 0; }
.lp__text b { font-family: var(--pg-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.lp__text i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pg-card-muted); font-size: 0.65rem; font-style: normal; transition: color var(--dur-slow); }
.lp__card > .icon { flex: none; width: 14px; height: 14px; opacity: 0.75; }
.lp__card--feature { background: var(--pg-feature); color: var(--pg-feature-text); box-shadow: none; }
.lp__card--feature .lp__text i { color: inherit; opacity: 0.7; }
.lp__tag { flex: none; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--wren-rust); color: #FFFFFF; font-size: 0.6rem; font-weight: 800; }

.lp__section {
  width: 100%;
  padding: 10px;
  border-radius: min(var(--pg-radius), 18px);
  background: var(--pg-card);
  color: var(--pg-card-text);
  box-shadow: 0 0 0 1px var(--pg-card-line), 0 1px 2px rgba(28, 27, 26, 0.05);
  text-align: left;
  transition: background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out), border-radius var(--dur) var(--ease-out);
}
.lp__section-head b { font-family: var(--pg-font); }
.lp__section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; font-size: 0.72rem; }
.lp__section-head span { display: inline-flex; align-items: center; gap: 4px; color: var(--pg-card-muted); font-size: 0.62rem; font-weight: 600; }
.lp__section-head .icon { width: 11px; height: 11px; }
.lp__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lp__gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: min(var(--pg-radius), 8px);
  background: var(--sand);
  object-fit: cover;
  transition: border-radius var(--dur) var(--ease-out);
}

.lp__folder {
  border-radius: min(var(--pg-radius), 20px);
  background: var(--pg-card);
  box-shadow: 0 0 0 1px var(--pg-card-line), 0 1px 2px rgba(28, 27, 26, 0.05);
  transition: background-color var(--dur-slow) var(--ease-out), border-radius var(--dur) var(--ease-out);
}
.lp__folder-toggle { background: transparent; box-shadow: none; cursor: pointer; }
.lp__folder-toggle:focus-visible { border-radius: min(var(--pg-radius), 20px); }
.lp__count { display: inline-flex; flex: none; align-items: center; gap: 2px; color: var(--pg-accent); font-size: 0.68rem; font-weight: 700; transition: color var(--dur-slow); }
.lp__count .icon { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); }
.lp__folder-toggle[aria-expanded="true"] .lp__count .icon { transform: rotate(180deg); }
.lp__folder-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
}
.lp__folder-body.is-open { grid-template-rows: 1fr; }
.lp__folder-inner { overflow: hidden; display: grid; gap: 4px; padding: 0 6px; }
.lp__folder-body.is-open .lp__folder-inner { padding-bottom: 6px; }
.lp__sub {
  display: block;
  padding: 9px 10px 9px 56px;
  border-radius: min(var(--pg-radius), 8px);
  background: var(--pg-chip);
  color: var(--pg-card-text);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: left;
}

.lp__socials { display: flex; gap: 10px; margin-top: 18px; }
.lp__socials span {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pg-card);
  color: var(--pg-card-text);
  box-shadow: 0 0 0 1px var(--pg-card-line);
  transition: background-color var(--dur-slow), color var(--dur-slow);
}
.lp__socials .icon { width: 14px; height: 14px; }

/* Hover and selection from the layers list */
.lp [data-block] { transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out), border-radius var(--dur) var(--ease-out); }
.lp [data-block].is-hovered,
.lp [data-block].is-selected { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--wren-rust); }
.lp__socials[data-block].is-hovered,
.lp__socials[data-block].is-selected { border-radius: 999px; }

/* Blocks switched off in the editor */
.lp [data-block].is-off { display: none; }
.lp [data-block].is-entering { animation: block-in 0.4s var(--ease-out); }
@keyframes block-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* Page themes */
.phone[data-theme="ink"] {
  --pg-card-line: rgba(247, 244, 238, 0.08); --pg-card-muted: rgba(247, 244, 238, 0.6); --pg-chip: #34312E;
  --pg-bg: var(--ink); --pg-text: var(--paper); --pg-muted: rgba(247, 244, 238, 0.65);
  --pg-card: var(--color-ink-raised); --pg-card-text: var(--paper);
  --pg-feature: var(--light-rust); --pg-feature-text: var(--ink);
  --pg-accent: var(--light-rust); --pg-avatar: var(--light-rust); --pg-avatar-text: var(--ink);
  --pg-line: rgba(247, 244, 238, 0.7);
}
.phone[data-theme="moss"] {
  --pg-card-line: transparent; --pg-chip: #ECE5DA;
  --pg-bg: var(--moss); --pg-text: var(--paper); --pg-muted: rgba(247, 244, 238, 0.7);
  --pg-card: var(--paper); --pg-card-text: var(--ink);
  --pg-feature: var(--wren-rust); --pg-feature-text: #FFFFFF;
  --pg-accent: var(--deep-rust); --pg-avatar: var(--sand); --pg-avatar-text: var(--moss);
  --pg-line: rgba(247, 244, 238, 0.7);
}
.phone[data-theme="rust"] {
  --pg-card-line: transparent; --pg-chip: #F1E7DC;
  --pg-bg: var(--wren-rust); --pg-text: #FFFFFF; --pg-muted: rgba(255, 255, 255, 0.8);
  --pg-card: var(--paper); --pg-card-text: var(--ink);
  --pg-feature: var(--ink); --pg-feature-text: var(--paper);
  --pg-accent: var(--deep-rust); --pg-avatar: var(--paper); --pg-avatar-text: var(--deep-rust);
  --pg-line: rgba(255, 255, 255, 0.8);
}
.phone[data-theme="rust"] .lp__tag { background: var(--ink); }

/* ---------- 8. Section headings ---------- */
.sec-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 2rem + 2.5vw, 4rem); text-align: center; }
.sec-title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-sub {
  max-width: 38rem;
  margin: var(--space-md) auto 0;
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
  text-wrap: balance;
}

/* Small product-UI cards used as illustrations */
.ui-card {
  width: min(100%, 16.5rem);
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(28, 27, 26, 0.04), 0 16px 32px -16px rgba(28, 27, 26, 0.18);
  font-size: 0.8125rem;
  text-align: left;
}
.ui-card__title { margin-bottom: 12px; color: var(--color-text-subtle); font-size: 0.75rem; font-weight: 600; }

/* ---------- 9. Problem and cost ---------- */
.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.anatomy__figure {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 56px 24px 28px;
  border-radius: 24px;
  background:
    radial-gradient(rgba(28, 27, 26, 0.08) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--paper);
}
.anatomy__caption { color: var(--color-text-subtle); font-size: 0.8125rem; font-style: italic; }

/* A deliberately generic link page, in cool greys */
.rival { position: relative; width: 264px; margin-right: 40px; padding: 8px; border-radius: 40px; background: #2B2D31; box-shadow: 0 30px 50px -24px rgba(28, 27, 26, 0.45); }
.rival__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 16px 18px;
  border-radius: 32px;
  background: #ECEEF1;
  color: #3A3D42;
  font-size: 0.75rem;
  text-align: center;
}
.rival__av { width: 56px; height: 56px; border-radius: 50%; background: #C9CDD3; }
.rival__name { font-weight: 700; font-size: 0.875rem; }
.rival__bio { width: 60%; height: 7px; margin-bottom: 6px; border-radius: 4px; background: #CFD3D9; }
.rival__btns { position: relative; display: grid; gap: 7px; width: 100%; border-radius: 12px; }
.rival__btn { display: block; padding: 10px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); font-weight: 600; }
.rival__shop { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 8px; border-radius: 12px; background: #FFFFFF; text-align: left; }
.rival__shop-img { flex: none; width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #D7DBE0, #BFC4CB); }
.rival__shop-text { display: grid; line-height: 1.35; }
.rival__shop-text i { font-style: normal; color: #6B7078; }
.rival__shop-text em { font-style: normal; font-weight: 700; color: #B3261E; font-size: 0.68rem; }
.rival__foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #6B7078;
  font-size: 0.64rem;
  white-space: nowrap;
}
.rival__foot b { padding: 2px 6px; border-radius: 4px; background: #3A3D42; color: #FFFFFF; font-size: 0.56rem; letter-spacing: 0.06em; }
.rival__foot i { font-style: normal; color: #9AA0A8; }
.rival__toast {
  position: absolute;
  z-index: 2;
  top: -30px;
  left: -34px;
  right: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(28, 27, 26, 0.35);
  color: #3A3D42;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
  transform: rotate(-2deg);
}
.rival__toast-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #3A3D42; color: #FFFFFF; }
.rival__toast-icon .icon { width: 16px; height: 16px; }
.rival__toast > span:nth-child(2) { display: grid; }
.rival__toast i { font-style: normal; color: #6B7078; }

/* Numbered markers that tie the page to the list */
.marker {
  position: absolute;
  top: 50%;
  right: -52px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wren-rust);
  box-shadow: 0 0 0 4px var(--paper);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  transform: translateY(-50%);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur);
}
.marker::before {
  /* leader line back to the thing it points at */
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 22px;
  border-top: 1.5px dashed var(--wren-rust);
}
.rival__toast .marker { right: -28px; }
.rival__toast .marker::before { width: 0; }
[data-pain-target] { transition: box-shadow var(--dur) var(--ease-out); }
.anatomy[data-active="1"] [data-pain-target="1"],
.anatomy[data-active="2"] [data-pain-target="2"],
.anatomy[data-active="3"] [data-pain-target="3"],
.anatomy[data-active="4"] [data-pain-target="4"] { box-shadow: 0 0 0 2px var(--wren-rust), 0 0 0 6px rgba(196, 83, 42, 0.18); }
.anatomy[data-active="1"] [data-marker="1"],
.anatomy[data-active="2"] [data-marker="2"],
.anatomy[data-active="3"] [data-marker="3"],
.anatomy[data-active="4"] [data-marker="4"] { background: var(--ink); transform: translateY(-50%) scale(1.15); }

.pains { counter-reset: none; }
.pain {
  display: flex;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 16px;
  transition: background-color var(--dur-fast);
}
.pain:hover { background: var(--paper); }
.pain__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--wren-rust);
  color: var(--wren-rust);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
}
.pain h3 { margin-bottom: 4px; font-size: 1.0625rem; }
.pain p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.55; }

/* It adds up: two receipts */
.adds-up {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-xl) clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: 28px;
  background: var(--sand);
}
.adds-up__title { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.adds-up__title span { color: var(--wren-rust); }
.adds-up__copy > p { max-width: 26rem; margin-top: 12px; color: var(--color-text-muted); }
.adds-up__years { margin-top: var(--space-xl); background: rgba(255, 255, 255, 0.55); border-color: rgba(28, 27, 26, 0.1); }
.adds-up__result { margin-top: var(--space-lg); font-size: 1.0625rem; font-weight: 600; }
.adds-up__result b { color: var(--moss); font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.adds-up__note { grid-column: 1 / -1; color: rgba(28, 27, 26, 0.55); font-size: var(--fs-xs); }

.receipts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.receipt-wrap { filter: drop-shadow(0 14px 22px rgba(28, 27, 26, 0.14)); transition: transform var(--dur-slow) var(--ease-out); }
.receipt-wrap--them { transform: rotate(-2deg) translateY(10px); }
.receipt-wrap--us { transform: rotate(1.5deg); }
.receipt-paper {
  padding: 22px 20px 30px;
  border-radius: 10px 10px 0 0;
  background: #FFFFFF;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 14px 8px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 14px 8px repeat-x;
}
.receipt-wrap--them .receipt-paper { background: #F4F4F2; color: #55585C; }
.receipt-paper__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 800; color: var(--ink); }
.receipt-paper__brand img { width: 22px; height: auto; }
.receipt-paper__sub { margin-top: 2px; color: var(--color-text-subtle); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.receipt-paper__rows { display: grid; gap: 8px; margin: 16px 0; padding: 14px 0; border-block: 1px dashed rgba(28, 27, 26, 0.22); }
.receipt-paper__rows > span { display: flex; justify-content: space-between; gap: 10px; }
.receipt-paper__rows b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.receipt-paper__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; color: var(--ink); }
.receipt-paper__total b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.receipt-wrap--them .receipt-paper__total b { color: #55585C; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(179, 38, 30, 0.6); }
.receipt-wrap--us .receipt-paper__total b { color: var(--wren-rust); }

/* ---------- 10. Values (the fix) ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.value__viz {
  display: grid;
  place-items: center;
  height: 264px;
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(rgba(28, 27, 26, 0.07) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--paper);
}
.value__body { padding: 22px 18px 20px; }
.value h3 { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.value p { color: var(--color-text-muted); font-size: 0.9375rem; }

.receipt__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--color-border); color: var(--color-text-muted); }
.receipt__row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt__row--total { border-top-style: dashed; color: var(--ink); font-weight: 600; }
.receipt__row--total b { display: inline-flex; align-items: center; gap: 5px; color: var(--moss); }
.receipt__row--total .icon { width: 13px; height: 13px; }

.export__row { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink); font-weight: 600; }
.export__row i { margin-left: auto; color: var(--color-text-subtle); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }
.export__box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--ink); color: #FFFFFF; }
.export__box .icon { width: 12px; height: 12px; stroke-width: 3; }
.export__btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 9px; border-radius: 10px; background: var(--wren-rust); color: #FFFFFF; font-weight: 700; }
.export__btn .icon { width: 14px; height: 14px; }

.styler__font { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.styler__font b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.styler__font span { display: grid; font-weight: 600; }
.styler__font i { color: var(--color-text-subtle); font-size: 0.75rem; font-style: normal; font-weight: 500; }
.styler__swatches { display: flex; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.styler__swatches i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.1); }
.styler__swatches i.is-on { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--ink); }
.styler__shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; }
.styler__shapes i { height: 22px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.styler__shapes i:nth-child(2) { border-radius: 999px; }
.styler__shapes i:nth-child(3) { border-radius: 2px; }
.styler__shapes i.is-on { background: var(--ink); box-shadow: none; }

/* ---------- 11. Features ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.tile--blocks { grid-column: span 7; }
.tile--stats { grid-column: span 5; }
.tile--themes,
.tile--qr,
.tile--sched { grid-column: span 4; }
.tile--insta { grid-column: span 5; }
.tile--email { grid-column: span 7; }
.tile__text { padding: 18px 16px 18px; }
.tile__text h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.tile__text p { max-width: 30rem; color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.5; }
.tile__viz {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 268px;
  padding: 24px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(rgba(28, 27, 26, 0.07) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--paper);
  font-size: 0.8125rem;
}
/* shared surface for the little UI cards */
.palette, .dash, .sched, .signup__block, .signup__sync, .insta__card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(28, 27, 26, 0.05), 0 16px 32px -18px rgba(28, 27, 26, 0.3);
}

/* Blocks: add-block menu and blocks already on the page */
.palette { width: 236px; flex: none; padding: 8px; }
.palette__search { display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; border-bottom: 1px solid var(--color-border); color: var(--color-text-subtle); }
.palette__search .icon { width: 15px; height: 15px; }
.palette__search kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--color-border-strong); border-radius: 5px; font-family: var(--font-body); font-size: 0.68rem; color: var(--color-text-muted); }
.palette__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-top: 8px; }
.palette__item { display: grid; justify-items: center; gap: 5px; padding: 9px 4px; border-radius: 9px; color: var(--ink); font-size: 0.7rem; font-weight: 600; }
.palette__item .icon { width: 18px; height: 18px; color: var(--color-text-muted); }
.palette__item.is-active { background: #F7E7DE; box-shadow: inset 0 0 0 1px rgba(196, 83, 42, 0.35); }
.palette__item.is-active .icon { color: var(--deep-rust); }
.placed { display: grid; gap: 10px; width: 240px; flex: none; }
.placed__video { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 8; box-shadow: 0 12px 24px -16px rgba(28, 27, 26, 0.5); }
.placed__video img { width: 100%; height: 100%; object-fit: cover; }
.placed__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); transform: translate(-50%, -50%); }
.placed__play .icon { width: 20px; height: 20px; stroke: none; }
.placed__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(28, 27, 26, 0.7); color: #FFFFFF; font-size: 0.65rem; font-weight: 700; }
.placed__count { padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--paper); box-shadow: 0 12px 24px -16px rgba(28, 27, 26, 0.6); }
.placed__label { display: block; margin-bottom: 6px; color: var(--light-rust); font-size: 0.68rem; font-weight: 700; }
.placed__clock { display: flex; gap: 6px; }
.placed__clock span { display: grid; flex: 1; justify-items: center; padding: 4px 0; border-radius: 6px; background: rgba(247, 244, 238, 0.08); }
.placed__clock b { font-family: var(--font-display); font-size: 1rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.placed__clock i { color: rgba(247, 244, 238, 0.6); font-size: 0.58rem; font-style: normal; }
.placed__quote { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); font-size: 0.72rem; line-height: 1.4; }
.placed__quote i { display: block; margin-top: 4px; color: var(--color-text-subtle); font-style: normal; font-size: 0.65rem; }

/* Analytics dashboard */
.dash { width: min(100%, 330px); padding: 14px 16px; }
.dash__top { display: flex; align-items: flex-start; justify-content: space-between; }
.dash__top span:first-child { display: grid; }
.dash__top i { color: var(--color-text-subtle); font-size: 0.7rem; font-style: normal; font-weight: 600; }
.dash__top b { font-family: var(--font-display); font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dash__delta { padding: 3px 8px; border-radius: var(--radius-pill); background: #E2EBE4; color: var(--moss); font-size: 0.7rem; font-weight: 800; }
.dash__chart { display: block; width: 100%; height: 72px; margin: 8px 0 10px; }
.dash__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) 0.2s; }
.dash__area { opacity: 0; transition: opacity 0.8s var(--ease-out) 0.9s; }
.is-visible .dash__line { stroke-dashoffset: 0; }
.is-visible .dash__area { opacity: 1; }
.dash__links { display: grid; gap: 7px; margin: 0; padding: 10px 0; list-style: none; border-block: 1px solid var(--color-border); }
.dash__links li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 30px; align-items: center; gap: 8px; font-size: 0.72rem; }
.dash__links li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dash__links b { text-align: right; font-variant-numeric: tabular-nums; }
.dash__bar { height: 5px; overflow: hidden; border-radius: 3px; background: var(--color-border); }
.dash__bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--ink); transition: width 1s var(--ease-out) 0.4s; }
.dash__links li:first-child .dash__bar i { background: var(--wren-rust); }
.is-visible .dash__bar i { width: var(--v); }
.dash__split { display: grid; gap: 7px; padding-top: 10px; }
.dash__split-bar { display: flex; gap: 2px; height: 6px; overflow: hidden; border-radius: 3px; }
.dash__split-bar i { width: var(--v); background: var(--wren-rust); }
.dash__split-bar i:nth-child(2) { background: var(--moss); }
.dash__split-bar i:nth-child(3) { background: #CBC2B6; }
.dash__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--color-text-muted); font-size: 0.66rem; }
.dash__legend span { display: inline-flex; align-items: center; gap: 5px; }
.dash__legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--wren-rust); }
.dash__legend span:nth-child(2) i { background: var(--moss); }
.dash__legend span:nth-child(3) i { background: #CBC2B6; }

/* Themes: three real pages on a shelf */
.shelf { position: relative; width: 100%; height: 220px; }
.shelf__page {
  --sp-bg: var(--sand); --sp-fg: var(--ink); --sp-bar: #FFFFFF;
  position: absolute;
  bottom: -40px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 118px;
  height: 236px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--sp-bg);
  color: var(--sp-fg);
  box-shadow: 0 16px 30px -16px rgba(28, 27, 26, 0.5);
  transition: transform var(--dur-slow) var(--ease-out);
}
.shelf__page--ink { --sp-bg: var(--ink); --sp-fg: var(--paper); --sp-bar: #2F2D2A; transform: translateX(-138%) rotate(-7deg); }
.shelf__page--sand { z-index: 1; transform: translateX(-50%) translateY(-12px); }
.shelf__page--moss { --sp-bg: var(--moss); --sp-fg: var(--paper); --sp-bar: var(--paper); transform: translateX(38%) rotate(7deg); }
.tile--themes:hover .shelf__page--ink { transform: translateX(-148%) rotate(-10deg); }
.tile--themes:hover .shelf__page--moss { transform: translateX(48%) rotate(10deg); }
.tile--themes:hover .shelf__page--sand { transform: translateX(-50%) translateY(-20px); }
.shelf__cover { width: 100%; height: 46px; object-fit: cover; }
.shelf__av { width: 34px; height: 34px; margin-top: -17px; border: 2px solid var(--sp-bg); border-radius: 50%; object-fit: cover; }
.shelf__page b { margin: 5px 0 8px; font-family: var(--font-display); font-size: 0.68rem; }
.shelf__page i { display: block; width: 82%; height: 16px; margin-bottom: 5px; border-radius: 5px; background: var(--sp-bar); }
.shelf__page--sand i:first-of-type { background: var(--ink); }
.shelf__page--ink i:first-of-type { background: var(--light-rust); }
.shelf__page--moss i:first-of-type { background: var(--wren-rust); }

/* QR on a café table card */
.tent {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 150px;
  padding: 14px 14px 16px;
  border-radius: 12px 12px 6px 6px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(28, 27, 26, 0.08), 0 20px 30px -18px rgba(28, 27, 26, 0.5);
  transform: perspective(600px) rotateX(8deg);
}
.tent::after {
  /* shadow on the table */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 27, 26, 0.25), transparent);
}
.tent__brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 0.75rem; font-weight: 800; }
.tent__brand img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.tent__qr { width: 108px; aspect-ratio: 1; }
.tent__qr svg { display: block; width: 100%; height: 100%; }
.tent__cta { font-size: 0.68rem; text-align: center; }
.tent__note {
  position: absolute;
  top: 22px;
  right: 18px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ink);
  color: rgba(247, 244, 238, 0.75);
  font-size: 0.65rem;
  line-height: 1.4;
  transform: rotate(4deg);
}
.tent__note b { color: var(--light-rust); font-family: var(--font-display); }

/* Scheduling popover */
.sched { width: min(100%, 250px); padding: 6px 12px 12px; }
.sched__head { display: flex; align-items: center; gap: 8px; padding: 6px 0 10px; border-bottom: 1px solid var(--color-border); font-size: 0.78rem; }
.sched__head img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.sched__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.72rem; }
.sched__val { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 600; white-space: nowrap; }
.sched__val .icon { width: 12px; height: 12px; color: var(--color-text-subtle); }
.sched__switch { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--moss); }
.sched__switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; }
.sched__pass { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--color-border-strong); border-radius: 8px; color: var(--ink); letter-spacing: 0.12em; }
.sched__pass .icon { width: 14px; height: 14px; color: var(--color-text-subtle); }

/* Instagram sync */
.insta { display: grid; justify-items: center; gap: 10px; width: min(100%, 300px); }
.insta__posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
.insta__posts img { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.insta__posts img:first-child { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--wren-rust); }
.insta__caption { width: 100%; padding: 8px 10px; border-radius: 10px; background: rgba(28, 27, 26, 0.05); font-size: 0.7rem; line-height: 1.4; }
.insta__caption i { display: block; color: #1F4E79; font-style: normal; font-weight: 600; }
.insta__card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px 7px 7px; }
.insta__card img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.insta__card span { display: grid; }
.insta__card b { font-size: 0.75rem; }
.insta__card i { color: var(--color-text-subtle); font-size: 0.65rem; font-style: normal; }

/* Email sign-ups */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 16px; width: 100%; max-width: 560px; }
.signup__block { display: grid; justify-items: center; gap: 4px; padding: 16px; text-align: center; }
.signup__block > img { width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; object-fit: cover; }
.signup__block > b { font-family: var(--font-display); font-size: 0.9375rem; }
.signup__block > i { color: var(--color-text-muted); font-size: 0.72rem; font-style: normal; }
.signup__form { display: flex; align-items: center; width: 100%; margin-top: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--color-border-strong); border-radius: 10px; color: var(--color-text-subtle); font-size: 0.72rem; text-align: left; }
.signup__form span { flex: 1; }
.signup__form b { padding: 6px 10px; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 0.7rem; }
.signup__sync { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 14px; }
.signup__dot { width: 10px; height: 10px; border-radius: 50%; background: #3F8F5A; box-shadow: 0 0 0 4px rgba(63, 143, 90, 0.18); }
.signup__sync > span:nth-child(2) { display: grid; }
.signup__sync b { font-size: 0.78rem; }
.signup__sync i { color: var(--color-text-subtle); font-size: 0.68rem; font-style: normal; }
.signup__count { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--color-border); }
.signup__count b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* The smaller features */
.also {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.also li { display: flex; flex-direction: column; gap: 10px; padding: 20px; font-size: 0.8125rem; line-height: 1.45; color: var(--color-text-muted); }
.also li + li { border-left: 1px solid var(--color-border); }
.also .icon { width: 20px; height: 20px; color: var(--wren-rust); }
.also span { display: grid; gap: 2px; }
.also b { color: var(--ink); font-size: 0.875rem; }
.also em { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 0.62rem; font-style: normal; font-weight: 800; vertical-align: 1px; }

@container (max-width: 520px) {
  .tile--blocks .tile__viz { flex-direction: column; }
  .placed__quote { display: none; }
  .signup { grid-template-columns: 1fr; }
}

/* ---------- 12. How it works ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.timeline::before {
  /* the line that joins the three steps */
  content: "";
  position: absolute;
  top: 20px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  border-top: 1px dashed var(--color-border-strong);
}
.tl-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tl-step__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 0 0 6px var(--color-surface);
  color: var(--wren-rust);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
}
.tl-step h3 { margin-bottom: 6px; font-size: 1.125rem; }
.tl-step p { max-width: 20rem; color: var(--color-text-muted); font-size: 0.9375rem; }
.tl-step__viz { margin-top: var(--space-lg); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--paper); font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted); }
.seg span { padding: 6px 14px; border-radius: var(--radius-pill); }
.seg .is-on { background: var(--color-surface); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 26, 0.12); }
.fake-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 0.8125rem;
}
.fake-input__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); }
.fake-input__btn { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 700; }
.dots { display: flex; gap: 8px; }
.dots i {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.12);
  transition: transform var(--dur) var(--ease-spring);
}
.bio-line { display: block; padding: 10px 14px; border-radius: 14px; background: var(--paper); font-size: 0.8125rem; line-height: 1.5; }
.bio-line__link { color: #1F5E9E; font-weight: 700; }


/* ---------- 13. Pledge ---------- */
.section--moss { background: var(--moss); color: var(--paper); }
.section--moss :focus-visible { box-shadow: 0 0 0 3px var(--moss), 0 0 0 5px var(--light-rust); }
.pledge {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.pledge__intro .sec-title { color: var(--paper); }
.pledge__intro .sec-sub { max-width: 26rem; margin: var(--space-md) 0 0; color: rgba(247, 244, 238, 0.78); text-wrap: pretty; }
.pledge__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-xl);
  padding: 11px 18px;
  border: 1px solid rgba(247, 244, 238, 0.35);
  border-radius: var(--radius-pill);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.pledge__link:hover { border-color: var(--paper); background: rgba(247, 244, 238, 0.08); }
.pledge__link .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.pledge__link:hover .icon { transform: translateX(3px); }

/* The document */
.pledge-doc-wrap { position: relative; isolation: isolate; padding: 0 12px 14px 0; }
.pledge-doc-wrap::before {
  /* a second sheet underneath */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px 0 0 14px;
  border-radius: 18px;
  background: var(--sand);
  transform: rotate(2deg);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
}
.pledge-doc {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 40px 80px -32px rgba(0, 0, 0, 0.55);
}
.pledge-doc__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.pledge-doc__head img { flex: none; width: 42px; height: auto; }
.pledge-doc__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pledge-doc__meta { color: var(--color-text-muted); font-size: 0.8125rem; }

.clause {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--color-border-strong);
}
.clause__num { padding-top: 1px; color: var(--wren-rust); font-family: var(--font-display); font-size: 0.9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.clause h3 { margin-bottom: 2px; font-size: 1rem; }
.clause p { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.5; }
.clause__tick { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #E2EBE4; color: var(--moss); }
.clause__tick .icon { width: 12px; height: 12px; stroke-width: 3; }

.pledge-doc__foot { padding-top: 22px; }
.pledge-doc__sign { display: grid; justify-items: start; gap: 6px; }
.pledge-doc__label { color: var(--color-text-subtle); font-size: 0.75rem; font-weight: 600; }
.pledge-doc__sign img { width: 116px; height: auto; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.pledge-doc__by { color: var(--color-text-muted); font-size: 0.8125rem; }

.pledge-stamp {
  position: absolute;
  right: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  bottom: clamp(1rem, 0.5rem + 1vw, 1.5rem);
  width: 112px;
  height: 112px;
  color: var(--wren-rust);
  opacity: 0.9;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
}
.pledge-stamp text { font-family: var(--font-body); }
.is-visible .pledge-stamp { animation: stamp 0.55s var(--ease-spring) 0.45s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.6); } }

/* ---------- 14. Pricing ---------- */
.billing-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: max-content;
  margin: 0 auto var(--space-2xl);
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.billing-toggle__opt { position: relative; z-index: 1; cursor: pointer; }
.billing-toggle__opt input { position: absolute; opacity: 0; pointer-events: none; }
.billing-toggle__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: color var(--dur) var(--ease-out);
}
.billing-toggle__opt em {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--deep-rust);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 800;
  transition: background-color var(--dur), color var(--dur);
}
.billing-toggle__opt input:checked + span { color: var(--paper); }
.billing-toggle__opt input:checked + span em { background: var(--wren-rust); color: #FFFFFF; }
.billing-toggle__opt input:focus-visible + span { box-shadow: var(--focus-ring); }
.billing-toggle__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.billing-toggle:has(input[value="monthly"]:checked) .billing-toggle__thumb { transform: translateX(100%); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 54rem; margin-inline: auto; }
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.plan--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(28, 27, 26, 0.55); }
.plan__head h3 { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__head p { min-height: 3em; margin-top: 6px; color: var(--color-text-muted); font-size: 0.9375rem; }
.plan--dark .plan__head p,
.plan--dark .plan__alt { color: var(--color-text-inverse-muted); }
.badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--wren-rust);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: var(--space-xl); }
.plan__amount {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__amount.is-ticking { animation: tick 0.42s var(--ease-spring); }
@keyframes tick { 0% { transform: translateY(0); opacity: 1; } 35% { transform: translateY(-10px); opacity: 0; } 36% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.plan__per { font-size: 0.9375rem; font-weight: 600; }
.plan__billed { font-weight: 500; color: var(--color-text-muted); }
.plan--dark .plan__billed { color: var(--color-text-inverse-muted); }
.plan__alt { min-height: 1.5em; margin: 6px 0 var(--space-lg); color: var(--color-text-muted); font-size: var(--fs-sm); }
.plan__list { display: grid; gap: 12px; margin-top: var(--space-xl); }
.plan__list li { display: flex; gap: 10px; font-size: 0.9375rem; }
.plan__list .icon { margin-top: 2px; color: var(--wren-rust); stroke-width: 2.5; width: 1.1em; height: 1.1em; }
.plan--dark .plan__list .icon { color: var(--light-rust); }
.plans__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

/* ---------- 15. Switching ---------- */
.move {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 23rem) 56px minmax(0, 1fr);
  grid-template-areas: "old in imp out new";
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1rem, 0.5rem + 2vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background:
    radial-gradient(rgba(28, 27, 26, 0.07) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--paper);
}
.move__side { display: grid; justify-items: center; gap: 12px; }
.move__side--old { grid-area: old; }
.move__side--new { grid-area: new; }
.move__tag { padding: 3px 10px; border-radius: var(--radius-pill); background: #E4E6EA; color: #55585C; font-size: 0.72rem; font-weight: 700; }
.move__tag--new { background: #F8E7DE; color: var(--deep-rust); }
.move__url { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-subtle); font-size: 0.75rem; font-weight: 600; }
.move__url--new { color: var(--ink); }

/* Scaled-down devices that keep their real proportions */
.move__device { --s: 0.72; position: relative; width: calc(272px * var(--s)); height: calc(572px * var(--s)); }
.move__device > .phone,
.move__device > .rival { position: absolute; top: 0; left: 0; transform: scale(var(--s)); transform-origin: top left; }
.move__device > .phone { box-shadow: 0 2px 4px rgba(28, 27, 26, 0.08), 0 30px 50px -24px rgba(28, 27, 26, 0.5); }
.rival--move { width: 272px; margin: 0; }
.rival--move .rival__screen { height: 556px; padding-top: 48px; }
.rival__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(0.9); }
.rival--move .rival__foot { margin-top: auto; width: auto; }
.move__side--old .move__device { opacity: 0.85; }
.move__side--new .move__device { animation: none; }
.move.is-visible .move__side--new .move__device { animation: rise 0.8s var(--ease-out) 1.9s both; }

/* Arrows with a dot travelling along them */
.move__arrow { position: relative; height: 2px; margin: 0 6px; }
.move__arrow--in { grid-area: in; }
.move__arrow--out { grid-area: out; }
.move__arrow::before { content: ""; position: absolute; inset: 0; border-top: 2px dashed var(--color-border-strong); }
.move__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-border-strong);
  border-right: 2px solid var(--color-border-strong);
  transform: translateY(-50%) rotate(45deg);
}
.move__arrow i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--wren-rust); animation: travel 2.4s ease-in-out infinite; }
.move__arrow--out i { animation-delay: 1.2s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* The import dialog */
.import {
  grid-area: imp;
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(28, 27, 26, 0.05), 0 30px 60px -30px rgba(28, 27, 26, 0.35);
}
.import__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
.import__head img { width: 26px; height: auto; }
.import__head b { font-size: 0.9375rem; }
.import__time { margin-left: auto; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--paper); color: var(--color-text-muted); font-size: 0.7rem; font-weight: 600; }
.import__field { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; border: 1px solid var(--color-border-strong); border-radius: 12px; font-size: 0.8125rem; }
.import__field .icon { width: 15px; height: 15px; color: var(--color-text-subtle); }
.import__field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); }
.import__field b { padding: 6px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 0.75rem; }
.import__steps { display: grid; gap: 14px; margin: 18px 0 16px; }
.import__steps li { display: flex; gap: 12px; }
.import__steps h3 { margin-bottom: 2px; font-size: 0.9375rem; }
.import__steps p { color: var(--color-text-muted); font-size: 0.84rem; line-height: 1.45; }
.import__check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--moss); color: #FFFFFF; }
.import__check .icon { width: 12px; height: 12px; stroke-width: 3; }
.move.is-visible .import__steps li:nth-child(1) .import__check { animation: tick-on 0.45s var(--ease-spring) 0.4s both; }
.move.is-visible .import__steps li:nth-child(2) .import__check { animation: tick-on 0.45s var(--ease-spring) 1s both; }
.move.is-visible .import__steps li:nth-child(3) .import__check { animation: tick-on 0.45s var(--ease-spring) 1.6s both; }
@keyframes tick-on { from { background: var(--color-border); color: transparent; transform: scale(0.7); } }
.import__progress { display: grid; gap: 6px; margin-bottom: 16px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.import__bar { height: 5px; overflow: hidden; border-radius: 3px; background: var(--color-border); }
.import__bar i { display: block; height: 100%; border-radius: 3px; background: var(--moss); }
.move.is-visible .import__bar i { animation: fill-bar 1.8s var(--ease-out) 0.3s both; }
@keyframes fill-bar { from { width: 0; } to { width: 100%; } }
.import__count { color: var(--color-text-muted); font-size: 0.72rem; font-weight: 600; }

/* What changes: a sheet marked up by hand */
.markup {
  margin-top: 20px;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem) clamp(1.25rem, 1rem + 2.5vw, 2.75rem) clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.markup__table { width: 100%; border-collapse: collapse; }
.markup__table caption { padding-bottom: 18px; font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; text-align: left; }
.markup__table thead th,
.markup__table thead td { padding: 0 0 12px; color: var(--color-text-subtle); font-size: 0.8125rem; font-weight: 600; text-align: left; }
.markup__us { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }
.markup__us img { width: 22px; height: auto; }
.markup__table tbody th,
.markup__table tbody td { padding: 20px 0; border-top: 1px dashed var(--color-border-strong); text-align: left; vertical-align: middle; }
.markup__table tbody th { width: 28%; padding-right: 20px; font-size: 1rem; font-weight: 700; }
.markup__old { width: 36%; padding-right: 20px; color: var(--color-text-subtle); font-size: 1rem; }
.markup__old > span,
.markup__new > span { position: relative; display: inline-block; }
.markup__new { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; }
.markup__arrow { display: inline-block; width: 18px; height: 18px; margin-right: 14px; color: var(--color-border-strong); vertical-align: -2px; }

/* Pen strokes */
.pen { position: absolute; left: -4px; width: calc(100% + 8px); overflow: visible; pointer-events: none; }
.pen path { fill: none; stroke: var(--wren-rust); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pen--strike { top: 50%; height: 14px; margin-top: -6px; }
.pen--strike path { stroke-width: 2.2; opacity: 0.9; }
.pen--under { bottom: -9px; height: 12px; }
.pen--under path { stroke-width: 2.6; }
/* Draw the marks in, row by row, when the sheet scrolls into view */
.js .markup .pen path { stroke-dashoffset: 1; }
.markup.is-visible .pen path { animation: pen-draw 0.55s var(--ease-out) forwards; }
.markup.is-visible tr:nth-child(1) .pen--strike path { animation-delay: 0.3s; }
.markup.is-visible tr:nth-child(1) .pen--under path { animation-delay: 0.7s; }
.markup.is-visible tr:nth-child(2) .pen--strike path { animation-delay: 0.9s; }
.markup.is-visible tr:nth-child(2) .pen--under path { animation-delay: 1.3s; }
.markup.is-visible tr:nth-child(3) .pen--strike path { animation-delay: 1.5s; }
.markup.is-visible tr:nth-child(3) .pen--under path { animation-delay: 1.9s; }
.markup.is-visible tr:nth-child(4) .pen--strike path { animation-delay: 2.1s; }
.markup.is-visible tr:nth-child(4) .pen--under path { animation-delay: 2.5s; }
@keyframes pen-draw { to { stroke-dashoffset: 0; } }

/* ---------- 16. Audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.audience {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.audience__stage {
  position: relative;
  height: 340px;
  margin: 8px 8px 0;
  border-radius: 14px;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.audience__stage--sand { background-color: var(--sand); background-image: radial-gradient(rgba(28, 27, 26, 0.08) 1px, transparent 1.2px); }
.audience__stage--moss { background-color: var(--moss); }
.audience__stage--rust { background-color: var(--wren-rust); }
.audience__body { padding: var(--space-lg); }
.audience__body h3 { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.audience__body p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* Small versions of the hero phone, cropped by the stage */
.phone--mini {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%) scale(0.84);
  transform-origin: top center;
  box-shadow: 0 2px 4px rgba(28, 27, 26, 0.1), 0 30px 50px -20px rgba(28, 27, 26, 0.5);
}
.lp__play {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pg-feature-text);
  color: var(--pg-feature);
}
.lp__play .icon { width: 14px; height: 14px; stroke: none; }
.lp__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(47, 74, 58, 0.12);
  color: var(--moss);
  font-size: 0.65rem;
  font-weight: 700;
}
.lp__open i { width: 6px; height: 6px; border-radius: 50%; background: #3F8F5A; box-shadow: 0 0 0 3px rgba(63, 143, 90, 0.2); }

/* Pro workspace for the agency card */
.ws {
  position: absolute;
  top: 22px;
  left: 50%;
  width: min(312px, calc(100% - 36px));
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 2px 4px rgba(28, 27, 26, 0.1), 0 30px 50px -20px rgba(28, 27, 26, 0.5);
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
  transform: translateX(-50%);
}
.ws__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--color-border); }
.ws__mark { width: 24px; height: auto; }
.ws__sep { color: var(--color-border-strong); }
.ws__team { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ws__team img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
.ws__plan { margin-left: auto; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-size: 0.6rem; font-weight: 800; }
.ws__head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px 6px; color: var(--color-text-subtle); font-size: 0.62rem; font-weight: 600; }
.ws__head b { color: var(--ink); font-size: 0.75rem; }
.ws__list { margin: 0; padding: 0; list-style: none; }
.ws__list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-top: 1px solid var(--color-border);
}
.ws__list img { width: 30px; height: 30px; border-radius: 8px; background: var(--sand); object-fit: cover; }
.ws__name { display: grid; min-width: 0; }
.ws__name b,
.ws__name i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws__name i { color: var(--color-text-subtle); font-size: 0.6rem; font-style: normal; }
.ws__stat { color: var(--color-text-muted); font-size: 0.66rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws__pill { padding: 2px 7px; border-radius: var(--radius-pill); background: #E2EBE4; color: var(--moss); font-size: 0.58rem; font-weight: 800; }
.ws__pill--draft { background: var(--sand); color: var(--deep-rust); }
.ws__foot { display: grid; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--color-border); background: #FBF9F5; color: var(--color-text-muted); font-size: 0.64rem; }
.ws__foot b { color: var(--ink); }
.ws__meter { height: 5px; overflow: hidden; border-radius: 3px; background: var(--color-border); }
.ws__meter i { display: block; width: 80%; height: 100%; border-radius: 3px; background: var(--wren-rust); }

/* ---------- 17. Free tools ---------- */
.toolbox {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: var(--paper);
}
.toolbox__nav { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 6px 4px; }
.toolbox__tabs { display: grid; gap: 6px; }
.tool-tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.tool-tab:hover { background: rgba(255, 255, 255, 0.65); }
.tool-tab[aria-selected="true"] { border-color: var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.tool-tab:focus-visible { border-radius: 16px; }
.tool-tab__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; }
.tool-tab__icon .icon { width: 18px; height: 18px; }
.tool-tab__icon--rust { background: #F8E7DE; color: var(--deep-rust); }
.tool-tab__icon--moss { background: #E2EBE4; color: var(--moss); }
.tool-tab__icon--ink { background: #EAE5DE; color: var(--ink); }
.tool-tab__text { display: grid; gap: 2px; min-width: 0; }
.tool-tab__text b { color: var(--ink); font-size: 0.9375rem; }
.tool-tab__text span { color: var(--color-text-muted); font-size: 0.8125rem; line-height: 1.45; }
.toolbox__note { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; padding: 12px 14px; color: var(--color-text-subtle); font-size: 0.8125rem; line-height: 1.45; }
.toolbox__note .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--moss); }

.toolbox__window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.toolbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid var(--color-border);
}
.toolbox__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; font-weight: 700; }
.toolbox__badge { padding: 4px 10px; border-radius: var(--radius-pill); background: #E6EFE8; color: var(--moss); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.tool-panel { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); animation: panel-in var(--dur-slow) var(--ease-out); }
.tool-panel:focus-visible { box-shadow: inset 0 0 0 2px var(--deep-rust); border-radius: 0 0 20px 20px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.tool-form { display: grid; align-content: start; gap: 22px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.field { display: grid; gap: 6px; }
.field label,
.field legend { font-size: var(--fs-sm); font-weight: 700; }
.field legend { margin-bottom: 6px; }
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1B1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
}
.field input:hover,
.field select:hover { border-color: var(--color-text-subtle); }
.field input:focus-visible,
.field select:focus-visible { border-color: var(--deep-rust); box-shadow: 0 0 0 3px rgba(196, 83, 42, 0.2); border-radius: var(--radius-sm); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field__hint { color: var(--color-text-muted); font-size: var(--fs-xs); line-height: 1.5; }
.field__error { color: #B3261E; font-size: var(--fs-xs); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.optional { color: var(--color-text-subtle); font-weight: 500; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .icon { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--color-text-subtle); pointer-events: none; }
.input-wrap input { padding-left: 40px; }

.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.swatch-opt input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-opt__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c); }
.swatch-opt:hover { border-color: var(--color-text-subtle); }
.swatch-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch-opt:has(input:focus-visible) { box-shadow: var(--focus-ring); }

.seg-control {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: var(--paper);
}
.seg-control label { position: relative; cursor: pointer; }
.seg-control input { position: absolute; opacity: 0; pointer-events: none; }
.seg-control span { display: block; padding: 7px 18px; border-radius: 8px; color: var(--color-text-muted); font-size: 0.875rem; font-weight: 600; text-align: center; transition: background-color var(--dur-fast), color var(--dur-fast); }
.seg-control input:checked + span { background: var(--color-surface); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 26, 0.12); }
.seg-control input:focus-visible + span { box-shadow: var(--focus-ring); }

/* QR tool */
.qr-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(1.25rem, 1rem + 2vw, 2.25rem); align-items: stretch; }
.qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 24px 20px;
  border-radius: 16px;
  background:
    radial-gradient(rgba(28, 27, 26, 0.08) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--paper);
}
.qr-stage__card {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(28, 27, 26, 0.06), 0 18px 36px -18px rgba(28, 27, 26, 0.35);
  transition: background-color var(--dur) var(--ease-out);
}
.qr-stage__code { width: 100%; height: 100%; }
.qr-stage__code svg { display: block; width: 100%; height: 100%; }
.qr-stage__caption { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); font-size: 0.8125rem; }
.qr-stage__actions { display: flex; gap: 8px; }

/* Bio tool */
.bio-tool { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.25rem, 1rem + 2vw, 2.25rem); align-items: start; }
.bio-results__label { margin-bottom: var(--space-sm); color: var(--color-text-muted); font-size: var(--fs-sm); }
.bio-list { display: grid; gap: 12px; }
.bio-item {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  animation: rise var(--dur-slow) var(--ease-out) both;
}
.bio-item:nth-child(2) { animation-delay: 60ms; }
.bio-item:nth-child(3) { animation-delay: 120ms; }
.bio-preview { display: flex; gap: 12px; }
.bio-preview__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-rust), var(--wren-rust));
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px var(--light-rust);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}
.bio-preview__body { min-width: 0; }
.bio-preview__name { display: block; font-size: 0.875rem; font-weight: 700; }
.bio-item__text { margin-top: 2px; font-size: 0.875rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.bio-preview__link { display: inline-block; margin-top: 2px; color: #1F4E79; font-size: 0.875rem; font-weight: 600; }
.bio-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.bio-item__count { color: var(--color-text-subtle); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.bio-item__count.is-over { color: #B3261E; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn:focus-visible { border-radius: var(--radius-pill); }
.copy-btn.is-copied { border-color: var(--moss); background: var(--moss); color: var(--paper); }

.font-tool { display: grid; gap: 22px; }
.font-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.font-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.font-item:hover { border-color: var(--color-border-strong); background: var(--color-surface); }
.font-item__body { display: grid; min-width: 0; }
.font-item__name { color: var(--color-text-subtle); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.font-item__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.0625rem; }

/* ---------- 18. FAQ ---------- */
.accordion {
  max-width: 48rem;
  margin-inline: auto;
  padding: 4px 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.acc-item + .acc-item { border-top: 1px solid var(--color-border); }
.acc-item h3 { font-size: inherit; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: 1.375rem 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
  transition: color var(--dur-fast);
}
.acc-trigger:hover { color: var(--deep-rust); }
.acc-icon {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { color: var(--wren-rust); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 1fr; }
.js .acc-panel { grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { max-width: 40rem; padding: 0 2.5rem 1.5rem 0; color: var(--color-text-muted); }
.js .acc-panel.is-open { grid-template-rows: 1fr; }

/* ---------- 19. Final CTA ---------- */
.cta-card {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  border-radius: 32px;
  background: var(--wren-rust);
  color: #FFFFFF;
  text-align: center;
  isolation: isolate;
}
.cta-card::before {
  /* soft light from the top edge */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto;
  height: 90%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent);
}
.cta-card__mark { width: 72px; height: auto; margin-bottom: var(--space-xl); }
.cta-card__title { font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.cta-card__title span { display: block; color: var(--ink); }
.cta-section { padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem); }
.cta-card__lead { max-width: 32rem; margin-top: var(--space-lg); color: rgba(255, 255, 255, 0.9); font-size: var(--fs-lead); }
.cta-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.cta-card :focus-visible { box-shadow: 0 0 0 3px var(--wren-rust), 0 0 0 5px #FFFFFF; }

/* ---------- 20. Footer ---------- */
.site-footer { padding: clamp(3.5rem, 3rem + 3vw, 5.5rem) 0 var(--space-xl); background: var(--ink); color: var(--paper); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xl); }
.brand--footer img { height: 34px; width: auto; }
.site-footer__brand p { max-width: 16rem; margin-top: var(--space-md); color: var(--color-text-inverse-muted); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: var(--space-2xl); }
.site-footer__nav h2 { margin-bottom: var(--space-md); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; }
.site-footer__nav ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.site-footer__nav a { color: var(--color-text-inverse-muted); font-size: 0.9375rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color var(--dur-fast), background-size var(--dur) var(--ease-out); }
.site-footer__nav a:hover { color: var(--paper); background-size: 100% 1px; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--light-rust); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-lg);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-ink-line);
  color: rgba(247, 244, 238, 0.55);
  font-size: var(--fs-sm);
}

/* ---------- 21. Dialogs ---------- */
.modal {
  width: min(460px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(28, 27, 26, 0.5);
  overflow: auto;
}
.modal[open] { animation: modal-in var(--dur-slow) var(--ease-out); }
.modal::backdrop { background: rgba(28, 27, 26, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in var(--dur) ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__inner { position: relative; padding: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__mark { width: 56px; height: auto; margin-bottom: var(--space-lg); }
.modal__title { padding-right: 2.5rem; font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); letter-spacing: -0.025em; }
.modal__lead { margin-top: var(--space-sm); color: var(--color-text-muted); }
.modal__form { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
.modal__fine { color: var(--color-text-muted); font-size: var(--fs-xs); text-align: center; }
.modal__fine a { color: var(--deep-rust); font-weight: 700; }
.modal__success { text-align: center; }
.modal__success .modal__title { padding-right: 0; }
.modal__success .btn { margin-top: var(--space-xl); }
.modal__success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: var(--space-lg);
  border-radius: 50%;
  background: var(--moss);
  color: var(--paper);
  animation: pop 0.6s var(--ease-spring);
}
.modal__success-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.btn.is-loading { pointer-events: none; opacity: 0.75; }

/* ---------- 22. Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1180px) {
  .editor__body {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas: "blocks canvas" "design canvas";
  }
  .editor__design { border-left: 0; border-right: 1px solid var(--color-border); border-top: 1px solid var(--color-border); }
  .editor__plan { display: none; }
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--blocks,
  .tile--email { grid-column: span 2; }
  .tile--stats,
  .tile--themes,
  .tile--qr,
  .tile--sched,
  .tile--insta { grid-column: span 1; }
  .also { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .also li + li { border-left: 0; }
  .also li { border-top: 1px solid var(--color-border); }
  .also li:nth-child(-n+3) { border-top: 0; }
  .also li:not(:nth-child(3n+1)) { border-left: 1px solid var(--color-border); }
}

@media (max-width: 960px) {
  .pledge { grid-template-columns: 1fr; }
  .toolbox { grid-template-columns: 1fr; }
  .toolbox__nav { padding: 0; }
  .toolbox__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .toolbox__tabs::-webkit-scrollbar { display: none; }
  .tool-tab { align-items: center; padding: 10px 14px 10px 10px; }
  .tool-tab__icon { width: 30px; height: 30px; border-radius: 8px; }
  .tool-tab__text span { display: none; }
  .toolbox__note { display: none; }
  .anatomy,
  .adds-up { grid-template-columns: 1fr; }
  .move { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); grid-template-areas: "old out new" "imp imp imp"; row-gap: 28px; }
  .move__arrow--in { display: none; }
  .move__device { --s: 0.62; }
  .import { max-width: 30rem; width: 100%; justify-self: center; }
  .values { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .audiences { grid-template-columns: 1fr 1fr; }
  .audiences .audience:last-child { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .editor__body { grid-template-columns: 1fr; grid-template-areas: "canvas" "design"; }
  .editor__blocks { display: none; }
  .editor__design { border-right: 0; }
  .editor__bar { grid-template-columns: 1fr auto; padding-left: 14px; }
  .editor__url,
  .editor__status { display: none; }
  .editor__canvas { padding: 28px 16px; }
  .editor__canvas-label { display: none; }
  .hero__hint-wide { display: none; }
  .hero__hint-narrow { display: inline; }
  .plans { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: var(--space-xl); }
  .timeline::before { top: 20px; bottom: 20px; left: 20px; right: auto; border-top: 0; border-left: 1px dashed var(--color-border-strong); }
  .tl-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
  .tl-step__num { grid-row: span 3; margin-bottom: 0; }
  .tl-step__viz { grid-column: 2; }
  .qr-tool,
  .bio-tool { grid-template-columns: 1fr; }
  .qr-stage { order: -1; }
  .font-list { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--blocks,
  .tile--stats,
  .tile--themes,
  .tile--qr,
  .tile--sched,
  .tile--insta,
  .tile--email { grid-column: auto; }
  .also { grid-template-columns: 1fr; }
  .also li { flex-direction: row; border-left: 0 !important; border-top: 1px solid var(--color-border) !important; }
  .also li:first-child { border-top: 0 !important; }
  .clause { grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: 10px; }
  .pledge-stamp { width: 84px; height: 84px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .hero__stage { padding: 6px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .accordion { padding: 2px 18px; }
  .receipts { grid-template-columns: 1fr; gap: 20px; }
  .receipt-wrap--them,
  .receipt-wrap--us { transform: none; }
  .anatomy__figure { padding: 56px 12px 24px; }
  .rival { width: 236px; margin-right: 48px; }
  .rival__toast { left: -14px; right: 2px; }
  .marker { right: -46px; }
  .rival__foot i { display: none; }
  .marker::before { width: 16px; }
  .toolbox { padding: 8px; border-radius: 22px; }
  .toolbox__bar { display: none; }
  .tool-panel { padding: 16px; }
  .swatch-opt { padding: 4px 12px 4px 4px; }
  .swatch-opt__dot { width: 22px; height: 22px; }
  .move { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); padding: 20px 12px; }
  .move__device { --s: 0.5; }
  .move__url { font-size: 0.66rem; }
  .import { padding: 14px; }
  .import__time { display: none; }
  .markup__table thead { display: none; }
  .markup__table,
  .markup__table tbody,
  .markup__table tr,
  .markup__table th,
  .markup__table td { display: block; width: auto; }
  .markup__table tbody tr { padding: 16px 0; border-top: 1px dashed var(--color-border-strong); }
  .markup__table caption { display: block; }
  .markup__table tbody th,
  .markup__table tbody td { width: auto; padding: 0; border: 0; }
  .markup__table tbody th { margin-bottom: 8px; color: var(--color-text-muted); font-size: 0.8125rem; }
  .markup__old { margin-bottom: 10px; font-size: 0.9375rem; }
  .markup__new { white-space: normal; }
  .markup__arrow { margin-right: 8px; }
  .cta-card { border-radius: 24px; }
  .cta-card__actions .btn { width: 100%; }
}

/* ---------- 24. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 25. Print ---------- */
@media print {
  .site-header, .menu-sheet, .modal, .hero__product, .toolbox { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 26. Simple content pages (terms) ---------- */
.page-head { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 var(--space-2xl); }
.page-head .h2 { max-width: 40rem; }
.page-head .lead { max-width: 40rem; margin-top: var(--space-lg); }
.prose { max-width: 44rem; padding-bottom: var(--section-y); }
.prose > h2 { margin: var(--space-2xl) 0 var(--space-md); font-size: var(--fs-h3-display); }
.prose p { color: var(--color-text-muted); }
.prose p + p { margin-top: var(--space-md); }
.prose .promises { display: grid; }
.prose .promise { display: flex; gap: 14px; padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-border-strong); }
.prose .promise:first-child { border-top: 1px solid var(--color-border-strong); }
.prose .promise h2 { margin-bottom: 4px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.prose .promise p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.5; }
.prose .promise__check { flex: none; padding-top: 1px; color: var(--wren-rust); }
.prose .promise__check .icon { width: 20px; height: 20px; stroke-width: 2.5; }
.notice {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--sand);
  color: var(--ink);
}
