/* MyHoma — the public site.
 *
 * The page's grammar came from regulusys.com (2026-10-16): a bar, full-bleed
 * film, bands, a round "Discover" button. Its look is MyHoma's own since
 * 2026-10-27 (Marco: "too much of regulusys color the gold … fonts are too
 * heavy … glassmorphic … Emotional Wellbeing"): the app's palette and type
 * (mobile/src/design.ts → brand/palette.json → src/brand.rs, as --c-* and
 * --t-* in every page's head), dark glass, light type, no gold, no wide
 * capitals. The brand layer at the end sets the surfaces; src/brand.rs's
 * tests hold the rules.
 *
 *   1  tokens          6  statement, band     11  footer
 *   2  base            7  split tiles         12  legal
 *   3  header          8  feature             14  motion: reveal, reduced motion
 *   4  discover        9  cards               15  small screens
 *   5  hero / slider  10  star, facts         16  the brand layer
 */

/* 1 ── tokens ──────────────────────────────────────────────────────── */
:root {
  --black: #000;
  --night: #0b0b0b;
  --bar: #141414;
  --white: #fff;
  --ink: #111;
  --grey: #5d5d5d;
  --rule-light: #e3e1dc;
  --rule-dark: rgba(255, 255, 255, .14);
  --muted-dark: rgba(255, 255, 255, .66);
  /* the accent: the brand's warm sand and sage (brand/palette.json, in every
     page's head as --c-*; src/brand.rs) */
  --accent: var(--c-sand);
  --accent-hi: var(--c-linen);
  --accent-lo: var(--c-sage);
  --accent-ink: var(--c-sage-light);
  --accent-grad: linear-gradient(100deg, var(--c-sage) 0%, var(--c-sage-light) 45%, var(--c-sand) 100%);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --bar-h: 40px;
  --gutter: clamp(16px, 4vw, 64px);
  --slide-ms: 8000ms;
}

/* 2 ── base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--black); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--black); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--mid { max-width: 1120px; text-align: center; }

.eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 1.4rem;
}
.sec--dark .eyebrow, .starsec .eyebrow, .tile .eyebrow, .foot .eyebrow { color: var(--accent); }
.sec--light .eyebrow { color: var(--accent-ink); }

.display {
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: .005em;
  text-wrap: balance;
}
.lead {
  max-width: 46rem;
  margin: 2rem auto 0;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.7;
}
.sec--light .lead { color: var(--grey); }
.sec--dark .lead, .starsec .lead { color: var(--muted-dark); }

.sec { position: relative; padding: clamp(88px, 11vw, 168px) 0; }
.sec--light { background: var(--white); color: var(--ink); }
.sec--dark { background: var(--night); color: var(--white); }

/* 3 ── header ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--bar-h);
  background: #181818;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: transform .5s var(--ease), background .4s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  padding: 0 max(24px, var(--gutter));
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__star { height: 25px; width: auto; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); transition: filter .4s, transform .6s var(--ease); }
.brand:hover .brand__star { filter: drop-shadow(0 0 12px rgba(255, 255, 255, .8)); transform: rotate(90deg); }
.brand__word { height: 10px; width: auto; }

.tabs { display: flex; gap: clamp(18px, 3.4vw, 60px); margin-left: clamp(8px, 2vw, 40px); }
.tab {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  padding: 4px 0;
  white-space: nowrap;
  color: rgba(255, 255, 255, .9);
  transition: color .3s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .45s var(--ease);
}
.tab:hover, .tab.is-on { color: var(--white); }
.tab:hover::after, .tab.is-on::after { transform: scaleX(1); }

.nav__end { margin-left: auto; display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav__btn {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  padding: 4px 0;
  color: rgba(255, 255, 255, .9);
  transition: color .3s;
}
.nav__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .45s var(--ease); }
.nav__btn:hover { color: var(--white); }
.nav__btn:hover::after { transform: scaleX(1); }
.nav__menu { display: none; }

/* the panels: the menu and search, full screen, wiping down from the bar and back up */
.panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: #1b1b1b;
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .75s var(--ease-io) .18s, visibility 0s .95s;
}
.panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease-io), visibility 0s; }
.panel__bar {
  flex: none;
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rule-dark);
}
.panel__brand { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--ease); }
.panel.is-open .panel__brand { opacity: 1; transform: none; transition-delay: .35s; }
.panel__close {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .45);
  display: grid;
  place-items: center;
  transform: rotate(-90deg) scale(.6);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .3s, border-color .3s;
}
.panel__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.panel.is-open .panel__close { transform: none; opacity: 1; transition-delay: .3s, .3s, 0s; }
.panel.is-open .panel__close:hover { border-color: var(--accent); transform: rotate(90deg); transition-delay: 0s; }
.panel.is-closing .panel__close { transform: rotate(90deg) scale(.6); opacity: 0; transition-delay: 0s; }

.panel__list { display: flex; flex-direction: column; padding: clamp(16px, 4vh, 48px) var(--gutter) 0; max-width: 1100px; width: 100%; margin: 0 auto; }
.panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.6vh, 26px) 0;
  border-bottom: 1px solid var(--rule-dark);
  font-size: clamp(1.45rem, 6.2vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .3s, transform .3s var(--ease), color .3s;
}
.panel.is-open .panel__link { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease), color .3s; transition-delay: calc(var(--i, 0) * 70ms + .32s), calc(var(--i, 0) * 70ms + .32s), 0s; }
.panel.is-closing .panel__link { opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .35s var(--ease); transition-delay: calc(var(--i, 0) * 30ms); }
.panel__link svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .45s var(--ease); }
.panel__link:hover, .panel__link[aria-current] { color: var(--accent); }
.panel__link:hover svg { transform: translateX(6px); }
.panel__foot { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 32px var(--gutter) 40px; max-width: 1100px; width: 100%; margin: 0 auto; opacity: 0; transition: opacity .3s; }
.panel.is-open .panel__foot { opacity: 1; transition: opacity .6s .75s; }
.panel.is-closing .panel__foot { opacity: 0; transition: opacity .2s; }
.panel__foot a, .panel__foot button { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: rgba(255, 255, 255, .65); transition: color .3s; }
.panel__foot a:last-child { text-transform: none; letter-spacing: .02em; font-size: 14px; }
.panel__foot a:hover, .panel__foot button:hover { color: var(--accent); }

