/* RUNi · runi.teamhaim.com
   The look follows the app ("The Night Instrument", Code/DESIGN.md) and the
   RUNi logo kit. Change colours and fonts here, in :root. */

@font-face {
  font-family: "Heebo";
  src: url("fonts/heebo-hebrew-wght-normal-v2.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("fonts/heebo-latin-wght-normal-v2.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal-v2.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}

:root {
  --night: #0a0c11;
  --night-deep: #07080c;
  --surface: #141821;
  --surface-2: #1b202b;
  --surface-3: #252b39;
  --hair: rgba(233, 236, 243, 0.08);
  --hair-2: rgba(233, 236, 243, 0.16);
  --text: #f1efea;
  --text-2: #b4b9c2;
  --text-3: #8f949e;
  --red: #ff3b30;          /* RUNi red: logo tile and the one action colour */
  --red-btn: #e0301f;      /* buttons: white text passes 4.5:1 */
  --red-btn-hi: #c9281a;
  --easy: #5cc8c2;
  --gold: #e6b85c;
  --above: #f07f63;
  --rest: #7c8597;

  --he: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --num: "Manrope", "Heebo", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --g: 20px;                /* side gutter */
  --max: 1180px;
  --r-s: 10px; --r-m: 16px; --r-l: 24px;
  --sec: clamp(88px, 12vw, 148px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.6 var(--he);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--red-btn); color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.num { font-family: var(--num); font-feature-settings: "tnum" 1; direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }
.lead { color: var(--text-2); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; max-width: 46ch; }
h2 { font-size: clamp(34px, 7.6vw, 60px); line-height: 1.05; margin-block-end: 18px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
html { scrollbar-color: var(--surface-3) var(--night); }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--red-btn); color: #fff; text-decoration: none; cursor: pointer;
  font: 700 19px/1 var(--he); letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pill:hover { background: var(--red-btn-hi); }
.pill:active { transform: scale(0.98); }
.pill--sm { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.pill--lg { min-height: 60px; padding: 0 32px; }
.pill--block { width: 100%; }
.pill .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hair-2); }
.ghost:hover { text-decoration-color: var(--text); }

/* ---------- live dot ---------- */
.live { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text); }
.live__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.live__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- intro: RUNi -> RUiN -> RUNi (the real logo shapes, final frame exact) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--red); animation: introOut .4s var(--ease) 1.65s forwards; cursor: pointer; }
.intro__logo { width: min(64vw, 380px); height: auto; overflow: visible; }
/* fast, on RUNi red: R, U, "iN", then the i and N swap and the logo stands */
.lg-r { animation: lgIn .25s var(--ease) .1s both; }
.lg-u { animation: lgIn .25s var(--ease) .3s both; }
.lg-n { animation: lgIn .25s var(--ease) .5s both, lgN .45s cubic-bezier(.65, 0, .35, 1) .85s both; }
.lg-i { animation: lgIn .25s var(--ease) .5s both, lgI .45s cubic-bezier(.65, 0, .35, 1) .85s both; }
.lg-leg { animation: lgLeg .18s linear 1.12s both; }
@keyframes lgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lgN { from { transform: translate(48.9px, 0); } to { transform: translate(0, 0); } }
@keyframes lgI { 0% { transform: translate(-54.5px, 0); } 50% { transform: translate(-27px, -30px); } 100% { transform: translate(0, 0); } }
@keyframes lgLeg { from { opacity: 1; } to { opacity: 0; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro.is-gone { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.bar__in { display: flex; align-items: center; gap: 24px; max-width: var(--max); margin-inline: auto; padding: 12px var(--g); padding-top: max(12px, env(safe-area-inset-top)); }
.bar__logo img { width: 40px; height: 40px; border-radius: 10px; }
.bar__nav { display: none; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 500; color: var(--text-2); }
.bar__nav a { text-decoration: none; }
.bar__nav a:hover { color: var(--text); }
.bar .pill { margin-inline-start: auto; }
.bar.is-solid { background: rgba(10, 12, 17, 0.86); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--hair); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 35%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,12,17,.55) 0%, rgba(10,12,17,0) 18%),
    linear-gradient(0deg, var(--night) 8%, rgba(10,12,17,.86) 38%, rgba(10,12,17,.2) 66%, rgba(10,12,17,0) 80%); }
