/* ============================================================
   Mindful Science — landing site
   Palette encodes physiology, not decoration:
     amber  = sympathetic / activation
     aqua   = parasympathetic / regulation
   Type:  Bricolage Grotesque (display) · Source Serif 4 (prose)
          IBM Plex Mono (instrument readouts)
   ============================================================ */

:root {
  /* Palette sampled from mindfulscience.es:
       navy    = the deep section bands
       cream   = the warm off-white bands
       apricot = the primary CTA / feature cards
       blue    = the accent used on "Mejorar tu Vida" and links
     Physiology still drives the two accents:
       apricot = sympathetic / activation
       blue    = parasympathetic / regulation                        */
  --ink:      #13284C;
  --ink-2:    #1B3763;
  --ink-3:    #24457A;
  --mineral:  #FAF7F2;
  --mineral-2:#EFE8DE;
  --aqua:     #6D9FEF;
  --aqua-dim: #2F62C9;
  --amber:    #F0904A;
  --peach:    #FBD9B2;
  --cta:      #F0904A;
  --cta-hi:   #F5A566;
  --mist:     #A8BAD6;
  --mist-2:   #7C90B0;
  --ink-soft: #4A5A75;
  --line:     rgba(109, 159, 239, .20);
  --line-2:   rgba(19, 40, 76, .14);

  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --prose:   "Source Serif 4", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--mineral);
  font-family: var(--prose);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--peach); color: var(--ink); }

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

/* ---------- layout primitives ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.band { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.band--tight { padding-block: clamp(48px, 6vw, 76px); }
.band--paper { background: var(--mineral); color: var(--ink); }
.band--raised { background: var(--ink-2); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.028em;
  margin: 0;
  font-variation-settings: "wdth" 100, "opsz" 40;
}

.h-xl { font-size: clamp(2.6rem, 6.6vw, 5rem); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.h-md { font-size: clamp(1.45rem, 2.6vw, 2.05rem); letter-spacing: -.02em; }
.h-sm { font-size: clamp(1.14rem, 1.7vw, 1.34rem); letter-spacing: -.012em; }

.label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 500;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--aqua);
  opacity: .6;
  flex: none;
}
.band--paper .label { color: var(--aqua-dim); }
.band--paper .label::before { background: var(--aqua-dim); }

.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--mist); max-width: 62ch; }
.band--paper .lead { color: var(--ink-soft); }

.mono { font-family: var(--mono); }

/* ---------- header ---------- */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(19, 40, 76, .84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex; align-items: center; gap: 18px;
  height: 62px;
}
.hdr__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
  font-family: var(--display); font-weight: 700;
  letter-spacing: -.02em; font-size: 1.02rem;
}
.hdr__brand img { width: 28px; height: 28px; border-radius: 7px; }
.hdr__nav { display: flex; gap: 26px; }
.hdr__nav a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mist); text-decoration: none;
  transition: color .18s;
}
.hdr__nav a:hover { color: var(--aqua); }
@media (max-width: 900px) { .hdr__nav { display: none; } }

.langsw { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langsw a {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .08em;
  padding: 5px 11px; text-decoration: none; color: var(--mist-2);
  transition: background .18s, color .18s;
}
.langsw a[aria-current="true"] { background: var(--aqua); color: var(--ink); font-weight: 600; }
.langsw a:not([aria-current="true"]):hover { color: var(--aqua); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 650; font-size: .96rem;
  letter-spacing: -.008em;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
  /* <button> inherits a light UA background otherwise, which makes the
     ghost variant's pale text invisible. */
  background: transparent;
  -webkit-appearance: none; appearance: none;
  transition: transform .16s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--go { background: var(--cta); color: var(--ink); }
.btn--go:hover { background: var(--cta-hi); }
.btn--ghost { border-color: var(--line); color: var(--mineral); }
.btn--ghost:hover { border-color: var(--aqua); color: var(--aqua); }
.btn--sm { padding: 9px 18px; font-size: .84rem; }
.band--paper .btn--ghost { border-color: var(--line-2); color: var(--ink); }
.band--paper .btn--ghost:hover { border-color: var(--aqua-dim); color: var(--aqua-dim); }

@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- hero ---------- */

.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 82px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(109,159,239,.13), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(36px, 5vw, 68px);
  align-items: center; position: relative; z-index: 1;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--aqua); }