.search { width: 100%; max-width: 1100px; margin: 0 auto; padding: clamp(28px, 6vh, 72px) var(--gutter) 0; opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s; }
.panel.is-open .search { opacity: 1; transform: none; transition: opacity .7s .35s, transform .8s var(--ease) .35s; }
.panel.is-closing .search { opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s; }
.search__label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--accent); margin-bottom: 14px; }
.search__input {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, .35);
  color: var(--white);
  font: inherit;
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 500;
  padding: 6px 0 14px;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
}
.search__input::placeholder { color: rgba(255, 255, 255, .28); }
.search__input:focus { border-bottom-color: var(--accent); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__results { max-width: 1100px; width: 100%; margin: 0 auto; padding: 12px var(--gutter) 48px; }
.search__results li { opacity: 0; transform: translateY(10px); animation: up .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 40ms); }
.search__results a { display: block; padding: 20px 0; border-bottom: 1px solid var(--rule-dark); }
.search__results small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; }
.search__results strong { display: block; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 500; transition: color .3s; }
.search__results span { margin-top: 6px; font-size: .95rem; color: rgba(255, 255, 255, .6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search__results a:hover strong { color: var(--accent); }
.search__results mark { background: none; color: var(--accent-hi); }
.search__empty { padding: 24px 0; color: rgba(255, 255, 255, .55); }

/* the page behind softens while a panel moves */
main, .foot, .nav { transition: filter .6s var(--ease-io), transform .5s var(--ease); }
body.has-panel main, body.has-panel .foot, body.has-panel .nav { filter: blur(6px); }

/* 4 ── discover ────────────────────────────────────────────────────── */
.discover {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 2.6rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
}
.discover__btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color .4s, color .4s;
}
.discover__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  transform: scale(0);
  transition: transform .5s var(--ease);
}
.discover__btn svg { position: relative; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.discover:hover .discover__btn, .tile:hover .discover__btn { border-color: var(--accent); color: var(--black); }
.discover:hover .discover__btn::before, .tile:hover .discover__btn::before { transform: scale(1); }
.discover:hover .discover__btn svg, .tile:hover .discover__btn svg { transform: translateX(3px); }

/* 5 ── hero / slider ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
.hero--single { height: 86vh; height: 86svh; }
.hero--slider { touch-action: pan-y; }   /* the page scrolls up and down; sideways is the slider's */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease-io), visibility 0s 1.4s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease-io), visibility 0s; z-index: 1; }
.slide__media, .slide__media .m, .slide__media .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide__media .m { object-fit: cover; object-position: 50% 22%; transform: scale(1.06); transform-origin: 50% 45%; }
.slide.is-on .slide__media .m { animation: drift calc(var(--slide-ms) + 2000ms) linear forwards; }
.hero--single .slide__media .m { animation: drift 14s var(--ease) forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 32%, rgba(0, 0, 0, 0) 55%);
}
.slide__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(92px, 13vh, 150px);
  text-align: center;
}
.hero--single .slide__copy { bottom: clamp(64px, 11vh, 120px); }
.slide__eyebrow {
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  font-weight: 600;
  margin-bottom: .9rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
}
.slide__title {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .005em;
  text-wrap: balance;
}
.slide__lead { max-width: 40rem; margin: 1.4rem auto 0; color: rgba(255, 255, 255, .8); }
.slide .discover { opacity: 0; transform: translateY(14px); margin-top: 1.9rem; gap: 14px; font-size: 13px; }
.slide .discover__btn { width: 42px; height: 42px; }
.slide .discover__btn svg { width: 18px; height: 18px; }
.rise { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; }
.rise > span { display: inline-block; transform: translateY(108%); }
.slide.is-on .slide__eyebrow { animation: up .9s var(--ease) .25s forwards; }
.slide.is-on .rise > span { animation: rise 1.15s var(--ease) .38s forwards; }
.slide.is-on .discover { animation: up .9s var(--ease) .75s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes up { to { opacity: 1; transform: none; } }

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(22px, 4vh, 40px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 28px; height: 28px; display: grid; place-items: center; position: relative; }
.dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .7); transition: transform .4s var(--ease), opacity .4s; }
.dot svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg) scale(.4); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.dot circle { fill: none; stroke-width: 1.6; }
.dot__track { stroke: rgba(255, 255, 255, .35); }
.dot__run { stroke: var(--accent); stroke-dasharray: 100.6; stroke-dashoffset: 100.6; stroke-linecap: round; }
.dot.is-on::before { transform: scale(0); opacity: 0; }
.dot.is-on svg { transform: rotate(-90deg) scale(1); opacity: 1; }
.dot.is-on .dot__run { animation: run var(--slide-ms) linear forwards; }
.hero.is-paused .dot__run { animation-play-state: paused; }
.dot:hover::before { background: var(--white); transform: scale(1.4); }
@keyframes run { to { stroke-dashoffset: 0; } }

.hero__pause {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(20px, 3.6vh, 38px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color .3s, background .3s;
}
.hero__pause span { width: 2px; height: 11px; background: var(--white); transition: all .3s; }
.hero__pause:hover { border-color: var(--accent); background: rgba(0, 0, 0, .3); }
.hero.is-paused .hero__pause span:first-child { width: 0; height: 0; background: none; border-left: 9px solid var(--white); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.hero.is-paused .hero__pause span:last-child { display: none; }

.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 1.5px; height: 46px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__cue::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--accent); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* the drawn backdrops: Regulus over stars, and the racing streaks */
.art { position: relative; background: radial-gradient(120% 90% at 50% 40%, #121212 0%, #000 70%); overflow: hidden; }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.art__star {
  position: absolute;
  left: 50%;
  top: 44%;
  height: min(46%, 380px);
  width: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, .55)) drop-shadow(0 0 60px rgba(217, 196, 163, .35));
  animation: twinkle 5s ease-in-out infinite;
}
.art__flare {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 140%;
  height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, .05) 70%, transparent);
  filter: blur(.6px);
  animation: flare 5s ease-in-out infinite;
}
.art--speed .art__star { top: 46%; height: min(30%, 240px); }
.art--speed .art__flare { top: 46%; }
@keyframes twinkle { 0%, 100% { filter: drop-shadow(0 0 14px rgba(255, 255, 255, .45)) drop-shadow(0 0 50px rgba(217, 196, 163, .25)); } 50% { filter: drop-shadow(0 0 26px rgba(255, 255, 255, .85)) drop-shadow(0 0 90px rgba(217, 196, 163, .5)); } }
@keyframes flare { 0%, 100% { opacity: .45; transform: translate(-50%, -50%) scaleX(.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.05); } }

/* 6 ── statement, band ─────────────────────────────────────────────── */
.statement .discover, .band .discover { margin-top: 2.8rem; }
.band { text-align: center; border-top: 1px solid var(--rule-light); }
.sec--dark.band { border-top-color: var(--rule-dark); }
.display--band { font-size: clamp(2.2rem, 6vw, 5.4rem); }

