/* PanchPrana marketing site — tokens mirror the app's `Theme.swift` light palette exactly, so the
   website reads as the same product as the app.

   The site is light only. It used to carry a `prefers-color-scheme: dark` override, which meant
   anyone whose OS was in dark mode got a dark breathwork site — the wrong first impression for a
   practice that is about settling down, not powering up. `color-scheme: light` tells the UA the
   same thing, so scrollbars and the consent banner's real checkboxes don't come back dark anyway.
   Every page also carries `<meta name="color-scheme" content="light">`, which says it again in
   the one file that is never cached: this stylesheet is fingerprint-free, so a browser can hold a
   stale copy of it, and the appearance declaration should not be stale with it.

   Three values deliberately diverge from iOS. iOS tuned them against a dark background and they
   fail WCAG AA on `--bg`: `--label-3` is darkened here, and the two status colours are taken from
   the Android app's light theme (`ui/theme/Theme.kt`), which already solved the same problem.

   No green/pink in the decorative palette. */

:root {
  color-scheme: light;

  --backdrop: #E9E6E2;
  --bg: #FBF7F3;
  --label: #16161C;
  /* iOS ships 0.62 and 0.34. Both are tuned against a dark background and neither clears WCAG AA
     as text on --bg: they composite to 3.5:1 and 2.0:1. --label-2 carries most of the body copy on
     the site and --label-3 carries the footer, captions, and legal "updated" lines, so both are
     darkened here to 5.4:1 and 4.6:1. The two now sit closer together than on iOS; the hierarchy
     between them is carried by size, weight, and letter-spacing, which is where it already was. */
  --label-2: rgba(60, 60, 67, 0.78);
  --label-3: rgba(60, 60, 67, 0.72);
  --card: #FFFFFF;
  --card-2: #F4EFEA;
  --sep: rgba(60, 60, 67, 0.12);
  --sep-faint: rgba(60, 60, 67, 0.07);
  /* Interactive controls only. WCAG 1.4.11 wants 3:1 for the boundary of a UI component, and --sep
     at 0.12 gives 1.2:1 — every button on this site used to be an all-but-invisible outline on an
     off-white ground. This is the alpha where the composited hairline crosses 3:1 on --bg. Do not
     use it for cards, tables, or rules; those want --sep and get their definition from --shadow. */
  --control-line: rgba(60, 60, 67, 0.58);
  --accent: #6C5CE0;
  --accent-soft: rgba(108, 92, 224, 0.10);
  --accent-line: rgba(108, 92, 224, 0.22);
  --on-accent: #FFFFFF;

  /* Android's light-theme values, not iOS's #34C759 / #FF9F0A — those are tuned for a dark
     background and neither clears AA on --bg. */
  --success: #2E7D48;
  --warning: #B26A00;

  --grad-amber-1: #F6C078; --grad-amber-2: #E7A24F;
  --grad-lav-1: #C3A6EE;   --grad-lav-2: #9A82E2;
  --grad-peri-1: #A9C0F2;  --grad-peri-2: #BBA6EC;
  --grad-sky-1: #9BB6F0;   --grad-sky-2: #7C8FE2;
  --grad-gold-1: #F3D199;  --grad-gold-2: #C7AEEE;
  --grad-violet-1: #A78AE6; --grad-violet-2: #89A6E8;

  /* Ink for text and glyphs sitting ON one of the pastel gradients above, where --label would be
     too soft and --on-accent (white) disappears entirely. Matches the .cta-band values. */
  --on-pastel: #14102E;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(20, 12, 60, 0.25);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque first, translucent second. Safari only learned color-mix() in 16.2, and an iPhone
     older than that drops the whole declaration as invalid — leaving a sticky bar with no
     background at all, which the page then scrolls straight through. The fallback loses the
     frosting, not the nav. */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--sep-faint);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  color: var(--label-2);
  font-weight: 500;
}

.nav-links a:hover { color: var(--label); }

