/* ==========================================================================
   Zappinordicwhirl — Premium Hair & Scalp Wellness Editorial
   Palette: Rosewood #713B45 · Copper #A76D58 · Champagne #C6A66B
   Silk Ivory #F7F1EA · Porcelain #FFFCF8 · Espresso #302522
   Taupe #91827A · Blush #E7D5CA  (no blue tones used anywhere)
   ========================================================================== */

:root {
  --rose: #713B45;
  --rose-deep: #5a2e37;
  --copper: #A76D58;
  --gold: #C6A66B;
  --ivory: #F7F1EA;
  --porcelain: #FFFCF8;
  --ink: #302522;
  --taupe: #91827A;
  --taupe-ink: #6b5d56;
  --blush: #E7D5CA;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 60px -30px rgba(113, 59, 69, .45);
  --shadow-soft: 0 12px 34px -20px rgba(48, 37, 34, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--rose); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--copper); }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; letter-spacing: .02em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1220px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); font-weight: 650; margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--taupe-ink); max-width: 60ch; }
.muted { color: var(--taupe-ink); }
.ph { font-size: .82em; color: var(--copper); font-style: italic; }

.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--rose); color: var(--porcelain); padding: .7rem 1.1rem; border-radius: 999px; z-index: 999; transition: top .2s; }
.skip-link:focus { top: 1rem; color: var(--porcelain); }

