/* ============================================================
BeautyMatch. Core styles
============================================================ */:root {
  /* Coral / pink on white. No brown, no purple. */
  --rose-deep:   #BE3B57;   /* deep coral rose: headings, dark sections, primary button */
  --rose-mid:    #D95571;
  --coral:       #FF8674;   /* the signature bright coral */
  --coral-deep:  #D14257;   /* coral pink, dark enough for link text on white */
  --peach:       #FFB9A5;
  --blush:       #FFDCD2;

  --cream:       #FFFFFF;   /* the page is white */
  --cream-2:     #FFF3F0;   /* barely-there coral tint for alternating sections */
  --sand:        #FFDDD5;
  --line:        #FBDFD8;

  --ink:         #35242A;   /* warm near-black */
  --ink-soft:    #7D6068;
  --white:       #FFFFFF;
  --green:       #3F7A5E;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(190,59,87,.06), 0 3px 10px rgba(190,59,87,.06);
  --shadow:    0 2px 6px rgba(190,59,87,.07), 0 12px 32px rgba(190,59,87,.10);
  --shadow-lg: 0 4px 12px rgba(190,59,87,.09), 0 28px 64px rgba(190,59,87,.14);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  color: var(--rose-deep);
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); font-weight: 600; margin-bottom: .3em; }
h2 { font-size: clamp(1.9rem, 4.1vw, 2.9rem); font-weight: 600; margin-bottom: .38em; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); font-weight: 600; }
h4 { font-weight: 600; }

/* Cormorant's italic is the prettiest thing in the family. */
.accent { font-style: italic; }

p { margin: 0 0 1em; }
a { color: var(--coral-deep); }

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral-deep);
  margin-bottom: .9rem;
}

.muted { color: var(--ink-soft); }

.small { font-size:.875rem; }

.tiny { font-size:.78rem; }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform.15s ease, box-shadow.2s ease, background.2s ease, color.2s ease;
  line-height: 1.2;
}

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

.btn-primary { background: var(--rose-deep); color: var(--cream); box-shadow: var(--shadow-sm); }

.btn-primary:hover { background: var(--rose-mid); box-shadow: var(--shadow); }

.btn-ghost { background: transparent; color: var(--rose-deep); border-color: var(--line); }

.btn-ghost:hover { border-color: var(--rose-deep); background: rgba(190,59,87,.04); }

.btn-coral { background: var(--coral); color: #fff; }

.btn-coral:hover { background: var(--coral-deep); }

.btn-sm { padding:.6rem 1.1rem; font-size:.875rem; }

.btn[disabled] { opacity:.38; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose-deep);
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E %3Cdefs%3E %3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E %3Cstop offset='0' stop-color='%23FFE0B0'/%3E %3Cstop offset='.30' stop-color='%23FFAE7B'/%3E %3Cstop offset='.58' stop-color='%23FF8064'/%3E %3Cstop offset='.82' stop-color='%23EE5A63'/%3E %3Cstop offset='1' stop-color='%23C93F6A'/%3E %3C/linearGradient%3E %3Cmask id='m'%3E %3Crect width='32' height='32' fill='%23fff'/%3E %3Crect x='0' y='18.7' width='32' height='1.35' fill='%23000'/%3E %3Crect x='0' y='22.4' width='32' height='1.75' fill='%23000'/%3E %3Crect x='0' y='26.4' width='32' height='2.2' fill='%23000'/%3E %3C/mask%3E %3C/defs%3E %3Ccircle cx='16' cy='16' r='15.4' fill='url(%23g)' mask='url(%23m)'/%3E %3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-links { display: flex; align-items: center; gap: 1.15rem; }

.nav-links a {
  color: var(--rose-deep);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--coral-deep); }

.nav-links a.btn-primary { color: var(--cream); }

