/* Custom Book Studios — shared site styles. Tokens first; see /brand/BRAND.md. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --paper: #fbf6ec;
  --paper-2: #f4ebda;
  --card: #fffdf8;
  --line: #e4d7bf;
  --ink: #2b2420;
  --ink-2: #5a4e45;
  --navy: #1f3a5a;
  --navy-2: #2c4e75;
  --berry: #a63a2b;
  --berry-dark: #87291d;
  --gold: #c0902f;
  --gold-text: #82600f;
  --sage: #6f8f7a;
  --sage-soft: #e3ece4;
  --ok: #2f6b45;
  --err: #a12a1f;
  --err-soft: #fbeae6;
  --focus: #1f3a5a;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: 1.125rem;  /* 18px */
  --fs-small: 1rem;
  --fs-h1: clamp(2.35rem, 7.5vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 5vw, 2.85rem);
  --fs-h3: clamp(1.3rem, 3.2vw, 1.6rem);

  /* space + shape */
  --gutter: 16px;
  --max: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(43, 36, 32, .06), 0 4px 14px rgba(43, 36, 32, .06);
  --shadow-2: 0 2px 4px rgba(43, 36, 32, .06), 0 18px 40px rgba(43, 36, 32, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--navy); font-weight: 500; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 2.6vw, 1.35rem); color: var(--ink-2); max-width: 36em; }
.eyebrow {
  display: inline-block;
  font: 600 .8125rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy); color: #f6efe2; }
