:root {
  --bg-1: #2C1500;
  --bg-2: #0F0F0F;
  --bg-3: #000000;
  --accent: #E8A04A;
  --accent-glow: rgba(232, 160, 74, 0.875);
  --text: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #0F0F0F;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: linear-gradient(45deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%) no-repeat;
  background-color: #0F0F0F;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; padding-top: 64px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(15, 15, 15, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.nav-center {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-center a:hover { color: var(--text); }
.nav-right { display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #0a0a0a !important;
  font-weight: 600;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,0.18); }
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; }
@media (min-width: 1024px) { .hero { padding: 128px 0 120px; } }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}
.hero .cta-row { justify-content: flex-start; }
@media (max-width: 1023px) {
  .hero-text { text-align: center; }
  .hero .cta-row { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.rating-pill .stars {
  display: inline-flex;
  gap: 3px;
  color: #FFC83D;
}
.rating-pill .stars svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 6px rgba(255, 200, 61, 0.385));
}
.rating-pill strong { color: var(--text); font-weight: 600; }

.h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 0 36px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #fff;
  color: #0a0a0a;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 56px;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.badge-sub { font-size: 11px; font-weight: 500; opacity: 0.7; display: block; line-height: 1; margin-bottom: 3px; }
.badge-main { font-size: 17px; line-height: 1; }
.badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.badge.disabled { background: rgba(255,255,255,0.06); color: var(--text-soft); cursor: default; }
.badge.disabled:hover { transform: none; box-shadow: none; }

.app-store-badge {
  display: inline-block;
  transition: transform .2s ease, filter .2s ease;
}
.app-store-badge img { width: 200px; max-width: 100%; height: auto; display: block; }
.app-store-badge:hover { transform: translateY(-2px); filter: brightness(1.1); }

.play-store-badge {
  display: inline-block;
  transition: transform .2s ease, filter .2s ease;
}
.play-store-badge img { width: 200px; max-width: 100%; height: auto; display: block; }
.play-store-badge:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  z-index: 1;
  width: 280px;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 13px;
}
@media (min-width: 1024px) { .phone { width: 320px; } }
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 515px;
  height: auto;
  display: block;
}
@media (min-width: 1024px) { .hero-image { max-width: 600px; } }
.phone-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

.section-head { text-align: center; margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}
.h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.subhead {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Your Journey (LifeReset style — alternating rows) ---------- */
.eyebrow-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232,160,74,0.4);
  background: rgba(232,160,74,0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.journey-rows {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}
@media (min-width: 1024px) { .journey-rows { gap: 64px; margin-top: 56px; } }
.journey-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 1024px) {
  .journey-row { grid-template-columns: 1fr 1fr; gap: 60px; max-width: 960px; margin: 0 auto; }
  .journey-row .journey-text { justify-self: end; }
  .journey-row .journey-visual { justify-self: start; }
  .journey-row.reverse .journey-text { order: 2; justify-self: start; }
  .journey-row.reverse .journey-visual { order: 1; justify-self: end; }
}
.journey-text .h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.journey-text p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 360px;
}
.journey-visual .phone { width: 196px; }
@media (min-width: 1024px) { .journey-visual .phone { width: 224px; } }
.journey-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 256px;
  height: auto;
  display: block;
}
@media (min-width: 1024px) { .journey-image { max-width: 320px; } }
@media (max-width: 1023px) {
  .journey-text { text-align: center; }
  .journey-text p { margin-left: auto; margin-right: auto; }
}
.journey-visual { display: flex; justify-content: center; position: relative; }
.journey-visual::before {
  content: '';
  position: absolute;
  inset: 18% 2%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 65%);
  filter: blur(50px);
  z-index: 0;
  opacity: 0.6;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature:hover { border-color: var(--border-strong); background: var(--surface-strong); transform: translateY(-2px); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,160,74,0.28), rgba(232,160,74,0.05));
  border: 1px solid rgba(232,160,74,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.feature p {
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial .stars {
  display: inline-flex;
  gap: 3px;
  color: #FFC83D;
}
.testimonial .stars svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 200, 61, 0.385));
}
.testimonial p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232,160,74,0.4), rgba(232,160,74,0.1));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  font-size: 14px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-name { font-weight: 600; font-size: 14px; }
.author-handle { font-size: 13px; color: var(--text-mute); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
.faq-item.is-open { border-color: var(--border-strong); background: var(--surface-strong); }
.faq-q {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color .2s ease;
  background: transparent;
  border: 0;
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--text-soft);
  transition: transform .3s cubic-bezier(.4,0,.2,1), color .2s ease;
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  overflow: hidden;
  height: 0;
  transition: height .3s cubic-bezier(.4,0,.2,1);
}
.faq-a-inner {
  padding: 0 26px 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-mute);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-links { display: flex; gap: 24px; }