.nav-links a.current { color: var(--label); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--label);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg { width: 24px; height: 24px; }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--sep-faint);
}

.mobile-panel a {
  padding: 10px 0;
  font-size: 16px;
  color: var(--label-2);
  border-bottom: 1px solid var(--sep-faint);
}

.mobile-panel.open { display: flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  border-color: var(--control-line);
  color: var(--label);
}

.btn-ghost:hover { background: var(--card-2); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Store badges. These are Apple's and Google's own artwork, unmodified, because both companies
   ask that the badge be used as supplied rather than rebuilt. The site used to hand-set the
   lockups in its own typeface on a white card, which was both a guideline gap and invisible: the
   card was #FFFFFF on a #FBF7F3 page, a 1.07:1 edge where WCAG wants 3:1 for a control.

   The two files are not sized alike, and this is the whole reason for the numbers below. Google's
   PNG bakes its required clear space into the file — 41px of transparent margin on a 250px canvas,
   so only 168px of it is pill. Apple's SVG is tight to the artwork. Matching the *file* heights
   would render Google's badge visibly smaller, so each is sized for a ~44px visible pill instead,
   and the row's gap is set low because Google brings 10.7px of its own margin to the join. The
   13px gap plus that margin is ~24px of optical separation, over the badge-height/4 clear space
   both companies specify. Keep the width/height attributes in step with any change here. */

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }

.store-badge { display: inline-block; border-radius: 8px; }
.store-badge img { display: block; }

a.store-badge { transition: transform 0.15s ease, opacity 0.15s ease; }
a.store-badge:hover { transform: translateY(-1px); opacity: 0.88; }
a.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  /* Vertical only. `.hero` sits on the same element as `.wrap`, so a `padding` shorthand here
     would also reset .wrap's `0 24px` and put the h1 flush against the screen edge on any
     viewport narrower than --max-width. Same reason as .legal-header below. */
  padding-top: 72px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  /* Vertical only, for the same reason as the base .hero rule above. */
  .hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 32px; text-align: center; }
  .hero .store-row, .hero .hero-note { justify-content: center; }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}

h1 .accent-word { color: var(--accent); }

.hero p.lede {
  font-size: 18px;
  color: var(--label-2);
  max-width: 46ch;
  margin: 0 0 32px;
}

@media (max-width: 860px) { .hero p.lede { margin-left: auto; margin-right: auto; } }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--label-3);
}

/* Hero orb visual */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orb-wrap {
  position: relative;
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-lav-1), var(--grad-sky-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.orb-core {
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #F3F2FA);
  animation: breathe 6s ease-in-out infinite;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

@keyframes breathe {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .orb-core { animation: none; }
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--label-2); font-size: 16px; margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--sep-faint);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Audience cards */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Shared by the audience cards and the blog index cards. */
.audience-card .badge,
.post-card .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.audience-card h3 { font-size: 19px; margin: 0 0 8px; }
.audience-card p { color: var(--label-2); font-size: 14.5px; margin: 0; }

/* Stats */

.stat-card { text-align: center; padding: 26px 20px; }
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
.stat-card .label { font-size: 13.5px; color: var(--label-2); margin-top: 6px; }

/* Feature grid */

.feature-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
/* The background of each icon is a pastel gradient set inline in index.html, so the glyph needs
   --on-pastel, not --on-accent: the latter is white here and leaves a 1.8px stroke invisible. */
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--on-pastel);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; margin: 0 0 6px; }
.feature-card p { font-size: 14px; color: var(--label-2); margin: 0; line-height: 1.5; }

/* Preview — the app preview video and real screenshots, in a shared device frame */

.device {
  margin: 0;
  border-radius: 34px;
  /* --backdrop, not --card-2: the latter is barely a shade off --bg, and the bezel disappeared. */
  border: 6px solid var(--backdrop);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.device img,
.device video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--card-2);
}

