/* Colours are the app's own, from design/tokens.json in the iOS checkout.
   Dark is the default because it is the appearance the app is designed
   around; light follows the reader's setting, with the app's light values. */
:root {
  --ground: #0A1014;
  --surface: #121C21;
  --surface2: #1A272D;
  --line: #1E2C33;
  --ink: #E8F0F2;
  --ink2: #9FB3BB;
  --ink3: #738791;
  --teal: #4FC3D1;
  --teal-deep: #132A2F;
  --teal-line: #31707A;
  --amber: #E0A56B;
  --on-teal: #06171B;
  --shadow: rgba(0, 0, 0, .55);
  --glow: rgba(79, 195, 209, .16);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #F2F5F6;
    --surface: #FFFFFF;
    --surface2: #E7EDEF;
    --line: #DBE4E7;
    --ink: #0B1519;
    --ink2: #3F535B;
    --ink3: #5F727A;
    --teal: #0D7480;
    --teal-deep: #D9F0F3;
    --teal-line: #A6D6DD;
    --amber: #9E5F19;
    --on-teal: #FFFFFF;
    --shadow: rgba(11, 21, 25, .18);
    --glow: rgba(13, 116, 128, .10);
    color-scheme: light;
  }
}

*, *::before, *::after { 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(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--teal); color: var(--on-teal);
  padding: 8px 14px; border-radius: 10px; z-index: 20; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin-bottom: 20px; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0 0 16px; color: var(--ink2); }

.eyebrow {
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(24px, env(safe-area-inset-left)) 14px max(24px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font: 400 20px/1 var(--serif); color: var(--ink); }
.nav-cta {
  font: 600 14px/1 var(--sans); text-decoration: none;
  color: var(--teal); border: 1px solid var(--teal-line);
  padding: 10px 16px; border-radius: 999px;
}
.nav-cta:hover { background: var(--teal-deep); }

/* Hero */
.hero { padding: 88px 0 24px; position: relative; text-align: center; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: 1100px; height: 900px;
  transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink2); max-width: 620px; margin: 0 auto 32px; }
.fine { font-size: 14px; color: var(--ink3); margin-top: 18px; }

.badges { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.store { display: inline-block; border-radius: 10px; line-height: 0; }
.store img { height: 60px; width: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-align: left; min-width: 201px; min-height: 60px;
}
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge span { font: 600 17px/1.15 var(--sans); }
.badge small { display: block; font: 400 12px/1.3 var(--sans); color: var(--ink3); }

/* The breath: a strip anybody can follow for a few rounds */
.breath { margin: 56px 0 0; position: relative; }
.breath canvas { width: 100%; height: 240px; display: block; }
.phase {
  position: absolute; left: 0; right: 0; top: 4px; margin: 0;
  font: 400 26px/1 var(--serif); color: var(--ink); text-align: center;
  transition: opacity .6s ease;
}
.breath figcaption {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center;
  padding: 8px 24px 0; font-size: 14px; color: var(--ink3);
}
.toggle {
  font: 600 13px/1 var(--sans); color: var(--ink2);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.toggle:hover { color: var(--ink); border-color: var(--teal-line); }

/* Feature rows */
.feature { padding: 96px 0; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 72px; align-items: center; }
.split.flip { grid-template-columns: 320px 1fr; }
.split.flip .copy { order: 2; }
.copy { max-width: 540px; }
.copy p { font-size: 18px; }

.phone {
  width: 100%; max-width: 320px; margin: 0 auto;
  padding: 9px; border-radius: 46px;
  background: #05090B;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px var(--shadow), 0 0 0 1px rgba(79, 195, 209, .06) inset;
}
.phone img { border-radius: 38px; width: 100%; }

.card {
  width: 100%; max-width: 440px; margin: 8px 0 0;
  border-radius: 26px; box-shadow: 0 24px 60px -24px var(--shadow);
}

.clock {
  display: inline-block; font-size: 16px; color: var(--ink);
  background: var(--teal-deep); border: 1px solid var(--teal-line);
  border-radius: 14px; padding: 12px 16px;
}
.clock strong { font-weight: 600; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }

.list-title { margin: 88px 0 20px; }
.techniques {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.techniques li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: 16px; color: var(--ink);
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
}
.techniques span { font: 400 13px/1 var(--mono); color: var(--ink3); white-space: nowrap; }

/* What it will not do */
.nots { padding: 104px 0; background: var(--surface); border-block: 1px solid var(--line); }
.nots h2 { margin-bottom: 56px; }
.nots-split { grid-template-columns: 1fr 320px; }
.not-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.not-list li {
  padding: 20px 22px; border-radius: 18px; background: var(--ground); border: 1px solid var(--line);
  color: var(--ink2); font-size: 17px;
}
.not-list strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }

/* Safety */
.safety { padding: 104px 0 24px; }
.safety p { font-size: 18px; }
.note {
  margin-top: 28px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); font-size: 16px !important;
}

.text-link { color: var(--teal); text-underline-offset: 3px; }

/* Get it */
.get { padding: 112px 0 120px; position: relative; overflow-x: clip; }
.get::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 600px;
  transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a, .legal a { color: var(--ink2); text-decoration: none; font-size: 14px; }
.foot nav a:hover, .legal a:hover { color: var(--teal); }
.legal { font-size: 13px; color: var(--ink3); margin-top: 20px; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .lead { font-size: 18px; }
  .feature { padding: 72px 0; }
  .split, .split.flip, .nots-split { grid-template-columns: 1fr; gap: 44px; }
  .split.flip .copy { order: 0; }
  .phone { max-width: 280px; }
  .copy { max-width: none; }
  .copy p { font-size: 17px; }
  .breath canvas { height: 190px; }
  .phase { font-size: 22px; }
  .list-title { margin-top: 64px; }
  .nots, .safety { padding-top: 80px; }
  .nots h2 { margin-bottom: 36px; }
  .techniques { grid-template-columns: 1fr 1fr; gap: 8px; }
  .techniques li { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 12px 14px; font-size: 15px; line-height: 1.3; }
}


/* Policy pages: plain document text set in the page's own type. */
.legal-page { padding: 56px 0 72px; }
.prose { text-align: left; }
.prose h1 { font: 400 40px/1.15 var(--serif); margin: 0 0 8px; }
.prose h2 { font: 400 26px/1.25 var(--serif); margin: 40px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--teal-line, rgba(127,127,127,.25)); }
.prose h3 { font: 600 17px/1.4 var(--sans); margin: 24px 0 8px; color: var(--ink); }
.prose p, .prose li { color: var(--ink2); line-height: 1.65; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
