/* Lumtrove brand v1. Tokens from docs/brand/tokens.css (Magical's kit), with two changes for production:
   fonts are self-hosted (the CSP allows font-src 'self' only) and the kit's global element rules are
   left out (this file styles the elements). Lime (#D4FF3A) is for shapes and dark backgrounds only;
   on light backgrounds text, links and thin lines use deep lime (#4A6B00). */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-var.woff2") format("woff2");
}

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

:root {
  color-scheme: light;

  /* Core palette */
  --lt-ink: #111111;
  --lt-ink-2: #1b1b1a;
  --lt-paper: #f2f1ec;
  --lt-white: #ffffff;
  --lt-lime: #d4ff3a;
  --lt-lime-glow: #f4ffd0;
  --lt-lime-deep: #4a6b00;

  /* Product-line accents (decorative, never body text) */
  --lt-pet: #f2b89a;
  --lt-portrait: #7a8fa6;

  /* Neutrals */
  --lt-muted: #6b6b66;
  --lt-muted-dark: #a8a8a2;
  --lt-line: #dad8d0;
  --lt-line-dark: #2e2e2b;
  --lt-placeholder: #e3e1d9;
  /* Form-control outline, 3.4:1 on white (hairline --lt-line is too faint for controls). */
  --lt-control: #8f8e86;
  /* Error text and fill: not in the kit; the kit has no error colour. 7.6:1 on its fill. */
  --lt-error: #8a1f11;
  --lt-error-bg: #fde8e4;

  /* Semantic */
  --bg: var(--lt-paper);
  --fg: var(--lt-ink);
  --link: var(--lt-lime-deep);
  --focus-ring: 0 0 0 3px var(--lt-white), 0 0 0 6px var(--lt-ink);

  /* Fonts */
  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --fs-display: 72px;  --lh-display: 76px;
  --fs-h1: 56px;       --lh-h1: 60px;
  --fs-h2: 40px;       --lh-h2: 46px;
  --fs-h3: 28px;       --lh-h3: 34px;
  --fs-h4: 20px;       --lh-h4: 28px;
  --fs-body-lg: 18px;  --lh-body-lg: 28px;
  --fs-body: 16px;     --lh-body: 24px;
  --fs-small: 14px;    --lh-small: 20px;
  --fs-caption: 12px;  --lh-caption: 16px;

  /* Spacing (4-pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Control sizes */
  --control-h: 52px;
  --control-h-sm: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: 34px;
  min-height: 100vh;
  color: var(--fg);
  background-color: var(--bg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--lt-ink);
  outline-offset: 3px;
}

img { border: 0; }

h1, h2, p, ul, ol, dl, dd { margin: 0; }

button, input, textarea { font: inherit; color: inherit; }

a { color: var(--link); }

::selection { background: var(--lt-lime); color: var(--lt-ink); }

.draft-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--lt-ink);
  color: var(--lt-paper);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.ph {
  display: inline-block;
  margin-left: 0.4em;
  padding: 3px 6px;
  border-radius: 4px;
  background: #ffe14d;
  color: #3a2a00;
  box-shadow: inset 0 0 0 1px #3a2a00;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1.2;
  vertical-align: middle;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin-inline: auto;
}

.measure { max-width: 40rem; }

.site-header { padding: 8px 0 0; }

.header-inner {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--lt-ink);
  text-decoration: none;
}

/* Horizontal lockup (tile + wordmark). Minimum width 96px; keep a quarter-tile of clear space around it. */
.logo {
  display: block;
  width: auto;
  height: 36px;
}

/* Lime highlighter behind a phrase: lime is a shape here, the text stays ink. */
.hl {
  background: linear-gradient(transparent 58%, var(--lt-lime) 58% 94%, transparent 94%);
  padding-inline: 0.08em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 8px 0 56px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, var(--fs-h1));
  line-height: 1.07;
  letter-spacing: -0.02em;
  max-width: 12em;
}

.sub {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--lt-muted);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

.hero .btn { margin-top: 22px; }

.hero-notes {
  margin-top: 14px;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-art { max-width: 480px; }

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

.block { padding: 8px 0 32px; }

.block h2,
.band h2,
.sheet h1,
.offer h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.block h2,
.band h2,
.offer h2 {
  font-size: clamp(1.75rem, 3.4vw, var(--fs-h2));
  margin-bottom: 16px;
}

.how-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.how-grid b {
  display: block;
  margin-bottom: 4px;
}

.how-grid li {
  background: var(--lt-white);
  border: 1px solid var(--lt-line);
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  line-height: 1.45;
}

.num {
  display: block;
  margin-bottom: 8px;
  color: var(--lt-lime-deep);
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.offer {
  max-width: 760px;
  background: var(--lt-white);
  border: 1px solid var(--lt-line);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
}

.offer-list { list-style: none; padding: 0; }

.offer-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--lt-line);
}

