/* Stift und Herz — crayon & paper design system */

:root {
  --paper: #fbf7ee;
  --paper-2: #f6efde;
  --ink: #2a241c;
  --ink-soft: #5a5147;
  --muted: #8a8072;
  --rule: #e8ddc5;

  --pink: #e85a8a;
  --mint: #5bc8b2;
  --sun: #f5c23a;
  --sky: #6ba8e0;
  --grape: #9b7dd4;
  --coral: #ff8a5b;
  --leaf: #6bbf59;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Kalam', cursive;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 42px;

  --shadow-soft: 0 10px 30px -12px rgba(42, 36, 28, 0.18);
  --shadow-lift: 0 24px 60px -20px rgba(42, 36, 28, 0.28);
}

/* ---- Theme: sketchbook (default) ---- */
html[data-theme="sketchbook"] {
  --paper: #fbf7ee;
  --paper-2: #f6efde;
  --card: #ffffff;
  --deco: var(--paper-2);
}
/* ---- Theme: clean ---- */
html[data-theme="clean"] {
  --paper: #ffffff;
  --paper-2: #f7f5f1;
  --card: #ffffff;
  --deco: #f0ebe0;
  --rule: #eee8d9;
}
/* ---- Theme: storybook ---- */
html[data-theme="storybook"] {
  --paper: #fff4f1;
  --paper-2: #ffe6de;
  --card: #ffffff;
  --deco: #ffd9cc;
  --rule: #f5d3c5;
  --ink: #3b2a2a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* typographic scale */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.hand {
  font-family: var(--font-hand);
  font-weight: 500;
}

a { color: inherit; }

/* layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  max-width: 1400px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 19px;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-hand);
  font-size: 26px;
  box-shadow: 0 4px 0 color-mix(in oklab, var(--pink) 70%, #000);
  transform: rotate(-6deg);
}
.nav-links { display: flex; gap: 22px; margin-left: 24px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  background: var(--card, #fff);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 0 #000;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 0 #000; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 4px 0 #b53d68; }
.btn-pink:hover { transform: translateY(-1px); box-shadow: 0 6px 0 #b53d68; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero-bunting {
  position: absolute;
  top: 8px; left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  opacity: 0.85;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 60px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--deco);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink);
}
h1.hero-title {
  font-size: clamp(42px, 6vw, 78px);
  margin: 18px 0 18px;
  color: var(--ink);
}
.hero-title .ink-pink { color: var(--pink); }
.hero-title .ink-grape { color: var(--grape); }
.hero-title .ink-mint { color: #3f9f8a; }
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-soft);
}
.hero-meta .tick { color: var(--mint); font-weight: 900; margin-right: 6px; }

/* cover display */
.cover-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.cover-card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(-2deg);
  background: #fff;
}
.cover-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tape {
  position: absolute;
  width: 110px; height: 28px;
  background: rgba(245, 194, 58, 0.55);
  border-left: 1px dashed rgba(0,0,0,0.08);
  border-right: 1px dashed rgba(0,0,0,0.08);
  backdrop-filter: blur(2px);
}
.tape-1 { top: -10px; left: 30px; transform: rotate(-8deg); }
.tape-2 { bottom: -8px; right: 24px; transform: rotate(6deg); background: rgba(91, 200, 178, 0.55); }

.sticker {
  position: absolute;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 22px;
  padding: 16px 18px;
  border-radius: 50%;
  width: 110px; height: 110px;
  display: grid; place-items: center;
  text-align: center;
  line-height: 1;
  transform: rotate(-14deg);
  box-shadow: 0 6px 0 #c29724, var(--shadow-soft);
  z-index: 3;
}
.sticker-hero { top: 20px; right: -10px; }

/* floating doodles (parallax) */
.doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  will-change: transform;
}

/* section chrome */
section { padding: 88px 0; position: relative; }
.sec-label {
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--pink);
  margin: 0 0 6px;
  display: inline-block;
  transform: rotate(-2deg);
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 14px;
  line-height: 1.05;
  text-wrap: balance;
}
.sec-intro {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 18px;
  text-wrap: pretty;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.portrait-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.5deg);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-caption {
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--sun);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-hand);
  font-size: 22px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.about-body p { font-size: 18px; color: var(--ink-soft); margin: 0 0 16px; text-wrap: pretty; }