.hero__in { position: relative; padding-block: 120px 28px; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(46px, 13.2vw, 104px); line-height: 0.98; letter-spacing: -0.02em; margin-block: 14px 18px; }
.hero__sub { font-size: clamp(17px, 2.3vw, 21px); color: #d9d8d3; max-width: 34ch; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 26px; }
.hero__cta .pill { flex: 1 1 100%; }
.hero__fine { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.hero__by { margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--text); }
.hero__phone { display: none; }
.cred { display: flex; gap: 22px; margin: 0; padding-top: 18px; border-top: 1px solid var(--hair); }
.cred div { display: grid; gap: 2px; }
.cred dt { font-weight: 700; font-size: 15px; }
.cred dt.num { font-size: 26px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.cred dd { margin: 0; font-size: 13px; color: var(--text-3); }

/* ---------- phone frame ---------- */
.phone {
  position: relative; margin: 0; aspect-ratio: 780 / 1688; width: 100%;
  border-radius: 13% / 6%; padding: 2.4%; background: #1c1f27;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 0 1px #000, 0 30px 70px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.4);
}
.phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: 11% / 5.1%; background: var(--night); }
.phone figcaption { position: absolute; inset-inline: 0; bottom: -34px; text-align: center; font-size: 14px; color: var(--text-2); }

/* ---------- manifesto ---------- */
.manifesto { padding-block: var(--sec) calc(var(--sec) * .7); display: grid; gap: 40px; }
.manifesto__big { font-weight: 800; font-size: clamp(38px, 9vw, 92px); line-height: 1.02; letter-spacing: -0.02em; }
.manifesto__big em { font-style: normal; color: var(--red); }
.manifesto__quote { margin: 0; max-width: 40ch; padding-inline-start: 20px; border-inline-start: 1px solid var(--hair-2); }
.manifesto__quote p { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.55; font-weight: 500; }
.manifesto__quote footer { margin-top: 12px; color: var(--text-3); font-size: 15px; }

/* ---------- how ---------- */
.how { padding-block: calc(var(--sec) * .5) var(--sec); }
.how__grid { display: grid; gap: 56px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 22px; border-top: 1px solid var(--hair); }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps__n { font-size: 30px; font-weight: 250; line-height: 1; color: var(--text-3); padding-top: 2px; }
.steps h3 { font-size: 20px; line-height: 1.3; margin-bottom: 6px; font-weight: 700; }
.steps p { color: var(--text-2); font-size: 16px; }

.morph { margin: 0; display: grid; gap: 14px; }
.morph__panel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-l); padding: 18px; }
.morph__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.morph__tag { font-weight: 500; font-size: 12px; color: var(--text-3); border: 1px solid var(--hair-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.morph__legend { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12px; color: var(--text-2); }
.morph__legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-inline-start: 6px; }
.z-easy { background: var(--easy); } .z-gold { background: var(--gold); } .z-above { background: var(--above); }
.morph__weeks, .morph__plan { display: grid; gap: 6px; }
.wk { display: grid; grid-template-columns: 54px repeat(7, 1fr) 40px; gap: 5px; align-items: center; }
.wk__lab { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.wk__km { font: 400 14px var(--num); color: var(--text-2); text-align: end; direction: ltr; }
.cell { height: 26px; border-radius: 7px; background: transparent; border: 1px dashed var(--hair); position: relative; overflow: hidden; display: grid; place-items: center; }
.cell--run { border: 1px solid var(--hair); background: var(--surface-2); font: 400 11px var(--num); color: var(--text-3); opacity: .35; transition: opacity .6s var(--ease) var(--d, 0s), color .6s var(--ease) var(--d, 0s), background-color .6s var(--ease) var(--d, 0s); }
.is-on .cell--run { opacity: 1; color: var(--text); background: var(--surface-3); }
.cell--plan { height: 34px; border: 0; }
.cell--plan span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px var(--num); color: var(--night); background: var(--z, var(--surface-3)); opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.cell--rest span { background: transparent; color: var(--text-3); }
.is-on .cell--plan span { opacity: 1; transform: none; }
.morph__sum { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.morph__sum div { display: grid; }
.morph__sum .num { font-size: 30px; font-weight: 250; letter-spacing: -0.03em; line-height: 1.1; }
.morph__sum small { font-size: 12px; color: var(--text-3); }
.morph__arrow { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-weight: 700; font-size: 14px; }
.morph__arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.morph figcaption { font-size: 13px; color: var(--text-3); }

/* ---------- math ---------- */
.math { padding-block: calc(var(--sec) * .4) var(--sec); }
.math__stage { position: relative; margin-top: 40px; perspective: 1600px; padding-bottom: 56px; }
.math__screen { margin: 0; border-radius: 16px; overflow: hidden; background: var(--night); box-shadow: 0 0 0 1px var(--hair-2), 0 40px 90px rgba(0,0,0,.6); transform: rotateX(8deg) rotateY(8deg) scale(.96); transform-origin: 60% 50%; }
.math__screen img { width: 100%; height: auto; opacity: .9; }
.math__eq { position: absolute; inset-inline-end: 4%; bottom: 0; width: min(46%, 300px); margin: 0; border-radius: 16px; overflow: hidden; background: var(--night); box-shadow: 0 0 0 1px var(--hair-2), 0 24px 60px rgba(0,0,0,.6); }
.math__eq img { width: 100%; height: auto; }
.graphs { display: flex; gap: 12px; margin-top: 18px; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.graphs::-webkit-scrollbar { display: none; }
.graphs figure { margin: 0; flex: 0 0 78%; scroll-snap-align: center; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair-2); background: var(--night); }
.graphs img { width: 100%; height: auto; opacity: .9; }
@media (min-width: 960px) { .graphs { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.math__cap { margin-top: 18px; font-size: 14px; color: var(--text-3); max-width: 60ch; }
.laws { list-style: none; margin: 48px 0 0; padding: 0; display: grid; border-top: 1px solid var(--hair); }
.laws li { padding-block: 22px; border-bottom: 1px solid var(--hair); }
.laws h3 { font-size: 22px; margin-bottom: 8px; }
.laws p { color: var(--text-2); max-width: 46ch; }
.laws__src { color: var(--text-3); font-size: 14px; }
@media (min-width: 960px) {
  .math__stage { margin-top: 56px; padding-bottom: 64px; }
  .math__screen { transform: rotateX(10deg) rotateY(14deg) scale(.92); }
  .math__eq { inset-inline-end: 2%; width: 300px; }
  .laws { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .laws li { border-bottom: 0; border-top: 1px solid var(--hair); padding: 24px 0 0; padding-inline-end: 32px; }
}

/* ---------- tour ---------- */
.tour { padding-block: calc(var(--sec) * .6) var(--sec); background: linear-gradient(180deg, var(--night), var(--night-deep) 30%, var(--night-deep) 70%, var(--night)); }
.tour__lead { margin-bottom: 8px; }
.tour__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.tour__grid > *, .how__grid > *, .join__grid > *, .team__grid > *, .hero__in > *, .community > *, .connect__grid > * { min-width: 0; }
.chap__dots { display: none; }
.chap { padding-block: 56px 8px; }
.chap h3 { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.1; margin-bottom: 12px; }
.chap p { color: var(--text-2); max-width: 44ch; font-size: 17px; }
.shots { display: flex; gap: 16px; margin-top: 28px; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); padding-bottom: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots .phone { flex: 0 0 min(62vw, 260px); scroll-snap-align: center; }
.chap .chap__note { margin-top: 14px; font-size: 14px; line-height: 1.8; color: var(--text-3); }
.chap__note .badge { height: 24px; font-size: 12px; vertical-align: 1px; margin-inline-end: 8px; }
.tour__note { margin-top: 40px; font-size: 14px; color: var(--text-3); max-width: 52ch; }
.tour__stage { display: none; }

/* ---------- connect ---------- */
.connect { padding-block: var(--sec); }
.connect__grid { display: grid; gap: 18px; margin-top: 40px; }
.svc { background: var(--surface); border: 1px solid var(--hair); border-radius: 28px; padding: 26px 22px; display: grid; gap: 22px; align-content: start; }
.svc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc h3 { font-family: var(--num); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; direction: ltr; }
.svc__lede { font-size: 18px; line-height: 1.6; }
.svc__note { font-size: 14px; color: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge--live { border: 1px solid var(--hair-2); color: var(--text); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.badge--soon { border: 1px solid var(--hair-2); color: var(--text); }
.readout { background: var(--night); border: 1px solid var(--hair); border-radius: var(--r-m); padding: 16px 18px 6px; }
.readout__head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.readout dl { margin: 0; }
.readout dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 11px; border-top: 1px solid var(--hair); }
.readout dl div:first-child { border-top: 0; }
.readout dt { color: var(--text-2); font-size: 15px; }
.readout dd { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -0.02em; }
.readout dd small { font: 400 13px var(--he); color: var(--text-3); margin-inline-start: 4px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 26px; color: var(--text-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 7px; border-inline-start: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-50%) rotate(-45deg) scaleX(-1); }
.tm { margin-top: 22px; font-size: 13px; color: var(--text-3); }

.send { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 14px; padding: 22px 16px 18px; background: radial-gradient(120% 80% at 50% 100%, rgba(230,184,92,.08), transparent 60%), var(--night); border: 1px solid var(--hair); border-radius: var(--r-m); overflow: hidden; }
.send__phone { margin: 0; width: 100%; max-width: 340px; display: grid; gap: 10px; justify-items: center; }
.send__phone img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair), 0 14px 30px rgba(0,0,0,.45); }
.send__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--text); color: var(--night); font-size: 14px; font-weight: 700; }
.send__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.send__path { display: flex; flex-direction: column; gap: 5px; }
.send__path span { width: 2px; height: 8px; border-radius: 2px; background: var(--hair-2); }
.send__cap { font-size: 13px; color: var(--text-3); text-align: center; max-width: 34ch; }
.watch { width: 190px; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.watch__case { fill: #2b303b; stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
.watch__bezel { fill: #101218; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.watch__face { fill: #030405; }
.watch__btn { fill: #3a404c; }
.wr { fill: none; stroke-width: 6; stroke-linecap: round; }
.wr--easy { stroke: var(--easy); } .wr--gold { stroke: var(--gold); } .wr--rest { stroke: var(--rest); }
.wr--next { opacity: .28; } .wr--now { stroke-width: 8; }
.watch text { text-anchor: middle; fill: var(--text); font-family: var(--he); }
.watch__t1 { font-size: 12px; fill: var(--text-2) !important; }
.watch__t2 { font: 300 36px var(--num) !important; letter-spacing: -1px; }
.watch__t3 { font-size: 12px; fill: var(--text-2) !important; }
.watch__t4 { font: 500 15px var(--num) !important; fill: var(--gold) !important; }
.next-watch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--hair); }
.next-watch strong { font-family: var(--num); font-size: 20px; font-weight: 700; direction: ltr; }

/* ---------- community ---------- */
.community { padding-block: calc(var(--sec) * .4) var(--sec); display: grid; gap: 36px; }
.community__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.community__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; }
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.events li { display: grid; gap: 2px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--hair); }
.events__kind { font-size: clamp(22px, 4.4vw, 32px); font-weight: 700; line-height: 1.2; }
.events__meta { color: var(--text-2); font-size: 15px; }
.community__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.community__shots .phone:nth-child(2) { margin-top: 36px; }
.community__shots .events__note { grid-column: 1 / -1; }
.events__note { margin-top: 14px; font-size: 14px; color: var(--text-3); }

/* ---------- team ---------- */
.team { padding-block: var(--sec); background: var(--night-deep); border-block: 1px solid var(--hair); }
.team__grid { display: grid; gap: 36px; }
.team__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.team__copy > p { color: var(--text-2); margin-top: 16px; max-width: 54ch; }
.team__name { font-size: 26px; font-weight: 800; color: var(--text) !important; margin-top: 0 !important; }
.team__name span { display: block; font-size: 16px; font-weight: 500; color: var(--text-2); margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 26px 0 8px; border-top: 1px solid var(--hair); }
.stats div { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.stats div:nth-child(odd) { padding-inline-end: 16px; border-inline-end: 1px solid var(--hair); }
.stats div:nth-child(even) { padding-inline-start: 16px; }
.stats dt { font-size: clamp(32px, 6vw, 44px); font-weight: 250; letter-spacing: -0.035em; line-height: 1.05; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.team__sign { font-weight: 700; color: var(--text) !important; font-size: 20px; }
.build { margin-top: clamp(64px, 10vw, 120px); }
.build__title { font-size: clamp(24px, 4.6vw, 34px); margin-bottom: 22px; }
.build__row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); scrollbar-width: none; }
.build__row::-webkit-scrollbar { display: none; }
.build__shot { margin: 0; flex: 0 0 72vw; scroll-snap-align: center; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--surface); }
.build__shot img { width: 100%; height: 100%; object-fit: cover; }
.build__shot figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; font-size: 14px; background: linear-gradient(0deg, rgba(7,8,12,.92), rgba(7,8,12,0)); }

/* ---------- reels ---------- */
.reels { padding-block: var(--sec) calc(var(--sec) * .6); }
.reels .lead a { color: var(--text); }
.reels__row { display: flex; gap: 16px; margin-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); scrollbar-width: none; }
.reels__row::-webkit-scrollbar { display: none; }
.reel { position: relative; margin: 0; flex: 0 0 min(70vw, 320px); scroll-snap-align: center; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: var(--surface); }
.reel figcaption { margin-top: 12px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.draft { font-size: 12px; font-weight: 600; color: var(--text-3); border: 1px dashed var(--hair-2); border-radius: 999px; padding: 2px 8px; }
.reel__sound { position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10,12,17,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.reel__sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.reel__sound .reel__wave { opacity: .35; }
.reel.is-loud .reel__wave { opacity: 1; }

/* ---------- gallery ---------- */
.gallery { padding-block: calc(var(--sec) * .5) var(--sec); }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gallery__note { font-size: 14px; color: var(--text-3); margin-top: -6px; }
.gallery__nav { display: none; gap: 10px; flex: none; }
.gallery__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.gallery__nav button:hover { background: var(--surface-2); }
.gallery__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__phone figcaption { bottom: -30px; font-size: 12px; color: var(--text-2); }
.hero__phone figcaption { width: max-content; margin-inline: auto; padding: 4px 12px; border-radius: 999px; background: rgba(10,12,17,.82); }
.gallery__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--g) 56px; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track .phone { flex: 0 0 min(56vw, 240px); scroll-snap-align: center; }
@media (min-width: 1180px) { .gallery__track { padding-inline: calc((100vw - var(--max)) / 2 + var(--g)); } }

/* ---------- R U IN? (the reels' ending, before the sign-up) ---------- */
.areyouin { display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse 80% 70% at 50% 46%, #fd4f44 0%, #f2362b 50%, #d52a20 100%); }
.areyouin video { display: block; width: 100%; max-width: 620px; height: auto; -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 62% at 50% 50%, #000 62%, transparent 100%); }
.areyouin .ruin--wide { display: none; }
@media (min-width: 720px) { .areyouin .ruin--tall { display: none; } .areyouin .ruin--wide { display: block; width: 100%; max-width: none; height: auto; -webkit-mask-image: none; mask-image: none; } }

/* ---------- join ---------- */
.join { position: relative; padding-block: var(--sec); isolation: isolate; overflow: hidden; }
.join__bg { position: absolute; inset: 0; z-index: -1; }
.join__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: .32; filter: saturate(.7); }
.join__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(10,12,17,.7) 30%, rgba(10,12,17,.86) 70%, var(--night) 100%); }
.join__grid { display: grid; gap: 40px; }
.join h2 { font-size: clamp(36px, 8.4vw, 68px); margin-top: 16px; }
.next { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.next li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.next .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair-2); font-size: 14px; font-weight: 500; flex: none; }

