/* =====================================================================
   Ravelo — landing styles
   Shared by index.html, privacy.html, terms.html, 404.html

   Design language taken from the app UI: light grey canvas, pure white
   cards with generous radii, violet accent, emoji illustrations,
   iOS-style controls. No gradients, no glass, almost no shadow.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --violet-100: #f1ebff;
  --violet-300: #c4b1ff;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --container: 1120px;
  --header-h: 68px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  /* Light (default — matches the app) */
  --bg:         #efeff2;
  --bg-subtle:  #e7e7ec;
  --card:       #ffffff;
  --bg-elev:    #ffffff;
  --track:      #e6e6eb;
  --border:     #dedee4;
  --border-str: #c9c9d1;
  --text:       #0b0b0e;
  --text-soft:  #55555e;
  --text-muted: #8a8a8f;
  --accent:     var(--violet-500);
  --accent-ink: #ffffff;
  --accent-soft: var(--violet-100);
  --shadow-sm:  0 1px 2px rgb(11 11 14 / 4%);
  --shadow:     0 8px 24px -12px rgb(11 11 14 / 12%);
  --fab:        #0b0b0e;
  --fab-ink:    var(--violet-300);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #101013;
    --bg-subtle:  #17171b;
    --card:       #1c1c20;
    --bg-elev:    #1c1c20;
    --track:      #2c2c32;
    --border:     #2a2a31;
    --border-str: #3a3a43;
    --text:       #f5f5f7;
    --text-soft:  #b9b9c2;
    --text-muted: #8c8c96;
    --accent:     #a78bfa;
    --accent-ink: #14091f;
    --accent-soft: rgb(167 139 250 / 14%);
    --shadow-sm:  0 1px 2px rgb(0 0 0 / 40%);
    --shadow:     0 8px 24px -12px rgb(0 0 0 / 70%);
    /* A black launcher would disappear on the dark canvas — invert it. */
    --fab:        #ffffff;
    --fab-ink:    var(--violet-600);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:         #101013;
  --bg-subtle:  #17171b;
  --card:       #1c1c20;
  --bg-elev:    #1c1c20;
  --track:      #2c2c32;
  --border:     #2a2a31;
  --border-str: #3a3a43;
  --text:       #f5f5f7;
  --text-soft:  #b9b9c2;
  --text-muted: #8c8c96;
  --accent:     #a78bfa;
  --accent-ink: #14091f;
  --accent-soft: rgb(167 139 250 / 14%);
  --shadow-sm:  0 1px 2px rgb(0 0 0 / 40%);
  --shadow:     0 8px 24px -12px rgb(0 0 0 / 70%);
  --fab:        #ffffff;
  --fab-ink:    var(--violet-600);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.06rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.1rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); font-weight: 750; }
p  { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--violet-300); color: #14091f; }

.skip-link {
  position: absolute;
  left: 14px; top: -100px;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-sm);
  font-weight: 650;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, .6rem + 2vw, 2rem);
}

.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }

.head { margin-bottom: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.head--center { text-align: center; }
.head--center p { margin-inline: auto; }
.head p { margin-top: .9rem; max-width: 54ch; color: var(--text-soft); font-size: 1.05rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.chip span { font-size: 1rem; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 1.7rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--violet-600); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn svg { width: 20px; height: 20px; }

.btn--ghost {
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn--ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--border-str); }

.btn--sm { padding: .65rem 1.15rem; font-size: .93rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; width: 100%; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-right: auto;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.035em;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  transition: transform .3s var(--ease);
}
.logo:hover .logo__mark { transform: scale(1.06); }
.logo__mark svg { width: 19px; height: 19px; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  font-size: .96rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); }

.header__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text-soft);
  cursor: pointer;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); transform: scale(1.05); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle[data-dark="true"] .icon-moon { display: block; }
.theme-toggle[data-dark="true"] .icon-sun { display: none; }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .75rem clamp(1rem, .6rem + 2vw, 2rem) 1.25rem;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; }
  .nav a { padding: .85rem 1rem; background: var(--card); font-size: 1.02rem; }
  .nav-toggle { display: grid; }
  .header__actions .btn--ghost { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero .chip { margin-inline: auto; }
}

