@font-face {
  font-family: "MVB Sans";
  src: url("/mvb-sans.ttf?v=ae7b7855e115a596") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MVB Sans";
  src: url("/mvb-sans-bold.ttf?v=5c1247acef7f2b85") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fffdf8;
  --cream: #fff8ec;
  --cream-strong: #f7eddc;
  --ink: #22222c;
  --muted: #66616b;
  --coral: #ed5b62;
  --coral-dark: #cf3f4a;
  --yellow: #ffd466;
  --sky: #bde5ee;
  --mint: #cce5c7;
  --lavender: #ddc9e9;
  --line: #292932;
  --border: #ded8cc;
  --white: #fff;
  --danger: #b4232d;
  --shadow: 0 0 0 1px rgba(34, 34, 44, .03), 0 4px 12px rgba(55, 44, 31, .08), 0 16px 38px rgba(55, 44, 31, .08);
  --font-body: "MVB Sans", "Avenir Next", sans-serif;
  --font-display: "MVB Sans", "Arial Rounded MT Bold", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid rgba(41, 41, 50, .12);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.brand strong { color: var(--coral-dark); }
.brand-mark { width: 42px; height: 42px; overflow: visible; }
.brand-bubble { fill: var(--coral); stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; }
.brand-panels { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.main-nav { display: flex; justify-content: center; gap: 8px; }
.main-nav a,
.text-button {
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}
.main-nav a:hover, .text-button:hover { background: var(--cream-strong); }
.header-actions, .guest-actions, .account-actions { display: flex; align-items: center; gap: 8px; }
.header-cta,
.primary-button {
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--line);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.header-cta { min-height: 44px; padding: 8px 16px; }
.primary-button { padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.header-cta:hover, .primary-button:hover:not(:disabled) { background: var(--coral-dark); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.header-cta:active, .primary-button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.primary-button:disabled, button:disabled { cursor: not-allowed; opacity: .56; box-shadow: none; }
.points-pill {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e3bf49;
  border-radius: 22px;
  background: #fff3c5;
  text-decoration: none;
  color: var(--ink);
}
.points-pill strong { font-size: 18px; }
.points-pill span { font-size: 12px; font-weight: 700; }
.account-button {
  min-height: 44px;
  max-width: 230px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
}
.account-button > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  border: 1.5px solid var(--line);
  font-weight: 900;
}
#account-email { overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; }
.text-button.compact { font-size: 13px; }

main { overflow: clip; }
.hero {
  width: min(1240px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 80px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
}
.eyebrow, .section-kicker, .auth-kicker {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--ink); }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 em { color: var(--coral-dark); font-style: normal; position: relative; }
.hero h1 em::after {
  content: "";
  position: absolute;
  height: 8px;
  left: 2%;
  right: 0;
  bottom: -4px;
  background: var(--yellow);
  border: 1.5px solid var(--line);
  transform: rotate(-1.5deg);
  z-index: -1;
}
.hero-copy { max-width: 650px; margin: 30px 0 0; color: #4e4a52; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; text-wrap: pretty; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-button { min-height: 56px; padding-inline: 25px; }
.hero-actions > span { color: var(--muted); font-size: 14px; }
.hero-actions > span strong { color: var(--ink); display: block; }
.hero-reassurance { margin: 28px 0 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; list-style: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-reassurance li::before { content: "✓"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; background: var(--mint); color: var(--ink); border: 1px solid var(--line); }

.hero-comic {
  position: relative;
  min-height: 500px;
  padding: 62px 25px 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 178px 205px;
  gap: 13px;
  background: var(--cream-strong);
  border: 3px solid var(--line);
  box-shadow: 9px 10px 0 var(--line);
  transform: rotate(1.3deg);
}
.hero-comic-label { position: absolute; top: 17px; left: 24px; font-family: var(--font-display); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.hero-panel { position: relative; overflow: hidden; padding: 12px; border: 3px solid var(--line); background: #fff; }
.hero-panel strong { position: absolute; left: 10px; bottom: 9px; padding: 4px 8px; background: #fff; border: 1.5px solid var(--line); font-size: 12px; text-transform: uppercase; }
.hero-panel-photo { background: var(--sky); }
.photo-sun { position: absolute; width: 70px; height: 70px; border: 3px solid var(--line); border-radius: 50%; background: var(--yellow); top: 16px; right: 20px; }
.photo-people { position: absolute; display: flex; gap: 12px; left: 30px; bottom: 30px; }
.photo-people i { width: 44px; height: 70px; border: 3px solid var(--line); border-radius: 24px 24px 8px 8px; background: var(--coral); }
.photo-people i:nth-child(2) { height: 88px; background: var(--yellow); }
.photo-people i:nth-child(3) { background: var(--mint); }
.hero-panel-story { background: var(--yellow); }
.story-lines { position: absolute; inset: 24px 22px 48px; background: repeating-linear-gradient(to bottom, transparent 0 16px, var(--line) 17px 19px); transform: rotate(-2deg); }
.hero-panel-result { grid-column: 1 / -1; background: var(--lavender); }
.mini-comic { height: 100%; display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.mini-comic span { border: 2px solid var(--line); background: var(--sky); }
.mini-comic span:nth-child(2) { grid-row: span 2; background: var(--mint); }
.mini-comic span:nth-child(3) { background: var(--yellow); }
.mini-comic span:nth-child(4) { display: none; }
.mini-bubble { position: absolute; top: 24px; right: 42px; padding: 10px 13px; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-weight: 900; transform: rotate(-4deg); }
.hero-arrow { position: absolute; left: 50%; top: 215px; z-index: 3; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--line); background: #fff; font-size: 31px; font-weight: 900; transform: translate(-50%, -50%) rotate(-2deg); }
.hero-spark { position: absolute; color: var(--coral); font-size: 40px; text-shadow: 2px 2px 0 var(--line); }
.spark-one { top: -24px; right: 10px; transform: rotate(12deg); }
.spark-two { bottom: -25px; left: -28px; font-size: 30px; }

.promise-strip {
  border-block: 2px solid var(--line);
  background: var(--yellow);
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 74px);
  padding: 16px 28px;
  transform: rotate(-.35deg);
}
.promise-strip p { margin: 0; font-weight: 800; }
.promise-strip strong { margin-right: 7px; font-family: var(--font-display); }
.promise-strip > span { font-size: 25px; font-weight: 900; }

.create-section, .how-it-works, .library, .pricing { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.create-section { padding: 104px 0 90px; }
.section-heading { max-width: 720px; }
.section-heading h2, .library-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.create-heading { margin-bottom: 38px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); gap: 28px; align-items: start; }
.creator-card, .result-card {
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.creator-card { padding: clamp(22px, 4vw, 42px); }
.result-card { position: sticky; top: 102px; min-height: 590px; padding: 30px; background: var(--cream); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.card-heading h3 { margin: 5px 0 0; font-family: var(--font-display); font-size: 29px; line-height: 1.15; }
.step-count, .cost-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 15px; font-size: 12px; font-weight: 900; }
.step-count { background: var(--sky); }
.cost-chip { background: #fff0b8; border: 1px solid #d8b23f; white-space: nowrap; }
.form-step { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); font-family: var(--font-display); font-weight: 900; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.label-row label { font-size: 17px; font-weight: 850; }
.label-row span { color: var(--muted); font-size: 12px; font-weight: 700; }
.dropzone { min-height: 180px; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #aaa2a1; border-radius: 14px; background: #fffcf6; text-align: center; cursor: pointer; transition: border .15s, background .15s; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--coral); background: #fff2ed; }
.upload-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: var(--sky); border: 1.5px solid var(--line); }
.upload-icon svg { width: 28px; fill: none; stroke: var(--line); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-title { font-weight: 850; }
.dropzone-copy, .file-rules { color: var(--muted); font-size: 13px; }
.file-rules { margin-top: 7px; font-size: 11px; }
.field-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
textarea, .auth-form input {
  width: 100%;
  border: 1.5px solid #aca6a0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 160px; padding: 15px; resize: vertical; line-height: 1.55; }
textarea:focus, .auth-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(237, 91, 98, .15); }
.photo-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.photo-card { position: relative; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--line); background: var(--cream-strong); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-order { position: absolute; top: 5px; left: 5px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--yellow); font-size: 12px; font-weight: 900; }
.photo-controls { position: absolute; inset-inline: 5px; bottom: 5px; display: flex; justify-content: center; gap: 4px; }
.photo-control { min-width: 31px; min-height: 31px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.94); font-weight: 900; cursor: pointer; }
.photo-control.remove { color: var(--danger); }
.terms-row { margin: 24px 0 18px; display: grid; grid-template-columns: 23px 1fr; align-items: start; gap: 10px; color: #4e4a52; font-size: 13px; cursor: pointer; }
.terms-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--coral); }
.terms-row a { color: var(--coral-dark); font-weight: 800; }
.message-box { margin: 16px 0; padding: 12px 14px; border-radius: 8px; }
.error-box, .editor-error { border: 1px solid #e5a3a8; background: #fff0f0; color: #8b1e28; }
.error-box ul { margin: 0; padding-left: 18px; }
.submit-button { width: 100%; min-height: 58px; }
.submit-button small, .auth-form .primary-button small { margin-left: auto; padding: 3px 7px; border-radius: 11px; background: rgba(255,255,255,.2); }
.submit-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.empty-result, .processing-result, .finished-result { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-result h3, .processing-result h3, .finished-result h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 29px; line-height: 1.12; }
.empty-result > p:not(.section-kicker), .processing-result > p:not(.section-kicker) { margin: 0; color: var(--muted); }
.comic-placeholder { position: relative; width: min(100%, 360px); aspect-ratio: .82; margin-bottom: 24px; padding: 10px; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr .7fr; gap: 7px; background: #fff; border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--line); transform: rotate(-1.2deg); }
.placeholder-panel { position: relative; overflow: hidden; border: 2px solid var(--line); }
.panel-sun { grid-column: 1 / -1; background: var(--sky); }
.panel-sun span { position: absolute; width: 70px; height: 70px; right: 20px; top: 18px; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); }
.panel-sea { background: var(--mint); }
.panel-walk { background: var(--lavender); }
.speech-bubble { position: absolute; left: 24px; top: 100px; padding: 9px 14px; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-weight: 900; line-height: 1.2; transform: rotate(-5deg); }
.watermark-note { display: inline-block; margin-top: 14px; padding: 6px 10px; border-radius: 14px; background: #fff0b8; color: #675319; font-size: 11px; font-weight: 800; }
.processing-visual { position: relative; width: 110px; height: 110px; margin-bottom: 22px; display: grid; place-items: center; }
.processing-visual .spark { font-size: 35px; color: var(--coral); animation: pulse 1.4s ease-in-out infinite; }
.orbit { position: absolute; inset: 8px; border: 2px solid var(--line); border-radius: 50%; animation: spin 4s linear infinite; }
.orbit::before { content: ""; position: absolute; width: 13px; height: 13px; top: 4px; left: 12px; border-radius: 50%; background: var(--yellow); border: 1px solid var(--line); }
.orbit-two { inset: 22px; animation-direction: reverse; animation-duration: 3s; }
.progress-list { width: min(100%, 310px); margin: 28px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; text-align: left; }
.progress-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.progress-list li span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 11px; font-weight: 900; }
.progress-list li.is-current, .progress-list li.is-done { color: var(--ink); font-weight: 700; }
.progress-list li.is-current span { background: var(--yellow); border-color: var(--line); }
.progress-list li.is-done span { background: var(--mint); border-color: var(--line); }
.result-frame { width: min(100%, 430px); max-height: 560px; overflow: auto; border: 3px solid var(--line); background: #fff; }
.result-frame img { width: 100%; }
.guest-preview-frame { max-width: 260px; max-height: 340px; box-shadow: 7px 7px 0 rgba(19,35,59,.16); }
.guest-result-gate {
  width: min(100%, 390px);
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.guest-result-gate[hidden] { display: none; }
.guest-lock { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); }
.guest-result-gate strong { font-family: var(--font-display); font-size: 18px; }
.guest-result-gate p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.guest-result-gate .primary-button { grid-column: 1 / -1; width: 100%; }
.guest-result-gate .text-button { grid-column: 1 / -1; justify-self: center; }
.result-actions { width: 100%; margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.result-actions[hidden] { display: none; }
.secondary-button, .danger-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.secondary-button:hover:not(:disabled) { background: var(--cream-strong); }
.danger-button { color: var(--danger); border-color: #c96c73; }

.how-it-works { padding: 100px 0; }
.how-timeline { margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 2px solid var(--line); }
.how-timeline li { position: relative; padding: 34px 28px 0 0; }
.how-timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); border: 2px solid var(--line); }
.how-timeline li > span { color: var(--coral-dark); font-weight: 900; font-size: 12px; letter-spacing: .08em; }
.how-timeline h3 { margin: 10px 0 5px; font-family: var(--font-display); font-size: 20px; }
.how-timeline p { margin: 0; color: var(--muted); font-size: 14px; }

.library { margin-block: 28px 100px; padding: clamp(24px, 4vw, 44px); border: 2px solid var(--line); background: #fff; box-shadow: 7px 7px 0 var(--line); }
.library-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.library-heading h2 { font-size: clamp(34px, 4vw, 50px); }
.library-heading p { color: var(--muted); }
.user-chip { padding: 7px 11px; border-radius: 16px; background: var(--mint); font-size: 12px; font-weight: 800; white-space: nowrap; }
.user-chip > span { color: #348453; }
.library-status, .library-empty { padding: 18px; background: var(--cream); color: var(--muted); text-align: center; }
.library-subheading { margin: 28px 0 13px; display: flex; align-items: baseline; justify-content: space-between; }
.library-subheading h3 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.library-subheading span { color: var(--muted); font-size: 12px; font-weight: 700; }
.active-jobs { display: grid; gap: 9px; }
.active-job { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); background: #fff; }
.job-status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 1px solid var(--line); }
.active-job.is-running .job-status-dot { background: var(--coral); animation: pulse 1.3s infinite; }
.active-job.is-failed .job-status-dot { background: #da6870; }
.active-job-copy { display: flex; flex-direction: column; flex: 1; }
.active-job-copy span { color: var(--muted); font-size: 12px; }
.job-link, .job-edit, .board-download, .job-delete { min-height: 38px; padding: 8px 10px; border: 0; background: transparent; color: var(--coral-dark); font-weight: 800; text-decoration: underline; cursor: pointer; }
.job-delete { color: var(--danger); }
.board-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.board-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: 0 6px 18px rgba(40,30,25,.07); }
.board-preview { width: 100%; aspect-ratio: .72; padding: 0; border: 0; background: var(--cream-strong); cursor: zoom-in; overflow: hidden; }
.board-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.board-card-body { padding: 12px; }
.board-card-body time { color: var(--muted); font-size: 12px; }
.board-card-actions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }

.pricing { padding: 100px 0 120px; }
.pricing-heading { margin-inline: auto; text-align: center; }
.pricing-grid { max-width: 860px; margin: 46px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.pricing-card { position: relative; padding: 32px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.pricing-card.featured { border: 3px solid var(--line); box-shadow: 7px 7px 0 var(--line); }
.pricing-card.future { margin-block: 14px; background: var(--cream); }
.pricing-badge { display: inline-block; padding: 5px 9px; border-radius: 13px; background: var(--yellow); border: 1px solid #c9a43d; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.pricing-badge.neutral { background: var(--cream-strong); border-color: var(--border); }
.pricing-card h3 { margin: 22px 0 0; font-family: var(--font-display); font-size: 30px; }
.price { margin: 8px 0 0; }
.price strong { font-family: var(--font-display); font-size: 42px; line-height: 1; }
.pricing-card > p:not(.price) { color: var(--muted); }
.pricing-card ul { min-height: 155px; margin: 24px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.pricing-card li { position: relative; padding-left: 25px; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--coral-dark); }
.pricing-card .primary-button, .pricing-card .secondary-button { width: 100%; }

.auth-dialog, .board-dialog, .board-editor { border: 0; padding: 0; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(27, 26, 31, .72); backdrop-filter: blur(4px); }
.auth-dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.auth-shell { position: relative; padding: clamp(25px, 5vw, 46px); border: 3px solid var(--line); background: var(--paper); box-shadow: 9px 9px 0 var(--coral); overflow-y: auto; max-height: calc(100dvh - 24px); }
.dialog-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink); font-size: 29px; line-height: 1; cursor: pointer; }
.auth-shell > .dialog-close { position: absolute; top: 15px; right: 15px; }
.auth-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 900; }
.auth-brand .brand-mark { width: 36px; height: 36px; }
.auth-brand strong { color: var(--coral-dark); }
.auth-kicker { margin-top: 26px; }
.auth-shell h2 { margin: 0; font-family: var(--font-display); font-size: clamp(31px, 6vw, 42px); line-height: 1; }
#auth-intro { margin: 12px 0 22px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.auth-tabs button { min-height: 46px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 800; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { border-color: var(--coral); color: var(--coral-dark); }
.google-placeholder { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #c7c4bf; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 750; }
.google-placeholder svg { width: 22px; }
.google-status { margin: 6px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
#google-signin { min-height: 0; display: flex; justify-content: center; }
.auth-separator { margin: 18px 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.auth-separator::before, .auth-separator::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.auth-form { display: grid; gap: 8px; }
.auth-form label:not(.terms-row) { margin-top: 4px; font-weight: 800; font-size: 13px; }
.auth-form input { min-height: 48px; padding: 11px 13px; }
.auth-form .terms-row { margin: 8px 0; }
.auth-form .primary-button { width: 100%; margin-top: 5px; }
.auth-privacy { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.board-dialog { width: min(900px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--paper); border: 2px solid var(--line); }
.board-dialog-header, .board-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; }
.board-dialog-header { border-bottom: 1px solid var(--border); }
.board-dialog-header h2 { margin: 0; font-family: var(--font-display); }
.board-dialog-image { max-height: calc(100dvh - 190px); overflow: auto; padding: 16px; background: var(--cream-strong); }
.board-dialog-image img { width: min(100%, 700px); margin: auto; border: 2px solid var(--line); }
.board-dialog-actions { flex-wrap: wrap; border-top: 1px solid var(--border); }

.board-editor { width: min(1380px, calc(100% - 24px)); height: min(900px, calc(100dvh - 24px)); background: var(--paper); border: 2px solid var(--line); }
.board-editor-form { height: 100%; display: flex; flex-direction: column; }
.board-editor-header { padding: 18px 22px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.board-editor-header h2 { margin: 0; font-family: var(--font-display); }
.board-editor-header p { margin-bottom: 0; }
.editor-error, .editor-loading { margin: 16px 22px; padding: 12px; }
.editor-loading { background: var(--cream); text-align: center; }
.board-editor-workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; padding: 18px 22px; overflow: hidden; }
.editor-preview, .editor-instructions { min-height: 0; overflow: auto; }
.editor-preview-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.editor-preview-heading h3, .editor-instructions h3 { margin: 0; font-family: var(--font-display); }
.editor-preview-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
#board-editor-count { padding: 5px 9px; border-radius: 13px; background: var(--yellow); font-size: 11px; white-space: nowrap; }
.board-editor-canvas { position: relative; width: min(100%, 690px); margin: 12px auto 0; background: var(--cream-strong); }
.board-editor-canvas > img { width: 100%; }
.board-editor-panels { position: absolute; inset: 0; }
.editor-panel { position: absolute; border: 3px solid transparent; background: transparent; cursor: pointer; }
.editor-panel:hover, .editor-panel:focus-visible { border-color: var(--coral); background: rgba(237,91,98,.18); outline: 0; }
.editor-panel.is-selected { border-color: var(--coral); background: rgba(237,91,98,.35); }
.editor-panel span { position: absolute; top: 4px; left: 4px; padding: 3px 6px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 900; }
.editor-instructions { padding: 16px; border: 1px solid var(--border); background: #fff; }
.editor-empty { color: var(--muted); }
.editor-fields { display: grid; gap: 13px; }
.editor-field { padding: 12px; border: 1px solid var(--border); background: var(--cream); }
.editor-field-header { display: flex; justify-content: space-between; align-items: center; }
.editor-field-header label { font-weight: 900; }
.editor-field-remove { border: 0; background: transparent; color: var(--danger); font-weight: 800; cursor: pointer; }
.editor-field textarea { min-height: 100px; margin-top: 8px; }
.editor-field-count { display: block; color: var(--muted); font-size: 11px; text-align: right; }
.board-editor-actions { padding: 14px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); }

.site-footer { padding: 48px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: start; gap: 35px; border-top: 2px solid var(--line); background: var(--ink); color: #fff; }
.footer-brand { color: #fff; }
.site-footer p { margin: 8px 0 0; color: #cfccd2; font-size: 13px; }
.site-footer nav { display: grid; gap: 8px; }
.site-footer nav a { color: #fff; font-weight: 700; }

.legal-header { grid-template-columns: 1fr auto; }
.legal-page { width: min(850px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 100px; overflow: visible; }
.legal-page h1 { margin: 0; font-family: var(--font-display); font-size: clamp(40px, 7vw, 66px); line-height: 1; letter-spacing: -.04em; }
.legal-lead { margin: 24px 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.legal-notice { margin: 30px 0 52px; padding: 18px 20px; border: 2px solid var(--line); background: var(--yellow); box-shadow: 4px 4px 0 var(--line); }
.legal-page section { padding: 25px 0; border-top: 1px solid var(--border); }
.legal-page section h2 { margin: 0 0 9px; font-family: var(--font-display); font-size: 24px; }
.legal-page section p { margin: 0; color: #4f4a52; line-height: 1.7; }
.legal-footer { margin-top: 0; }

:focus-visible { outline: 3px solid #2f7ea0; outline-offset: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr .8fr; gap: 40px; }
  .hero-comic { min-height: 440px; grid-template-rows: 150px 175px; }
  .workspace { grid-template-columns: 1fr; }
  .result-card { position: static; min-height: 540px; }
  .how-timeline { grid-template-columns: 1fr 1fr; row-gap: 35px; }
  .board-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .header-inner { width: min(100% - 24px, 1240px); min-height: 66px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-cta { padding-inline: 10px; font-size: 12px; }
  .guest-actions .text-button { display: none; }
  .account-button { max-width: 46px; padding-right: 6px; }
  #account-email, .text-button.compact { display: none; }
  .points-pill { padding: 7px 9px; }
  .hero { width: min(100% - 28px, 1240px); min-height: auto; padding: 55px 0 62px; grid-template-columns: 1fr; gap: 45px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-copy { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-button { width: 100%; }
  .hero-comic { width: calc(100% - 10px); min-height: 420px; margin-left: 2px; padding: 55px 17px 17px; grid-template-rows: 142px 170px; box-shadow: 7px 7px 0 var(--line); }
  .photo-people { left: 15px; gap: 6px; }
  .photo-people i { width: 28px; }
  .hero-arrow { top: 190px; }
  .promise-strip { justify-content: flex-start; gap: 18px; overflow-x: auto; }
  .promise-strip p { flex: 0 0 auto; font-size: 13px; }
  .create-section, .how-it-works, .library, .pricing { width: min(100% - 28px, 1180px); }
  .create-section, .how-it-works, .pricing { padding-block: 76px; }
  .creator-card, .result-card { padding: 20px; }
  .form-step { grid-template-columns: 31px 1fr; gap: 10px; }
  .step-number { width: 29px; height: 29px; }
  .card-heading h3 { font-size: 24px; }
  .photo-previews { grid-template-columns: repeat(2, 1fr); }
  .result-card { min-height: 500px; }
  .how-timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); margin-left: 8px; }
  .how-timeline li { padding: 0 0 28px 32px; }
  .how-timeline li::before { left: -8px; top: 3px; }
  .library { padding: 20px; margin-bottom: 60px; }
  .library-heading { align-items: start; flex-direction: column; }
  .board-gallery { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.future { margin: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .board-editor { width: 100%; height: 100dvh; max-height: none; }
  .board-editor-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: max-content max-content;
    align-content: start;
    overflow-y: auto;
  }
  .editor-preview { grid-row: 1; overflow: visible; }
  .editor-instructions { grid-row: 2; overflow: visible; }
  .board-editor-actions { position: sticky; bottom: 0; background: var(--paper); }
}

@media (max-width: 390px) {
  .header-inner { width: calc(100% - 18px); }
  .brand span { font-size: 15px; }
  .header-cta { font-size: 0; width: 43px; padding: 0; border-radius: 50%; }
  .header-cta::after { content: "+"; font-size: 24px; }
  .hero { width: calc(100% - 24px); padding-top: 42px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .hero-comic { min-height: 370px; grid-template-rows: 120px 150px; }
  .hero-comic-label { font-size: 12px; }
  .hero-arrow { top: 170px; width: 45px; height: 45px; }
  .photo-sun { width: 48px; height: 48px; }
  .photo-people i { width: 24px; height: 50px; }
  .photo-people i:nth-child(2) { height: 60px; }
  .mini-bubble { right: 18px; font-size: 11px; }
  .create-section, .how-it-works, .library, .pricing { width: calc(100% - 20px); }
  .creator-card, .result-card { padding: 16px; }
  .card-heading { flex-direction: column; }
  .form-step { grid-template-columns: 1fr; }
  .step-number { margin-bottom: -4px; }
  .dropzone { min-height: 160px; }
  .terms-row { font-size: 12px; }
  .result-actions { flex-direction: column; }
  .result-actions > * { width: 100%; }
  .auth-shell { padding: 26px 19px; }
  .auth-brand { padding-right: 42px; }
  .board-dialog-actions { flex-direction: column; align-items: stretch; }
  .board-editor-header { padding: 14px; }
  .board-editor-header h2 { font-size: 20px; }
  .board-editor-workspace { padding: 12px; }
  .board-editor-actions { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Contact form */
.auth-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1.5px solid #aca6a0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.auth-form select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(237, 91, 98, .15); }
#contact-status[data-tone="error"] { color: var(--coral-dark); font-weight: 800; }
#contact-status[data-tone="success"] { color: #2f7d4f; font-weight: 800; }