.nav-links a.btn-primary:hover { color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--rose-deep); cursor: pointer; padding:.2rem.4rem; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding:.8rem 0; border-bottom: 1px solid var(--line); }

  .nav-links .btn { margin-top:.8rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background:
  radial-gradient(920px 450px at 8% -8%, rgba(245,164,107,.40), transparent 64%),
  radial-gradient(800px 480px at 94% 4%, rgba(242,107,77,.28), transparent 62%),
  var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .accent {
  background: linear-gradient(100deg, var(--rose-deep), var(--coral-deep) 45%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* background-clip:text clips the gradient to the inline box, and a tall
     italic glyph such as the question mark rises past it and loses its top.
     Padding enlarges the background painting area without touching the line
     box, so the layout is unchanged and the glyph paints in full. */
  padding: .12em .08em .04em 0;
}

.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap:.8rem; margin-top: 1.8rem; }

.hero-trust { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem; }

.hero-trust span { font-size:.82rem; color: var(--ink-soft); display: flex; align-items: center; gap:.4rem; }

/* Hero card stack */
.card-stack { position: relative; min-height: 400px; }

.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  width: 260px;
}

.float-card h4 { font-family: var(--font-body); font-size:.95rem; margin: 0 0 .3rem; color: var(--rose-deep); }

.float-card p { font-size:.82rem; color: var(--ink-soft); margin: 0; }

.fc-1 { top: 8px; left: 0; transform: rotate(-3deg); }

.fc-2 { top: 128px; right: 0; transform: rotate(2.5deg); width: 280px; }

.fc-3 { top: 268px; left: 22px; transform: rotate(-1.5deg); width: 290px; }
@media (max-width: 900px) {
  .card-stack { min-height: 0; display: grid; gap:.9rem; }

  .float-card { position: static; width: 100%; transform: none; }
}

.swatch-row { display: flex; gap:.4rem; margin-top:.7rem; }

.swatch {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid rgba(0,0,0,.08);
  flex: 0 0 auto;
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head { max-width: 62ch; margin-bottom: 2.6rem; }

.section-head.center { margin-inline: auto; text-align: center; }

.bg-white { background: var(--white); }

.bg-sand { background: var(--cream-2); }

.bg-rose { background: var(--rose-deep); color: var(--cream-2); }

.bg-rose h2, .bg-rose h3 { color: var(--cream); }

.bg-rose .muted { color: rgba(255,255,255,.84); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform.18s ease, box-shadow.22s ease, border-color.2s ease;
}

.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--coral); }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: var(--cream-2);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; counter-reset: step; }

.step { position: relative; padding-top: 2.9rem; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose-deep); color: var(--cream);
  font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 1.3rem; font-weight: 600;
}

.bg-rose .step::before { background: var(--peach); color: var(--rose-deep); }

/* ---------- Quiz ---------- */
.quiz-shell { padding: 2rem 0 5rem; min-height: 70vh; }

.progress-bar {
  position: sticky; top: 61px; z-index: 40;
  background: var(--cream);
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

.progress-track { height: 7px; background: var(--sand); border-radius: 100px; overflow: hidden; }

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral-deep), var(--coral) 55%, var(--peach));
  border-radius: 100px;
  width: 0%;
  transition: width.4s cubic-bezier(.4,0.2,1);
}

.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom:.55rem; font-size:.8rem; color: var(--ink-soft); }

.q-card { max-width: 800px; margin: 2.6rem auto 0; }

.q-title { margin-bottom:.4rem; }

.q-help { color: var(--ink-soft); font-size:.95rem; margin-bottom: 1.8rem; }

.opts { display: grid; gap:.75rem; }

.opts.cols-2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.opts.cols-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.opt {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color.16s ease, background.16s ease, transform.12s ease, box-shadow.18s ease;
}

.opt:hover { border-color: var(--coral); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.opt.selected { border-color: var(--rose-deep); background: #fff; box-shadow: 0 0 0 3px rgba(190,59,87,.10); }

.opt-check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  margin-top: 2px;
  font-size: .7rem;
  color: transparent;
  background: var(--white);
  transition: all.16s ease;
}

.opt[data-multi="true"].opt-check { border-radius: 6px; }

.opt.selected.opt-check { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }

.opt-body { flex: 1; min-width: 0; }

.opt-label { font-weight: 600; display: block; }

.opt-desc { font-size:.84rem; color: var(--ink-soft); display: block; margin-top:.15rem; line-height: 1.45; }

.opt-emoji { font-size: 1.15rem; line-height: 1; margin-right:.35rem; }

.q-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; }

