/* Hue Haven app page. Loaded after styles.css; every rule is scoped under .hh so nothing else changes. */

.hh {
  --g: #6b43d6;
  --g-dark: #3f2399;
  --g-soft: #ece6fb;
  --cream: #f6f1ff;
  --peach: #fbe3ef;
  --sun: #f5c66b;
  --card: var(--surface);
}
@media (prefers-color-scheme: dark) {
  .hh { --g: #9a7cf0; --g-dark: #b9a3ff; --g-soft: #241d38; --cream: #221c30; --peach: #301f2a; --sun: #d9ad55; }
}

.hh img { max-width: 100%; height: auto; display: block; }
.hh h1, .hh h2 { letter-spacing: -0.01em; }
.hh .kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800; color: var(--g-dark); margin: 0 0 12px; }
.hh .section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.hh .section-head h2 { margin: 0 0 0.35em; }
.hh .section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.hh section { padding: 72px 0; }
.hh .btn { background: var(--g); }
.hh .btn:hover { background: var(--g-dark); }
.hh .btn.secondary { background: transparent; }

/* Hero */
.hh .hero2 {
  position: relative; overflow: hidden; padding: 56px 0 80px;
  background: radial-gradient(1000px 500px at 85% 0%, color-mix(in srgb, var(--g) 22%, transparent), transparent 60%),
              linear-gradient(180deg, var(--g-soft), var(--bg));
}
.hh .hero2 .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hh .hero2 h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; }
.hh .hero2 h1 em { font-style: normal; color: var(--g-dark); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 55%, transparent) 62%); }
.hh .hero2 .lead { max-width: 560px; }
.hh .soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 0.95rem; }
.hh .soon .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 30%, transparent); }
.hh .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.hh .chips li { background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.hh .stage { position: relative; min-height: 560px; }
.hh .stage::before { content: ""; position: absolute; inset: 6% 4% 2% 10%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: color-mix(in srgb, var(--g) 18%, var(--cream)); }
.hh .phone { position: absolute; width: 46%; border-radius: 26px; overflow: hidden; background: #111; padding: 6px; box-shadow: 0 30px 60px -20px rgba(63, 35, 153, 0.45), 0 8px 18px rgba(0, 0, 0, 0.12); }
.hh .phone img { border-radius: 20px; }
.hh .phone.p1 { left: 6%; top: 4%; transform: rotate(-5deg); }
.hh .phone.p2 { right: 2%; top: 14%; transform: rotate(4deg); width: 48%; }
.hh .icon-float { position: absolute; left: 0; bottom: 2%; width: 24%; z-index: 2; border-radius: 22%; box-shadow: 0 18px 30px -10px rgba(63, 35, 153, 0.55); }
.hh .bubble { position: absolute; left: 22%; bottom: 16%; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }
@media (max-width: 900px) {
  .hh .hero2 .wrap { grid-template-columns: 1fr; }
  .hh .stage { min-height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
}

/* Trust strip */
.hh .strip { padding: 0; margin-top: -28px; position: relative; z-index: 2; }
.hh .strip .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.25); overflow: hidden; }
.hh .strip .stat { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.hh .strip .stat:last-child { border-right: 0; }
.hh .strip .num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--g-dark); line-height: 1.1; }
.hh .strip .lbl { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) { .hh .strip .row { grid-template-columns: repeat(2, 1fr); } .hh .strip .stat:nth-child(2) { border-right: 0; } .hh .strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Feature rows */
.hh .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hh .feature + .feature { margin-top: 88px; }
.hh .feature.flip .media { order: 2; }
.hh .feature h2 { margin: 0 0 0.4em; }
.hh .feature p { color: var(--muted); font-size: 1.08rem; }
.hh .ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.hh .ticks li { position: relative; padding-left: 30px; }
.hh .ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--g); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 14.4 3.6 10l1.4-1.4 3 3 7-7L16.4 6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 14.4 3.6 10l1.4-1.4 3 3 7-7L16.4 6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.hh .media { position: relative; display: flex; justify-content: center; }
.hh .media .blob { position: absolute; inset: 8% 10%; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; background: var(--g-soft); }
.hh .media .shot { position: relative; width: min(300px, 70%); border-radius: 30px; padding: 7px; background: #111; box-shadow: 0 30px 60px -24px rgba(63, 35, 153, 0.5); }
.hh .media .shot img { border-radius: 24px; }
.hh .media.duo .shot { width: min(240px, 46%); }
.hh .media.duo .shot + .shot { margin-left: -6%; margin-top: 10%; }
@media (max-width: 860px) { .hh .feature { grid-template-columns: 1fr; gap: 28px; } .hh .feature.flip .media { order: 0; } .hh .feature + .feature { margin-top: 64px; } }

/* Tinted sections */
.hh .tint { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hh .cols10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.hh .col { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hh .col:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.3); }
.hh .col img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.hh .col div { padding: 12px 14px 16px; }
.hh .col b { display: block; font-family: var(--serif); font-size: 1.02rem; }
.hh .col span { color: var(--muted); font-size: 0.85rem; line-height: 1.4; display: block; margin-top: 4px; }
@media (max-width: 960px) { .hh .cols10 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .hh .cols10 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Ways to play */
.hh .modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hh .mode { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.hh .mode h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hh .mode p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.hh .mode .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-dark); margin-bottom: 8px; }
@media (max-width: 860px) { .hh .modes { grid-template-columns: 1fr; } }

/* Screenshot gallery */
.hh .gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px; scrollbar-width: thin; }
.hh .gallery figure { flex: 0 0 auto; width: 240px; margin: 0; scroll-snap-align: center; }
.hh .gallery .frame { border-radius: 28px; padding: 6px; background: #111; box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.5); }
.hh .gallery img { border-radius: 22px; }
.hh .gallery figcaption { text-align: center; margin-top: 12px; font-weight: 700; font-size: 0.95rem; }
.hh .gallery figcaption small { display: block; font-weight: 400; }
.hh .tablet { margin: 28px auto 0; max-width: 880px; padding: 10px; background: #111; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.5); }
.hh .tablet img { border-radius: 14px; }
.hh .tablet-cap { text-align: center; color: var(--muted); margin-top: 14px; }

/* Steps */
.hh .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.hh .step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; position: relative; }
.hh .step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 800; display: grid; place-items: center; }
.hh .step h3 { margin: 6px 0 6px; }
.hh .step p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .hh .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Compare / principles */
.hh .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hh .pr { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.hh .pr h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hh .pr p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .hh .principles { grid-template-columns: 1fr; } }

