@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #efefea;
  --ink: #101114;
  --muted: #62646a;
  --line: rgba(16, 17, 20, 0.12);
  --line-strong: rgba(16, 17, 20, 0.22);
  --grid-line: rgba(16, 17, 20, 0.035);
  --forest: #354d42;
  --bronze: #b99054;
  --blue: #dfe7ef;
  --sage: #dfe8df;
  --rose: #eee3df;
  --shadow: 0 24px 70px rgba(16, 17, 20, 0.12);
  --max: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e10;
  --surface: #15171b;
  --surface-2: #1d2025;
  --ink: #f5f2ea;
  --muted: #a9a59c;
  --line: rgba(245, 242, 234, 0.12);
  --line-strong: rgba(245, 242, 234, 0.22);
  --grid-line: rgba(245, 242, 234, 0.035);
  --forest: #8fa896;
  --bronze: #d2ad6d;
  --blue: #1f2a35;
  --sage: #1f2f28;
  --rose: #332421;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0e10;
    --surface: #15171b;
    --surface-2: #1d2025;
    --ink: #f5f2ea;
    --muted: #a9a59c;
    --line: rgba(245, 242, 234, 0.12);
    --line-strong: rgba(245, 242, 234, 0.22);
    --grid-line: rgba(245, 242, 234, 0.035);
    --forest: #8fa896;
    --bronze: #d2ad6d;
    --blue: #1f2a35;
    --sage: #1f2f28;
    --rose: #332421;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px, 40px 40px, auto;
  color: var(--ink);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 17, 20, 0.18);
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.nav-links a {
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.nav-links a[aria-current="page"],
.nav-links a.is-active {
  color: var(--ink);
  background: var(--surface-2);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-control {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.theme-control button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  line-height: 1;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.theme-control button.is-active {
  color: var(--surface);
  background: var(--ink);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 900;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.button:active,
.nav-action:active,
.theme-control button:active,
.nav-links a:active,
.feature-link:active {
  transform: scale(0.97);
}

.nav-action,
.button-primary {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 14px 38px rgba(16, 17, 20, 0.16);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

main {
  overflow: clip;
}

.hero,
.section,
.trust-strip,
.page-hero,
.download-band,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 74px;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 86px 0 76px;
}

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

.eyebrow,
.page-kicker,
.feature-tile > span,
.feature-link > span,
.manifesto-card > span,
.principle-card > span,
.partner-card > span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 5.8rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.hero-lede,
.section-copy > p,
.rich-copy p,
.download-band p,
.feature-tile p,
.feature-link p,
.manifesto-card p,
.principle-card p,
.partner-card p,
.loop-row p,
.site-footer p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.hero-copy > p:not(.eyebrow),
.hero-lede {
  max-width: 680px;
  font-size: 1.28rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.fine-print {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 800;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  perspective: 1200px;
}

.phone-shell {
  position: relative;
  width: min(100%, 354px);
  min-height: 610px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-2) 92%, transparent));
  box-shadow: var(--shadow);
  transform: rotateX(5deg) rotateY(-8deg);
  transform-style: preserve-3d;
}

.phone-shell::before {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  content: "";
  transform: translateX(-50%);
}

.phone-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 34px 10px 18px;
}

.phone-top span,
.daily-word span,
.mission-card span,
.metric-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.phone-top strong {
  font-size: 3.8rem;
  line-height: 0.84;
}

.daily-word,
.mission-card,
.phone-grid > div,
.metric-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.daily-word,
.mission-card {
  margin-top: 12px;
  padding: 18px;
}

.daily-word strong,
.mission-card strong,
.metric-list strong {
  display: block;
  margin-top: 8px;
}

.daily-word p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-line {
  height: 9px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-line span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--bronze);
}

.progress-line.tall {
  height: 14px;
  margin-top: 26px;
}

