/* Poem Parlour — shared design system for every page.
   Referenced as /assets/site.css?v=N. Assets are cached for a week (vercel.json),
   so bump N in every page whenever this file changes. */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --paper: #fbf8f3;
  --paper-2: #f4eee5;
  --paper-3: #ebe3d6;
  --white: #fffdf9;
  --ink: #1e2230;
  --ink-2: #3b404d;
  --ink-3: #66656a;
  --line: #e6ddcf;
  --line-2: #d3c6b2;
  --gold: #c6a15b;
  --gold-text: #86672c;
  --berry: #6f2438;
  --berry-2: #561a2b;
  --berry-tint: #f6e9ec;
  --night: #1b1f2b;
  --night-2: #252a38;
  --ok: #2f6b4f;
  --error: #a3322f;

  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-poem: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(30,34,48,.06), 0 4px 12px -4px rgba(30,34,48,.10);
  --shadow-md: 0 1px 2px rgba(30,34,48,.06), 0 12px 32px -10px rgba(30,34,48,.20);
  --shadow-paper: 0 1px 1px rgba(30,34,48,.05), 0 10px 24px -8px rgba(30,34,48,.18), 0 36px 72px -28px rgba(30,34,48,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 68px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--berry); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--berry-2); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.1; letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--berry); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* Ornamental rule: ——— ◆ ——— */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 0 auto 20px; }