.preview-lead { display: flex; justify-content: center; margin-bottom: 44px; }
.preview-lead .device-video { width: 100%; max-width: 300px; }
/* Controls sit inside the bezel, so the rounded clip must not eat them */
.device-video video { border-radius: 28px; }

.shot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shot-row .device { display: flex; flex-direction: column; }
.shot-row figcaption {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--label-3); text-align: center; padding: 10px 0 4px;
}

@media (max-width: 860px) { .shot-row { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 420px) { .shot-row { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; } }

/* Free/Premium */

.plan-card { padding: 32px; position: relative; }
.plan-card.premium { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), var(--card)); }
.plan-card h3 { font-size: 20px; margin: 0 0 6px; }
.plan-card .plan-sub { color: var(--label-2); font-size: 14px; margin-bottom: 20px; }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--label); align-items: flex-start; }
.plan-card li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.plan-note { font-size: 12.5px; color: var(--label-3); margin-top: 22px; }

/* Safety note */

.safety-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card-2);
  border: 1px solid var(--sep);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 14px;
  color: var(--label-2);
}
.safety-note svg { width: 22px; height: 22px; color: var(--warning); flex-shrink: 0; margin-top: 1px; }
.safety-note strong { color: var(--label); }
/* A collection post's cautions run to several paragraphs. .safety-note is a flex
   row expecting one block beside the icon, so they are wrapped in this rather
   than left as siblings, which would each become a flex item of their own and
   push the page wider than the viewport. */
.safety-note-body { min-width: 0; }
.safety-note-body p { margin: 0 0 12px; }
.safety-note-body p:last-child { margin-bottom: 0; }

/* CTA band */

.cta-band {
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--grad-lav-1), var(--grad-sky-2));
  color: #14102E;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 12px; color: #14102E; }
.cta-band p { color: rgba(20, 16, 46, 0.72); margin: 0 0 28px; font-size: 16px; }
.cta-band .store-row { justify-content: center; }
.cta-band .store-row { justify-content: center; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--sep-faint);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--label-3); font-size: 13.5px; max-width: 32ch; margin: 0; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label-3); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--label-2); margin-bottom: 10px; }
.footer-col a:hover { color: var(--label); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--sep-faint);
  font-size: 13px;
  color: var(--label-3);
}

/* ---------- Legal tables ---------- */

/* Used by the cookie inventory in the privacy policy. Scrolls rather than
   squeezing on a phone — a four-column table at 375px is unreadable otherwise. */

.legal-table-wrap { overflow-x: auto; margin: 20px 0 28px; }

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--sep-faint);
}

.legal-table th { color: var(--label); font-weight: 600; white-space: nowrap; }
.legal-table td { color: var(--label-2); }
.legal-table code { font-size: 12.5px; color: var(--label); }

/* ---------- YouTube facade ---------- */

/* A poster and a play button standing in for an iframe, so no YouTube request is
   made until someone presses play. See the block comment in main.js. */

.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--sep);
  cursor: pointer;
}

.yt-embed img { width: 100%; height: 100%; object-fit: cover; }
.yt-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-embed.is-playing { cursor: default; border-color: var(--sep-faint); }

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.yt-play svg { width: 68px; height: 48px; }
.yt-play .yt-play-bg { fill: #16161C; opacity: 0.72; transition: opacity 0.15s ease; }
.yt-play .yt-play-arrow { fill: #FFFFFF; }
.yt-play:hover .yt-play-bg,
.yt-play:focus-visible .yt-play-bg { opacity: 0.92; }

.yt-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--label-3);
}

.yt-note a { color: var(--label-2); text-decoration: underline; text-underline-offset: 2px; }
.yt-note a:hover { color: var(--label); }

/* ---------- Consent ---------- */

/* Injected by consent.js, never present in page HTML. Accept and reject share the
   one `.consent-btn` class on purpose: equal size, weight and colour, one click
   each. Giving "Accept all" a filled or brighter treatment would make refusal the
   harder path, which is the specific thing regulators fine for. */