.tick {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--lt-lime-deep);
}

.price-line {
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.price-anchor { color: var(--lt-muted); }

.price-offer { font-weight: 700; }

.band { padding: 36px 0; }

.band-guarantee {
  background: var(--lt-ink);
  color: var(--lt-paper);
}

.band-memorial { background: var(--lt-placeholder); }

.band-guarantee a { color: var(--lt-lime); }

.band-guarantee .pending { border-color: var(--lt-lime); }

.mark-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mark-row h2 { margin: 0; }

.lede {
  margin-top: 8px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.faq-list { max-width: 44rem; }

.faq-item {
  padding: 16px 0;
  border-top: 1px solid var(--lt-line);
}

.faq-item:last-child { border-bottom: 1px solid var(--lt-line); }

.faq-item dt {
  margin-bottom: 4px;
  font-weight: 700;
}

.faq-item dd {
  color: var(--lt-muted);
  line-height: 1.5;
}

.retention {
  display: block;
  margin-top: 6px;
  color: var(--lt-ink);
}

.site-footer {
  border-top: 1px solid var(--lt-line);
  padding: 28px 0 36px;
  color: var(--lt-muted);
  text-align: center;
}

.small-print {
  margin-top: 6px;
  font-size: 0.82rem;
}

.redirect-main {
  min-height: calc(100vh - 140px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 48px 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: var(--control-h);
  padding: 12px var(--sp-5);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--lt-ink);
  color: var(--lt-lime);
}

.btn-primary:hover { background: var(--lt-ink-2); color: var(--lt-lime); }

.btn-primary:active { transform: translateY(1px); }

.btn-block { width: 100%; }

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--lt-ink);
  border-color: var(--lt-ink);
}

.btn-secondary:hover { background: var(--lt-white); }

.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-pay {
  width: 100%;
  background: var(--lt-white);
  color: var(--lt-ink);
  border: 1.5px dashed var(--lt-ink);
}

.btn-pay:hover { background: var(--lt-lime-glow); color: var(--lt-ink); }

.sheet {
  width: min(720px, calc(100% - 32px));
  margin: 8px auto 28px;
  padding: 26px 22px 28px;
  background: var(--lt-white);
  border: 1px solid var(--lt-line);
  border-radius: var(--radius-lg);
}

.sheet.wide { width: min(980px, calc(100% - 32px)); }

.sheet h1 {
  font-size: clamp(1.75rem, 3.4vw, var(--fs-h2));
  margin-bottom: 8px;
}

.sheet h2 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.steps {
  margin-bottom: 14px;
  color: var(--lt-muted);
  font-size: 0.85rem;
}

.steps strong { color: var(--lt-ink); }

.intro {
  margin-bottom: 16px;
  color: var(--lt-muted);
}

.field-label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 700;
}

.optional { font-weight: 500; color: var(--lt-muted); }

input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1.5px dashed var(--lt-control);
  border-radius: var(--radius-md);
}

.preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--lt-placeholder);
  border-radius: var(--radius-lg);
}

.preview img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.hint { color: var(--lt-muted); font-size: 0.95rem; }

.retention-line,
.check-line { margin-top: 14px; }

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-hint { margin: -4px 0 8px; }

.photo-pair .preview { min-height: 160px; }

.photo-pair .preview img { max-height: 300px; }

fieldset.style-field {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.style-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--lt-control);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.style-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.style-option:has(input:checked) {
  background: var(--lt-lime-glow);
  border-color: var(--lt-ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

/* The radio itself is invisible (opacity 0), so keyboard focus is shown on its card. */
.style-option:has(input:focus-visible) {
  outline: 2px solid var(--lt-ink);
  outline-offset: 3px;
}

.style-option.memorial-style:has(input:checked) {
  background: var(--lt-placeholder);
  border-color: var(--lt-ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.style-name { font-weight: 700; }

textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--lt-control);
  border-radius: var(--radius-md);
  resize: vertical;
}

.form-error {
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--lt-error-bg);
  color: var(--lt-error);
  border-radius: var(--radius-md);
}

.actions { margin-top: 16px; }

.noscript-note { margin-bottom: 12px; }

.receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lt-line);
  font-size: 1.15rem;
}

