/* ============================================================================
   Alaya Books · Lucky Lyn-Lyn — "Sunlit Paper" design system
   Demo stylesheet. In production these tokens become Tailwind v4 @theme
   entries in globals.css, exactly as bcn-ideal-services does it.
   See docs/08-design-system.md
   ========================================================================= */

/* Luna — the hand-lettered title face from the book covers. One weight only
   (Regular 400), so h1/h2 must never be synthesised bold.
   MISSING GLYPHS — these all fall back to Baloo 2 mid-word, which looks like a
   typo: accented characters (á é í ó ú ñ ü), U+00A0 no-break space,
   U+2011 non-breaking hyphen, "…" and "·". Keep them out of h1 and h2 — use a
   plain hyphen with white-space:nowrap instead of U+2011, and a normal space.
   Luna's metrics run tall: ascent 1.503em, descent .553em, x-height 1.03em, so
   it needs roughly 1.85 leading and about 60% of the size Baloo 2 would take. */
@font-face {
  font-family: "Luna";
  src: url("../fonts/luna.woff2") format("woff2"),
       url("../fonts/luna.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paper & ink */
  --paper:        #FFF9F0;
  --paper-2:      #FDF1E1;
  --paper-3:      #FFFFFF;
  --blush:        #FDEAF4;
  --blush-deep:   #F8D5E8;
  --ink:          #3A2B33;
  --ink-soft:     #7A6670;
  --hairline:     #EDDFCF;

  /* Brand — sampled from the covers: Lyn-Lyn's sky-blue skirt, its magenta
     hibiscus, and the gold of the title lettering. */
  --gold:         #F0B429;
  --gold-deep:    #C98A12;  /* discs, borders, hover fills — not small text */
  --gold-text:    #8F5F0A;  /* AA on paper 5.3, cream 5.0, blush 4.8, sky-soft 4.7 */
  --gold-soft:    #F8DFA6;
  --hibiscus:     #E9459E;
  --hibiscus-btn: #CE2E86;  /* white text on this passes AA (4.8:1) */
  --hibiscus-deep:#B92A78;
  --hibiscus-soft:#FBDCEF;
  --sky:          #4EC3EE;
  --sky-soft:     #D6F3FB;
  --sky-deep:     #0E6C88;

  /* Per-book accents */
  --leaf:         #77B843;  --leaf-soft:  #DDF0C8;
  --berry:        #D6273A;  --berry-soft: #FBD9DB;

  /* Type */
  --font-title:   "Luna", "Baloo 2", "Trebuchet MS", sans-serif;
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body:    "Newsreader", Georgia, serif;

  /* Shape */
  --r-card:  28px;
  --r-media: 22px;
  --r-pill:  999px;

  --shadow-soft: 0 10px 30px -12px rgba(58,43,51,.14), 0 2px 8px -4px rgba(58,43,51,.06);
  --shadow-lift: 0 28px 56px -18px rgba(58,43,51,.24), 0 8px 20px -10px rgba(58,43,51,.10);
  --shadow-book: 0 26px 50px -16px rgba(58,43,51,.34);

  --wrap: 1240px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Paper grain over everything. Cheap, imageless depth. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--hibiscus-btn); color: #fff; }

/* Sticky nav (76px) + brand stripe (6px), plus a little air. */
[id] { scroll-margin-top: 96px; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: var(--gold-soft); border-radius: 99px;
  border: 3px solid var(--paper-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ----------------------------------------------------------- typography -- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-wrap: balance;
}
/* Main titles only. Everything else — h3, h4, eyebrows, buttons, nav, chips,
   labels — stays on Baloo 2. */
h1, h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-synthesis: none;
  letter-spacing: .005em;
}
/* Luna's ascent (1.503em) plus descent (.553em) is over 2em, so anything under
   ~1.8 leading collides. Its x-height is 1.03em, so 44px Luna reads about as
   large as 75px Baloo 2 — these numbers are much smaller than they look. */
h1 { font-size: clamp(24px, 3.4vw, 44px); line-height: 1.85; }
h2 { font-size: clamp(21px, 2.4vw, 32px); line-height: 1.85; }
h3 { font-size: clamp(21px, 2vw, 27px); }
h4 { font-size: 19px; }

p { text-wrap: pretty; }
.lead   { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.65; color: var(--ink-soft); }
.muted  { color: var(--ink-soft); }
.small  { font-size: 15.5px; line-height: 1.6; }
.tiny   { font-size: 13px; line-height: 1.5; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold-text);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--gold); display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.script { font-family: var(--font-body); font-style: italic; font-weight: 300; }
.ui { font-family: var(--font-display); font-weight: 600; }