.helper-box {
  background: var(--cream-2);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .95rem 1.1rem;
  font-size: .86rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.helper-box strong { color: var(--rose-deep); }

/* ---------- Results ---------- */
.results-hero { background: var(--rose-deep); color: var(--cream); padding: clamp(2.5rem,6vw,4rem) 0; }

.results-hero h1 { color: var(--cream); }

.results-hero .muted { color: rgba(255,255,255,.86); }

.results-hero .eyebrow { color: var(--peach); }

.profile-chips { display: flex; flex-wrap: wrap; gap:.5rem; margin-top: 1.4rem; }

.chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 100px;
  padding: .38rem.9rem;
  font-size: .82rem;
  color: var(--cream);
}

.chip-light {
  background: var(--cream-2); border: 1px solid var(--line);
  color: var(--rose-deep); border-radius: 100px;
  padding: .3rem.8rem; font-size:.78rem; font-weight: 500;
}

.routine-step { margin-bottom: 3.2rem; }

.routine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom:.35rem; border-bottom: 1px solid var(--line); padding-bottom:.7rem; }

.routine-head h3 { margin: 0; }

.freq { font-size:.8rem; color: var(--coral-deep); font-weight: 600; background: var(--cream-2); padding:.28rem.8rem; border-radius: 100px; }

.routine-why { font-size:.9rem; color: var(--ink-soft); margin:.8rem 0 1.3rem; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 1.1rem; }

.prod {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.prod.top { border-color: var(--rose-deep); border-width: 1.5px; box-shadow: var(--shadow); }

.top-flag {
  position: absolute; top: -11px; left: 1.35rem;
  background: var(--rose-deep); color: var(--cream);
  font-size: .68rem; font-weight: 700; letter-spacing:.1em; text-transform: uppercase;
  padding: .3rem.75rem; border-radius: 100px;
}

.prod-brand { font-size:.72rem; letter-spacing:.13em; text-transform: uppercase; color: var(--coral-deep); font-weight: 700; }

.prod-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--rose-deep); margin:.3rem 0.1rem; line-height: 1.2; }

.prod-line { font-size:.82rem; color: var(--ink-soft); margin-bottom:.8rem; display: flex; align-items: center; gap:.45rem; }

.line-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: 0 0 auto; }

.prod-why { font-size:.87rem; color: var(--ink); margin: 0 0 .9rem; }

.prod-tags { display: flex; flex-wrap: wrap; gap:.35rem; margin-bottom: 1rem; }

.tag { font-size:.7rem; background: var(--cream-2); color: var(--rose-mid); padding:.22rem.6rem; border-radius: 100px; border: 1px solid var(--line); }

.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap:.8rem; padding-top:.9rem; border-top: 1px solid var(--line); }

.price { font-weight: 600; color: var(--rose-deep); font-size:.95rem; }

.price small { font-weight: 400; color: var(--ink-soft); }

.match-ring { display: flex; align-items: center; gap:.5rem; }

.match-num { font-family: var(--font-body); font-size:.92rem; color: var(--green); font-weight: 700; }

.match-bar { width: 54px; height: 5px; background: var(--sand); border-radius: 100px; overflow: hidden; }

.match-bar i { display: block; height: 100%; background: var(--green); border-radius: 100px; }

.caution {
  background: #FFF6E9;
  border: 1px solid #F3D9B4;
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  font-size: .86rem;
  color: #7A5220;
  margin: 1rem 0;
}

.caution strong { color: #5C3B10; }

/* ---------- Decoder ---------- */
.brand-filter { display: flex; flex-wrap: wrap; gap:.5rem; margin-bottom: 2.2rem; }

.pill {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 100px;
  padding: .5rem 1.1rem;
  font: inherit; font-size:.88rem; font-weight: 500;
  color: var(--rose-deep); cursor: pointer;
  transition: all.15s ease;
}

.pill:hover { border-color: var(--coral); }

.pill.active { background: var(--rose-deep); color: var(--cream); border-color: var(--rose-deep); }

.brand-block { margin-bottom: 3.4rem; }

.brand-title { display: flex; align-items: center; gap:.8rem; flex-wrap: wrap; margin-bottom:.3rem; }

.brand-title h3 { margin: 0; }

.brand-tag { font-size:.7rem; background: var(--rose-deep); color: var(--cream); padding:.25rem.7rem; border-radius: 100px; letter-spacing:.06em; text-transform: uppercase; font-weight: 600; }

.brand-intro { color: var(--ink-soft); font-size:.93rem; margin-bottom: 1.4rem; max-width: 68ch; }

.line-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }

.line-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem 1.3rem;
  border-top: 5px solid var(--c, var(--sand));
}