.receipt-line strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.fine-list {
  margin: 12px 0 0;
  padding-left: 1.15rem;
  color: var(--lt-muted);
}

.fine-list li { margin: 4px 0; }

.who {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.thumbs {
  display: flex;
  gap: 8px;
  flex: none;
}

.thumb,
.thumb-empty {
  width: 96px;
  height: 96px;
  flex: none;
  background: var(--lt-placeholder);
  border-radius: var(--radius-md);
}

.thumb { object-fit: cover; }

.thumb-empty {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
}

.who-copy { min-width: 0; flex: 1; }

.who-copy p { overflow-wrap: anywhere; }

.k {
  display: block;
  margin-top: 8px;
  color: var(--lt-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-note { white-space: pre-wrap; }

.back-link { margin-top: 16px; }

.fake-callout {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--lt-lime-glow);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.pay-actions { margin-top: 18px; }

.open-btn {
  display: block;
  width: 100%;
  padding: 8px 8px 12px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.open-btn:disabled { cursor: default; }

.stage {
  position: relative;
  width: 240px;
  height: 210px;
  margin: 0 auto 4px;
  perspective: 800px;
}

.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--lt-lime-glow) 0%, rgba(244, 255, 208, 0) 70%);
}

.present {
  --box: #2e2e2b;
  --box-deep: #111111;
  --lid: #3d3d39;
  --ribbon: #d4ff3a;
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  top: 28px;
  bottom: 8px;
  animation: floaty 3.2s ease-in-out infinite;
}

.style-holiday .present {
  --box: #2e2e2b;
  --box-deep: #111111;
  --lid: #3d3d39;
  --ribbon: #f2f1ec;
}

.style-adoption .present {
  --box: #2e2e2b;
  --box-deep: #111111;
  --lid: #3d3d39;
  --ribbon: #f2b89a;
}

.style-memorial .present {
  --box: #7d7d77;
  --box-deep: #6b6b66;
  --lid: #8f8f89;
  --ribbon: #f2f1ec;
}

.unveil.is-open .present { animation: none; }

.base {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--box), var(--box-deep));
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 12px 20px rgba(17, 17, 17, 0.16);
}

.base::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 18px;
  background: var(--ribbon);
}

.ribbon-v {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background: var(--ribbon);
}

.lid {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 90px;
  height: 36px;
  background: linear-gradient(180deg, var(--lid), var(--box));
  border-radius: 8px;
  transform-origin: center bottom;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lid-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background: var(--ribbon);
}

.bow {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 78px;
  height: 42px;
  transform: translateX(-50%);
}

.loop {
  position: absolute;
  top: 8px;
  width: 30px;
  height: 22px;
  border: 6px solid var(--ribbon);
  border-bottom-color: transparent;
  border-radius: 16px 16px 8px 8px;
}

.loop.left { left: 4px; transform: rotate(-28deg); }

.loop.right { right: 4px; transform: rotate(28deg); }