.hero h1 .accent { color: var(--accent); }
.hero__lead {
  margin-top: 1.2rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--text-soft);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
@media (max-width: 900px) { .hero__cta { justify-content: center; } }
.hero__note {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  margin-top: 1.4rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.hero__note span { display: inline-flex; align-items: center; gap: .35rem; }
.hero__note svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- 7. Phone mock (mirrors the app screen) ---------- */
.hero__visual { display: grid; place-items: center; width: 100%; }

.phone {
  position: relative;
  width: min(330px, 84vw);
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border-radius: 46px;
  background: #0b0b0e;
  box-shadow: 0 30px 60px -30px rgb(11 11 14 / 45%), inset 0 0 0 1px rgb(255 255 255 / 8%);
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: #efeff2;
  color: #0b0b0e;
  padding: 1.5rem .85rem 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .78rem;
}
.screen__bar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; font-weight: 700; color: #0b0b0e;
  padding-inline: .2rem;
}
.screen__bar-icons { display: flex; gap: .2rem; align-items: center; opacity: .85; }
.screen__bar-icons i { display: block; width: 3px; border-radius: 1px; background: #0b0b0e; }
.screen__bar-icons i:nth-child(1) { height: 5px; }
.screen__bar-icons i:nth-child(2) { height: 7px; }
.screen__bar-icons i:nth-child(3) { height: 9px; }
.screen__bar-icons i:nth-child(4) { height: 11px; }
.screen__bar-icons b {
  width: 18px; height: 9px;
  border: 1px solid rgb(11 11 14 / 45%);
  border-radius: 3px;
  position: relative;
}
.screen__bar-icons b::after {
  content: ""; position: absolute; inset: 1.5px auto 1.5px 1.5px;
  width: 3px; border-radius: 1px; background: #ff4d4f;
}

.screen__title { display: flex; align-items: center; justify-content: space-between; padding-inline: .2rem; }
.screen__title h4 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; }
.screen__title-right { display: flex; align-items: center; gap: .35rem; }
.streak {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .5rem;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: .72rem; font-weight: 700;
}
.avatar-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  font-size: .7rem;
  color: #8a8a8f;
}