.hero__strike { color: var(--mist-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__fine {
  font-family: var(--mono); font-size: .88rem; color: var(--mist);
  margin-top: 18px; letter-spacing: .01em; line-height: 1.6; max-width: 46ch;
}

/* ---------- signature: coherence instrument ---------- */

.instr {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: relative;
}
.instr__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mist-2); margin-bottom: 14px;
}
.instr__state { color: var(--amber); transition: color .6s; }
.instr__state[data-on="true"] { color: var(--aqua); }
.instr__wave { width: 100%; height: 132px; display: block; }
.instr__wave path { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.pacer {
  display: flex; align-items: center; gap: 16px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pacer__orb {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--aqua);
  background: radial-gradient(circle, rgba(109,159,239,.36), transparent 70%);
  transform: scale(.62);
  transition: transform 4s cubic-bezier(.4,0,.5,1);
}
.pacer__orb[data-phase="in"]  { transform: scale(1); }
.pacer__orb[data-phase="out"] { transform: scale(.62); transition-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .pacer__orb { transition: none; } }

.pacer__txt { flex: 1; min-width: 0; }
.pacer__cue { font-family: var(--display); font-weight: 650; font-size: 1.02rem; }
.pacer__sub { font-family: var(--mono); font-size: .72rem; color: var(--mist-2); letter-spacing: .1em; text-transform: uppercase; }

/* Solid, not ghost — pale text on a light fill was unreadable. */
.pacer .start {
  background: var(--mineral);
  color: var(--ink);
  border-color: transparent;
  font-weight: 700;
}
.pacer .start:hover { background: #fff; }

/* ---------- stat strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.strip div { padding: 22px 18px; border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; }
.strip b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.03em; color: var(--mineral);
}
.strip span {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mist-2);
}
@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- thesis: calm vs train ---------- */

.thesis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin-top: 42px; }
@media (max-width: 780px) { .thesis { grid-template-columns: 1fr; } }
.thesis__col { background: var(--mineral); padding: clamp(26px, 3.4vw, 40px); }
.thesis__tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.thesis__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.thesis__col--a .thesis__tag { color: #B0631F; }
.thesis__col--a .thesis__tag::before { background: var(--amber); }
.thesis__col--b { background: var(--ink); color: var(--mineral); }
.thesis__col--b .thesis__tag { color: var(--aqua); }
.thesis__col--b .thesis__tag::before { background: var(--aqua); }
.thesis__col h3 { margin-bottom: 12px; }
.thesis__col p { margin: 0 0 14px; }
.thesis__col--a p { color: var(--ink-soft); }
.thesis__col--b p { color: var(--mist); }
.thesis__col ul { margin: 18px 0 0; padding: 0; list-style: none; }
.thesis__col li {
  font-family: var(--mono); font-size: .85rem; padding: 10px 0;
  border-top: 1px solid var(--line-2); letter-spacing: -.005em;
}
.thesis__col--b li { border-top-color: var(--line); }

/* ---------- pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 44px; }
.pillar { background: var(--ink); padding: 28px 24px 30px; }
.pillar__n { font-family: var(--mono); font-size: .66rem; color: var(--aqua); letter-spacing: .14em; }
.pillar h3 { margin: 14px 0 9px; font-size: 1.16rem; letter-spacing: -.015em; }
.pillar p { margin: 0; font-size: 1.02rem; color: var(--mist); line-height: 1.6; }

/* ---------- screenshots ---------- */

.shots {
  display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--aqua-dim) transparent;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
}
.shots::-webkit-scrollbar { height: 5px; }
.shots::-webkit-scrollbar-thumb { background: var(--aqua-dim); border-radius: 9px; }
.shots figure { margin: 0; flex: none; width: min(232px, 58vw); scroll-snap-align: center; }
.shots img {
  width: 100%; border-radius: 16px; border: 1px solid var(--line);
  background: var(--ink-2); aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top;
}
.shots figcaption {
  font-family: var(--mono); font-size: .68rem; color: var(--mist-2);
  margin-top: 11px; letter-spacing: .04em;
}

/* ---------- steps (a real sequence — numbering is content) ---------- */

.steps { margin-top: 46px; border-top: 1px solid var(--line-2); }
.band--paper .steps { border-top-color: var(--line-2); }
.step {
  display: grid; grid-template-columns: 74px 1fr 168px; gap: clamp(16px, 3vw, 40px);
  padding: 30px 0; border-bottom: 1px solid var(--line-2); align-items: start;
}
@media (max-width: 780px) { .step { grid-template-columns: 52px 1fr; } .step__meta { grid-column: 2; } }
.step__n {
  font-family: var(--mono); font-size: .95rem; color: var(--aqua-dim);
  letter-spacing: .06em; padding-top: 5px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); }