/* Gold underline swash under a word. A real underline, so it sits on the
   baseline whatever the face — a background bar drifts with Luna's deep
   descenders. Put it on a descender-free word only. */
.swash {
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: .16em;
  text-underline-offset: .1em;
  text-decoration-skip-ink: none;
}
.pink { color: var(--hibiscus-deep); }
.goldtext { color: var(--gold-text); }

/* ---------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 900px) { .wrap { padding-inline: 40px; } }

section { position: relative; }
.pad     { padding-block: clamp(72px, 9vw, 128px); }
.pad-sm  { padding-block: clamp(48px, 6vw, 80px); }

.band-cream  { background: var(--paper-2); }
.band-blush  { background: var(--blush); }
.band-sky    { background: var(--sky-soft); }
.band-white  { background: var(--paper-3); }
.band-ink    { background: #2E2229; color: #FBF3E8; }
.band-ink .muted, .band-ink .lead { color: #D9C8CF; }
.band-ink .eyebrow { color: var(--gold-soft); }
.band-sky .eyebrow { color: var(--sky-deep); }
.band-sky .eyebrow::before { background: var(--sky-deep); }

/* The three cover colours, always on the page. */
.brand-stripe {
  height: 6px; flex: none;
  background: linear-gradient(90deg, var(--sky) 0%, var(--hibiscus) 52%, var(--gold) 100%);
}

.stack   { display: grid; gap: 18px; }
.stack-l { display: grid; gap: 34px; }
.row     { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.center  { text-align: center; }
.center .eyebrow { justify-content: center; }
.measure { max-width: 62ch; }
.measure-s { max-width: 46ch; }
.center .measure, .center .measure-s { margin-inline: auto; }

.grid-2 { display: grid; gap: clamp(28px, 4vw, 64px); }
.grid-3 { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.grid-4 { display: grid; gap: 20px; }
@media (min-width: 780px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 560px) and (max-width: 779px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Section header */
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-top: 14px; }
.sec-head p  { margin-top: 16px; }

/* ------------------------------------------------------------ atmosphere -- */
/* Soft sun blooms. Purely decorative, no image weight. */
.bloom { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); z-index: 0; }
.bloom-gold  { background: radial-gradient(circle, rgba(240,180,41,.30), transparent 70%); }
.bloom-pink  { background: radial-gradient(circle, rgba(233,69,158,.22), transparent 70%); }
.bloom-sky   { background: radial-gradient(circle, rgba(78,195,238,.32), transparent 70%); }

.above { position: relative; z-index: 1; }

/* Floating motifs */
.motif { position: absolute; pointer-events: none; z-index: 0; opacity: .8; }
.motif svg { width: 100%; height: 100%; }
.float   { animation: float 9s var(--ease) infinite; }
.float-2 { animation: float 12s var(--ease) infinite reverse; }
.twinkle { animation: twinkle 5.5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33%      { transform: translate(10px,-16px) rotate(6deg); }
  66%      { transform: translate(-8px,8px) rotate(-4deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.82) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.12) rotate(22deg); }
}

/* ---------------------------------------------------------------- waves -- */
/* Hand-drawn section edges instead of hard lines. The sea from cover #1. */
.wave { position: relative; line-height: 0; }
.wave svg { width: 100%; height: clamp(40px, 5vw, 88px); display: block; }
.wave-flip svg { transform: scaleY(-1); }

/* ---------------------------------------------------------------- button -- */
.btn {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 28px;
  min-height: 50px;
  border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .18s, color .18s, filter .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--hibiscus-btn); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(206,46,134,.65);
}
.btn-primary:hover { background: var(--hibiscus-deep); box-shadow: 0 20px 40px -12px rgba(206,46,134,.75); }

