/* Quit: the landing page and its legal pages. Same type, colours and radii as the app. */

@font-face { font-family: "Google Sans"; src: url("fonts/GoogleSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("fonts/GoogleSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("fonts/GoogleSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo Condensed"; src: url("fonts/ArchivoCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --air: #EEF2F0;
  --sheet: #F8FAF9;
  --line: #D5DDD9;
  --ink: #17201D;
  --ink-soft: #55635D;
  --breath: #0C735E;
  --breath-tint: #DCEDE6;
  --on-breath: #FFFFFF;
  --slip: #9C5600;
  --haze: #AEB9B4;
  --hill: #8FBFAE;
  --hill-front: #0C735E;
  --sos-ground: #0A1210;
  --sos-ink: #E6ECE9;
  --sos-soft: #9AA8A2;
  --sos-breath: #5FD2B4;
  --sos-tint: #163029;
  --sos-line: #26312D;
  --page: min(1080px, 100% - 48px);
  --text: min(680px, 100%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --air: #0D1412;
    --sheet: #161F1C;
    --line: #26312D;
    --ink: #E6ECE9;
    --ink-soft: #9AA8A2;
    --breath: #5FD2B4;
    --breath-tint: #163029;
    --on-breath: #0A1210;
    --slip: #F0B357;
    --haze: #3A4743;
    --hill: #1F3D35;
    --hill-front: #16493D;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--air);
  color: var(--ink);
  font: 400 18px/1.6 "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--breath); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
.num { font-family: "Archivo Condensed", "Google Sans", sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.wrap { width: var(--page); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; border-radius: 4px; z-index: 10; }
:focus-visible { outline: 2px solid var(--breath); outline-offset: 3px; border-radius: 4px; }

/* Header */
.top { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 16px; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero: the words on the left, Home standing in the landscape on the right */
.hero { padding: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero-text { padding-bottom: 120px; }
.hero-phone { margin: 0 0 -140px; justify-self: center; width: min(300px, 100%); }
.hero-phone img { border-radius: 24px; border: 1px solid var(--line); background: var(--sheet); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.06; font-weight: 500; letter-spacing: -0.02em; margin: 0; max-width: 15ch; }
.hero p { font-size: 21px; color: var(--ink-soft); max-width: 36ch; margin: 24px 0 32px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 4px; background: var(--breath); color: var(--on-breath); font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: none; filter: brightness(1.06); }
.cta small { color: var(--ink-soft); font-size: 16px; }

/* The clearing sky, edge to edge */
.sky { display: block; width: 100%; height: clamp(180px, 26vw, 320px); background: var(--breath-tint); }
.sky .ribbon { fill: none; stroke: var(--haze); stroke-linecap: round; }
.sky .drift { animation: drift 64s linear infinite; }
.sky .drift.slow { animation-duration: 96s; }
.sky .sun-ring { transform-origin: 560px 96px; animation: swell 8s ease-in-out infinite; }
@keyframes drift { to { transform: translateX(-720px); } }
@keyframes swell { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.12); opacity: .3; } }

/* Sections: plain text on the page, no cards */
section { padding: 88px 0 0; }
section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 22ch; }
section p { max-width: var(--text); margin: 0 0 16px; }
.soft { color: var(--ink-soft); }

/* Breathe with the circle */
.breathe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ring-stage { background: var(--sos-ground); border-radius: 20px; aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.ring { position: relative; width: 62%; aspect-ratio: 1; display: grid; place-items: center; }
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--sos-line); }
.ring::after { inset: 14%; border-color: var(--sos-breath); opacity: .55; }
.core { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--sos-tint); border: 2px solid var(--sos-breath); display: grid; place-items: center; animation: breath 8s ease-in-out infinite; }
.word { grid-area: 1 / 1; color: var(--sos-ink); font-weight: 700; font-size: clamp(16px, 2.4vw, 26px); white-space: nowrap; }
.word.in { animation: word-in 8s step-end infinite; }
.word.out { animation: word-out 8s step-end infinite; }
@keyframes breath { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.18); } }
@keyframes word-in { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes word-out { 0% { opacity: 0; } 50% { opacity: 1; } }
.ring-note { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--sos-soft); font-size: 15px; }

/* A slip is not a reset */
.dots { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 12px; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--breath); }
.dot.slip { background: transparent; border: 2.5px solid var(--slip); }
.dot.today { background: transparent; border: 2px solid var(--breath); }
.caption { font-size: 15px; color: var(--ink-soft); }

/* WHO timeline */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: 30px; line-height: 1.1; color: var(--breath); }
.timeline .what { margin: 0; }
.source { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }

/* Screens */
.screens { display: flex; gap: 28px; align-items: flex-start; margin-top: 40px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; flex: 0 0 auto; width: min(270px, 72vw); scroll-snap-align: start; }
.screens figure:nth-child(2) { margin-top: 56px; }
.screens img { border-radius: 20px; border: 1px solid var(--line); background: var(--sheet); }
.screens figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 12px; }
.dark-shot { display: none; }
@media (prefers-color-scheme: dark) { .light-shot { display: none; } .dark-shot { display: block; } }

/* Free and Pro */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; margin-top: 28px; max-width: 900px; }
.plans h3 { font-size: 22px; font-weight: 500; margin: 0 0 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.plans .pro h3 { border-color: var(--breath); }
.plans ul { margin: 0; padding-left: 20px; }
.plans li { margin: 6px 0; }
.price { margin-top: 16px; }

/* Footer */
footer { margin-top: 112px; padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
footer p { max-width: var(--text); margin: 0; }

/* Legal pages */
.legal { padding: 32px 0 0; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 500; line-height: 1.1; margin: 16px 0 8px; letter-spacing: -0.01em; }
.legal .meta { color: var(--ink-soft); font-size: 16px; margin: 0 0 32px; }
.legal h2 { font-size: 24px; font-weight: 500; margin: 48px 0 12px; }
.legal p, .legal ul { max-width: var(--text); }
.legal li { margin: 6px 0; }
.legal .summary { background: var(--breath-tint); border-radius: 4px; padding: 20px 24px; max-width: var(--text); }
.legal .summary p { margin: 0 0 8px; }
.legal .summary p:last-child { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .top nav { gap: 14px; font-size: 15px; }
  .hero { padding-top: 24px; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-text { padding-bottom: 0; }
  .hero-phone { width: min(260px, 74%); margin-bottom: -96px; }
  .hero-phone img { aspect-ratio: 9 / 13; object-fit: cover; object-position: top; }
  .hero p { font-size: 19px; }
  section { padding-top: 64px; }
  .breathe, .plans { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dots { gap: 6px; }
  .dot { width: 16px; height: 16px; }
  .timeline .when { font-size: 26px; }
  .screens figure:nth-child(2) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sky .drift, .sky .sun-ring, .core, .word.in, .word.out { animation: none; }
  .word.out { opacity: 0; }
}
