/* Hueband marketing site design system
   Brand: pastel mesh gradients plus ink, signature concentric mood rings.
   No external dependencies: system font stack, inline SVG, local images. */

:root {
  --ink: #1F1033;
  --ink-soft: rgba(31, 16, 51, 0.76);
  --ink-muted: rgba(31, 16, 51, 0.55);
  --plum: #5C284E;
  --pink: #ED93B1;
  --lav: #AFA9EC;
  --gold: #FAC775;
  --green: #5DCAA5;
  --coral: #F0997B;
  --blue: #85B7EB;

  --bg: #FFF4EE;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --border: rgba(31, 16, 51, 0.10);
  --shadow-card: 0 20px 56px -18px rgba(31, 16, 51, 0.20), 0 6px 18px -10px rgba(31, 16, 51, 0.12);
  --shadow-soft: 0 8px 24px -12px rgba(31, 16, 51, 0.18);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --cta: #1F1033;
  --cta-text: #FFFFFF;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F4ECFF;
    --ink-soft: rgba(244, 236, 255, 0.80);
    --ink-muted: rgba(244, 236, 255, 0.56);
    --bg: #0E0820;
    --surface: #1C1230;
    --surface-glass: rgba(28, 18, 48, 0.72);
    --border: rgba(244, 236, 255, 0.10);
    --shadow-card: 0 24px 64px -16px rgba(0, 0, 0, 0.6), 0 8px 22px -12px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --cta: #F4ECFF;
    --cta-text: #1F1033;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(60% 40% at 10% 0%, rgba(240, 153, 123, 0.40) 0%, transparent 70%),
    radial-gradient(55% 38% at 92% 4%, rgba(250, 199, 117, 0.40) 0%, transparent 70%),
    radial-gradient(46% 34% at 84% 62%, rgba(237, 147, 177, 0.28) 0%, transparent 72%),
    radial-gradient(60% 44% at 8% 86%, rgba(175, 169, 236, 0.36) 0%, transparent 75%),
    linear-gradient(180deg, var(--bg) 0%, #F8EFFB 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(60% 40% at 10% 0%, rgba(240, 153, 123, 0.16) 0%, transparent 70%),
      radial-gradient(55% 38% at 92% 4%, rgba(250, 199, 117, 0.12) 0%, transparent 70%),
      radial-gradient(46% 34% at 84% 62%, rgba(237, 147, 177, 0.14) 0%, transparent 72%),
      radial-gradient(60% 44% at 8% 86%, rgba(175, 169, 236, 0.20) 0%, transparent 75%),
      linear-gradient(180deg, #0E0820 0%, #14092C 100%);
    background-attachment: fixed;
  }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: none;
  box-shadow: 0 2px 8px -2px rgba(31, 16, 51, 0.3);
}

.site-nav {
  display: none;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

.header-cta { margin-left: auto; }
@media (min-width: 760px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--lav); outline-offset: 2px; }

.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: var(--shadow-soft);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface-glass);
}
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Store badges (inline SVG anchors) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.badge:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4); }
.badge:focus-visible { outline: 3px solid var(--lav); outline-offset: 2px; }
.badge svg { display: block; height: 52px; width: auto; border-radius: 12px; }

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

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  background: rgba(237, 147, 177, 0.18);
  border: 1px solid rgba(237, 147, 177, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  .kicker { color: var(--pink); }
}

h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.14; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }

.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 620px; margin: 0 0 28px; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

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