.btn-gold {
  background: var(--gold); color: #3A2B33;
  box-shadow: 0 14px 30px -12px rgba(240,180,41,.6);
}
/* Ink text, not white — white on the deep gold is only 2.9:1. */
.btn-gold:hover { background: var(--gold-deep); color: #3A2B33; }

.btn-ghost {
  background: var(--paper-3); color: var(--ink);
  border: 2px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover { border-color: var(--gold); }

/* Sky secondary — sits beside the pink primary without shouting. */
.btn-sky {
  background: var(--sky-soft); color: var(--sky-deep);
  border: 2px solid var(--sky);
  box-shadow: 0 14px 30px -14px rgba(78,195,238,.6);
}
.btn-sky:hover { background: #C2ECF9; border-color: var(--sky-deep); }

.btn-line { background: none; padding: 0; min-height: 0; border-radius: 0; color: var(--hibiscus-deep); }
.btn-line::after {
  content: ""; display: block; height: 2px; background: currentColor;
  transform: scaleX(.35); transform-origin: left; transition: transform .3s var(--ease);
}
.btn-line:hover { transform: none; }
.btn-line:hover::after { transform: scaleX(1); }

.btn-lg { padding: 17px 34px; min-height: 58px; font-size: 17.5px; }
.btn-sm { padding: 9px 18px; min-height: 40px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; box-shadow: none; transform: none;
}

/* ------------------------------------------------------------------ chip -- */
.chip {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: .45em;
  padding: 6px 15px; border-radius: var(--r-pill);
  background: var(--paper-3); border: 1.5px solid var(--hairline);
  color: var(--ink-soft);
}
.chip-gold  { background: var(--gold-soft);     border-color: transparent; color: #6A4A08; }
.chip-pink  { background: var(--hibiscus-soft); border-color: transparent; color: var(--hibiscus-deep); }
.chip-sky   { background: var(--sky-soft);      border-color: transparent; color: var(--sky-deep); }
.chip-leaf  { background: var(--leaf-soft);     border-color: transparent; color: #416B1B; }
.chip-berry { background: var(--berry-soft);    border-color: transparent; color: #93131F; }
.chip svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ card -- */
.card {
  background: var(--paper-3);
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}
.card-hover:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: var(--gold-soft); }
.card-flat { box-shadow: none; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-text);
  margin-bottom: 18px;
}
.icon-badge svg { width: 25px; height: 25px; }
.icon-badge.pinkbg { background: var(--hibiscus-soft); color: var(--hibiscus-deep); }
.icon-badge.skybg  { background: var(--sky-soft);      color: var(--sky-deep); }
.icon-badge.leafbg { background: var(--leaf-soft);     color: #416B1B; }

/* ------------------------------------------------------- the book object -- */
/* Every cover is rendered as a physical book, never a flat square. */
.book {
  position: relative;
  display: block;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
  background: var(--paper-2);
  aspect-ratio: 1 / 1;
}
.book img { width: 100%; height: 100%; object-fit: cover; }
/* spine */
.book::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,.10) 45%, rgba(255,255,255,.22) 92%, rgba(0,0,0,.14));
}
/* page-edge sheen */
.book::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 38%);
}

.tilt   { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.4deg); }
a:hover > .book, .card-hover:hover .book, .book-link:hover .book {
  transform: rotate(0deg) translateY(-10px) scale(1.015);
  box-shadow: 0 40px 70px -20px rgba(58,43,51,.42);
}

/* Book card in a grid */
.book-card { display: grid; gap: 18px; }
.book-card .book { max-width: 100%; }
.book-card h3 { transition: color .2s; }
.book-card:hover h3 { color: var(--hibiscus-deep); }
.book-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.price-was { font-size: 16px; color: var(--ink-soft); text-decoration: line-through; font-weight: 500; }

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,249,240,.86);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.stuck { border-bottom-color: var(--hairline); box-shadow: 0 6px 20px -14px rgba(58,43,51,.35); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 12px -4px rgba(58,43,51,.3); }
.brand-txt { font-family: var(--font-display); line-height: 1.05; }
.brand-txt b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand-txt span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 1040px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 9px 15px; border-radius: var(--r-pill);
  color: var(--ink); transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--blush); }
