/* MyHueIQ — brand tokens and landing page styles */

:root {
  --ivory: #FAF6EF;
  --parchment: #F2EBDF;
  --line: #E4DBCC;
  --ink: #2A2826;
  --stone: #6B645C;
  --sage: #8FA088;
  --sage-deep: #5E7059;
  --rose: #D4A29B;
  --rose-deep: #A9645B;
  --camel: #D2B48A;
  --dusk: #9B8BA1;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 136px);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 5.1rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.6rem; line-height: 1.15; }
em { font-style: italic; }
h1 em, h2 em { color: var(--rose-deep); }

p { margin: 0; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--stone);
  max-width: 34em;
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.62rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo svg { width: 30px; height: 30px; }
.logo i { font-style: italic; color: var(--rose-deep); margin-left: 0.04em; }

.nav { display: flex; align-items: center; gap: 30px; font-size: 0.93rem; }
.nav a { text-decoration: none; color: var(--stone); }
.nav a:hover { color: var(--ink); }
.nav-links { display: none; gap: 30px; }
@media (max-width: 520px) { .site-header .pill { display: none; } }
@media (min-width: 820px) { .nav-links { display: flex; } }

.pill {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 8px 15px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.pill--quiet { border-color: var(--line); color: var(--stone); }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vw, 104px) 0 var(--section); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 72px; }
}
.hero h1 { margin: 20px 0 26px; }
.hero .launch { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero .launch p { font-size: 0.95rem; color: var(--stone); }

.drapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 18px);
  align-items: end;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  padding-top: 52px;
}
.drapes svg { width: 100%; height: auto; }
.drapes > :nth-child(1) { transform: translateY(-26px); }
.drapes > :nth-child(3) { transform: translateY(-52px); }
.drape-caption {
  margin-top: 22px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--stone);
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--parchment); }
.section-head { max-width: 40em; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-top: 16px; }
.section-head .lede { margin-top: 20px; }

.trio { display: grid; gap: 40px; }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.trio > div { padding-top: 22px; border-top: 1px solid var(--ink); }
@media (min-width: 820px) {
  .trio > div { padding-right: 40px; }
  .trio > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
}
.trio h3 { margin-bottom: 12px; }
.trio p { color: var(--stone); }
.num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose-deep);
  margin-bottom: 14px;
}

/* ---------- Proof ---------- */

.proof-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 28px); max-width: 460px; }
.pair figure { margin: 0; }
.pair figcaption {
  margin-top: 12px; text-align: center;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone);
}
.tests { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tests li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.32rem;
}
.tests span:last-child { font-family: var(--sans); font-size: 0.9rem; color: var(--stone); align-self: center; text-align: right; }
.fineprint { margin-top: 18px; font-size: 0.85rem; color: var(--stone); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; }

/* ---------- Packages ---------- */

.packages { display: grid; gap: 28px; }
@media (min-width: 820px) { .packages { grid-template-columns: 1fr 1fr; gap: 32px; } }
.package { border: 1px solid var(--line); background: var(--ivory); padding: clamp(28px, 4vw, 44px); }
.package--lead { border-color: var(--ink); }
.package header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.package h3 { font-size: 2rem; }
.price { font-family: var(--serif); font-size: 2rem; }
.package .tag { margin: 18px 0 0; color: var(--stone); font-size: 0.95rem; }
.package ul { list-style: none; margin: 22px 0 0; padding: 0; }
.package li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--line); }
.package li:last-child { border-bottom: 0; }
.package li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage);
}
.package--lead li::before { background: var(--rose); }
.delivery {
  margin-top: 32px; padding: 22px 0 0; border-top: 1px solid var(--ink);
  display: grid; gap: 14px;
}
@media (min-width: 820px) { .delivery { grid-template-columns: 1fr 1fr; gap: 32px; } }
.delivery strong { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; display: block; }
.delivery span { color: var(--stone); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--stone);
  flex: none; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--stone); max-width: 38em; }

/* ---------- Closing + footer ---------- */

.closing { text-align: center; }
.closing h2 { max-width: 15em; margin: 18px auto 28px; }
.closing .lede { margin: 0 auto 34px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--stone); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .logo { font-size: 1.3rem; color: var(--ink); }
.site-footer .logo svg { width: 24px; height: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
