/* PAUSE · landing
 *
 * The same material as the app: fired clay, nothing glows except the mark.
 * Depth comes from a warm shadow below and a light edge above, so a surface
 * reads as something you could pick up. Tokens are lifted verbatim from
 * PAUSE/Core/Theme.swift — if the app's palette moves, move these with it.
 */

:root {
  /* Ground and its steps */
  --grund:   #EBE4D9;  /* the page: unglazed clay */
  --mulde:   #E0D7C8;  /* recessed: inputs, inactive things */
  --flaeche: #F6F1E8;  /* raised: cards, the stone */
  --glasur:  #FDFBF6;  /* highlight, and type on colour */

  /* Ink */
  --tinte:      #332E27;
  --tinte-leise:#786F64;

  /* Narrative colour. Ember is the state you arrive in, green is the goal. */
  --glut:          #B4603A;
  --schein:        #8A6234;
  --schein-flaeche:#C08A4E;
  --schein-weich:  #E3C79E;
  --gruen:         #4F7059;
  --gruen-weich:   #7C9A80;

  --hairline:      rgba(51, 46, 39, 0.12);
  --schatten:      rgba(138, 122, 98, 0.38);
  --schatten-tief: rgba(110, 95, 74, 0.26);
  --kante:         rgba(255, 255, 255, 0.95);

  --radius-card: 22px;
  --radius-control: 16px;

  /* One tempo for everything. Nothing here moves faster than the app does. */
  --atem: 5.5s;
  --setzen: 420ms cubic-bezier(0.22, 0.9, 0.28, 1);

  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.62;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The warmth is not flat: light enters at the top of the page and falls off,
   the way the app's field warms behind the button. Anchored to the document,
   not the viewport, so it is a property of the top of the page rather than a
   lamp that follows you down it. */
body { position: relative; }

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(140vh, 1400px);
  background:
    radial-gradient(120% 62% at 50% -8%, rgba(227, 199, 158, 0.55), transparent 64%);
  pointer-events: none;
  z-index: -1;
}

/* ── Rhythm ──────────────────────────────────────────────────────────── */

main {
  --pad: clamp(1.5rem, 6vw, 3rem);
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  padding-block: clamp(5rem, 13vw, 9rem);
  border-top: 1px solid var(--hairline);
}
section:first-child { border-top: 0; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
/* No hard line break: `balance` gives even lines at every width, where a <br>
   only ever suits the width it was written for. */
h1 {
  font-size: clamp(2rem, 1.25rem + 3.6vw, 3.6rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 19ch;
  margin-inline: auto;
}
h2 { font-size: clamp(1.6rem, 1.15rem + 2.1vw, 2.4rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

em { font-style: normal; color: var(--schein); font-weight: 700; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinte-leise);
  margin-bottom: 1.5rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--flaeche); color: var(--tinte);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-control);
  z-index: 10; text-decoration: none; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { text-align: center; padding-top: clamp(3.5rem, 9vw, 6rem); }
.hero .eyebrow { margin-bottom: clamp(2rem, 5vw, 3rem); }
.hero .lede,
.hero .form-slot { margin-inline: auto; }
.hero .lede {
  color: var(--tinte-leise);
  margin-top: 1.5rem;
  max-width: 30rem;
}

/* The stone. A disc that catches the light on top and drops a warm shadow,
   breathing at the app's resting rate. */
.stone {
  width: clamp(190px, 46vw, 264px);
  aspect-ratio: 1;
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  animation: atmen var(--atem) ease-in-out infinite;
  will-change: transform;
}

.stone-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(72% 68% at 50% 34%, #FBF6EB 0%, #F2E9D8 46%, #E4D6BC 100%);
  box-shadow:
    0 26px 54px -18px var(--schatten),
    0 6px 18px -6px var(--schatten-tief),
    inset 0 2px 1px var(--kante),
    inset 0 -18px 34px -22px rgba(110, 95, 74, 0.4);
}

.mark {
  width: 44%;
  fill: #FFFBF2;
  /* The one glow on the page, and the app has it too: the mark is light
     sitting in the clay, not printed on it. */
  filter:
    drop-shadow(0 0 5px rgba(255, 214, 150, 0.95))
    drop-shadow(0 0 22px rgba(226, 163, 84, 0.55));
  transform: translateY(-6%);
}

.wordmark {
  position: absolute;
  bottom: 19%;
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: rgba(120, 105, 82, 0.9);
  text-shadow: 0 1px 0 var(--kante);
}

@keyframes atmen {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

/* ── Form ────────────────────────────────────────────────────────────── */

.form-slot { max-width: 30rem; margin-top: clamp(2.5rem, 6vw, 3.25rem); }
.waitlist { max-width: 30rem; }

.field { display: flex; gap: 0.625rem; flex-wrap: wrap; }

.waitlist input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  font: inherit;
  font-weight: 500;
  color: var(--tinte);
  padding: 0 1.125rem;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--mulde);
  /* Sunk into the ground, not floating on it. */
  box-shadow:
    inset 0 2px 3px -1px var(--schatten-tief),
    inset 0 0 0 1px rgba(110, 95, 74, 0.08);
  transition: box-shadow var(--setzen);
}
.waitlist input[type="email"]::placeholder { color: rgba(120, 111, 100, 0.72); }
.waitlist input[type="email"]:focus-visible {
  outline: 0;
  box-shadow:
    inset 0 2px 3px -1px var(--schatten-tief),
    0 0 0 3px rgba(79, 112, 89, 0.32);
}

.waitlist button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  color: var(--glasur);
  min-height: 56px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--gruen);
  cursor: pointer;
  box-shadow: 0 12px 22px -12px var(--schatten), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background var(--setzen);
}
.waitlist button:hover { background: #456350; }
.waitlist button:active {
  transform: scale(0.985);
  box-shadow: 0 5px 10px -6px var(--schatten), inset 0 1px 0 rgba(255,255,255,0.28);
}
.waitlist button:focus-visible { outline: 3px solid rgba(79, 112, 89, 0.5); outline-offset: 3px; }
.waitlist button[disabled] { background: var(--mulde); color: var(--tinte-leise); box-shadow: none; cursor: default; }

.opt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--tinte-leise);
  cursor: pointer;
}
.opt input { accent-color: var(--gruen); width: 1.125rem; height: 1.125rem; flex: none; }

