/* moodrobe — site styles. Same palette and type as the app. */

:root {
  --bg: #F4F4F3;
  --card: #FFFFFF;
  --tile: #EAEAE9;
  --ink: #0F0F12;
  --muted: #5E5E66;
  --line: rgba(15, 15, 18, 0.10);
  --cobalt: #2F3BFF;
  --display: "Archivo", "TeX Gyre Heros Cn", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }

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

/* Display type: bold, condensed, lowercase, a little tight. Like the app's titles. */
.display {
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 244, 243, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-size: 30px; text-decoration: none; }
.wordmark:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }

/* ---------- buttons + form ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.join { max-width: 460px; }
.join-row {
  display: flex;
  gap: 8px;
  background: var(--card);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(15, 15, 18, 0.06);
}
.join input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font: 400 17px var(--body);
  color: var(--ink);
  outline: none;
}
.join input[type="email"]::placeholder { color: #8C8C93; }
.join-row:focus-within { box-shadow: 0 0 0 2px var(--cobalt), 0 10px 30px rgba(15, 15, 18, 0.06); }
.join .fine { font-size: 13px; color: var(--muted); margin: 12px 4px 0; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 540 / 1089;
  border-radius: 42px;
  padding: 9px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(15, 15, 18, 0.35);
}
.phone video, .phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  background: #fff;
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(60px, 9.4vw, 136px); margin-bottom: 26px; }
.hero h1 .hl { color: var(--cobalt); }
.hero .lede { font-size: 20px; line-height: 1.45; max-width: 520px; margin: 0 0 30px; }
.hero .phone-col { display: flex; justify-content: center; }
.hero .phone { max-width: 320px; transform: rotate(2deg); }
.score-tag {
  position: absolute;
  left: -34px;
  bottom: 22%;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(15, 15, 18, 0.16);
  transform: rotate(-4deg);
}
.score-tag .display { font-size: 44px; }
.score-tag span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- verdict ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker-track span { font-size: 34px; padding-right: 44px; white-space: nowrap; }
.ticker-track b { color: #8F96FF; font-weight: inherit; margin-right: 10px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(44px, 6.4vw, 84px); margin-bottom: 18px; }
.section-head p { font-size: 19px; margin: 0; color: var(--muted); max-width: 600px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step .phone { max-width: 260px; margin-bottom: 26px; }
.step .num { color: var(--cobalt); font-size: 34px; margin-bottom: 8px; }
.step h3 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); }

/* honest scores */
.honest { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scorecard { background: var(--bg); border-radius: var(--radius); padding: 30px; }
.scorecard .top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.scorecard .big { font-size: 96px; }
.scorecard .out { font-size: 18px; color: var(--muted); }
.scorecard .verdict { font-weight: 650; font-size: 20px; margin: 0 0 22px; }
.bar { display: grid; grid-template-columns: 1fr auto; font-size: 15px; margin-bottom: 12px; }
.bar i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 6px; background: var(--tile); margin-top: 6px; position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--cobalt); border-radius: 6px; }
.notes { list-style: none; padding: 0; margin: 22px 0 0; font-size: 15px; }
.notes li { display: grid; grid-template-columns: 22px 1fr; margin-bottom: 8px; }
.notes li::before { content: "✓"; color: var(--cobalt); font-weight: 700; }
.notes li.warn::before { content: "↗"; color: var(--ink); }

/* teaser */
.teaser .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.teaser .player { max-width: 340px; margin: 0 auto; aspect-ratio: 540 / 1089; border-radius: 28px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(15, 15, 18, 0.4); }
.teaser video { width: 100%; height: 100%; object-fit: cover; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* everything else */
.more .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: start; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.feature { padding: 20px 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.more .phone { max-width: 280px; margin: 0 auto; position: sticky; top: 96px; }
.more .caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* next */
.next { padding-top: 0; }
.next-box { border: 1.5px dashed rgba(15, 15, 18, 0.25); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.next-box h2 { font-size: clamp(36px, 4.6vw, 58px); }
.next-list { list-style: none; margin: 0; padding: 0; }
.next-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.next-list b { font-weight: 600; white-space: nowrap; }
.next-list li:last-child { border-bottom: 0; }
.next-list span { color: var(--muted); font-size: 15px; text-align: right; }

/* faq */
.faq .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq h2 { font-size: clamp(44px, 6vw, 80px); }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); max-width: 620px; }
summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }

/* final cta */
.final { background: var(--ink); color: #fff; text-align: left; }
.final h2 { font-size: clamp(56px, 10vw, 150px); margin-bottom: 28px; }
.final .lede { color: #B9B9C0; font-size: 19px; max-width: 520px; margin: 0 0 30px; }
.final .btn { background: #fff; color: var(--ink); }

/* footer */
.site-footer { padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* simple pages (thanks, privacy, 404) */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(52px, 9vw, 110px); margin-bottom: 24px; }
.page h2 { font-size: 22px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.page p, .page li { color: #2E2E35; }
.page ul { padding-left: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .teaser .wrap, .more .wrap, .faq .wrap, .next-box { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero .phone { max-width: 270px; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
  .step .phone { margin: 0; border-radius: 26px; padding: 6px; }
  .step .phone video, .step .phone img { border-radius: 21px; }
  .scores { grid-template-columns: 1fr; }
  .more .phone { position: static; max-width: 240px; }
  .teaser .wrap { gap: 40px; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 64px; }
  .hero .lede { font-size: 18px; }
  .join-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .join input[type="email"] { height: 46px; }
  .join .btn { width: 100%; }
  .score-tag { left: -12px; }
  .feature-list { grid-template-columns: 1fr; }
  .next-list li { flex-direction: column; gap: 2px; }
  .next-list span { text-align: left; }
  .teaser .player { order: 2; max-width: 300px; }
  .step { grid-template-columns: 120px 1fr; }
  .scorecard { padding: 22px; }
  .scorecard .big { font-size: 80px; }
  .ticker-track span { font-size: 28px; }
  .next-box { padding: 26px; }
  .site-header .btn.small { padding: 0 14px; }
}
