/*
 * Landing page styles. Same tokens as the app (CLAUDE.md chapter 8): colours, moods and motion.
 * Light only, with one dark band for privacy. Fonts are self-hosted (OFL, see /fonts/).
 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/newsreader-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5d636c;
  --line: #dedbd2;
  --line-strong: #cfcbc0;
  --accent: #2e7d78;
  --accent-hover: #256a66;
  --accent-soft: #e3efee;
  --accent-ink: #1f5753;
  --on-accent: #ffffff;

  --dark-bg: #121417;
  --dark-surface: #1b1e23;
  --dark-ink: #eceae4;
  --dark-muted: #a3a8b0;
  --dark-line: #30343b;
  --dark-accent: #5fb3ac;

  --mood-0: #b4410f;
  --mood-1: #d9692e;
  --mood-2: #e9a15a;
  --mood-3: #2e7d78;
  --mood-4: #a894d9;
  --mood-5: #8063c9;
  --mood-6: #5e3aa6;
  /* Text on a filled mood pill; every pair is at least 4.5:1 (same as the app). */
  --on-mood-0: #ffffff;
  --on-mood-1: #1a1206;
  --on-mood-2: #1a1206;
  --on-mood-3: #ffffff;
  --on-mood-4: #140d24;
  --on-mood-5: #ffffff;
  --on-mood-6: #ffffff;

  --motion-fast: 150ms;
  --motion-base: 220ms;
  --motion-slow: 300ms;
  --motion-tint: 400ms;
  /* The logo line is the one longer drawing, like the opening animation of the app. */
  --motion-draw: 1200ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.34, 1.45, 0.64, 1);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
[id] {
  scroll-margin-top: 16px;
}

.serif {
  font-family: var(--serif);
}
.muted {
  color: var(--muted);
}
.small {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.wrap--narrow {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
}
.h2--xl {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
}
.lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}
.lead--muted {
  color: var(--muted);
}

/* Buttons and links that look like buttons. Touch targets at least 44 pixels. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--surface);
  color: var(--ink);
}
.btn--s {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.brand__name {
  font-size: 21px;
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.nav__links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav__links > a:hover {
  color: var(--ink);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.lang a:hover {
  color: var(--ink);
}
.lang a.lang__on {
  color: var(--ink);
  font-weight: 600;
}

/* Signature: the logo line across the width */
.signature {
  margin-top: 8px;
}
.signature svg {
  display: block;
  height: 96px;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-top: 24px;
  padding-bottom: 96px;
}
.hero__text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__text .eyebrow {
  margin: 0;
}
.hero__title {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero__title em {
  color: var(--accent);
}
.hero__lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

/* Problem */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.problem__quote {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.15;
  font-style: italic;
}
.problem__body {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

/* How it works */
.how {
  padding-top: 112px;
  padding-bottom: 64px;
}
.how__title {
  max-width: 18ch;
  margin-bottom: 48px;
  font-size: clamp(34px, 3.6vw, 48px);
}
.how__grid {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.how__steps {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
  cursor: pointer;
}
.step__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.step__num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition:
    background-color var(--motion-base) var(--ease-out),
    color var(--motion-base) var(--ease-out);
}
.step.is-active .step__num {
  background: var(--accent);
  color: var(--on-accent);
}
.step__title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 400;
}
/* Inactive steps are calmer but keep at least 4.5:1 contrast (no see-through text). */
.step__btn {
  all: unset;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--motion-slow) var(--ease-out);
}
.step.is-active .step__btn {
  color: var(--ink);
}
.step__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 6px;
}
.step__plain {
  display: none;
}
.step__body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}
.step__phone {
  display: none;
}

.moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.moodbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color var(--motion-base) var(--ease-out),
    color var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out);
}
.moodbtn:focus-visible {
  outline-offset: 2px;
  border-radius: 999px;
}
.moodbtn__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c);
}
.moodbtn[aria-pressed='true'] {
  background: var(--c);
  border-color: var(--c);
  color: var(--on-c);
}
.moodbtn[aria-pressed='true'] .moodbtn__dot {
  box-shadow: 0 0 0 2px var(--surface);
}
.moods__hint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
}