.mcard { background: #fff; border-radius: 18px; padding: .8rem .75rem; }

.rings { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .3rem; }
.rings__side { font-size: .6rem; line-height: 1.35; color: #8a8a8f; }
.rings__side b { display: block; font-size: .74rem; color: #0b0b0e; }
.rings__side--right { text-align: right; }
.ring { position: relative; width: 104px; height: 104px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring__track { stroke: #e6e6eb; }
.ring__val {
  stroke: #cfcfd6;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: ring 2.2s var(--ease) .4s forwards;
}
.ring__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__mid b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.ring__mid span { font-size: .6rem; color: #8a8a8f; }
.ring__emoji { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; display: flex; gap: .1rem; font-size: 1.1rem; }

.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .85rem; }
.macro { text-align: center; }
.macro > span { font-size: .62rem; color: #8a8a8f; }
.macro__bar {
  display: flex; align-items: center; gap: .2rem;
  margin: .25rem 0;
}
.macro__bar em { font-style: normal; font-size: .68rem; }
.macro__bar i { flex: 1; height: 5px; border-radius: 3px; background: #e6e6eb; overflow: hidden; }
.macro__bar i::after {
  content: ""; display: block; height: 100%; width: 18%;
  border-radius: 3px; background: var(--violet-500);
  transform-origin: 0 50%;
  animation: grow 1.4s var(--ease) .8s backwards;
}
.macro b { font-size: .68rem; font-weight: 700; }

.screen__btns { display: grid; grid-template-columns: 1.15fr 1fr; gap: .4rem; margin-top: .8rem; }
.sbtn {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .6rem;
  border-radius: 13px;
  font-size: .76rem; font-weight: 750;
}
.sbtn--primary { background: var(--violet-500); color: #fff; }
.sbtn--ghost { background: #eeeef2; color: #0b0b0e; }
.sbtn svg { width: 14px; height: 14px; }

.promo { display: flex; align-items: center; gap: .55rem; }
.promo__thumb {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd9a0, #f0a860 60%, #d8823f);
  display: grid; place-items: center; font-size: 1.05rem;
}
.promo p { font-size: .74rem; font-weight: 750; line-height: 1.25; }
.promo small { display: block; font-weight: 400; color: #8a8a8f; font-size: .68rem; margin-top: .1rem; }

.todo-title { font-size: .95rem; font-weight: 800; letter-spacing: -.03em; padding-inline: .2rem; margin-top: .2rem; }
.todo { display: flex; align-items: center; gap: .55rem; }
.todo__thumb {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: #f3f3f6;
  display: grid; place-items: center; font-size: 1.05rem;
}
.todo span { font-size: .66rem; color: #8a8a8f; }
.todo b { display: block; font-size: .76rem; letter-spacing: -.02em; }
.todo__chev { margin-left: auto; color: #c7c7cf; }

.tabbar {
  margin-top: auto;
  margin-inline: -.85rem;
  padding: .5rem .6rem .7rem;
  background: #fff;
  border-top: 1px solid #ececf1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  position: relative;
}
.tab { text-align: center; font-size: .55rem; font-weight: 650; color: #8a8a8f; }
.tab em { display: block; font-style: normal; font-size: 1rem; margin-bottom: .1rem; }
.tab--on { color: var(--violet-500); }
.tab--fab { position: relative; }
.tab--fab i {
  position: absolute;
  left: 50%; bottom: 6px;
  translate: -50% 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--violet-500);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.1rem;
  font-style: normal;
  box-shadow: 0 6px 16px -6px rgb(139 92 246 / 70%);
}

/* Floating badges next to the phone */
.badge {
  position: absolute;
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .8rem;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: .82rem;
  font-weight: 700;
  animation: float 7s ease-in-out infinite;
}
.badge em { font-style: normal; font-size: 1.1rem; }
.badge small { display: block; font-weight: 500; font-size: .7rem; color: var(--text-muted); }
.badge--a { top: 14%; left: -8%; }
.badge--b { bottom: 18%; right: -8%; animation-delay: -3.5s; }
@media (max-width: 1040px) { .badge { display: none; } }

/* ---------- 8. Figures ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem;
}
.figures > div {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.2rem;
}
.figures dd { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.figures dt { margin-top: .45rem; font-size: .88rem; color: var(--text-muted); }

/* ---------- 9. Feature tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(.8rem, .6rem + .6vw, 1.1rem);
}
.tile {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: clamp(1.3rem, 1.1rem + .7vw, 1.8rem);
  transition: transform .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); }
.tile__emoji {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 15px;
  background: var(--accent-soft);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.tile h3 { margin-bottom: .5rem; }
.tile p { color: var(--text-soft); font-size: .97rem; }
.tile--wide { grid-column: span 2; }
@media (max-width: 720px) { .tile--wide { grid-column: span 1; } }

/* ---------- 10. Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(.8rem, .6rem + .6vw, 1.1rem); }
.step {
  position: relative;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 1.2rem + .7vw, 1.9rem);
}
.step__num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .92rem; font-weight: 800;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--text-soft); font-size: .97rem; }

/* ---------- 11. FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: 52rem; margin-inline: auto; }
.faq details { background: var(--card); border-radius: var(--r-lg); overflow: hidden; }
.faq summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2.2px solid var(--text-muted);
  border-bottom: 2.2px solid var(--text-muted);
  rotate: 45deg;
  transition: rotate .25s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; }
.faq summary:hover { color: var(--accent); }
.faq__body { padding: 0 1.3rem 1.3rem; color: var(--text-soft); font-size: .98rem; }

/* ---------- 12. Notice / disclaimer card ---------- */
.notice {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 1.2rem + 1vw, 2.2rem);
}
.notice__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 1.3rem;
}
.notice h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.7rem); margin-bottom: .7rem; }
.notice p { color: var(--text-soft); font-size: .98rem; }
.notice p + p { margin-top: .7rem; }
.notice a { color: var(--accent); font-weight: 650; }

/* ---------- 13. CTA band ---------- */
.cta {
  background: var(--accent);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.6rem + 2.5vw, 3.5rem);
  text-align: center;
  color: #fff;
}
.cta h2 { max-width: 30ch; margin-inline: auto; }
.cta p { max-width: 46ch; margin: 1rem auto 2rem; color: rgb(255 255 255 / 82%); font-size: 1.05rem; }
.cta .btn { background: #fff; color: var(--violet-700); }
.cta .btn:hover { background: #f6f2ff; }
.cta__row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta .btn--ghost { background: rgb(255 255 255 / 14%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%); }
.cta .btn--ghost:hover { background: rgb(255 255 255 / 22%); }

/* ---------- 14. Footer ---------- */
.footer { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 1rem + 2vw, 3rem);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__about p { margin-top: .9rem; max-width: 34ch; color: var(--text-muted); font-size: .92rem; }
.footer h2, .footer h3 {
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.footer ul { display: grid; gap: .55rem; }
.footer li a { font-size: .95rem; color: var(--text-soft); transition: color .2s var(--ease); }
.footer li a:hover { color: var(--accent); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
  align-items: center; justify-content: space-between;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: .86rem;
  color: var(--text-muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer__legal a:hover { color: var(--accent); }

.disclaimer {
  margin-top: 1.6rem;
  font-size: .81rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 80ch;
}
.disclaimer + .disclaimer { margin-top: .8rem; }
.disclaimer a { color: var(--accent); }

/* ---------- 15. Legal pages ---------- */
.legal-hero { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) clamp(1.2rem, 1rem + 1.5vw, 2rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .45rem; }
.breadcrumbs a:hover { color: var(--accent); }
.legal-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.legal-hero p { margin-top: .8rem; color: var(--text-muted); font-size: .95rem; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  max-height: calc(100svh - var(--header-h) - 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem;
}
@media (max-width: 900px) { .toc { position: static; max-height: none; } }
.toc h2 { font-size: .76rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .8rem; }
.toc ol { display: grid; gap: .3rem; }
.toc a { display: block; padding: .22rem 0; font-size: .9rem; color: var(--text-soft); transition: color .2s var(--ease); }
.toc a:hover, .toc a.is-active { color: var(--accent); }

.prose {
  max-width: 72ch;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 1.1rem + 1.5vw, 2.6rem);
}
.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  margin-top: 2.4rem;
  margin-bottom: .8rem;
  scroll-margin-top: calc(var(--header-h) + 1.2rem);
}
.prose > p:first-child { color: var(--text-soft); }
.prose h3 { font-size: 1.08rem; margin-top: 1.8rem; margin-bottom: .5rem; scroll-margin-top: calc(var(--header-h) + 1.2rem); }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: var(--text-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent); font-weight: 600; }
.prose strong { color: var(--text); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.2rem; }
.prose th, .prose td { text-align: left; padding: .75rem .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 750; }
.table-wrap { overflow-x: auto; }

/* ---------- 16. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 17. Support widget (launcher, greeting, panel) ----------
   Same shape as the hairio site: our own launcher and in-page panel around the
   hosted chat, instead of the one-line loader's button. Geometry — 56px disc,
   20px offsets, z-index — is copied from the official loader (.sw-fab), so the
   button sits exactly where people expect it across the brands.            */
.help-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fab);
  color: var(--fab-ink);
  cursor: pointer;
  transition: transform .15s ease;
}
.help-fab svg { position: relative; z-index: 1; display: block; width: 30px; height: 30px; }

/* The mark is two overlapping bubbles in one ink. The back one sits lighter,
   the front one is ringed with the button's own colour — without that gap the
   two shapes merge into an unreadable blob at this size. */
.help-mark__back { opacity: .5; }
.help-mark__front {
  stroke: var(--fab);
  stroke-width: 2.2;
  paint-order: stroke;
}

/* Two rings leaving the button one after the other — the ping-ping. The second
   starts mid-cycle, which is what reads as a double beat. */
.help-fab::before,
.help-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none;
  animation: help-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.help-fab::after {
  border-color: var(--violet-300);
  animation-delay: 1.2s;
}

/* Two things at once on the button itself: a shadow that breathes with the
   rings, and a short shiver every few seconds. Both stop on hover — a merely
   paused animation would keep owning `transform` and eat the hover scale. */
.help-fab {
  animation: help-glow 2.4s ease-in-out infinite,
             help-buzz 4s var(--ease) infinite;
}
.help-fab:hover,
.help-fab:focus-visible { animation: none; transform: scale(1.06); }
.help-fab:active { animation: none; transform: scale(.98); }

/* --- the greeting that types itself out above the button --- */
.help-hint {
  position: fixed;
  right: calc(max(20px, env(safe-area-inset-right)) + 6px);
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 56px + 16px);
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  max-width: min(280px, calc(100vw - 44px));
  padding: .7rem .85rem;
  border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  cursor: pointer;
  animation: help-hint-in .45s cubic-bezier(.34, 1.4, .64, 1);
}
.help-hint[hidden] { display: none; }
.help-hint__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
}
.help-hint__avatar img { width: 100%; height: 100%; object-fit: cover; }
.help-hint__text {
  padding-top: .15rem;
  font-size: .93rem;
  line-height: 1.35;
  font-weight: 600;
}
/* Blinking caret while the greeting types itself */
.help-hint__text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  translate: 0 .15em;
  background: var(--accent);
  animation: help-caret 1s steps(1) infinite;
}
.help-hint.is-typed .help-hint__text::after { display: none; }
body.help-open .help-hint { display: none; }

/* --- the in-page chat panel. Desktop: a card above the button.
       Mobile: the whole screen, so the chat gets its own layout. --- */
.help-panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 56px + 14px);
  z-index: 2147483001;
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100vw - 40px));
  height: min(660px, calc(100svh - var(--header-h) - 7rem));
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: 0 40px 90px -30px rgb(11 11 14 / 45%), inset 0 0 0 1px var(--border);
  transform-origin: 100% 100%;
  animation: help-panel-in .26s var(--ease);
}
.help-panel[hidden] { display: none; }

.help-panel__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--bg);
}