.footer a { transition: color .15s ease; }
.footer-links a:hover, .copyright a:hover { color: var(--text); }
.copyright a { color: var(--text-soft); }

/* ---------- Legal pages ---------- */
.legal { padding: 80px 0 120px; }
.legal-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.legal-card h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-card .updated { color: var(--text-mute); font-size: 14px; margin-bottom: 28px; }
.legal-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.legal-card p {
  color: var(--text-soft);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .legal-card { padding: 28px 22px; }
}

/* Termly content overrides (rawTerms / rawPrivacy injected into .legal-content) */
.legal-content { font-size: 15px; line-height: 1.7; color: var(--text-soft); }
.legal-content *,
.legal-content [data-custom-class] {
  color: inherit !important;
  background: transparent !important;
  font-family: inherit !important;
  border-color: var(--border) !important;
}
.legal-content [data-custom-class="title"],
.legal-content [data-custom-class="title"] * {
  color: var(--text) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}
.legal-content [data-custom-class="subtitle"],
.legal-content [data-custom-class="subtitle"] * {
  color: var(--text-mute) !important;
  font-size: 14px !important;
}
.legal-content [data-custom-class="heading_1"],
.legal-content [data-custom-class="heading_1"] * {
  color: var(--text) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}
.legal-content [data-custom-class="heading_2"],
.legal-content [data-custom-class="heading_2"] * {
  color: var(--text) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}
.legal-content [data-custom-class="body_text"],
.legal-content [data-custom-class="body_text"] * { color: var(--text-soft) !important; }
.legal-content [data-custom-class="link"],
.legal-content [data-custom-class="link"] *,
.legal-content a,
.legal-content a * { color: var(--accent) !important; text-decoration: underline; }
.legal-content h1, .legal-content h2, .legal-content h3,
.legal-content h4, .legal-content h5, .legal-content h6 {
  color: var(--text) !important;
  margin: 28px 0 12px !important;
  font-weight: 600 !important;
}
.legal-content h1 { font-size: 28px !important; }
.legal-content h2 { font-size: 20px !important; }
.legal-content h3 { font-size: 17px !important; }
.legal-content p, .legal-content div, .legal-content li, .legal-content span {
  font-size: 15px !important;
}
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 10px 0; }
.legal-content li { margin: 6px 0; }
.legal-content table { border-collapse: collapse; margin: 14px 0; width: 100%; }
.legal-content th, .legal-content td { border: 1px solid var(--border) !important; padding: 8px 12px !important; }
/* Hide Termly editor-only markup */
.legal-content bdt.block-component,
.legal-content bdt.statement-end-if-in-editor,
.legal-content bdt.else-block { display: none !important; }
/* Hide the Termly logo span at top of raw file */
.legal-content > span:first-child[style*="background: url(data:image"] { display: none !important; }

/* ---------- Waitlist Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 36px 28px 28px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .25s ease, transform .25s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--surface-strong); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }
.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.modal-subtitle {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 0 22px;
  line-height: 1.5;
}
.waitlist-form { display: flex; flex-direction: column; gap: 10px; }
.waitlist-form[hidden], .waitlist-success[hidden], .waitlist-error[hidden] { display: none !important; }
.waitlist-input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
.waitlist-input::placeholder { color: var(--text-mute); }
.waitlist-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.waitlist-submit {
  width: 100%;
  padding: 13px 14px;
  background: var(--accent);
  color: #1a0f00;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(232, 160, 74, 0.18);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.waitlist-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 0 16px rgba(232, 160, 74, 0.25); }
.waitlist-submit:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
.waitlist-error {
  margin: 4px 0 0;
  font-size: 13px;
  color: #ff8a8a;
  text-align: center;
}
.waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
}
.waitlist-tick {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0f00;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(232, 160, 74, 0.28);
  animation: tick-pop .35s cubic-bezier(.2, 1.3, .6, 1) both;
}
.waitlist-tick svg { width: 26px; height: 26px; }
.waitlist-success p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
@keyframes tick-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (max-width: 480px) {
  .modal-panel { padding: 32px 20px 24px; border-radius: 16px; }
  .modal-title { font-size: 20px; }
}

