:root {
  color-scheme: light;
  --page: #f7f8fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #eef3ff;
  --ink: #10172f;
  --muted: #5e667c;
  --line: rgba(23, 42, 86, 0.12);
  --blue: #1768ff;
  --blue-dark: #0f4ed4;
  --blue-soft: #dfe9ff;
  --cyan: #78e5f3;
  --green: #31a86d;
  --orange: #ff9f43;
  --purple: #8957e5;
  --shadow-sm: 0 12px 34px rgba(30, 56, 115, 0.09);
  --shadow-lg: 0 34px 90px rgba(30, 56, 115, 0.16);
  --radius-lg: 32px;
  --radius-md: 24px;
  --max: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d1429;
  --surface: rgba(22, 31, 58, 0.82);
  --surface-solid: #151e38;
  --surface-soft: #192545;
  --ink: #f5f7ff;
  --muted: #aeb8d1;
  --line: rgba(190, 207, 255, 0.14);
  --blue: #6d9cff;
  --blue-dark: #96b6ff;
  --blue-soft: #233761;
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(89, 143, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(120, 229, 243, 0.15), transparent 28rem),
    var(--page);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(63, 90, 150, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 90, 150, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0 0;
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  box-shadow: 0 10px 36px rgba(21, 49, 103, 0.07);
  backdrop-filter: blur(22px) saturate(150%);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled .header-inner {
  box-shadow: var(--shadow-sm);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-wordmark img {
  width: 128px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-nav a:not(.header-cta) {
  position: relative;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.desktop-nav a:not(.header-cta)::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
  transition: transform 220ms ease;
}

.desktop-nav a:not(.header-cta):hover,
.desktop-nav a.is-active:not(.header-cta) {
  color: var(--ink);
}

.desktop-nav a:not(.header-cta):hover::after,
.desktop-nav a.is-active:not(.header-cta)::after {
  transform: scaleX(1);
}

@keyframes nav-underline-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.desktop-nav a.is-active:not(.header-cta)::after {
  animation: nav-underline-in 260ms ease both;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg,
.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-icon {
  display: flex;
  width: 20px;
  height: 16px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 220ms ease, opacity 180ms ease;
}

.menu-toggle.is-open .menu-icon-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-icon-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-icon-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.theme-toggle .moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

.menu-toggle {
  display: none;
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.header-app-store {
  display: inline-flex;
  align-items: center;
  transition: transform 170ms ease, filter 170ms ease;
}

.header-app-store:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.header-app-store img {
  width: 128px;
  height: auto;
}

.header-cta,
.primary-button {
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(23, 104, 255, 0.26);
  color: #fff;
}

.header-cta:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(23, 104, 255, 0.32);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  display: none;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(22px) saturate(150%);
}

.mobile-menu.is-open {
  display: grid;
  animation: mobile-menu-in 180ms ease both;
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-menu a {
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.mobile-menu a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.hero {
  position: relative;
  padding: 74px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(520px, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.5rem, 5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-lede {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.app-store-link {
  display: inline-block;
  transition: transform 170ms ease, filter 170ms ease;
}

.app-store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.app-store-link img {
  width: 166px;
  height: auto;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row span::before {
  color: var(--blue);
  content: "✓";
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-visual::before {
  position: absolute;
  inset: 7% 0 4% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(23, 104, 255, 0.24), rgba(23, 104, 255, 0.06) 48%, transparent 70%);
  content: "";
  filter: blur(4px);
}

.phone-cluster {
  position: absolute;
  inset: 0;
}

.phone {
  position: absolute;
  bottom: 0;
  width: 44%;
  max-width: 300px;
  filter: drop-shadow(0 34px 32px rgba(18, 34, 75, 0.2));
  transform-origin: bottom center;
  transition: transform 280ms ease;
}

.phone img {
  width: 100%;
  height: auto;
}

.phone-habits {
  left: 50%;
  z-index: 3;
  width: 50%;
  max-width: 335px;
  transform: translateX(-50%);
}

.phone-journal {
  left: 30%;
  z-index: 2;
  transform: translate(-50%, 24px) rotate(-7deg);
}

.phone-charts {
  left: 70%;
  z-index: 1;
  transform: translate(-50%, 30px) rotate(7deg);
}

.hero-visual:hover .phone-journal {
  transform: translate(-54%, 14px) rotate(-8deg) scale(1.03);
}

.hero-visual:hover .phone-charts {
  transform: translate(-46%, 20px) rotate(8deg) scale(1.03);
}

@media (min-width: 1400px) {
  .hero-visual {
    width: calc(100% + min(6vw, 140px));
    min-height: clamp(660px, 40vw, 710px);
  }
}

[data-theme="dark"] .mood-scale-great {
  color: #63b9fe;
}

[data-theme="dark"] .mood-scale-good {
  color: #52c180;
}

[data-theme="dark"] .mood-scale-neutral {
  color: #a189bd;
}

[data-theme="dark"] .mood-scale-low {
  color: #f99549;
}

[data-theme="dark"] .mood-scale-awful {
  color: #dd5652;
}

[data-theme="dark"] .pattern-insight-negative .pattern-insight-group-title,
[data-theme="dark"] .pattern-insight-negative .pattern-signal-delta {
  color: #ff8b82;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.benefit-strip article {
  min-height: 176px;
  padding: 30px;
  background: var(--surface-solid);
}

.benefit-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.benefit-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--blue);
  font-size: 1.18rem;
  font-weight: 900;
}

.benefit-icon-chart svg {
  width: 21px;
  height: 21px;
}

.benefit-icon svg {
  width: 21px;
  height: 21px;
}

.benefit-icon .material-symbols-rounded {
  font-size: 24px;
  line-height: 1;
}

.section {
  padding: 112px 0;
}

.section-compact {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-label {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading h2,
.feature-copy h2,
.privacy-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-heading p:not(.section-label),
.feature-copy > p:not(.section-label),
.privacy-copy > p:not(.section-label),
.final-cta > p:not(.section-label) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.intro-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 92%, var(--blue-soft)), var(--surface-solid));
  box-shadow: var(--shadow-sm);
}

.intro-panel::after {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 229, 243, 0.12), transparent 68%);
  content: "";
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 104px);
}

.feature-grid.reverse {
  grid-template-columns: minmax(460px, 1.1fr) minmax(0, 0.9fr);
}

.feature-grid.reverse .feature-copy {
  order: 2;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.feature-list li::before {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.product-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface-solid));
  box-shadow: var(--shadow-lg);
}

.routine-board {
  padding: 42px;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.mock-header span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mock-header strong {
  font-size: 1.1rem;
}

.trend-header > strong {
  font-size: 1.18rem;
}

.trend-header > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.routine-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.progress-track {
  height: 8px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-soft);
}

.progress-track span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.routine-list {
  display: grid;
  gap: 13px;
}

.routine-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: 0 8px 24px rgba(31, 56, 114, 0.06);
}

.routine-row .routine-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.routine-symbol svg {
  width: 22px;
  height: 22px;
}

.material-symbols-rounded {
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-size: 23px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.routine-row strong,
.routine-row small {
  display: block;
}

.routine-row strong {
  font-size: 0.95rem;
}

.routine-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.routine-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 850;
}

.journal-board {
  padding: 40px;
  background:
    radial-gradient(circle at 86% 10%, rgba(137, 87, 229, 0.16), transparent 14rem),
    linear-gradient(145deg, var(--surface-soft), var(--surface-solid));
}

.journal-list-board {
  display: grid;
  align-content: center;
  gap: 0;
}

.journal-list-board .mock-header {
  margin-bottom: 20px;
}

.journal-list-board .mock-header strong:last-child {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-entry-list {
  display: grid;
  gap: 14px;
}

.journal-card {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.journal-entry-header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.journal-date {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.journal-mood-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}

.journal-mood-icon .material-symbols-rounded {
  font-size: 18px;
}

.journal-card h3 {
  margin: 15px 0 9px;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.journal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.journal-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.journal-meta > span > .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.mood-entry-board {
  display: grid;
  align-content: center;
  padding: 38px;
}

.mood-entry-header,
.mood-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mood-entry-header {
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mood-entry-header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.mood-entry-row {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mood-entry-mood {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mood-entry-dot {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #65d391;
  box-shadow: 0 0 0 0.45rem rgba(101, 211, 145, 0.15);
  color: #fff;
}

.mood-entry-face {
  width: 30px;
  height: 30px;
}

.mood-entry-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mood-entry-mood strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.mood-entry-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mood-entry-context-group {
  min-width: 0;
}

.mood-entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.mood-entry-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue-soft) 72%, transparent);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.mood-entry-chips .material-symbols-rounded {
  font-size: 16px;
  line-height: 1;
}

.trend-board {
  display: grid;
  align-content: center;
  padding: 38px;
}

.trend-chart {
  position: relative;
  height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 20%,
    var(--surface-solid);
}

.mood-scale {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  z-index: 1;
  display: grid;
  width: 28px;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  font-size: 1.15rem;
}

.mood-scale-great {
  color: #1380c7;
}

.mood-scale-good {
  color: #2eaf6b;
}

.mood-scale-neutral {
  color: #b79dd6;
}

.mood-scale-low {
  color: #e87f25;
}

.mood-scale-awful {
  color: #d85a5a;
}

.trend-chart svg {
  position: absolute;
  inset: 20px 18px 20px 54px;
  width: calc(100% - 72px);
  height: calc(100% - 40px);
  overflow: visible;
}

.trend-chart path.mood-area {
  fill: url("#mood-chart-fill");
  stroke: none;
}

.trend-chart path.mood-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.5;
}

.pattern-insight-board {
  display: grid;
  align-content: center;
  padding: 38px;
}

.pattern-insight-header {
  margin-bottom: 7px;
}

.pattern-insight-header > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pattern-insight-groups {
  display: grid;
  gap: 13px;
}

.pattern-insight-group {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
}

.pattern-insight-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pattern-insight-negative .pattern-insight-group-title {
  color: #c65353;
}

.pattern-insight-group-title .material-symbols-rounded {
  font-size: 19px;
}

.pattern-signal-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.pattern-signal-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--blue-dark);
}

.pattern-signal-icon .material-symbols-rounded {
  font-size: 17px;
}

.pattern-signal-copy strong,
.pattern-signal-copy small {
  display: block;
}

.pattern-signal-copy strong {
  font-size: 0.82rem;
}

.pattern-signal-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.pattern-signal-delta {
  color: var(--green);
  font-size: 0.9rem;
}

.pattern-insight-negative .pattern-signal-delta {
  color: #c65353;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.outcome-card {
  min-height: 215px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: 0 14px 38px rgba(24, 48, 101, 0.06);
}

.outcome-number {
  display: block;
  margin-bottom: 35px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.outcome-card h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.outcome-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 70px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 84px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 90% 5%, rgba(120, 229, 243, 0.12), transparent 24rem),
    #101a38;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.privacy-copy .section-label {
  color: #91b3ff;
}

.privacy-copy > p:not(.section-label) {
  color: #b7c2dc;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.privacy-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(191, 207, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.privacy-card strong {
  display: block;
  font-size: 1rem;
}

.privacy-card p {
  margin: 10px 0 0;
  color: #b7c2dc;
  font-size: 0.88rem;
  line-height: 1.65;
}

.privacy-card .privacy-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 12px;
  background: rgba(109, 156, 255, 0.16);
  color: #a9c2ff;
  font-size: 22px;
  font-weight: 400;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 46px auto 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: 0 8px 24px rgba(27, 53, 108, 0.04);
}

.faq-question {
  position: relative;
  width: 100%;
  border: 0;
  padding: 22px 58px 22px 24px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.faq-question::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--blue-dark);
  content: "+";
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 200ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 92px) 24px;
  border-radius: 42px;
  background: linear-gradient(135deg, #1768ff, #1749bd);
  box-shadow: 0 30px 80px rgba(23, 104, 255, 0.3);
  color: #fff;
  text-align: center;
}

.final-cta::before,
.final-cta::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.final-cta::before {
  top: -160px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: rgba(120, 229, 243, 0.16);
}

.final-cta::after {
  right: -90px;
  bottom: -190px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.04), 0 0 0 76px rgba(255, 255, 255, 0.03);
}

