/* HueDive site. Colors match the app tokens: #D4537E primary, #FBEAF0 light, #993556 dark. */
:root {
  --brand: #D4537E;
  --brand-light: #FBEAF0;
  --brand-dark: #993556;
  --text: #1f1a1c;
  --muted: #6b5f63;
  --bg: #ffffff;
  --surface: #fdf6f8;
  --border: #f0dfe5;
  --radius: 18px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f7eef1;
    --muted: #c9b8be;
    --bg: #171214;
    --surface: #221a1f;
    --border: #3a2c33;
    --brand-light: #3a1f2a;
  }
}

:root[data-theme="dark"] {
  --text: #f7eef1;
  --muted: #c9b8be;
  --bg: #171214;
  --surface: #221a1f;
  --border: #3a2c33;
  --brand-light: #3a1f2a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.brand span {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

nav.main a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border: 0;
  cursor: pointer;
}

.btn:hover { background: var(--brand-dark); }

.btn-small { padding: 10px 18px; font-size: 15px; border-radius: 10px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--surface); }

/* Hero */
.hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 0%, var(--brand-light), transparent 70%),
    var(--bg);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

/* Phone mockup */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(153, 53, 86, 0.35);
}

.phone .screen-title {
  font-weight: 700;
  font-size: 16px;
  margin: 4px 0 14px;
}

.phone .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.swatches div { height: 44px; }

.match-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.match-card .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.match-card strong { display: block; font-size: 14px; }
.match-card small { color: var(--muted); font-size: 12px; }

.match-card .score {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Sections */
section.block {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

section.block.tint { background: var(--surface); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head .kicker {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Monk scale */
.monk-strip {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.monk-strip div {
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.monk-strip div.light { color: #3a2f33; text-shadow: none; }

.monk-caption {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  border-top: 3px solid var(--brand);
  padding-top: 22px;
}

.step .num {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

/* Privacy band */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

/* Waitlist CTA */
.cta-band {
  background: var(--brand-dark);
  color: #ffffff;
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 560px;
  opacity: 0.92;
  font-size: 18px;
}

.cta-band .btn { background: #ffffff; color: var(--brand-dark); }
.cta-band .btn:hover { background: var(--brand-light); }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 15px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }

footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

/* Waitlist dialog */
.wl-dialog {
  border: 0;
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: min(440px, calc(100% - 32px));
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35);
}

.wl-dialog::backdrop {
  background: rgba(31, 26, 28, 0.55);
}

.wl-dialog h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.wl-dialog p { color: var(--muted); margin: 0 0 18px; }

.wl-dialog label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.wl-dialog input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  margin-bottom: 14px;
}

.wl-dialog input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.wl-dialog button[type="submit"] { width: 100%; }
.wl-dialog button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

.wl-dialog .wl-msg {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--brand-dark);
}

.wl-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

/* Legal pages */
.legal-page { padding: 56px 0 80px; }

article.legal {
  max-width: 760px;
  margin: 0 auto;
}

article.legal h1 {
  font-size: 40px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

article.legal h2 {
  font-size: 20px;
  margin: 36px 0 10px;
  color: var(--brand-dark);
}

article.legal p, article.legal li { color: var(--text); }

article.legal .meta {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { max-width: 360px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 28px; }
  .monk-strip div { height: 96px; font-size: 13px; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  nav.main a.hide-mobile { display: none; }
  header.site .wrap { height: 64px; }
  .brand img { height: 36px; }
  .brand span { font-size: 19px; }
  section.block { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .hero p.lead { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
}