/* 7 ── split tiles ─────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--black); }
.tile {
  position: relative;
  display: block;
  height: clamp(540px, 92vh, 980px);
  overflow: hidden;
  isolation: isolate;
  background: #1c1c1c;
}
.tile__media, .tile__media .m, .tile__media .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__media .m { object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease); }
.tile:hover .tile__media .m { transform: scale(1.08); }
.tile__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .05) 100%); transition: background .6s; }
.tile:hover .tile__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .12) 100%); }
.tile__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 9vh, 110px); text-align: center; }
.display--tile { font-size: clamp(2.4rem, 5.4vw, 5rem); }
.tile .discover { margin-top: 2rem; }

/* 8 ── feature ─────────────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 88vh; }
.feature__media { position: relative; overflow: hidden; min-height: 520px; background: #111; }
.feature__media .m, .feature__media .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__media .m { object-fit: cover; }
/* portrait films (the coach, Homa) are taller than their box: keep the crop
   below the head, never through it */
.feature__media video.m { object-position: 50% 6%; }
.feature__media .m.m--contain { object-fit: contain; object-position: 50% 50%; background: #0b0e12; padding: 5% 0; }
.feature__copy { align-self: center; padding: clamp(64px, 8vw, 140px) clamp(24px, 7vw, 128px); }
.feature__copy p:not(.eyebrow) { margin-top: 1.4rem; max-width: 34rem; line-height: 1.75; }
.sec--light .feature__copy p:not(.eyebrow) { color: var(--grey); }
.sec--dark .feature__copy p:not(.eyebrow) { color: var(--muted-dark); }
.feature__copy .display { margin-bottom: .8rem; }
.display--feature { font-size: clamp(2rem, 4vw, 3.8rem); }
.feature--reverse .feature__media { order: 2; }

/* 9 ── cards ───────────────────────────────────────────────────────── */
.cards__head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.cards__head .lead { margin-left: 0; }
.cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: card; }
.cards__grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  padding: 34px 32px 44px 0;
  border-top: 1px solid var(--rule-light);
}
.sec--dark .card { border-top-color: var(--rule-dark); }
.card::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 2px;
  width: 100%;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card__n { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.sec--dark .card__n { color: var(--accent); }
.card__t { margin: 22px 0 12px; font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 600; letter-spacing: .02em; line-height: 1.2; }
.card p { font-size: 1rem; line-height: 1.65; }
.sec--light .card p { color: var(--grey); }
.sec--dark .card p { color: var(--muted-dark); }

/* 10 ── star, facts ────────────────────────────────────────────────── */
.starsec {
  position: relative;
  min-height: 112vh;
  padding: clamp(46vh, 52vh, 560px) 0 clamp(88px, 11vw, 160px);
  background: radial-gradient(90% 60% at 50% 26%, #15130f 0%, #050505 55%, #000 100%);
  overflow: hidden;
  isolation: isolate;
}
.starsec__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.starsec__regulus { position: absolute; left: 50%; top: clamp(70px, 9vh, 120px); height: clamp(220px, 34vh, 360px); aspect-ratio: 11 / 20; transform: translateX(-50%); }
.starsec__regulus img { position: relative; height: 100%; width: auto; filter: drop-shadow(0 0 22px rgba(255, 255, 255, .6)); animation: twinkle 6s ease-in-out infinite; }
.starsec__halo {
  position: absolute;
  left: 50%; top: 50%;
  width: 520%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 220, .2) 0%, rgba(217, 196, 163, .09) 22%, rgba(217, 196, 163, 0) 60%);
  animation: breathe 6s ease-in-out infinite;
}
.starsec__flare { position: absolute; left: 50%; top: 50%; width: 1200%; height: 1.5px; transform: translate(-50%, -50%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5) 50%, transparent); animation: flare 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .75; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
.starsec__copy { position: relative; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule-dark); }
.stat { padding: 34px 12px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--rule-dark); }
.stat__v {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--accent-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.stat__u { font-size: 13px; font-weight: 600; letter-spacing: .16em; }
.stat__l { font-size: .95rem; color: var(--muted-dark); }

.factsec__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.facts__row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule-light); }
.sec--dark .facts__row { border-bottom-color: var(--rule-dark); }
.facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--grey); padding-top: 4px; }
.sec--dark .facts dt { color: rgba(255, 255, 255, .5); }
.facts dd { font-size: 1.1rem; }
.facts dd a { border-bottom: 1px solid var(--accent); transition: color .3s; }
.facts dd a:hover { color: var(--accent); }

