/* Mindfully website. Soft lavender light, indigo accents and a peach glow, as in the app's Daily Calm card. */
:root {
  --bg: #f7f5ff;
  --ink: #18213a;
  --muted: #5d6380;
  --soft: #8a8fa8;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(24, 33, 58, 0.08);
  --indigo: #6558d9;
  --violet: #8b7cf6;
  --peach: #f4a891;
  --tint: #ece8ff;
  --radius: 24px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(139, 124, 246, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(244, 168, 145, 0.16), transparent 60%),
    var(--bg);
  font: 17px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }
h1, h2, h3 { font-family: "Nunito", -apple-system, sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo); }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 10px; }

/* Header */
header.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 255, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
#site-menu { display: flex; gap: 22px; margin-left: auto; }
#site-menu a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
#site-menu a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--violet), var(--indigo)); color: #fff; font: 800 16px "Nunito", sans-serif; text-decoration: none;
  box-shadow: 0 10px 26px rgba(101, 88, 217, 0.28); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(101, 88, 217, 0.36); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { background: #fff; color: var(--indigo); box-shadow: inset 0 0 0 1.5px rgba(101, 88, 217, .35); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 11px 10px; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; background: var(--tint); color: var(--indigo); font-weight: 800; font-size: 14px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(139, 124, 246, .25); }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); margin: 20px 0 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--indigo), var(--violet) 55%, var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 20px; color: var(--muted); max-width: 540px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.facts b { color: var(--ink); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 124, 246, .35), rgba(244, 168, 145, .2) 55%, transparent 72%); filter: blur(10px); }

/* Phones */
.phone { position: relative; width: min(290px, 70%); border-radius: 44px; padding: 9px; background: #18213a; box-shadow: 0 40px 80px -30px rgba(24, 33, 58, .55); }
.phone img { border-radius: 36px; }
.phones { display: flex; justify-content: center; gap: 22px; }
.phones .phone { width: min(250px, 45%); }
.phones .phone.lower { margin-top: 56px; }

/* Sign-up */
.notify-wrap { margin-top: 28px; max-width: 480px; }
.notify { display: flex; gap: 8px; }
.notify input[type=email] { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(101, 88, 217, .2); background: #fff; color: var(--ink); font: 600 16px "Nunito", sans-serif; }
.notify input[type=email]:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 124, 246, .18); }
.notify .btn { min-height: 52px; }
.notify .hp { display: none; }
.notify-msg { min-height: 1.4em; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--indigo); }
.notify-msg.bad { color: #c2410c; }
.notify-note { font-size: 14px; color: var(--soft); }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: rgba(255, 255, 255, .5); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 19px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--indigo); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--indigo); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%236558d9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ticks b { color: var(--ink); }

.promise { text-align: center; max-width: 760px; margin: 0 auto; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.pills span { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 15px; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigo); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

.final { text-align: center; padding: 90px 0 100px; }
.final img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 18px 36px -12px rgba(101, 88, 217, .5); }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 12px; }
.final .notify-wrap { margin: 28px auto 0; }

.care { max-width: 780px; margin: 0 auto 70px; padding: 20px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 15px; text-align: center; }
.care b { color: var(--ink); }

footer.footer { border-top: 1px solid var(--line); padding: 38px 0 48px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: grid; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer .fine { font-size: 13px; color: var(--soft); max-width: 860px; }

/* Support and privacy pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 90px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.doc .updated { color: var(--soft); font-size: 15px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }

@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-inner > .btn-small { display: none; }
  #site-menu { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: #f7f5ff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -20px rgba(24, 33, 58, .25); }
  header.nav.open #site-menu { display: flex; }
  #site-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .notify { flex-direction: column; }
  .notify .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