.final-cta > * {
  position: relative;
  z-index: 2;
}

.final-cta .section-label {
  color: #d9e6ff;
}

.final-cta h2 {
  max-width: 760px;
  margin-inline: auto;
}

.final-cta > p:not(.section-label) {
  max-width: 650px;
  margin-inline: auto;
  color: #dbe6ff;
}

.final-cta .app-store-link {
  margin-top: 28px;
}

.site-footer {
  padding: 34px 0 42px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-top {
  padding-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a,
.footer-bottom {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue-dark);
}

.footer-bottom {
  padding-top: 18px;
  justify-content: space-between;
  text-align: left;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-email {
  margin-left: auto;
  color: var(--blue);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-header > .site-container {
    position: relative;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    max-width: 780px;
    text-align: center;
    margin-inline: auto;
  }

  .hero h1,
  .hero-lede {
    margin-inline: auto;
  }

  .hero-cta-row,
  .trust-row {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 720px);
    min-height: 600px;
    margin: 28px auto 0;
  }

  .phone {
    width: 38%;
    max-width: 260px;
  }

  .phone-habits {
    left: 50%;
    width: 44%;
    max-width: 280px;
    transform: translateX(-50%);
  }

  .phone-journal {
    left: 30%;
  }

  .phone-charts {
    left: 70%;
  }

  .feature-grid,
  .feature-grid.reverse,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid.reverse .feature-copy {
    order: -1;
  }

  .feature-copy {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  /* Sections have their own top breathing room, so leave just enough scroll
     offset for the sticky header without hiding the eyebrow behind it. */
  html {
    scroll-padding-top: 28px;
  }

  .site-container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding-top: 10px;
  }

  .header-inner {
    min-height: 60px;
    padding: 8px 9px 8px 17px;
  }

  .brand-wordmark img {
    width: 112px;
  }

  .header-cta {
    display: none;
  }

  .header-app-store {
    display: none;
  }

  .theme-toggle,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding: 58px 0 48px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.7rem);
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 1.04rem;
    line-height: 1.65;
  }

  .hero-cta-row {
    margin-top: 26px;
  }

  .trust-row {
    gap: 9px 14px;
  }

  .hero-visual {
    min-height: clamp(440px, 105vw, 540px);
    margin-top: clamp(16px, calc(76px - 8vw), 40px);
  }

  .phone {
    width: clamp(125px, 30vw, 155px);
    max-width: none;
  }

  .phone-journal {
    left: 31%;
  }

  .phone-charts {
    left: 69%;
  }

  .phone-habits {
    left: 50%;
    width: clamp(210px, 50vw, 245px);
    max-width: none;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
  }

  .benefit-strip article {
    min-height: auto;
    padding: 25px;
  }

  .benefit-icon {
    margin-bottom: 16px;
  }

  .section {
    padding: 58px 0;
  }

  .section-compact {
    padding: 42px 0;
  }

  .section-heading h2,
  .feature-copy h2,
  .privacy-copy h2,
  .final-cta h2 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .feature-grid,
  .feature-grid.reverse {
    gap: 28px;
  }

  .product-panel {
    min-height: 440px;
    border-radius: 30px;
  }

  .routine-board,
  .journal-board,
  .mood-entry-board,
  .trend-board,
  .pattern-insight-board {
    padding: 24px;
  }

  .routine-row {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .routine-row .routine-symbol {
    width: 40px;
    height: 40px;
  }

  .journal-card {
    padding: 24px;
  }

  .outcome-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .outcome-card {
    min-height: auto;
  }

  .outcome-number {
    margin-bottom: 22px;
  }

  .privacy-panel,
  .final-cta {
    border-radius: 30px;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-email {
    align-self: flex-end;
  }
}

/* One shared header contract for Home, Privacy, Terms, and Support. */
.shared-header-container {
  width: min(calc(100% - 40px), 73.75rem);
  margin-inline: auto;
}

.shared-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 10px 12px 10px 22px;
  box-sizing: border-box;
}