/* 11 ── footer ─────────────────────────────────────────────────────── */
.foot { background: var(--bar); color: var(--white); padding: clamp(72px, 8vw, 120px) 0 36px; }
.foot__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--rule-dark); }
.foot__brand img { width: clamp(220px, 24vw, 340px); height: auto; }
.foot__line { max-width: 30rem; color: var(--muted-dark); font-size: .98rem; }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 52px 0; }
.foot .eyebrow { font-size: 12.5px; letter-spacing: .16em; margin-bottom: 18px; }
.foot__col li { margin: 0 0 10px; }
.foot__col a { color: rgba(255, 255, 255, .78); transition: color .3s; }
.foot__col a:hover { color: var(--accent); }
.foot__addr { color: rgba(255, 255, 255, .55); font-size: .95rem; }
.foot__safety { font-size: .88rem; line-height: 1.6; color: rgba(255, 255, 255, .55); padding: 24px 0; border-top: 1px solid var(--rule-dark); max-width: 76rem; }
.foot__end { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.foot__badge { letter-spacing: .14em; }

/* 12 ── legal ──────────────────────────────────────────────────────── */
.page .legal { padding-top: calc(var(--bar-h) + clamp(56px, 7vw, 110px)); }
.legal .wrap { max-width: 860px; }
.display--legal { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.legal__meta { margin: 1.6rem 0 2.4rem; color: var(--grey); font-size: .95rem; }
.legal p, .legal li { color: #333; line-height: 1.75; }
.legal p + p { margin-top: 1rem; }
.legal__pre { padding-bottom: 2rem; border-bottom: 1px solid var(--rule-light); }
.legal__toc { margin: 2rem 0 3rem; }
.legal__toc ol { columns: 2; column-gap: 40px; }
.legal__toc li { margin: 0 0 8px; break-inside: avoid; }
.legal__toc a { font-size: .92rem; color: var(--accent-ink); }
.legal__toc a:hover { text-decoration: underline; }
.legal__sec { padding: 2.2rem 0 1rem; border-top: 1px solid var(--rule-light); }
.legal__h { font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.2rem; }
.bullets { margin: .8rem 0 1rem 1.2rem; list-style: disc; }
.bullets li { margin: 0 0 .4rem; }

/* 14 ── motion: reveal on scroll; reduced motion ───────────────────── */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .slide__media .m { transform: none !important; }
}

/* 15 ── small screens ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tabs, .nav__login { display: none; }
  .nav__in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .nav__menu { display: block; justify-self: start; }
  .nav .brand { justify-self: center; }
  .nav__end { justify-self: end; margin-left: 0; }
  .cards__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .split, .feature { grid-template-columns: 1fr; }
  .tile { height: 78svh; min-height: 480px; }
  .feature { min-height: 0; }
  .feature__media { min-height: 62svh; }
  .feature--reverse .feature__media { order: 0; }
  .cards__grid, .cards__grid--4 { grid-template-columns: 1fr; }
  .card { padding-right: 0; }
  .factsec__in { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--rule-dark); padding-bottom: 30px; }
  .stat { padding-bottom: 30px; }
  .foot__top { flex-direction: column; align-items: flex-start; }
  .legal__toc ol { columns: 1; }
  .hero__pause { width: 40px; height: 40px; }
  .discover__btn { width: 46px; height: 46px; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .slide__title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .display { font-size: clamp(1.75rem, 8.4vw, 2.4rem); }
  .hero__dots { left: var(--gutter); transform: none; }
}

/* legibility over bright footage */
.slide__copy, .tile__copy { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.discover__btn { text-shadow: none; }

/* iOS draws its own play button over a video it will not autoplay (Low Power Mode). The films are backgrounds,
   never players: hide the native overlay so a still poster shows instead, and site.js starts them on first touch. */
video.m::-webkit-media-controls,
video.m::-webkit-media-controls-panel,
video.m::-webkit-media-controls-start-playback-button,
video.m::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; }
video.m { pointer-events: none; }

/* The 3D car ─────────────────────────────────────────────────────── */
.model3d__head { text-align: center; }
.model3d__stage {
  position: relative; aspect-ratio: 16 / 9; max-width: 1100px; margin: 2.2rem auto 0;
  border: 1px solid var(--rule-dark);
  background: radial-gradient(70% 60% at 50% 55%, #26242a 0%, #111013 60%, #070708 100%);
  touch-action: pan-y; cursor: grab; overflow: hidden;
}
.model3d__stage:active { cursor: grabbing; }
.model3d__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.model3d__stage.is-ready canvas { opacity: 1; }
.model3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .8s ease; }
.model3d__stage.is-ready .model3d__poster { opacity: 0; }
.model3d__load { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--load, 0) * 100%); background: var(--accent); transition: width .2s linear, opacity .6s ease; }
.model3d__stage.is-ready .model3d__load { opacity: 0; }
.model3d__hint {
  position: absolute; left: 0; right: 0; bottom: 1.4rem; margin: 0; text-align: center;
  font-size: .72rem; letter-spacing: .22em; color: rgba(255, 255, 255, .55);
  pointer-events: none; transition: opacity .6s ease;
}
.model3d__stage.is-touched .model3d__hint, .model3d__stage.is-failed .model3d__hint { opacity: 0; }
@media (max-width: 760px) { .model3d__stage { aspect-ratio: 4 / 3; margin-top: 1.6rem; } }

/* ══ MyHoma's parts ══════════════════════════════════════════════════
 * What follows is what myhoma's content needs on top of the page's grammar: its
 * logo, her portrait film framed from the top, the conversation, the tags,
 * the store buttons, the plan, the safety notice, and the inner pages'
 * older markup dressed in the same tokens.
 */

/* the logo in the bar, the panels and the footer */
.brand__logo { height: 22px; width: auto; transition: filter .4s; }
.brand:hover .brand__logo { filter: drop-shadow(0 0 10px rgba(217, 196, 163, .55)); }
.foot__brand img { width: clamp(200px, 20vw, 300px); }

/* her portrait clip fills its box anchored at the top: never her head cut
   (memory/never-cut-her-head.md) */
.m.m--top, .feature__media video.m.m--top, .slide__media .m.m--top { object-position: 50% 0; }
.tile__media .m.m--top { transform-origin: 50% 0; }

/* the star section without the Regulus mark */
.starsec--plain { min-height: 0; padding: clamp(140px, 22vh, 240px) 0 clamp(120px, 16vh, 180px); }
.starsec .discover { margin-top: 2.8rem; }

/* the conversation on its feature panel: each turn under its speaker */
.thread { margin: 0 0 1.8rem; }
.turn { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule-dark); }
.turn:last-child { border-bottom: 1px solid var(--rule-dark); }
.sec--light .turn { border-color: var(--rule-light); }
.turn small { padding-top: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.turn--homa small { color: var(--accent); }
.feature__copy .turn p { margin-top: 0; font-size: 1.04rem; line-height: 1.55; }
.turn--you p { color: var(--muted-dark); }

/* what people talk about: tags in the bar's capitals */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 2.4rem auto 0; }
.tags li { padding: 9px 16px; border: 1px solid var(--rule-light); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; color: var(--ink); transition: border-color .3s, color .3s; }
.sec--dark .tags li { border-color: var(--rule-dark); color: var(--white); }
.tags li:hover { border-color: var(--accent); color: var(--accent-ink); }

