/* MIAINA website. Tokens mirror mobile/lib/core/theme/miaina_colors.dart (DESIGN_SYSTEM.md).
   Brand colours (--breath*) paint the orb and decorations only, never body text. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Variable.woff2") format("woff2-variations"),
       url("../fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-alt: #EEF2FB;
  --on: #080D12;
  --muted: #5B6270;
  --outline: #D9DEE8;
  --breath: #3B82F6;
  --breath-alt: #A788FA;
  --breath-warm: #FFD6B8;
  --breath-glow: #8FB4FA;
  --accent: #2563EB;
  --on-accent: #FFFFFF;
  --link: #1D4ED8;
  --night: #1B2140;
  --night-alt: #3A2F6B;
  --on-night: #F7F5F0;
  --on-night-muted: #C9CEDA;
  --header-bg: rgba(247, 245, 240, 0.72);
  --shadow-phone: 0 40px 80px -30px rgba(27, 33, 64, 0.35), 0 12px 30px -12px rgba(27, 33, 64, 0.18);
  --wash: radial-gradient(60% 50% at 50% 30%, rgba(143, 180, 250, 0.22), transparent 70%);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --radius-card: 28px;
  --radius-field: 16px;
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #080D12;
    --surface: #111827;
    --surface-alt: #1A2233;
    --on: #F7F5F0;
    --muted: #9AA3B2;
    --outline: #263041;
    --breath-alt: #8B5CF6;
    --breath-glow: #6D8DF8;
    --link: #93B4FB;
    --header-bg: rgba(8, 13, 18, 0.7);
    --shadow-phone: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --wash: radial-gradient(60% 50% at 50% 30%, rgba(109, 141, 248, 0.16), transparent 70%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080D12;
  --surface: #111827;
  --surface-alt: #1A2233;
  --on: #F7F5F0;
  --muted: #9AA3B2;
  --outline: #263041;
  --breath-alt: #8B5CF6;
  --breath-glow: #6D8DF8;
  --link: #93B4FB;
  --header-bg: rgba(8, 13, 18, 0.7);
  --shadow-phone: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --wash: radial-gradient(60% 50% at 50% 30%, rgba(109, 141, 248, 0.16), transparent 70%);
}

/* Light / dark variants of app screens. */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--on);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease-breath), color 0.6s var(--ease-breath);
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(720px + 2 * var(--gutter)); }

/* ---------- Type ---------- */

.eyebrow {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.045em;
}

.headline {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

em { font-style: normal; color: var(--link); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.button:active { transform: scale(0.98); }

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.55);
}
.button-primary:hover { background: #1D4ED8; box-shadow: 0 14px 36px -10px rgba(37, 99, 235, 0.6); }

.button-ghost {
  border-color: var(--outline);
  background: var(--surface);
  color: var(--on);
}
.button-ghost:hover { border-color: var(--muted); }

.button-orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, rgba(255, 255, 255, 0) 45%),
              linear-gradient(135deg, #8FB4FA, #A788FA 60%, #FFD6B8);
  animation: idle-breath 10s var(--ease-breath) infinite;
}

@keyframes idle-breath {
  0%, 100% { transform: scale(0.82); }
  50% { transform: scale(1.05); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  transition: border-color 0.4s, background-color 0.6s var(--ease-breath);
}
.site-header.is-scrolled { border-bottom-color: var(--outline); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--on);
}
.wordmark span { margin-right: -0.42em; }

/* Logo orb: breathes slowly like the idle orb (5-5), still with reduced motion. */
.wordmark-orb {
  flex: none;
  width: 34px;
  height: 34px;
  overflow: visible;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--breath-glow) 70%, transparent));
  animation: idle-breath 10s var(--ease-breath) infinite;
}

.header-nav {
  display: flex;
  gap: 36px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.header-nav a { padding: 8px 0; transition: color 0.3s; }
.header-nav a:hover { color: var(--on); }

.header-tools { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 36px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.3s, background-color 0.3s;
}
.lang-switch a:hover { color: var(--on); }
.lang-switch a[aria-current] { background: var(--surface-alt); color: var(--on); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--outline);
  border-radius: 50%;
  background: transparent;
  color: var(--on);
  cursor: pointer;
}
.theme-toggle .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}
.theme-toggle .icon .fill { fill: currentColor; stroke: none; }
.theme-toggle[data-mode="system"] .icon-system,
.theme-toggle[data-mode="light"] .icon-light,
.theme-toggle[data-mode="dark"] .icon-dark { display: block; }
.theme-toggle:not([data-mode]) .icon-system { display: block; }

