/* Still: deep-water calm. One accent (sea blue), thin lines, text from the left edge, big buttons. */
:root {
  --water: #0a0f16;
  --panel: #0f1620;
  --line: #1c2633;
  --text: #d9e0ea;
  --muted: #8794a6;
  --sea: #8fb3d9;
  --sea-dim: #2a3d55;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--water); color: var(--text); font: 18px/1.5 "Avenir Next", "Segoe UI", system-ui, sans-serif; }

main {
  min-height: 100dvh; max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 24px 20px 20px;
}
.brand { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* The sea: the wave lives above the horizon; text always sits below it, so they never touch. */
.sea { position: relative; height: 34vh; min-height: 160px; margin: 8px -20px 0; border-bottom: 1px solid var(--line); }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave path { fill: none; stroke: var(--sea); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .75; }
[data-screen="start"] .wave path { opacity: .35; }

section { padding-top: 28px; }
h1 { font-weight: 500; font-size: 30px; line-height: 1.2; max-width: 22ch; }
h2 { font-weight: 500; font-size: 30px; line-height: 1.25; max-width: 24ch; margin-top: 6px; }
.sub { color: var(--muted); margin-top: 12px; max-width: 38ch; }

.btn {
  min-height: 60px; padding: 0 28px; border-radius: 12px;
  font: inherit; font-size: 20px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); cursor: pointer;
}
.btn.primary { width: 100%; max-width: 420px; margin-top: 24px; background: #13202f; border-color: #2a3d55; }
.btn.ghost { background: transparent; }
.btn:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.btn:hover { border-color: var(--sea-dim); }

.during { display: none; }
[data-screen="wave"] .start { display: none; }
[data-screen="wave"] .during { display: block; }

.dots { list-style: none; display: flex; gap: 10px; }
.dots li { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--sea-dim); }
.dots li.done { background: var(--sea-dim); }
.dots li.now { background: var(--sea); border-color: var(--sea); }

.prev { color: var(--muted); opacity: .6; font-size: 16px; margin-top: 16px; min-height: 1.5em; }
.breath { color: var(--muted); margin-top: 14px; font-size: 18px; }
.breath b { color: var(--sea); font-weight: 500; }
.controls { display: flex; gap: 12px; margin-top: 24px; }
.controls .btn { flex: 1; max-width: 200px; }

.note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.note strong { color: var(--text); font-weight: 500; }

@media (min-width: 768px) {
  main { padding: 48px 64px 32px; }
  .sea { margin: 16px -64px 0; height: 36vh; }
  h1, h2 { font-size: 40px; }
  section { padding-top: 40px; }
  .note { font-size: 15px; }
}

/* Breathing pace: three quiet choices under the main button; the picked one is outlined in the sea colour. */
.pace { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; max-width: 420px; }
.pace-label { width: 100%; margin: 0; color: var(--muted); font-size: 15px; }
.pace .btn { font-size: 15px; padding: 8px 12px; }
.pace .btn[aria-pressed="true"] { border-color: var(--sea); color: var(--sea); }