.progress-line.tall span {
  width: 84%;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.phone-grid > div {
  padding: 16px;
}

.phone-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.phone-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.signal-card {
  position: absolute;
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 18px 48px rgba(16, 17, 20, 0.14);
  transition: transform 220ms var(--ease-out);
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 6px;
}

.signal-top {
  top: 88px;
  right: 8px;
}

.signal-bottom {
  left: 2px;
  bottom: 90px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.trust-strip span {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.section {
  padding: 98px 0;
}

.split-section,
.product-deep-dive,
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.section-copy {
  max-width: 650px;
}

.section-copy p {
  font-size: 1.12rem;
  font-weight: 700;
}

.loop-list {
  display: grid;
  gap: 12px;
}

.loop-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.loop-row > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.loop-row p {
  margin-bottom: 0;
}

.page-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-link,
.manifesto-card,
.feature-tile,
.principle-card,
.partner-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  box-shadow: 0 18px 46px rgba(16, 17, 20, 0.08);
}

.feature-link {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  transition:
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.feature-link h2 {
  margin-top: auto;
  font-size: 2.25rem;
}

.feature-link p {
  margin-bottom: 0;
  font-weight: 750;
}

.page-hero {
  padding: 92px 0 42px;
}

.page-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.page-hero h1 {
  max-width: 1040px;
}

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

.manifesto-card,
.principle-card,
.feature-tile {
  padding: 26px;
}

.manifesto-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.manifesto-card h2 {
  margin-top: auto;
  font-size: 2.15rem;
}

.manifesto-card p,
.principle-card p,
.feature-tile p {
  margin-bottom: 0;
  font-weight: 720;
}

.rich-copy {
  display: grid;
  gap: 18px;
  font-size: 1.14rem;
  font-weight: 700;
}

.rich-copy p {
  margin: 0;
}

.feature-matrix {
  grid-template-columns: repeat(6, 1fr);
}

.feature-tile {
  min-height: 250px;
  grid-column: span 2;
}

.feature-tile.large {
  grid-column: span 4;
  min-height: 340px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sage) 70%, var(--surface)), color-mix(in srgb, var(--blue) 55%, var(--surface)));
}

.feature-tile.large h2 {
  max-width: 640px;
}

.feature-phone {
  justify-self: center;
  min-height: 520px;
  transform: none;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.metric-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.community-layout {
  align-items: center;
}

.partner-stack {
  display: grid;
  gap: 12px;
}

.partner-card {
  min-height: 138px;
  padding: 22px;
}

.partner-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.3rem;
}

.principle-card {
  min-height: 240px;
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ink) 96%, var(--forest)), color-mix(in srgb, var(--ink) 86%, var(--bronze)));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.download-band .eyebrow,
.download-band p {
  color: rgba(255, 255, 255, 0.72);
}

.download-band h2 {
  max-width: 720px;
  color: #ffffff;
}

.download-band .button-primary {
  color: var(--ink);
  background: #ffffff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 34px 0 48px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  color: var(--muted);
  font-weight: 850;
}

.site-footer p {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
}

.legal-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 70px;
}

.legal-card {
  padding: 42px;
}

.legal-card h1 {
  margin-bottom: 12px;
  font-size: 3.9rem;
}

.legal-card h2 {
  margin: 36px 0 10px;
  font-size: 1.45rem;
}

.legal-card a {
  color: var(--forest);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card ul {
  padding-left: 1.25rem;
}

.legal-card li + li {
  margin-top: 9px;
}

.legal-updated {
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 340ms var(--ease-out),
    transform 340ms var(--ease-out);
}

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

.delay-1 {
  transition-delay: 55ms;
}

.delay-2 {
  transition-delay: 110ms;
}

.delay-3 {
  transition-delay: 165ms;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink);
    background: var(--surface-2);
  }

  .button:hover,
  .nav-action:hover {
    transform: translateY(-2px);
  }

  .feature-link:hover {
    border-color: var(--line-strong);
    box-shadow: 0 24px 58px rgba(16, 17, 20, 0.12);
    transform: translateY(-4px);
  }

  .phone-stage:hover .signal-top {
    transform: translate3d(8px, -6px, 0);
  }

  .phone-stage:hover .signal-bottom {
    transform: translate3d(-8px, 6px, 0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-self: start;
    overflow-x: auto;
    max-width: 100%;
  }

  .hero,
  .split-section,
  .product-deep-dive,
  .community-layout,
  .download-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .hero {
    min-height: auto;
    gap: 42px;
    padding-top: 64px;
  }

  .phone-stage {
    min-height: 560px;
  }

  .trust-strip,
  .page-links,
  .manifesto-grid,
  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-tile,
  .feature-tile.large {
    grid-column: span 1;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 660px) {
  .site-header {
    padding: 12px;
  }

  .brand span {
    font-size: 0.96rem;
  }

  .nav-action {
    display: none;
  }

  .theme-control button {
    width: 30px;
    height: 30px;
  }

  .hero,
  .section,
  .trust-strip,
  .page-hero,
  .download-band,
  .site-footer,
  .legal-page {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 3.24rem;
  }

  h2,
  .legal-card h1 {
    font-size: 2.3rem;
  }

  .hero-copy > p:not(.eyebrow),
  .hero-lede {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding: 46px 0 56px;
  }

  .phone-stage {
    min-height: 500px;
  }

  .phone-shell {
    width: min(100%, 310px);
    min-height: 540px;
    transform: none;
  }

  .signal-card {
    position: static;
    width: min(100%, 280px);
    margin-top: 10px;
  }

  .trust-strip,
  .page-links,
  .manifesto-grid,
  .feature-matrix,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip span {
    min-height: 72px;
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding-top: 58px;
  }

  .feature-link,
  .manifesto-card {
    min-height: 260px;
  }

  .download-band,
  .legal-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