/* the app in both stores, under the band */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2rem; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid currentColor; transition: border-color .3s, color .3s; }
.store svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store .store__fill { fill: currentColor; stroke: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store__txt small { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; opacity: .65; }
.store__txt b { font-size: 14px; font-weight: 600; }
a.store:hover { border-color: var(--accent); color: var(--accent); }
.store.is-soon { opacity: .5; }

/* the plan: Annual | Monthly over one card (no script: radios) */
.plans .lead { margin-bottom: clamp(36px, 5vw, 64px); }
.pricing { position: relative; max-width: 560px; margin: 0 auto; text-align: left; }
.pricing__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pricing__switch { display: flex; justify-content: center; gap: 36px; margin: 0 auto 28px; }
.pricing__switch label { position: relative; padding: 6px 0; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: #8d8a84; transition: color .3s; }
.pricing__switch label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .45s var(--ease); }
#period-year:checked ~ .pricing__switch label[for="period-year"],
#period-month:checked ~ .pricing__switch label[for="period-month"] { color: var(--ink); }
#period-year:checked ~ .pricing__switch label[for="period-year"]::after,
#period-month:checked ~ .pricing__switch label[for="period-month"]::after { transform: scaleX(1); }
#period-year:focus-visible ~ .pricing__switch label[for="period-year"],
#period-month:focus-visible ~ .pricing__switch label[for="period-month"] { outline: 2px solid var(--accent); outline-offset: 4px; }
.plan { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 40px clamp(24px, 4vw, 48px) 44px; border: 1px solid var(--rule-light); background: #faf9f6; }
.plan::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent-grad); }
.plan .card__t { margin: 0; }
.plan__tag { color: var(--grey); }
.plan__price { margin: 1rem 0 .2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem; }
.plan__price b { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price s { text-decoration: none; color: var(--grey); font-size: 1rem; }
.plan__note { flex-basis: 100%; margin-top: .45rem; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent-ink); }
.plan__price--month { display: none; }
#period-month:checked ~ .pricing__cards .plan__price--year { display: none; }
#period-month:checked ~ .pricing__cards .plan__price--month { display: flex; }
.plan__list { display: grid; gap: .55rem; margin: 1rem 0 1.6rem; }
.plan__list li { position: relative; padding-left: 1.6rem; font-size: .98rem; line-height: 1.5; color: #333; }
.plan__list li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .55rem; height: .3rem; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.btn-accent { display: inline-block; background: var(--accent-grad); background-size: 200% 100%; color: var(--black); font-size: 13px; font-weight: 600; letter-spacing: .14em; padding: 18px 34px; transition: background-position .8s var(--ease); }
.btn-accent:hover { background-position: 100% 0; }
.plan__cta { margin-top: auto; text-align: center; }
.pricing__fine { max-width: 680px; margin: 22px auto 0; text-align: center; color: var(--grey); font-size: .88rem; line-height: 1.6; }

/* THE SAFETY NOTICE */
.safety { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule-light); }
.safety__box { max-width: 76rem; padding-left: 22px; border-left: 3px solid var(--accent); color: #333; font-size: 1rem; line-height: 1.75; }

/* ── the inner pages (About, Safety, Support, legal) ──────────────────
   Their markup predates the clone; these tokens and rules dress it in the
   same look: black ground, the same type and accent. */
:root {
  --bg: #000; --bg-2: #141414; --bg-3: #1c1c1c;
  --ink: #fff; --ink-2: rgba(255, 255, 255, .72); --ink-3: rgba(255, 255, 255, .5);
  --accent-2: var(--accent-hi); --line: rgba(255, 255, 255, .16); --line-soft: rgba(255, 255, 255, .09);
  --signal: var(--accent-hi); --serif: var(--font); --sans: var(--font); --mono: var(--font);
  --nav-h: var(--bar-h); --r: 0px;
}
.sec--light { --ink: var(--ink-light, #111); }
:root { --ink-light: #111; }
.sec--light #period-year:checked ~ .pricing__switch label[for="period-year"],
.sec--light #period-month:checked ~ .pricing__switch label[for="period-month"] { color: #111; }
body.page { padding-top: var(--bar-h); }
.pmain .sec { padding: clamp(64px, 8vw, 120px) 0; }
.pmain .wrap { max-width: 1120px; }
.mono { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.d-1, .d-2, .d-3 { font-weight: 500; letter-spacing: .005em; line-height: 1.04; text-wrap: balance; }
.d-1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); margin: .7rem 0 0; }
.d-2 { font-size: clamp(1.9rem, 4.4vw, 3.6rem); margin: .7rem 0 0; }
.d-3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: .6rem 0 0; }
.d-4 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: .02em; line-height: 1.25; margin: .55rem 0 .5rem; }
.d-1 em, .d-2 em { font-style: normal; color: var(--accent); }
.pmain .lead { margin: 1.2rem 0 0; color: var(--ink-2); }
.pmain .center .lead, .pmain .lead--center, .phero--center .lead { margin-inline: auto; }
.sm { font-size: .95rem; line-height: 1.65; color: var(--ink-2); margin: 0; }
.panel:not([id]) { position: relative; inset: auto; z-index: auto; display: block; clip-path: none; visibility: visible; overflow: visible; background: none; color: inherit; transition: none; border-top: 1px solid var(--line); padding: 28px 0 30px; }
.panel:not([id]) .ic { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--accent); margin-bottom: .35rem; }
.panel:not([id]) .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.grid { display: grid; gap: 0 32px; }
.btn-ghost { display: inline-block; border: 1.5px solid currentColor; font-size: 13px; font-weight: 600; letter-spacing: .14em; padding: 16px 30px; transition: border-color .3s, color .3s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.wrap--narrow { max-width: 780px; }
.center { text-align: center; }

/* the film, full size (About's "Watch") */
.filmbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .92); }
.filmbox[hidden] { display: none; }
.filmbox video { width: 100%; max-width: 1100px; max-height: 84vh; background: #000; }

@media (max-width: 860px) {
  .turn { grid-template-columns: 5.4rem 1fr; }
}

/* the inner pages' own parts (About's film and figure, FAQ, legal) */
/* the film on About */
.film{margin:1.8rem 0 0;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);background:#000}
.film video{width:100%;aspect-ratio:16/9;object-fit:cover}
.film__cap{padding:10px 14px;color:var(--ink-3);font-size:.64rem}

/* the 21-day figure on About: counts down to 0 as the bar fills, then the
   "Homa answers now." line lands (site.js) */
.grid-2{display:grid;grid-template-columns:1fr;gap:2rem;align-items:center}
.figure{background:var(--bg);border:1px solid var(--line);border-radius:26px;padding:1.7rem 1.5rem}
.figure__lbl{color:var(--ink-3)}
.figure .n{display:flex;align-items:baseline;gap:.4rem;margin-top:.55rem;color:var(--accent);
  font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:500;letter-spacing:-.02em;
  font-size:clamp(2.6rem,10.5vw,3.9rem);line-height:1}
.figure .n u{text-decoration:none;font-size:.3em;letter-spacing:.12em;color:var(--ink-3)}
.figure .bar{height:2px;border-radius:2px;background:rgba(226,232,240,.12);margin:1rem 0 0;overflow:hidden}
.figure .bar i{display:block;height:100%;border-radius:2px;background:var(--accent);width:calc(var(--msp,0)*100%)}
.figure .live{display:flex;align-items:center;gap:.55rem;margin:1.1rem 0 0;opacity:0;transform:translateY(8px);
  transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1)}
.figure.done .live{opacity:1;transform:none}
.figure .live b{width:7px;height:7px;border-radius:50%;background:var(--signal);flex:none;animation:blip 2.4s ease-in-out infinite}
.figure .live span{font-family:var(--serif);font-style:italic;font-size:1.22rem;color:var(--ink)}
.figure__foot{margin-top:1.4rem;padding-top:1.1rem;border-top:1px solid var(--line-soft)}
.figure__foot .mono{color:var(--ink-3)}
@keyframes blip{0%,100%{box-shadow:0 0 0 0 rgba(56,189,248,.45)}50%{box-shadow:0 0 0 6px rgba(56,189,248,0)}}

