/* ==========================================================================
   Soothr — shared styles
   ========================================================================== */

:root {
  --bg: #f7f7f5;
  --bg-alt: #efeeeb;
  --white: #ffffff;
  --black: #0b0b0c;
  --ink: #0b0b0c;
  --ink-muted: rgba(11, 11, 12, 0.62);
  --ink-faint: rgba(11, 11, 12, 0.34);
  --hairline: rgba(11, 11, 12, 0.09);
  --purple: #8773e0;
  --purple-deep: #6c56cf;
  --purple-pale: #efecfc;
  --shadow-soft: 0 24px 60px rgba(11, 11, 12, 0.10);
  --shadow-tight: 0 8px 24px rgba(11, 11, 12, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 22px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover { background: var(--purple-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-tight);
}

.btn-primary:hover { background: var(--purple-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--hairline);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-store {
  background: var(--black);
  color: var(--white);
  padding: 13px 22px 13px 20px;
}

.btn-store svg { flex-shrink: 0; }

.btn-store .store-copy { text-align: left; line-height: 1.15; }
.btn-store .store-copy small { display: block; font-size: 11px; font-weight: 400; opacity: 0.7; }
.btn-store .store-copy strong { display: block; font-size: 16px; font-weight: 600; }

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

.hero {
  padding: 84px 0 60px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--purple-deep);
  background: var(--purple-pale);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 480px;
  margin: 0 0 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- Phone mockup ---------- */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  height: 612px;
  background: #050505;
  border-radius: 52px;
  padding: 14px;
  box-shadow: var(--shadow-soft), 0 2px 0 rgba(255,255,255,0.04) inset;
}

.phone::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #050505;
  border-radius: 20px;
  z-index: 5;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.mock-power {
  position: relative;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid rgba(11,11,12,0.07);
  box-shadow: 0 26px 40px rgba(11,11,12,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: none;
}

.mock-power:active { transform: scale(0.96); }

.mock-power svg { width: 52px; height: 52px; transition: stroke 0.35s ease; }

.phone-screen.is-on .mock-power {
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(135,115,224,0.25), 0 30px 70px rgba(135,115,224,0.35);
}

.mock-timer-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  height: 18px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.mock-logo {
  height: 26px;
  opacity: 0.28;
  filter: grayscale(1) brightness(0);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.phone-screen.is-on .mock-logo {
  opacity: 1;
  filter: none;
}

.mock-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.phone-screen.menu-open .mock-hint,
.phone-screen.timer-active .mock-hint { opacity: 0; }

/* radial sleep-timer menu */

.pizza-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 205px;
  height: 205px;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.34,1.4,.64,1), opacity 0.25s ease;
  z-index: 6;
}

.phone-screen.menu-open .pizza-menu {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.pizza-wedge {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%);
  transform-origin: 50% 50%;
  background: var(--black);
  border: 1.5px solid rgba(247,247,245,0.9);
  display: flex;
  cursor: pointer;
}

.pizza-wedge span {
  position: absolute;
  top: 26%;
  left: 50%;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transform-origin: 0 0;
}

.pizza-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(11,11,12,0.12);
}

/* ---------- Section shell ---------- */

section { padding: 90px 0; }

.section-head {
  max-width: 620px;
  margin: 0 0 52px;
}

.section-head .eyebrow { margin-bottom: 18px; }

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 22px; height: 22px; stroke: var(--purple-deep); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Story / split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }

.split h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 700;
}

.split p {
  font-size: 16.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

.split ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}

.split ul li .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  margin-top: 8px;
  flex-shrink: 0;
}

.media-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-tight);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.media-badge {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-badge svg { width: 40px; height: 40px; stroke: var(--purple); }

/* ---------- Everywhere / control grid ---------- */

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.control-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--hairline);
}

.control-card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-deep);
  background: var(--purple-pale);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.control-card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 650; }
.control-card p { font-size: 14.5px; color: var(--ink-muted); margin: 0; line-height: 1.55; }

/* ---------- Pricing ---------- */

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.pricing-card .price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
}

.pricing-card .price sup { font-size: 22px; margin-right: 4px; opacity: 0.8; }
.pricing-card .price span { font-size: 16px; font-weight: 500; opacity: 0.6; }

.pricing-card p.desc {
  font-size: 15.5px;
  color: rgba(255,255,255,0.62);
  max-width: 380px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.pricing-card .btn-store {
  background: var(--white);
  color: var(--black);
  margin: 0 auto;
}

.pricing-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}

.pricing-list li {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 7px;
}

.pricing-list li svg { width: 14px; height: 14px; stroke: var(--purple); flex-shrink: 0; }

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

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }

.faq-item.open .plus::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 640px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(180deg, var(--purple-pale), var(--bg));
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 70px 32px;
  margin: 0 28px;
}

.final-cta h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.final-cta p {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 460px;
  margin: 0 auto 32px;
}

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

footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand img { height: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--ink-faint); max-width: 260px; line-height: 1.55; margin: 0; }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--ink-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 64px 0 20px;
}

.legal-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}

.legal-hero p.updated {
  font-size: 14.5px;
  color: var(--ink-faint);
  margin: 0;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 28px 100px;
}

.legal-body h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 42px 0 14px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-muted);
}

.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }

.legal-body a.inline-link {
  color: var(--purple-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--purple-pale);
}

.legal-callout {
  background: var(--purple-pale);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.legal-callout strong { color: var(--purple-deep); }

.legal-toc {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 8px;
}

.legal-toc h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin: 0 0 14px; }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc a { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.legal-toc a:hover { color: var(--purple-deep); }
.legal-toc li { margin-bottom: 9px; }

/* ---------- Support page extras ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}

.support-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 26px;
}

.support-card h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 650; }
.support-card p { font-size: 14.5px; color: var(--ink-muted); margin: 0; line-height: 1.6; }

.contact-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 16px;
}

.contact-card h3 { font-size: 22px; margin: 0 0 10px; font-weight: 700; }
.contact-card p { font-size: 15px; color: rgba(255,255,255,0.65); margin: 0 0 22px; }

.contact-card .btn-primary { background: var(--purple); }
.contact-card .btn-primary:hover { background: var(--purple-deep); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-stage { order: -1; margin-bottom: 12px; }
  .phone { width: 260px; height: 530px; }
  .split { grid-template-columns: 1fr; }
  .split .split-media { order: -1 !important; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .control-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 24px 28px 32px; gap: 20px; border-bottom: 1px solid var(--hairline); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .final-cta { margin: 0 16px; padding: 52px 24px; }
  .hero { padding: 44px 0 40px; }
  section { padding: 64px 0; }
}
