/* Malabell's site: the app's "Spectral Calm" look. White paper, #0A0A0A ink, violet for the practice,
   soft spectral clouds, Geist with one Instrument Serif italic word, black pill buttons. */
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/InstrumentSerif_400Regular_Italic.ttf') format('truetype'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --text-2: #404040;
  --muted: #5F5F5F;
  --violet: #6D4AFF;
  --line: #E5E5E5;
  --tile: #F4F4F5;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 'Geist', system-ui, -apple-system, sans-serif;
  /* the clouds: soft lilac, sky and amber, fixed behind the top of the page */
  background-image:
    radial-gradient(60rem 40rem at 0% -10%, rgba(201, 189, 255, 0.55), transparent 60%),
    radial-gradient(50rem 36rem at 100% 0%, rgba(143, 211, 255, 0.35), transparent 60%),
    radial-gradient(40rem 30rem at 85% 55rem, rgba(255, 197, 138, 0.28), transparent 60%);
  background-repeat: no-repeat;
}
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.top, main, .foot { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.brand img { border-radius: 8px; }
.wordmark { font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.wordmark em { font-size: 1.15em; letter-spacing: 0; }
.soon { font-size: 14px; color: var(--muted); text-align: right; }

h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: 1.02; }
h1 em { font-size: 1.1em; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; }
h2 em, h3 em { font-size: 1.12em; letter-spacing: 0; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }

/* The hero: the promise on the left, the film on the right (stacked on phones). */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(16px, 4vw, 56px) 0 clamp(64px, 10vw, 140px); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.lede { margin: 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 30rem; }
.lede.quiet { color: var(--muted); font-size: 17px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: 17px;
}
.pill:hover { background: #2A2540; }

.film { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
.film video { cursor: pointer; width: 100%; aspect-ratio: 9 / 16; border-radius: 36px; background: #F6F4FB; box-shadow: 0 30px 80px rgba(30, 20, 70, 0.18); }
.sound {
  position: absolute; right: 14px; bottom: 14px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: rgba(10, 10, 10, 0.78); color: #FFFFFF; font: 500 15px 'Geist', system-ui, sans-serif; cursor: pointer;
}
.sound:hover { background: var(--ink); }

/* How it works: a real sequence, so it's numbered. */
.how { padding-bottom: clamp(72px, 10vw, 140px); }
.how h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 14px; }
.steps li img { width: 100%; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(30, 20, 70, 0.1); background: var(--tile); }
.steps h3::before { content: counter(step); display: block; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 56px; line-height: 1; color: var(--violet); margin: 10px 0 8px; letter-spacing: 0; }
.steps p { margin: 0; color: var(--text-2); max-width: 26rem; }

.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-bottom: clamp(72px, 10vw, 140px); }
.journey-copy { display: flex; flex-direction: column; gap: 22px; max-width: 36rem; }
.journey-copy p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); }
.journey-shot { justify-self: center; width: min(100%, 360px); border-radius: 32px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(30, 20, 70, 0.12); }