/* Tech: FAQ + emergency */
.faq{padding:1.2rem 0;border-top:1px solid var(--line-soft)}
.faq:first-of-type{margin-top:1.6rem}
.faq .d-4{margin-top:0}
.alert{margin-top:2rem;border:1px solid var(--line);border-radius:var(--r);padding:26px 24px;background:var(--bg-2)}
.alert .d-3{margin-top:.5rem}
.alert .sm{margin-top:.6rem}
.cells{display:grid;grid-template-columns:1fr;gap:12px;margin-top:1.2rem}
.cell{border:1px solid var(--line-soft);border-radius:16px;padding:16px}
.cell strong{display:block;font-family:var(--serif);font-size:1.3rem;font-weight:400;margin:.35rem 0}

/* Legal */
.legal .d-2{margin-top:.5rem}
.legal__meta{margin-top:1rem}
.legal__pre{margin-top:1.4rem}
.legal__pre p,.legal__sec p{font-size:.98rem;line-height:1.7;color:var(--ink-2);margin:0 0 1rem}
.legal__toc{margin:1.6rem 0 2.2rem;border:1px solid var(--line-soft);border-radius:16px;padding:16px 20px}
.legal__toc ol{padding-left:1.2rem;list-style:decimal;columns:1;font-size:.9rem;line-height:1.7}
.legal__toc a{color:var(--accent)}
.legal__sec{padding-top:1.6rem;margin-top:1.2rem;border-top:1px solid var(--line-soft)}
.legal__sec .d-3{font-size:1.35rem;margin-bottom:.8rem}
.legal__sec b,.legal__pre b{color:var(--ink);font-weight:600}

@media (min-width:600px){
  .cells{grid-template-columns:1fr 1fr}
  .tiles{grid-template-columns:repeat(4,1fr)}
  .legal__toc ol{columns:2;column-gap:2rem}
}
@media (min-width:860px){
  .grid-2{grid-template-columns:1.1fr .9fr;gap:3rem}
  .grid--3{grid-template-columns:repeat(3,1fr)}
}


/* ── the inner pages on white, under a film hero ──────────────────────
   Marco, 2026-10-16: every inner page opens with a hero and reads on a white
   background, as regulusys.com's do (pages.rs/safety.rs/privacy.rs
   `rx::page_hero`). The tokens above are re-set for white; the hero and the
   footer keep the black. */
.pmain {
  --bg: #fff; --bg-2: #f6f5f2; --bg-3: #efede8;
  --ink: #111; --ink-2: #474747; --ink-3: #6b6b6b;
  --line: rgba(0, 0, 0, .14); --line-soft: rgba(0, 0, 0, .09);
  background: var(--white);
  color: var(--ink);
}
.pmain .hero { color: var(--white); }
.hero--page { height: 72vh; height: 72svh; min-height: 480px; }
/* a film of her grows from the top edge, so her head never leaves the frame */
.slide__media .m.m--top { transform-origin: 50% 0; }
.pmain .phero { padding-bottom: 0; }
.pmain .phero .lead { max-width: 52rem; }
.pmain .mono, .pmain .legal__toc a, .pmain .d-1 em, .pmain .d-2 em,
.pmain .panel:not([id]) .ic, .pmain .figure .n { color: var(--accent-ink); }
.pmain .legal__toc ol { list-style: none; padding-left: 0; }
.pmain .legal a:not(.btn-ghost), .pmain .safety a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.pmain .legal__toc a { text-decoration: none; }
.pmain .legal__toc a:hover { text-decoration: underline; }
.pmain .btn-ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.pmain .figure .bar { background: rgba(0, 0, 0, .08); }
.pmain .figure .bar i { background: var(--accent-ink); }
.pmain .alert { background: var(--bg-2); }
.pmain .safety { border-top: 0; }
.pmain .safety__now { margin-top: 2rem; padding: 26px 24px; background: var(--bg-2); border-left: 3px solid var(--accent-ink); }
.pmain .safety__now { margin-bottom: 2.4rem; }
.pmain .safety .d-3 { margin-top: 2.4rem; margin-bottom: .6rem; }
.pmain .phero { padding-top: clamp(48px, 6vw, 88px); }

/* 16 ── the brand layer ───────────────────────────────────────────────
   MyHoma's own surfaces over the grammar above (2026-10-27): the app's
   LOOK (mobile/src/design.ts). Night and dusk grounds with a soft wash of
   sage and sand, glass with a hairline edge, light type, one solid light
   pill for the primary action. */
:root {
  --black: var(--c-night);
  --night: var(--c-night);
  --bar: rgba(15, 23, 42, .62);
  --white: #fff;
  --ink: #fff;
  --ink-light: #fff;
  --grey: rgba(255, 255, 255, .66);
  --rule-light: rgba(255, 255, 255, .12);
  --rule-dark: rgba(255, 255, 255, .12);
  --muted-dark: rgba(255, 255, 255, .7);
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .1);
  --hairline: rgba(255, 255, 255, .13);
  --sheen: rgba(255, 255, 255, .2);
  --primary: #F4F1EA;
  --on-primary: var(--c-ink);
  --soft: rgba(255, 255, 255, .72);
  --faint: rgba(255, 255, 255, .5);
  --r-card: 24px;
  --r-panel: 28px;
  --bar-h: 58px;
}
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.005em;
  background:
    radial-gradient(110% 70% at 0% 0%, rgba(94, 156, 138, .16), transparent 60%),
    radial-gradient(90% 60% at 100% 30%, rgba(217, 196, 163, .08), transparent 60%),
    radial-gradient(100% 80% at 50% 100%, rgba(27, 38, 56, .9), transparent 70%),
    var(--c-night);
  background-attachment: fixed;
}
:focus-visible { outline-color: var(--c-sage-light); }
::selection { background: var(--c-sage-light); color: var(--c-ink); }
.skip { background: var(--primary); color: var(--on-primary); border-radius: 999px; }

