/* ==========================================================================
   Quote Shop — core stylesheet
   Brand packs override the tokens below in brands/<brand>/theme.css.
   Colour slots: primary (main buttons/accents), secondary (warm highlight),
   tertiary, quaternary, accent, soft, highlight (hearts/underlines),
   glow (sparkles), dark (text, dark sections), success, info.
   ========================================================================== */

:root {
  /* Brand colour slots */
  --primary:      #E2557A;
  --primary-soft: #E98AA2;
  --accent:       #F28A5B;
  --secondary:    #F5B841;
  --tertiary:     #4FB3A9;
  --quaternary:   #6C8EBF;
  --dark:         #1F2A44;
  --info:         #3D7FE0;
  --soft:         #B5A8E3;
  --success:      #7FAE3A;
  --success-dark: #5E7F27;
  --highlight:    #EF7FA0;
  --glow:         #FFD84D;
  --earth:        #B9814F;
  --earth-dark:   #7E5531;

  /* Surfaces */
  --bg:     #FFFCF7;
  --bg-alt: #FFF5EA;
  --tint-1: #FDECEF;
  --tint-2: #FFF4D8;
  --tint-3: #E6F4F2;
  --tint-4: #E9F0FB;
  --tint-5: #F1EDFB;
  --white:  #FFFFFF;

  --ink:    var(--dark);
  --ink-2:  #4A5674;
  --ink-3:  #8A93A8;
  --line:   #EFE6DA;

  /* Type (brand packs set the Google Fonts URL in brand.php) */
  --f-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-brush:   'Caveat Brush', 'Fredoka', cursive;
  --f-body:    'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 32px;
  --r-xl: 48px;
  --shadow-sm: 0 2px 6px rgba(28, 43, 74, .06), 0 1px 2px rgba(28, 43, 74, .05);
  --shadow:    0 10px 30px -12px rgba(28, 43, 74, .18), 0 4px 10px -6px rgba(28, 43, 74, .08);
  --shadow-lg: 0 30px 60px -24px rgba(28, 43, 74, .28);
  --wrap: 1240px;
  --ease: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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 { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol.progress, ol.timeline { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--glow); color: var(--dark); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.locked { overflow: hidden; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 820px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; position: relative; }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.stack > * + * { margin-top: 1rem; }

.bg-tint-1  { background: var(--tint-1); }
.bg-tint-3   { background: var(--tint-3); }
.bg-tint-4    { background: var(--tint-4); }
.bg-tint-2 { background: var(--tint-2); }
.bg-tint-5    { background: var(--tint-5); }
.bg-alt  { background: var(--bg-alt); }
.bg-navy   { background: var(--dark); color: #fff; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-body); font-weight: 800; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; background: currentColor; border-radius: 50%; box-shadow: 14px 0 0 var(--secondary), 28px 0 0 var(--tertiary); margin-right: 30px; }
.h-xl { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 600; }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.center .lead { margin-inline: auto; }
.brush { font-family: var(--f-brush); font-weight: 400; letter-spacing: 0; }
.tagline { font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }

/* Rainbow letters — echoes the "Colour" wordmark */
.rainbow .r1 { color: var(--primary); }
.rainbow .r2 { color: var(--accent); }
.rainbow .r3 { color: var(--secondary); }
.rainbow .r4 { color: var(--tertiary); }
.rainbow .r5 { color: var(--quaternary); }
.rainbow .r6 { color: var(--primary-soft); }
.rainbow .rw { white-space: nowrap; display: inline-block; }
.rainbow .rw span { display: inline-block; transition: transform .35s var(--ease); }
.rainbow:hover .rw span { transform: translateY(-4px) rotate(-3deg); }
.rainbow:hover .rw span:nth-child(even) { transform: translateY(2px) rotate(3deg); }

/* Hand-drawn underline */
.squiggle { position: relative; white-space: nowrap; display: inline-block; }
.squiggle::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -.18em; height: .32em;
  background: var(--highlight);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C 30 2, 50 14, 80 8 S 140 2, 198 9' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C 30 2, 50 14, 80 8 S 140 2, 198 9' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}
.squiggle.teal::after { background: var(--tertiary); }

/* Heart divider (from the logo) */
.heart-rule { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 18px auto 0; max-width: 360px; color: var(--highlight); }
.heart-rule::before, .heart-rule::after { content: ''; flex: 1; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--highlight) 60%, #fff) 0 18px, transparent 18px 21px, color-mix(in srgb, var(--highlight) 40%, #fff) 21px 40px); opacity: .9; }
.heart-rule svg { width: 26px; height: 26px; flex: none; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.18); } 20% { transform: scale(1); } 30% { transform: scale(1.12); } 40% { transform: scale(1); } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--dark); --fg: #fff; --sh: color-mix(in srgb, var(--dark) 70%, #000);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.04rem; letter-spacing: .01em;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 5px 0 var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap; position: relative;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sh); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sh); }
.btn svg { width: 20px; height: 20px; }
.btn-primary  { --bg: var(--primary);  --sh: color-mix(in srgb, var(--primary) 72%, #000); }
.btn-tertiary  { --bg: var(--tertiary);  --sh: color-mix(in srgb, var(--tertiary) 72%, #000); }
.btn-secondary   { --bg: var(--secondary);   --fg: var(--dark); --sh: color-mix(in srgb, var(--secondary) 75%, #000); }
.btn-info  { --bg: var(--info);  --sh: color-mix(in srgb, var(--info) 72%, #000); }
.btn-ghost { --bg: #fff; --fg: var(--dark); --sh: var(--line); border: 2px solid var(--dark); box-shadow: 0 5px 0 var(--dark); }
.btn-ghost:hover { box-shadow: 0 7px 0 var(--dark); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow { font-family: var(--f-display); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--dark); border-bottom: 2px solid var(--highlight); padding-bottom: 2px; }
.link-arrow svg { width: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative; transition: background .2s, transform .2s var(--ease); }
.icon-btn:hover { background: var(--tint-1); transform: rotate(-6deg) scale(1.06); }
.icon-btn svg { width: 23px; height: 23px; }
.count-bubble {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--primary); color: #fff; border-radius: 999px; border: 2px solid #fff;
  font: 800 .7rem/16px var(--f-body); text-align: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.count-bubble.show { transform: scale(1); }
.count-bubble.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ---------- Announcement bar ---------- */
.announce { background: var(--dark); color: #fff; font-size: .86rem; font-weight: 700; overflow: hidden; }
.announce-track { display: flex; gap: 48px; padding: 9px 0; width: max-content; animation: marquee 38s linear infinite; }
.announce-track span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.announce-track span::before { content: '✦'; color: var(--glow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 251, 244, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(28, 43, 74, .3); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img.mark { width: 82px; transition: transform .4s var(--ease); }
.brand img.word { width: 168px; }
.brand:hover img.mark { transform: rotate(-8deg) scale(1.08); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 500; font-size: 1.03rem; position: relative;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--tint-1); }
.main-nav a[aria-current="page"] { color: var(--primary); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.menu-toggle { display: none; }

/* Mobile nav */
@media (max-width: 960px) {
  .header-inner { height: 72px; gap: 8px; }
  .brand img.mark { width: 58px; }
  .brand img.word { width: 124px; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0; background: var(--bg);
    padding: 12px 16px 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease-out);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: 1.25rem; padding: 14px 18px; }
  .main-nav a[aria-current="page"]::after { left: auto; right: 22px; top: 50%; margin-top: -3px; }
}
@media (max-width: 420px) { .brand img.word { width: 104px; } .brand img.mark { width: 48px; } .icon-btn { width: 40px; height: 40px; } }

/* ---------- Decorative sparkles & dots ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.spark { width: 28px; height: 28px; color: var(--glow); animation: twinkle 3.2s ease-in-out infinite; }
.spark.teal { color: var(--tertiary); }
.spark.pink { color: var(--highlight); }
.spark.blue { color: var(--info); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tertiary); animation: float 6s ease-in-out infinite; }
.dot.pink { background: var(--highlight); } .dot.coral { background: var(--accent); } .dot.sun { background: var(--secondary); } .dot.lilac { background: var(--soft); }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(45deg); opacity: .55; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Wavy edges */
.wave-top, .wave-bottom { position: absolute; left: 0; right: 0; height: 40px; z-index: 1; color: var(--bg); }
.wave-top { top: -1px; } .wave-bottom { bottom: -1px; transform: rotate(180deg); }
.wave-top svg, .wave-bottom svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: auto -10% -40% 40%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--highlight) 22%, transparent), transparent 70%), radial-gradient(closest-side at 70% 40%, color-mix(in srgb, var(--tertiary) 20%, transparent), transparent 70%);
  z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .brush { font-size: 1.12em; display: inline-block; transform: rotate(-3deg); }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.hero-proof { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .95rem; color: var(--ink-2); }
.avatars { display: flex; }
.avatars span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg); display: grid; place-items: center; font-size: 1.1rem; margin-left: -10px; }
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--secondary); letter-spacing: 2px; font-size: 1rem; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 600px; margin-inline: auto; width: 100%; }
.hero-blob { position: absolute; inset: 6%; background: var(--tint-1); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; animation: morph 14s ease-in-out infinite; }
.hero-blob.b2 { inset: 14% 2% 0 18%; background: var(--tint-3); animation-delay: -5s; opacity: .8; }
@keyframes morph { 0%, 100% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; } 50% { border-radius: 42% 58% 40% 60% / 60% 40% 60% 40%; } }
.polaroid {
  position: absolute; background: #fff; padding: 10px 10px 40px; border-radius: 14px; box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease); will-change: transform;
}
.polaroid img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--f-brush); font-size: 1.35rem; color: var(--dark); }
.polaroid.p1 { width: 52%; left: 4%; top: 10%; transform: rotate(-7deg); z-index: 2; }
.polaroid.p2 { width: 46%; right: 2%; top: 2%; transform: rotate(6deg); z-index: 1; }
.polaroid.p3 { width: 48%; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.hero-art:hover .polaroid.p1 { transform: rotate(-10deg) translate(-10px, -6px); }
.hero-art:hover .polaroid.p2 { transform: rotate(9deg) translate(10px, -8px); }
.hero-art:hover .polaroid.p3 { transform: rotate(1deg) translate(6px, 8px); }
.tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: color-mix(in srgb, var(--secondary) 55%, transparent); transform: rotate(-4deg); border-radius: 3px; }
.p2 .tape { background: color-mix(in srgb, var(--tertiary) 60%, transparent); transform: rotate(5deg); }
.p3 .tape { background: color-mix(in srgb, var(--highlight) 55%, transparent); }
.hero-nest { position: absolute; left: -2%; bottom: 4%; width: 34%; z-index: 4; filter: drop-shadow(0 12px 14px rgba(28, 43, 74, .18)); animation: float 7s ease-in-out infinite; }
.hero-sticker {
  position: absolute; z-index: 5; top: 0; left: 4%; width: 112px; height: 112px; border-radius: 50%;
  background: var(--secondary); color: var(--dark); display: grid; place-items: center; text-align: center;
  font-family: var(--f-display); font-weight: 600; line-height: 1.05; font-size: .95rem;
  box-shadow: 0 0 0 6px #fff, var(--shadow); transform: rotate(12deg);
  animation: spin-slow 22s linear infinite;
}
.hero-sticker b { display: block; font-size: 1.7rem; }
@keyframes spin-slow { from { transform: rotate(12deg); } 50% { transform: rotate(-8deg) scale(1.04); } to { transform: rotate(12deg); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas, .hero-proof { justify-content: center; }
  .hero-art { max-width: 480px; }
  .hero .eyebrow::before { display: none; }
}

/* ---------- Theme marquee ---------- */
.ticker { background: #fff; border-block: 2px dashed var(--line); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 42px; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-family: var(--f-brush); font-size: clamp(1.6rem, 3vw, 2.3rem); white-space: nowrap; display: inline-flex; align-items: center; gap: 42px; transition: transform .3s var(--ease); }
.ticker-track a:hover { transform: scale(1.08) rotate(-2deg); }
.ticker-track a::after { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--spark-mask) center / contain no-repeat; mask: var(--spark-mask) center / contain no-repeat; opacity: .6; }
:root { --spark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.4 5.6 11.2 12 12-6.4.8-11.2 5.6-12 12-.8-6.4-5.6-11.2-12-12C6.4 11.2 11.2 6.4 12 0z'/%3E%3C/svg%3E"); }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 60px); position: relative; z-index: 2; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head.split .lead { margin-bottom: 0; }

/* ---------- Steps (Create. Paint. Display. Treasure.) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 2; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--r-lg); padding: 34px 26px 30px; text-align: center; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s;
}
.step:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow); }
.step:nth-child(even):hover { transform: translateY(-8px) rotate(1deg); }
.step-icon { width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 34% 66% 58% 42% / 44% 40% 60% 56%; display: grid; place-items: center; background: var(--c); transition: border-radius .6s; }
.step:hover .step-icon { border-radius: 60% 40% 38% 62% / 58% 62% 38% 42%; }
.step-icon svg { width: 46px; height: 46px; color: #fff; }
.step h3 { font-size: 1.55rem; margin-bottom: 8px; color: var(--c-d, var(--dark)); }
.step p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 16px; left: 18px; font: 600 .85rem var(--f-display); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink-3); }
.step:not(:last-child)::after {
  content: ''; position: absolute; right: -24px; top: 72px; width: 26px; height: 20px; z-index: 3;
  background: var(--highlight);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M2 12c6-6 12-6 20-2m0 0-5-6m5 6-6 4' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M2 12c6-6 12-6 20-2m0 0-5-6m5 6-6 4' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Explorer section (photo with hotspots) ---------- */
.kit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kit-photo { position: relative; border-radius: var(--r-xl); overflow: visible; }
.kit-photo > img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; }
.hotspot {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: #fff; color: var(--primary); display: grid; place-items: center; z-index: 3;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .7), var(--shadow); font: 700 1.25rem var(--f-display);
  animation: ping 2.2s infinite; transition: transform .25s var(--ease), background .2s, color .2s;
}
.hotspot:hover, .hotspot.active { transform: scale(1.18); background: var(--primary); color: #fff; animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .85), var(--shadow); } 70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), var(--shadow); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), var(--shadow); } }
.kit-list li {
  display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r); cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.kit-list li + li { margin-top: 6px; }
.kit-list li:hover, .kit-list li.active { background: #fff; transform: translateX(6px); box-shadow: var(--shadow-sm); }
.kit-list .num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 600 1.1rem var(--f-display); }
.kit-list h4 { font-size: 1.12rem; margin: 0; }
.kit-list p { margin: 0; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) { .kit-grid { grid-template-columns: 1fr; } }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.card {
  --c: var(--primary);
  background: #fff; border-radius: var(--r-lg); padding: 12px 12px 18px; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 40px -22px color-mix(in srgb, var(--c) 70%, transparent), var(--shadow-sm); }
.card-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); display: block; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s var(--ease-out); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.06); }
.card:hover .card-media img.alt { opacity: 1; }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  background: var(--c); color: #fff; font: 600 .8rem var(--f-display); letter-spacing: .02em;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12); transform: rotate(-4deg);
}
.wish {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink-3);
  transition: transform .3s var(--ease), color .2s;
}
.wish svg { width: 21px; height: 21px; }
.wish:hover { transform: scale(1.12); color: var(--highlight); }
.wish.on { color: var(--highlight); }
.wish.on svg path { fill: currentColor; }
.wish.on { animation: pop .45s var(--ease); }
.quick-view {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); font: 600 .92rem var(--f-display); text-align: center;
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.card:hover .quick-view, .quick-view:focus-visible { transform: none; }
.card-body { padding: 16px 8px 0; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.38rem; margin: 0 0 2px; color: var(--c); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-tag { color: var(--ink-2); font-size: .92rem; margin: 0 0 14px; line-height: 1.45; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 2; }
.price { font: 600 1.35rem var(--f-display); color: var(--dark); }
.price small { font-size: .7em; color: var(--ink-3); font-weight: 500; }
.paints { display: flex; gap: 4px; }
.paints i { width: 14px; height: 14px; border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 0 0 2px #fff; }
.add-btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--dark) 70%, #000); transition: transform .25s var(--ease), background .2s, box-shadow .2s;
}
.add-btn svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.add-btn:hover { background: var(--c); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000); transform: translateY(-2px); }
.add-btn:hover svg { transform: rotate(90deg); }
.add-btn.done { background: var(--success); box-shadow: 0 4px 0 var(--success-dark); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--ink-3); font-weight: 700; }
.rating .stars { font-size: .85rem; letter-spacing: 1px; }