.about-signers {
  display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap;
}
.signer {
  display: flex; gap: 12px; align-items: center;
}
.signer .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grape); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-hand);
  font-size: 26px;
  box-shadow: 0 3px 0 color-mix(in oklab, var(--grape) 65%, #000);
}
.signer .avatar.iasia { background: var(--pink); box-shadow: 0 3px 0 #b53d68; }
.signer .role { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.signer .name { font-family: var(--font-hand); font-size: 24px; line-height: 1; }

/* ---- GALLERY / FLIPBOOK ---- */
.flipbook-wrap {
  margin-top: 40px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.flip-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 720px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
  perspective: 1600px;
  padding: 24px;
}
.flip-page {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, transform .5s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.flip-page img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.flip-page.hidden { opacity: 0; pointer-events: none; }
.flip-page.next { z-index: 0; }
.page-corner {
  position: absolute;
  bottom: 18px; right: 20px;
  font-family: var(--font-hand);
  color: var(--muted);
  font-size: 20px;
}
.flip-btn {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--card, #fff);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .15s;
}
.flip-btn:hover { transform: translateY(-2px); }
.flip-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.flip-btn svg { width: 20px; height: 20px; }
.flip-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 20px;
}
.flip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); cursor: pointer; border: 0; padding: 0; }
.flip-dot.active { background: var(--pink); transform: scale(1.3); }

/* color demo */
.color-demo {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card, #fff);
  padding: 32px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--rule);
}
.color-stage {
  aspect-ratio: 3/4;
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}
.color-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.color-stage .outline { pointer-events: none; }
.color-stage .outline path, .color-stage .outline circle,
.color-stage .outline polygon, .color-stage .outline rect, .color-stage .outline line, .color-stage .outline ellipse { fill: transparent; stroke: #1a1a1a; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.color-stage .fill-layer { pointer-events: all; }
.color-stage .fill-layer path, .color-stage .fill-layer circle,
.color-stage .fill-layer polygon, .color-stage .fill-layer rect, .color-stage .fill-layer ellipse { transition: fill .3s ease; pointer-events: all; }
.color-stage .fill-layer g { pointer-events: all; }
/* make sure un-colored (transparent-fill) shapes still register clicks */
.color-stage .fill-layer path[fill="transparent"], .color-stage .fill-layer circle[fill="transparent"],
.color-stage .fill-layer rect[fill="transparent"], .color-stage .fill-layer ellipse[fill="transparent"] { fill: rgba(255,255,255,0.01); }
.crayons {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 20px;
}
.crayon {
  height: 56px;
  border-radius: 8px 8px 14px 14px;
  cursor: pointer;
  position: relative;
  border: 0;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2), inset 0 -8px 0 rgba(0,0,0,0.12);
  transition: transform .15s;
}
.crayon:hover { transform: translateY(-3px); }
.crayon.active { transform: translateY(-8px) rotate(-4deg); box-shadow: 0 8px 0 rgba(0,0,0,0.2), inset 0 -8px 0 rgba(0,0,0,0.15); }
.crayon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background: rgba(255,255,255,0.35);
  border-radius: 8px 8px 0 0;
}
.demo-hint { font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); margin-top: 10px; }
.demo-reset {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  background: transparent; border: 0; cursor: pointer;
  margin-top: 10px;
}
.demo-reset:hover { color: var(--pink); }

