/*
 * MIO website styles. Palette from apps/mobile/src/theme.ts; RTL throughout, so every
 * spacing and border uses logical properties (start = right, end = left).
 */

:root {
  color-scheme: light dark;
  --bg: #FAF7F2;
  --bg-2: #F3EDE3;
  --card: #FFFFFF;
  --ink: #1F1B16;
  --muted: #6E665C;
  --line: #E7DFD3;
  --accent: #2F6F5E;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEBE5;
  --warn: #B5543B;
  --warn-soft: #F6E3DD;
  --warn-ink: #943F2B;
  --heart: #D0566A;
  --mark: #4F5957;
  --shadow: 0 1px 2px rgb(31 27 22 / 6%), 0 12px 32px -12px rgb(31 27 22 / 18%);
  --radius: 22px;
  --radius-sm: 14px;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Rubik", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121715;
    --bg-2: #171E1B;
    --card: #1D2522;
    --ink: #F1ECE4;
    --muted: #B3AB9F;
    --line: #2C3633;
    --accent: #7FC8B3;
    --accent-ink: #0E1D18;
    --accent-soft: #22362F;
    --warn: #E59378;
    --warn-soft: #3A2621;
    --warn-ink: #F4B8A4;
    --mark: #AEB8B5;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.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;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* ---------- MIO character ---------- */
.mio { color: var(--mark); }
.mio-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header ---------- */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand svg { width: 40px; height: 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.875rem; font-weight: 700; line-height: 1.4;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.header-link { font-weight: 700; font-size: 0.95rem; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: 24px 72px; position: relative; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 7.6vw, 3.9rem); font-weight: 800; }
.hero h1 .name { color: var(--accent); display: block; font-size: 0.62em; letter-spacing: 0.04em; margin-bottom: 6px; }
.hero .lead { margin-top: 20px; font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ink); max-width: 34ch; }
.hero .who { margin-top: 14px; color: var(--muted); font-size: 0.98rem; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-glow {
  position: absolute; width: min(420px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft) 0%, transparent 68%);
}
.hero-mio { position: relative; width: min(230px, 56vw); }
.q-bubble {
  position: absolute; max-width: 210px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 18px; box-shadow: var(--shadow);
  font-size: 0.9rem; line-height: 1.45; font-weight: 500;
}
.q-bubble.q1 { top: 4%; inset-inline-start: 0; border-start-start-radius: 6px; }
.q-bubble.q2 { top: 14%; inset-inline-end: 0; border-start-end-radius: 6px; }
.q-bubble.q3 { bottom: 12%; inset-inline-start: 2%; border-end-start-radius: 6px; }
.q-bubble.q4 { bottom: 2%; inset-inline-end: 4%; border-end-end-radius: 6px; }

@media (max-width: 479px) {
  .hero-visual { min-height: 400px; }
  .q-bubble { max-width: 168px; font-size: 0.84rem; padding: 8px 12px; }
  .hero-mio { width: 170px; }
}
@media (min-width: 960px) {
  .hero { padding-block: 40px 112px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-visual { min-height: 480px; }
  .hero-mio { width: 260px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 76px; }
.section-alt { background: var(--bg-2); }
@media (min-width: 960px) { .section { padding-block: 112px; } }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 5.2vw, 2.75rem); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }

/* ---------- Problem ---------- */
.problem-time { font-family: var(--font-head); font-weight: 800; color: var(--warn); }
.problem-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
.tile h3 { font-size: 1.2rem; font-weight: 700; }
.tile > p { color: var(--muted); font-size: 0.98rem; }
.tile-visual p { margin: 0; }
.tile-visual { border-radius: var(--radius-sm); background: var(--bg); padding: 16px; min-height: 196px; position: relative; overflow: hidden; }