.ornament::before, .ornament::after { content: ''; width: 44px; height: 1px; background: currentColor; opacity: .7; }
.ornament span { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 500; letter-spacing: .02em;
  color: #fff; background: var(--berry);
  border: 1px solid var(--berry); border-radius: var(--radius);
  text-decoration: none; text-align: center; line-height: 1.2;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -10px rgba(111,36,56,.55);
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--berry-2); border-color: var(--berry-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--lg { min-height: 58px; padding: 16px 34px; font-size: 1.06rem; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.link-btn { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); font-size: .95rem; padding: 6px 2px; }
.link-btn:hover { color: var(--berry); text-decoration-color: currentColor; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251,248,243,.92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled, .site-header--solid { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.3rem; line-height: 1;
  padding-bottom: 2px; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px rgba(198,161,91,.8);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em; line-height: 1; }
.brand-name em { font-style: italic; font-weight: 500; color: var(--berry); }
.header-nav { display: flex; gap: 26px; margin-left: auto; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.header-nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.header-cta { flex: none; }
@media (max-width: 860px) {
  .header-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.3rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 1.15rem; }
  .header-cta { padding: 8px 12px; font-size: .86rem; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--tint { background: var(--paper-2); }
.section--night { background: var(--night); color: rgba(251,248,243,.82); }
.section--night h2, .section--night h3 { color: var(--paper); }
.section--night h2 em { color: var(--gold); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: 14px; }
.section-head p { font-size: 1.1rem; color: var(--ink-3); }
.section--night .section-head p { color: rgba(251,248,243,.7); }
.section-cta { text-align: center; margin-top: 48px; }
.section-cta .note { margin-top: 12px; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ── Hero (home) ──────────────────────────────────────────────────────── */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(198,161,91,.16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(111,36,56,.06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.02; margin-bottom: 22px; letter-spacing: -0.015em; }
.hero-sub { font-size: 1.18rem; max-width: 34em; margin-bottom: 34px; color: var(--ink-2); }
.starter {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
}
.starter-q { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.2; }
.starter-hint { font-size: .92rem; color: var(--ink-3); margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 9px 18px;
  font-family: var(--font-ui); font-size: .98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s var(--ease);
}
.chip:hover { border-color: var(--berry); color: var(--berry); background: var(--white); transform: translateY(-1px); }
.chip--more { border-style: dashed; color: var(--ink-2); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .95rem; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; flex: none; color: var(--ok); }

.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 4 / 5; background: var(--paper-3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.price-tag {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
}
.price-tag strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.price-tag span { font-size: .86rem; line-height: 1.35; color: var(--ink-3); }
@media (max-width: 960px) {
  .hero { padding: 28px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .price-tag { left: 12px; bottom: 16px; }
}
@media (max-width: 520px) {
  .hero-sub { font-size: 1.06rem; margin-bottom: 26px; }
  .starter { padding: 18px 16px 14px; margin: 0 -4px; }
  .chip { padding: 8px 15px; font-size: .95rem; }
}

/* ── Promise strip ────────────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-list li { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list strong { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.trust-list span { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust-list li { padding: 18px 12px; }
}

/* ── How it works ─────────────────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  position: relative; padding: 34px 28px 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
}
.step-num {
  font-family: var(--font-display); font-style: italic; font-size: 3.2rem; line-height: 1;
  color: var(--gold); margin-bottom: 18px;
}
.step h3 { font-size: 1.65rem; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--ink-3); font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 14px; } .step { padding: 24px 22px; display: grid; grid-template-columns: 52px 1fr; column-gap: 10px; } .step-num { font-size: 2.6rem; margin: 0; grid-row: span 2; } }

/* ── Poem card: mirrors the PDF designs in lib/generatePDF.js ────────── */
.poem-card {
  --pc-bg: #fdf6ed; --pc-bg2: #f8efe0;
  --pc-border: #c9a14a; --pc-inner: #d4b06a; --pc-inner-on: 1;
  --pc-text: #2a1a08; --pc-title: #4a2e0a; --pc-ded: #6b4422; --pc-rule: rgba(180,130,60,.38);
  --pc-decor: none;
  position: relative;
  background: linear-gradient(160deg, var(--pc-bg), var(--pc-bg2));
  color: var(--pc-text);
  padding: 64px 48px 56px;
  box-shadow: var(--shadow-paper);
  text-align: center;
  transition: background .5s ease, color .5s ease;
  isolation: isolate;
}
.pc-frame { position: absolute; inset: 16px; border: 1px solid var(--pc-border); pointer-events: none; transition: border-color .5s ease; }
.pc-frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--pc-inner); opacity: var(--pc-inner-on); transition: opacity .5s, border-color .5s; }
.pc-frame::after { content: ''; position: absolute; inset: -4px; background: var(--pc-decor); }
.pc-inner { position: relative; z-index: 1; }
.pc-rule { height: 1px; background: var(--pc-rule); margin: 0 6%; transition: background .5s; }
.pc-rule--short { margin: 0 16%; }
.pc-title {
  font-family: var(--font-poem); font-style: italic; font-weight: 400;
  font-size: clamp(1.18rem, 2.4vw, 1.4rem); line-height: 1.35; color: var(--pc-title);
  margin: 22px 0; letter-spacing: 0; transition: color .5s;
}
.pc-poem {
  font-family: var(--font-poem); font-size: clamp(1.02rem, 1.9vw, 1.14rem); line-height: 1.85;
  color: var(--pc-text); margin: 26px 0 28px; white-space: pre-line;
  -webkit-user-select: none; user-select: none; transition: color .5s;
}
.pc-poem .line { display: block; }
.pc-poem .gap { display: block; height: .9em; }
.pc-sign { font-family: var(--font-poem); font-style: italic; font-size: 1rem; color: var(--pc-ded); padding-top: 18px; transition: color .5s; }
.pc-sign::before { content: ''; display: block; height: 1px; background: var(--pc-rule); margin: 0 22% 18px; }
.pc-sign:empty { display: none; }
.poem-card--sample .pc-poem { -webkit-user-select: text; user-select: text; }

/* Designs (ids match TEMPLATES in lib/generatePDF.js) */
.poem-card[data-design="classic"], .poem-card[data-design="midnight"] {
  --pc-decor:
    radial-gradient(circle at 4px 4px, var(--pc-border) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 4px) 4px, var(--pc-border) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 4px calc(100% - 4px), var(--pc-border) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), var(--pc-border) 0 2.6px, transparent 3.2px);
}
.poem-card[data-design="ivory"] {
  --pc-bg: #faf7f1; --pc-bg2: #f5f1e8; --pc-border: #2a2a2a; --pc-inner-on: 0;
  --pc-text: #1a1a1a; --pc-title: #1a1a1a; --pc-ded: #4a4a4a; --pc-rule: rgba(42,42,42,.25);
}
.poem-card[data-design="botanical"] {
  --pc-bg: #f8f5ec; --pc-bg2: #f0ede0; --pc-border: #7a8a5a; --pc-inner-on: 0;
  --pc-text: #2a2a1a; --pc-title: #3a4a2a; --pc-ded: #5a6a4a; --pc-rule: rgba(122,138,90,.38);
  --pc-decor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%237a8a5a' stroke-width='1' transform='translate(7 7) rotate(-45)'%3E%3Cpath d='M0 0V30M0 8c6-2 10 2 12 6M0 8c-6-2-10 2-12 6M0 17c6-2 10 2 12 6M0 17c-6-2-10 2-12 6M0 26c6-2 10 2 12 6M0 26c-6-2-10 2-12 6'/%3E%3C/g%3E%3C/svg%3E") left 10px top 10px / 44px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%237a8a5a' stroke-width='1' transform='translate(39 7) rotate(45)'%3E%3Cpath d='M0 0V30M0 8c6-2 10 2 12 6M0 8c-6-2-10 2-12 6M0 17c6-2 10 2 12 6M0 17c-6-2-10 2-12 6M0 26c6-2 10 2 12 6M0 26c-6-2-10 2-12 6'/%3E%3C/g%3E%3C/svg%3E") right 10px top 10px / 44px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%237a8a5a' stroke-width='1' transform='translate(7 39) rotate(-135)'%3E%3Cpath d='M0 0V30M0 8c6-2 10 2 12 6M0 8c-6-2-10 2-12 6M0 17c6-2 10 2 12 6M0 17c-6-2-10 2-12 6M0 26c6-2 10 2 12 6M0 26c-6-2-10 2-12 6'/%3E%3C/g%3E%3C/svg%3E") left 10px bottom 10px / 44px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%237a8a5a' stroke-width='1' transform='translate(39 39) rotate(135)'%3E%3Cpath d='M0 0V30M0 8c6-2 10 2 12 6M0 8c-6-2-10 2-12 6M0 17c6-2 10 2 12 6M0 17c-6-2-10 2-12 6M0 26c6-2 10 2 12 6M0 26c-6-2-10 2-12 6'/%3E%3C/g%3E%3C/svg%3E") right 10px bottom 10px / 44px no-repeat;
}
.poem-card[data-design="midnight"] {
  --pc-bg: #1a1e2e; --pc-bg2: #232838; --pc-border: #c9a14a; --pc-inner: #8a7030;
  --pc-text: #f0e6d0; --pc-title: #f5e8cc; --pc-ded: #c9b090; --pc-rule: rgba(201,161,74,.42);
}
.poem-card[data-design="vintage"] {
  --pc-bg: #f4ead4; --pc-bg2: #ede2c5; --pc-border: #8a6a3a; --pc-inner-on: 0;
  --pc-text: #3a2a1a; --pc-title: #5a3a1a; --pc-ded: #7a5a3a; --pc-rule: rgba(138,106,58,.38);
  background:
    radial-gradient(circle at 18% 22%, rgba(90,58,26,.05) 0 7px, transparent 8px),
    radial-gradient(circle at 76% 64%, rgba(90,58,26,.045) 0 9px, transparent 10px),
    radial-gradient(circle at 34% 84%, rgba(90,58,26,.04) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 14%, rgba(90,58,26,.04) 0 4px, transparent 5px),
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(120,84,40,.12)),
    linear-gradient(160deg, var(--pc-bg), var(--pc-bg2));
}
.poem-card[data-design="deco"] {
  --pc-bg: #f5f0e0; --pc-bg2: #ede7d3; --pc-border: #b8882a; --pc-inner: #d4a94a;
  --pc-text: #1a1a1a; --pc-title: #2a2a2a; --pc-ded: #5a4830; --pc-rule: rgba(184,136,42,.38);
  --pc-decor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M1 31V1H31M7 1V7H1' fill='none' stroke='%23b8882a'/%3E%3C/svg%3E") left 14px top 14px / 30px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M31 31V1H1M25 1V7H31' fill='none' stroke='%23b8882a'/%3E%3C/svg%3E") right 14px top 14px / 30px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M1 1V31H31M7 31V25H1' fill='none' stroke='%23b8882a'/%3E%3C/svg%3E") left 14px bottom 14px / 30px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M31 1V31H1M25 31V25H31' fill='none' stroke='%23b8882a'/%3E%3C/svg%3E") right 14px bottom 14px / 30px no-repeat;
}
@media (max-width: 520px) {
  .poem-card { padding: 50px 26px 44px; }
  .pc-frame { inset: 11px; }
}

/* ── Examples (tabbed sample poems) ───────────────────────────────────── */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tab {
  min-height: 44px; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: .97rem;
  transition: all .2s;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.example { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
.example .poem-card { max-width: 520px; width: 100%; justify-self: end; }
.example-notes h3 { font-size: 1.9rem; font-weight: 600; margin-bottom: 8px; }
.example-notes > p { color: var(--ink-3); margin-bottom: 22px; }
.notes {
  list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 22px; margin-bottom: 28px;
}
.notes li { padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.notes li:last-child { border-bottom: 0; }
.notes b { display: block; font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 2px; }
.example-panel { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .example { grid-template-columns: 1fr; gap: 32px; }
  .example .poem-card { justify-self: center; }
}

/* ── What you get ─────────────────────────────────────────────────────── */
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.design-fan { position: relative; height: 470px; }
.design-fan .mini {
  position: absolute; width: 46%; aspect-ratio: 1 / 1.414; left: 27%; top: 6%;
  box-shadow: var(--shadow-paper); padding: 0;
}
.design-fan .mini:nth-child(1) { transform: translateX(-62%) rotate(-9deg); }
.design-fan .mini:nth-child(2) { transform: translateX(62%) rotate(9deg); }
.design-fan .mini:nth-child(3) { transform: translateY(-2%); z-index: 2; }
.mini .pc-frame { inset: 9px; }
.mini .pc-frame::before { inset: 4px; }
.mini-body { position: absolute; inset: 22% 18%; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mini-body i { display: block; height: 2px; width: 100%; background: var(--pc-text); opacity: .28; border-radius: 1px; }
.mini-body i:nth-child(4n+2) { width: 84%; }
.mini-body i:nth-child(4n+3) { width: 92%; }
.mini-body i:nth-child(4n) { width: 76%; margin-bottom: 8px; }
.mini-body .mini-title { height: auto; background: none; opacity: 1; width: auto; font-family: var(--font-poem); font-style: italic; font-size: .82rem; color: var(--pc-title); margin-bottom: 8px; }
.get-title { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.get-list { list-style: none; display: grid; gap: 22px; margin: 28px 0 34px; }
.get-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.get-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--berry); }
.get-icon svg { width: 20px; height: 20px; }
.get-list h3 { font-family: var(--font-ui); font-size: 1.04rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; line-height: 1.4; }
.get-list p { font-size: .98rem; color: var(--ink-3); }
.swatches { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(30,34,48,.18); box-shadow: inset 0 0 0 3px var(--paper-2); }
@media (max-width: 900px) {
  .get-grid { grid-template-columns: 1fr; gap: 28px; }
  .design-fan { height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
  .design-fan .mini:nth-child(1) { transform: translateX(-46%) rotate(-7deg); }
  .design-fan .mini:nth-child(2) { transform: translateX(46%) rotate(7deg); }
}

/* ── Comparison ───────────────────────────────────────────────────────── */
.compare-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.compare { width: 100%; min-width: 600px; max-width: 920px; margin: 0 auto; border-collapse: separate; border-spacing: 0; font-size: 1rem; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); vertical-align: bottom; border-bottom-color: var(--line-2); }
.compare tbody th { text-align: left; font-weight: 400; color: var(--ink-2); }
.compare td { color: var(--ink-3); }
.compare .us { background: var(--white); color: var(--ink); font-weight: 500; }
.compare thead .us { border-radius: 6px 6px 0 0; color: var(--berry); box-shadow: inset 0 3px 0 var(--berry); }
.compare tbody tr:last-child .us { border-radius: 0 0 6px 6px; }
.compare .yes { color: var(--ok); }
.compare .no { color: #a19a90; }
@media (max-width: 640px) {
  .compare-wrap { margin: 0; padding: 0; }
  .compare { min-width: 0; font-size: .84rem; line-height: 1.35; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare thead th { font-size: 1.02rem; line-height: 1.15; }
  .compare tbody th { padding-left: 0; }
}
.compare-note { text-align: center; font-size: .88rem; color: var(--ink-3); margin-top: 16px; }

/* ── Occasion / link cards ────────────────────────────────────────────── */
.occasion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.occasion-card, .card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 22px 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; color: var(--ink-2);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.occasion-card:hover, .card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink-2); }
.occasion-card strong, .card-title { font-family: var(--font-display); font-size: 1.38rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.occasion-card span, .card-text { font-size: .95rem; color: var(--ink-3); line-height: 1.5; }
.occasion-card .go, .card::after { margin-top: auto; padding-top: 10px; font-size: .9rem; color: var(--berry); }
.card::after { content: 'Read more →'; }
.occasions-more { text-align: center; margin-top: 30px; color: var(--ink-3); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; font-family: var(--font-display); font-size: 1.38rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease);
}
details[open] > .faq-q::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-q:hover { color: var(--berry); }
.faq-a { padding: 0 2px 24px; color: var(--ink-2); max-width: 68ch; }

/* ── Final CTA band ───────────────────────────────────────────────────── */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.final-cta p { max-width: 520px; margin: 0 auto 30px; font-size: 1.1rem; }
.final-cta .promise { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; font-size: .95rem; color: rgba(251,248,243,.75); }
.final-cta .promise li { display: inline-flex; gap: 8px; align-items: center; }
.final-cta .tick { color: var(--gold); }
.final-cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
.final-cta .btn:hover { background: #fff; color: var(--berry); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: rgba(251,248,243,.66); padding: 72px 0 36px; font-size: .96rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(251,248,243,.1); }
.site-footer .brand { color: var(--paper); margin-bottom: 16px; }
.site-footer .brand-mark { background: var(--paper); color: var(--night); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--gold); }
.site-footer .brand-name em { color: var(--gold); }
.footer-blurb { max-width: 30em; margin-bottom: 22px; }
.footer-head { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(251,248,243,.72); text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 26px; font-size: .86rem; color: rgba(251,248,243,.5); }
.footer-bottom a { color: inherit; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Content pages (occasion landing pages, journal) ──────────────────── */
.breadcrumbs { font-size: .88rem; color: var(--ink-3); padding-top: 26px; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--berry); }
.breadcrumbs span { margin: 0 8px; opacity: .6; }
.page-hero { padding: 44px 0 36px; text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); line-height: 1.04; margin-bottom: 18px; }
.label { display: block; font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; margin: 0 auto 30px; }
.meta { font-size: .92rem; color: var(--ink-3); }
.btn-note { margin-top: 12px; font-size: .92rem; color: var(--ink-3); }
.article { padding: 12px 0 72px; font-family: var(--font-poem); font-size: 1.24rem; line-height: 1.7; color: var(--ink-2); }
.article .card, .article .btn, .article .gift-table, .article .poem-caption, .article .faq-a { font-family: var(--font-ui); }
.article .faq-a { font-size: 1.04rem; }
.article h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 56px 0 16px; }
.article h3 { font-size: 1.5rem; font-weight: 600; margin: 32px 0 8px; }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 22px 1.3em; }
.article li { margin-bottom: 10px; padding-left: 4px; }
.article li::marker { color: var(--gold-text); }
.article strong { color: var(--ink); font-weight: 500; }
.article a:not(.btn):not(.card) { text-decoration-color: rgba(111,36,56,.35); }
.article a:not(.btn):not(.card):hover { text-decoration-color: currentColor; }
.article blockquote { border-left: 2px solid var(--gold); padding: 4px 0 4px 22px; margin: 26px 0; font-family: var(--font-poem); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.article .poem-card { margin: 36px auto 12px; max-width: 540px; }
.poem-caption { text-align: center; font-size: .9rem; color: var(--ink-3); margin-bottom: 30px; }
.cta-band {
  margin: 56px 0; padding: 44px 28px; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm);
}
.cta-band h2 { margin-top: 0 !important; }
.cta-band p { color: var(--ink-3); margin: 0 auto 24px; max-width: 30em; }
.article .faq-item:first-of-type { border-top: 1px solid var(--line-2); }
.article .faq-q { font-size: 1.3rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.article .card { text-decoration: none; }
.table-wrap { overflow-x: auto; margin: 24px 0 28px; }
.gift-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.gift-table th, .gift-table td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.gift-table th { font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); border-bottom-color: var(--line-2); }
.gift-table td:first-child, .gift-table td:nth-child(2) { color: var(--ink); white-space: nowrap; }
.gift-table td:last-child { color: var(--ink-3); }

/* Mobile sticky call to action on landing pages */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251,248,243,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .3s var(--ease); }
@media (min-width: 861px) { .sticky-cta { display: none; } }
@media (max-width: 860px) { body.has-sticky-cta .site-footer { padding-bottom: 104px; } }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ── Simple pages (success, 404) ──────────────────────────────────────── */
.simple-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 56px 0 80px; }
.simple-card { max-width: 640px; text-align: center; }
.simple-card h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 16px; }
.simple-card > p:not(.eyebrow) { font-size: 1.12rem; margin-bottom: 14px; }
.next-steps { list-style: none; text-align: left; display: grid; gap: 14px; margin: 34px 0; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; counter-increment: ns; font-size: 1rem; }
.next-steps li::before { content: counter(ns); width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); color: var(--berry); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.next-steps strong { color: var(--ink); font-weight: 500; }

