:root {
  --paper: #f4efe6;
  --paper-deep: #efe4d4;
  --ink: #2a1a12;
  --muted: rgba(42, 26, 18, 0.72);
  --faint: rgba(42, 26, 18, 0.58);
  --brown: #8b4e2a;
  --brown-deep: #6d3b1e;
  --cream: #fffaf4;
  --line: rgba(139, 78, 42, 0.18);
  --green: #3f6f55;
  --shadow: 0 28px 60px rgba(42, 26, 18, 0.16);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(224, 163, 106, 0.35), transparent 60%),
    radial-gradient(700px 380px at 100% 8%, rgba(139, 78, 42, 0.12), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--brown-deep); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--brown); }

[data-play] { cursor: default; }

.store,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff7f0 !important;
  text-decoration: none;
  font-weight: 650;
}

.button-quiet {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid rgba(42, 26, 18, 0.22);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.hero,
.section,
.band,
.privacy-band,
.prose {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.03em; line-height: 1.08; }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 560;
}

h1 em {
  font-style: italic;
  font-weight: 560;
  color: var(--brown);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 560;
}

.lede {
  max-width: 38rem;
  font-size: 1.18rem;
  color: var(--muted);
}

.mood-live {
  color: var(--ink);
}

.mood-live strong { font-weight: 700; }

.mood-live span { color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.device {
  margin: 0;
  justify-self: end;
  width: min(300px, 100%);
  padding: 10px;
  border-radius: 36px;
  background: #1c140f;
  box-shadow: var(--shadow);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.device-small { width: min(280px, 100%); justify-self: start; }

.band {
  margin-top: 36px;
  margin-bottom: 12px;
  width: min(1120px, calc(100% - 24px));
  padding: 42px 28px;
  border-radius: 32px;
  background: var(--paper-deep);
}

.split {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.split p { color: var(--muted); }

.section { padding: 72px 0 12px; }

.section-head { max-width: 40rem; margin-bottom: 28px; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.features li {
  margin: 0;
  padding: 22px 20px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.features h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.features p,
.steps p { margin: 0; color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  counter-reset: step;
}

.steps li {
  margin: 0;
  padding-top: 8px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.formula {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #24160f;
  color: #f8f0e4;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.formula span { color: #e0a36a; }

.formula sup { font-size: 0.72em; }

.note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--brown);
  color: var(--muted);
}

.note p { margin: 0 0 8px; }

.note p:last-child { margin: 0; }

.privacy-band {
  margin-top: 64px;
  margin-bottom: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: #24160f;
  color: #f8f0e4;
  border-radius: 32px;
}

.privacy-band .eyebrow { color: #e0a36a; }

.privacy-band h2 { color: #fffaf4; }

.privacy-band p { color: rgba(248, 240, 228, 0.78); max-width: 40rem; }

.privacy-band img {
  width: 148px;
  height: 148px;
  border-radius: 36px;
}

.text-link {
  font-weight: 700;
  color: #e0a36a;
}

.site-footer {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 10px auto 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  color: var(--faint);
  font-size: 0.95rem;
}

.site-footer p { margin: 0; }

.site-footer nav { display: flex; gap: 16px; }

.site-footer a { color: var(--ink); text-decoration: none; font-weight: 650; }

.prose { padding: 48px 0 24px; max-width: 740px; }

.prose h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 8px; }

.prose h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
}

.prose p,
.prose li { color: var(--muted); }

.prose ul { padding-left: 1.2rem; }

.updated { color: var(--faint); font-size: 0.95rem; }

.mono { font-variant-ligatures: none; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .features,
  .steps,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .device,
  .device-small { justify-self: center; }

  .privacy-band img { justify-self: start; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(244, 239, 230, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 12px 8px;
  }

  .site-nav .store { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