/* type: the app's scale, light and tight */
.t-title { font-size: var(--t-title-size); line-height: var(--t-title-line); font-weight: var(--t-title-weight); letter-spacing: var(--t-title-tracking); }
.t-heading { font-size: var(--t-heading-size); line-height: var(--t-heading-line); font-weight: var(--t-heading-weight); letter-spacing: var(--t-heading-tracking); }
.t-body { font-size: var(--t-body-size); line-height: var(--t-body-line); font-weight: var(--t-body-weight); letter-spacing: var(--t-body-tracking); color: var(--soft); }
.t-small { font-size: var(--t-small-size); line-height: var(--t-small-line); font-weight: var(--t-small-weight); color: var(--faint); }
.t-label { font-size: var(--t-label-size); line-height: var(--t-label-line); font-weight: var(--t-label-weight); letter-spacing: var(--t-label-tracking); }
.caps { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-sage-light); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .01em; margin-bottom: 1rem; }
.sec--dark .eyebrow, .starsec .eyebrow, .tile .eyebrow, .foot .eyebrow, .sec--light .eyebrow { color: var(--c-sage-light); }
.display, .slide__title, .d-1, .d-2, .d-3 { font-weight: 500; letter-spacing: -.022em; line-height: 1.1; }
.display { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.slide__title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
.display--band { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.display--tile { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.display--feature { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.display--legal { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.d-1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.d-2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.d-3 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.012em; }
.d-4, .card__t, .legal__h { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.d-1 em, .d-2 em { color: var(--c-sage-light); }
.lead, .pmain .lead { font-size: clamp(1rem, 1.15vw, 1.1rem); color: var(--soft); }
.sec--light .lead, .sec--dark .lead, .starsec .lead { color: var(--soft); }
/* the labels that were wide capitals: plain, quiet, small */
.tab, .nav__btn, .discover, .panel__foot a, .panel__foot button, .search__label, .search__results small,
.card__n, .stat__u, .facts dt, .foot .eyebrow, .foot__badge, .turn small, .tags li, .store__txt small,
.pricing__switch label, .plan__note, .btn-accent, .btn-ghost, .mono, .model3d__hint {
  letter-spacing: 0;
  font-weight: 500;
}
.mono, .card__n, .facts dt, .turn small, .store__txt small, .plan__note, .search__label, .search__results small { font-size: 12.5px; color: var(--c-sage-light); }
.panel__link, .search__results strong, .search__input { font-weight: 500; letter-spacing: -.02em; }
.panel__link { font-size: clamp(1.35rem, 4.4vw, 2.2rem); }
.stat__v, .plan__price b { font-weight: 500; letter-spacing: -.03em; }
.stat__v { font-size: clamp(2.4rem, 5vw, 4rem); }

/* the bar: glass, the lockup, quiet tabs, one light pill */
.nav {
  background: var(--bar);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.brand__lockup { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.brand__mark { width: 22px; height: 22px; color: var(--c-sage-light); flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-1px) scale(1.04); }
.brand__word { font-size: 18px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.foot__brand .brand__mark { width: 34px; height: 34px; }
.foot__brand .brand__word { font-size: 30px; }
.tab, .nav__btn { font-size: 14px; color: var(--soft); }
.tab:hover, .tab.is-on, .nav__btn:hover { color: #fff; }
.tab::after, .nav__btn::after { height: 1.5px; bottom: -6px; background: var(--c-sage-light); border-radius: 2px; }
.nav__login { padding: 8px 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; }
.nav__login::after { display: none; }
.nav__login:hover { color: var(--on-primary); background: #fff; }
.panel { background: rgba(15, 23, 42, .9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.panel__close { border: 1px solid var(--hairline); background: var(--glass); }
.panel__link:hover, .panel__link[aria-current], .panel__foot a:hover, .panel__foot button:hover, .search__results a:hover strong { color: var(--c-sage-light); }
.search__results mark { color: var(--c-sand); }

/* glass, and the buttons */
.glass, .card, .plan, .alert, .cell, .legal__toc, .figure, .pmain .safety__now, .safety__box {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 var(--sheen), 0 18px 50px rgba(0, 0, 0, .22);
}
.btn, .btn-accent, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.btn--primary, .btn-accent { background: var(--primary); color: var(--on-primary); border: 0; }
.btn--primary:hover, .btn-accent:hover { background: #fff; transform: translateY(-1px); }
.btn--glass, .btn-ghost { background: var(--glass-strong); color: #fff; border: 1px solid var(--hairline); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn--glass:hover, .btn-ghost:hover, .pmain .btn-ghost:hover { border-color: var(--c-sage-light); color: #fff; }
.discover { font-size: 14px; }
.discover__btn { border: 1px solid var(--hairline); background: var(--glass); }
.discover__btn::before { background: var(--primary); }
.discover:hover .discover__btn, .tile:hover .discover__btn { border-color: var(--primary); color: var(--on-primary); }

/* the grounds: night and dusk, the wash showing through */
.sec--light, .sec--dark { background: transparent; color: #fff; }
.sec--light #period-year:checked ~ .pricing__switch label[for="period-year"],
.sec--light #period-month:checked ~ .pricing__switch label[for="period-month"],
#period-year:checked ~ .pricing__switch label[for="period-year"],
#period-month:checked ~ .pricing__switch label[for="period-month"] { color: #fff; }
.pricing__switch label { color: var(--faint); }
.pricing__switch label::after { background: var(--c-sage-light); }
.hero, .split { background: var(--c-night); }
.tile, .feature__media { background: var(--c-dusk); }
.feature__media .m.m--contain { background: var(--c-dusk); }
.starsec { background: radial-gradient(90% 60% at 50% 26%, rgba(94, 156, 138, .14) 0%, rgba(15, 23, 42, 0) 60%), var(--c-night); }
.card { padding: 28px 26px 30px; border-top: 1px solid var(--hairline); }
.cards__grid { gap: 16px; }
.card::before { display: none; }
.plan { padding: 36px clamp(22px, 4vw, 40px) 38px; }
.plan::before { display: none; }
.plan__list li, .legal p, .legal li, .safety__box { color: var(--soft); }
.plan__list li::before { border-color: var(--c-sage-light); }
.plan__price s { color: var(--faint); }
.tags li { border: 1px solid var(--hairline); border-radius: 999px; background: var(--glass); color: #fff; font-size: 13.5px; }
.sec--dark .tags li { border-color: var(--hairline); }
.tags li:hover { border-color: var(--c-sage-light); color: #fff; }
.store { border: 1px solid var(--hairline); border-radius: 14px; background: var(--glass); }
a.store:hover { border-color: var(--c-sage-light); color: #fff; }
.safety__box { padding: 22px 24px; border-left: 1px solid var(--hairline); }
.foot { background: rgba(255, 255, 255, .02); border-top: 1px solid var(--hairline); }
.foot__col a:hover, .facts dd a:hover { color: var(--c-sage-light); }
.facts dd a { border-bottom-color: var(--c-sage-light); }
.turn--homa small { color: var(--c-sage-light); }

/* the inner pages: the same night, not white */
.pmain {
  --bg: transparent; --bg-2: var(--glass); --bg-3: var(--glass-strong);
  --ink: #fff; --ink-2: var(--soft); --ink-3: var(--faint);
  --line: var(--hairline); --line-soft: rgba(255, 255, 255, .08);
  background: transparent;
  color: #fff;
}
.pmain .mono, .pmain .legal__toc a, .pmain .panel:not([id]) .ic, .pmain .figure .n, .legal__toc a { color: var(--c-sage-light); }
.pmain .legal a:not(.btn-ghost), .pmain .safety a { color: var(--c-sage-light); }
.pmain .figure .bar { background: rgba(255, 255, 255, .1); }
.pmain .figure .bar i, .figure .bar i { background: var(--c-sage-light); }
.pmain .safety__now { border-left: 1px solid var(--hairline); }

/* /brand */
.brandpage { padding-top: calc(var(--bar-h) + clamp(48px, 7vw, 96px)); }
.brandpage .caps { margin-bottom: .8rem; }
.brandpage__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.brandpage__card { padding: 26px 24px; }
.brandpage__card h2 { margin-bottom: 18px; }
.brandpage__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.swatch { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--soft); }
.swatch__chip { height: 52px; border-radius: 14px; border: 1px solid var(--hairline); }
.swatch b { font-weight: 600; color: #fff; }
.swatch code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--faint); }
.typerows { display: grid; gap: 16px; }
.typerow { display: grid; gap: 4px; }
.typerow__spec { font-size: 11.5px; color: var(--faint); }
@media (max-width: 860px) {
  .brandpage__grid { grid-template-columns: 1fr; }
  .brand__word { font-size: 17px; }
}

/* 17 ── the home page, one idea per section (2026-10-27) ─────────────── */
/* the hero's one action: the light pill, rising in after the title */
.slide .slide__cta { margin-top: 1.9rem; opacity: 0; transform: translateY(14px); }
.slide.is-on .slide__cta { animation: up .9s var(--ease) .75s forwards; }
.slide__cta .btn { min-height: 50px; padding: 0 28px; }
/* her two looks: one heading, two rounded portrait tiles */
.looks .split { width: 100%; max-width: 1180px; margin: clamp(32px, 5vw, 56px) auto 0; padding: 0 var(--gutter); gap: 16px; background: transparent; }
.looks .tile { height: clamp(480px, 74vh, 780px); border-radius: var(--r-panel); border: 1px solid var(--hairline); }
.looks .split__head .lead { margin-top: 1.2rem; }
/* privacy and safety: a quiet link under the cards */
.cards__link { margin-top: clamp(28px, 4vw, 44px); }
/* questions, opening in place */
.faq__list { display: grid; gap: 10px; max-width: 780px; margin: clamp(28px, 4vw, 48px) auto 0; text-align: left; }
.qa { padding: 0; border-radius: 18px; overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--c-sage-light); border-bottom: 1.5px solid var(--c-sage-light); transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease); }
.qa[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.qa summary:hover { color: var(--c-sage-light); }
.qa p { padding: 0 22px 20px; color: var(--soft); line-height: 1.65; }
/* the closing action */
.band .btn { margin-top: 2.2rem; min-height: 50px; padding: 0 28px; }
@media (max-width: 860px) {
  .looks .split { grid-template-columns: 1fr; }
  .looks .tile { height: 78svh; min-height: 460px; }
}
/* calmer rhythm: one idea per section, closer together */
.sec { padding: clamp(64px, 8vw, 120px) 0; }
.eyebrow { color: var(--c-sage-light); }
.cards__head { margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.cards__head .lead { margin-left: auto; }
.cards__link { text-align: center; }
/* her looks' captions sit low and small: her face stays clear */
.looks .tile__shade { background: linear-gradient(0deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .1) 30%, rgba(15, 23, 42, 0) 45%); }
.looks .tile__copy { bottom: clamp(22px, 4vh, 36px); }
.looks .display--tile { font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: -.015em; }
.looks .tile .discover { margin-top: 1rem; }
@media (max-width: 520px) {
  .slide__title { font-size: 1.6rem; line-height: 1.15; }
  .slide__eyebrow { font-size: .9rem; }
}

/* 18 ── the hero's live pixel slides (orb/viewer.js, from regulusys.com) ── */
/* the art's ground: night with a breath of sage, the orb drawn over it */
.art { background: radial-gradient(110% 80% at 50% 38%, rgba(94, 156, 138, .16) 0%, rgba(15, 23, 42, 0) 60%), var(--c-night); }
/* the orb takes a long press: no callout, selection or tap flash; the page still scrolls */
.art--orb canvas { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hero .slide__shade { pointer-events: none; }
.slide__copy { pointer-events: none; }
.slide__copy a, .slide__copy button { pointer-events: auto; }
/* no timer: the current slide's dot is a whole ring */
.dot__run { stroke: var(--c-sage-light); }
.dot.is-on .dot__run { animation: none; stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease); }
.hero__next {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(20px, 3.6vh, 38px);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s;
}
.hero__next svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-left: 2px; }
.hero__next:hover { border-color: var(--c-sage-light); background: var(--glass-strong); }
@media (max-width: 520px) { .hero__next { display: none; } }

/* 23 ── her film, whole, in a phone frame (Marco, 2026-10-29) ──────────
   Her clip is portrait (9:16) on its own dark navy ground, so it is never
   cropped or stretched to the hero: the frame is the film's own 9:16, set on
   a dark surround that matches her ground, framed from the top under the bar,
   with the slide's words over the lower part of the frame (below her chin). */
.slide__media:has(.pframe) {
  background:
    radial-gradient(60% 70% at 50% 38%, rgba(18, 32, 58, .55) 0%, rgba(6, 12, 22, 0) 70%),
    linear-gradient(180deg, rgba(6, 12, 22, 1) 0%, var(--c-night) 100%);
}
.slide__media .pframe {
  --pf-top: clamp(76px, 10svh, 104px);
  --pf-h: min(calc(100% - var(--pf-top) - 2svh), calc((100vw - 2 * var(--gutter)) * 16 / 9));
  position: absolute;
  top: var(--pf-top);
  left: 50%;
  height: var(--pf-h);
  aspect-ratio: 9 / 16;
  box-sizing: content-box;
  transform: translateX(-50%);
  border: clamp(6px, .7vw, 10px) solid rgba(3, 6, 12, 1);
  border-radius: clamp(28px, 3.4vw, 46px);
  overflow: hidden;
  background: rgba(6, 12, 22, 1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 40px 120px rgba(0, 0, 0, .55), 0 0 90px rgba(94, 156, 138, .10);
}
.slide__media .pframe .m,
.slide.is-on .slide__media .pframe .m,
.hero--single .slide__media .pframe .m {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 0;
  transform: none;
  animation: none;
}
/* the shade only darkens the lower frame, where the words sit */
.slide:has(.pframe) .slide__shade { background: linear-gradient(0deg, rgba(4, 8, 16, .82) 0%, rgba(4, 8, 16, .35) 26%, rgba(4, 8, 16, 0) 46%); }
.hero--page .slide__media .pframe { --pf-top: clamp(72px, 9svh, 96px); }