.line-name { font-weight: 700; color: var(--rose-deep); font-size: 1rem; display: flex; align-items: center; gap:.5rem; margin-bottom:.1rem; }

.line-color { font-size:.74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing:.09em; margin-bottom:.7rem; }

.pick-skip { display: grid; gap:.55rem; margin-top:.8rem; }

.ps { display: flex; gap:.55rem; font-size:.85rem; line-height: 1.5; }

.ps b { flex: 0 0 auto; font-weight: 700; }

.ps.yes b { color: var(--green); }

.ps.no b { color: var(--coral-deep); }

/* ---------- Concerns ---------- */
.concern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; }

.concern {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm);
}

.concern h3 { font-size: 1.2rem; margin-bottom:.5rem; }

.concern ul { margin:.9rem 0 0; padding-left: 1.1rem; font-size:.88rem; color: var(--ink-soft); }

.concern li { margin-bottom:.45rem; }

.concern li b { color: var(--rose-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--rose-deep); color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; font-size:.9rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; } }

.site-footer h4 { color: var(--cream); font-family: var(--font-body); font-size:.82rem; letter-spacing:.13em; text-transform: uppercase; margin-bottom:.9rem; }

.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; display: block; padding:.28rem 0; }

.site-footer a:hover { color: var(--peach); }

.site-footer .logo { color: var(--cream); margin-bottom:.7rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; font-size:.8rem; line-height: 1.7; }

/* ---------- Utils ---------- */
.hidden { display: none !important; }

.fade-in { animation: fade.35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.divider { height: 1px; background: var(--line); margin: 2.5rem 0; border: 0; }

.spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--sand);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin.8s linear infinite;
  margin: 0 auto 1.4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* ---------- Photo intake ---------- */
.rule { display: flex; gap:.9rem; align-items: flex-start; padding:.85rem 0; border-top: 1px solid var(--line); }

.rule:first-of-type { border-top: 0; padding-top: 0; }

.rule-ico { font-size: 1.35rem; line-height: 1.3; flex: 0 0 auto; }

.rule b { color: var(--rose-deep); }

.photo-preview {
  margin: 1.6rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
}

.photo-preview img { width: 100%; max-height: 460px; object-fit: contain; display: block; }

.photo-preview.small-preview img { max-height: 240px; }

.qmetrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap:.7rem; margin-bottom: 1.4rem; }

.qmetric {
  display: flex; align-items: center; gap:.6rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding:.7rem.9rem;
}

.qmetric > span {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  font-size: .72rem; font-weight: 700; color: #fff;
}

.qmetric.ok > span { background: var(--green); }

.qmetric.bad > span { background: var(--coral-deep); }

.qmetric b { display: block; font-size:.84rem; color: var(--rose-deep); }

.qmetric .tiny { display: block; }

.read-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding:.95rem 0; border-top: 1px solid var(--line);
}

.read-row:first-child { border-top: 0; padding-top: 0; }

.read-row b { color: var(--rose-deep); text-transform: capitalize; }

.conf {
  flex: 0 0 auto; font-size:.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing:.07em;
  padding: .25rem.6rem; border-radius: 100px; white-space: nowrap;
}

.conf-high { background: #E2F0E7; color: #2F5C46; }

.conf-medium { background: var(--cream-2); color: var(--coral-deep); }

.conf-low { background: #FCE4D9; color: #A84121; }

.prefill-banner {
  background: var(--cream-2);
  border: 1px solid var(--coral);
  border-radius: var(--r);
  padding: .9rem 1.1rem;
  font-size: .86rem;
  color: var(--rose-deep);
  max-width: 800px;
  margin: 1.4rem auto 0;
}

.photo-cta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--white); border: 1px dashed var(--coral);
  border-radius: var(--r-lg); padding: 1.1rem 1.3rem;
  max-width: 800px; margin: 1.6rem auto 0;
}

.photo-cta p { margin: 0; font-size:.88rem; color: var(--ink-soft); flex: 1 1 260px; }

.photo-cta b { color: var(--rose-deep); }

/* ---------- Directory + product pages ---------- */
.dir-controls { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; }

.dir-search input {
  width: 100%; font: inherit; font-size:.95rem;
  padding: .85rem 1.1rem; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--cream);
  color: var(--ink);
}

.dir-search input:focus { outline: none; border-color: var(--coral); background: var(--white); }