/* ---------- Header (non-sticky, scrolls away naturally) ---------- */
.site-header { position: relative; z-index: 40; background: rgba(255, 252, 248, .78); border-bottom: 1px solid rgba(113, 59, 69, .1); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--rose), var(--copper)); color: var(--gold); font-family: var(--serif); font-size: 1.35rem; box-shadow: inset 0 0 0 1px rgba(198, 166, 107, .5); }
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; flex-wrap: wrap; }
.site-nav a { display: block; padding: .55rem .95rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; transition: background .25s, color .25s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--blush); color: var(--rose); }
.nav-toggle { display: none; background: var(--rose); color: var(--porcelain); border: 0; border-radius: 999px; padding: .6rem 1.1rem; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 1rem; right: 1rem; top: 100%; background: var(--porcelain); border-radius: var(--radius); box-shadow: var(--shadow); padding: .8rem; display: none; }
  .site-nav.open { display: block; animation: fadeDown .35s var(--ease); }
  .site-nav ul { flex-direction: column; }
}

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .25s; line-height: 1.2; }
.btn-primary { background: var(--rose); color: var(--porcelain); box-shadow: 0 10px 24px -14px rgba(113, 59, 69, .9); }
.btn-primary:hover { background: var(--rose-deep); color: var(--porcelain); }
.btn-ghost { background: transparent; color: var(--rose); border-color: rgba(113, 59, 69, .35); }
.btn-ghost:hover { background: var(--blush); color: var(--rose-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b8955a; color: var(--ink); }
.btn-small { padding: .5rem .9rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(113, 59, 69, .25); background: var(--porcelain); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--copper); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--rose); color: var(--porcelain); border-color: var(--rose); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Hero: Silken Strand Motion ---------- */
.hero { position: relative; min-height: 92vh; overflow: hidden; display: grid; align-items: center; padding: 5rem 0 6rem; background: radial-gradient(1200px 600px at 80% 20%, rgba(198, 166, 107, .25), transparent 60%), radial-gradient(900px 600px at 10% 90%, rgba(167, 109, 88, .18), transparent 60%), var(--ivory); isolation: isolate; }
.hero-light { position: absolute; inset: -30%; z-index: -2; background: conic-gradient(from 120deg at 60% 40%, rgba(231, 213, 202, .0), rgba(198, 166, 107, .22), rgba(113, 59, 69, .10), rgba(231, 213, 202, .0)); animation: lightSweep 18s linear infinite; filter: blur(40px); }
.hero-layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.layer { position: absolute; margin: 0; overflow: hidden; box-shadow: var(--shadow); transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotate(var(--rot, 0deg)) scale(var(--sc, 1)); transition: transform .9s var(--ease); will-change: transform; background: var(--blush); }
.layer img { width: 100%; height: 100%; object-fit: cover; animation: silkDrift 16s ease-in-out infinite alternate; }
.layer-1 { right: 5%; top: 7%; width: min(31vw, 430px); aspect-ratio: 3 / 4; border-radius: 240px 240px 28px 28px; }
.layer-2 { right: 33%; bottom: 8%; width: min(16vw, 220px); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--porcelain); }
.layer-3 { right: 1%; bottom: 3%; width: min(17vw, 230px); aspect-ratio: 4 / 5; border-radius: 28px; border: 6px solid var(--porcelain); }
.layer-4 { right: 36%; top: 9%; width: min(11vw, 150px); aspect-ratio: 1; border-radius: 40% 60% 55% 45%; opacity: .9; }
.layer-3 img { animation-delay: -5s; }
.layer-2 img { animation-delay: -9s; }
.strands { position: absolute; inset: 0; width: 100%; height: 100%; }
.strands path { fill: none; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: strandDraw 4.5s var(--ease) forwards, strandSway 12s ease-in-out 4.5s infinite alternate; }
.strands path:nth-child(2) { animation-delay: .4s, 4.9s; }
.strands path:nth-child(3) { animation-delay: .8s, 5.3s; }
.strands path:nth-child(4) { animation-delay: 1.2s, 5.7s; }
.bottle { position: absolute; width: 58px; height: 120px; border-radius: 18px 18px 22px 22px; background: linear-gradient(120deg, rgba(255, 252, 248, .7), rgba(198, 166, 107, .35) 45%, rgba(113, 59, 69, .35)); box-shadow: inset 0 0 0 1px rgba(255, 252, 248, .7), 0 20px 40px -20px rgba(113, 59, 69, .6); backdrop-filter: blur(4px); animation: floaty 9s ease-in-out infinite; }
.bottle::before { content: ""; position: absolute; left: 50%; top: -30px; width: 22px; height: 30px; transform: translateX(-50%); border-radius: 8px 8px 4px 4px; background: linear-gradient(var(--rose), var(--rose-deep)); }
.bottle::after { content: ""; position: absolute; left: 10px; top: 14px; width: 6px; height: 70px; border-radius: 6px; background: rgba(255, 252, 248, .75); }
.bottle-a { right: 46%; top: 54%; }
.bottle-b { right: 24%; top: 18%; width: 42px; height: 86px; animation-delay: -4s; }
.droplet { position: absolute; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 35% 35%, var(--porcelain), var(--gold) 60%, var(--copper)); opacity: .8; animation: floaty 7s ease-in-out infinite; }
.d1 { right: 52%; top: 26%; } .d2 { right: 18%; top: 62%; width: 11px; height: 11px; animation-delay: -2s; } .d3 { right: 40%; bottom: 18%; width: 9px; height: 9px; animation-delay: -5s; }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-panel { background: rgba(255, 252, 248, .62); border: 1px solid rgba(255, 252, 248, .9); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.6rem); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft); }
.mask-line { display: block; overflow: hidden; padding-bottom: .06em; }
.mask-line > span { display: inline-block; transform: translateY(105%); animation: maskUp 1.1s var(--ease) forwards; }
.mask-line:nth-child(2) > span { animation-delay: .18s; }
.mask-line:nth-child(3) > span { animation-delay: .36s; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero-search { margin-top: 1.6rem; display: flex; gap: .5rem; background: var(--porcelain); border-radius: 999px; padding: .4rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(113, 59, 69, .14); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem 1rem; font: inherit; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero-quick { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .88rem; color: var(--taupe-ink); }
.badge-rotate { position: absolute; z-index: 3; right: 30%; bottom: 6%; width: 130px; height: 130px; }
.badge-rotate svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-rotate .core { position: absolute; inset: 34%; border-radius: 50%; background: var(--rose); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 1.4rem; }
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 3rem 0 4rem; }
  .layer-1 { width: 52vw; right: -10%; top: 2%; opacity: .55; }
  .layer-2, .layer-4, .bottle-a, .badge-rotate { display: none; }
  .layer-3 { width: 34vw; opacity: .5; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: end; margin-bottom: 2.6rem; }
.section-head p { color: var(--taupe-ink); margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }
.surface { background: var(--porcelain); }
.blush-band { background: linear-gradient(180deg, var(--blush), var(--ivory)); }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; padding: 1.4rem 0; border-block: 1px solid rgba(113, 59, 69, .12); font-size: .9rem; color: var(--taupe-ink); background: var(--porcelain); }
.trust-strip span::before { content: "✦"; color: var(--gold); margin-right: .5rem; }