/* An explicit `display` in author CSS beats the UA stylesheet's `[hidden] { display: none }`,
   so both of these need saying out loud or the panel ships permanently open. */
.consent-bar[hidden],
.consent-prefs[hidden] { display: none; }

.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--card);
  border-top: 1px solid var(--sep);
  box-shadow: var(--shadow);
}

.consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
}

.consent-copy p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--label-2); }
.consent-copy strong { color: var(--label); font-weight: 600; }
.consent-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.consent-signal {
  margin-top: 8px !important;
  font-size: 13px !important;
  color: var(--label-3) !important;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Accept and Reject share this class and must stay visually identical — styling accept more
   prominently is the dark pattern regulators act on. Both therefore get the same real edge. */
.consent-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--control-line);
  background: var(--card-2);
  color: var(--label);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.consent-btn:hover { border-color: var(--accent-line); }
.consent-btn:active { transform: scale(0.97); }

.consent-link {
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--label-2);
  font-family: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-link:hover { color: var(--label); }

.consent-prefs {
  grid-column: 1 / -1;
  border-top: 1px solid var(--sep-faint);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--label-2);
  cursor: pointer;
  max-width: 78ch;
}

.consent-row input { margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.consent-row strong { display: block; color: var(--label); font-weight: 600; font-size: 14px; }
.consent-row-fixed { cursor: default; opacity: 0.72; }
.consent-prefs .consent-btn { align-self: flex-start; margin-top: 2px; }

@media (max-width: 720px) {
  .consent-inner { grid-template-columns: 1fr; padding: 16px 20px 18px; gap: 14px; }
  .consent-actions { gap: 8px; }
  .consent-actions .consent-btn { flex: 1 1 auto; text-align: center; }
  .consent-link { flex-basis: 100%; text-align: left; padding-left: 0; }
}

/* ---------- Legal / content pages ---------- */

/* Vertical only: this class shares its element with `.wrap` (`class="legal-header wrap"`) and
   comes later in the file, so a `padding` shorthand wins the cascade and zeroes .wrap's `0 24px`.
   Above --max-width the auto margins hide it; below it every h1 on the legal, support, and blog
   pages sat hard against the left edge. */
.legal-header { padding-top: 56px; padding-bottom: 24px; }
.legal-header h1 { font-size: clamp(28px, 4vw, 38px); }
.legal-header .updated { color: var(--label-3); font-size: 14px; }

.legal-body { padding-bottom: 64px; }
.legal-body .wrap { max-width: 780px; }
.legal-body h2 { font-size: 20px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--label-2); font-size: 15.5px; line-height: 1.7; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--label); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.legal-toc {
  background: var(--card-2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 8px 0 32px;
}
.legal-toc h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--label-3); margin: 0 0 12px; }
.legal-toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.legal-toc li { font-size: 14px; margin-bottom: 8px; }
.legal-toc a { color: var(--label-2); }
.legal-toc a:hover { color: var(--accent); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ---------- FAQ / support ---------- */

.faq-item {
  border-bottom: 1px solid var(--sep-faint);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--label-3); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin: 12px 0 0; color: var(--label-2); font-size: 14.5px; line-height: 1.65; }

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 19px; }
.contact-card p { margin: 0; color: var(--label-2); font-size: 14.5px; }

/* ---------- Blog ---------- */

/* Posts reuse the .legal-header / .legal-body shell the policy and support pages use, so type,
   lists, and link colour are already settled. Everything below is only what those pages had no
   need for: the index cards, the post meta line, step cards, and the two closing blocks. */

.blog-intro { max-width: 60ch; }
.blog-intro p { color: var(--label-2); font-size: 16px; line-height: 1.65; margin: 0; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 72px;
}