.section--navy h2, .section--navy h3 { color: #fbf6ec; }
.section--navy .eyebrow { color: #e9c27a; }
.section--navy a { color: #f6d58e; }

/* ---------- buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--berry); color: #fff; box-shadow: 0 6px 18px rgba(166, 58, 43, .25); }
.btn--primary:hover { background: var(--berry-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fbf6ec; color: var(--navy); }
.btn--light:hover { background: #fff; color: var(--berry); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 236, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
@supports (backdrop-filter: blur(4px)) { .site-header { background: rgba(251, 246, 236, .86); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; }
@media (min-width: 720px) { .brand img { height: 46px; } }
.site-header .btn { min-height: 44px; padding: 10px 18px; font-size: 1rem; }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; }
.nav-links a:hover { color: var(--berry); }
@media (min-width: 900px) { .nav-links { display: flex; } }

.site-footer { background: #241f1b; color: #d9cfbf; padding: 56px 0 40px; font-size: 1rem; }
.site-footer a { color: #f1e6d3; }
.site-footer .wrap { display: grid; gap: 28px; }
.site-footer .foot-brand img { height: 42px; width: auto; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { display: inline-block; padding: 6px 0; }
.site-footer .fine { color: #b5a993; font-size: .9375rem; margin: 0; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr; align-items: start; } .site-footer .fine { grid-column: 1 / -1; } }

/* ---------- hero ---------- */
.hero { padding: 28px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 56px 0 96px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 28px; }
.hero .assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; padding: 0; list-style: none; font-size: 1rem; color: var(--ink-2); }
.hero .assure li { display: inline-flex; align-items: center; gap: 8px; }
.hero .assure svg { width: 20px; height: 20px; color: var(--sage); flex: none; }

/* Hero visual: photo card → arrow → book */
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
@media (min-width: 960px) { .hero-visual { min-height: 520px; } }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% 2% 4% 8%;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 30% 30%, #f6e2bd, #f1d7ab 40%, #ead0a3 70%);
  opacity: .55;
}
.book3d {
  position: relative; width: min(66vw, 340px); aspect-ratio: 1 / 1; justify-self: end; margin-right: 4%;
  transform: perspective(1400px) rotateY(-16deg) rotateX(4deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 34px rgba(43, 36, 32, .28));
  animation: bookIn .9s var(--ease) both .1s;
}
.book3d .cover {
  position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; overflow: hidden;
  background: var(--card);
  box-shadow: inset 10px 0 0 rgba(0, 0, 0, .10), inset 12px 0 0 rgba(255, 255, 255, .25);
}
.book3d .cover img { width: 100%; height: 100%; object-fit: cover; }
.book3d .cover .title-plate {
  position: absolute; left: 8%; right: 8%; bottom: 7%;
  background: rgba(251, 246, 236, .94); border-radius: 10px; padding: 12px 14px;
  text-align: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.title-plate small { display: block; font: 600 .6875rem/1 var(--sans); letter-spacing: .2em; color: var(--gold-text); text-transform: uppercase; margin-bottom: 6px; }
.title-plate strong { display: block; font: 600 clamp(1.1rem, 4.2vw, 1.45rem)/1.1 var(--serif); color: var(--navy); }
.book3d .pages {
  position: absolute; top: 2%; bottom: 2%; right: -14px; width: 16px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, #e9e0cf 2px 3px);
  border-radius: 0 4px 4px 0; transform: rotateY(60deg); transform-origin: left;
}
.photo-card {
  position: absolute; left: 0; top: 2%; width: 32%; max-width: 150px; z-index: 3;
  background: #fff; padding: 8px 8px 26px; border-radius: 4px;
  box-shadow: var(--shadow-2); transform: rotate(-8deg);
  animation: cardIn .8s var(--ease) both .45s;
}
.photo-card .ph {
  aspect-ratio: 1; border-radius: 2px;
  background: linear-gradient(160deg, #dfe7ec, #c9d6de);
  display: grid; place-items: center; color: #6a7f8d;
}
.photo-card .ph svg { width: 44%; height: auto; }
.photo-card span { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: italic 500 .875rem var(--serif); color: var(--ink-2); }
.hero-arrow { position: absolute; z-index: 3; left: 20%; top: 31%; width: 22%; filter: drop-shadow(0 1px 1px rgba(255,255,255,.8)); color: var(--gold); animation: cardIn .8s var(--ease) both .7s; }
@media (max-width: 420px) { .photo-card { width: 30%; } .hero-arrow { left: 18%; top: 31%; } }
@keyframes bookIn { from { opacity: 0; transform: perspective(1400px) rotateY(-30deg) rotateX(4deg) translateY(20px); } }
@keyframes cardIn { from { opacity: 0; transform: rotate(-14deg) translateY(16px); } }

/* ---------- how it works: story path ---------- */
.path { position: relative; margin-top: 40px; display: grid; gap: 0; counter-reset: step; }
.path::before {
  content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 0;
  border-left: 2px dashed #cdb894;
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 0 0 38px; }
.step:last-child { padding-bottom: 0; }
.step .dot {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--navy); color: var(--navy);
  display: grid; place-items: center; font: 600 1.35rem var(--serif);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.step.is-in .dot { background: var(--navy); color: #fff; transform: scale(1.04); }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--ink-2); margin: 0; }
.step .art { margin-top: 18px; max-width: 460px; }
.step .art.mini-book { display: flex; gap: 12px; align-items: flex-end; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9375rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .book3d, .photo-card, .hero-arrow { animation: none; } }
@media (min-width: 960px) {
  .how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .how .sticky { position: sticky; top: 110px; }
}
.mock-field { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--shadow-1); }
.mock-field + .mock-field { margin-top: 10px; }
.mock-field b { font-family: var(--serif); font-size: 1.125rem; color: var(--navy); }
.mock-thumb { width: 74px; height: 74px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-1); flex: none; }
.mock-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- story gallery ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; margin: 8px 0 28px; }
.tabs button {
  border: 0; background: transparent; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  font: 600 1rem var(--sans); color: var(--ink-2); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--navy); box-shadow: var(--shadow-1); }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 720px) { .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1080px) { .stories { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.story-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); }