/* ═════════════════════════════════════════════════════════════════════
   Poem studio (/create)
   ═════════════════════════════════════════════════════════════════════ */
.studio { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.studio-header { height: var(--header-h); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.studio-header .header-inner { gap: 16px; }
.studio-assure { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-3); }
.studio-assure svg { width: 16px; height: 16px; color: var(--ok); }
.studio-progress { height: 3px; background: var(--line); }
.studio-progress span { display: block; height: 100%; width: 0; background: var(--berry); transition: width .45s var(--ease); }
.studio-main { flex: 1; width: 100%; }
.stage { max-width: 680px; margin: 0 auto; padding: 44px 20px 140px; }
.stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; min-height: 32px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .94rem; color: var(--ink-3); padding: 6px 8px 6px 0; }
.back-btn:hover { color: var(--ink); }
.back-btn[disabled] { visibility: hidden; }
.step-count { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.q { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.q.is-back { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.q-title { font-size: clamp(2.1rem, 5.4vw, 2.9rem); line-height: 1.08; margin-bottom: 10px; }
.q-hint { color: var(--ink-3); font-size: 1.02rem; margin-bottom: 30px; max-width: 34em; }
.opt-group + .opt-group { margin-top: 22px; }
.opt-label { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  min-height: 50px; padding: 11px 20px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 1.02rem; line-height: 1.2; text-align: center;
  transition: border-color .15s, background .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
.opt:hover { border-color: var(--ink); transform: translateY(-1px); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 6px 16px -8px rgba(30,34,48,.6); }
.field { margin-bottom: 22px; }
.field label, .field .field-label { display: block; font-weight: 500; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.field .help { display: block; font-size: .9rem; color: var(--ink-3); margin-bottom: 9px; }
.field .optional { font-weight: 400; color: var(--ink-3); font-size: .88rem; }
.input, .textarea {
  width: 100%; font-family: var(--font-ui); font-size: 1.06rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #9b958c; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,34,48,.08); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163,50,47,.1); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 28px; font-size: .95rem; color: var(--ink-2);
}
.tip svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-text); }
.meter { display: flex; align-items: center; gap: 12px; margin: -6px 0 26px; font-size: .9rem; color: var(--ink-3); }
.meter-bar { display: flex; gap: 4px; }
.meter-bar i { width: 26px; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
.meter[data-level="1"] .meter-bar i:nth-child(-n+1),
.meter[data-level="2"] .meter-bar i:nth-child(-n+2),
.meter[data-level="3"] .meter-bar i:nth-child(-n+3),
.meter[data-level="4"] .meter-bar i:nth-child(-n+4),
.meter[data-level="5"] .meter-bar i:nth-child(-n+5) { background: var(--ok); }
.meter strong { color: var(--ink); font-weight: 500; }
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tone {
  text-align: left; padding: 18px 18px 16px; border-radius: 6px;
  background: var(--white); border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.tone:hover { border-color: var(--ink); transform: translateY(-1px); }
.tone[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 8px 20px -12px rgba(30,34,48,.5); }
.tone-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); line-height: 1.1; display: flex; justify-content: space-between; align-items: center; }
.tone-name::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.tone[aria-pressed="true"] .tone-name::after { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px); }
.tone-desc { font-size: .92rem; color: var(--ink-3); }
.tone-line { font-family: var(--font-poem); font-style: italic; font-size: 1.02rem; color: var(--ink-2); margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); line-height: 1.45; }
@media (max-width: 560px) { .tone-grid { grid-template-columns: 1fr; } }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 26px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--ink-3); }
.summary-row dd { color: var(--ink); text-align: right; display: flex; gap: 12px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
.summary-row button { font-size: .86rem; color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
.reassure { list-style: none; display: grid; gap: 8px; margin-top: 18px; font-size: .93rem; color: var(--ink-3); }
.reassure li { display: flex; gap: 10px; align-items: flex-start; }
.reassure .tick { margin-top: 3px; }
.alert { border-radius: var(--radius); padding: 12px 16px; margin: 18px 0 0; font-size: .96rem; background: #fbeceb; color: var(--error); border: 1px solid #efc9c6; }
.notice { border-radius: 6px; padding: 14px 18px; margin-bottom: 22px; font-size: .96rem; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.stage-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(251,248,243,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}
.stage-nav-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.stage-nav .btn { flex: 1; }
.stage-nav .nav-hint { font-size: .86rem; color: var(--ink-3); flex: none; max-width: 40%; line-height: 1.35; }
@media (min-width: 720px) {
  .stage-nav { position: static; background: none; border: 0; padding: 32px 0 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .stage-nav-inner { max-width: none; }
  .stage-nav .btn { flex: none; min-width: 240px; }
  .stage { padding-bottom: 80px; }
}

/* Writing */
.writing { max-width: 560px; margin: 0 auto; padding: 72px 20px 96px; text-align: center; }
.quill { width: 120px; height: 72px; margin: 0 auto 26px; color: var(--berry); }
.quill path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ink 2.6s var(--ease) infinite; }
@keyframes ink { 0% { stroke-dashoffset: 260; } 55%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -260; } }
.writing h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); margin-bottom: 10px; }
.writing-status { color: var(--ink-3); min-height: 1.6em; margin-bottom: 26px; }
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 340px; margin: 0 auto 44px; }
.progress span { display: block; height: 100%; width: 4%; background: var(--berry); border-radius: 2px; transition: width 1s linear; }
.writing-tips { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.writing-tips h2 { font-family: var(--font-ui); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.writing-tips ul { list-style: none; display: grid; gap: 10px; font-size: .97rem; }
.writing-tips li { display: flex; gap: 10px; }

/* Proof (preview + purchase) */
.proof { max-width: 1180px; margin: 0 auto; padding: 36px 20px 140px; }
.proof-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.proof-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.proof-head p { color: var(--ink-3); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 48px; align-items: start; }
.proof-poem { position: relative; }
.proof-poem .poem-card { max-width: 600px; margin: 0 auto; }
.proof-poem .poem-card.is-busy .pc-inner { opacity: .25; filter: blur(1px); transition: opacity .3s, filter .3s; }
.busy-overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; }
.busy-overlay div { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow-md); display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--ink); }
.busy-overlay .spinner { border-color: var(--line); border-top-color: var(--berry); }
.pc-watermark { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.pc-watermark div {
  position: absolute; inset: -50%; display: flex; flex-direction: column; justify-content: space-around;
  transform: rotate(-28deg); opacity: .1;
}
.pc-watermark span { white-space: nowrap; font-family: var(--font-ui); font-weight: 500; font-size: 1rem; letter-spacing: .32em; text-transform: uppercase; color: var(--pc-text); }
.preview-note { text-align: center; font-size: .86rem; color: var(--ink-3); margin-top: 14px; }
.panel--designs { max-width: 600px; margin: 22px auto 0; }
@media (min-width: 640px) { .panel--designs .designs { grid-template-columns: repeat(6, 1fr); } .panel--designs .design { font-size: .78rem; line-height: 1.25; text-align: center; } }
.pc-poem .line.is-hidden { opacity: 0; transform: translateY(6px); }
.pc-poem .line { transition: opacity .6s ease, transform .6s ease; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-family: var(--font-ui); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.proof-side { position: sticky; top: calc(var(--header-h) + 20px); }
.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.design {
  border-radius: 4px; padding: 6px 6px 8px; border: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; gap: 7px; align-items: stretch; font-size: .82rem; color: var(--ink-2);
  transition: border-color .15s, box-shadow .15s;
}
.design:hover { border-color: var(--line-2); }
.design[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 500; }
.design .mini { position: relative; aspect-ratio: 1 / 1.25; padding: 0; box-shadow: 0 1px 3px rgba(30,34,48,.18); }
.design .mini .pc-frame { inset: 5px; }
.design .mini .pc-frame::before { inset: 3px; }
.design .mini .pc-frame::after { inset: -3px; background-size: auto; }
.design .mini[data-design="botanical"] .pc-frame::after { background-size: 15px; background-position: left 1px top 1px, right 1px top 1px, left 1px bottom 1px, right 1px bottom 1px; }
.design .mini[data-design="deco"] .pc-frame::after { background-size: 9px; background-position: left 5px top 5px, right 5px top 5px, left 5px bottom 5px, right 5px bottom 5px; }
.design .mini-body { inset: 26% 22%; gap: 4px; }
.design .mini-body i { height: 1.5px; }
.design .mini-body i:nth-child(4n) { margin-bottom: 4px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.price-row .what { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; color: var(--ink); line-height: 1; }
.includes { list-style: none; display: grid; gap: 9px; margin: 16px 0 22px; font-size: .96rem; }
.includes li { display: flex; gap: 10px; align-items: flex-start; }
.includes .tick { margin-top: 3px; }
.consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); font-size: .9rem; line-height: 1.45; color: var(--ink-2);
}
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--berry); cursor: pointer; }
.consent.is-error { border-color: var(--error); background: #fdf3f2; animation: nudge .45s var(--ease); }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.legal-note { font-size: .82rem; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .86rem; color: var(--ink-3); margin-top: 12px; }
.secure svg { width: 14px; height: 14px; }
.refine-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.refine-chips button { font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); }
.refine-chips button:hover { border-color: var(--ink); color: var(--ink); }
.refine-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.refine-actions .btn { flex: 1; min-width: 160px; }
.panel-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; justify-content: center; }
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(251,248,243,.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s;
}
.buy-bar.is-visible { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.buy-bar .bb-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1; }
.buy-bar .bb-sub { display: block; font-family: var(--font-ui); font-size: .78rem; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.buy-bar .btn { flex: 1; }
@media (min-width: 961px) { .buy-bar { display: none; } }
@media (max-width: 960px) {
  .proof { padding-top: 26px; }
  .proof-grid { grid-template-columns: 1fr; gap: 28px; }
  .proof-side { position: static; }
}
@media (max-width: 520px) {
  .panel { padding: 20px 18px; }
  .stage { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Programmatic focus targets (step titles) shouldn't draw a ring. */
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 719px) { .stage-nav .nav-hint { display: none; } }
@media (max-width: 600px) { .assure-long { display: none; } }

/* ── Cookie consent banner (assets/consent.js) ───────────────────────── */
/* A small card in the bottom corner (full width on phones). consent.js sets
   --cookie-bottom to lift it above any fixed bottom bar and --cookie-space so
   the page can scroll clear of it, or adds .is-top when the bottom would cover
   the page's main call to action. Both buttons are the same size and equally
   easy to press. */
.cookie-banner {
  position: fixed; z-index: 200; right: 20px;
  bottom: var(--cookie-bottom, calc(20px + env(safe-area-inset-bottom)));
  width: min(400px, calc(100% - 40px)); padding: 16px 18px;
  background: var(--white); border: 1px solid var(--line-2); border-top: 2px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--font-ui); font-size: .9rem; line-height: 1.5; color: var(--ink-2);
  animation: cookie-in .35s var(--ease) both;
}
.cookie-banner.is-top { top: var(--cookie-top, 8px); bottom: auto; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(6px); } }
.cookie-text { margin: 0; }
.cookie-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cookie-text a:hover { color: var(--berry); text-decoration-color: currentColor; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { min-height: 42px; padding: 8px 16px; }
.cookie-actions .btn--ghost { border-color: var(--ink-3); }
body.has-cookie-banner { padding-bottom: var(--cookie-space, 0px); }
@media (max-width: 640px) {
  .cookie-banner { left: 10px; right: 10px; width: auto; gap: 10px; padding: 12px 14px; font-size: .85rem; line-height: 1.45; }
  .cookie-banner:not(.is-top) { bottom: var(--cookie-bottom, calc(10px + env(safe-area-inset-bottom))); }
  .cookie-actions .btn { min-height: 40px; }
}

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-family: var(--font-ui); font-size: .95rem; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--ink); font-weight: 500; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-table td:first-child { color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) { .legal-table td:first-child { white-space: normal; } }
.footer-bottom .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom button { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Details step: answer mode, quick picks, nudge (create.html) ──────── */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: -10px 0 14px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; }
.mode { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 12px; border-radius: 7px; color: var(--ink-3); transition: background .15s, color .15s, box-shadow .15s; }
.mode-name { font-weight: 500; font-size: .98rem; color: var(--ink-2); }
.mode-desc { font-size: .8rem; }
.mode[aria-pressed="true"] { background: var(--white); box-shadow: var(--shadow-sm); }
.mode[aria-pressed="true"] .mode-name { color: var(--ink); }
.mode:hover:not([aria-pressed="true"]) .mode-name { color: var(--ink); }
.mode-note { margin: 0 0 26px; padding: 12px 16px; font-size: .93rem; color: var(--ink-2); background: var(--berry-tint); border-left: 3px solid var(--berry); border-radius: var(--radius); }
.mode-note strong { color: var(--berry-2); font-weight: 500; }
.mode-switch + .mode-note[hidden] + #freeDetails { margin-top: 26px; }
.opts--sm { gap: 8px; }
.opts--sm .opt { min-height: 42px; padding: 8px 15px; font-size: .95rem; }