.filter-row { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }

.filter-label {
  flex: 0 0 76px; font-size:.72rem; letter-spacing:.12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); padding-top:.6rem;
}

.dir-select {
  font: inherit; font-size:.88rem; padding:.5rem 1rem;
  border-radius: 100px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--rose-deep); cursor: pointer;
}
#grid.prod { text-decoration: none; color: inherit; }

.prod-cta {
  display: block; margin-top:.9rem; padding-top:.9rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--coral-deep);
  text-decoration: none;
}

.prod-cta:hover { color: var(--rose-deep); }

.product-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; gap: 2rem; } }

.buy-box {
  background: var(--white); border: 1.5px solid var(--rose-deep);
  border-radius: var(--r-lg); padding: 1.6rem;
  box-shadow: var(--shadow); position: sticky; top: 90px;
}
@media (max-width: 860px) {
  .buy-box { position: static; } }

.buy-price { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 2.3rem; color: var(--rose-deep); font-weight: 700; }

.buy-price small { font-family: var(--font-body); font-size:.85rem; font-weight: 400; color: var(--ink-soft); }

.store-list { display: grid; gap:.5rem; }

.store {
  display: flex; align-items: center; gap:.65rem;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: .75rem.9rem; text-decoration: none; color: var(--ink);
  font-size: .9rem; font-weight: 600;
  transition: border-color.15s ease, background.15s ease, transform.12s ease;
}

.store:hover { border-color: var(--coral); background: var(--cream); transform: translateX(2px); }

.store-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.1); }

.store-go { margin-left: auto; font-size:.74rem; font-weight: 500; color: var(--coral-deep); white-space: nowrap; }

/* ---------- Drawn marks replacing the old emoji ---------- */

/* Hamburger */
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--rose-deep);
  border-radius: 2px;
  content: "";
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }

/* Checkmark inside the quiz option marker */
.opt.selected .opt-check::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid var(--cream);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Photo quality-check marks */
.qmetric > span::after {
  content: "";
  display: block;
}
.qmetric.ok > span::after {
  width: 4px; height: 8px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.qmetric.bad > span::after {
  width: 1.5px; height: 9px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 0 #fff;
  position: relative;
}

/* Letterform monograms in place of the category emoji */
.icon-badge {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--rose-deep);
  font-style: italic;
}

/* The photo-guidance rules no longer carry icons */
.rule { padding-left: 0; }

/* ---------- Product artwork ---------- */
.pa-frame,
.pa-thumb,
.pa-hero {
  background: linear-gradient(160deg, #FFF7F5, var(--cream-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pa-frame {
  height: 150px;
  margin: -.35rem 0 1rem;
}

.pa-thumb {
  height: 120px;
  margin: 0 0 1rem;
}

.pa-hero {
  height: 300px;
  margin-bottom: 1.8rem;
  border-radius: var(--r-lg);
}

.pa-svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(190,59,87,.10));
}

.pa-photo {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: .6rem;
}

.card-link:hover .pa-svg {
  transform: translateY(-2px);
  transition: transform .2s ease;
}

/* the artwork sits above the brand line, so drop the top flag clear of it */
.prod.top .pa-thumb { margin-top: .35rem; }

/* ---------- Quiz question transitions ---------- */
.q-card {
  transition: opacity .17s ease, transform .17s ease;
  will-change: opacity, transform;
}

.q-card.q-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

/* set with transition suppressed, then released, so the card eases in */
.q-card.q-entering {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}

/* the option itself should respond instantly to the tap */
.opt {
  transition: border-color .13s ease, background .13s ease,
              transform .1s ease, box-shadow .15s ease;
}

.opt:active {
  transform: scale(.995);
}

.opt-check {
  transition: background .13s ease, border-color .13s ease;
}