/* No chrome of ours around the frame: the chat brings its own header and close
   button, and reports the close through postMessage (see main.js). */
@media (max-width: 640px) {
  .help-panel {
    inset: 0;
    width: 100%;
    height: 100svh;
    border-radius: 0;
  }
}

/* The launcher steps aside while the panel is open: on a phone the panel owns
   the screen, on desktop the button stays but stops calling for attention. */
body.help-open .help-fab { opacity: 0; pointer-events: none; }
@media (min-width: 641px) {
  body.help-open .help-fab { opacity: 1; pointer-events: auto; animation: none; }
  body.help-open .help-fab::before,
  body.help-open .help-fab::after { display: none; }
}

/* ---------- 18. Keyframes ---------- */
@keyframes ring { to { stroke-dashoffset: 92; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@keyframes help-ping {
  0%        { transform: scale(1);   opacity: .8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes help-glow {
  0%, 100% { box-shadow: 0 10px 26px -6px rgb(11 11 14 / 32%); }
  50%      { box-shadow: 0 12px 32px -6px rgb(124 58 237 / 50%); }
}
@keyframes help-hint-in {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes help-caret {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes help-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes help-buzz {
  0%, 74%, 100% { transform: rotate(0);      }
  77%           { transform: rotate(-11deg); }
  80%           { transform: rotate(9deg);   }
  83%           { transform: rotate(-7deg);  }
  86%           { transform: rotate(5deg);   }
  89%           { transform: rotate(-3deg);  }
  92%           { transform: rotate(2deg);   }
}

/* ---------- 19. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  /* The rings and the shiver are pure attention-grabbing — drop them outright
     rather than running them once at 0.001ms. */
  .help-fab { animation: none; }
  .help-fab::before, .help-fab::after { display: none; }
  .help-hint, .help-hint__text::after, .help-panel { animation: none; }
}

@media print {
  .header, .footer, .toc, .btn, .help-fab, .help-hint, .help-panel, .hero__visual { display: none !important; }
  body { color: #000; background: #fff; }
  .prose { max-width: none; padding: 0; }
}