.form { background: rgba(20, 24, 33, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--hair-2); border-radius: 28px; padding: 24px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.form__body { display: grid; gap: 22px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 16px; padding: 0; }
.field legend { margin-bottom: 8px; }
.field__hint { font-size: 14px; color: var(--text-2); margin-top: -4px; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--text-3); font-size: 14px; margin-inline-start: 6px; }
input[type="text"] {
  width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r-m);
  background: var(--night); color: var(--text); border: 1px solid var(--hair-2);
  font: 400 17px var(--he); caret-color: var(--red);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
input[dir="ltr"] { text-align: left; font-family: var(--num); }
input[dir="ltr"]::placeholder { text-align: right; }
input::placeholder { color: #858a94; }
input[type="text"]:focus { outline: none; border-color: var(--text); background: var(--surface-2); }
.is-bad input[type="text"] { border-color: #ff9c8a; }
.field__err { color: #ff9c8a; font-size: 14px; }
.at { position: relative; }
.at span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-family: var(--num); pointer-events: none; }
.at input { padding-left: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--night); border: 1px solid var(--hair-2); color: var(--text-2); font-size: 15px; font-weight: 600; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.chip b { font-weight: 500; color: var(--text); font-size: 15px; }
.chip:hover span { border-color: rgba(233,236,243,.3); color: var(--text); }
.chip input:checked + span { background: var(--text); color: var(--night); border-color: var(--text); }
.chip input:checked + span b { color: var(--night); }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
.checks { display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--text); line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 1.5px solid var(--hair-2); background: var(--night); display: grid; place-items: center; cursor: pointer; transition: background-color .15s var(--ease); }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2.2px solid var(--night); border-bottom: 2.2px solid var(--night); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form button[type="submit"] { position: relative; margin-top: 4px; }
.spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-busy .spin { display: block; } .is-busy .btn__text { opacity: .7; }
.is-busy button[type="submit"] { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status:empty { display: none; }
.form__status { font-size: 14px; color: #ff9c8a; }
.privacy { font-size: 13px; line-height: 1.6; color: var(--text-3); }
.privacy a { color: var(--text-2); }
.form__done { text-align: center; padding: 28px 8px; display: grid; gap: 12px; justify-items: center; outline: none; }
.form__done h3 { font-size: 30px; }
.form__done p { color: var(--text-2); max-width: 34ch; }
.done__sub a { color: var(--text); }
.done__again { margin-top: 6px; }
.done__ring { width: 96px; height: 96px; margin-bottom: 8px; }
.done__ring circle { fill: none; stroke: var(--text); stroke-width: 4; stroke-dasharray: 327; stroke-dashoffset: 327; transform: rotate(-90deg); transform-origin: center; animation: sweep 1.4s var(--ease) forwards; }
.done__ring path { fill: none; stroke: var(--text); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: sweep .6s var(--ease) .9s forwards; }
@keyframes sweep { to { stroke-dashoffset: 0; } }

/* ---------- faq ---------- */
.faq { padding-block: var(--sec); max-width: 860px; }
.faq__list { margin-top: 20px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding-bottom: 22px; color: var(--text-2); max-width: 62ch; }

/* ---------- footer + dock ---------- */
.foot { border-top: 1px solid var(--hair); padding-block: 56px calc(120px + env(safe-area-inset-bottom)); background: var(--night-deep); }
.foot__in { display: grid; gap: 18px; }
.foot__logo { width: 112px; height: auto; }
.foot__line { color: var(--text-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot__links a { color: var(--text-2); text-decoration: none; }
.foot__links a:hover { color: var(--text); text-decoration: underline; }
.foot__fine { font-size: 13px; color: var(--text-3); }
.dock { position: fixed; inset: auto 0 0; z-index: 30; padding: 28px var(--g) max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(10,12,17,0), rgba(10,12,17,.9) 40%); transform: translateY(110%); transition: transform .45s var(--ease); pointer-events: none; }
.dock.is-on { transform: none; pointer-events: auto; }
.dock .pill { box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  :root { --g: 32px; }
  .hero__cta .pill { flex: 0 0 auto; }
  .connect__grid { grid-template-columns: 1fr 1fr; }
  .svc { padding: 34px 32px; }
  .build__row { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .build__shot { flex: none; }
  .reels__row { overflow: visible; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats div, .stats div:nth-child(odd), .stats div:nth-child(even) { padding: 16px 16px 16px 0; border-inline-end: 1px solid var(--hair); padding-inline-start: 16px; }
  .stats div:first-child { padding-inline-start: 0; }
  .stats div:last-child { border-inline-end: 0; }
}

@media (min-width: 960px) {
  :root { --g: 40px; }
  .bar__nav { display: flex; }
  .gallery__nav { display: flex; }
  .bar .pill { margin-inline-start: 8px; }
  .hero { align-items: center; }
  .hero__shade { background:
    linear-gradient(180deg, rgba(10,12,17,.6) 0%, rgba(10,12,17,0) 16%),
    linear-gradient(270deg, rgba(10,12,17,.94) 0%, rgba(10,12,17,.72) 38%, rgba(10,12,17,.1) 62%, rgba(10,12,17,0) 80%),
    linear-gradient(0deg, var(--night) 0%, rgba(10,12,17,0) 30%); }
  .hero__photo { inset: 104px auto 56px max(40px, calc((100vw - var(--max)) / 2 + 40px)); width: min(36vw, 480px); height: auto; border-radius: 28px; overflow: hidden; z-index: -2; box-shadow: 0 0 0 1px var(--hair), 0 40px 90px rgba(0,0,0,.55); }
  .hero__photo img { object-position: 50% 45%; z-index: 0; }
  .hero__shade { display: none; }
  .hero h1 { font-size: clamp(56px, 6.4vw, 92px); }
  .hero__phone figcaption { bottom: -40px; inset-inline: -20px; white-space: nowrap; }
  .hero__phone figcaption { display: flex; justify-content: center; }
  .hero__phone figcaption::before { content: none; }
  .hero__phone { width: 220px !important; justify-self: end !important; align-self: end; transform: rotate(-4deg) translate(-40px, 30px) !important; }
  .hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "copy phone" "cred phone"; align-items: center; column-gap: 64px; padding-block: 140px 64px; }
  .hero__copy { grid-area: copy; }
  .hero__phone { display: block; grid-area: phone; width: min(300px, 100%); justify-self: center; transform: rotate(-4deg) translateY(10px); }
  .cred { grid-area: cred; align-self: start; max-width: 520px; }
  .manifesto { grid-template-columns: 1.8fr 1fr; align-items: end; gap: 72px; }
  .manifesto__big { font-size: clamp(48px, 5.2vw, 76px); }
  .how__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  .tour__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; }
  .chap { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
  .chap .shots { display: none; }
  .tour__stage { display: block; position: relative; }
  .phone--stage { position: sticky; top: calc(50vh - 310px); width: 300px; margin-inline: auto; }
  .phone--stage img { position: absolute; inset: 2.4%; width: 95.2%; height: 95.2%; opacity: 0; transform: scale(.985); transition: opacity .6s var(--ease), transform .8s var(--ease); }
  .phone--stage img.is-on { opacity: 1; transform: none; }
  .chap__dots { display: flex; gap: 8px; margin-top: 22px; }
  .chap__dots button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; color: var(--text-2); font: 600 14px var(--he); cursor: pointer; }
  .chap__dots button[aria-pressed="true"] { background: var(--text); color: var(--night); border-color: var(--text); }
  .chap { opacity: .38; transition: opacity .5s var(--ease); }
  .chap.is-active { opacity: 1; }
  .community { grid-template-columns: 1fr 1fr; gap: 32px 80px; align-items: center; }
  .community__photo { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .community__shots { max-width: 520px; justify-self: center; gap: 20px; }
  .team__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
  .join__grid { grid-template-columns: 1fr minmax(0, 560px); gap: 72px; align-items: start; }
  .join__copy { padding-top: 24px; }
  .join__copy { position: sticky; top: 120px; }
  .form { padding: 32px; }
  .dock { display: none; }
  .foot { padding-bottom: 56px; }
  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 40px; }
  .foot__fine { grid-column: 1 / -1; }
}

/* ---------- phones and small tablets: image first, half the words (Yoni, 2026-11-16) ---------- */
.m-only { display: none; }
.hero__short { display: none; }
.limited { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(255, 59, 48, .45); background: rgba(255, 59, 48, .08); font-weight: 700; font-size: 16px; color: var(--text); }
@media (max-width: 959px) {
  .m-hide { display: none !important; }
  .m-only { display: inline; }
  p.m-only { display: block; }
  .hero { display: block; min-height: 0; padding-top: calc(64px + env(safe-area-inset-top)); }
  .hero__photo { position: relative; inset: auto; display: block; width: auto; height: clamp(240px, 48svh, 460px); margin: 0 16px; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair), 0 24px 60px rgba(0,0,0,.5); }
  .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; object-position: 50% 42%; }
  .hero__shade { display: none; }
  .hero__in { padding-block: 22px 36px; gap: 0; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 50px); line-height: 1.02; margin: 0 0 10px; }
  .hero__short { display: block; font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 34ch; }
  .hero__cta { margin-top: 18px; }
  .hero__fine { margin-top: 14px; font-size: 14px; color: var(--text); }
  .manifesto { padding-block: 72px 40px; }
  .how { padding-block: 32px 72px; }
  .steps { margin-top: 20px; }
  .steps li { padding-block: 14px; align-items: center; }
  .steps h3 { margin: 0; }
  .chap { padding-block: 44px 0; }
  .chap h3 { margin-bottom: 4px; }
  .connect, .team, .gallery, .faq, .join, .math { padding-block: 72px; }
  .community { padding-block: 24px 72px; }
  .svc { gap: 16px; }
}

/* ---------- phones: cover hero, lighter sections (Yoni, 2026-11-16: "make it much better in the phone") ---------- */
@media (max-width: 959px) {
  .hero { position: relative; }
  .hero__photo { height: clamp(320px, 58svh, 540px); margin: 0 var(--g); border-radius: 28px; }
  .hero h1 { padding-inline: 22px; }
  .hero__short { margin-top: 0; font-size: 17px; color: var(--text-2); }
  .hero__cta { margin-top: 22px; }
  .hero__cta .pill { min-height: 58px; }
  .hero__fine { display: block; text-align: start; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--text-2); }
  .hero__fine .live__dot { display: none; }
  .hero__photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,12,17,.92) 0%, rgba(10,12,17,.55) 30%, rgba(10,12,17,0) 55%), linear-gradient(180deg, rgba(10,12,17,.45) 0%, rgba(10,12,17,0) 22%); }
  .hero__in { position: static; margin-top: -150px; padding-top: 0; }
  .hero__copy { position: relative; z-index: 2; }
  .hero__phone { display: none !important; }
  .hero h1 { padding-inline: 14px; font-size: clamp(38px, 11.4vw, 54px); text-shadow: 0 2px 24px rgba(0,0,0,.35); margin-bottom: 88px; }
  .hero__short { padding-inline: 2px; }
  .morph__weeks { display: none; }
  .morph__sum { margin-top: 0; padding-top: 0; border-top: 0; }
  .shots .phone { flex-basis: min(70vw, 290px); }
  .shots { gap: 14px; }
  .svc h3 { font-size: 30px; }
  .readout dl div { padding-block: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