@media (prefers-reduced-motion: reduce) {
  .q-card, .q-card.q-leaving, .q-card.q-entering {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Brand range map ---------- */
.range-map {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.range-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.sys-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .26rem .7rem;
}

.range-list {
  display: grid;
  gap: .45rem;
}

.range-row {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  background: var(--white);
  transition: border-color .15s ease, background .15s ease;
}

.range-row:hover { border-color: var(--coral); background: var(--cream-2); }

.range-row.is-this {
  border-color: var(--rose-deep);
  border-width: 1.5px;
  background: var(--cream-2);
}

.range-chip {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.10);
  margin-top: 2px;
}

.range-body { display: grid; gap: .1rem; min-width: 0; }
.range-body b { color: var(--rose-deep); font-size: .93rem; }
.range-body .tiny { text-transform: uppercase; letter-spacing: .08em; }
.range-body .small { color: var(--ink-soft); line-height: 1.45; }

.range-flag {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: center;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: var(--rose-deep);
  color: #fff;
  border-radius: 100px;
  padding: .26rem .65rem;
  white-space: nowrap;
}

/* ---------- How-brands-label strip ---------- */
.system-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: .9rem;
}

.sys-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: .18rem;
  transition: border-color .16s ease, transform .16s ease, box-shadow .18s ease;
}

.sys-card:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sys-chips { display: flex; gap: .22rem; margin-bottom: .55rem; flex-wrap: wrap; }

.sys-chip {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.09);
  flex: 0 0 auto;
}

.sys-card b { color: var(--rose-deep); font-size: .95rem; }

.sys-kind {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

/* "See all products" tile closing the systems strip */
.sys-card.sys-all {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  align-content: center;
}

.sys-card.sys-all b { color: #fff; font-size: 1rem; }
.sys-card.sys-all .sys-kind { color: var(--peach); }
.sys-card.sys-all .tiny { color: rgba(255,255,255,.72); }

.sys-go {
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
}

.sys-card.sys-all:hover {
  background: var(--rose-mid);
  border-color: var(--rose-mid);
}

/* ---------- Blog / guides ---------- */
.post { padding: 2rem 0 4rem; }

.crumbs { font-size: .78rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.crumbs a { color: var(--coral-deep); text-decoration: none; }
.crumbs span { margin: 0 .3rem; }

.post-meta {
  font-size: .82rem;
  color: var(--ink-soft);
  margin: -.3rem 0 1.8rem;
}
.post-meta span { margin: 0 .25rem; }

.answer-box {
  background: var(--cream-2);
  border: 1.5px solid var(--coral);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.5rem;
  margin-bottom: 2rem;
}
.answer-box p:last-child { margin: 0; font-size: 1.05rem; line-height: 1.65; }
.answer-label {
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-deep);
  margin: 0 0 .5rem;
}

.toc {
  border-left: 2px solid var(--line);
  padding: .2rem 0 .2rem 1.1rem;
  margin-bottom: 2.6rem;
}
.toc-label {
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 .5rem;
}
.toc ul { margin: 0; padding-left: 1rem; }
.toc li { margin-bottom: .3rem; font-size: .9rem; }
.toc a { color: var(--rose-deep); text-decoration: none; }
.toc a:hover { color: var(--coral-deep); text-decoration: underline; }

.post-body { font-size: 1.02rem; line-height: 1.75; }
.post-body h2 { margin-top: 2.6rem; }
.post-body h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin-bottom: 1.3rem; }
.post-body li { margin-bottom: .6rem; }
.post-body strong { color: var(--rose-deep); }

.table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; }
.post-body table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9rem; }
.post-body th {
  text-align: left;
  background: var(--cream-2);
  color: var(--rose-deep);
  font-weight: 700;
  padding: .7rem .85rem;
  border-bottom: 1.5px solid var(--line);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.post-body td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body tr:last-child td { border-bottom: 0; }

.faq-list { display: grid; gap: 1rem; }
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
}
.faq h3 { margin: 0 0 .4rem; font-size: 1.08rem; }
.faq p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

.post-cta {
  margin-top: 3rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.8rem;
}
.post-cta h3 { margin: 0 0 .4rem; }

.cat-head {
  margin-top: 2.8rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
}
.cat-head:first-of-type { margin-top: 0; }

/* ---------- Email capture ---------- */
.email-capture {
  border-color: var(--coral);
  border-width: 1.5px;
  text-align: center;
}

.email-capture h3 { margin-bottom: .4rem; }
.email-capture .muted { margin-inline: auto; }

.email-form {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.2rem;
}

.email-form input[type="email"] {
  flex: 1 1 260px;
  max-width: 340px;
  font: inherit;
  font-size: .95rem;
  padding: .85rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--cream-2);
  color: var(--ink);
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--white);
}

/* Footer nav links are block-level; the disclosure line needs them inline */
.footer-bottom a {
  display: inline;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.footer-bottom a:hover { color: var(--peach); }