.nav-links a[aria-current="page"] { color: var(--hibiscus-deep); background: var(--hibiscus-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
/* Below ~560px the nav CTA squeezes the wordmark onto two lines. */
@media (max-width: 560px) {
  .hide-s { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand-txt b { font-size: 16px; }
  .brand-txt span { font-size: 9.5px; letter-spacing: .12em; }
}

.burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper-3); border: 1.5px solid var(--hairline); }
.burger svg { width: 20px; height: 20px; }
@media (min-width: 1040px) { .burger { display: none; } }

.mobile-menu {
  position: fixed; inset: 82px 0 0; z-index: 99;  /* nav 76px + brand stripe 6px */
  background: var(--paper); padding: 28px 24px;
  display: none; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: fadeUp .3s var(--ease); }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.mobile-menu a:hover { color: var(--hibiscus-deep); }

/* ---------------------------------------------------------------- footer -- */
.footer { background: #2E2229; color: #E9DCE2; padding-block: clamp(56px, 6vw, 88px) 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-soft); margin-bottom: 16px; font-weight: 700; }
.footer a { color: #E9DCE2; font-size: 16px; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-links { display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 14px; color: #B3A0A9;
}
.footer-bottom a { font-size: 14px; color: #B3A0A9; }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background-color .2s, transform .2s;
}
.social a:hover { background: var(--hibiscus-btn); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------- utilities -- */
.divider { height: 1px; background: var(--hairline); border: 0; }
.dot { color: var(--gold); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 17px; }
.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: -9999px; z-index: 200;
}
.skip:focus {
  left: 16px; top: 16px; padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--hibiscus-btn); color: #fff; font-family: var(--font-display); font-weight: 600;
}

/* Pull-quote from the books */
.quote {
  font-family: var(--font-body); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.34;
  letter-spacing: -.01em; color: var(--ink);
}
.quote-mark { font-family: var(--font-display); font-size: 3em; line-height: 0; color: var(--gold); vertical-align: -.28em; }

/* Numbered list, storybook style */
.rules { display: grid; gap: 14px; counter-reset: r; list-style: none; padding: 0; }
.rules li {
  counter-increment: r;
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
}
.rules li::before {
  content: counter(r);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-text);
  font-weight: 800; font-size: 19px;  /* ≥18.66px bold = WCAG large text */
}
/* Bright version for light cards — solid gold discs, like the book pages. */
.rules-bright li::before { background: var(--gold); color: #3A2B33; }
.rules-bright li:nth-child(even)::before { background: var(--hibiscus-soft); color: var(--hibiscus-deep); }

/* Publisher wordmark. Text only — there is no Alaya Books logo file. */
.wordmark {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  font-size: 13px; color: var(--gold-text);
  display: inline-flex; align-items: center; gap: .6em;
}
.wordmark::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold);
}
.wordmark b { font-weight: 800; letter-spacing: .13em; }
.footer .wordmark { color: var(--gold-soft); }

/* Photo / illustration frame */
.frame {
  border-radius: var(--r-media); overflow: hidden;
  box-shadow: var(--shadow-soft); background: var(--paper-2);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.frame img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.frame-wide img { aspect-ratio: 16/10; }
.card-hover:hover .frame, .frame-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

/* Horizontal scroller for spreads */
.scroller {
  display: flex; gap: 20px; overflow-x: auto; padding: 6px 24px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.scroller > * { flex: 0 0 clamp(230px, 32vw, 340px); scroll-snap-align: center; }
@media (min-width: 900px) { .scroller { padding-inline: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); } }

/* Form controls */
.field { display: grid; gap: 8px; }
.label { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.input, .select {
  width: 100%; padding: 13px 16px; font-size: 16px; font-family: var(--font-display); font-weight: 500;
  background: var(--paper-3); border: 1.5px solid var(--hairline); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--hibiscus); box-shadow: 0 0 0 4px var(--hibiscus-soft); }
.select { appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6670' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 17px;
}

/* Segmented option picker (language / format) */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--paper-3); border: 2px solid var(--hairline);
  transition: all .2s var(--ease); min-height: 44px;
}
.seg button:hover:not([disabled]) { border-color: var(--gold); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg button[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Quantity stepper — 44px targets */
.qty { display: inline-flex; align-items: center; border: 2px solid var(--hairline); border-radius: var(--r-pill); background: var(--paper-3); }
.qty button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; font-family: var(--font-display); font-weight: 700; color: var(--ink-soft); }
.qty button:hover { color: var(--hibiscus-deep); }
.qty span { min-width: 34px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }

/* Sticky buy panel */
.buy-panel { position: static; }
@media (min-width: 940px) { .buy-panel { position: sticky; top: 100px; } }

/* Summary table */
.sum { display: grid; gap: 13px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.sum-row .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.sum-total { font-size: 21px; font-weight: 800; padding-top: 14px; border-top: 2px solid var(--hairline); }

/* Progress toward free shipping */
.progress { height: 9px; border-radius: 99px; background: var(--blush-deep); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--hibiscus)); transition: width .5s var(--ease); }

/* Notice / callout */
.notice {
  border-radius: 18px; padding: 16px 20px;
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  font-size: 15.5px; line-height: 1.6;
}
.notice-pink { background: var(--hibiscus-soft); border-left-color: var(--hibiscus); }
.notice-sky  { background: var(--sky-soft);      border-left-color: var(--sky); }

/* Trust strip */
.trust { display: grid; gap: 22px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item > [data-icon] { flex: none; line-height: 0; margin-top: 3px; color: var(--gold-text); }
.band-sky .trust-item > [data-icon] { color: var(--sky-deep); }
.trust-item svg { width: 24px; height: 24px; }
.trust-item b { font-family: var(--font-display); font-size: 16.5px; display: block; }
.trust-item p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

/* ------------------------------------------------------------- reveal fx -- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { animation: fadeUp .85s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.d1{animation-delay:.07s}.d2{animation-delay:.14s}.d3{animation-delay:.21s}
.d4{animation-delay:.28s}.d5{animation-delay:.35s}.d6{animation-delay:.42s}

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