a.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.post-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.post-card h2 { font-size: 19px; margin: 0; letter-spacing: -0.01em; line-height: 1.35; }
.post-card p { color: var(--label-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
.post-card .badge { align-self: flex-start; margin-bottom: 0; }

/* Date and reading time. Sits under the h1 on a post and under the dek on a card, so it is styled
   once and placed twice. */
.post-meta {
  font-size: 13px;
  color: var(--label-3);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.post-meta .sep { opacity: 0.6; }

.post-kicker { font-size: 13px; color: var(--label-3); margin-bottom: 12px; }
.post-kicker a { color: var(--label-2); }
.post-kicker a:hover { color: var(--accent); }
.post-kicker .sep { margin: 0 6px; opacity: 0.6; }

.legal-header .post-meta { margin-top: 10px; }

.post-lede {
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: var(--label) !important;
}

/* Numbered step cards, shaped like the app's own Learn sheet so a walkthrough here looks like the
   one a reader will meet inside the app. The counter is drawn rather than listed, because the
   default marker sits outside the card. */
.post-steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-steps > li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: var(--radius-md);
  padding: 18px 20px 18px 58px;
  margin: 0;
}
.post-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-steps h3 { font-size: 15.5px; margin: 0 0 6px; }
.post-steps p { margin: 0; font-size: 15px !important; }

/* Deliberately quieter than .cta-band. A post is a place someone came to read, so the app is
   offered as the next step rather than announced. */
.post-cta {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 44px 0 8px;
}
.post-cta h2 { margin: 0 0 8px !important; font-size: 18px !important; }
.post-cta p { margin: 0 0 18px; }


.post-related { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--sep); }
.post-related h2 { margin-top: 0 !important; font-size: 17px !important; }
.post-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.post-related li { margin: 0; }
.post-related a { color: var(--accent); }

.post-figure { margin: 28px 0; }
.post-figure .device { max-width: 240px; margin: 0 auto; }
.post-figure figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--label-3);
  margin-top: 12px;
}

/* Practice illustrations inside a numbered step. The source art carries its own
   warm cream ground (roughly #FAE4D3), close to --bg but peachier, so it is
   framed as a plate rather than blended into the page: a tinted background
   behind it would double up, and `mix-blend-mode: multiply` muddies it. */
.guide-figure {
  margin: 14px 0 2px;
  width: 200px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* A guided-audio collection has no illustration. The app draws its cover tile
   from a hashed gradient, so a collection post opens on the same gradient rather
   than on a second visual language for the same thing. It carries no
   information, so it is aria-hidden and the colour is set inline by the
   generator, which is the only per-post value on the page. */
.collection-hero {
  height: 96px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}

/* The session list. Wide content scrolls inside its own box rather than pushing
   the page sideways. */
.table-scroll {
  overflow-x: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-md);
}
.session-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 380px;
  font-size: 15px;
}
.session-table th,
.session-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--sep);
}
.session-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--label-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.session-table tbody tr:last-child td { border-bottom: 0; }
/* The data columns: never wrapped, one step back from whatever sits beside them.
   Counted from the end rather than the start, so one rule covers both table
   shapes. On the three-column table it matches Length and Tier and leaves the
   session title alone; on the two-column one it matches the same two columns,
   which are then the whole table. Counting from the start would have left Length
   carrying the emphasis meant for a session name.

   Keep the :nth- shape even where it looks redundant: `.session-table thead th`
   above is (0,1,2) and would win over a bare `.session-table th`, leaving these
   headers a shade lighter than the one beside them. */
.session-table td:nth-last-child(-n+2),
.session-table th:nth-last-child(-n+2) { white-space: nowrap; color: var(--label-2); }
/* Two narrow columns fit a phone, so the floor that makes the three-column table
   scroll would put a scrollbar around them for nothing. */
.session-table.lengths { min-width: 0; }

/* One pill per top-level category. This is a jump list, not navigation
   furniture, so it stays quiet: same card ground as .legal-toc, wrapping inline
   rather than stacking, and small enough that the first cards stay in view on a
   phone. */
