/* Rosabiel — public site styles (mobile first) */
:root {
  --cream: #F8F1E9;
  --cream-2: #F3E7DC;
  --card: #FFFBF6;
  --blush: #FBEAE6;
  --pink-50: #FBE0DD;
  --pink-100: #F1BFB8;
  --pink: #D4A5A5;
  --pink-deep: #C98A91;
  --peach: #E6A792;
  --brown: #4A2F27;
  --brown-2: #6B4A3E;
  --muted: #9A7F78;
  --line: #EEDDD5;
  --shadow: 0 10px 30px -18px rgba(150, 90, 80, .45);
  --radius: 22px;

  --font-body: "Noto Sans Arabic", "Nunito Sans", system-ui, sans-serif;
  --font-head: "Noto Kufi Arabic", "Marcellus", serif;
  --font-brand: "Marcellus", serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}
:lang(en) {
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-head: "Marcellus", serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
main { flex: 1; width: 100%; max-width: 980px; margin-inline: auto; padding: 0 16px 40px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; font-weight: 600; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { font-weight: 400; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; border-radius: 8px; }

.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { inset-inline-start: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand-link img { height: 32px; width: auto; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: transparent; border: 0; color: var(--brown); cursor: pointer;
  transition: background .25s var(--ease);
}
.icon-btn:hover { background: var(--blush); }

/* ---------- drawer ---------- */
.drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40;
  width: min(86vw, 340px);
  background: var(--card);
  box-shadow: 0 0 60px -20px rgba(74, 47, 39, .35);
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 18px max(18px, env(safe-area-inset-bottom));
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s linear .4s;
  overflow-y: auto;
}
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(74, 47, 39, .28);
  opacity: 0; transition: opacity .35s var(--ease);
}
.drawer-backdrop.show { opacity: 1; }
body.drawer-open { overflow: hidden; }

.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-saved {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-50), var(--blush));
  color: var(--brown); text-decoration: none; font-weight: 600;
  border: 1px solid var(--pink-100);
}
.drawer-saved svg { color: var(--pink-deep); }
.drawer-links { list-style: none; padding: 0; display: grid; gap: 2px; }
.drawer-links a {
  display: block; padding: 11px 12px; border-radius: 12px;
  text-decoration: none; transition: background .2s;
}
.drawer-links a:hover { background: var(--cream); }
.drawer-links a[aria-current="page"] { background: var(--blush); color: var(--pink-deep); font-weight: 600; }
.drawer-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.drawer-lang { border-top: 1px solid var(--line); padding-top: 14px; }
.drawer-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }

.lang-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-switch a {
  flex: 1; min-width: 80px; text-align: center;
  padding: 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  text-decoration: none; font-size: 14px;
  transition: all .2s;
}
.lang-switch a:lang(en) { font-family: "Nunito Sans", system-ui, sans-serif; }
.lang-switch a:hover { border-color: var(--pink); }
.lang-switch a.active { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }

.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px; justify-content: center;
  padding: 8px 12px; border-radius: 999px;
  background: var(--blush); color: var(--brown); text-decoration: none; font-size: 14px;
  transition: background .2s, transform .2s var(--ease);
}
.social a:hover { background: var(--pink-50); transform: translateY(-1px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink-deep), var(--peach));
  color: #fff; box-shadow: 0 12px 26px -12px rgba(201, 138, 145, .9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(201, 138, 145, .95); }
.btn-soft { background: var(--blush); color: var(--brown); }
.btn-soft:hover { background: var(--pink-50); }

/* ---------- home ---------- */
.hero {
  text-align: center; display: grid; justify-items: center; gap: 14px;
  padding: 36px 8px 26px;
}
.hero-mark { width: auto; height: 96px; filter: drop-shadow(0 12px 18px rgba(211, 144, 121, .35)); }
.hero h1 { font-size: clamp(24px, 6.4vw, 38px); max-width: 16em; }
.lead { color: var(--brown-2); max-width: 34em; }
.swatches { display: flex; gap: 8px; margin: 4px 0 8px; }
.swatches span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--card); box-shadow: 0 4px 10px -4px rgba(74, 47, 39, .35);
}
.steps { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 520px; margin: 8px auto 0; }
.step {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
}
.step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--pink-50); color: var(--pink-deep);
}

