:root {
  --deep: #0E1B2D;
  --dark: #182B49;
  --blue: #0072FF;
  --cyan: #00F2FE;
  --teal: #00EFA6;
  --orange: #FF512F;
  --white: #FFFFFF;
  --muted: #B6C3D9;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--cyan); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
header.site {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { display: block; border-radius: 9px; }
.brand .three { color: var(--cyan); }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.98rem;
}
nav.site a:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--deep);
  text-decoration: none;
  border: 2px solid var(--cyan);
}
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Hero */
.hero { padding: 5rem 0 4rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}
.hero p.lede { color: var(--muted); font-size: 1.2rem; max-width: 34rem; margin: 0 0 2rem; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Growing-habit bars: the one memorable element */
.bars {
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.25rem;
}
.bars .caption {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem;
}
.bars .caption strong { color: var(--teal); font-family: var(--display); }
.bar-row {
  display: flex; align-items: flex-end; gap: 0.5rem; height: 190px;
}
.bar-row span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--blue), var(--cyan));
  transform-origin: bottom;
  animation: grow 0.9s ease-out both;
}
.bar-row span:nth-child(n+11) { background: linear-gradient(to top, var(--teal), var(--cyan)); }
.bar-row span:last-child { background: var(--orange); }
.bar-row span:nth-child(1)  { height: 8%;  animation-delay: 0.05s; }
.bar-row span:nth-child(2)  { height: 10%; animation-delay: 0.1s; }
.bar-row span:nth-child(3)  { height: 13%; animation-delay: 0.15s; }
.bar-row span:nth-child(4)  { height: 17%; animation-delay: 0.2s; }
.bar-row span:nth-child(5)  { height: 22%; animation-delay: 0.25s; }
.bar-row span:nth-child(6)  { height: 28%; animation-delay: 0.3s; }
.bar-row span:nth-child(7)  { height: 35%; animation-delay: 0.35s; }
.bar-row span:nth-child(8)  { height: 43%; animation-delay: 0.4s; }
.bar-row span:nth-child(9)  { height: 52%; animation-delay: 0.45s; }
.bar-row span:nth-child(10) { height: 62%; animation-delay: 0.5s; }
.bar-row span:nth-child(11) { height: 72%; animation-delay: 0.55s; }
.bar-row span:nth-child(12) { height: 83%; animation-delay: 0.6s; }
.bar-row span:nth-child(13) { height: 100%; animation-delay: 0.65s; }
.bars .axis {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem;
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .bar-row span { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section.block { padding: 4rem 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--dark); }
section.block h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 30rem;
}
section.block p.intro { color: var(--muted); max-width: 38rem; margin: 0 0 2.5rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps .step { border-top: 3px solid var(--blue); padding-top: 1rem; }
.steps .step:nth-child(2) { border-color: var(--teal); }
.steps .step:nth-child(3) { border-color: var(--orange); }
.steps h3 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 0.5rem; }
.steps p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
.features h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--cyan); }
.features p { margin: 0; color: var(--muted); }

.cta { text-align: left; }
.cta h2 { max-width: 34rem; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-left: 1.25rem; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--white); }

/* Text pages (privacy, support) */
main.doc { padding: 3.5rem 0 4rem; }
main.doc .wrap { max-width: 760px; }
main.doc h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
main.doc .updated { color: var(--muted); margin: 0 0 2.5rem; }
main.doc h2 { font-family: var(--display); font-size: 1.3rem; margin: 2.5rem 0 0.6rem; color: var(--teal); }
main.doc p, main.doc li { color: #DCE4F2; }
main.doc ul { padding-left: 1.25rem; }
main.doc li { margin-bottom: 0.4rem; }

@media (max-width: 800px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero .wrap, .steps, .features { grid-template-columns: 1fr; }
  nav.site a { margin-left: 1rem; }
}