/* tile 1: a question sent at night, unanswered */
.night { background: #1B2321; color: #E9E4DA; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.night-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #A9B3AF; }
.night-top .clock { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #F1ECE4; letter-spacing: 0.02em; }
.moon { width: 26px; height: 26px; border-radius: 50%; box-shadow: -7px 3px 0 0 #E9D9A8; transform: translateX(6px); }
.sent {
  align-self: flex-start; max-width: 92%;
  background: #2C4A41; color: #F1ECE4; padding: 10px 14px; border-radius: 16px; border-start-start-radius: 6px;
  font-size: 0.92rem; line-height: 1.5;
}
.sent-meta { font-size: 0.78rem; color: #A9B3AF; display: flex; gap: 6px; align-items: center; }

/* tile 2: an assessment page full of jargon, fading into blur */
.paper {
  background: #FFFDF9; color: #2A2620; border: 1px solid #E8E0D2;
  font-family: "Times New Roman", "David", serif; font-size: 0.8rem; line-height: 1.55;
  padding: 14px 16px; border-radius: 6px; box-shadow: 0 6px 16px -10px rgb(0 0 0 / 35%);
}
.paper-head { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 0.7rem; color: #655D52; border-bottom: 1px solid #EDE6DA; padding-bottom: 6px; margin-bottom: 8px; }
.paper .blur { filter: blur(2.6px); user-select: none; }
.paper .jargon { background: #FCEBC2; border-radius: 3px; padding-inline: 2px; }
.paper.stacked { position: relative; }
.paper.stacked::before, .paper.stacked::after {
  content: ""; position: absolute; inset: 0; background: #FBF7EF; border: 1px solid #E8E0D2; border-radius: 6px; z-index: -1;
}
.paper.stacked::before { transform: rotate(-2.4deg) translate(-6px, 4px); }
.paper.stacked::after { transform: rotate(1.8deg) translate(5px, 7px); }
.paper-wrap { position: relative; z-index: 0; padding: 4px 6px 10px; }

/* tile 3: contradicting advice */
.advice { display: grid; gap: 10px; padding-block: 6px; }
.note {
  padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 500; line-height: 1.45;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  display: flex; gap: 10px; align-items: flex-start;
}
.note .who-said { font-size: 0.75rem; color: var(--muted); display: block; font-weight: 400; }
.note:nth-child(1) { transform: rotate(-1.4deg); margin-inline-end: 18px; }
.note:nth-child(2) { transform: rotate(1.2deg); margin-inline-start: 22px; }
.note:nth-child(3) { transform: rotate(-0.8deg); margin-inline-end: 8px; }
.note .x { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--warn-soft); color: var(--warn-ink); display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; margin-top: 1px; }

/* ---------- Solution ---------- */
.gets { display: grid; gap: 14px; margin: 0 0 64px; padding: 0; list-style: none; }
@media (min-width: 640px) { .gets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .gets { grid-template-columns: repeat(4, 1fr); } }
.gets li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 18px 18px 18px; display: flex; gap: 14px; align-items: flex-start; font-weight: 500; line-height: 1.5;
}
.ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.ico svg { width: 22px; height: 22px; }
.ico.warn { background: var(--warn-soft); color: var(--warn-ink); }

.showcase { display: grid; gap: 36px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
@media (min-width: 960px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 64px; }
  .showcase + .showcase { margin-top: 120px; }
  .showcase.flip .showcase-text { order: 2; }
  /* The assessment before/after needs the full width: text on top, the two pieces side by side under it. */
  .showcase.wide { grid-template-columns: 1fr; gap: 48px; }
  .showcase.wide .showcase-text { max-width: 760px; }
  .showcase.wide .checks { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.showcase-text h3 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
.showcase-text > p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6F5E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FC8B3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
}
.example-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
/* Pinned to the first line, so the dot stays at the start of the note however it wraps. */
.example-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; margin-top: 0.68em; }

.showcase-visual { display: flex; justify-content: center; }

/* ---------- Phone mock: always the app's own light theme ---------- */
.phone {
  --a-bg: #FAF7F2; --a-card: #FFFFFF; --a-ink: #1F1B16; --a-muted: #6E665C;
  --a-accent: #2F6F5E; --a-soft: #DCEBE5; --a-warn: #B5543B; --a-warn-soft: #F6E3DD; --a-warn-ink: #943F2B;
  color-scheme: light;
  width: 100%; max-width: 340px; flex: none;
  border-radius: 46px; padding: 10px; background: #171B1A;
  box-shadow: 0 0 0 1.5px #2D3331, 0 40px 80px -30px rgb(20 25 23 / 55%), 0 18px 36px -18px rgb(20 25 23 / 40%);
}
.screen {
  background: var(--a-bg); color: var(--a-ink); border-radius: 37px; overflow: hidden;
  font-size: 14.5px; line-height: 1.55; display: flex; flex-direction: column;
}
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; font-size: 13px; font-weight: 700; }
.status-bar .notch { width: 92px; height: 24px; border-radius: 14px; background: #171B1A; }
.status-bar .bars { display: flex; gap: 3px; align-items: flex-end; direction: ltr; }
.status-bar .bars i { display: block; width: 3px; background: var(--a-ink); border-radius: 1px; }
.status-bar .bars i:nth-child(1) { height: 4px; } .status-bar .bars i:nth-child(2) { height: 6px; }
.status-bar .bars i:nth-child(3) { height: 8px; } .status-bar .bars i:nth-child(4) { height: 10px; }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 8px; border-bottom: 1px solid #EEE8DE; background: var(--a-bg); }
.app-bar .title { font-weight: 700; font-size: 16px; }
.app-bar .back { color: var(--a-accent); font-size: 20px; line-height: 1; width: 24px; }
.app-bar .spacer { width: 24px; }
.helper { display: flex; flex-direction: column; align-items: center; padding: 8px 0 2px; }
.helper svg { width: 62px; height: 62px; color: #4F5957; }
.helper .label { font-size: 12px; color: var(--a-muted); margin-top: 1px; }

.thread { padding: 4px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 11px 13px; border-radius: 16px; max-width: 92%; }
.bubble.user { align-self: flex-start; background: var(--a-soft); }
.bubble.mio-says { align-self: flex-end; background: var(--a-card); box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.prompt { font-weight: 600; margin-bottom: 2px; }
.pcard { border: 1px solid var(--a-soft); border-inline-start: 3px solid var(--a-accent); border-radius: 12px; padding: 9px 10px; margin-top: 8px; }
.pcard .plabel { font-weight: 700; color: var(--a-accent); margin-bottom: 2px; }
.pcard ol { margin: 4px 0 0; padding-inline-start: 18px; }
.pcard .quote { font-style: italic; color: var(--a-muted); margin-top: 4px; }
.pcard .choose { margin-top: 8px; background: var(--a-accent); color: #fff; border-radius: 10px; padding: 7px; text-align: center; font-weight: 600; font-size: 13.5px; }
.based-on { color: var(--a-muted); font-size: 12.5px; margin-top: 8px; }
.disclaimer-line { text-align: center; color: var(--a-muted); font-size: 11.5px; padding: 2px 14px 4px; }
.composer { display: flex; gap: 8px; align-items: center; padding: 8px 10px 14px; background: var(--a-card); }
.composer .input { flex: 1; min-height: 38px; border: 1px solid var(--a-soft); border-radius: 14px; padding: 8px 10px; color: #8D857A; font-size: 13.5px; }
.composer .send { background: var(--a-accent); color: #fff; border-radius: 14px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; }
.home-ind { width: 120px; height: 4px; border-radius: 4px; background: #1F1B16; opacity: 0.85; margin: 0 auto 8px; }
.composer-wrap { background: var(--a-card); }

/* profile screen */
.profile { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.profile .h { font-weight: 700; font-size: 16px; margin-top: 4px; }
.profile .card { background: var(--a-card); border-radius: 16px; padding: 13px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.profile .status { font-weight: 600; color: var(--a-accent); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.profile .sub { color: var(--a-muted); font-size: 13.5px; }
.profile .sub b { color: var(--a-ink); font-weight: 600; }
.profile .confirm { background: var(--a-accent); color: #fff; border-radius: 14px; padding: 9px; text-align: center; font-weight: 700; margin-top: 4px; }
.profile .mem { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.profile .forget { color: var(--a-warn-ink); font-size: 13px; font-weight: 600; flex: none; }

/* ---------- Before / after ---------- */
.before-after { display: grid; gap: 18px; justify-items: center; width: 100%; max-width: 940px; }
.ba-before { width: 100%; max-width: 360px; }
.ba-before .paper { font-size: 0.8rem; }
@media (min-width: 760px) {
  .before-after { grid-template-columns: minmax(0, 1fr) auto minmax(0, 340px); align-items: center; gap: 28px; }
  .ba-before { max-width: 460px; }
  .ba-before .paper { font-size: 0.92rem; padding: 20px 22px; }
}
.ba-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 8px; display: block; text-align: center; }
.redacted { background: #2A2620; color: #FFFDF9; border-radius: 3px; padding-inline: 4px; font-family: var(--font-body); font-size: 0.72rem; white-space: nowrap; }
.ba-arrow {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 8px 20px -10px var(--accent);
}
.ba-arrow svg { width: 22px; height: 22px; transform: rotate(-90deg); }
@media (min-width: 760px) { .ba-arrow svg { transform: none; } }
.redact-key { margin-top: 10px; font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }
.redact-key .redacted { font-size: 0.7rem; }

/* ---------- Safety card ---------- */
.safety-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px;
}
.safety-top { display: flex; gap: 14px; align-items: center; }
.safety-top svg { width: 64px; height: 64px; flex: none; }
.safety-top .t { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.safety-top .s { color: var(--muted); font-size: 0.92rem; }
.contacts { background: var(--warn-soft); border-inline-start: 3px solid var(--warn); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.contacts .lbl { font-size: 0.82rem; font-weight: 600; color: var(--ink); display: block; }
.contacts .line { font-size: 1.05rem; font-weight: 700; color: var(--warn-ink); }
.safety-foot { font-size: 0.88rem; color: var(--muted); }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 26px; box-shadow: var(--shadow);
}
.step .num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trust .ico { margin-bottom: 16px; width: 46px; height: 46px; border-radius: 14px; }
.trust .ico svg { width: 24px; height: 24px; }
.trust h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.trust p { color: var(--muted); font-size: 0.98rem; }
.important {
  margin-top: 28px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--warn-soft); border-radius: var(--radius); padding: 20px 22px;
  border-inline-start: 4px solid var(--warn);
}
.important h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.important p { color: var(--ink); }
.important .ico { background: var(--card); }

/* ---------- Status ---------- */
.beta {
  display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center;
  background: var(--accent-soft); border-radius: 32px; padding: 44px 24px;
}
.beta svg.mio { width: 128px; height: 128px; }
.beta h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
.beta p { margin-top: 12px; font-size: 1.1rem; max-width: 46ch; margin-inline: auto; }
.beta .contact { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.beta .contact .label { color: var(--muted); font-size: 0.95rem; }
.beta .mail { direction: ltr; unicode-bidi: isolate; }
@media (min-width: 860px) {
  .beta { grid-template-columns: auto 1fr; text-align: start; justify-items: start; padding: 56px 64px; gap: 48px; }
  .beta p { margin-inline: 0; }
  .beta .contact { align-items: flex-start; }
  .beta svg.mio { width: 168px; height: 168px; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); }
/* The status card follows the trust section on the same background: no double gap between them. */
#beta { padding-top: 0; }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; }
.site-footer nav a { font-weight: 600; }
.site-footer .fine { color: var(--muted); font-size: 0.88rem; max-width: 60ch; }
.site-footer .brand { font-size: 1.1rem; }
.site-footer .brand svg { width: 30px; height: 30px; }

/* ---------- Simple pages (privacy, terms, 404) ---------- */
.page { padding-block: 40px 24px; }
.page .wrap { max-width: 760px; }
.page-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px 26px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 16px; justify-items: center; }
.page-card svg.mio { width: 120px; height: 120px; }
.page-card h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 800; }
.page-card p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
@media (min-width: 720px) { .page-card { padding: 56px 48px; } }

/* ---------- Motion (only when JS has confirmed no reduced-motion preference) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-mio { animation: float 6s ease-in-out infinite; }
  .q-bubble { animation: pop 600ms cubic-bezier(.2,.8,.2,1) both; }
  .q-bubble.q1 { animation-delay: 200ms; } .q-bubble.q2 { animation-delay: 500ms; }
  .q-bubble.q3 { animation-delay: 800ms; } .q-bubble.q4 { animation-delay: 1100ms; }
  .motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
  .motion .reveal.is-visible { opacity: 1; transform: none; }
  .motion .reveal .thread > * { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 500ms ease; }
  .motion .reveal.is-visible .thread > * { opacity: 1; transform: none; }
  .motion .reveal.is-visible .thread > :nth-child(2) { transition-delay: 500ms; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