/* ---------- inner pages ---------- */
.page { padding-top: 28px; }
.page > h1 { font-size: clamp(24px, 6vw, 34px); }
.page.center { text-align: center; display: grid; justify-items: center; gap: 14px; padding-top: 60px; }
.tier-group { margin-top: 28px; }
.tier-title {
  font-size: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; border-radius: 999px; background: var(--blush); color: var(--pink-deep);
}
.brand-grid { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.brand-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-name { font-family: var(--font-brand); font-size: 21px; letter-spacing: .04em; display: block; }
.brand-card p { color: var(--brown-2); font-size: 14.5px; margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 30px; padding: 30px 16px max(28px, env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
  display: grid; justify-items: center; gap: 16px; text-align: center;
}
.footer-logo { width: 140px; height: auto; }
.footer-links { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--brown-2); }
.footer-links a:hover { color: var(--pink-deep); }
.site-footer .lang-switch { max-width: 360px; width: 100%; }
.footer-note { font-size: 13px; color: var(--muted); max-width: 30em; }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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

@media (min-width: 760px) {
  .site-header { padding-inline: 28px; }
  .brand-link img { height: 36px; }
  .hero { padding-top: 60px; }
  .steps { grid-template-columns: repeat(3, 1fr); max-width: 820px; }
  .step { flex-direction: column; text-align: center; }
}

/* ======================================================================
   Quiz + result (stage 6)
   ====================================================================== */
html:not(.js) .needs-js { display: none !important; }
.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; }

.quiz-wrap { max-width: 640px; margin: 0 auto; padding-top: 18px; }
.quiz-progress { height: 8px; border-radius: 99px; background: var(--cream-2); overflow: hidden; margin: 6px 4px; transition: opacity .3s; }
.quiz-progress.empty { opacity: 0; }
.quiz-progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--peach)); transition: width .6s var(--ease); }
.quiz-step-label { font-size: 13px; color: var(--muted); min-height: 1.4em; margin: 0 4px 6px; }

.quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz legend { padding: 0; width: 100%; }
.quiz h2 { font-size: clamp(21px, 5.5vw, 28px); }
.quiz-step { padding: 10px 0 18px; scroll-margin-top: 80px; }
html:not(.js) .quiz-step + .quiz-step { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; }
.quiz.is-js .quiz-step { display: none; }
.quiz.is-js .quiz-step.current { display: block; animation: stepIn .5s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quiz-welcome { text-align: center; display: grid; justify-items: center; gap: 12px; padding-top: 24px; }
.quiz.is-js .quiz-welcome.current { display: grid; }
.quiz-welcome h1 { font-size: clamp(24px, 6.4vw, 34px); }
.quiz-tip { font-size: 14px; color: var(--muted); background: var(--blush); border-radius: 14px; padding: 10px 14px; max-width: 30em; }
.quiz-hint { color: var(--brown-2); font-size: 14.5px; margin: 4px 0 16px; }

/* skin colour cards */
.depth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.depth-card {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 12px;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .2s var(--ease);
}
.depth-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.depth-card input, .tone-option input, .chip-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.depth-swatch { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 12px -8px rgba(74, 47, 39, .5); }
.depth-name { font-size: 14.5px; line-height: 1.35; }
.depth-card:has(input:checked) { border-color: var(--pink-deep); box-shadow: 0 0 0 3px var(--pink-50); }
.depth-card input:checked + .depth-swatch { box-shadow: 0 0 0 2px var(--pink-deep); }
.depth-card:has(input:focus-visible), .tone-option:has(input:focus-visible), .chip-option:has(input:focus-visible) { outline: 2px solid var(--pink-deep); outline-offset: 2px; }
@media (min-width: 620px) {
  .depth-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .depth-card { flex-direction: column; text-align: center; padding: 14px 8px; }
  .depth-swatch { width: 56px; height: 56px; }
}

/* undertone options */
.tone-list { display: grid; gap: 10px; }
.tone-option {
  position: relative; display: flex; gap: 12px; align-items: center; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .25s var(--ease);
}
.tone-option:has(input:checked) { border-color: var(--pink-deep); box-shadow: 0 0 0 3px var(--pink-50); }
.tone-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--brown-2); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tone-warm .tone-dot { background: linear-gradient(135deg, #F3CF94, #E3A76B); }
.tone-cool .tone-dot { background: linear-gradient(135deg, #F4C8CF, #D99AA6); }
.tone-neutral .tone-dot { background: linear-gradient(135deg, #F1D6C2, #D8B397); }
.tone-olive .tone-dot { background: linear-gradient(135deg, #D8CC9C, #A99B67); }
.tone-unsure .tone-dot { background: var(--cream); border-style: dashed; border-color: var(--pink); box-shadow: none; }
.tone-text { display: grid; gap: 2px; }
.tone-text small { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* helper questions */
.help-q { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.help-question { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.help-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option { position: relative; cursor: pointer; }
.chip-option span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; transition: all .2s; }
.chip-option input:checked + span { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }

.quiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.quiz-nav .btn { flex: 1; min-width: 0; }
.quiz-error { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #F8E3E5; color: #8A2E38; font-size: 14px; text-align: center; }

/* ---------- result ---------- */
.result h1 { font-size: clamp(24px, 6vw, 34px); }
.profile-card {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-top: 14px;
}
.profile-swatch { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); grid-row: span 2; }
.profile-facts { display: grid; gap: 4px; }
.profile-facts div { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.profile-facts dt { color: var(--muted); font-size: 13px; min-width: 5.5em; }
.profile-facts dd { font-weight: 600; }
.profile-facts small { font-weight: 400; color: var(--muted); }
.profile-note { grid-column: 2; font-size: 13px; color: var(--muted); }
.tone-pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 14px; background: var(--blush); }
.tone-pill.tone-warm { background: #F7E4D2; color: #8A5328; }
.tone-pill.tone-cool { background: #F6E0E5; color: #8C4A5C; }
.tone-pill.tone-neutral { background: #EFE8E2; color: #6B5B55; }
.tone-pill.tone-olive { background: #ECEBD6; color: #5E6630; }

.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.result-actions .btn { min-height: 44px; padding: 8px 18px; font-size: 14.5px; flex: 1 1 auto; }
.result-actions .btn.done { background: var(--pink-50); border: 1px solid var(--pink-100); }
.toast {
  position: fixed; inset-inline: 16px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; margin: 0 auto; max-width: 420px;
  background: var(--brown); color: #fff; text-align: center; padding: 12px 16px; border-radius: 14px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4);
  animation: stepIn .35s var(--ease) both;
}

.tier-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.chip-btn { font: inherit; font-size: 14px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--brown); cursor: pointer; }
.chip-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }

.match-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.match-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px;
}
.match-card[hidden] { display: none; }
.match-bottle svg { display: block; width: 76px; height: auto; filter: drop-shadow(0 8px 12px rgba(74, 47, 39, .16)); }
.match-top { display: flex; align-items: center; gap: 8px; }
.match-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--pink-50); color: var(--pink-deep); }
.match-brand { font-family: var(--font-brand); font-weight: 400; font-size: 21px; letter-spacing: .03em; margin-top: 6px; }
.match-shade { color: var(--brown-2); font-size: 14.5px; }
.match-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.tier-tag { padding: 2px 10px; border-radius: 999px; background: var(--cream-2); color: var(--brown-2); }
.closeness { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.closeness-very_close { background: #E3F1E6; color: #2C6B3E; }
.closeness-close { background: var(--pink-50); color: #A0636B; }
.closeness-approx { background: #F3E6D6; color: #8A5E33; }

.match-details { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 6px; min-width: 0; }
.match-details summary { cursor: pointer; color: var(--pink-deep); font-weight: 600; font-size: 14.5px; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.match-details summary::-webkit-details-marker { display: none; }
.match-details summary::after { content: "\2304"; transition: transform .25s var(--ease); }
.match-details[open] summary::after { transform: rotate(180deg); }
.match-details dl { display: grid; gap: 4px; margin-top: 6px; font-size: 14px; }
.match-details dl div { display: flex; gap: 8px; min-width: 0; }
.match-details dt { color: var(--muted); flex: 0 0 7em; }
.match-details dd { min-width: 0; overflow-wrap: anywhere; }
.match-details .avail { color: #2C6B3E; font-weight: 600; }
.similar { margin-top: 10px; }
.similar-title { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.similar ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.similar li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.similar-swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }

.compare-panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; margin: 6px 0 14px; }
.compare-panel[hidden] { display: none; }
.compare-panel h2 { font-size: 18px; margin-bottom: 8px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { border-collapse: collapse; min-width: 100%; font-size: 13.5px; }
.compare-table th { text-align: start; color: var(--muted); font-weight: 600; padding: 8px 10px; white-space: nowrap; position: sticky; inset-inline-start: 0; background: var(--card); z-index: 1; }
.compare-table td { text-align: center; padding: 8px 10px; vertical-align: middle; min-width: 104px; border-inline-start: 1px solid var(--line); }
.compare-table td[hidden] { display: none; }
.compare-table td svg { display: block; margin: 0 auto; width: 64px; height: auto; }
.compare-table strong { font-family: var(--font-brand); font-weight: 400; font-size: 15px; }

.empty-tier, .empty-result { text-align: center; color: var(--muted); padding: 22px 10px; }
.empty-result { background: var(--card); border: 1px dashed var(--pink-100); border-radius: 22px; margin-top: 16px; }
.empty-result h2 { color: var(--brown); font-size: 19px; margin-bottom: 6px; }
.disclaimer {
  margin-top: 18px; font-size: 14px; line-height: 1.8; color: var(--brown-2);
  background: var(--blush); border-inline-start: 4px solid var(--pink); border-radius: 14px; padding: 12px 14px;
}

/* ---------- share card (stage 7) ---------- */
.share-card {
  margin-top: 22px; padding: 18px 16px 20px; border-radius: 26px; text-align: center;
  background: linear-gradient(160deg, var(--card), var(--blush)); border: 1px solid var(--pink-100);
  scroll-margin-top: 80px;
}
.share-card h2 { font-size: 21px; }
.share-lead { color: var(--brown-2); font-size: 14.5px; margin-top: 2px; }
.share-preview { margin: 16px auto 14px; width: min(260px, 72%); aspect-ratio: 9 / 16; border-radius: 20px; background: var(--cream-2); display: grid; place-items: center; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(120, 70, 60, .55); }
.share-preview img { width: 100%; height: 100%; object-fit: cover; display: block; animation: stepIn .5s var(--ease) both; }
.share-status { font-size: 14px; color: var(--muted); padding: 10px; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; max-width: 460px; margin: 0 auto; }
.share-actions .btn { min-height: 46px; padding: 8px 10px; font-size: 14.5px; }
.share-actions .btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1FBE5B; }
@media (max-width: 360px) { .share-actions { grid-template-columns: 1fr; } }

/* ======================================================================
   Favourites + saved page (stage 8)
   ====================================================================== */
.fav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: var(--pink-deep); cursor: pointer; flex: none;
  transition: transform .2s var(--ease), background .2s;
}
.fav-btn:hover { background: var(--blush); }
.fav-btn svg { width: 21px; height: 21px; transition: transform .25s var(--ease); }
.fav-btn.is-fav svg { fill: var(--pink-deep); stroke: var(--pink-deep); }
.fav-btn.pulse svg { transform: scale(1.28); }

.icon-btn.has-badge { position: relative; }
.fav-badge {
  position: absolute; top: 2px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--pink-deep); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--cream);
}
.drawer-saved { position: relative; }
.drawer-saved .fav-badge { position: static; margin-inline-start: auto; box-shadow: none; }

.brand-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-card-head .brand-name { flex: 1; min-width: 0; }
.brand-card-head .fav-btn { margin-inline-end: -8px; }

.match-top { position: relative; }
.match-fav { margin-inline-start: auto; width: 34px; height: 34px; }
.match-fav svg { width: 18px; height: 18px; }

/* ---------- saved page ---------- */
.saved-page .lead { margin-bottom: 6px; }
.saved-section { margin-top: 26px; }
.saved-section h2 { font-size: 19px; margin-bottom: 10px; }
.saved-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.saved-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px;
}
.saved-swatch { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.saved-swatch-text {
  display: grid; place-items: center; background: var(--blush); color: var(--pink-deep);
  font-family: var(--font-brand); font-size: 18px; text-transform: uppercase;
}
.saved-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.saved-info strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-info small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-actions { display: flex; gap: 6px; flex: none; }
.saved-actions .btn-mini { padding: 5px 12px; min-height: 32px; font-size: 13px; }
.saved-page .empty { text-align: center; color: var(--muted); padding: 16px; background: var(--card); border: 1px dashed var(--pink-100); border-radius: 16px; font-size: 14.5px; }
.saved-page .all-empty { margin-top: 22px; padding: 30px 16px; }
.clear-data-btn { display: block; margin: 30px auto 0; color: #8A2E38; }
.clear-data-btn:hover { background: #F8E3E5; }

/* ======================================================================
   Stage 9 — brand page, comparisons, articles, static pages, ads
   ====================================================================== */

/* ---------- ad placeholder ---------- */
.ad-slot {
  margin: 26px 0; padding: 14px; border: 1px dashed var(--pink-100); border-radius: 16px;
  background: var(--card); color: var(--muted); font-size: 13px; text-align: center;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
}
.ad-slot-inline { min-height: 60px; margin: 18px 0; }

/* ---------- static pages (about / contact / privacy) ---------- */
.static-page { padding-top: 26px; max-width: 640px; }
.static-page p { margin-bottom: 14px; }
.static-page .callout {
  background: var(--blush); border-inline-start: 4px solid var(--pink); border-radius: 14px;
  padding: 12px 14px; color: var(--brown-2); font-size: 14.5px;
}
.static-social { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.static-social-label { font-size: 13px; color: var(--muted); }

/* ---------- brand detail page ---------- */
.brand-page { padding-top: 26px; }
.brand-page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-page-name { font-family: var(--font-brand); font-size: clamp(26px, 6vw, 36px); font-weight: 400; letter-spacing: .02em; }
.brand-independent-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.brand-page h2 { font-size: 20px; margin-top: 30px; margin-bottom: 4px; }
.shade-group { margin-top: 16px; }
.shade-group-title { font-size: 15px; color: var(--brown-2); margin: 14px 0 8px; }
.shade-tile-grid { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shade-tile {
  display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 12px; position: relative;
}
.shade-tile-bottle svg { display: block; width: 52px; height: auto; }
.shade-tile-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.shade-tile-info strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shade-tile-info span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shade-tile-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.shade-tile-price { color: var(--pink-deep) !important; font-weight: 600; }
.shade-tile-fav { flex: none; width: 34px; height: 34px; }
.shade-tile-fav svg { width: 17px; height: 17px; }
.brand-compare-links { margin-top: 30px; }
.chip-link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--blush); color: var(--pink-deep); text-decoration: none; font-size: 14px; transition: background .2s; }
.chip-link:hover { background: var(--pink-50); }

/* ---------- compare pages ---------- */
.compare-pair-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 18px; }
.compare-pair-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  text-decoration: none; color: var(--brown); font-family: var(--font-brand); font-size: 17px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.compare-pair-link:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.muted-count { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); flex: none; }

.compare-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 10px; }
.compare-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
}
.compare-pair { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pair-card { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pair-card-bottle svg { display: block; width: 58px; height: auto; }
.pair-card-info { display: grid; gap: 2px; min-width: 0; }
.pair-card-info strong { font-family: var(--font-brand); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-card-info span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- articles ---------- */
.article-search { display: flex; gap: 8px; margin: 14px 0; max-width: 480px; }
.article-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.article-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.article-grid { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.article-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-card-link { display: block; text-decoration: none; color: inherit; }
.article-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--cream-2); }
.article-card-img-placeholder { display: flex; align-items: center; justify-content: center; }
.article-card-body { padding: 12px 14px 16px; display: grid; gap: 6px; }
.article-card-body h3 { font-size: 16.5px; font-family: var(--font-head); line-height: 1.4; }
.article-card-body p { font-size: 13.5px; color: var(--brown-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-time { font-size: 12px; color: var(--muted); }
.article-card-fav { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(255, 251, 246, .9); }

.article-page { padding-top: 26px; max-width: 700px; }
.article-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.article-page-head h1 { font-size: clamp(24px, 6vw, 32px); }
.article-page-meta { color: var(--muted); font-size: 13.5px; margin: 4px 0 16px; }
.article-page-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 20px; margin-bottom: 18px; }
.article-body { line-height: 1.9; font-size: 16px; }
.article-body h2 { font-size: 21px; margin: 26px 0 10px; }
.article-body h3 { font-size: 18px; margin: 20px 0 8px; }
.article-body p { margin-bottom: 14px; }
.article-body ul { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 6px; }
.related-articles { margin-top: 36px; }
.related-articles h2 { font-size: 19px; margin-bottom: 12px; }

/* ---------- product photos (studio shot + exact shade swatch) ---------- */
.product-shot { position: relative; display: inline-block; border-radius: 14px; overflow: hidden; background: var(--pink-50); box-shadow: 0 6px 16px rgba(74, 47, 39, .08); vertical-align: middle; }
.product-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-shot-swatch { position: absolute; inset-inline-end: 6px; bottom: 6px; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(74, 47, 39, .25); }
.product-shot-svg { display: inline-block; line-height: 0; }

/* ---------- home banner ---------- */
.home-banner { display: block; max-width: 1100px; margin: 8px auto 28px; padding: 0 16px; }
.home-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 40px rgba(74, 47, 39, .12); }
@media (max-width: 640px) { .home-banner img { aspect-ratio: 1; border-radius: 18px; } }
