/* Lento palette, taken from the logo: espresso #412f26, gold #ffb400, tagline brown #866042 */
:root {
  --night: #412f26;
  --night-deep: #30221b;
  --lamp: #ffb400;
  --bg: #f7f1e8;
  --surface: #fdfaf5;
  --ink: #2e211b;
  --muted: #6e5a4d;
  --line: #e1d5c4;
  --btn: #412f26;
  --btn-ink: #faf5ec;
  --focus: #9a6508;
  --good: #3f6b3a;
  --warn: #9a3b2e;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1511;
    --surface: #271e18;
    --ink: #f1e8dc;
    --muted: #bfab99;
    --line: #3b2f27;
    --btn: #ffb400;
    --btn-ink: #1f1608;
    --focus: #ffb400;
    --good: #9bc59a;
    --warn: #e8998a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 7vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.wide { max-width: 1040px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid var(--btn); background: var(--btn); color: var(--btn-ink);
  font: 600 1rem var(--sans); cursor: pointer; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.block { width: 100%; }
input[type='email'], textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
.msg { min-height: 1.5em; margin: 10px 0 0; font-size: 0.95rem; }
.msg.err { color: var(--warn); }
.msg.ok { color: var(--good); }

/* hero: always night, the one memorable moment */
.hero { background: var(--night); color: #f4ece1; padding: 22px 0 72px; }
.hero .muted { color: #cdb9a6; }
.hero .btn { background: var(--lamp); border-color: var(--lamp); color: #1f1608; }
.hero input[type='email'] { background: var(--night-deep); border-color: #5a4538; color: #f4ece1; }
.hero .msg.err { color: #f2a898; }
.hero .msg.ok { color: #b5dcb0; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 44px; }
.brand { font: 400 1.3rem var(--display); text-decoration: none; display: inline-flex; align-items: center; }
.logo { display: block; height: 56px; width: auto; }
.hero .logo { height: 72px; }
.app-top .logo { height: 52px; }
.nav a.link { font-size: 0.95rem; color: #e6d6c3; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.signup { display: grid; gap: 10px; margin-top: 28px; max-width: 460px; }
@media (min-width: 520px) { .signup.row { grid-template-columns: 1fr auto; } }
.orb-wrap { position: relative; display: grid; place-items: center; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 0 auto; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #7a604f; }
.orb { position: absolute; inset: 14%; border-radius: 50%; background: var(--lamp); transform: scale(0.55); }
.orb-label { position: relative; font: 400 1.15rem var(--display); color: #1f1608; }
.orb-note { text-align: center; margin-top: 18px; font-size: 0.92rem; }

/* sections */
section.block { padding: 64px 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 34px; height: 34px;
  border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center;
  font: 400 1rem var(--display);
}
.steps strong { display: block; font-weight: 600; }
.feature { padding: 18px 0; border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: 0.3em; }
.feature p { margin: 0; color: var(--muted); }
.sample { border-left: 3px solid var(--lamp); padding: 4px 0 4px 20px; margin: 24px 0 0; }
.sample p { margin: 0 0 0.8em; }
.plans { margin-top: 24px; }
.plan { display: grid; gap: 4px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .plan { grid-template-columns: 1fr auto; } }
.plan .price { font: 400 1.6rem var(--display); }
.plan p { margin: 0; color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-weight: 400; }
details[open] summary::after { content: '\2212'; }
details p { margin: 12px 0 0; color: var(--muted); }
footer { margin-top: 0; padding: 32px 0 48px; border-top: 1px solid var(--line); }
footer p { margin: 0 0 0.6em; }

/* app */
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.app-main { padding: 28px 0 130px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; z-index: 5;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar button {
  flex: 1; min-height: 60px; background: none; border: 0; color: var(--muted);
  font: 600 0.85rem var(--sans); cursor: pointer;
}
.tabbar button[aria-current='page'] { color: var(--ink); box-shadow: inset 0 3px 0 var(--lamp); }
.kicker { color: var(--muted); font-size: 0.95rem; margin: 0 0 6px; }
.practice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.practice h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.practice p { margin: 0; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 4px; }
.moods button {
  min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 1.1rem var(--sans); cursor: pointer;
}
.moods button[aria-pressed='true'] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.scale { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.field-label { display: block; font-weight: 600; margin: 18px 0 6px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 18px 0; }
.days button {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); background: transparent;
  color: var(--ink); font: 600 0.95rem var(--sans); cursor: pointer;
}
.days button.done { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.days button.next { border-color: var(--lamp); box-shadow: inset 0 0 0 1.5px var(--lamp); }
.days button.locked { opacity: 0.4; cursor: default; }
.card-row { border-top: 1px solid var(--line); padding: 14px 0; }
.card-row:last-child { border-bottom: 1px solid var(--line); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 0 0 24px; }
.notice p:last-child { margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pacer { display: grid; place-items: center; padding: 28px 0 8px; }
.pacer .orb-wrap { max-width: 240px; }
.pacer .orb { background: var(--lamp); transition: transform 4s ease-in-out; }
.pacer .orb-ring { border-color: var(--line); }
.pacer-left { text-align: center; color: var(--muted); font-size: 0.95rem; min-height: 1.6em; }
.toolkit h2 { margin-top: 44px; }
.toolkit ol { padding-left: 1.2em; }
.toolkit li { margin-bottom: 0.7em; }
.quote { border-left: 3px solid var(--lamp); padding-left: 16px; margin: 0 0 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.switch { display: flex; align-items: center; gap: 10px; }
.switch input { width: 22px; height: 22px; accent-color: var(--btn); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .pacer .orb { transition: none !important; }
}

/* landing page additions */
.eyebrow { font: 600 0.8rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lamp); margin: 0 0 14px; }
.lede { font-size: 1.15rem; max-width: 34em; }
.facts { list-style: none; margin: 0; padding: 32px 0 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { display: grid; gap: 2px; }
.facts strong { font: 400 1.25rem var(--display); }
.facts span { color: var(--muted); font-size: 0.92rem; }
.checks, .crosses { list-style: none; padding: 0; margin: 20px 0; }
.checks li, .crosses li { position: relative; padding: 0 0 12px 32px; }
.checks li::before { content: ''; position: absolute; left: 3px; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid var(--focus); border-bottom: 2.5px solid var(--focus); transform: rotate(-45deg); }
.crosses li::before { content: '\00d7'; position: absolute; left: 2px; top: -0.15em; font: 400 1.6rem/1.6 var(--sans); color: var(--muted); }
.weeks { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .weeks { grid-template-columns: 1fr 1fr; } }
.week { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.week .tag { font: 600 0.78rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--focus); margin: 0 0 8px; }
.week h3 { margin-bottom: 0.35em; }
.week p:last-child { margin: 0; color: var(--muted); }
.fit { display: grid; gap: 8px 32px; margin-top: 8px; }
@media (min-width: 640px) { .fit { grid-template-columns: 1fr 1fr; } }
.phone { max-width: 340px; margin: 28px auto; border: 8px solid var(--night); border-radius: 36px; background: var(--bg); box-shadow: 0 18px 40px rgba(46, 33, 27, 0.18); }
.phone-in { padding: 22px 20px 12px; pointer-events: none; }
.phone-in h3 { font-size: 1.35rem; }
.phone-in .practice { margin: 16px 0; }
.phone-in p { font-size: 0.95rem; line-height: 1.6; }
.phone-in .moods button { min-height: 42px; }
.band { padding: 64px 0 72px; }
.band h2 { margin-bottom: 0.4em; }

/* landing hero: light by default so the full-color logo and tagline can be used; dark in dark mode */
.nav { justify-content: flex-end; padding-bottom: 8px; }
.hero-logo { display: inline-block; margin: 0 0 36px; }
.hero-logo img { display: block; width: min(360px, 100%); height: auto; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
.hero .lede { font-size: 1.08rem; }
@media (prefers-color-scheme: light) {
  .hero-light { background: linear-gradient(180deg, #fffaf1 0%, #f7f1e8 100%); color: var(--ink); border-bottom: 1px solid var(--line); }
  .hero-light .muted { color: var(--muted); }
  .hero-light .btn { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
  .hero-light input[type='email'] { background: var(--surface); border-color: #cdbba3; color: var(--ink); }
  .hero-light .msg.err { color: var(--warn); }
  .hero-light .msg.ok { color: var(--good); }
  .hero-light .nav a.link { color: var(--muted); }
  .hero-light .orb-ring { border-color: #d9c7ad; }
  .hero-light .eyebrow { color: var(--focus); }
}
@media (prefers-color-scheme: dark) {
  .hero-logo img { width: min(220px, 100%); }
}

/* alternating section tones */
:root { --bg-lite: #faf5ec; --bg-alt: #eadcc4; --line-alt: #d2bfa2; }
@media (prefers-color-scheme: dark) { :root { --bg-lite: #1c1511; --bg-alt: #261d17; --line-alt: #43362d; } }
section.tone-a { background: var(--bg-lite); }
section.tone-b { background: var(--bg-alt); --line: var(--line-alt); }
section.tone-c {
  background: var(--night); color: #f4ece1;
  --ink: #f4ece1; --muted: #cdb9a6; --surface: #51392e; --line: #6b5445; --focus: #ffb400;
}

/* photos: feathered into the page colors, no hard edges */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid > div { max-width: 540px; }
.hero-photo { position: absolute; z-index: 0; right: 0; top: 0; bottom: 0; width: 58%; pointer-events: none; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #f7f1e8 0%, rgba(247, 241, 232, 0) 34%); }
.hero-photo img, .band-photo img, .duo img { display: block; max-width: none; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, #000 40%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, #000 40%);
  filter: sepia(0.18) saturate(0.95);
}
@media (max-width: 859px) {
  .hero-photo { position: relative; width: auto; height: 320px; order: 3; margin: 8px 0 -72px; }
  .hero { display: flex; flex-direction: column; }
  .hero-photo { order: 2; }
  .hero-photo img { object-position: 60% 25%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); }
}
.pacer-demo { margin: 22px 0 6px; }
.pacer-demo .orb-wrap { max-width: 220px; margin: 0; }
.pacer-demo .orb-ring { border-color: #cdbba3; }
.duo { position: relative; height: clamp(230px, 54vw, 380px); margin: 6px 0 18px; }
.duo img {
  position: absolute; top: 0; width: 64%; height: 100%; object-fit: cover; object-position: 50% 28%;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 58%, transparent 100%);
  filter: sepia(0.2) saturate(0.92); mix-blend-mode: multiply;
}
.duo img:first-child { left: -5%; transform: rotate(-2deg); }
.duo img:last-child { right: -5%; transform: rotate(1.5deg); }
.band { position: relative; overflow: hidden; }
.band > .wrap { position: relative; z-index: 1; }
.band .signup, .band p { max-width: 460px; }
.band-photo { display: none; }
@media (min-width: 760px) {
  .band-photo { display: block; position: absolute; z-index: 0; right: 0; top: 0; bottom: 0; width: 56%; pointer-events: none; }
  .band-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; opacity: 0.92;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%);
    filter: sepia(0.2) saturate(0.95);
  }
}
@media (prefers-color-scheme: dark) {
  .duo img { mix-blend-mode: normal; opacity: 0.8; }
  .hero-photo img { opacity: 0.55; }
  .hero-photo::after { background: linear-gradient(to top, #30221b 0%, rgba(48, 34, 27, 0) 34%); }
}