.note {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tinte-leise);
}
.note.ok  { color: var(--gruen); font-weight: 700; }
.note.bad { color: var(--glut);  font-weight: 700; }

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* When it lands, the form is replaced by a single quiet line. */
.waitlist.done .field,
.waitlist.done .opt { display: none; }
.waitlist.done .note { margin-top: 0; font-size: 1.0625rem; }

/* ── Steps ───────────────────────────────────────────────────────────── */

.steps h2 { max-width: 22ch; }

.steps ol {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.steps li {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--flaeche);
  box-shadow:
    0 12px 26px -16px var(--schatten),
    inset 0 1px 0 var(--kante);
}

.ord {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--schein-flaeche);
  margin-bottom: 0.875rem;
}

.steps h3 { margin-bottom: 0.5rem; }
.steps p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tinte-leise);
}

/* ── Breath ──────────────────────────────────────────────────────────── */

.breath h2 { margin-bottom: 1.75rem; }
.breath p { color: var(--tinte-leise); }
.breath p:first-of-type { color: var(--tinte); }

/* The app's phase pills: only the active one carries weight. */
.phases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: rgba(120, 111, 100, 0.75);
}
.phases .on { color: var(--tinte); font-weight: 800; }

.cite {
  font-size: 0.8125rem;
  color: rgba(120, 111, 100, 0.85);
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  max-width: var(--measure);
}
.cite cite { font-style: italic; }

/* ── Positioning ─────────────────────────────────────────────────────── */

.against h2 { margin-bottom: 1.75rem; max-width: 18ch; }
.against p { color: var(--tinte-leise); }
.against p:first-of-type { color: var(--tinte); }

/* ── Questions ───────────────────────────────────────────────────────── */
/* Native <details>, so the answers are in the DOM whether or not they are
   open — which is what the FAQPage markup in <head> is claiming. */

.faq h2 { margin-bottom: clamp(2rem, 5vw, 2.75rem); }

.faq details {
  border-bottom: 1px solid var(--hairline);
  max-width: 44rem;
}
.faq details:first-of-type { border-top: 1px solid var(--hairline); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }

/* A cross that becomes a minus. Rotation, not a glyph swap, so it turns
   rather than blinks. */
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 4px;
  top: calc(50% - 1px);
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--schein-flaeche);
  transition: transform var(--setzen);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }

.faq summary:focus-visible {
  outline: 3px solid rgba(79, 112, 89, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

.faq details p {
  margin: 0;
  padding: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--tinte-leise);
}

/* ── Screens ─────────────────────────────────────────────────────────── */

.screens h2 { margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }

.rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.rail figure { margin: 0; }

.rail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(18px, 4.5vw, 34px);
  background: var(--flaeche);
  box-shadow:
    0 30px 50px -26px var(--schatten),
    0 3px 10px -4px var(--schatten-tief),
    inset 0 0 0 1px var(--hairline);
}

.rail figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--tinte-leise);
}

/* ── Privacy ─────────────────────────────────────────────────────────── */

.privacy ul {
  list-style: none;
  margin: clamp(2rem, 5vw, 2.75rem) 0 2rem;
  padding: 0;
  max-width: var(--measure);
  display: grid;
  gap: 0.875rem;
}
.privacy li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--tinte-leise);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.privacy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gruen-weich);
  box-shadow: inset 0 1px 0 var(--kante);
}

.quiet {
  font-size: 0.9375rem;
  color: rgba(120, 111, 100, 0.9);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--mulde);
  box-shadow: inset 0 2px 3px -1px var(--schatten-tief);
  max-width: var(--measure);
}

/* ── Closing call ────────────────────────────────────────────────────── */

.cta { text-align: center; }
.cta h2 { margin-bottom: 1rem; }
.cta p, .cta .waitlist { margin-inline: auto; }
.cta > p { color: var(--tinte-leise); max-width: 28rem; margin-bottom: 2.25rem; }
.cta .opt { justify-content: center; }
.cta .note { text-align: center; }

.mark.small {
  width: 46px;
  margin: 0 auto 1.75rem;
  display: block;
  fill: none;
  stroke: #B5A791;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Here the mark is pressed into the clay rather than glowing out of it:
     a light edge underneath is what turns a drawing into an impression. */
  filter: drop-shadow(0 1px 0.5px var(--kante));
}

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 3rem) clamp(3rem, 8vw, 4.5rem);
  border-top: 1px solid var(--hairline);
  padding-top: 2.5rem;
}

.disclaimer {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(120, 111, 100, 0.9);
  max-width: 38rem;
}

.meta {
  font-size: 0.8125rem;
  color: rgba(120, 111, 100, 0.7);
  margin-top: 1.25rem;
}

/* ── Narrow ──────────────────────────────────────────────────────────── */

@media (max-width: 40rem) {
  .rail {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 21rem;
    margin-inline: auto;
  }
  .waitlist button { flex: 1 1 100%; }
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
/* The app skips its animation entirely under Reduce Motion rather than
   softening it, and so does this. */

@media (prefers-reduced-motion: reduce) {
  .stone { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