/* ---------- Item cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.8rem; align-items: start; }
@media (min-width: 1000px) { .card-grid.editorial .item-card:nth-child(3n+2) { margin-top: 3rem; } }
.item-card { background: var(--porcelain); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(113, 59, 69, .08); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); position: relative; }
.item-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blush); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.item-card:hover .card-media img { transform: scale(1.07); }
.type-pill, .grade-chip { position: absolute; top: 1rem; left: 1rem; background: rgba(255, 252, 248, .92); color: var(--rose); font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; }
.grade-chip { left: auto; right: 1rem; background: var(--rose); color: var(--porcelain); }
.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-kicker { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); margin: 0; font-weight: 650; }
.card-title { margin: 0; font-size: 1.35rem; }
.card-text { color: var(--taupe-ink); font-size: .95rem; margin: 0; }
.tag-list { list-style: none; padding: 0; margin: .2rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { font-size: .78rem; padding: .25rem .65rem; border-radius: 999px; background: var(--ivory); border: 1px solid rgba(198, 166, 107, .5); color: var(--ink); }
.card-more { border-top: 1px solid rgba(113, 59, 69, .1); padding-top: .6rem; font-size: .9rem; }
.card-more summary { cursor: pointer; color: var(--rose); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary::after { content: "+"; font-size: 1.2rem; transition: transform .3s; }
.card-more[open] summary::after { transform: rotate(45deg); }
.card-more h4 { margin: .8rem 0 .3rem; font-size: .82rem; text-transform: uppercase; color: var(--copper); }
.card-more ul { margin: 0; padding-left: 1.1em; }
.card-more p { margin: 0; color: var(--taupe-ink); }
.compare-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--taupe-ink); cursor: pointer; }
.compare-toggle input { accent-color: var(--rose); width: 18px; height: 18px; }
.card-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .6rem; }
.card-actions .btn { flex: 1 1 auto; }
.card-disclosure { font-size: .75rem; color: var(--taupe-ink); margin: 0; }
.empty-state { grid-column: 1 / -1; padding: 2.5rem; text-align: center; background: var(--porcelain); border-radius: var(--radius); border: 1px dashed rgba(113, 59, 69, .3); }
.result-count { font-size: .9rem; color: var(--taupe-ink); margin: .8rem 0 1.4rem; }

/* ---------- Concern selector ---------- */
.concern-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .concern-layout { grid-template-columns: 1fr; } }
.concern-list { display: grid; gap: .7rem; }
.concern-btn { display: flex; justify-content: space-between; align-items: center; text-align: left; width: 100%; padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid rgba(113, 59, 69, .16); background: var(--porcelain); font: inherit; cursor: pointer; transition: all .35s var(--ease); color: var(--ink); }
.concern-btn span:first-child { font-family: var(--serif); font-size: 1.25rem; }
.concern-btn span:last-child { font-size: .8rem; color: var(--taupe-ink); }
.concern-btn:hover { transform: translateX(6px); border-color: var(--copper); }
.concern-btn[aria-pressed="true"] { background: var(--rose); color: var(--porcelain); border-color: var(--rose); }
.concern-btn[aria-pressed="true"] span:last-child { color: var(--blush); }
.concern-panel { background: var(--porcelain); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-soft); min-height: 380px; animation: fadeUp .5s var(--ease); }
.concern-panel .pro-note { background: var(--ivory); border-left: 3px solid var(--gold); padding: .9rem 1.1rem; border-radius: 0 14px 14px 0; font-size: .93rem; }
.mini-links { list-style: none; padding: 0; display: grid; gap: .4rem; }
.mini-links a { text-decoration: none; display: flex; justify-content: space-between; padding: .6rem .9rem; border-radius: 12px; background: var(--ivory); }
.mini-links a:hover { background: var(--blush); }

