/* breather.aboveavg.co
   Layout: one calm, left-aligned reading column; product images sit on wallpaper slabs that
   break out to the right. The one loud moment is the box-breathing band. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url(fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  /* Color: mist paper, tidepool ink, the icon's teal as the only accent */
  --paper: #f2f7f6;
  --paper-2: #e5efed;
  --ink: #0f2e35;
  --ink-2: #4b666b;
  --line: rgba(15, 46, 53, 0.13);
  --tide: #0b7f83;
  --tide-soft: rgba(11, 127, 131, 0.1);
  --band: #0b2a31;
  --band-ink: #e3f1ee;
  --band-ink-2: #9cbcbc;
  --foam: #8be6d3;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 60px -20px rgba(11, 42, 49, 0.35), 0 8px 20px -10px rgba(11, 42, 49, 0.25);

  /* Type: a soft optical-size serif for display, a warm grotesk for reading, a mono for units */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a191d; --paper-2: #0f2328; --ink: #e2efed; --ink-2: #93aeb0; --line: rgba(226, 239, 237, 0.12);
    --tide: #46c9c0; --tide-soft: rgba(70, 201, 192, 0.12); --band: #0e3239; --band-ink: #e3f1ee; --band-ink-2: #9cbcbc;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a191d; --paper-2: #0f2328; --ink: #e2efed; --ink-2: #93aeb0; --line: rgba(226, 239, 237, 0.12);
  --tide: #46c9c0; --tide-soft: rgba(70, 201, 192, 0.12); --band: #0e3239; --band-ink: #e3f1ee; --band-ink-2: #9cbcbc;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Type scale: 13 / 15 / 18 / 22 / 34–56 / 52–96 */
h1, h2, h3 { font-family: var(--display); font-weight: 380; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(52px, 8.2vw, 104px); line-height: 0.95; letter-spacing: -0.025em; }
h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.02em; }
h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 340; color: var(--tide); }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.label {
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide);
}
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.5; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn):not(.badge) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Apple's badge artwork is used as supplied: no recoloring, at least 40px tall, clear space around it */
.badge { display: inline-flex; flex: none; border-radius: 9px; transition: transform 0.15s ease; }
.badge img { display: block; height: 52px; width: auto; }
.badge.small img { height: 40px; }
.badge:hover { transform: translateY(-1px); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 120px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.req { font: 400 13px/1.4 var(--mono); color: var(--ink-2); letter-spacing: 0.02em; }

.slab {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  background:
    radial-gradient(ellipse 60% 55% at 18% 18%, rgba(160, 238, 220, 0.95), transparent 70%),
    radial-gradient(ellipse 55% 60% at 85% 30%, rgba(96, 160, 230, 0.85), transparent 70%),
    radial-gradient(ellipse 70% 60% at 30% 95%, rgba(46, 92, 170, 0.95), transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 90%, rgba(120, 90, 200, 0.75), transparent 70%),
    linear-gradient(160deg, #8fd9cc 0%, #3c98b5 45%, #2c5596 100%);
}
.hero-slab { aspect-ratio: 5 / 5.4; max-width: 560px; justify-self: end; width: 100%; }
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 34px;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding-inline: 16px;
  background: rgba(246, 248, 250, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  color: rgba(0, 0, 0, 0.82); font: 500 14px/1 var(--sans);
}
.status { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.1); font-variant-numeric: tabular-nums; }
.status svg { width: 20px; height: 20px; }
.status .arc { transition: stroke-dashoffset 1s linear; }
.hero-slab .popover { position: absolute; top: 40px; right: 4%; width: 74%; filter: drop-shadow(0 24px 40px rgba(8, 30, 60, 0.35)); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-slab { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3.6; }
  .hero-slab .popover { width: min(74%, 380px); }
}
@media (max-width: 560px) { .hero-slab { aspect-ratio: 5 / 6.2; } .hero-slab .popover { width: 80%; right: 10%; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding-block: 8px clamp(72px, 9vw, 128px); }
.principle { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.principle h3 { font-size: clamp(26px, 2.4vw, 32px); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* Features */
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; padding-bottom: clamp(40px, 5vw, 64px); }
.features { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 136px); padding-bottom: clamp(88px, 10vw, 150px); }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feature .slab img { width: 100%; aspect-ratio: 1100 / 688; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-2); }
.facts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.facts li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tide); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

/* Cadence table */
.cadence { padding-block: clamp(80px, 9vw, 130px); background: var(--paper-2); }
.table-scroll { overflow-x: auto; margin-top: clamp(36px, 4vw, 56px); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { text-align: left; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0 16px 14px 0; border-bottom: 1px solid var(--line); }
td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num { font: 400 15px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
td.style { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.break-name { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 17px; }
.break-name small { display: block; font-weight: 400; font-size: 14.5px; color: var(--ink-2); margin-top: 2px; max-width: 34em; }
.tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.tile img { width: 19px; height: 19px; }
.pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font: 500 11px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tide); background: var(--tide-soft); vertical-align: 2px; }

/* Breathe band */
.breathe { background: var(--band); color: var(--band-ink); padding-block: clamp(80px, 10vw, 140px); }
.breathe .label { color: var(--foam); }
.breathe h2 em { color: var(--foam); }
.breathe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.breathe-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.breathe-copy p { color: var(--band-ink-2); max-width: 30em; }
.breathe .btn { background: var(--band-ink); color: var(--band); }
.box { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.box .track { fill: none; stroke: rgba(227, 241, 238, 0.18); stroke-width: 2; }
.box .trail { fill: none; stroke: var(--foam); stroke-width: 3; stroke-linecap: round; }
.box .dot { fill: var(--foam); filter: drop-shadow(0 0 12px rgba(139, 230, 211, 0.8)); }
.box .side { font: 500 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; fill: var(--band-ink-2); }
.box-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.box-phase { font: 380 clamp(30px, 3.6vw, 44px)/1.05 var(--display); letter-spacing: -0.015em; }
.box-count { font: 400 15px/1 var(--mono); color: var(--band-ink-2); font-variant-numeric: tabular-nums; min-height: 1em; }
.box-fill { position: absolute; inset: 22%; border-radius: 18%; background: radial-gradient(circle, rgba(139, 230, 211, 0.22), rgba(139, 230, 211, 0) 70%); transform: scale(0.7); transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1); }
.box.inhale .box-fill, .box.hold-full .box-fill { transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .box-fill { transition: none; } }
@media (max-width: 860px) { .breathe-grid { grid-template-columns: 1fr; } }

/* Privacy */
.privacy { padding-block: clamp(88px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.privacy dl { margin: 0; display: grid; gap: 0; }
.privacy dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.privacy dl div:last-child { border-bottom: 1px solid var(--line); }
.privacy dt { font: 500 12.5px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tide); }
.privacy dd { margin: 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } .privacy dl div { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ */
.faq { padding-bottom: clamp(88px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 20px; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 26px/1 var(--display); color: var(--tide); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 22px; color: var(--ink-2); max-width: 38em; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Closing */
.closing { border-top: 1px solid var(--line); padding-block: clamp(80px, 9vw, 130px); display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.closing > img { width: 96px; height: 96px; }
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-size: 14px; color: var(--ink-2); }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Plain document pages (privacy, support) */
.doc { max-width: 720px; padding-block: clamp(32px, 6vw, 80px) clamp(80px, 9vw, 120px); display: flex; flex-direction: column; gap: 22px; }
.doc h1 { font-size: clamp(44px, 6vw, 68px); }
.doc h2 { font-size: clamp(26px, 3vw, 32px); padding-top: 18px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--tide); }