.shared-header-brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.shared-header-brand .brand-wordmark-image {
  display: block;
  width: 128px;
  height: auto;
  object-fit: contain;
}

.shared-header-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.shared-header-nav a {
  position: relative;
  padding: 11px 14px;
  color: var(--muted, rgba(12, 23, 43, 0.7));
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  transition: color 180ms ease;
}

.shared-header-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue, #1768ff), var(--cyan, #62d6ff));
  content: "";
  transition: transform 220ms ease;
}

.shared-header-nav a:hover,
.shared-header-nav a.is-active {
  color: var(--ink, #10172f);
}

.shared-header-nav a:hover::after,
.shared-header-nav a.is-active::after {
  transform: scaleX(1);
}

.shared-header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shared-header-theme-toggle,
.shared-header-menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  place-items: center;
  border: 1px solid var(--line, rgba(23, 42, 86, 0.12));
  border-radius: 50%;
  background: var(--surface-solid, #fff);
  color: var(--ink, #10172f);
  cursor: pointer;
}

.shared-header-theme-toggle .shared-header-theme-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-header-theme-toggle .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .shared-header-theme-toggle .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .shared-header-theme-toggle .theme-icon-moon {
  display: block;
}

.shared-header-menu-toggle {
  display: none;
}

.shared-header-menu-toggle .menu-icon {
  display: flex;
  width: 20px;
  height: 16px;
  flex-direction: column;
  justify-content: space-between;
}

.shared-header-menu-toggle .menu-icon-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 220ms ease, opacity 180ms ease;
}

.shared-header-menu-toggle.is-open .menu-icon-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.shared-header-menu-toggle.is-open .menu-icon-line:nth-child(2) {
  opacity: 0;
}

.shared-header-menu-toggle.is-open .menu-icon-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.shared-header-app-store {
  display: inline-flex;
  align-items: center;
}

.shared-header-app-store img {
  width: 128px;
  height: auto;
}

.shared-header-mobile {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 10;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  width: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line, rgba(23, 42, 86, 0.12));
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-solid, #fff);
  box-shadow: 0 24px 60px rgba(18, 38, 74, 0.16);
}