/* ---------- Orb ---------- */

.orb {
  position: relative;
  aspect-ratio: 1;
  pointer-events: none;
}
.orb canvas { width: 100%; height: 100%; }

/* Without WebGL: a soft CSS sphere breathing slowly. */
.orb.is-fallback::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 46% 54% 50% 50% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0 6%, rgba(255, 255, 255, 0) 36%),
              linear-gradient(145deg, var(--breath) 10%, var(--breath-alt) 62%, var(--breath-warm) 100%);
  box-shadow: 0 0 80px 10px color-mix(in srgb, var(--breath-glow) 45%, transparent);
  animation: idle-breath 10s var(--ease-breath) infinite;
}
.orb.is-fallback canvas { display: none; }

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

.hero {
  position: relative;
  padding: clamp(8px, 3vh, 40px) 0 clamp(24px, 6vh, 72px);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -72px 0 0;
  z-index: -1;
  background: var(--wash);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-orb {
  position: relative;
  width: min(92vw, 620px);
  margin-bottom: clamp(-160px, -14vw, -60px);
}

.hero-session {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s var(--ease-breath), transform 1.2s var(--ease-breath);
}
.session-phase {
  min-height: 1.3em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 450;
  letter-spacing: -0.02em;
}
.session-time {
  color: var(--muted);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 1.2s var(--ease-breath), filter 1.2s var(--ease-breath);
}
.hero-copy .lead { margin-top: 28px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.hero-hint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 1.2s var(--ease-breath);
}

/* Demo running: only the orb, the phase and the time left (DESIGN_SYSTEM "Intentions"). */
.hero.is-breathing .hero-session { opacity: 1; transform: none; }
.hero.is-breathing .hero-copy { opacity: 0.08; filter: blur(6px); pointer-events: none; }
.hero.is-breathing .hero-hint { opacity: 1; }
.hero.is-breathing .button-ghost { opacity: 0; pointer-events: none; }
body.is-breathing .site-header { opacity: 0.35; transition: opacity 1.2s var(--ease-breath); }
body.is-breathing .site-header:hover,
body.is-breathing .site-header:focus-within { opacity: 1; }

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

.section { padding: clamp(96px, 16vh, 180px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 8vh, 88px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}
.split-reverse .split-media { order: 0; }
.split-text .lead { margin-top: 28px; }

/* Needs chips, as on the app home screen (S06). */
.needs {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.needs-question { margin-bottom: 18px; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
}
.chip.is-selected {
  border-color: var(--accent);
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.points { display: grid; gap: 28px; margin-top: 48px; }
.point { display: grid; gap: 6px; padding-left: 20px; border-left: 1px solid var(--outline); }
.point dt { font-weight: 600; letter-spacing: -0.01em; }
.point dd { color: var(--muted); }

/* ---------- Phones ---------- */

.phone {
  position: relative;
  overflow: hidden;
  border: 7px solid #0B0F16;
  border-radius: 44px;
  background: #0B0F16;
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: auto; border-radius: 37px; }

.phones { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 520 / 620; }
.phones .phone { position: absolute; width: 58%; }
.phone-back { top: 0; right: 0; transform: rotate(4deg); opacity: 0.96; }
.phone-front { bottom: 0; left: 0; transform: rotate(-3deg); }

/* ---------- Night band (always dark, like the evening cards) ---------- */

.night {
  position: relative;
  overflow: hidden;
  background: radial-gradient(80% 60% at 20% 40%, rgba(58, 47, 107, 0.55), transparent 70%),
              linear-gradient(180deg, #080D12, #0D1220 55%, #080D12);
  color: var(--on-night);
  color-scheme: dark;
  --muted: var(--on-night-muted);
  --outline: rgba(255, 255, 255, 0.12);
  --link: #93B4FB;
}
.night .split-media { position: relative; display: grid; place-items: center; }
.night .orb-backdrop { position: absolute; width: 150%; left: -25%; top: 50%; transform: translateY(-50%); opacity: 0.9; }
.night .phone-solo { width: min(72%, 330px); }

.senses { display: grid; gap: 28px; margin-top: 48px; }
.sense { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.sense-index { color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; padding-top: 4px; }
.sense h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.sense p { color: var(--muted); }
.night-note {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--outline);
  color: var(--link);
  font-weight: 500;
}

/* ---------- Practices ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.card-screen {
  position: relative;
  height: 340px;
  overflow: hidden;
  padding: 40px 15% 0;
  background: var(--wash), var(--surface-alt);
}
.card-screen img {
  width: 100%;
  border: 6px solid #0B0F16;
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
  box-shadow: var(--shadow-phone);
}
.card-body { padding: 32px; }
.card-kicker { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.card-title { margin: 10px 0 12px; font-size: 1.75rem; font-weight: 450; letter-spacing: -0.025em; }
.card-body p:last-child { color: var(--muted); }

/* ---------- Principles ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--outline);
}
.principle {
  padding: 40px 40px 48px 0;
  border-bottom: 1px solid var(--outline);
}
.principle:not(:nth-child(3n + 1)) { padding-left: 40px; border-left: 1px solid var(--outline); }
.principle-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--breath), var(--breath-alt) 60%, var(--breath-warm));
  box-shadow: 0 0 18px 2px color-mix(in srgb, var(--breath-glow) 55%, transparent);
}
.principle h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.principle p { color: var(--muted); }

/* ---------- Name ---------- */

.name { padding-block: clamp(72px, 12vh, 140px); }
.name-inner { text-align: center; }
.name-word {
  font-size: clamp(4.5rem, 17vw, 13rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.12em;
  margin-right: -0.12em;
  text-transform: uppercase;
}
/* Gradient wordmark on dark only, as on the dark brand board. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .name-word {
    background: linear-gradient(100deg, #6D8DF8 0%, #8B5CF6 45%, #FFD6B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
:root[data-theme="dark"] .name-word {
  background: linear-gradient(100deg, #6D8DF8 0%, #8B5CF6 45%, #FFD6B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name-meaning { margin-top: 24px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 400; letter-spacing: -0.015em; }
.name-text { max-width: 30em; margin: 16px auto 0; color: var(--muted); }

/* ---------- Availability ---------- */

.availability { padding-top: 0; }
.availability-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.availability-inner .lead { margin-top: 24px; }
.orb-small { width: 240px; margin-bottom: 8px; }

/* Official store badges: black, localized, unmodified; clear space ≥ ¼ of the height (Apple, Google guidelines). */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 44px; }
.store-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; }
.store-badge .badge { height: 54px; width: auto; }
.store-badge small { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.04em; }
a.store-badge { border-radius: 14px; transition: transform 0.4s var(--ease-out); }
a.store-badge:hover { transform: translateY(-2px); }

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

.faq-inner { max-width: calc(880px + 2 * var(--gutter)); }
.faq-list { border-top: 1px solid var(--outline); }
.faq-item { border-bottom: 1px solid var(--outline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); font-weight: 500; letter-spacing: -0.015em; }
.faq-item p { max-width: 44em; padding: 0 48px 32px 0; color: var(--muted); }
.faq-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--outline);
  border-radius: 50%;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.footer-trademarks { max-width: 62em; font-size: 0.8125rem; line-height: 1.6; }

/* ---------- Prose pages ---------- */

.prose .headline { margin-bottom: 48px; }
.prose h2 { margin: 44px 0 10px; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.prose p { color: var(--muted); }
.prose a:not(.button) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose-meta { margin-top: 44px; font-size: 0.875rem; }
.prose-back { margin-top: 56px; }

.not-found { min-height: 60vh; }
.not-found .button { margin-top: 36px; }

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

.site-footer { padding: 72px 0 48px; border-top: 1px solid var(--outline); font-size: 0.875rem; color: var(--muted); }
.footer-inner { display: grid; gap: 36px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.footer-tagline { color: var(--on); font-size: 1rem; }
.footer-disclaimer { max-width: 62em; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--outline); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--outline); }
.footer-links a:hover { color: var(--on); }

/* ---------- Reveal (slow, like an exhale) ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .header-nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 1; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .principle:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .principle { padding: 36px 24px 40px 0; }
  .principle:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--outline); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-inner { height: 64px; }
  .wordmark { gap: 10px; font-size: 1rem; letter-spacing: 0.34em; }
  .wordmark span { margin-right: -0.34em; }
  .wordmark-orb { width: 30px; height: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .needs { padding: 22px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(2n) { padding: 32px 0 36px; border-left: 0; }
  .card-screen { height: 300px; }
  .card-body { padding: 26px; }
  .phones { aspect-ratio: 520 / 660; }
  .phones .phone { width: 64%; }
  .phone { border-width: 5px; border-radius: 34px; }
  .phone img { border-radius: 29px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-session, .hero-copy, .hero-hint { transition-duration: 0.01s; }
}