.knot {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  background: var(--ribbon);
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.unveil.is-open .lid {
  transform: translateY(-36px) rotateX(-105deg);
}

.spark {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
}

.s1 { left: 28px; top: 48px; background: var(--lt-pet); }

.s2 { right: 36px; top: 28px; background: var(--lt-lime); }

.s3 { right: 22px; top: 78px; background: var(--lt-ink); }

.unveil.is-open .spark { animation: spark 0.8s ease forwards; }

.tap {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
}

.closed-meta { margin-top: 8px; text-align: center; }

.eyebrow {
  margin-top: 8px;
  color: var(--lt-lime-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-memorial .eyebrow { color: var(--lt-muted); }

.note-label {
  margin-top: 12px;
  color: var(--lt-muted);
  font-size: 0.85rem;
}

.note-card {
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--lt-white);
  border-left: 3px solid var(--lt-lime-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#portraits-title {
  margin: 22px 0 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.portraits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin-bottom: 20px;
}

.frame {
  background: #fff;
  border: 1px solid var(--lt-line);
}

.frame-inner {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--lt-placeholder);
}

.frame-inner img,
.frame-inner svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  height: 100%;
}

.portrait-a .frame {
  padding: 8px;
  background: var(--lt-paper);
  border: 8px solid var(--lt-ink);
}

.portrait-a img { filter: sepia(0.28) saturate(1.15) contrast(1.05); }

.portrait-b .frame {
  padding: 12px 12px 22px;
  background: var(--lt-white);
  border: 1px solid var(--lt-line);
  border-radius: 120px 120px 16px 16px;
}

.portrait-b .frame-inner { border-radius: 110px 110px 8px 8px; }

.portrait-b img { filter: contrast(1.08) saturate(0.82) brightness(1.04); }

.portrait-c .frame {
  padding: 10px 10px 28px;
  background: #fff;
  transform: rotate(1.5deg);
}

.portrait-c img { filter: saturate(1.2) contrast(1.02) hue-rotate(-8deg); }

.portrait-name {
  margin-top: 8px;
  color: var(--lt-muted);
  font-size: 0.92rem;
}

.portrait .ph { margin: 0 0 8px; }

.portraits[data-redo="1"] .portrait-a .frame { border-color: var(--lt-lime-deep); }

.portraits[data-redo="1"] .portrait-a img { filter: sepia(0.05) saturate(1.35) contrast(1.12) brightness(1.05); }

.portraits[data-redo="1"] .portrait-b img { filter: saturate(0.7) contrast(1.15); }

.portraits[data-redo="1"] .portrait-c .frame { transform: rotate(-1.5deg); }

.portraits[data-redo="1"] .portrait-c img { filter: sepia(0.2) hue-rotate(12deg) saturate(0.9); }

.portraits[data-redo="2"] .portrait-a .frame { border-color: var(--lt-muted); }

.portraits[data-redo="2"] .portrait-a img { filter: grayscale(0.2) contrast(1.18) sepia(0.12); }

.portraits[data-redo="2"] .portrait-b .frame { background: var(--lt-lime-glow); }

.portraits[data-redo="2"] .portrait-b img { filter: saturate(1.05) hue-rotate(18deg) contrast(1.05); }

.portraits[data-redo="2"] .portrait-c img { filter: brightness(1.08) saturate(0.75) contrast(1.1); }

.edit-link { margin-top: 14px; text-align: center; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spark {
  0% { opacity: 0; transform: translateY(8px) scale(0.4); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-18px) scale(1); }
}

@media (max-width: 860px) {
  .portraits { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }

  .hero-art {
    max-width: 420px;
    margin: 8px auto 0;
  }

  .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .styles { grid-template-columns: 1fr; }

  .hero .btn-primary { width: 100%; }

  .sheet {
    padding: 22px 16px 24px;
    border-radius: var(--radius-lg);
  }

  .mark-row { align-items: flex-start; }

  .who {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .present { animation: none; }
  .lid { transition: none; }
  .btn-primary:active { transform: none; }
  .unveil.is-open .spark { animation: none; opacity: 0; }
  .unveil.is-open .lid { transform: translateY(-40px); }
}

/* v2 copy: before/after compare, photo tips, samples, pending and proof placeholders */
.hero-art {
  width: 100%;
  margin: 0;
  justify-self: center;
}

.hero-art .compare-grip svg {
  width: 20px;
  height: 20px;
  filter: none;
}

.hero-art figcaption,
.samples-wrap figcaption {
  margin-top: 10px;
  text-align: center;
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--lt-placeholder);
  border-radius: var(--radius-xl);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.compare img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.compare-after { position: absolute; inset: 0; }

.compare-before {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--lt-paper);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-shot {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.compare-shot img { object-position: 50% 25%; }

.compare-shot.shot-pet img { object-position: 50% 5%; }

.compare-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
  pointer-events: none;
}

.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--lt-ink);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.25);
}

.compare-label {
  position: absolute;
  bottom: 14px;
  left: clamp(110px, var(--pos), calc(100% - 110px));
  transform: translateX(-50%);
  padding: 7px 14px;
  background: rgba(242, 241, 236, 0.94);
  color: var(--lt-ink);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.16);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.compare-range {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.compare:has(.compare-range:focus-visible) .compare-grip {
  outline: 2px solid var(--lt-ink);
  outline-offset: 3px;
}

.photo-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.tip-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--lt-white);
  border: 1px solid var(--lt-line);
  border-radius: var(--radius-lg);
}

.tip-card img {
  width: 84px;
  height: 105px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.tip-notes {
  list-style: none;
  max-width: 760px;
  margin-top: 14px;
  padding: 0;
}

.tip-notes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.offer.offer-grid { max-width: none; }

.offer-main .btn { margin-top: 16px; }

.samples-wrap { margin: 0; }

.samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.samples img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  
}