/* Plus */
.hh .plus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hh .plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.hh .plan.featured { border: 2px solid var(--g); background: linear-gradient(180deg, var(--g-soft), var(--card) 60%); }
.hh .plan h3 { margin: 0 0 4px; }
.hh .plan .tagline { color: var(--muted); margin: 0 0 14px; }
.hh .plan .tag { display: inline-block; background: var(--g); color: #fff; font-size: 0.74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: 0.04em; }
@media (max-width: 800px) { .hh .plus { grid-template-columns: 1fr; } }

/* FAQ */
.hh .faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.hh .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.hh .faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hh .faq summary::-webkit-details-marker { display: none; }
.hh .faq summary::after { content: "+"; font-size: 1.4rem; color: var(--g); line-height: 1; transition: transform 0.2s; }
.hh .faq details[open] summary::after { transform: rotate(45deg); }
.hh .faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final call to action */
.hh .cta { position: relative; overflow: hidden; border-radius: 30px; color: #fff; padding: 56px 32px; text-align: center; background: linear-gradient(135deg, #7a4be0, #2a1670); }
.hh .cta > * { position: relative; }
.hh .cta h2 { color: #fff; margin: 0 0 0.3em; }
.hh .cta p { color: #ece4ff; max-width: 560px; margin: 0 auto 22px; font-size: 1.1rem; }
.hh .cta .btn { background: #fff; color: var(--g-dark); }
.hh .cta .btn:hover { background: var(--cream); }
.hh .cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hh .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.hh .fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.hh .fact h3 { margin: 0 0 4px; font-size: 1rem; }
.hh .fact p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) { .hh .facts { grid-template-columns: 1fr; } }

/* Gentle entrance, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .hh .rise { animation: hh-rise 0.7s ease both; }
  .hh .rise.d2 { animation-delay: 0.12s; }
  .hh .rise.d3 { animation-delay: 0.24s; }
  .hh .phone.p1 { animation: hh-bob 7s ease-in-out infinite; }
  .hh .phone.p2 { animation: hh-bob 8s ease-in-out 1s infinite; }
  @keyframes hh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes hh-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}

/* Dark mode: a deeper backdrop behind the hero phones. */
@media (prefers-color-scheme: dark) {
  .hh .stage::before { background: #2c2150; }
}