.principles { background: var(--ink); color: #FFFFFF; border-radius: 40px; padding: clamp(36px, 6vw, 80px); margin-bottom: clamp(48px, 8vw, 96px); }
.principles h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.principles h2 em { color: #C9BDFF; }
.principles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; }
.principles li { color: rgba(255, 255, 255, 0.78); max-width: 32rem; }
.principles strong { display: block; color: #FFFFFF; font-weight: 500; font-size: 20px; margin-bottom: 4px; }

.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-top: 8px; padding-bottom: 48px; color: var(--muted); font-size: 15px; }
.foot .wordmark { color: var(--ink); }

@media (max-width: 860px) {
  .hero, .journey { grid-template-columns: minmax(0, 1fr); }
  .film { width: min(100%, 400px); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { max-width: 420px; }
  .principles ul { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: an overview rather than a close-up. Calmer type, a smaller film, the three steps side
   by side in a row you swipe (the next one peeking in), smaller screenshots, more air between
   sections instead of bigger things. */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { padding-top: 18px; padding-bottom: 8px; }
  .wordmark { font-size: 20px; }
  h1 { font-size: clamp(36px, 10.5vw, 44px); line-height: 1.05; }
  h2 { font-size: clamp(28px, 8vw, 34px); }
  h3 { font-size: 19px; }
  .hero { gap: 28px; padding: 12px 0 64px; }
  .hero-copy { gap: 14px; }
  .lede { font-size: 16px; }
  .lede.quiet { font-size: 15px; }
  .pill { min-height: 46px; padding: 0 22px; font-size: 16px; }
  .film { width: 66%; max-width: 280px; }
  .film video { border-radius: 26px; box-shadow: 0 18px 48px rgba(30, 20, 70, 0.16); }
  .sound { right: 8px; bottom: 8px; min-height: 36px; padding: 0 12px; font-size: 13px; }

  .how { padding-bottom: 64px; }
  .how h2 { margin-bottom: 20px; }
  .steps {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter);
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { max-width: none; scroll-snap-align: start; gap: 8px; }
  .steps li img { border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(30, 20, 70, 0.08); }
  .steps h3::before { font-size: 40px; margin: 6px 0 4px; }
  .steps p { font-size: 14px; line-height: 1.5; }

  .journey { gap: 24px; padding-bottom: 56px; }
  .journey-copy { gap: 14px; }
  .journey-copy p { font-size: 16px; }
  .journey-shot { width: 58%; border-radius: 22px; }

  .principles { border-radius: 26px; padding: 28px 22px; margin-bottom: 40px; }
  .principles h2 { margin-bottom: 18px; }
  .principles ul { gap: 14px; }
  .principles li { font-size: 14px; }
  .principles strong { font-size: 16px; margin-bottom: 2px; }
  .foot { font-size: 14px; padding-bottom: 36px; }
  .soon { display: none; }
}

/* The plain pages (privacy, terms, support): one readable column of prose, in the same type. */
.doc { max-width: 46rem; padding-top: clamp(8px, 3vw, 32px); padding-bottom: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(44px, 7vw, 76px); margin-bottom: 12px; }
.doc .updated { margin: 0 0 clamp(28px, 4vw, 44px); color: var(--muted); font-size: 15px; }
.doc .summary { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); margin: 0 0 clamp(28px, 4vw, 44px); }
.doc h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: clamp(36px, 5vw, 52px) 0 14px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--violet); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--ink); font-weight: 500; }
.doc .table-wrap { overflow-x: auto; }
.doc details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.doc summary { cursor: pointer; padding: 14px 0; font-weight: 500; font-size: 19px; color: var(--ink); list-style: none; display: flex; align-items: baseline; gap: 14px; }
.doc summary::-webkit-details-marker { display: none; }
/* A small violet chevron inside the text column, pointing right; it turns down when open. */
.doc summary::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-2px) rotate(-45deg); transition: transform 0.2s ease; }
.doc details[open] summary::before { transform: translateY(-4px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .doc summary::before { transition: none; } }
.doc details p { margin-top: 0; padding-left: 23px; }
.doc .contact { margin-top: clamp(36px, 5vw, 52px); padding: clamp(24px, 4vw, 36px); border-radius: 28px; background: var(--tile); }
.doc .contact p { margin: 0; }

.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot nav a:hover { color: var(--ink); }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 8px; }
.doc .toc a { padding: 8px 14px; border-radius: 999px; background: var(--tile); color: var(--ink); text-decoration: none; font-size: 15px; }
.doc .toc a:hover { background: var(--line); }

/* The name in running text, set like the wordmark: "mala" in Geist, "bell" in the serif italic. */
.mb { white-space: nowrap; }
.mb em { font-size: 1.12em; letter-spacing: 0; }

/* Privacy and terms: compact, smaller type. */
.doc.legal { max-width: 42rem; }
.doc.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.doc.legal .updated { font-size: 14px; margin-bottom: 20px; }
.doc.legal .summary { font-size: 17px; margin-bottom: 20px; }
.doc.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.doc.legal p, .doc.legal li { font-size: 15px; line-height: 1.55; }
.doc.legal p { margin-bottom: 10px; }
.doc.legal li { margin-bottom: 4px; }
.doc.legal table { font-size: 14px; }
.doc.legal .toc a { font-size: 14px; padding: 6px 12px; }