/* ---------- Colour-the-bird playground ---------- */
.play { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.play-canvas { background: #fff; border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.play-canvas svg { width: 100%; height: auto; cursor: crosshair; }
.play-canvas svg [data-fill] { transition: fill .35s ease; stroke: var(--dark); stroke-width: 3; stroke-linejoin: round; }
.play-canvas svg [data-fill]:hover { filter: brightness(.96); }
.palette { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.pot {
  width: 54px; height: 54px; border-radius: 50%; position: relative; background: var(--p);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), 0 0 0 4px #fff, 0 6px 14px -6px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease);
}
.pot::after { content: ''; position: absolute; top: 9px; left: 12px; width: 12px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: rotate(-20deg); }
.pot:hover { transform: translateY(-4px); }
.pot.active { transform: translateY(-6px) scale(1.1); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), 0 0 0 4px #fff, 0 0 0 7px var(--dark), 0 10px 18px -6px rgba(0, 0, 0, .35); }
.play-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.play-done { position: absolute; top: 18px; right: 18px; background: var(--secondary); color: var(--dark); padding: 6px 14px; border-radius: 999px; font: 600 .9rem var(--f-display); transform: scale(0) rotate(-10deg); transition: transform .4s var(--ease); }
.play-done.show { transform: scale(1) rotate(6deg); }
@media (max-width: 900px) { .play { grid-template-columns: 1fr; } .play-copy { text-align: center; } .palette, .play-actions { justify-content: center; } }

/* ---------- Party banner ---------- */
.banner {
  position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--dark); color: #fff;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; min-height: 420px;
}
.banner-copy { padding: clamp(36px, 6vw, 72px); position: relative; z-index: 2; }
.banner-copy h2 { color: #fff; }
.banner-copy p { color: rgba(255, 255, 255, .78); max-width: 46ch; }
.banner-copy .eyebrow { color: var(--glow); }
.banner-media { position: relative; }
.banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--dark) 0%, transparent 35%); }
.banner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 22px 0 32px; }
.banner-list li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .98rem; }
.banner-list li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tertiary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 860px) { .banner { grid-template-columns: 1fr; } .banner-media { min-height: 280px; order: -1; } .banner-media::before { background: linear-gradient(0deg, var(--dark) 0%, transparent 45%); } }
@media (max-width: 480px) { .banner-list { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: #fff; border-radius: var(--r-lg); padding: 32px 28px 28px; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.quote:nth-child(1) { transform: rotate(-1.2deg); } .quote:nth-child(3) { transform: rotate(1.2deg); }
.quote:hover { transform: rotate(0) translateY(-6px); }
.quote::before { content: '“'; position: absolute; top: -26px; left: 22px; font: 400 6rem/1 var(--f-brush); color: var(--c, var(--primary)); }
.quote p { font-size: 1.05rem; margin-bottom: 20px; }
.quote footer { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: .95rem; }
.quote footer span { display: block; font-weight: 600; color: var(--ink-3); font-size: .85rem; }
.quote .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--c, var(--primary)); color: #fff; display: grid; place-items: center; font: 600 1.1rem var(--f-display); flex: none; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .quote:nth-child(n) { transform: none; } }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery a { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; display: block; }
.gallery a:nth-child(even) { transform: translateY(18px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery a::after { content: ''; position: absolute; inset: 0; background: var(--primary); opacity: 0; transition: opacity .3s; mix-blend-mode: multiply; }
.gallery a:hover img { transform: scale(1.1) rotate(2deg); }
.gallery a:hover::after { opacity: .25; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--secondary); border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { margin: 0; color: color-mix(in srgb, var(--dark) 80%, var(--secondary)); }
.newsletter .bird { position: absolute; width: 130px; right: 4%; top: -6px; transform: scaleX(-1) rotate(-6deg); animation: hop 4s ease-in-out infinite; }
@keyframes hop { 0%, 80%, 100% { transform: scaleX(-1) translateY(0) rotate(-6deg); } 85% { transform: scaleX(-1) translateY(-14px) rotate(-10deg); } 90% { transform: scaleX(-1) translateY(0) rotate(-6deg); } 95% { transform: scaleX(-1) translateY(-8px) rotate(-8deg); } }
.inline-form { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.inline-form input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 18px; outline: none; font-weight: 600; }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; text-align: center; } .newsletter .bird { width: 90px; } }
@media (max-width: 440px) { .inline-form { flex-direction: column; border-radius: var(--r); } .inline-form input { text-align: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .8); padding: 90px 0 30px; margin-top: clamp(60px, 8vw, 110px); position: relative; }
.site-footer .wave-top { color: var(--bg); top: -1px; height: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 220px; background: var(--bg); padding: 16px 20px; border-radius: var(--r); margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.site-footer li + li { margin-top: 9px; }
.site-footer a { transition: color .2s; font-size: .97rem; }
.site-footer a:hover { color: var(--glow); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: background .2s, transform .25s var(--ease); }
.socials a:hover { background: var(--primary); color: #fff; transform: translateY(-3px) rotate(-8deg); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .87rem; }
.footer-bottom .tagline { color: var(--glow); font-size: .78rem; }
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); text-align: center; overflow: hidden; }
.page-hero .lead { margin-inline: auto; }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--ink-3); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--primary); }
.crumbs span::before { content: '/'; margin-right: 8px; opacity: .5; }
.crumbs.left { justify-content: flex-start; }