.nudge { margin: auto; width: calc(100% - 32px); max-width: 440px; padding: 30px 28px 24px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); color: var(--ink-2); box-shadow: var(--shadow-md); text-align: center; }
.nudge::backdrop { background: rgba(30,34,48,.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.nudge[open] { animation: nudge-in .25s var(--ease); }
@keyframes nudge-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.nudge-title { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: var(--ink); margin-bottom: 12px; }
.nudge-text { font-size: 1rem; margin-bottom: 22px; }
.nudge-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.nudge-actions .link-btn { align-self: center; margin-top: 2px; }
.nudge-note { margin-top: 12px; font-size: .86rem; color: var(--ink-3); }

/* ── Poem styles step, extras and refine style (create.html) ─────────── */
.form-card .tone-name { gap: 10px; }
.form-card .tone-name .badge { margin-left: auto; margin-right: 8px; }
.badge { display: inline-block; font-family: var(--font-ui); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--berry); background: var(--berry-tint); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.form-ex { display: block; font-family: var(--font-poem); font-style: italic; font-size: 1rem; line-height: 1.5; color: var(--ink-2); margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.form-ex > span { display: block; }
.form-ex b { font-style: normal; font-weight: 600; color: var(--berry); }
.acrostic-field { margin-top: 22px; }
.acrostic-field .input { text-transform: uppercase; letter-spacing: .12em; }
.form-more { margin-top: 18px; font-size: .94rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.extras { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 26px; }
.extras-summary { display: flex; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer; list-style: none; }
.extras-summary::-webkit-details-marker { display: none; }
.extras-summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--ink-3); transition: transform .25s var(--ease); flex: none; }
.extras[open] .extras-summary::after { transform: rotate(45deg); }
.extras-text { display: flex; flex-direction: column; gap: 2px; }
.extras-title { font-weight: 500; color: var(--ink); }
.extras-sub { font-size: .88rem; color: var(--ink-3); }
.extras-count { font-size: .78rem; font-weight: 500; color: var(--ok); background: #eaf3ee; padding: 3px 9px; border-radius: 999px; flex: none; }
.extras-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.x-group { padding-top: 18px; }
.x-group + .x-group { border-top: 1px dashed var(--line); margin-top: 4px; }
.x-head { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.x-group .field { margin-bottom: 16px; }
.x-note { margin-top: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 6px; border-radius: 7px; font-size: .95rem; font-weight: 500; color: var(--ink-2); line-height: 1.25; transition: background .15s, box-shadow .15s, color .15s; }
.seg button small { font-size: .74rem; font-weight: 400; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--berry); cursor: pointer; }
.check strong { color: var(--ink); font-weight: 500; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366656a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.input--sm { font-size: .96rem; padding: 10px 12px; }
select.input--sm { padding-right: 36px; background-position: right 12px center; }
.refine-style { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.refine-style label { font-size: .9rem; color: var(--ink-2); flex: none; min-width: 6.5em; }
.refine-style .input { flex: 1; min-width: 0; }
.refine-style + .refine-actions { margin-top: 14px; }

.poem-card { --pc-accent: #9a6f1e; }
.poem-card[data-design="ivory"] { --pc-accent: #000; }
.poem-card[data-design="botanical"] { --pc-accent: #4f6a35; }
.poem-card[data-design="midnight"] { --pc-accent: #d9b25c; }
.poem-card[data-design="vintage"] { --pc-accent: #7a4a1a; }
.poem-card[data-design="deco"] { --pc-accent: #8f6a1c; }
.pc-poem .acro { font-weight: 600; color: var(--pc-accent); }
.pc-date { font-family: var(--font-poem); font-style: italic; font-size: .92rem; letter-spacing: .04em; color: var(--pc-ded); margin: -12px 0 22px; }

/* ── Poem styles gallery (/poem-styles) and homepage teaser ──────────── */
.gallery { margin: 8px 0 72px; }
.filters { display: grid; gap: 12px; margin: 0 auto 18px; max-width: 980px; }
.filter-row { display: flex; gap: 14px; align-items: baseline; }
.filter-label { flex: none; width: 72px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { font-size: .9rem; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink-2); transition: background .15s, color .15s, border-color .15s; }
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery-count { max-width: 980px; margin: 0 auto 18px; font-size: .9rem; color: var(--ink-3); }
.styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.style-card[hidden] { display: none; }
.style-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.style-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); color: inherit; }
.style-card picture { display: block; background: var(--paper-2); padding: 14px 14px 0; }
.style-card img { width: 100%; height: auto; box-shadow: var(--shadow-sm); }
.style-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.style-card-tag { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.style-card-form { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.style-card-desc { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.style-card-meta { font-size: .82rem; color: var(--ink-3); margin-top: 2px; }
.style-card-cta { margin-top: auto; padding-top: 10px; font-size: .9rem; font-weight: 500; color: var(--berry); }
.gallery-empty { text-align: center; padding: 40px 0; color: var(--ink-3); }
.gallery-empty p { margin-bottom: 12px; }
.styles-explained { padding-top: 0; }
.styles-explained > h2:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .filter-row { flex-direction: column; gap: 6px; }
  .filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -20px; scrollbar-width: none; }
  .filter-chip { flex: none; }
}
@media (max-width: 560px) {
  .styles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .style-card picture { padding: 8px 8px 0; }
  .style-card-body { padding: 10px 10px 12px; }
  .style-card-form { font-size: 1.15rem; }
  .style-card-desc { font-size: .84rem; }
}

.section--compact { padding: 72px 0; }
.styles-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.styles-teaser-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 14px; }
.styles-teaser-copy p { color: var(--ink-3); margin-bottom: 24px; }
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.teaser-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink-2); font-size: .86rem; text-align: center; }
.teaser-card img { width: 100%; height: auto; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.teaser-card:hover img { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.teaser-card:hover { color: var(--berry); }
@media (max-width: 960px) { .styles-teaser { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
.container > .narrow { margin-left: auto; margin-right: auto; }
.filter-row, .filter { min-width: 0; max-width: 100%; }

/* ── Live writing on the proof screen (create.html) ──────────────────── */
.proof-head .quill { width: 84px; height: 50px; margin: 0 auto 10px; }
.proof-head .writing-status { margin: 12px auto 14px; min-height: 1.6em; max-width: 34em; }
.proof-head .progress { max-width: 280px; margin: 0 auto; }
.pc-poem .pc-placeholder { display: block; height: .45em; width: 72%; margin: .62em auto; border-radius: 3px; background: currentColor; opacity: .07; animation: pc-wait 1.4s ease-in-out infinite alternate; }
.pc-poem .pc-placeholder:nth-child(2n) { width: 64%; }
.pc-poem .pc-placeholder:nth-child(3n) { width: 78%; }
.pc-poem .pc-placeholder.gap-before { margin-top: 1.5em; }
@keyframes pc-wait { to { opacity: .14; } }
.proof.is-writing .preview-note { visibility: hidden; }

/* "Want a copy?" and "Save it for later" */
.save-box { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.save-head { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.save-lead { color: var(--ink-3); font-size: .95rem; margin-bottom: 12px; }
.save-row { display: flex; gap: 8px; }
.save-row .input { flex: 1; min-width: 0; }
.save-row .btn { flex: none; min-height: 48px; padding: 10px 16px; font-size: .94rem; }
.save-check { margin: 10px 0 0; padding: 10px 12px; font-size: .86rem; color: var(--ink-2); }
.save-note { margin-top: 8px; font-size: .82rem; line-height: 1.5; color: var(--ink-3); }
.save-note a { color: inherit; }
.save-done { margin-bottom: 10px; font-size: .95rem; color: var(--ok); }
.save-form .alert { margin-top: 10px; }
@media (max-width: 420px) { .save-row { flex-direction: column; } .save-row .btn { width: 100%; } }

/* "Not quite ready?" under the buy button: opened only by a click */
.nqr { margin-top: 10px; text-align: center; }
.nqr-toggle { font-size: .92rem; color: var(--ink-3); }
.nqr-panel { display: grid; gap: 8px; margin-top: 10px; text-align: left; }
.nqr-panel[hidden] { display: none; }
.nqr-option { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 14px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color .15s; }
.nqr-option:hover { border-color: var(--ink-3); }
.nqr-name { font-weight: 500; color: var(--ink); }
.nqr-desc { font-size: .88rem; color: var(--ink-3); }
.nqr-save { padding: 4px 2px 2px; }

/* ── Studio step 1 and progress (create.html) ────────────────────────── */
/* A slim bar in place of "Step 1 of 7"; "About 5 minutes" on step 1 only. */
.step-progress { display: flex; align-items: center; gap: 12px; }
.sp-note { font-size: .86rem; color: var(--ink-3); white-space: nowrap; }
.sp-track { display: block; width: 120px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sp-fill { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--berry); transition: width .45s var(--ease); }
@media (max-width: 480px) { .sp-track { width: 88px; } .sp-note { font-size: .82rem; } }

/* A tapped option confirms itself before the step moves on. */
.opt.is-picked, .tone.is-picked, .form-card.is-picked { animation: picked .25s var(--ease); }
@keyframes picked { 45% { transform: scale(1.04); } }

/* Step 1 reassurance: a framed sample and three ticks beside the choices on
   desktop; just the ticks, compact, under the heading on phones. */
.q--intro .intro-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; margin: -18px 0 22px; font-size: .84rem; }
.intro-sample { display: none; }
.intro-ticks { display: contents; list-style: none; color: var(--ink-2); }
.intro-ticks li { display: inline-flex; align-items: center; gap: 5px; }
.intro-ticks .tick { width: 14px; height: 14px; flex: none; color: var(--ok); }
.intro-example { font-size: inherit; padding: 0; color: var(--ink-3); }
@media (min-width: 1024px) {
  .stage.is-intro { max-width: 1000px; }
  .q--intro { display: grid; grid-template-columns: minmax(0, 1fr) 248px; column-gap: 64px; grid-template-rows: auto auto 1fr; }
  .q--intro > .q-title, .q--intro > .q-hint, .q--intro > #relOptions { grid-column: 1; }
  .q--intro .intro-aside { display: block; grid-column: 2; grid-row: 1 / span 3; margin: 6px 0 0; font-size: 1rem; }
  .intro-sample { display: block; margin-bottom: 20px; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 4 / 5; background: var(--paper-3); }
  .intro-sample img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .intro-ticks { display: flex; flex-direction: column; gap: 9px; font-size: .93rem; }
  .intro-ticks li { align-items: flex-start; gap: 10px; }
  .intro-ticks .tick { width: 16px; height: 16px; margin-top: 3px; }
  .intro-example { margin-top: 12px; font-size: .93rem; }
}

/* "See an example poem" */
.example-dialog { max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px 22px 22px; position: relative; }
.example-dialog .eyebrow { margin-bottom: 14px; }
.example-dialog .poem-card { text-align: center; }
.example-note { margin: 16px 0 18px; font-size: .9rem; color: var(--ink-3); }
.example-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; color: var(--ink-3); border-radius: 50%; }
.example-close:hover { color: var(--ink); background: var(--paper-2); }

/* ── Send it as a gift (create.html, assets/gift-form.js) ────────────── */
.seg--two { grid-template-columns: 1fr 1fr; }
.buy-for { margin: 4px 0 16px; }
.buy-for button { padding: 11px 6px; }
.gift-box { margin: 0 0 18px; padding: 18px 16px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.gift-intro { font-size: .9rem; color: var(--ink-3); margin-bottom: 16px; }
.gift-box .field-row { grid-template-columns: 1fr; gap: 0; }
.gift-box .field { margin-bottom: 16px; }
.gift-box .input, .gift-box .textarea { font-size: 1rem; padding: 12px 14px; }
.gift-box .textarea { min-height: 84px; }
.gift-when { margin-top: 10px; }
.gift-when-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-bottom: 8px; }
.gift-when-text { margin: 8px 0 0; color: var(--ink-2); }
.gift-count { margin: 4px 0 0; text-align: right; }
.gift-check { margin-bottom: 8px; }
.gift-privacy { font-size: .82rem; color: var(--ink-3); }
.gift-error { margin-top: 6px; font-size: .88rem; color: var(--error); }
.gift-preview { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.gp-tabs { display: flex; gap: 4px; margin: 6px 0 10px; border-bottom: 1px solid var(--line); }
.gp-tabs [role=tab] { padding: 8px 10px; font-size: .9rem; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gp-tabs [role=tab][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--berry); }
.gp-inbox { font-size: .84rem; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 8px 12px; }
.gp-inbox p { display: flex; gap: 8px; margin: 2px 0; min-width: 0; }
.gp-inbox span { flex: none; width: 56px; color: var(--ink-3); }
.gp-inbox b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-frame { display: block; width: 100%; height: 540px; border: 1px solid var(--line); border-radius: 0 0 6px 6px; background: var(--white); }
#gpPage .gp-frame { border-radius: 6px; }
.gp-note { margin-top: 8px; font-size: .84rem; color: var(--ink-3); }

/* ── The recipient's page (gift.html) ────────────────────────────────── */
.gift-body { display: flex; flex-direction: column; min-height: 100vh; background: var(--paper); }
.gift-page { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 48px 20px 40px; }
.gift-loading { text-align: center; color: var(--ink-3); padding: 80px 0; }
.gift-missing { text-align: center; padding: 40px 0; }
.gift-missing h1 { font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 12px; }
.gift-missing p { color: var(--ink-3); margin-bottom: 22px; }
.envelope-card {
  position: relative; max-width: 460px; margin: 4vh auto 0; padding: 48px 32px 40px; text-align: center;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--shadow-paper);
  transition: transform .65s var(--ease), opacity .65s var(--ease);
}
.envelope-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--gold); opacity: .55; border-radius: 2px; pointer-events: none; }
.envelope-card h1 { font-size: clamp(2.3rem, 7vw, 3.1rem); line-height: 1.05; margin: 6px 0 10px; }
.envelope-from { font-family: var(--font-poem); font-style: italic; font-size: 1.15rem; color: var(--ink-2); margin-bottom: 30px; }
.envelope-seal { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 500; color: var(--berry); font-size: 1rem; }
.envelope-seal .seal {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #8a3349, var(--berry) 60%, #4d1626); color: var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 2rem; box-shadow: 0 6px 16px -6px rgba(111,36,56,.6);
  transition: transform .2s var(--ease);
}
.envelope-seal:hover .seal { transform: scale(1.05) rotate(-4deg); }
.envelope-seal:focus-visible { outline: 2px solid var(--berry); outline-offset: 6px; border-radius: 8px; }
.gift-envelope.is-opening .envelope-card { transform: translateY(-14px) scale(.97); opacity: 0; }
.gift-note { max-width: 520px; margin: 0 auto 30px; text-align: center; }
.gift-note blockquote { font-family: var(--font-poem); font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--ink); white-space: pre-line; }
.gift-note figcaption { margin-top: 8px; color: var(--ink-3); }
.gift-reveal .poem-card { max-width: 600px; margin: 0 auto; }
.gift-reveal.is-revealing .poem-card { animation: unfold .9s var(--ease) both; }
.gift-reveal.is-revealing .gift-note { animation: fadeUp .7s var(--ease) both; }
@keyframes unfold { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.gift-actions { text-align: center; margin-top: 30px; }
.gift-actions .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.gift-tip { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }
.gift-footer { text-align: center; padding: 26px 20px 34px; font-size: .86rem; }
.gift-footer a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.gift-footer a:hover { color: var(--berry); border-color: currentColor; }
.is-preview .site-header .brand { pointer-events: none; }
@media (max-width: 520px) {
  .gift-page { padding: 28px 14px 28px; }
  .envelope-card { padding: 40px 22px 34px; }
}

/* ── The buyer's manage page (manage-gift.html) ──────────────────────── */
.manage-page { max-width: 620px; margin: 0 auto; padding: 44px 20px 80px; }
.manage-head { text-align: center; margin-bottom: 22px; }
.manage-head h1 { font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 6px; }
.manage-poem { font-family: var(--font-poem); font-style: italic; color: var(--ink-3); }
.manage-status { margin-bottom: 18px; padding: 14px 18px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.manage-status p + p { margin-top: 6px; }
.manage-status strong { color: var(--ink); font-weight: 500; }
.manage-status.is-failed { background: #fbeceb; border-color: #efc9c6; }
.manage-status.is-sent { border-color: var(--ok); }
.manage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.manage-confirm { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); }
.manage-page .alert { margin-top: 14px; }
.gift-confirm { padding: 12px 16px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