.hero { padding: 56px 0 40px; overflow: hidden; }

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero { padding: 72px 0 56px; }
}

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

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-rings {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(520px, 92vw);
  aspect-ratio: 1;
  pointer-events: none;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--gold), var(--green), var(--pink));
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 55.8%, #000 100%);
          mask: radial-gradient(circle, transparent 55%, #000 55.8%, #000 100%);
  opacity: 0.5;
  animation: spin 30s linear infinite;
}
.ring--inner {
  inset: 9%;
  background: conic-gradient(from 180deg, var(--lav), var(--blue), var(--coral), var(--lav));
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 54.8%, #000 100%);
          mask: radial-gradient(circle, transparent 54%, #000 54.8%, #000 100%);
  animation: spin-rev 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .ring, .ring--inner { animation: none; } }

.hero-shot {
  position: relative;
  width: min(310px, 78vw);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---------- Trust strip ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  padding: 18px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { flex: none; }

/* ---------- Screenshot carousel ---------- */

.band-plum {
  background: linear-gradient(180deg, #5C284E 0%, #4A203F 100%);
  color: #FFF4EE;
}
.band-plum .lead { color: rgba(255, 244, 238, 0.82); }
.band-plum .kicker { color: #FFD9E6; background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.22); }

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shot {
  flex: 0 0 auto;
  width: min(260px, 72vw);
  scroll-snap-align: center;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- How it works ---------- */

.steps { display: grid; gap: 22px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.step:nth-child(1) .step-num { background: linear-gradient(135deg, var(--pink), var(--coral)); }
.step:nth-child(2) .step-num { background: linear-gradient(135deg, var(--gold), var(--coral)); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg, var(--lav), var(--blue)); }
.step p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }

/* ---------- Feature list ---------- */

.features { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}
.feature h3 { margin-bottom: 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.feature .emoji { font-size: 22px; display: block; margin-bottom: 10px; }

/* ---------- Quiz ---------- */

.quiz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.quiz fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.quiz legend { font-weight: 700; margin-bottom: 10px; font-size: 16.5px; padding: 0; }
.quiz .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz label {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
  user-select: none;
}
.quiz input { position: absolute; opacity: 0; pointer-events: none; }
.quiz input:checked + span { font-weight: 700; }
.quiz label:has(input:checked) {
  border-color: var(--plum);
  background: rgba(237, 147, 177, 0.16);
}
.quiz input:focus-visible + span { outline: 2px solid var(--lav); outline-offset: 4px; border-radius: 4px; }
.quiz-result {
  border-top: 1px dashed var(--border);
  margin-top: 20px;
  padding-top: 20px;
}
.quiz-result h3 { margin-bottom: 8px; }
.quiz-result p { color: var(--ink-soft); margin: 0 0 16px; }
[hidden] { display: none !important; }

/* ---------- Guide cards ---------- */

.guide-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide-cards { grid-template-columns: repeat(3, 1fr); } }

.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.guide-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.guide-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 8px;
}
@media (prefers-color-scheme: dark) { .guide-card .tag { color: var(--pink); } }

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

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 48px 18px 20px;
  list-style: none;
  position: relative;
  font-size: 16.5px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.18s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:focus-visible { outline: 3px solid var(--lav); outline-offset: -3px; }
.faq-body { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15.5px; }
.faq-body a { color: var(--plum); font-weight: 700; }
@media (prefers-color-scheme: dark) { .faq-body a { color: var(--pink); } }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, rgba(237, 147, 177, 0.30), rgba(175, 169, 236, 0.30));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.2fr 0.8fr; } }

.qr-card {
  background: #FFFFFF;
  color: #1F1033;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: none;
  align-items: center;
  gap: 18px;
  max-width: 420px;
}
.qr-card img { width: 132px; height: 132px; flex: none; }
.qr-card p { margin: 0; font-size: 14.5px; color: rgba(31, 16, 51, 0.72); }
.qr-card strong { display: block; font-size: 16px; color: #1F1033; margin-bottom: 4px; }
@media (min-width: 900px) { .qr-card { display: flex; } }

/* ---------- Footer ---------- */

.site-footer {
  background: #1F1033;
  color: rgba(244, 236, 255, 0.78);
  padding: 48px 0 90px;
  font-size: 14.5px;
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: #F4ECFF;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(244, 236, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #F4ECFF; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(244, 236, 255, 0.14); font-size: 13px; color: rgba(244, 236, 255, 0.5); }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-cta .t { flex: 1; min-width: 0; }
.sticky-cta .t strong { display: block; font-size: 14.5px; line-height: 1.2; }
.sticky-cta .t span { font-size: 12.5px; color: var(--ink-muted); }
.sticky-cta .btn { flex: none; }
@media (min-width: 760px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Guide article ---------- */

.crumbs { font-size: 14px; color: var(--ink-muted); margin: 26px 0 0; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.article-head { padding: 18px 0 8px; max-width: 780px; }
.article-meta { font-size: 14px; color: var(--ink-muted); margin-bottom: 26px; }

.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 42px 0 12px; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose .shot-inline {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  max-width: 300px;
  margin: 26px 0;
}

.callout {
  background: linear-gradient(135deg, rgba(237, 147, 177, 0.14), rgba(175, 169, 236, 0.14));
  border: 1px solid rgba(237, 147, 177, 0.35);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 26px 0;
}
.callout p { margin: 0; }
.callout .callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.cta-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.cta-inline img.appicon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.cta-inline .t { flex: 1 1 260px; }
.cta-inline .t strong { display: block; font-size: 17px; margin-bottom: 4px; }
.cta-inline .t span { color: var(--ink-soft); font-size: 14.5px; }

.related { margin-top: 20px; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-24 { margin-bottom: 24px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