/* ---------- Quiz ---------- */
.quiz-shell { background: var(--porcelain); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .quiz-shell { grid-template-columns: 1fr; } }
.quiz-aside { background: linear-gradient(160deg, var(--rose), var(--copper)); color: var(--porcelain); padding: 2.4rem; position: relative; overflow: hidden; }
.quiz-aside h2, .quiz-aside h3 { color: var(--porcelain); }
.quiz-aside::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(198, 166, 107, .5); right: -120px; bottom: -120px; box-shadow: 0 0 0 30px rgba(198, 166, 107, .08), 0 0 0 60px rgba(198, 166, 107, .05); }
.quiz-main { padding: clamp(1.5rem, 3vw, 2.6rem); }
.progress { height: 6px; border-radius: 999px; background: var(--blush); overflow: hidden; margin: .5rem 0 1.6rem; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--copper), var(--gold)); transition: width .6s var(--ease); }
.quiz-step fieldset { border: 0; padding: 0; margin: 0; }
.quiz-step legend { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.2rem; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt label { display: block; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid rgba(113, 59, 69, .2); cursor: pointer; transition: all .3s var(--ease); background: var(--ivory); font-size: .95rem; }
.opt label:hover { border-color: var(--copper); transform: translateY(-2px); }
.opt input:checked + label { background: var(--rose); color: var(--porcelain); border-color: var(--rose); }
.opt input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.quiz-error { color: var(--rose); font-size: .9rem; min-height: 1.4em; margin-top: .6rem; }
.routine-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
@media (max-width: 640px) { .routine-cols { grid-template-columns: 1fr; } }
.routine-col { background: var(--ivory); border-radius: var(--radius); padding: 1.2rem; }
.routine-col ol { margin: 0; padding-left: 1.2em; }
.routine-col li { margin-bottom: .7rem; }
.routine-col li small { display: block; color: var(--taupe-ink); }
.flag { background: #f3e1dc; border: 1px solid var(--rose); color: var(--rose-deep); padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 1rem; }
.note-box { background: var(--ivory); border-radius: 16px; padding: 1rem 1.2rem; font-size: .93rem; }

/* ---------- Ingredient cards & rings ---------- */
.ingredient-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.ingredient-card { background: var(--porcelain); border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(198, 166, 107, .4); display: flex; flex-direction: column; gap: .7rem; transition: transform .45s var(--ease), box-shadow .45s; position: relative; overflow: hidden; }
.ingredient-card::before { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 166, 107, .35), transparent 70%); }
.ingredient-card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: var(--shadow); }
.ingredient-card h3 { margin: 0; }
.ingredient-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--copper); font-weight: 650; }
.ring-wrap { display: flex; align-items: center; gap: .8rem; }
.ring { width: 58px; height: 58px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--blush); }
.ring .fill { stroke: url(#ringGrad); stroke: var(--copper); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset 1.6s var(--ease); }
.is-visible .ring .fill, .ring.run .fill { stroke-dashoffset: var(--off); }
.ring-label { font-size: .82rem; color: var(--taupe-ink); line-height: 1.3; }
.ring-label strong { display: block; color: var(--ink); font-size: .95rem; }

/* ---------- Editorial guide highlights ---------- */
.mag-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.6rem; }
.mag-feature { grid-column: span 7; position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; color: var(--porcelain); display: flex; align-items: flex-end; }
.mag-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mag-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(48, 37, 34, .85)); }
.mag-feature .mag-copy { position: relative; z-index: 2; padding: 2.2rem; }
.mag-feature h3, .mag-feature a { color: var(--porcelain); }
.mag-stack { grid-column: span 5; display: grid; gap: 1.6rem; }
.mag-card { background: var(--porcelain); border-radius: var(--radius); padding: 1.6rem; display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: center; box-shadow: var(--shadow-soft); }
.mag-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 50% 50% 18px 18px; }
.mag-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.mag-card p { font-size: .9rem; color: var(--taupe-ink); margin: 0 0 .4rem; }
@media (max-width: 900px) { .mag-feature, .mag-stack { grid-column: 1 / -1; } .mag-feature { min-height: 400px; } }
.wipe { position: relative; overflow: hidden; }
.js .wipe::after { content: ""; position: absolute; inset: 0; background: var(--blush); transform-origin: right; transition: transform 1.2s var(--ease); z-index: 3; }
.js .wipe.is-visible::after { transform: scaleX(0); }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(800px 300px at 80% 0%, rgba(198, 166, 107, .35), transparent), linear-gradient(130deg, var(--rose-deep), var(--rose) 55%, var(--copper)); color: var(--porcelain); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: var(--porcelain); }
.cta-band p { color: var(--blush); }
.cta-band .btn-ghost { color: var(--porcelain); border-color: rgba(255, 252, 248, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 252, 248, .12); color: var(--porcelain); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Listings ---------- */
.page-hero { padding: 4rem 0 3rem; background: radial-gradient(800px 400px at 85% 10%, rgba(198, 166, 107, .25), transparent 60%), var(--ivory); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.breadcrumb { font-size: .85rem; color: var(--taupe-ink); margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--gold); }
.filter-panel { background: var(--porcelain); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-soft); display: grid; gap: 1.2rem; margin-bottom: 1.6rem; }
.filter-top { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
@media (max-width: 700px) { .filter-top { grid-template-columns: 1fr; } }
.field label, .filter-group h2 { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--copper); font-weight: 650; margin-bottom: .45rem; font-family: var(--sans); }
.field input, .field select { width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1px solid rgba(113, 59, 69, .25); background: var(--ivory); font: inherit; color: var(--ink); }
.field input:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.hair-tip { background: var(--ivory); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; padding: .8rem 1rem; font-size: .9rem; }
.match-strip { background: var(--porcelain); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; border: 1px solid rgba(198, 166, 107, .45); }
.match-strip ul { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.compare-tray { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 150%); z-index: 60; background: var(--ink); color: var(--porcelain); border-radius: 999px; padding: .6rem .7rem .6rem 1.3rem; display: flex; gap: .8rem; align-items: center; box-shadow: var(--shadow); transition: transform .5s var(--ease); max-width: calc(100% - 2rem); }
.compare-tray.show { transform: translate(-50%, 0); }
.compare-tray .btn-ghost { color: var(--porcelain); border-color: rgba(255, 252, 248, .4); }
.disclosure-note { font-size: .88rem; background: var(--porcelain); border: 1px solid rgba(198, 166, 107, .5); border-radius: 16px; padding: .9rem 1.1rem; color: var(--taupe-ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--porcelain); box-shadow: var(--shadow-soft); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid rgba(113, 59, 69, .1); vertical-align: top; }
thead th { background: var(--blush); font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
tbody th { font-weight: 650; color: var(--rose); white-space: nowrap; }

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--blush); cursor: zoom-in; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-main.zooming img { transform: scale(1.8); }
.thumbs { display: flex; gap: .7rem; margin-top: .9rem; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 14px; overflow: hidden; width: 92px; height: 72px; cursor: pointer; background: var(--blush); }
.thumbs button[aria-current="true"] { border-color: var(--rose); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; margin: 1.2rem 0; font-size: .95rem; }
.spec-list dt { color: var(--copper); font-weight: 650; }
.spec-list dd { margin: 0; }
.info-block { background: var(--porcelain); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-soft); }
.safety-block { border: 1px solid var(--rose); background: #f8ebe6; }
.class-note { background: var(--ivory); border: 1px dashed var(--copper); border-radius: 16px; padding: .9rem 1.1rem; font-size: .92rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.source-list li { margin-bottom: .4rem; }

/* ---------- Guide page ---------- */
.reading-progress { height: 4px; background: linear-gradient(90deg, var(--copper), var(--gold)); width: 0; position: fixed; top: 0; left: 0; z-index: 70; transition: width .1s linear; }
.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; align-items: start; }
.toc { position: sticky; top: 1.5rem; background: var(--porcelain); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-soft); font-size: .9rem; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: .4rem; }
.toc a { text-decoration: none; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } .toc { position: static; } }
.article-body section { margin-bottom: 3.5rem; scroll-margin-top: 1rem; }
.article-body figure { margin: 1.6rem 0; }
.article-body figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body figcaption { font-size: .85rem; color: var(--taupe-ink); margin-top: .5rem; }
.pull-quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--rose); border-left: 3px solid var(--gold); padding-left: 1.2rem; margin: 2rem 0; }
.compare-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.compare-col { background: var(--porcelain); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-soft); animation: fadeUp .45s var(--ease); border-top: 4px solid var(--gold); }
.compare-col dl { margin: 0; }
.compare-col dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--copper); font-weight: 650; margin-top: .9rem; }
.compare-col dd { margin: .2rem 0 0; font-size: .93rem; }
.builder { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.6rem; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
.lib-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.lib-item { background: var(--porcelain); border-radius: 16px; padding: .9rem 1rem; display: grid; gap: .5rem; border: 1px solid rgba(113, 59, 69, .1); }
.lib-item strong { font-size: .95rem; }
.lib-item small { color: var(--taupe-ink); }
.lib-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.routine-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .routine-board { grid-template-columns: 1fr; } }
.routine-list { background: var(--porcelain); border-radius: var(--radius); padding: 1.2rem; min-height: 220px; box-shadow: var(--shadow-soft); }
.routine-list ol { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: .5rem; }
.routine-list li { counter-increment: step; display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; background: var(--ivory); border-radius: 14px; padding: .6rem .7rem; animation: fadeUp .35s var(--ease); }
.routine-list li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: var(--porcelain); display: grid; place-items: center; font-size: .8rem; }
.step-ctrls { display: flex; gap: .25rem; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(113, 59, 69, .25); background: var(--porcelain); cursor: pointer; font-size: .9rem; color: var(--rose); display: grid; place-items: center; }
.icon-btn:hover { background: var(--blush); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(48, 37, 34, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal-dialog { position: relative; background: var(--porcelain); border-radius: var(--radius-lg); width: min(760px, 100%); max-height: 88vh; overflow: auto; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow); transform: translateY(20px) scale(.98); opacity: 0; transition: all .4s var(--ease); }
.modal.show .modal-backdrop { opacity: 1; }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-dialog:focus { outline: none; }
.modal-close { position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blush); cursor: pointer; font-size: 1.4rem; color: var(--rose); }
.modal-dialog h2 { padding-right: 3rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ---------- Cookie banner & consult panel ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 760px; margin-inline: auto; background: var(--porcelain); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(198, 166, 107, .6); padding: 1.3rem 1.4rem; display: grid; gap: .8rem; animation: fadeUp .5s var(--ease); }
.cookie-banner h2 { font-size: 1.3rem; margin: 0; }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--taupe-ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.consult-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; background: var(--rose); color: var(--porcelain); border: 0; border-radius: 999px; padding: .85rem 1.2rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: .5rem; }
.consult-fab::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(198, 166, 107, .7); animation: pulse 2.4s infinite; }
.consult-panel { position: fixed; right: 1.2rem; bottom: 5rem; z-index: 81; width: min(380px, calc(100% - 2.4rem)); background: rgba(255, 252, 248, .96); backdrop-filter: blur(12px); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; border: 1px solid rgba(198, 166, 107, .5); animation: fadeUp .35s var(--ease); }
.consult-panel[hidden] { display: none; }
.consult-panel h2 { font-size: 1.35rem; }
.consult-panel ul { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.consult-panel a { display: block; padding: .7rem .9rem; background: var(--ivory); border-radius: 12px; text-decoration: none; font-size: .9rem; }
.consult-panel a:hover { background: var(--blush); }
.consult-panel small { color: var(--taupe-ink); display: block; }
body.has-banner .consult-fab { bottom: 12rem; }
@media (max-width: 640px) { body.has-banner .consult-fab { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--blush); padding: 4rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: var(--blush); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; }
.site-footer address { font-style: normal; font-size: .88rem; line-height: 1.7; margin-top: 1rem; }
.brand-light .brand-name { color: var(--porcelain); }
.footer-brand p { font-size: .92rem; }
.footer-notices { border-top: 1px solid rgba(231, 213, 202, .2); margin-top: 2.6rem; padding-top: 1.8rem; display: grid; gap: .8rem; font-size: .84rem; color: #d8c6ba; }
.footer-notices p { margin: 0; }
.platform-notice { background: rgba(198, 166, 107, .12); border: 1px solid rgba(198, 166, 107, .35); padding: 1rem 1.2rem; border-radius: 14px; color: var(--porcelain); }
.copyright { color: var(--taupe); }
.site-footer .ph { color: var(--gold); }

/* ---------- Prose (legal) ---------- */
.prose { background: var(--porcelain); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3.2rem); box-shadow: var(--shadow-soft); }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-split img { border-radius: 240px 240px 30px 30px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.value-card { background: var(--porcelain); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-soft); border-top: 3px solid var(--gold); }

/* ---------- Reveal & image fallback ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.img-fallback { object-fit: cover; }

/* ---------- Keyframes ---------- */
@keyframes maskUp { to { transform: translateY(0); } }
@keyframes silkDrift { 0% { transform: scale(1.08) translate(0, 0); } 100% { transform: scale(1.16) translate(-2%, 2%); } }
@keyframes lightSweep { to { transform: rotate(360deg); } }
@keyframes strandDraw { to { stroke-dashoffset: 0; } }
@keyframes strandSway { 0% { transform: translateY(0); } 100% { transform: translateY(-14px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.droplet { animation-name: dropFloat; }
@keyframes dropFloat { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(8px, -12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 166, 107, .7); } 70% { box-shadow: 0 0 0 10px rgba(198, 166, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 166, 107, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mask-line > span { transform: none; }
  .strands path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .js .wipe::after { display: none; }
  .ring .fill { stroke-dashoffset: var(--off); }
  .layer { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .consult-fab, .consult-panel, .hero-layers { display: none !important; }
}