/* Hue marketing page.
   Colour-blind friendly by construction: all text is neutral white/grey on near-black
   (≥ 7:1), no state or meaning is carried by hue alone (pressed buttons get a check mark
   and an inverted fill, swatches always carry a name), links are underlined, and every
   swatch has a light outline so its edge reads under any type of colour vision. */
:root {
  --bg: #111113;
  --surface: #1B1B1F;
  --surface-2: #232328;
  --line: #34343B;
  --control: #8E8E96;   /* ≥ 3:1 against --bg, for borders of interactive controls */
  --text: #F5F5F7;      /* 17.6:1 */
  --text-2: #D1D1D6;    /* 12.7:1 */
  --muted: #A8A8B0;     /*  7.9:1 */
  --spectrum: linear-gradient(90deg, #FF7F50, #FFDB58, #228B22, #007BA7, #B4A3C6, #800020);
  --radius: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.06; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
  border-radius: 10px;
}
strong, b { color: var(--text); font-weight: 700; }
.soft { color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 500; }
.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.sr-filters { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: #FFFFFF; color: #111113; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 16px; }

/* nav */
.hero-wrap {
  position: relative;
  background: radial-gradient(120% 70% at 70% 0%, #1E1E24 0%, var(--bg) 60%);
}
.hero-wrap::after {   /* decorative spectrum line; nothing depends on telling its colours apart */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--spectrum); opacity: 0.85;
}
.nav { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.nav__icon { width: 40px; height: 40px; border-radius: 10px; }
.nav__word { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { text-decoration: none; font-size: 16px; font-weight: 600; color: var(--text-2); }
.nav__links a:hover { color: var(--text); text-decoration: underline; }
.nav__cta {
  background: #FFFFFF; color: #111113 !important; padding: 10px 18px; border-radius: 999px;
}
.nav__cta:hover { text-decoration: none !important; background: #E4E4E7; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  padding: 56px 0 96px;
}
.pill {
  display: inline-block; padding: 8px 16px; border: 1.5px solid var(--control); border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 26px;
}
h1 { font-size: clamp(48px, 7vw, 92px); margin-bottom: 26px; }
.hero__lede { font-size: 20px; line-height: 1.65; color: var(--text-2); max-width: 580px; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.price-note { font-size: 16px; color: var(--muted); }

.shot-wrap { position: relative; display: flex; justify-content: center; }
.shot {
  margin: 0; border-radius: 40px; overflow: hidden;
  box-shadow: 0 0 0 2px #3A3A42, 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.shot img { display: block; width: 100%; height: auto; }
.shot--lg { width: min(360px, 80vw); }
.shot--md { width: min(320px, 76vw); }

.callout {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); font-size: 16px;
}
.callout b { display: block; font-size: 19px; line-height: 1.2; }
.callout .mono { font-size: 14px; color: var(--muted); }
.callout svg { width: 24px; height: 24px; fill: currentColor; }
.callout--name { left: -12px; top: 22%; }
.callout--speak { right: -8px; bottom: 26%; font-weight: 700; }
.chip {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--c); box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.85);
}

/* at a glance */
.strip { padding: 64px 0 24px; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip__grid li { background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 24px; }
.strip__stat { display: block; font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.strip__label { display: block; font-size: 16px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }

/* colour-vision demo */
.see { padding: 96px 0 40px; }
.section-head { max-width: 900px; margin-bottom: 36px; }
.section-head h2, .access h2, .privacy h2, .faq h2, .closer h2 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 20px; }
.section-head p:last-child { color: var(--text-2); font-size: 19px; }
.sim { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.sim__btn {
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  min-height: 48px; padding: 10px 18px; border-radius: 999px;
  background: transparent; color: var(--text); border: 2px solid var(--control);
}
.sim__btn small { font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 14px; }
.sim__btn:hover { border-color: #FFFFFF; }
.sim__btn[aria-pressed="true"] { background: #FFFFFF; color: #111113; border-color: #FFFFFF; }
.sim__btn[aria-pressed="true"] small { color: #3F3F46; }
.sim__btn[aria-pressed="true"]::before { content: "✓ "; }
.drops {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 44px 28px 36px;
}
.drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.drop__ball {
  width: min(120px, 100%); aspect-ratio: 1; border-radius: 50%; margin-bottom: 14px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.28)),
    var(--c);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 18px 30px -14px rgba(0, 0, 0, 0.9);
  filter: var(--cvd, none);   /* only the swatch is filtered; names stay untouched */
  transition: filter 0.25s;
}
.drop b { font-size: 18px; line-height: 1.3; }
.drop .mono { font-size: 14px; color: var(--muted); }
.sim__note { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* features */
.features { padding: 72px 0 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.split--flip > :first-child { order: 2; }
.split__body h3 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 22px; }
.split__body p { color: var(--text-2); max-width: 500px; margin-bottom: 16px; }

.speak {
  justify-self: center; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.speak__row { display: flex; align-items: center; gap: 16px; font-size: 24px; padding: 12px 16px; background: var(--surface-2); border-radius: 16px; }
.speak__wave { display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px; margin-top: 6px; }
.speak__wave i { width: 6px; border-radius: 3px; background: #FFFFFF; height: 30%; animation: wave 1.6s ease-in-out infinite; }
.speak__wave i:nth-child(2n) { animation-delay: -0.4s; }
.speak__wave i:nth-child(3n) { animation-delay: -0.8s; }
.speak__wave i:nth-child(5n) { animation-delay: -1.2s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }

.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uses li { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; font-size: 16px; color: var(--text-2); line-height: 1.5; }
.uses b { display: block; font-size: 18px; margin-bottom: 4px; }

/* accessibility + privacy */
.access, .privacy { padding: 40px 0; }
.access__inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 56px;
}
.access__inner > div p:last-child { color: var(--text-2); }
.access__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.access__grid li { background: var(--surface-2); border-radius: 18px; padding: 20px; font-size: 16px; color: var(--text-2); line-height: 1.5; }
.access__grid b { display: block; font-size: 18px; margin-bottom: 4px; }
.privacy__inner {
  display: flex; gap: 28px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 48px 56px;
}
.privacy__icon { width: 56px; height: 56px; flex: none; color: #FFFFFF; }
.privacy p { color: var(--text-2); max-width: 760px; }

/* pricing */
.pricing { padding: 72px 0; display: flex; justify-content: center; }
.plan {
  width: min(560px, 100%); text-align: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 44px 36px;
}
.plan__head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.plan__head img { width: 56px; height: 56px; border-radius: 14px; }
.plan__name { font-weight: 700; font-size: 18px; }
.plan__price { font-size: 76px; margin-bottom: 22px; }
.plan__price span { font-size: 30px; color: var(--muted); }
.plan__list { text-align: left; display: grid; gap: 10px; margin: 0 auto 30px; max-width: 400px; }
.plan__list li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 17px; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--text); }

/* faq */
.faq { padding: 40px 0 72px; max-width: 820px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 18px; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 24px 22px; color: var(--text-2); }

/* closer + footer */
.closer { text-align: center; padding: 72px 0 96px; }
.closer__icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 26px; }
.closer p { color: var(--text-2); margin-bottom: 28px; }
.footer { border-top: 1.5px solid var(--line); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__icon { width: 32px; height: 32px; border-radius: 8px; }
.footer__name { font-weight: 700; font-size: 16px; }
.footer__links { display: flex; gap: 18px; font-size: 16px; }
.footer__spacer { flex: 1; }
.footer__fine { font-size: 15px; color: var(--muted); }

/* scroll reveal (skipped entirely with reduced motion, see script) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .speak__wave i { animation: none; height: 60%; }
  .drop__ball { transition: none; }
}

@media (max-width: 980px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .hero, .split, .access__inner { grid-template-columns: 1fr; }
  .hero { gap: 48px; padding: 32px 0 72px; }
  .split { gap: 36px; padding: 40px 0; }
  .split--flip > :first-child { order: 0; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .drops { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .access__inner { padding: 36px 24px; }
  .privacy__inner { flex-direction: column; padding: 36px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero__lede { font-size: 18px; }
  .strip__grid, .uses, .access__grid { grid-template-columns: 1fr; }
  .drops { grid-template-columns: repeat(2, 1fr); padding: 32px 16px; }
  .callout--name { left: 0; }
  .callout--speak { right: 0; }
  .plan { padding: 36px 20px; }
}