/* ---- WHY (benefits) ---- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.benefit {
  background: var(--card, #fff);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: transform .2s;
}
.benefit:hover { transform: translateY(-4px); }
.benefit .num {
  font-family: var(--font-hand);
  font-size: 48px;
  line-height: 1;
  color: var(--pink);
  margin-bottom: 8px;
}
.benefit:nth-child(2) .num { color: var(--sky); }
.benefit:nth-child(3) .num { color: var(--leaf); }
.benefit h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.benefit p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---- FREE SAMPLE / LEAD ---- */
.sample-card {
  background: var(--card, #fff);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}
.sample-pages {
  position: relative;
  height: 420px;
  padding-right: 8%;
}
.sample-thumb {
  position: absolute;
  width: 42%;
  aspect-ratio: 3/4;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.sample-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sample-thumb.s1 { top: 10px; left: 0; transform: rotate(-7deg); z-index: 4; }
.sample-thumb.s2 { top: 30px; left: 22%; transform: rotate(-1deg); z-index: 3; }
.sample-thumb.s3 { top: 48px; left: 44%; transform: rotate(5deg); z-index: 2; }
.sample-thumb.s4 { top: 68px; left: 58%; transform: rotate(10deg); z-index: 1; }
.sample-badge {
  position: absolute;
  bottom: -6px; right: 10%;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  width: 92px; height: 92px;
  display: grid; place-items: center;
  font-family: var(--font-hand);
  font-size: 20px;
  line-height: 1;
  text-align: center;
  z-index: 4;
  transform: rotate(-12deg);
  box-shadow: 0 5px 0 #b53d68;
}

form.lead {
  display: grid; gap: 12px;
}
form.lead label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft);
}
form.lead input[type="text"],
form.lead input[type="email"] {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--card, #fff);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: box-shadow .2s;
}
form.lead input:focus { outline: 0; box-shadow: 4px 4px 0 var(--pink); }
form.lead .check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-soft);
  line-height: 1.4;
}
form.lead .check input { margin-top: 3px; }
form.lead .btn { margin-top: 6px; justify-content: center; }
.form-success {
  padding: 40px; text-align: center;
  background: var(--mint);
  color: var(--ink);
  border-radius: var(--r-lg);
  position: relative;
}
.form-success h3 { font-family: var(--font-display); font-size: 32px; margin: 0 0 12px; }
.form-success .hand { font-size: 28px; display: block; margin-top: 14px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 18px; }
.dl-grid a {
  background: rgba(255,255,255,0.6);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.dl-grid a:hover { background: #fff; }

/* ---- TESTIMONIALS ---- */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.tm {
  background: var(--card, #fff);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.tm:nth-child(1) { transform: rotate(-1deg); background: #fff6e3; }
.tm:nth-child(2) { transform: rotate(1deg); background: #e6f7f2; }
.tm:nth-child(3) { transform: rotate(-0.5deg); background: #fde9f1; }
.tm .stars { color: var(--sun); letter-spacing: 2px; font-size: 18px; margin-bottom: 10px; }
.tm .quote { font-family: var(--font-display); font-size: 19px; line-height: 1.4; margin: 0 0 18px; text-wrap: pretty; }
.tm .who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tm .who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display:grid; place-items:center; font-weight: 800; }
.tm .who b { display: block; font-weight: 800; }
.tm .who small { color: var(--muted); }

/* ---- FAQ ---- */
.faq-list { margin-top: 30px; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: transparent; border: 0;
  padding: 22px 0; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-size: 21px;
  color: var(--ink); cursor: pointer; text-align: left;
  font-weight: 600;
}
.faq-q::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 28px;
  color: var(--ink-soft);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  color: var(--ink-soft); font-size: 16px;
}
.faq-a > div { padding: 0 0 22px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---- UPCOMING ---- */
.upcoming-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  margin-top: 40px;
}
.up-card {
  aspect-ratio: 3/4;
  background: var(--card, #fff);
  border: 1.5px dashed var(--ink);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  transition: transform .2s;
}
.up-card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.up-card.up-1 { background: #fde9f1; }
.up-card.up-2 { background: #e6f2ff; }
.up-card.up-3 { background: #fff6e3; }
.up-card .tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.up-card h3 {
  font-family: var(--font-display); font-size: 30px;
  margin: 16px 0 4px; line-height: 1;
}
.up-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.up-card .hand { font-size: 24px; color: var(--pink); }
.up-visual {
  position: relative;
  height: 140px;
  margin: -8px -8px 8px -8px;
  align-self: stretch;
}
.up-visual svg { filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.08)); }

/* newsletter strip */
.news {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.news h3 {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.news p { color: rgba(251, 247, 238, 0.8); margin: 0; font-size: 16px; }
.news form { display: flex; gap: 10px; }
.news input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.news button { background: var(--pink); color: #fff; box-shadow: 0 4px 0 #b53d68; }

/* footer */
footer { padding: 60px 0 40px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--font-display); font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
.foot-grid a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: var(--pink); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card, #fff);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
}

/* confetti */
.confetti-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
}
.confetti-piece {
  position: absolute; width: 10px; height: 14px;
  top: -20px;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  width: 280px;
  display: none;
  font-family: var(--font-body);
}
.tweaks-panel.show { display: block; }
.tweaks-panel h4 { font-family: var(--font-display); font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.tweaks-panel h4 .hand { font-family: var(--font-hand); color: var(--pink); font-size: 20px; }
.tweak-row { margin: 12px 0; }
.tweak-row label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; display: block; margin-bottom: 6px; }
.tweak-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tweak-opt {
  border: 1.5px solid var(--rule); background: #fff; padding: 8px 4px;
  border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 700;
  text-align: center; color: var(--ink-soft);
}
.tweak-opt.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tweak-row.accent-row .tweak-opts { grid-template-columns: repeat(5, 1fr); }
.swatch { height: 28px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.swatch.active { border-color: var(--ink); transform: scale(1.1); }

/* decorative underline squiggle */
.squiggle {
  display: inline-block;
  position: relative;
}
.squiggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -8px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'><path d='M2 8 Q 12 0, 22 6 T 42 6 T 62 6 T 82 6 T 102 6 T 118 6' fill='none' stroke='%23e85a8a' stroke-width='3' stroke-linecap='round'/></svg>") repeat-x;
  background-size: 120px 12px;
}

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .color-demo, .sample-card, .news { grid-template-columns: 1fr; gap: 36px; }
  .benefits, .tm-grid, .upcoming-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .sample-pages { height: 280px; }
  .sample-card { padding: 28px; box-shadow: 4px 4px 0 var(--ink); }
  .flip-stage { height: 440px; }
  .cover-stage { min-height: 440px; }
}