.story-card .cover {
  position: relative; aspect-ratio: 1; border-radius: 4px 12px 12px 4px; overflow: hidden;
  box-shadow: inset 8px 0 0 rgba(0, 0, 0, .08), var(--shadow-1); background: var(--paper-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.story-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.story-card:hover .cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: inset 8px 0 0 rgba(0, 0, 0, .08), var(--shadow-2); }
.story-card .tag {
  position: absolute; top: 10px; left: 14px; background: rgba(251, 246, 236, .95); color: var(--navy);
  font: 600 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px;
}
.story-card h3 { font-size: clamp(1.05rem, 2.6vw, 1.25rem); margin: 12px 0 4px; line-height: 1.22; }
.story-card .meta { font-size: .9375rem; color: var(--ink-2); }
.name-pill { display: inline-block; background: #f6e2bd; color: var(--navy); border-radius: 6px; padding: 0 .3em; font-style: italic; }
.story-card .go { margin-top: 6px; font-weight: 600; font-size: .9375rem; color: var(--berry); }
.story-card.is-soon { pointer-events: none; }
.story-card.is-soon .cover { filter: saturate(.6); opacity: .8; }

/* ---------- spread / dedication ---------- */
.spread-wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .spread-wrap { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.spread {
  display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1;
  border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--card);
  position: relative;
}
.spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .09) 48%, rgba(0, 0, 0, .14) 50%, rgba(0, 0, 0, .05) 52%, transparent); pointer-events: none; }
.spread .text-page { padding: 7% 9%; display: flex; flex-direction: column; justify-content: center; background: #fffaf0; }
.spread .text-page p { font: 400 clamp(.78rem, 2.3vw, 1.2rem)/1.45 var(--serif); color: var(--ink); margin: 0; }
.spread .text-page .orn { width: 40px; color: var(--gold); margin: 0 auto 10px; }
.spread .art-page img { width: 100%; height: 100%; object-fit: cover; }
.dedication {
  background: #fffaf0; border: 1px solid var(--line); border-radius: 6px; padding: 32px 26px;
  text-align: center; box-shadow: var(--shadow-1); max-width: 420px; margin: 0 auto;
  font-family: var(--serif);
}
.dedication .for { font-size: 1.6rem; color: var(--navy); margin: 8px 0 12px; }
.dedication .msg { font-style: italic; color: var(--ink-2); font-size: 1.125rem; line-height: 1.55; }
.dedication .from { margin-top: 14px; font-size: 1.05rem; }
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.feature-list svg { width: 24px; height: 24px; color: var(--sage); margin-top: 3px; }

/* ---------- formats ---------- */
.formats { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .formats { grid-template-columns: 1fr 1fr 1.25fr; align-items: stretch; } }
.format {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
}
.format.is-featured { background: var(--navy); color: #f6efe2; border-color: var(--navy); }
.format.is-featured h3 { color: #fff; }
.format.is-featured .price { color: #fff; }
.format.is-featured .muted { color: #d6dbe6; }
.format .badge { position: absolute; top: -12px; left: 24px; background: var(--gold); color: #2b2420; font: 700 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.format h3 { margin: 4px 0 2px; }
.format .price { font: 600 2.1rem/1.1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.format .price small { font: 500 1rem var(--sans); color: inherit; opacity: .8; }
.format ul { margin: 10px 0 0; padding-left: 1.1em; }
.format li { margin: 4px 0; }
.note-strip { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-2); font-size: 1rem; }
.note-strip span { display: inline-flex; gap: 8px; align-items: center; }
.note-strip svg { width: 20px; height: 20px; color: var(--sage); }

/* ---------- privacy band ---------- */
.promise { display: grid; gap: 28px; }
@media (min-width: 900px) { .promise { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.promise ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: p; }
.promise li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.promise li::before { counter-increment: p; content: counter(p); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #e9c27a; color: #e9c27a; display: grid; place-items: center; font: 600 1.15rem var(--serif); }
.promise li p { margin: 0; color: #e8dfcf; }
.promise li strong { color: #fff; display: block; }
.shield { width: 64px; height: 64px; color: #e9c27a; margin-bottom: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 28px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 560 1.2rem/1.3 var(--serif); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .legend { font-weight: 600; font-size: 1.0625rem; }
.field .hint { font-size: .9375rem; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid #cbbda3; border-radius: 12px; background: #fff;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 90, .18); }
.input[aria-invalid="true"] { border-color: var(--err); }
.error-msg { color: var(--err); font-size: .9375rem; font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.error-msg:empty { display: none; }
.error-msg::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--err); color: #fff; font: 700 .75rem/18px var(--sans); text-align: center; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 1rem; }
.alert--error { background: var(--err-soft); color: #6f1d14; border: 1px solid #efc3ba; }
.alert--ok { background: var(--sage-soft); color: #1f4a30; border: 1px solid #c5d8c8; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 1.0625rem; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--navy); }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
#mode-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#mode-row .choice span { white-space: normal; text-align: center; line-height: 1.2; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 6px; white-space: nowrap; font-size: 1rem;
  border: 1.5px solid #cbbda3; border-radius: 999px; background: #fff; font-weight: 500;
}
.choice input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.signup { display: grid; gap: 12px; max-width: 520px; }
@media (min-width: 560px) { .signup { grid-template-columns: 1fr auto; } .signup .full { grid-column: 1 / -1; } }

/* ---------- create flow ---------- */
.create-head { padding: 28px 0 8px; }
.progress-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress-steps li { font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.progress-steps li::before { content: ""; display: block; height: 5px; border-radius: 4px; background: var(--line); margin-bottom: 8px; transition: background-color .3s var(--ease); }
.progress-steps li.is-done::before, .progress-steps li.is-current::before { background: var(--navy); }
.progress-steps li.is-current { color: var(--navy); }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 18px; margin: 18px 0; box-shadow: var(--shadow-1);
}
@media (min-width: 720px) { .panel { padding: 34px 36px; } }
.panel h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); display: flex; align-items: baseline; gap: 12px; }
.panel h2 .num { font: 600 1rem var(--sans); color: #fff; background: var(--navy); border-radius: 50%; width: 32px; height: 32px; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.panel.is-locked { opacity: .55; }
.panel.is-locked > *:not(h2) { display: none; }
.create-layout { max-width: 820px; margin: 0 auto; }
.story-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .story-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story-opt { position: relative; }
.story-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.story-opt .box { border: 2px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; height: 100%; }
.story-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.story-opt .t { font: 560 1rem/1.25 var(--serif); margin: 8px 4px 4px; }
.story-opt input:checked + .box { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 90, .18); }
.story-opt input:checked + .box::after { content: ""; position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/16px no-repeat; }
.story-opt input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.selected-story { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.selected-story img { width: 96px; height: 96px; border-radius: 4px 10px 10px 4px; object-fit: cover; box-shadow: var(--shadow-1); }
.selected-story h3 { margin: 0 0 4px; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 600 1rem var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.two-col { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1.4fr 1fr; } }

.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: 10px;
  min-height: 210px; padding: 24px; border: 2px dashed #c3ae86; border-radius: 18px; background: #fffaf0;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.dropzone:hover, .dropzone.is-drag { background: #fbf0dc; border-color: var(--navy); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 44px; height: 44px; color: var(--navy); }
.dropzone strong { font-size: 1.125rem; }
.photo-preview { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.photo-preview img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-1); }
.tips { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tips { grid-template-columns: 1fr 1fr; } }
.tips li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 1rem; }
.tips svg { width: 22px; height: 22px; margin-top: 2px; }
.tips .yes svg { color: var(--ok); }
.tips .no svg { color: var(--err); }
.privacy-note { display: grid; grid-template-columns: 28px 1fr; gap: 10px; background: var(--sage-soft); border-radius: 12px; padding: 14px; font-size: 1rem; color: #1f4a30; margin: 16px 0; }
.privacy-note svg { width: 24px; height: 24px; }
.ts-box { margin: 10px 0 16px; min-height: 0; }

.making { text-align: center; padding: 18px 0 8px; }
.flipbook { width: 180px; height: 120px; margin: 10px auto 22px; position: relative; perspective: 800px; }
.flipbook .base { position: absolute; inset: 10px 0 0; background: var(--navy); border-radius: 6px; }
.flipbook .leaf { position: absolute; top: 0; bottom: 6px; left: 50%; width: 46%; background: #fffaf0; border-radius: 0 4px 4px 0; transform-origin: left center; box-shadow: 0 1px 0 #e4d7bf; }
.flipbook .leaf.l { left: 4%; border-radius: 4px 0 0 4px; }
.flipbook .leaf.flip { animation: flip 2.4s var(--ease) infinite; }
.flipbook .leaf.flip.d2 { animation-delay: .8s; }
.flipbook .leaf.flip.d3 { animation-delay: 1.6s; }
@keyframes flip { 0% { transform: rotateY(0); } 45%, 100% { transform: rotateY(-180deg); } }
@media (prefers-reduced-motion: reduce) { .flipbook .leaf.flip { animation: none; } }
.making .msg { font: italic 500 1.3rem var(--serif); color: var(--navy); min-height: 2em; transition: opacity .3s; }
.bar { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; max-width: 420px; margin: 16px auto 8px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-radius: inherit; transition: width .8s var(--ease); }

.preview-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 720px) { .preview-grid { grid-template-columns: 1.3fr .7fr; } }
.preview-cover { position: relative; border-radius: 4px 12px 12px 4px; overflow: hidden; box-shadow: inset 10px 0 0 rgba(0, 0, 0, .1), var(--shadow-2); aspect-ratio: 1; background: var(--paper-2); }
.preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.preview-char { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 10px; text-align: center; }
.preview-char img { width: 100%; border-radius: 10px; aspect-ratio: 1; object-fit: contain; background: #fbf8f2; }
.preview-char p { margin: 8px 0 2px; font-size: .9375rem; color: var(--ink-2); }

.format-opts { display: grid; gap: 12px; }
.format-opt { position: relative; }
.format-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.format-opt .box {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center;
  border: 2px solid var(--line); border-radius: 16px; padding: 16px; background: #fff;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.format-opt .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b9a888; position: relative; }
.format-opt input:checked + .box { border-color: var(--navy); background: #f7f9fc; box-shadow: 0 0 0 3px rgba(31, 58, 90, .14); }
.format-opt input:checked + .box .radio { border-color: var(--navy); }
.format-opt input:checked + .box .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--navy); }
.format-opt input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.format-opt .name { font-weight: 600; font-size: 1.0625rem; }
.format-opt .desc { font-size: .9375rem; color: var(--ink-2); }
.format-opt .p { font: 600 1.35rem var(--serif); color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.format-opt .p small { display: block; font: 500 .8125rem var(--sans); color: var(--ink-2); }
.counter { font-size: .875rem; color: var(--ink-2); text-align: right; }

/* Design their look (photo-free hero) */
.look-q { border: 0; padding: 0; margin: 0 0 20px; }
.look-q legend { font-weight: 600; margin-bottom: 8px; }
.look-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.look-opt { position: relative; }
.look-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.look-opt > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fffdf8; cursor: pointer; font-size: .9375rem; }
.look-opt .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.look-opt input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); font-weight: 600; }
.look-opt input:focus-visible + span { outline: 3px solid var(--gold, #c0902f); outline-offset: 2px; }
.look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.look-grid .look-opt > span { flex-direction: column; border-radius: 14px; padding: 8px; text-align: center; line-height: 1.25; width: 100%; }
.look-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* Signature pad (dedication page) */
.sig-wrap { position: relative; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; }
.sig-pad { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; border-radius: 14px; }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 38px; border-bottom: 1px dashed var(--line); pointer-events: none; }
.sig-clear { position: absolute; top: 4px; right: 12px; }
.secure { text-align: center; font-size: .9375rem; color: var(--ink-2); margin-top: 12px; }
.secure svg { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; margin-right: 4px; }

/* ---------- order page ---------- */
.order-card { max-width: 720px; margin: 32px auto; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .9375rem; background: var(--paper-2); color: var(--navy); }
.status-badge.ok { background: var(--sage-soft); color: #1f4a30; }
.status-badge.err { background: var(--err-soft); color: #6f1d14; }
.timeline { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.timeline li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9b996; margin-top: 3px; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--ok); }
.timeline li.now { color: var(--navy); font-weight: 600; }
.timeline li.now::before { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31, 58, 90, .15); }
.timeline li.problem { color: #6f1d14; font-weight: 600; }
.timeline li.problem::before { border-color: #a63a2b; background: var(--err-soft); }
.timeline .t-sub { display: block; font-weight: 400; font-size: .9375rem; color: var(--ink-2); margin-top: 2px; }
.eta { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); }
.eta strong { color: var(--navy); }
.sibling-card { border: 1px dashed var(--gold, #c0902f); background: #fffaf0; }

/* ---------- legal prose ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose .updated { color: var(--ink-2); font-size: 1rem; }
.callout { background: var(--sage-soft); border-left: 4px solid var(--sage); border-radius: 8px; padding: 16px 18px; margin: 1.2em 0; }

/* coming soon */
.cs-hero { padding: 36px 0 72px; }
.cs-hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cs-hero { padding: 64px 0 104px; } .cs-hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.soon-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 999px; font: 600 .875rem var(--sans); letter-spacing: .04em; margin-bottom: 18px; }
.soon-badge i { width: 8px; height: 8px; border-radius: 50%; background: #e9c27a; }
.stack { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.stack figure { position: absolute; margin: 0; width: 64%; aspect-ratio: 1; border-radius: 4px 12px 12px 4px; overflow: hidden; box-shadow: inset 8px 0 0 rgba(0, 0, 0, .1), var(--shadow-2); background: var(--paper-2); }
.stack figure img { width: 100%; height: 100%; object-fit: cover; }
.stack figure:nth-child(1) { left: 0; top: 4%; transform: rotate(-7deg); }
.stack figure:nth-child(2) { right: 0; top: 0; transform: rotate(6deg); }
.stack figure:nth-child(3) { left: 18%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
.stack figcaption { position: absolute; left: 8%; right: 8%; bottom: 7%; background: rgba(251, 246, 236, .95); border-radius: 8px; padding: 8px 10px; text-align: center; font: 600 1rem/1.15 var(--serif); color: var(--navy); }
.story-lines { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0 32px; max-width: 900px; }
@media (min-width: 760px) { .story-lines { grid-template-columns: 1fr 1fr; } }
.story-lines li { padding: 12px 0; border-bottom: 1px solid var(--line); font: 500 1.125rem/1.35 var(--serif); }
.story-lines .kind { display: block; font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 2px; }
.site-header .btn { white-space: nowrap; }