.blog-jump { margin: 20px 0 4px; }
.blog-jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-jump a {
  display: block;
  background: var(--card-2);
  border: 1px solid var(--sep);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  color: var(--label-2);
  white-space: nowrap;
}
.blog-jump a:hover { color: var(--accent); border-color: var(--accent); }
.blog-section { scroll-margin-top: 76px; }

@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .collection-hero { height: 72px; }
  .blog-jump a { font-size: 12px; padding: 4px 11px; }
}

/* Utility */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.muted { color: var(--label-3); }

/* Blog index sections. A hundred and twenty-two cards in one flat grid is
   unreadable, so the hub groups them two levels deep: five subject sections,
   each holding the finer groups as sub-headings. A section whose subject has
   only one group carries the grid directly and skips the <h3>. */
.blog-section { padding-top: 8px; }
.blog-section + .blog-section { padding-top: 4px; }
.blog-section-title {
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.blog-section-note {
  color: var(--label-2);
  font-size: 15.5px;
  margin: 0 0 24px;
  max-width: 60ch;
}
.blog-subsection-title {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.blog-subsection-note {
  color: var(--label-3);
  font-size: 14.5px;
  margin: 0 0 20px;
  max-width: 60ch;
}
/* .post-grid carries the 72px that separates a section from the next heading.
   Between two sub-groups of the same section that gap is a heading apart, not a
   section apart, so it is cut back and the last grid in the section restores it. */
.blog-subsection .post-grid { padding-bottom: 40px; }
.blog-subsection:last-child .post-grid { padding-bottom: 72px; }

/* Two heading levels sit between the jump list and the first card, which on a
   phone is enough to push the card off the bottom. The desktop sizes hold the
   hierarchy; here the <h2> only has to outrank the <h3> under it. This block
   sits after the rules it overrides, not in the earlier @media above: equal
   specificity, so source order decides and a media query does not help. */
@media (max-width: 720px) {
  .blog-section-title { font-size: 22px; }
  .blog-section-note { font-size: 14.5px; margin-bottom: 18px; }
  .blog-subsection-note { margin-bottom: 16px; }
}

/* ---------- Author ---------- */

/* Byline. It joins the date and reading time inside .post-meta, which is already a
   wrapping flex row with an 8px gap, so this is colour and weight only. */
.post-meta a { color: var(--label-2); font-weight: 600; }
.post-meta a:hover { color: var(--accent); }

/* The bio at the foot of a post. Deliberately the same shape as .post-related above
   it, so the two closing blocks read as a pair rather than as a card bolted on. */
.author-card {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--sep);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--sep);
}
.author-text { min-width: 0; }
.author-text p { margin: 0 0 8px; }
.author-text p:last-child { margin-bottom: 0; }
.author-name { font-size: 15.5px !important; font-weight: 700; color: var(--label) !important; }
.author-cred { font-size: 13px !important; color: var(--label-3) !important; line-height: 1.5 !important; }

/* The about page. .author-intro and .credential-list sit inside .legal-body > .wrap,
   never on the .wrap element itself, so the padding shorthand below cannot zero the
   gutter .wrap provides. Keep it that way: see the note on .hero and .legal-header. */
.author-intro {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 8px;
}
.author-portrait {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--sep);
}

.credential-list { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.credential-list > li {
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0;
}
.credential-list h3 { font-size: 15.5px; margin: 0 0 4px; }
.credential-list .cred-body { font-size: 14.5px; color: var(--label-2); margin: 0 0 6px; }
/* Certificate numbers and dates. The whole reason this page exists is that a reader
   can take these to the awarding body, so they are set apart rather than buried. */
.credential-list .cred-ref { font-size: 13px; color: var(--label-3); margin: 0; }
.credential-list .cred-ref a { color: var(--accent); }

@media (max-width: 560px) {
  .author-card { gap: 14px; }
  .author-intro { flex-direction: column; align-items: flex-start; gap: 16px; }
}