.step__meta {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--mist-2); padding-top: 7px; font-size: .78rem;
}

/* ---------- guides ---------- */

.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 16px; margin-top: 44px; }
.guide {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px; text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.guide:hover { border-color: var(--aqua); transform: translateY(-3px); background: #22406F; }
@media (prefers-reduced-motion: reduce) { .guide:hover { transform: none; } }
.guide__kw { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--aqua); }
.guide h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.guide p { margin: 0; font-size: 1.01rem; color: var(--mist); line-height: 1.6; flex: 1; }
.guide__go { font-family: var(--mono); font-size: .72rem; color: var(--mist-2); letter-spacing: .06em; }
.guide:hover .guide__go { color: var(--aqua); }

/* ---------- faq ---------- */

.faq { margin-top: 42px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 650; font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 20px;
  font-family: var(--mono); font-size: 1.3rem; color: var(--aqua-dim); font-weight: 400;
  transition: transform .22s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 24px; max-width: 74ch; }
.faq__a p { margin: 0 0 14px; color: var(--ink-soft); }
.faq__a a {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--aqua-dim); text-decoration: none; border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.faq__a a:hover { color: var(--ink); }

/* ---------- final cta ---------- */

.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: -50% -20% auto -20%; height: 150%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(109,159,239,.14), transparent 70%);
  pointer-events: none;
}
.cta > .wrap { position: relative; z-index: 1; }
.cta h2 { max-width: 17ch; margin-inline: auto; }
.cta .lead { margin: 20px auto 0; }
.cta__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta__fine {
  font-family: var(--mono); font-size: .88rem; color: var(--mist);
  margin-top: 20px; line-height: 1.6;
}

/* ---------- footer ---------- */

.ftr { border-top: 1px solid var(--line); padding-block: 48px 34px; font-size: .98rem; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
.ftr h4 {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--aqua); font-weight: 500; margin-bottom: 15px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 11px; }
.ftr a { color: var(--mist); text-decoration: none; font-size: .97rem; line-height: 1.5; }
.ftr a:hover { color: var(--aqua); }
.ftr__note { color: var(--mist-2); font-size: .95rem; line-height: 1.6; max-width: 40ch; }
.ftr__base {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .78rem; color: var(--mist-2); letter-spacing: .05em;
}

/* ---------- language nudge banner ---------- */

.langbar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 18px; z-index: 80; width: min(520px, calc(100% - 28px));
  background: var(--ink-2); border: 1px solid var(--aqua);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 14px 40px rgba(9,20,40,.46);
  transition: transform .38s cubic-bezier(.2,.8,.3,1);
}
.langbar[data-show="true"] { transform: translateX(-50%) translateY(0); }
.langbar p { margin: 0; flex: 1; font-size: .9rem; color: var(--mist); }
.langbar button.x {
  background: none; border: 0; color: var(--mist-2); cursor: pointer;
  font-family: var(--mono); font-size: 1.05rem; padding: 4px 6px;
}