/* ---------- Shop ---------- */
.shop-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 30px; position: sticky; top: 84px; z-index: 20; padding: 14px 0; background: var(--bg); }
@media (max-width: 960px) { .shop-bar { top: 72px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line);
  font: 600 .95rem var(--f-display); display: inline-flex; gap: 6px; align-items: center;
  transition: background .2s, border-color .2s, transform .25s var(--ease), color .2s;
}
.chip:hover { border-color: var(--highlight); transform: translateY(-2px); }
.chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip .n { font-size: .78rem; opacity: .6; }
.shop-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field-pill { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 0 16px; height: 46px; transition: border-color .2s; }
.field-pill:focus-within { border-color: var(--info); }
.field-pill svg { width: 18px; color: var(--ink-3); flex: none; }
.field-pill input, .field-pill select { border: 0; outline: none; background: none; font-weight: 700; font-size: .95rem; min-width: 0; }
.field-pill input { width: 180px; }
.field-pill select { cursor: pointer; padding-right: 4px; }
.result-count { color: var(--ink-3); font-weight: 700; font-size: .92rem; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 70px 20px; display: none; }
.empty-state.show { display: block; }
.empty-state img { width: 160px; margin: 0 auto 20px; opacity: .9; }
.card.hide { display: none; }
.card.enter { animation: card-in .5s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.pdp-gallery { position: sticky; top: 110px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp-thumbs button { border-radius: 16px; overflow: hidden; aspect-ratio: 1; border: 3px solid transparent; transition: border-color .2s, transform .25s var(--ease); background: var(--bg-alt); }
.pdp-thumbs button:hover { transform: scale(1.05); }
.pdp-thumbs button.active { border-color: var(--c, var(--primary)); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); box-shadow: var(--shadow); cursor: zoom-in; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out, opacity .3s; }
.pdp-main.zoom img { transform: scale(2); }
.pdp-main .card-badge { font-size: .95rem; padding: 8px 16px; top: 18px; left: 18px; }
.pdp-info h1 { color: var(--c); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 6px; }
.pdp-info .tag { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 18px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 22px; }
.pdp-price .price { font-size: 2.2rem; }
.pdp-price .note { color: var(--success-dark); font-weight: 800; font-size: .9rem; }
.pdp-block { padding: 22px 0; border-top: 2px dashed var(--line); }
.pdp-block h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.piece-list { display: flex; flex-wrap: wrap; gap: 8px; }
.piece-list li { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .93rem; display: inline-flex; gap: 8px; align-items: center; }
.piece-list li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.paint-row { display: flex; gap: 14px; }
.paint-row .pot { width: 46px; height: 46px; pointer-events: none; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty { display: flex; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 999px; height: 56px; }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; color: var(--ink-2); border-radius: 999px; }
.qty button:hover { color: var(--primary); }
.qty input { width: 40px; text-align: center; border: 0; outline: none; font-weight: 800; font-size: 1.1rem; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 40px; } .qty.sm button { width: 34px; font-size: 1.1rem; } .qty.sm input { width: 28px; font-size: .95rem; }
.buy-row .btn { flex: 1; min-width: 200px; height: 56px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.perks div { background: #fff; border-radius: var(--r); padding: 14px 10px; text-align: center; font-size: .84rem; font-weight: 700; color: var(--ink-2); line-height: 1.35; }
.perks svg { width: 26px; height: 26px; margin: 0 auto 6px; color: var(--c, var(--primary)); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .pdp-gallery { position: static; grid-template-columns: 1fr; } .pdp-thumbs { flex-direction: row; order: 2; overflow-x: auto; } .pdp-thumbs button { width: 74px; flex: none; } }

/* Accordion */
.accordion details { background: #fff; border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s; }
.accordion details[open] { box-shadow: var(--shadow); }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font: 600 1.12rem var(--f-display); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; position: absolute; right: 20px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--tint-1); color: var(--primary); display: grid; place-items: center; font-size: 1.4rem; transition: transform .35s var(--ease), background .2s; }
.accordion details[open] summary::after { transform: rotate(135deg); background: var(--primary); color: #fff; }
.accordion .acc-body { padding: 0 24px 22px; color: var(--ink-2); }
.accordion .acc-body p:last-child { margin: 0; }

.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.care-grid div { display: flex; gap: 10px; align-items: center; font-size: .9rem; font-weight: 700; }
.care-grid i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ci); color: #fff; font-style: normal; }
.care-grid i svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .care-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(28, 43, 74, .45); z-index: 90; opacity: 0; visibility: hidden; transition: .3s; backdrop-filter: blur(3px); }
.overlay.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 100;
  transform: translateX(105%); transition: transform .45s var(--ease-out); display: flex; flex-direction: column;
  border-radius: var(--r-lg) 0 0 var(--r-lg); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 2px dashed var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.drawer-head h3 small { font: 700 .85rem var(--f-body); color: var(--ink-3); }
.ship-meter { padding: 16px 24px; background: var(--tint-3); font-size: .9rem; font-weight: 700; }
.ship-meter .bar { height: 10px; border-radius: 10px; background: #fff; margin-top: 8px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--tertiary), var(--success)); transition: width .6s var(--ease-out); }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; animation: card-in .4s var(--ease) both; }
.line-item img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.line-item h4 { font-size: 1.05rem; margin: 0 0 6px; }
.line-item h4 a:hover { color: var(--primary); }
.line-item .lp { font: 600 1.05rem var(--f-display); text-align: right; }
.remove { font-size: .8rem; font-weight: 800; color: var(--ink-3); text-decoration: underline; margin-top: 6px; display: block; margin-left: auto; }
.remove:hover { color: var(--primary); }
.drawer-empty { text-align: center; padding: 50px 10px; }
.drawer-empty img { width: 150px; margin: 0 auto 14px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 2px dashed var(--line); background: #fff; }
.totals { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 4px; }
.totals.was { font-weight: 700; color: var(--ink-3); font-size: .9rem; }
.bulk-note { background: #E7F4F1; color: #2f6b62; padding: 10px 12px; border-radius: 12px; font-size: .9rem; margin: 8px 0; }
.bulk-hint { background: var(--bg-alt); padding: 10px 12px; border-radius: 12px; font-size: .9rem; margin: 8px 0; }
.bulk-each { display: block; margin-top: 4px; }
.account-invite { max-width: 520px; margin: 40px auto 0; text-align: left; }
.account-invite h2 { margin-top: 0; }
.line-item .lp s.was { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.totals.big { font: 600 1.4rem var(--f-display); margin: 6px 0 16px; }
.fine { font-size: .84rem; color: var(--ink-3); }

/* ---------- Modal (quick view / search) ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-box {
  background: var(--bg); border-radius: var(--r-xl); width: min(920px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: var(--shadow-lg); position: relative; transform: translateY(30px) scale(.96); opacity: 0; transition: .4s var(--ease);
}
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: #fff; box-shadow: var(--shadow-sm); }
/* The photo never sets the size: the text column keeps a comfortable width and the photo scales
   (up or down, whole photo visible) to fill the space beside it, whatever its shape. */
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); align-items: stretch; }
.qv-media { position: relative; min-height: 340px; background: var(--bg-alt); overflow: hidden; }
.qv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.qv-info { padding: 40px 34px; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.qv-info h2 { color: var(--c); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 4px; }
@media (max-width: 720px) {
  .qv { grid-template-columns: minmax(0, 1fr); }
  .qv-media { min-height: 0; aspect-ratio: 4 / 3; max-height: 45vh; width: 100%; }
  .qv-info { padding: 26px 22px 30px; }
}

.search-box { padding: 30px; width: min(720px, 100%); align-self: start; margin-top: 8vh; }
.search-input { display: flex; gap: 12px; align-items: center; border-bottom: 3px solid var(--dark); padding-bottom: 12px; margin-right: 50px; }
.search-input svg { width: 28px; color: var(--primary); flex: none; }
.search-input input { flex: 1; border: 0; outline: none; background: none; font: 600 1.6rem var(--f-display); min-width: 0; }
.search-results { margin-top: 20px; display: grid; gap: 6px; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); transition: background .2s; }
.search-results a:hover, .search-results a.focus { background: #fff; }
.search-results img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.search-results b { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; display: block; }
.search-results span { font-size: .88rem; color: var(--ink-3); }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast {
  background: var(--dark); color: #fff; padding: 12px 20px 12px 12px; border-radius: 999px; display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-lg); pointer-events: auto;
  animation: toast-in .45s var(--ease) both;
}
.toast img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.toast .ti { width: 38px; height: 38px; border-radius: 50%; background: var(--success); display: grid; place-items: center; }
.toast a { color: var(--glow); text-decoration: underline; margin-left: 6px; }
.toast.out { animation: toast-out .35s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(14px) scale(.95); } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.field label .opt { color: var(--ink-3); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg);
  font-weight: 600; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--info); background: #fff; box-shadow: 0 0 0 4px rgba(86, 141, 224, .15); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--primary); background: #fff7f8; }
.field .err { display: none; color: #d0476a; font-size: .84rem; font-weight: 700; margin-top: 6px; }
.field.error .err { display: block; }
.field.error { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 3px; flex: none; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--bg); transition: border-color .2s, background .2s; }
.radio-card:has(input:checked) { border-color: var(--dark); background: #fff; }
.radio-card input { accent-color: var(--primary); width: 20px; height: 20px; }
.radio-card b { display: block; font-family: var(--f-display); font-weight: 600; }
.radio-card span { font-size: .87rem; color: var(--ink-3); }
.radio-card .rp { margin-left: auto; font: 600 1.05rem var(--f-display); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: card-in .5s var(--ease) both; }
.form-success img { width: 160px; margin: 0 auto 14px; }
form.sent { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.info-cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.info-card:hover { transform: translateX(6px); }
.info-card i { flex: none; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--c); color: #fff; }
.info-card i svg { width: 24px; height: 24px; }
.info-card b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; }
.info-card span { color: var(--ink-2); font-size: .94rem; }
.map-card { margin-top: 14px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint-3); position: relative; display: grid; place-items: center; text-align: center; box-shadow: var(--shadow-sm); }
.map-card svg.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: relative; z-index: 2; background: #fff; padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow); font-weight: 800; font-size: .92rem; }
.map-pin img { width: 70px; margin: 0 auto 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.photo-stack { position: relative; aspect-ratio: 1; }
.photo-stack img { position: absolute; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); object-fit: cover; border: 8px solid #fff; }
.photo-stack img:nth-child(1) { width: 70%; aspect-ratio: 1; left: 0; top: 0; transform: rotate(-4deg); }
.photo-stack img:nth-child(2) { width: 56%; aspect-ratio: 1; right: 0; bottom: 0; transform: rotate(5deg); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: #fff; border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.value::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .14; right: -40px; bottom: -40px; transition: transform .5s var(--ease); }
.value:hover::after { transform: scale(1.6); }
.value .emo { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.value h3 { font-size: 1.4rem; }
.value p { color: var(--ink-2); margin: 0; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: tl; }
.timeline li { position: relative; padding-top: 70px; text-align: center; }
.timeline li::before { counter-increment: tl; content: counter(tl); position: absolute; top: 0; left: 50%; margin-left: -28px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 600 1.5rem var(--f-display); box-shadow: 0 0 0 8px var(--bg); z-index: 2; }
.timeline li::after { content: ''; position: absolute; top: 27px; left: 50%; width: calc(100% + 20px); border-top: 3px dashed var(--line); z-index: 1; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.25rem; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f-display); color: var(--c); }
.stat span { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; }
  .values { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; } .timeline li::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 30px; }
}

/* ---------- Parties ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier { background: #fff; border-radius: var(--r-xl); padding: 36px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; border: 3px solid transparent; transition: transform .4s var(--ease); }
.tier:hover { transform: translateY(-8px); }
.tier.pop { border-color: var(--primary); box-shadow: var(--shadow); }
.tier .flag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: var(--primary); color: #fff; padding: 6px 16px; border-radius: 999px; font: 600 .88rem var(--f-display); white-space: nowrap; }
.tier .emo { font-size: 2.6rem; }
.tier h3 { font-size: 1.6rem; margin: 10px 0 4px; color: var(--c); }
.tier .tp { font: 600 2.6rem var(--f-display); margin: 10px 0 2px; }
.tier .tp small { font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.tier ul { margin: 18px 0 26px; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; font-weight: 600; font-size: .96rem; }
.tier li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 900; margin-top: 2px; }
.tier .btn { margin-top: auto; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.occasion { border-radius: var(--r-lg); padding: 28px 22px; text-align: center; background: var(--c); transition: transform .35s var(--ease); }
.occasion:hover { transform: rotate(-2deg) scale(1.03); }
.occasion .emo { font-size: 2.8rem; display: block; margin-bottom: 8px; }
.occasion h3 { font-size: 1.3rem; margin-bottom: 4px; }
.occasion p { margin: 0; font-size: .93rem; color: var(--ink-2); }
@media (max-width: 860px) { .occasions { grid-template-columns: 1fr 1fr; } }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(26px, 4vw, 50px); align-items: start; }
.summary { position: sticky; top: 110px; }
.summary .line-item { grid-template-columns: 64px 1fr auto; animation: none; }
.summary .line-item img { width: 64px; height: 64px; }
.thumb-wrap { position: relative; }
.thumb-wrap b { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--dark); color: #fff; font-size: .74rem; display: grid; place-items: center; }
.promo { display: flex; gap: 8px; margin: 18px 0; }
.promo input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); font-weight: 700; outline: none; }
.promo input:focus { border-color: var(--info); }
.form-step { margin-bottom: 26px; }
.form-step h2 { font-size: 1.5rem; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.form-step h2 i { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 1rem; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; } .reveal[data-delay="4"] { transition-delay: .4s; }

/* Confetti */
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; z-index: 300; pointer-events: none; border-radius: 2px; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; transform: translateY(120px); transition: transform .4s var(--ease); }
.to-top.show { transform: none; }
.to-top img { width: 40px; }
.to-top:hover img { animation: hop-up .6s var(--ease); }
@keyframes hop-up { 50% { transform: translateY(-6px); } }

@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; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 640px) {
  .shop-bar { position: static; }
  .chips[data-chips] { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  .chips[data-chips]::-webkit-scrollbar { display: none; }
  .chips[data-chips] .chip { flex: none; }
  .shop-tools, .shop-tools .field-pill { width: 100%; }
  .field-pill input { width: 100%; }
  .buy-row .btn { min-width: 0; }
}

/* ==========================================================================
   Accounts, order tracking & online documents
   ========================================================================== */
.flash { padding: 14px 0; font-weight: 800; text-align: center; background: var(--tint-3); color: #2f6b62; animation: card-in .4s var(--ease) both; }
.flash-error { background: var(--tint-1); color: #b23a5a; }
.flash-info { background: var(--tint-4); color: #34528a; }
.form-error { background: var(--tint-1); color: #b23a5a; font-weight: 800; padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px; }
.nav-account { display: none; }
@media (max-width: 960px) { .nav-account { display: block; } .hide-sm { display: none; } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font: 700 .8rem var(--f-body); white-space: nowrap; color: var(--b); background: color-mix(in srgb, var(--b) 14%, #fff); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-action { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--b, var(--primary)); color: #fff; }

.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.account-side { position: sticky; top: 110px; background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.account-hello { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; margin-bottom: 12px; border-bottom: 2px dashed var(--line); }
.account-hello b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.account-hello span { font-size: .82rem; color: var(--ink-3); word-break: break-all; }
.ava { width: 46px; height: 46px; border-radius: 50%; background: var(--c, var(--primary)); color: #fff; display: grid; place-items: center; font: 600 1.2rem var(--f-display); flex: none; }
.account-side nav a, .account-side nav button { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 14px; font-weight: 700; transition: background .2s; }
.account-side nav a:hover, .account-side nav button:hover { background: var(--bg); }
.account-side nav a.active { background: var(--tint-1); color: color-mix(in srgb, var(--primary) 75%, #000); }
.account-cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .account-grid, .account-cols { grid-template-columns: 1fr; } .account-side { position: static; } }

.order-list { display: grid; gap: 12px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.order-row:hover { transform: translateX(6px); }
.order-row b { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; display: block; }
.order-row-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover b { color: var(--primary); }
.doc-row > span:last-child { display: flex; gap: 10px; align-items: center; font-weight: 800; }

.progress { display: flex; gap: 0; margin: 0 0 26px; counter-reset: none; }
.progress li { flex: 1; text-align: center; font-size: .84rem; font-weight: 800; color: var(--ink-3); position: relative; }
.progress li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: #fff; border: 3px solid var(--line); font-family: var(--f-display); position: relative; z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done, .progress li.now { color: var(--dark); }
.progress li.done span { background: var(--tertiary); border-color: var(--tertiary); color: #fff; }
.progress li.done::before, .progress li.now::before { background: var(--tertiary); }
.progress li.now span { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--tint-1); }
@media (max-width: 560px) { .progress li { font-size: .7rem; } }

.timeline-mini li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line); font-size: .9rem; position: relative; }
.timeline-mini li::before { content: ''; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--highlight); }

.doc-actions { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.doc-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.accept-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--tint-3); border-radius: var(--r-lg); padding: 18px 22px; margin-bottom: 20px; }
.accept-bar p { margin: 0; max-width: 56ch; }
.doc-paper { padding: clamp(18px, 4vw, 44px); overflow-x: auto; }
.doc-paper .doc { font-size: 13px; min-width: 560px; }
.auth-wrap { overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal { font-size: 1rem; }
.legal h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; scroll-margin-top: 110px; }
.legal h2:first-of-type { margin-top: 1.4em; }
.legal ul { list-style: none; padding: 0; margin: 0 0 1em; }
.legal li { position: relative; padding-left: 26px; margin-bottom: .6em; color: var(--ink-2); }
.legal li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--highlight); }
.legal p { color: var(--ink-2); }
.legal b { color: var(--dark); }
.legal a { color: var(--info); text-decoration: underline; font-weight: 700; }
.legal code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.legal-toc a { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line); font: 600 .88rem var(--f-display); color: var(--dark); text-decoration: none; }
.legal-toc a:hover { border-color: var(--highlight); }
.ship-meter { line-height: 1.45; }

/* ==========================================================================
   Template components (brand-neutral)
   ========================================================================== */
/* Header: single logo image (brand.php logo.header) or text name */
.brand img.logo { height: 64px; width: auto; border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.brand:hover img.logo { transform: rotate(-2deg) scale(1.03); }
.brand-name { font: 700 1.5rem var(--f-display); color: var(--dark); }
@media (max-width: 960px) { .brand img.logo { height: 48px; } }
@media (max-width: 420px) { .brand img.logo { height: 40px; } }

/* Hero: optional banner image behind the polaroids */
.hero-banner { position: absolute; left: 0; right: 0; top: 8%; margin: 0; z-index: 1; transform: rotate(-3deg); }
.hero-banner img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 6px solid #fff; }

/* Split section */
.split-img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; }
.feature-list { display: grid; gap: 14px; margin: 22px 0 28px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list i { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--tint-1); color: var(--primary); font-style: normal; }
.feature-list li:nth-child(4n+2) i { background: var(--tint-2); color: color-mix(in srgb, var(--secondary) 70%, #000); }
.feature-list li:nth-child(4n+3) i { background: var(--tint-3); color: var(--tertiary); }
.feature-list li:nth-child(4n+4) i { background: var(--tint-4); color: var(--info); }
.feature-list i svg { width: 28px; height: 28px; }
.feature-list b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; }
.feature-list span { color: var(--ink-2); font-size: .95rem; }
.feature-list.compact { gap: 12px; margin: 10px 0 0; }
.feature-list.compact i { width: 40px; height: 40px; border-radius: 12px; }
.feature-list.compact i svg { width: 22px; height: 22px; }
.feature-list.compact b { font-size: 1rem; }
.feature-list.compact span { font-size: .88rem; }

/* File upload drop zone (custom requests) */
.dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 18px; border: 3px dashed var(--line); border-radius: var(--r); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: #fff; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dz-icon { width: 54px; height: 54px; color: var(--primary); display: block; }
.dz-icon svg { width: 100%; height: 100%; }
.dz-list { width: 100%; text-align: left; display: grid; gap: 6px; margin-top: 6px; }
.dz-list li { display: flex; justify-content: space-between; gap: 10px; background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.dz-list li span { color: var(--ink-3); font-weight: 600; }
.field.error .dropzone { border-color: var(--primary); }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: .95rem; }
.detail-list dt { color: var(--ink-3); font-weight: 800; }
.detail-list dd { margin: 0; word-break: break-word; }
.field .dropzone { display: grid; font-weight: 600; margin: 0; }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.post-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16 / 10; background: var(--tint-4); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-media-fallback { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--tint-1), var(--tint-4)); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .82rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 6px; text-transform: uppercase; }
.post-title { font-size: 1.35rem; margin: 0 0 8px; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--ink-2); font-size: .97rem; flex: 1; }
.post-card .link-arrow { align-self: flex-start; }
.lead-post { grid-column: 1 / -1; flex-direction: row; }
.lead-post .post-media { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
.lead-post .post-body { flex: 1; padding: clamp(24px, 4vw, 44px); justify-content: center; }
.lead-post .post-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } .lead-post { flex-direction: column; } .lead-post .post-media { min-height: 220px; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.blog-pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.blog-pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 800; }
.blog-pager a.on { background: var(--dark); color: #fff; border-color: var(--dark); }

.post-head { margin: 10px 0 26px; }
.post-head h1 { margin-bottom: 12px; }
.post-cover { margin: 0 0 32px; }
.post-cover img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.post-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 2px dashed var(--line); }

/* Rich text (blog posts) — also understands Quill's alignment/indent classes */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--dark); margin: 1.8em 0 .4em; }
.prose h2 { font-size: 1.75rem; } .prose h3 { font-size: 1.35rem; } .prose h4 { font-size: 1.12rem; }
.prose a { color: var(--info); text-decoration: underline; font-weight: 700; }
.prose strong, .prose b { color: var(--dark); }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose li + li { margin-top: .35em; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose li[data-list="ordered"] { list-style-type: decimal; }
.prose .ql-ui { display: none; }
.prose blockquote { margin-left: 0; padding: 14px 22px; border-left: 5px solid var(--highlight); background: var(--tint-1); border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--dark); }
.prose pre, .prose .ql-code-block-container { background: var(--dark); color: #E9EEF8; padding: 16px 18px; border-radius: var(--r); overflow-x: auto; font-size: .9rem; }
.prose code { background: var(--tint-4); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-inline: auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-lg); }
.prose hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; } .prose .ql-indent-3 { padding-left: 6em; }
.prose .ql-size-small { font-size: .85em; } .prose .ql-size-large { font-size: 1.3em; } .prose .ql-size-huge { font-size: 1.8em; }

/* Privacy page: analytics on/off */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 800; }