.shared-header-mobile.hidden {
  display: none !important;
}

.shared-header-mobile:not(.hidden),
.shared-header-mobile.is-open {
  display: grid;
}

.shared-header-mobile a {
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--ink, #10172f);
  font-size: 1rem;
  font-weight: 700;
}

.shared-header-mobile a:hover {
  background: var(--blue-soft, #dfe9ff);
}

@media (max-width: 1040px) {
  .shared-header-nav {
    display: none;
  }

  .shared-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .shared-header-actions {
    grid-column: 2;
  }

  .shared-header-menu-toggle {
    display: inline-grid;
  }
}

@media (max-width: 767px) {
  .shared-header-container {
    width: min(calc(100% - 28px), 73.75rem);
  }

  .shared-header-inner {
    min-height: 60px;
    padding: 8px 9px 8px 17px;
  }

  .shared-header-brand .brand-wordmark-image {
    width: 112px;
  }
}

[data-theme="dark"] .shared-header-nav a {
  color: rgba(221, 232, 249, 0.72);
}

[data-theme="dark"] .shared-header-theme-toggle,
[data-theme="dark"] .shared-header-menu-toggle {
  border-color: rgba(162, 195, 239, 0.2);
  background: rgba(20, 39, 69, 0.78);
  color: rgba(237, 244, 255, 0.88);
}

[data-theme="dark"] .shared-header-mobile {
  border-color: rgba(162, 195, 239, 0.16);
  background: #102039;
}

[data-theme="dark"] .shared-header-mobile a {
  color: #edf4ff;
}

/* Shared footer component overrides for the homepage stylesheet. */
.shared-site-footer {
  padding: 0;
  --shared-footer-link-blue: #1768ff;
  font-family: "Manrope", "SF Pro Display", "SF Pro Text", sans-serif;
}

.shared-site-footer .shared-footer-container {
  width: min(calc(100% - 2.5rem), 64rem);
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2rem 0;
}

.shared-site-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
  line-height: 1.5;
}

.shared-site-footer .brand-lockup-wordmark {
  line-height: 0;
}

.shared-site-footer .brand-wordmark-image {
  display: block;
  width: 6.4rem;
  height: 2.05rem;
  object-fit: contain;
}

.shared-site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.shared-site-footer .footer-email {
  margin-left: 0;
  color: var(--shared-footer-link-blue);
  font-size: 0.875rem;
  font-weight: 800;
}

.shared-site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.shared-site-footer .footer-links a {
  color: rgb(100 116 139);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.shared-site-footer .footer-bottom {
  justify-content: center;
  padding: 2rem 0;
  color: rgba(100, 116, 139, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.shared-site-footer .footer-copyright {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
}

.mobile-menu {
  overflow: hidden;
  background: var(--surface-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-menu.is-open {
  animation: shared-mobile-menu-in 180ms ease both;
}

@keyframes shared-mobile-menu-in {
  from {
    opacity: 1;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .shared-site-footer .shared-footer-container {
    width: min(calc(100% - 1.75rem), 64rem);
  }

  .shared-site-footer .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .shared-site-footer .footer-bottom {
    justify-content: flex-start;
    text-align: left;
  }
}
