/* PetPicora — V5 (multi-pet ready, fade portraits, snow), from V4 / V3 mosaic / Ciel V2 (Claude ECOM PET, Nov 2026)
   White / pale sky / deep blue text / coral action / discreet copper / satin red ribbon. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --sky: #edf7ff;
  --sky-2: #dceefb;
  --deep: #15324f;
  --muted: #4a6378;
  --coral: #cf4128;        /* action: white text 4.73:1 */
  --coral-hover: #b5361f;
  --coral-vivid: #f0644b;  /* graphic accents only */
  --coral-text: #a8361f;   /* small coral text on white: 5.9:1 */
  --copper: #93582f;
  --error: #b42318;
  --line: rgba(21, 50, 79, .13);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --pad-x: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--deep); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 6px; }

.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; }
.skip { position: absolute; left: 12px; top: -400px; z-index: 10; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Bar + header ---------- */
.preview-bar { --bg: var(--sky-2); color: var(--deep); font-size: 13px; text-align: center; padding: 7px var(--gutter); }
.site-header { --bg: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--pad-x); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); }
.brand-mark { width: 26px; height: 32px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 29px; letter-spacing: .005em; }
.brand-sub { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); }
.site-header ul { list-style: none; display: flex; gap: clamp(16px, 3vw, 36px); padding: 0; }
.site-header nav { margin-left: auto; }
.site-header nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-header nav a:hover { border-color: var(--coral-vivid); }
/* language: a native select (keyboard, screen readers and phone pickers handle it), with a small globe */
.lang-switch { position: relative; flex: none; display: inline-flex; align-items: center; }
.lang-switch[hidden] { display: none; }
.lang-switch svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #3f7fb6; pointer-events: none; }
.lang-switch select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 34px 0 38px; border-radius: 999px; border: 1px solid rgba(21, 50, 79, .18); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2315324f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px 8px; color: var(--deep); font: 600 14px/1 var(--sans); cursor: pointer; box-shadow: 0 8px 22px rgba(21, 50, 79, .1); }
.lang-switch select:hover { border-color: rgba(63, 127, 182, .45); }
.lang-switch select:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.lang-switch select option { color: var(--deep); background: #fff; }
.lang-code { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 650; font-size: 16px; cursor: pointer; transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(207, 65, 40, .25); }
.btn-primary:hover { background: var(--coral-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-disabled, .btn-disabled:hover { background: #e6edf3; color: var(--muted); border-color: var(--line); cursor: not-allowed; width: 100%; box-shadow: none; }
.btn-link { background: none; border: 0; min-height: 44px; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--deep); text-decoration: underline; text-decoration-color: var(--coral-vivid); text-decoration-thickness: 2px; text-underline-offset: 6px; cursor: pointer; }
.btn-link:hover { color: var(--coral); }

/* ---------- Hero (V5) ---------- */
.hero {
  position: relative;
  --bg:
    radial-gradient(48% 62% at 74% 46%, #e3f1ff 0%, rgba(237, 247, 255, .6) 46%, transparent 78%),
    radial-gradient(40% 50% at 12% 0%, #f5faff 0%, transparent 70%),
    var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "copy media" "offer media" ". picker" ". caption";
  grid-template-rows: auto 1fr auto auto;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 30px;
  padding: clamp(36px, 5vw, 76px) var(--pad-x) clamp(48px, 6vw, 88px);
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-media { grid-area: media; align-self: center; margin: 0; }
.hero-offer { grid-area: offer; align-self: start; display: flex; flex-direction: column; align-items: flex-start; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-text); margin-bottom: 14px; animation: rise 1s .05s var(--ease) both; }
.hero h1 { font-size: clamp(40px, 4.3vw, 62px); line-height: 1.03; letter-spacing: -.01em; animation: rise 1s .1s var(--ease) both; }
.hero-sub { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 44ch; animation: rise 1s .2s var(--ease) both; }

/* stage: the ornament hangs in the middle, sharp and dominant; example pets of varied sizes dissolve around it */
.hero-stage { position: relative; aspect-ratio: 1 / .95; }
.hero-portraits { position: absolute; inset: 0; }
.portrait { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 1; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .6s var(--ease), filter .6s; animation: float-in 1s var(--ease) both; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.portrait:hover { transform: translateY(-4px) scale(1.03); }
.portrait[aria-pressed="true"] { transform: scale(1.04); }
.portrait:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.portrait.is-broken { display: none; }
.portrait:nth-child(2) { animation-delay: .08s; } .portrait:nth-child(3) { animation-delay: .16s; } .portrait:nth-child(4) { animation-delay: .24s; }
.portrait:nth-child(5) { animation-delay: .32s; } .portrait:nth-child(6) { animation-delay: .4s; } .portrait:nth-child(7) { animation-delay: .48s; } .portrait:nth-child(8) { animation-delay: .56s; }
@keyframes float-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-ornament { position: absolute; left: 50%; top: 0; width: 51%; margin-left: -25.5%; aspect-ratio: 760 / 1079; transform-origin: 50% 0; filter: drop-shadow(0 26px 28px rgba(21, 50, 79, .30)) drop-shadow(0 3px 6px rgba(21, 50, 79, .16)); animation: drop-in 1.1s .3s var(--ease) both; z-index: 1; pointer-events: none; }
.hero-ornament .orn { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .55s ease; }
.hero-ornament .orn.is-active { opacity: 1; }
.hero-ornament .orn.is-broken { visibility: hidden; }
.hero-ornament.settle { animation: hero-settle 1.8s cubic-bezier(.3, .6, .3, 1); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes hero-settle { 0% { transform: rotate(0); } 20% { transform: rotate(1.6deg); } 45% { transform: rotate(-1deg); } 70% { transform: rotate(.45deg); } 100% { transform: rotate(0); } }

/* pet picker: round faces with their species, no box around them */
.hero-switch { grid-area: picker; display: grid; grid-template-columns: repeat(8, auto); justify-content: center; gap: 4px 2px; margin-top: -14px; }
.hero-caption { grid-area: caption; margin-top: -18px; font-size: 13px; color: var(--muted); text-align: center; }
.switch-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; min-height: 44px; padding: 4px 4px 2px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.15; cursor: pointer; white-space: nowrap; transition: color .25s; }
.switch-btn img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(21, 50, 79, .16); transition: box-shadow .25s, transform .25s var(--ease); }
.switch-btn:hover img { transform: translateY(-2px); }
.switch-btn[aria-pressed="true"] { color: var(--deep); }
.switch-btn[aria-pressed="true"] img { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--coral), 0 6px 16px rgba(21, 50, 79, .2); }
.switch-btn img.is-broken, .photo-option img.is-broken { visibility: hidden; }


.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.amount { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1; font-variant-numeric: lining-nums; }
.currency { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.price-tag { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-note { font-size: 14px; color: var(--muted); max-width: 44ch; margin-top: 8px; }
.price-note a { color: var(--deep); font-weight: 600; text-decoration-color: var(--coral-vivid); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.hero .btn-primary { margin-top: 20px; }
.hero-offer .price-note { margin-top: 14px; }

/* ---------- Three steps ---------- */
.how-band { padding: clamp(40px, 5vw, 64px) var(--pad-x); --bg: linear-gradient(180deg, var(--white), var(--sky)); }
.how-band h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.how-steps { list-style: none; padding: 0; margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.how-steps li { position: relative; padding-left: 50px; }
.how-num { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--coral-vivid); display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; }
.how-steps h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.how-steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

@keyframes arrive { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Designer ---------- */
.designer { --bg: var(--sky); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "stage head" "stage panel"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(56px, 7vw, 104px) var(--pad-x); }
.designer-head { grid-area: head; }
.designer-head h2 { font-size: clamp(38px, 4vw, 56px); line-height: 1.02; }
.panel-intro { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.stage { grid-area: stage; position: sticky; top: 20px; }
.panel { grid-area: panel; }

.stage-scene {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 214, 150, .55) 0 2.4%, transparent 6.5%),
    radial-gradient(circle at 14% 72%, rgba(255, 214, 150, .4) 0 3%, transparent 8%),
    radial-gradient(circle at 88% 80%, rgba(255, 255, 255, .9) 0 4%, transparent 10%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .95) 0 3%, transparent 8%),
    radial-gradient(75% 65% at 50% 40%, #ffffff 0%, #eef7ff 55%, #d3e7f8 100%);
  box-shadow: inset 0 0 0 1px rgba(21, 50, 79, .08), 0 24px 60px rgba(21, 50, 79, .1);
}
.ornament, .snapshot { position: absolute; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.ornament { inset: 0 10% 3%; width: 80%; height: 97%; overflow: visible; filter: drop-shadow(0 22px 26px rgba(21, 50, 79, .22)); }
.stage-scene.pre-reveal .ornament { opacity: 0; transform: translateY(-26px); transition-duration: .9s, 1.1s; }
.snapshot { margin: 0; left: 50%; top: 50%; width: 58%; padding: 10px 10px 36px; background: #fff; border-radius: 3px; box-shadow: 0 20px 44px rgba(21, 50, 79, .25); transform: translate(-50%, -48%) rotate(-3deg) scale(.92); opacity: 0; }
.snapshot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: opacity .28s ease; }
.stage-scene[data-view="photo"] .snapshot { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg); }
.stage-scene[data-view="photo"] .ornament { opacity: 0; transform: scale(.94) translateY(10px); }
.ornament-photo { transition: opacity .28s ease; }
.ornament-photo.is-fading, .snapshot img.is-fading { opacity: 0; }

.idle, .swing { transform-box: view-box; transform-origin: 200px -12px; }
.idle { animation: sway 7s ease-in-out infinite alternate; }
.swing.settle { animation: settle 1.9s cubic-bezier(.3, .6, .3, 1); }
@keyframes sway { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
@keyframes settle { 0% { transform: rotate(0); } 18% { transform: rotate(2.4deg); } 42% { transform: rotate(-1.5deg); } 66% { transform: rotate(.7deg); } 84% { transform: rotate(-.25deg); } 100% { transform: rotate(0); } }

#ornament-name { font-family: var(--serif); font-weight: 600; fill: #8a4f2a; }
#name-ghost { font-family: var(--serif); font-style: italic; font-weight: 500; fill: #8a7360; }
#name-ghost.is-error { fill: var(--error); font-style: normal; font-weight: 600; }

.view-toggle { position: absolute; z-index: 2; top: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(21, 50, 79, .12), inset 0 0 0 1px var(--line); }
.view-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s; }
.view-btn[aria-pressed="true"] { background: var(--deep); color: #fff; }
.stage-note { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 60ch; }
.stage-error { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--error); }

.steps { margin-top: 30px; }
.step { border: 0; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; display: flex; align-items: center; gap: 12px; }
.step legend + * { clear: both; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; font: 700 14px/30px var(--sans); text-align: center; flex: none; }

.photo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.photo-option:hover { border-color: rgba(21, 50, 79, .35); }
.photo-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-option img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.option-text { display: flex; flex-direction: column; line-height: 1.3; }
.option-text strong { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.option-text span { font-size: 14px; color: var(--muted); }
.photo-option:has(input:checked) { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral), 0 8px 20px rgba(21, 50, 79, .08); }
.photo-option:has(input:focus-visible) { outline: 2px solid var(--deep); outline-offset: 3px; }

.hint { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 54ch; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field { display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #fff; border: 1px solid rgba(21, 50, 79, .3); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--deep); box-shadow: 0 0 0 3px rgba(21, 50, 79, .15); }
.field:has(input[aria-invalid="true"]) { border-color: var(--error); }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 0; font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: .02em; color: var(--deep); }
.field input:focus, .field input:focus-visible { outline: none; }
.field input[aria-invalid="true"] { color: var(--error); }
.count { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.count.is-over { color: var(--error); font-weight: 600; }
.error { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--error); }

.summary { margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: 14px; flex: none; }
.summary dd { margin: 0; text-align: right; font-size: 15px; }
.summary dd.is-missing { color: var(--error); font-weight: 600; }
.summary .sum-price dd { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; font-variant-numeric: lining-nums; }

.checkout { margin-top: 24px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px dashed rgba(21, 50, 79, .35); }
.checkout-title { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.checkout p + p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.checkout .btn { margin-top: 16px; }
.store-note { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.checkout p.store-handoff { margin-top: 10px; font-size: 13px; color: var(--muted); }
.checkout a.btn-shop { width: 100%; text-align: center; }

/* ---------- Content sections ---------- */
.details, .assurances, .faq { padding: clamp(64px, 8vw, 120px) var(--pad-x); }
.details, .faq { --bg: var(--sky); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.02; max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 40ch; }

.disclosure { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 70ch; }

.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: 0; }
.spec div { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.spec dt { font-size: 14px; color: var(--muted); }
.spec dd { margin: 6px 0 0; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.25; font-variant-numeric: lining-nums; }
.source { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 75ch; }

.assurance-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.assurance-list li { padding-top: 20px; border-top: 3px solid var(--coral-vivid); }
.assurance-list h3 { font-size: 25px; font-weight: 600; line-height: 1.2; }
.assurance-list p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq .section-head { display: block; margin: 0; }
.faq .section-head p { margin-top: 18px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--coral), var(--coral)) center / 12px 2px no-repeat, linear-gradient(var(--coral), var(--coral)) center / 2px 12px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

.site-footer { --bg: var(--sky-2); color: var(--muted); padding: 40px var(--pad-x); display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; font-size: 13px; }
.site-footer .brand-name { font-size: 25px; }
.site-footer p:last-child { max-width: 60ch; }

/* ---------- Gallery: one ornament, every kind of pet (V5) ---------- */
.gallery { padding: clamp(64px, 8vw, 120px) var(--pad-x); --bg: linear-gradient(180deg, #ffffff 0%, var(--sky) 100%); }
.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px) clamp(16px, 2.4vw, 36px); }
.gallery-item { margin: 0; text-align: center; }
.gallery-item img { width: 78%; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 20px rgba(21, 50, 79, .22)) drop-shadow(0 2px 4px rgba(21, 50, 79, .12)); transform: rotate(-1.2deg); transform-origin: 50% 0; transition: transform .6s var(--ease); }
.gallery-item:nth-child(even) img { transform: rotate(1.2deg); }
.gallery-item:hover img { transform: rotate(0) translateY(-4px); }
.gallery-item figcaption { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gallery-item figcaption span { font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* ---------- Shipping US / Canada (V5) ---------- */
.shipping { padding: clamp(64px, 8vw, 120px) var(--pad-x); }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.region { padding: 26px 28px 20px; border-radius: 22px; background: linear-gradient(180deg, #ffffff, #f4faff); box-shadow: 0 18px 44px rgba(21, 50, 79, .08), inset 0 0 0 1px var(--line); }
.region h3 { font-size: 28px; font-weight: 600; }
.rates { width: 100%; border-collapse: collapse; margin-top: 12px; }
.rates th, .rates td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates th { text-align: left; font-weight: 500; font-size: 15px; }
.rates th span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.rates th span.row-name { display: inline; font-size: inherit; color: inherit; font-weight: inherit; margin: 0; }
.rates td { text-align: right; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; font-variant-numeric: lining-nums; white-space: nowrap; padding-left: 16px; }
.rates tr.total th { font-weight: 700; }
.rates tr.total td { font-size: 27px; color: var(--deep); }
.rates tr.total th, .rates tr.total td { border-bottom: 0; }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 75ch; }

/* ---------- Snow (V5) ---------- */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* The snow falls between the section backgrounds and the content: each band paints its background on a layer
   below the snow (z-index -2), so flakes pass behind the pets, the ornaments, the cards and the text, and show in
   every open space of the page. Nothing here may create a stacking context on these bands. */
.preview-bar, .site-header, .hero, .how-band, .designer, .gallery, .details, .faq, .site-footer { position: relative; }
.preview-bar::before, .site-header::before, .hero::before, .how-band::before, .designer::before, .gallery::before,
.details::before, .faq::before, .site-footer::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg); pointer-events: none; }
.snow-toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(21, 50, 79, .18); background: rgba(255, 255, 255, .94); color: var(--deep); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 22px rgba(21, 50, 79, .14); }
.snow-toggle svg { width: 20px; height: 20px; color: #3f7fb6; }
.snow-toggle[aria-pressed="false"] svg { color: var(--muted); }
.snow-toggle[aria-pressed="true"] { background: #eef6fd; border-color: rgba(63, 127, 182, .35); }
.snow-toggle { position: relative; }
.snow-toggle[aria-pressed="false"]::after { content: ""; position: absolute; left: 22px; top: 50%; width: 26px; height: 2px; background: var(--muted); border-radius: 2px; transform: translate(-50%, -50%) rotate(-45deg); }
.snow-toggle[aria-pressed="false"]:not(:disabled) svg + span { margin-left: 0; }
.snow-toggle:disabled { cursor: default; opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-switch { grid-template-columns: repeat(4, auto); }
}
@media (max-width: 960px) {
  .hero h1 { font-size: clamp(34px, 4.6vw, 44px); }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .designer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "panel"; grid-template-rows: auto; }
  .designer-head { margin-bottom: 26px; }
  .stage { position: relative; top: 0; max-width: 560px; width: 100%; margin: 0 auto; }
  .steps { margin-top: 12px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; padding-bottom: 6px; }
  .brand { padding: 6px 0; gap: 8px; flex: 1 1 0; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-sub { line-height: 1.25; }
  .site-header nav { width: 100%; order: 3; margin-left: 0; }
  .site-header ul { gap: 18px; }
  .site-header nav a { font-size: 14px; display: inline-block; padding: 12px 0; }
  .lang-switch { order: 2; margin-left: auto; }
  /* phone: the closed select shows only the two-letter code; the list still shows English, Français, Español */
  .lang-switch select { width: 84px; padding: 0 26px 0 32px; background-position: right 10px center; color: transparent; }
  .lang-code { display: block; position: absolute; left: 34px; top: 50%; transform: translateY(-50%); font: 700 13px/1 var(--sans); color: var(--deep); pointer-events: none; letter-spacing: .04em; }
  .lang-switch svg { left: 10px; width: 17px; height: 17px; }
  .snow-toggle { order: 2; margin-left: 8px; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .snow-toggle[aria-pressed="false"]::after { left: 50%; }
  .snow-toggle #snow-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "offer" "picker" "caption"; grid-template-rows: auto; row-gap: 22px; }
  .hero-switch, .hero-caption { margin-top: 0; }
  .hero-copy { align-self: auto; }
  .hero-media { width: 100%; max-width: 560px; justify-self: center; }
  .hero-offer { align-items: center; text-align: center; }
  .price { justify-content: center; }
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: 1fr 1fr; }
  .assurance-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .preview-bar { font-size: 12px; }
  .brand-mark { width: 21px; height: 26px; }
  .site-header .brand-name { font-size: 23px; }

  /* hero: title, ornament + portrait, price and button in the first screen, then the longer sentence */
  .hero { grid-template-areas: "title" "media" "offer" "picker" "caption" "sub"; padding-top: 18px; row-gap: 12px; }
  .hero-copy { display: contents; }
  .eyebrow { display: none; }
  .hero h1 { grid-area: title; font-size: 32px; line-height: 1.06; }
  .hero-sub { grid-area: sub; text-align: center; margin: 4px auto 0; font-size: 15px; }
  .hero-stage { width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1 / .8; }
  /* phone: two portraits only — the rabbit on the left, the chosen pet on the right (the dog when the rabbit is chosen) */
  .portrait { display: none; }
  .portrait.m-left, .portrait.m-right { display: block; }
  .portrait.m-left { --x: -6% !important; --y: 22% !important; --w: 45% !important; }
  .portrait.m-right { --x: 64% !important; --y: 30% !important; --w: 39% !important; }
  .hero-ornament { width: 52%; margin-left: -26%; }
  .hero-switch { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 360px; justify-self: center; gap: 2px; margin-top: 6px; }
  .switch-btn { min-width: 0; padding-inline: 0; font-size: 12px; }
  .switch-btn img { width: 40px; height: 40px; }
  .hero-caption { margin-top: 0; font-size: 12px; line-height: 1.35; }
  .hero-offer .btn-primary { width: 100%; margin-top: 12px; }
  .hero-offer .price-note { margin-top: 10px; }
  .amount { font-size: 38px; }

  .region { padding: 20px 18px 14px; }
  .rates td { font-size: 20px; }
  .rates tr.total td { font-size: 24px; }
  .stage-scene { aspect-ratio: 1 / 1.1; }
  .view-btn { padding: 0 13px; font-size: 13px; }
  .photo-options { gap: 10px; }
  .photo-option { gap: 10px; padding: 8px; }
  .photo-option img { width: 48px; height: 48px; border-radius: 10px; }
  .option-text strong { font-size: 20px; }
  .option-text span { font-size: 13px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .gallery-item img { width: 86%; }
  .gallery-item figcaption span { font-size: 19px; }
  .spec { grid-template-columns: 1fr; }
  .spec dd { font-size: 23px; }
  .summary dd { font-size: 14px; }
}
@media (max-width: 360px) {
  .site-header { flex-wrap: wrap; row-gap: 6px; }
  .site-header ul { gap: 16px; }
  .hero h1 { font-size: 31px; }
  .photo-options { grid-template-columns: minmax(0, 1fr); }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .idle { animation: none !important; }
  .stage-scene.pre-reveal .ornament { opacity: 1; transform: none; }
  .snow { display: none; }
  .portrait, .portrait[aria-pressed="true"], .portrait:hover { transform: none; }
}
@media (max-width: 360px) {
  .lang-switch svg { display: none; }
  .lang-switch select { width: 64px; padding: 0 22px 0 14px; }
  .lang-code { left: 16px; }
}