/* ============================================================
   Guide pages
   ============================================================ */

.crumb {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist-2); padding-top: 34px;
}
.crumb a { color: var(--aqua); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.ghero { padding-block: 26px clamp(40px, 5vw, 62px); border-bottom: 1px solid var(--line); }
.ghero h1 { max-width: 20ch; margin-bottom: 20px; }
.ghero .lead { max-width: 66ch; }
.ghero__meta {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--mist-2); margin-top: 24px; display: flex; gap: 20px; flex-wrap: wrap;
}

.gbody { display: grid; grid-template-columns: 1fr 264px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-block: clamp(44px, 5vw, 68px); }
@media (max-width: 940px) { .gbody { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; font-size: 1.14rem; }
.prose > h2 {
  font-size: clamp(1.5rem, 2.7vw, 2rem); margin: 52px 0 16px; letter-spacing: -.024em;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { font-size: 1.16rem; margin: 34px 0 10px; letter-spacing: -.015em; }
.prose p { margin: 0 0 20px; color: #C9D8F0; }
.prose strong { color: var(--mineral); font-weight: 600; }
.prose a { color: var(--aqua); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; color: #C9D8F0; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--aqua-dim); }

.protocol {
  border: 1px solid var(--line); border-left: 3px solid var(--aqua);
  border-radius: 0 10px 10px 0; background: var(--ink-2);
  padding: 24px 26px; margin: 30px 0;
}
.protocol h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--aqua); font-weight: 500; margin-bottom: 14px;
}
.protocol ol { margin: 0; padding-left: 20px; }
.protocol li { margin-bottom: 9px; font-size: 1.05rem; }

.note {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; margin: 32px 0;
  font-family: var(--mono); font-size: .95rem; line-height: 1.65; color: var(--mist);
}
.note b { color: var(--amber); font-weight: 500; }

.bridge {
  background: var(--ink-2); border: 1px solid var(--aqua);
  border-radius: 14px; padding: clamp(26px, 3.4vw, 38px); margin: 46px 0 0;
}
.bridge h2 { margin: 0 0 14px !important; font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important; }
.bridge p { color: var(--mist); }
.bridge ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.bridge li {
  padding: 11px 0 11px 26px; border-top: 1px solid var(--line);
  position: relative; font-size: 1.03rem; color: #C9D8F0;
}
.bridge li::before {
  content: "→"; position: absolute; left: 0; color: var(--aqua); font-family: var(--mono);
}

.aside { position: sticky; top: 86px; }
@media (max-width: 940px) { .aside { position: static; } }
.aside__card {
  border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  background: var(--ink-2); margin-bottom: 18px;
}
.aside__card img { width: 46px; height: 46px; border-radius: 11px; margin-bottom: 14px; }
.aside__card h4 { font-family: var(--display); font-size: 1.02rem; margin-bottom: 8px; }
.aside__card p { margin: 0 0 16px; font-size: .96rem; color: var(--mist); line-height: 1.58; }
.aside__toc h4 {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--mist-2); font-weight: 500; margin-bottom: 12px;
}
.aside__toc ul { list-style: none; margin: 0; padding: 0; }
.aside__toc li { border-top: 1px solid var(--line); }
.aside__toc a {
  display: block; padding: 11px 0; font-size: .95rem; color: var(--mist);
  text-decoration: none; line-height: 1.4;
}
.aside__toc a:hover { color: var(--aqua); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 34px; }

/* ---------- reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.rv[data-in="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- store buttons ----------
   Two platforms, equal weight — neither is demoted to a secondary
   action. On navy they read as light badges; on cream, as outlines. */

.stores { display: flex; gap: 12px; margin-top: 30px; }
.stores .btn--store { flex: 1 1 0; min-width: 0; }
.stores--stack { margin-top: 0; }
.cta .stores { justify-content: center; }

.btn--store {
  background: var(--mineral);
  color: var(--ink);
  border-color: transparent;
}
.btn--store:hover { background: #fff; }
.band--paper .btn--store,
.thesis__col--a .btn--store {
  background: var(--ink);
  color: var(--mineral);
}
.band--paper .btn--store:hover { background: var(--ink-2); }
.btn--store svg { flex: none; }

/* Two stores stay shoulder to shoulder at every width — the buttons
   shrink instead of stacking, so neither platform ends up below the fold. */
@media (max-width: 560px) {
  .stores { gap: 9px; }
  .btn--store { padding: 13px 12px; font-size: .88rem; gap: 7px; }
}
@media (max-width: 340px) {
  .btn--store { padding: 12px 8px; font-size: .8rem; gap: 5px; }
}
.stores--stack { flex-direction: column; }
.stores--stack .btn--store { flex: none; width: 100%; }

/* ============================================================
   Mobile
   The header is the tight constraint: brand + language switch +
   CTA have to survive 360px without wrapping, so the CTA carries
   a short label and everything shrinks rather than stacking.
   ============================================================ */

.lbl-short { display: none; }

@media (max-width: 860px) {
  .hdr__in { height: 58px; gap: 12px; }
  .hdr__brand { font-size: .95rem; gap: 8px; white-space: nowrap; }
  .hdr__brand img { width: 25px; height: 25px; }
  .hdr__cta { padding: 9px 15px; font-size: .84rem; }
  .langsw a { padding: 5px 9px; font-size: .64rem; }
}

@media (max-width: 560px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }

  .hdr__in { height: 54px; gap: 9px; }
  .hdr__brand { font-size: .88rem; gap: 7px; }
  .hdr__brand img { width: 23px; height: 23px; }
  .hdr__cta { padding: 8px 13px; font-size: .8rem; }
  .langsw a { padding: 4px 8px; font-size: .61rem; letter-spacing: .04em; }

  .hero { padding-block: 34px 44px; }
  .h-xl { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero__grid { gap: 30px; }
  .hero__cta { gap: 10px; margin-top: 24px; }
  /* let the store pair span the full width instead of hugging its text */
  .hero__cta .stores, .cta__row .stores { flex: 1 1 100%; }
  .hero__cta .btn--ghost { flex: 1 1 100%; }
  .hero__fine, .cta__fine { font-size: .82rem; line-height: 1.6; }

  .instr { padding: 17px 16px 15px; border-radius: 12px; }
  .instr__wave { height: 104px; }
  .pacer { gap: 12px; }
  .pacer__orb { width: 38px; height: 38px; }
  .pacer__cue { font-size: .95rem; }

  .band { padding-block: 52px; }
  .band--tight { padding-block: 40px; }

  .thesis__col { padding: 24px 20px; }
  .pillar { padding: 24px 20px 26px; }
  .step { padding: 24px 0; gap: 14px; }
  .guide { padding: 21px 19px; }

  .shots figure { width: min(196px, 62vw); }

  .faq summary { padding: 19px 34px 19px 0; font-size: 1.02rem; }
  .faq summary::after { top: 17px; }

  .prose { font-size: 1.08rem; }
  .prose > h2 { margin: 40px 0 14px; }
  .protocol { padding: 20px 18px; margin: 24px 0; }
  .bridge { padding: 24px 20px; }
  .ghero__meta { gap: 14px; }

  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ftr__base { font-size: .72rem; gap: 10px; }

  .langbar { padding: 12px 13px; gap: 10px; }
  .langbar p { font-size: .85rem; }
}

@media (max-width: 380px) {
  .hdr__brand span { display: none; }   /* icon alone; the wordmark returns above 380px */
}