.pending {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px dashed var(--lt-lime-deep);
  border-radius: var(--radius-md);
}

.pending .ph,
.proof-slot .ph { margin: 0 0.4em 0 0; }

.proof { padding-top: 32px; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.proof-slot {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  background: repeating-linear-gradient(45deg, var(--lt-placeholder) 0 12px, var(--lt-paper) 12px 24px);
  border: 2px dashed var(--lt-muted-dark);
  border-radius: var(--radius-lg);
  color: var(--lt-muted);
  font-weight: 600;
}

.proof-slot svg { flex: none; }

.end-cta { padding-top: 0; }

@media (max-width: 800px) {
  /* Mobile-first hero: headline, then the before/after, then the pitch and CTA. */
  .hero { row-gap: 0; }

  .hero-copy { display: contents; }

  .hero h1 { order: 0; }

  .hero-art {
    order: 1;
    max-width: 420px;
    margin: 20px auto 4px;
  }

  .hero .sub,
  .hero-cta,
  .hero-notes { order: 2; }
}

@media (max-width: 760px) {
  .offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .how-grid,
  .photo-tips,
  .photo-pair,
  .proof-grid { grid-template-columns: 1fr; }

  .compare { aspect-ratio: 1 / 1; }

  .compare-after { object-position: 50% 15%; }
}

/* P0 flow: footer links, paused state, consent, Turnstile, thanks and order pages, legal pages */
.end-cta .wrap { text-align: center; }

.footer-links {
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-links a { color: var(--lt-muted); }

.footer-links a:hover { color: var(--lt-ink); }

.paused-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--lt-lime-glow);
  border: 1.5px solid var(--lt-ink);
  border-radius: var(--radius-md);
  color: var(--lt-ink);
  font-weight: 600;
}

main > .wrap > .paused-notice { margin-top: 8px; }

.btn.is-disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary.is-disabled:hover,
.btn-primary:disabled:hover { background: var(--lt-ink); }

.btn.is-disabled:active,
.btn:disabled:active { transform: none; }

.offer-tax {
  margin: -10px 0 6px;
  color: var(--lt-muted);
  font-size: 0.92rem;
}

.consent { margin-top: 22px; }

.consent-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--lt-control);
  border-radius: var(--radius-md);
  line-height: 1.45;
  cursor: pointer;
}

.consent-option + .consent-option { margin-top: 10px; }

.consent-option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--lt-ink);
  cursor: pointer;
}

.consent-option:has(input:checked) {
  background: var(--lt-lime-glow);
  border-color: var(--lt-ink);
}

.consent-note {
  margin-top: 12px;
  color: var(--lt-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.turnstile-box {
  min-height: 65px;
  margin-top: 16px;
}

.form-status {
  margin-top: 14px;
  color: var(--lt-muted);
  font-weight: 600;
}

/* Stays in the page while empty, so screen readers announce its first message. */
.form-status:empty { margin-top: 0; }

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.price-note {
  margin-top: 10px;
  color: var(--lt-muted);
  font-size: 0.92rem;
  text-align: center;
}

.order-status {
  font-size: 1.15rem;
  font-weight: 700;
}

.order-eta { margin: 8px 0 0; }

.order-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--lt-lime-glow);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.order-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--lt-line);
  border-bottom: 1px solid var(--lt-line);
}

.order-facts dt { color: var(--lt-muted); }

.order-facts dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.result-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0 14px;
  border-radius: var(--radius-lg);
  
}

.disclaimer { margin-top: 12px; }

.redo-form { margin-top: 4px; }

.styles.redo-options {
  grid-template-columns: 1fr;
  margin: 12px 0 14px;
}

.order-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.thanks-note { margin-top: 12px; }

#thanks-failed .form-error { margin-bottom: 12px; }

.legal h2 { margin: 26px 0 8px; }

.legal p,
.legal ul,
.legal ol,
.legal table { margin-top: 10px; }

.legal ul,
.legal ol { padding-left: 1.25rem; }

.legal li { margin: 4px 0; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--lt-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal th {
  color: var(--lt-muted);
  font-size: 0.85rem;
}

.legal hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--lt-line);
}

.legal .ph { margin-left: 0.2em; }

.legal .legal-source {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--lt-line);
  color: var(--lt-muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .order-facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .order-facts dd + dt { margin-top: 10px; }
}
