/* ==========================================================================
   ScentMatch AU — design system
   Fonts are deliberately system-native: zero webfont requests keeps LCP low
   and avoids layout shift, which matters more for ranking than a novelty face.
   ========================================================================== */

:root {
  --indigo:        #191970;
  --indigo-deep:   #10104a;
  --indigo-soft:   #3a3a9e;
  /* Bright pink is retained as a decorative accent only. Text uses --rose,
     which clears WCAG AA (4.5:1) on white — #ff69b4 does not. */
  --accent:        #ff69b4;
  --rose:          #b3105f;
  --rose-deep:     #8c0b49;
  --cream:         #fffaf7;
  --shell:         #fdf2f8;
  --ink:           #22222b;
  --ink-soft:      #5a5a68;
  --line:          #f0dbe6;
  --white:         #ffffff;
  --radius:        16px;
  --radius-lg:     24px;
  --shadow-sm:     0 1px 3px rgba(25, 25, 112, .06);
  --shadow-md:     0 6px 24px rgba(25, 25, 112, .09);
  --shadow-lg:     0 18px 48px rgba(25, 25, 112, .14);
  --font-display:  ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body:     system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap:          1180px;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--indigo); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--rose); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--indigo); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Disclosure strip (required for affiliate transparency) -------- */
.disclosure {
  background: var(--shell); color: var(--rose-deep); border-bottom: 1px solid var(--line);
  font-size: .82rem; text-align: center; padding: 9px 16px;
}
.disclosure a { color: var(--rose-deep); }

/* ---------------------------------- Header ------------------------------- */
.site-header { background: var(--indigo); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff9ecd);
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--indigo-deep);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: #ffc9e3; }

/* ----------------------------------- Nav -------------------------------- */
.site-nav { background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.site-nav a {
  display: block; padding: 13px 15px; font-size: .93rem; font-weight: 600;
  color: var(--indigo); text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--rose); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--rose); }

/* -------------------------------- Breadcrumb ---------------------------- */
.breadcrumb { font-size: .84rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-soft); }

/* ----------------------------------- Hero ------------------------------- */
.hero { background: linear-gradient(170deg, var(--shell) 0%, var(--cream) 70%); padding: 60px 0 50px; text-align: center; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; margin: 0 auto .6em; }
.hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; margin: 0 auto 1.8em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--rose); margin-bottom: 14px; }

/* ---------------------------------- Search ------------------------------ */
.search-shell { max-width: 680px; margin: 0 auto; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 17px 22px 17px 52px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.search-field input::placeholder { color: #a99aa4; }
.search-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,105,180,.16); }
.search-icon { position: absolute; left: 20px; width: 20px; height: 20px; color: var(--rose); pointer-events: none; }
.search-meta { text-align: center; font-size: .88rem; color: var(--ink-soft); min-height: 1.4em; margin-top: 14px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 6px; }
.chip {
  font: inherit; font-size: .86rem; font-weight: 600; padding: 8px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--indigo);
  transition: .18s;
}
.chip:hover { border-color: var(--accent); color: var(--rose); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.filter-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-soft); }

/* ----------------------------------- Cards ------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: var(--rose); }
.card h3 { margin: 6px 0 4px; font-size: 1.28rem; }
.card h3 a { color: var(--indigo); text-decoration: none; }
.card h3 a:hover { color: var(--rose); }
.card-sub { font-size: .82rem; color: var(--ink-soft); margin: 0 0 12px; }
.card-summary { font-size: .92rem; color: var(--ink-soft); margin: 0 0 16px; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.card-price { font-size: .86rem; font-weight: 600; color: var(--indigo); }

.notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.note-pill { font-size: .74rem; background: var(--shell); color: var(--rose-deep); border-radius: 999px; padding: 4px 11px; border: 1px solid var(--line); }

.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: #f4f4fb; color: var(--indigo-soft); }

/* ---------------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .96rem; padding: 14px 26px; cursor: pointer;
  border-radius: 999px; border: 2px solid transparent; text-decoration: none; text-align: center;
  transition: .2s;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--rose); color: #fff; box-shadow: 0 6px 18px rgba(179,16,95,.28); }
.btn-outline { background: #fff; color: var(--indigo); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--rose); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.05rem; padding: 17px 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------------------------- Sections ---------------------------- */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head { text-align: center; max-width: 66ch; margin: 0 auto 34px; }
.section-head p { color: var(--ink-soft); }
.section-alt { background: var(--shell); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 46px); box-shadow: var(--shadow-sm); }

/* --------------------------------- Quiz --------------------------------- */
.quiz { max-width: 680px; margin: 0 auto; text-align: center; }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; }
.progress span { width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
.progress span.done { background: var(--accent); }
.option-btn {
  display: block; width: 100%; max-width: 460px; margin: 11px auto; padding: 17px 22px;
  font: inherit; font-size: 1.02rem; font-weight: 600; cursor: pointer; text-align: left;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--indigo);
  transition: .18s;
}
.option-btn:hover { border-color: var(--accent); background: var(--shell); transform: translateX(3px); }
.option-btn small { display: block; font-weight: 500; font-size: .84rem; color: var(--ink-soft); margin-top: 3px; }

/* -------------------------------- Detail page --------------------------- */
.detail-head { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 30px 0 8px; }
.detail-head .kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--rose); }
.detail-head h1 { margin: 8px 0 12px; }
.detail-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.spec { background: #fff; padding: 16px 18px; }
.spec dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.spec dd { margin: 0; font-weight: 600; color: var(--indigo); font-size: .98rem; }

.pyramid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 22px 0; }
.pyramid-tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pyramid-tier h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rose); margin-bottom: 12px; }

.buy-panel { background: linear-gradient(150deg, var(--indigo), var(--indigo-deep)); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); text-align: center; }
.buy-panel h2, .buy-panel h3 { color: #fff; }
.buy-panel p { color: #d5d5f0; max-width: 54ch; margin-left: auto; margin-right: auto; }
.buy-panel .btn-primary { background: var(--accent); color: var(--indigo-deep); }
.buy-panel .btn-primary:hover { background: #fff; color: var(--indigo-deep); }
.price-note { font-size: .82rem; color: #b9b9dd; margin-top: 14px; }

/* ----------------------------------- FAQ -------------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 17px 0; color: var(--indigo); font-family: var(--font-display); font-size: 1.06rem; }
.faq summary::marker { color: var(--accent); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 14px 0 4px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ------------------------------- Link clusters -------------------------- */
.link-cloud { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.link-cloud a {
  display: inline-block; font-size: .89rem; font-weight: 600; padding: 8px 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--indigo); text-decoration: none; transition: .18s;
}
.link-cloud a:hover { border-color: var(--accent); color: var(--rose); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin: 34px 0 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--indigo); }
.stat span { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--shell); color: var(--indigo); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); grid-column: 1 / -1; }
.empty-state h3 { color: var(--indigo); }

/* ---------------------------------- Footer ------------------------------ */
.site-footer { background: var(--indigo); color: #c9c9e8; margin-top: 60px; border-top: 4px solid var(--accent); }
.site-footer .wrap { padding: 46px 20px 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-family: var(--font-body); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9c9e8; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 34px; padding-top: 20px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

@media (min-width: 860px) {
  .detail-head { grid-template-columns: 1.55fr 1fr; align-items: start; gap: 44px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; text-align: center; }
  .site-nav a { padding: 11px 11px; font-size: .87rem; }
  .hero { padding: 42px 0 36px; }
  .search-field input { font-size: 1rem; padding: 15px 18px 15px 46px; }
}