.how__sticky {
  flex: 0 0 auto;
  position: sticky;
  top: max(24px, calc(50vh - 310px));
}

/* Privacy (dark band) */
.dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
}
.dark a {
  color: var(--dark-accent);
}
.dark :focus-visible {
  outline-color: var(--dark-accent);
}
.privacy {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}
.privacy__text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.privacy__text .eyebrow {
  color: var(--dark-accent);
  margin: 0;
}
.privacy__text .h2 {
  margin: 0;
}
.privacy .lead {
  color: var(--dark-muted);
  max-width: 50ch;
}
.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 559px) {
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
}
.point {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.point__title {
  font-weight: 500;
  font-size: 17px;
}
.point__body {
  color: var(--dark-muted);
  line-height: 1.55;
}
.honest {
  margin: 0;
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  padding: 18px 20px;
  line-height: 1.6;
  max-width: 62ch;
}
.honest strong {
  font-weight: 500;
}
.honest span {
  color: var(--dark-muted);
}

/* No advice */
.advice {
  padding-top: 112px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
}
.advice__text {
  flex: 1 1 320px;
  min-width: 0;
}
.advice .h2 {
  margin-bottom: 18px;
}
.advice .lead {
  max-width: 52ch;
}
.tags {
  flex: 1 1 280px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
}

/* Pricing */
.pricing {
  padding-top: 96px;
  padding-bottom: 96px;
}
.pricing .h2 {
  margin-bottom: 40px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan__name {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
}
.plan__price {
  margin: 0;
}
.plan__amount {
  font-size: 48px;
  line-height: 1.1;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.45;
}
.checks li {
  display: flex;
  gap: 10px;
}
.checks__icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}
.plans__foot {
  margin: 24px 0 0;
  font-size: 15px;
}

/* Questions */
.faq {
  padding-top: 32px;
  padding-bottom: 112px;
}
.faq .h2 {
  margin-bottom: 28px;
}
details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
details:last-of-type {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  font-size: 18px;
  font-weight: 500;
}
summary::-webkit-details-marker {
  display: none;
}
.plus {
  font-size: 24px;
  color: var(--accent);
  transition: transform var(--motion-base) var(--ease-out);
}
details[open] .plus {
  transform: rotate(45deg);
}
details p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* Closing */
.closing {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.closing__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.closing .h2 {
  margin: 0;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
}
.foot__inner {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.foot__links a:hover {
  color: var(--ink);
}

.notfound {
  padding-top: 48px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.notfound p {
  margin: 0;
}
.notfound__en {
  margin: 32px 0 0;
  font-size: 26px;
  font-weight: 400;
}

/* ---------- Phones: rebuilt app parts, decoration only (aria-hidden) ---------- */

.phone {
  flex: 0 0 auto;
  width: 300px;
  height: 620px;
  margin: 0 auto;
  border-radius: 46px;
  background: var(--ink);
  padding: 10px;
}
.phone--hero,
.phone--shadow {
  box-shadow: 0 40px 80px -40px rgba(22, 24, 29, 0.45);
}
.phone--dark {
  width: 280px;
  height: 580px;
  border-radius: 44px;
  background: #2a2e35;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}
.phone--dark .phone__screen {
  border-radius: 34px;
  background: var(--dark-bg);
  color: var(--dark-ink);
}

/* One phone with five screens: only the active one shows, fading in. */
.screen {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
}
.screen.is-active {
  visibility: visible;
  opacity: 1;
  animation: fade-in var(--motion-base) var(--ease-out);
}

.scr {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 16px 16px;
}
.scr--white {
  background: var(--surface);
}
.grow {
  flex: 1;
}

.form-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-top__title {
  font-weight: 600;
  font-size: 13px;
}
.form-top__end {
  width: 52px;
}
.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #eceae4;
  border-radius: 10px;
  padding: 3px;
}
.seg span {
  text-align: center;
  padding: 6px 0;
  color: var(--muted);
}
.seg .seg__on {
  background: var(--surface);
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.08);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.label-s {
  color: var(--muted);
  font-size: 11px;
}
.label-m {
  font-weight: 500;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--surface);
}
.chips--s {
  gap: 4px;
  font-size: 10px;
}
.chips--s .chip {
  padding: 3px 8px;
}
.chip--on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 500;
}
.icon-trade {
  color: var(--muted);
}
.asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px 3px 3px;
  background: var(--surface);
}
.asset-pill--s {
  gap: 4px;
  padding: 1px 7px 1px 2px;
}
.mono {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.asset-pill--s .mono {
  width: 14px;
  height: 14px;
  font-size: 7px;
}
.mono--l {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 18px;
}
.textbox {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}
.textbox--white {
  background: var(--surface);
  font-size: 15px;
}
.textbox--hero {
  min-height: 108px;
}
.textbox--s {
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.4;
}
/* A still caret while the note types itself. Never blinking. */
.caret {
  display: none;
  width: 1.5px;
  height: 15px;
  margin-left: 1px;
  background: var(--accent);
  vertical-align: -2px;
}
[data-typing] .caret {
  display: inline-block;
}

/* The mood tint: 7 percent of the mood colour through the surface, never more. */
.scr--tint {
  background-color: var(--surface);
  transition: background-color var(--motion-tint) var(--ease-out);
}
[data-mood='0'] {
  --c: var(--mood-0);
  --on-c: var(--on-mood-0);
  --pos: 0;
}
[data-mood='1'] {
  --c: var(--mood-1);
  --on-c: var(--on-mood-1);
  --pos: 1;
}
[data-mood='2'] {
  --c: var(--mood-2);
  --on-c: var(--on-mood-2);
  --pos: 2;
}
[data-mood='3'] {
  --c: var(--mood-3);
  --on-c: var(--on-mood-3);
  --pos: 3;
}
[data-mood='4'] {
  --c: var(--mood-4);
  --on-c: var(--on-mood-4);
  --pos: 4;
}
[data-mood='5'] {
  --c: var(--mood-5);
  --on-c: var(--on-mood-5);
  --pos: 5;
}
[data-mood='6'] {
  --c: var(--mood-6);
  --on-c: var(--on-mood-6);
  --pos: 6;
}
.scr--tint:not([data-mood='-1']) {
  background-color: color-mix(in srgb, var(--c) 7%, var(--surface));
}
.m0 {
  --c: var(--mood-0);
  --on-c: var(--on-mood-0);
}
.m1 {
  --c: var(--mood-1);
  --on-c: var(--on-mood-1);
}
.m2 {
  --c: var(--mood-2);
  --on-c: var(--on-mood-2);
}
.m3 {
  --c: var(--mood-3);
  --on-c: var(--on-mood-3);
}
.m4 {
  --c: var(--mood-4);
  --on-c: var(--on-mood-4);
}
.m5 {
  --c: var(--mood-5);
  --on-c: var(--on-mood-5);
}
.m6 {
  --c: var(--mood-6);
  --on-c: var(--on-mood-6);
}

/* The dot slider (as in the app, step 18) */
.mood {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mood__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
}
.mood__title {
  font-weight: 500;
}
.mood--big .mood__title {
  font-size: 13px;
}
.mood__pill {
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 500;
  background-color: var(--c);
  color: var(--on-c);
  transition:
    background-color var(--motion-slow) var(--ease-out),
    color var(--motion-slow) var(--ease-out);
}
.mood--big .mood__pill {
  padding: 4px 12px;
}
.mood__pill span {
  display: none;
}
[data-mood='0'] .mood__pill .l0,
[data-mood='1'] .mood__pill .l1,
[data-mood='2'] .mood__pill .l2,
[data-mood='3'] .mood__pill .l3,
[data-mood='4'] .mood__pill .l4,
[data-mood='5'] .mood__pill .l5,
[data-mood='6'] .mood__pill .l6 {
  display: inline;
}
.mood__track {
  position: relative;
  height: 26px;
}
.mood--big .mood__track {
  height: 34px;
}
.mood__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--line);
  border-radius: 2px;
}
.mood__dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -4px;
  display: flex;
  justify-content: space-between;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c);
  transition: opacity var(--motion-base) var(--ease-out);
}
/* The thumb moves with transform only: the rail spans the dot centres, so step N sits exactly on dot N. */
.mood__rail {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 0;
  transform: translateX(calc(var(--pos, 3) / 6 * 100%));
  transition: transform var(--motion-slow) var(--ease-settle);
}
.mood__thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 999px;
  background-color: var(--c);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 6px rgba(22, 24, 29, 0.25);
  transition: background-color var(--motion-slow) var(--ease-out);
}
.mood--big .mood__thumb {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}
.mood__unset {
  display: none;
  color: var(--muted);
  font-size: 11px;
}
.mood__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
/* Not filled in: muted dots, a dashed empty thumb waiting in the middle, no pill. */
[data-mood='-1'] .dot {
  opacity: 0.55;
}
[data-mood='-1'] .mood__pill {
  visibility: hidden;
}
[data-mood='-1'] .mood__thumb {
  background-color: transparent;
  border: 1.5px dashed var(--muted);
  box-shadow: none;
}
[data-mood='-1'] .mood__unset {
  display: block;
}
[data-mood='-1'] .mood__scale {
  display: none;
}
.scr__note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* Save button: "Saved" with a check that draws itself in about 300ms */
.savebtn {
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.savebtn__done {
  display: none;
  align-items: center;
  gap: 8px;
}
[data-saved='true'] .savebtn__label {
  display: none;
}
[data-saved='true'] .savebtn__done {
  display: inline-flex;
}
.draw-check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
[data-saved='true'] .draw-check path {
  animation: draw var(--motion-slow) var(--ease-out) both;
}

/* Calendar screen */
.scr--cal {
  gap: 0;
  padding: 26px 12px 0;
}
.cal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 8px;
}
.cal__month {
  font-size: 20px;
}
.cal__week,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}
.cal__week {
  color: var(--muted);
  font-size: 10px;
  padding-bottom: 4px;
}
.cal__grid {
  row-gap: 1px;
}
.cal__cell {
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cal__n {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.cal__n--today {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.cal__dots {
  display: flex;
  gap: 2px;
  height: 6px;
}
.cdot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--c);
}
.cdot--ring {
  background: none;
  border: 1px dashed var(--muted);
}
.cal__panel {
  flex: 1;
  margin: 6px -12px 0;
  padding: 12px 18px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.cal__day {
  font-size: 16px;
  margin-bottom: 8px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}
.card--dashed {
  border-style: dashed;
  border-color: #a3a8b0;
  padding: 9px 10px;
  gap: 5px;
}
.card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.card__title {
  font-weight: 500;
}
.card__time {
  font-size: 11px;
}
.card__small {
  font-size: 10px;
}
.card__quote {
  font-size: 14px;
  line-height: 1.35;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
}
.pill--mood {
  border-color: var(--c);
  background: var(--c);
  color: var(--on-c);
  padding: 1px 8px;
}

/* Reflection screen */
.scr--refl {
  gap: 11px;
  padding-bottom: 14px;
}
.banner {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11px;
}
.scr--refl .field {
  gap: 5px;
}
.draw-wave {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.is-active .draw-wave {
  animation: draw 600ms var(--ease-out) 250ms both;
}

/* Asset page screen */
.scr--asset {
  gap: 14px;
}
.asset-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.asset-head__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.asset-head__name {
  font-size: 19px;
  line-height: 1.1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 2px;
}
.stat__n {
  display: block;
  font-size: 18px;
}
.stat__l {
  font-size: 10px;
}
.chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.chart__svg {
  display: block;
  width: 100%;
  height: 110px;
  margin-top: 8px;
}
.chart__axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 4px;
}
.dcards {
  display: flex;
  gap: 6px;
  overflow: hidden;
}
.dcard {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dcard__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.dcard__date {
  font-size: 10px;
}

/* Unlock screen (dark theme), with the texts of the app itself */
.scr--unlock {
  gap: 0;
  padding: 0;
}
.unlock__bar {
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-line);
  padding: 30px 14px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.unlock__name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.unlock__body {
  flex: 1;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.unlock__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}
.unlock__text {
  color: var(--dark-muted);
  line-height: 1.5;
}
.unlock__btn {
  align-self: flex-start;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--dark-accent);
  color: var(--dark-bg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.unlock__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.unlock__foot {
  padding: 0 16px 22px;
  color: var(--dark-muted);
  font-size: 10px;
  line-height: 1.5;
}

/* Calm entrance for parts of a screen: fade in and 6 pixels up, staggered by 60ms. */
.is-active .rise {
  animation: rise var(--motion-base) var(--ease-out) both;
}
.is-active .d1 {
  animation-delay: 60ms;
}
.is-active .d2 {
  animation-delay: 120ms;
}
.is-active .d3 {
  animation-delay: 180ms;
}
.is-active .cal__cell:nth-child(n + 8) {
  animation-delay: 40ms;
}
.is-active .cal__cell:nth-child(n + 15) {
  animation-delay: 80ms;
}
.is-active .cal__cell:nth-child(n + 22) {
  animation-delay: 120ms;
}
.is-active .cal__cell:nth-child(n + 29) {
  animation-delay: 160ms;
}
.is-active .cal__cell:nth-child(n + 36) {
  animation-delay: 200ms;
}
.chart__svg circle {
  transform-box: fill-box;
  transform-origin: center;
}
.is-active .chart__svg circle:nth-of-type(2) { animation-delay: 60ms; }
.is-active .chart__svg circle:nth-of-type(3) { animation-delay: 120ms; }
.is-active .chart__svg circle:nth-of-type(4) { animation-delay: 180ms; }
.is-active .chart__svg circle:nth-of-type(5) { animation-delay: 240ms; }
.is-active .chart__svg circle:nth-of-type(6) { animation-delay: 300ms; }
.is-active .chart__svg circle:nth-of-type(7) { animation-delay: 360ms; }
.is-active .chart__svg circle:nth-of-type(8) { animation-delay: 420ms; }
.is-active .chart__svg circle:nth-of-type(n + 9) { animation-delay: 480ms; }

/* The signature draws itself from left to right. A clip instead of a dash, because the line keeps
   its stroke width at every page width (non-scaling-stroke), where dash lengths no longer match. */
.signature svg {
  animation: reveal var(--motion-draw) var(--ease-out) 200ms both;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Phone width (below 768 pixels, like the app) ---------- */
@media (max-width: 767px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top {
    flex-wrap: nowrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand__name {
    font-size: 19px;
  }
  .nav__links {
    display: none;
  }
  .signature svg {
    height: 64px;
  }
  .hero {
    gap: 48px;
    padding-bottom: 72px;
  }
  .hero__title {
    font-size: 42px;
  }
  .hero__lead {
    font-size: 18px;
  }
  .problem__inner,
  .closing__inner,
  .pricing {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .how {
    padding-top: 72px;
    padding-bottom: 32px;
  }
  .how__title {
    margin-bottom: 8px;
  }
  .how__sticky {
    display: none;
  }
  .step {
    min-height: 0;
    padding: 36px 0;
    cursor: auto;
  }
  .step .step__num {
    background: transparent;
    color: var(--accent);
  }
  .step__btn {
    display: none;
  }
  .step__plain {
    display: inline;
  }
  .step__title {
    font-size: 30px;
  }
  .step__body {
    font-size: 17px;
  }
  /* Under every step its own screen, at about 80 percent. */
  .step__phone {
    display: flex;
    justify-content: center;
    margin-top: 24px;
  }
  .step__phone-box {
    width: 240px;
    height: 496px;
  }
  .step__phone .phone {
    transform: scale(0.8);
    transform-origin: top left;
  }
  .privacy {
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 48px;
  }
  .advice {
    padding-top: 72px;
  }
  .plan {
    padding: 24px;
  }
  .faq {
    padding-bottom: 72px;
  }
  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*
 * Reduce motion: ALL motion off, the end state shows straight away
 * (the script also skips typing and the mood cycle). One central rule, as in the app.
 */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-slow: 0ms;
    --motion-tint: 0ms;
    --motion-draw: 0ms;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
