/* MReach website. Design: 01_MFrotnend/docs/design/mreach/DESIGN.md ("The Digital Curator"):
   paper white, purple used surgically, no 1px section lines, depth by tonal layering. */

:root {
  --primary: #45276e;
  --primary-c: #6d4fa3;
  --primary-soft: rgba(109, 79, 163, 0.08);
  --page: #f7f9fb;
  --low: #eff1f6;
  --lowest: #ffffff;
  --high: #e6e8ef;
  --ink: #191c1e;
  --ink-v: #4d4259;
  --ink-mute: #6f6878;
  --ghost: rgba(109, 79, 163, 0.16);
  --deep: #1b1030;
  --deep-2: #26173f;
  --on-deep: #efe9f8;
  --on-deep-mute: #b9aed0;
  --shadow: 0 24px 48px rgba(25, 28, 30, 0.07);
  --shadow-sm: 0 4px 16px rgba(25, 28, 30, 0.05);
  --r: 8px;
  --r-lg: 20px;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-c) 100%);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary-c); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-c); margin-bottom: 18px;
}
.eyebrow--light { color: #c7b4ef; }
.display {
  font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  color: var(--ink);
}
.display em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-v); margin-top: 28px; max-width: 34em; }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.h2--light { color: #fff; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 12px; }
.sub { font-size: 19px; color: var(--ink-v); margin-top: 18px; max-width: 38em; }
.sub--light { color: var(--on-deep-mute); }
.tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-c); margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: var(--r); border: 0;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 32px rgba(69, 39, 110, 0.22); }
.btn--primary:hover { box-shadow: 0 16px 40px rgba(69, 39, 110, 0.3); }
.btn--ghost { background: var(--lowest); color: var(--primary); box-shadow: inset 0 0 0 1px var(--ghost); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
/* "Join MReach": calm and solid - one colour, normal size, no gradient, glow or arrow. */
.btn--join, .btn--joinsm { background: var(--primary); box-shadow: none; letter-spacing: -0.01em; }
.btn--join { font-size: 18px; padding: 0 32px; }
.btn--sm.btn--joinsm { font-size: 15px; }
.btn--join:hover, .btn--joinsm:hover { background: var(--primary-c); box-shadow: none; transform: none; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: inline-block; width: 32px; height: 32px; object-fit: contain; margin-right: 4px; border-radius: 50%;
}
.brand--sm { font-size: 18px; }
.brand--sm .brand__mark { width: 28px; height: 28px; }

/* ---------- nav (glass) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 251, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: box-shadow .2s ease;
}
.nav.is-scrolled { box-shadow: 0 8px 30px rgba(25, 28, 30, 0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--ink-v); font-size: 15px; font-weight: 600; }
.nav__links a:hover { color: var(--primary); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 45%; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(109, 79, 163, 0.14), rgba(109, 79, 163, 0) 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__note { margin-top: 22px; font-size: 14px; color: var(--ink-mute); }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 20px 0 30px; }
.phone {
  width: 320px; border-radius: 46px; padding: 12px; background: #120a20;
  box-shadow: 0 40px 80px rgba(27, 16, 48, 0.28), inset 0 0 0 2px #2c1d47;
}
.phone__screen { background: var(--page); border-radius: 36px; padding: 22px 16px 18px; min-height: 560px; }
.ph-top { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.ph-mark { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-c); margin-left: auto; }
.ph-for { font-size: 12px; color: var(--ink-mute); margin-bottom: 12px; }
.ph-for b { color: var(--primary); }

.match { background: var(--lowest); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.match__head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.match__name { font-weight: 800; font-size: 18px; line-height: 1.2; }
.match__role { font-size: 13px; color: var(--ink-mute); }
.match__why-t, .match__meet-t { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-c); margin-bottom: 8px; }
.match__why { display: grid; gap: 8px; margin-bottom: 16px; }
.match__why li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--ink-v); }
.tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-soft); position: relative; margin-top: 2px; }
.tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--primary-c); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.match__meet { background: var(--low); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.match__meet-t { margin-bottom: 4px; }
.match__meet-v { font-weight: 700; font-size: 15px; }
.match__meet-s { font-size: 12px; color: var(--ink-mute); }
.match__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.pill--ghost { background: var(--lowest); color: var(--ink-v); box-shadow: inset 0 0 0 1px var(--ghost); }
.pill--solid { background: var(--grad); color: #fff; }
.pill--xs { height: 30px; padding: 0 14px; font-size: 12px; }

.avatar {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-weight: 800; font-size: 16px; color: #fff;
}
.avatar--sm { width: 36px; height: 36px; font-size: 12px; }
.avatar--a { background: linear-gradient(135deg, #6d4fa3, #a17fd6); }
.avatar--b { background: linear-gradient(135deg, #2d5f7a, #5ea3bf); }
.avatar--c { background: linear-gradient(135deg, #8a4f2d, #d29a6b); }
.avatar--d { background: linear-gradient(135deg, #3e6b4a, #7fb08b); }

.float {
  position: absolute; display: grid; gap: 2px; background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); min-width: 190px;
}
.float__k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-c); }
.float__v { font-weight: 800; font-size: 16px; }
.float__s { font-size: 12px; color: var(--ink-mute); }
.float--a { left: -64px; top: 24px; animation: bob 7s ease-in-out infinite; }
.float--b { right: -56px; bottom: -4px; animation: bob 8s ease-in-out -3s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 72px 0 0;
  background: var(--lowest); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.stats div { text-align: center; }
.stats dt { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; color: var(--primary); }
.stats dd { margin: 0; font-size: 14px; color: var(--ink-mute); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 128px 0; }
.section--low { background: var(--low); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section__head { margin-bottom: 64px; max-width: 820px; }

/* problem */
.problem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem__item { background: var(--lowest); border-radius: var(--r-lg); padding: 32px; }
.problem__n { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-c); margin-bottom: 18px; }
.problem__item h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.problem__item p:last-child { color: var(--ink-v); }
.problem__turn { margin-top: 56px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.02em; max-width: 26em; color: var(--ink-v); }
.problem__turn b { color: var(--primary); }

/* steps */
.steps { display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start;
  padding: 36px 32px; border-radius: var(--r-lg); background: transparent; transition: background .2s;
}
.step:hover { background: var(--lowest); box-shadow: var(--shadow-sm); }
.step__n { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--primary-c); }
.step h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.step p { color: var(--ink-v); max-width: 40em; }

/* features */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--lowest); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-sm);
}
.feature:nth-child(2), .feature:nth-child(3) { transform: translateY(40px); }
.feature__copy p:last-child { color: var(--ink-v); }
.card-ui { background: var(--page); border-radius: 16px; padding: 20px; }

.mini-match { display: flex; gap: 14px; align-items: center; }
.mini-match__n { font-weight: 800; }
.mini-match__r { font-size: 14px; color: var(--ink-v); }
.mini-match__for { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.mini-match__for b { color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--lowest); color: var(--ink-v); box-shadow: inset 0 0 0 1px var(--ghost); }

.co { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.co__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #1f2a44; color: #fff; font-weight: 800; }
.co__n { font-weight: 800; }
.co__d { font-size: 13px; color: var(--ink-mute); }
.co__rows { display: grid; gap: 6px; background: var(--lowest); border-radius: 12px; padding: 12px 14px; }
.co__rows p { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.co__rows span { color: var(--ink-mute); }
.co__people { display: flex; align-items: center; margin-top: 14px; font-size: 13px; color: var(--ink-v); font-weight: 600; }
.co__people .avatar { margin-right: -8px; box-shadow: 0 0 0 2px var(--page); }
.co__people span { margin-left: 18px; }

.feed { display: grid; gap: 10px; }
.feed__item { display: flex; gap: 12px; align-items: center; background: var(--lowest); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-v); }
.feed__item b { color: var(--ink); }
.feed__k { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.feed__k--round { background: #e7f2ea; color: #2c6a3e; }
.feed__k--event { background: #e6eef7; color: #2b5584; }
.feed__k--ask { background: var(--primary-soft); color: var(--primary); }

.roomlist { display: grid; gap: 8px; }
.roomlist p { display: flex; align-items: center; gap: 12px; background: var(--lowest); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 15px; }
.roomlist em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 13px; color: var(--ink-mute); }
.flag { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .04em; }

/* room mock */
.room {
  display: grid; grid-template-columns: 220px 1fr 260px; background: var(--lowest);
  border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; min-height: 520px;
}
.room__topics { background: var(--low); padding: 24px 16px; }
.room__title { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 15px; line-height: 1.3; }
.room__meta { font-size: 12px; color: var(--ink-mute); margin: 6px 0 20px; }
.room__topics li { font-size: 14px; font-weight: 600; color: var(--ink-v); padding: 8px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.room__topics li.on { background: var(--lowest); color: var(--primary); box-shadow: var(--shadow-sm); }
.room__topics i { font-style: normal; font-size: 11px; background: var(--primary-c); color: #fff; border-radius: 999px; padding: 1px 7px; }

.room__chat { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.msg { display: flex; gap: 12px; }
.msg__body { min-width: 0; }
.msg__body > p:not(.msg__who) { font-size: 15px; color: var(--ink-v); line-height: 1.5; }
.msg__who { font-weight: 700; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.badge--inv { background: #e6eef7; color: #2b5584; }
.badge--fnd { background: #f5ebe2; color: #8a4f2d; }
.badge--host { background: var(--primary-soft); color: var(--primary); }
.badge--mod { background: #e7f2ea; color: #2c6a3e; }
.reacts { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.reacts span { font-size: 12px; font-weight: 600; background: var(--low); border-radius: 999px; padding: 3px 10px; }
.reacts .reacts__t { background: none; color: var(--primary-c); }
.join { background: var(--primary-soft); border-radius: 14px; padding: 12px 14px; flex: 1; }
.join__t { font-size: 14px; }
.join__d { font-size: 13px; color: var(--ink-v); margin: 2px 0 10px; }
.join__a { display: flex; gap: 8px; }
.unfurl { margin-top: 8px; background: var(--low); border-radius: 12px; padding: 10px 14px; border-left: 3px solid var(--primary-c); }
.unfurl__k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-c); }
.unfurl__t { font-size: 14px; font-weight: 700; }
.poll { background: var(--low); border-radius: 12px; padding: 12px 14px; min-width: 240px; }
.poll__q { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.poll__o { position: relative; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; overflow: hidden; margin-top: 6px; background: var(--lowest); }
.poll__o span { position: absolute; inset: 0 auto 0 0; background: var(--primary-soft); z-index: 0; }
.poll__o, .poll__o em { z-index: 1; }
.poll__o em { font-style: normal; color: var(--ink-mute); position: relative; }
.composer { margin-top: auto; display: flex; justify-content: space-between; background: var(--low); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--ink-mute); }

.room__lib { background: var(--page); padding: 24px 18px; }
.lib__h { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.lib__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.lib__tabs span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--ink-v); background: var(--low); }
.lib__tabs .on { background: var(--primary); color: #fff; }
.lib__item { background: var(--lowest); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.lib__k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-c); }

.caps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; margin-top: 72px; }
.cap h4 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 6px; }
.cap p { font-size: 14px; color: var(--ink-v); line-height: 1.55; }

/* layer */
.section--deep .sub a { color: #d5c3f7; }
.layer { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.layer__stack { display: grid; gap: 10px; position: sticky; top: 110px; }
.lay {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px;
  padding: 20px 22px; border-radius: 14px; color: var(--on-deep); font-size: 15px;
  background: rgba(255, 255, 255, 0.05);
}
.lay span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c7b4ef; }
.lay--5 { background: linear-gradient(135deg, #6d4fa3, #8d6cc6); color: #fff; margin: 0 40px; }
.lay--5 span { color: #fff; }
.lay--4 { background: rgba(141, 108, 198, 0.28); margin: 0 30px; }
.lay--3 { background: rgba(141, 108, 198, 0.2); margin: 0 20px; }
.lay--2 { background: rgba(141, 108, 198, 0.13); margin: 0 10px; }
.lay--1 { background: rgba(141, 108, 198, 0.08); }
.layer__items { display: grid; gap: 40px; }
.li h4 { font-size: 22px; letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.li p { color: var(--on-deep-mute); }

/* who */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.who__i { background: var(--lowest); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.who__i h4 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.who__i p { color: var(--ink-v); font-size: 16px; }

/* trust */
.trust { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.trust__list { display: grid; gap: 22px; }
.trust__list li { font-size: 18px; color: var(--ink-v); padding-left: 28px; position: relative; }
.trust__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.trust__list b { color: var(--ink); }

/* join */
.join-sec { background: radial-gradient(120% 120% at 0% 0%, #3a2160 0%, var(--deep) 55%); color: var(--on-deep); }
.join-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.form { background: var(--lowest); color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3); display: grid; gap: 8px; }
.form label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-v); margin-top: 8px; }
.form input, .form select {
  width: 100%; height: 52px; border-radius: var(--r); border: 0; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--low);
  box-shadow: inset 0 0 0 1px transparent; transition: background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus { outline: none; background-color: var(--lowest); box-shadow: inset 0 0 0 1px rgba(69, 39, 110, 0.35); }
.form .btn { margin-top: 18px; }
.form__msg { min-height: 1.5em; font-size: 14px; font-weight: 600; }
.form__msg.ok { color: #2c6a3e; }
.form__msg.err { color: #a2213a; }
.form__fine { font-size: 12px; color: var(--ink-mute); }

/* footer */
.footer { background: var(--deep); color: var(--on-deep-mute); padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer a:not(.brand) { color: #d5c3f7; }
.footer__c { margin-left: auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.feature.reveal.is-in:nth-child(2), .feature.reveal.is-in:nth-child(3) { transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .room { grid-template-columns: 190px 1fr; }
  .room__lib { display: none; }
  .caps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { padding-top: 40px; }
  .hero__grid, .layer, .trust, .join-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { padding-top: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .problem, .who { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(2), .feature:nth-child(3),
  .feature.reveal.is-in:nth-child(2), .feature.reveal.is-in:nth-child(3) { transform: none; }
  .layer__stack { position: static; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav .btn--sm { padding: 0 14px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 22px 12px; }
  .stats div:last-child { grid-column: span 2; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 24px 4px; }
  .step:hover { background: transparent; box-shadow: none; }
  .feature { padding: 24px; }
  .room { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .room__topics { display: none; }
  .room__chat { padding: 18px 14px; }
  .poll { min-width: 0; }
  .caps { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .lay { grid-template-columns: 1fr; gap: 2px; margin: 0 !important; }
  .float--a { left: -6px; top: 40px; }
  .float--b { right: -6px; bottom: 40px; }
  .float { min-width: 0; padding: 10px 14px; }
  .phone { width: 290px; }
  .form { padding: 24px 18px; }
  .footer__c { margin-left: 0; }
}
@media (max-width: 380px) {
  .caps { grid-template-columns: 1fr; }
  .float { display: none; }
}

/* fixes after the first visual pass */
.section--deep .sub { color: var(--on-deep-mute); }
.poll__o span { background: rgba(109, 79, 163, 0.18); }


/* ---- people (2026-11-27): real photos, not just app screens ---- */
.hero__grid { grid-template-columns: 1.05fr 0.95fr; }
.hero__visual { min-height: 660px; align-items: flex-start; justify-content: flex-end; padding: 0; }
.hero__photo { position: absolute; margin: 0; overflow: hidden; border-radius: 30px; box-shadow: 0 30px 60px rgba(27, 16, 48, 0.2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo { left: 0; top: 0; width: 88%; height: 430px; }
.hero__photo img { object-position: 6% center; }
.hero__photo--2 { display: none; }
.hero__visual .phone { position: relative; z-index: 2; margin: 150px 0 0 0; width: 286px; }
.hero__visual .phone__screen { min-height: 500px; }

.turn { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 56px; }
.turn__photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.turn__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.turn .problem__turn { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }

.how-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: start; }
.how__photo { position: sticky; top: 110px; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--lowest); }
.how__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% center; display: block; }
.how__photo figcaption { padding: 14px 18px; font-weight: 700; color: var(--primary); font-size: 15px; }

.who__photos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.who__photos img { width: 100%; height: 280px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-sm); display: block; }
.who__photos img:nth-child(2) { margin-top: 28px; }

.join-sec { background: linear-gradient(115deg, rgba(27, 16, 48, 0.94) 0%, rgba(58, 33, 96, 0.82) 55%, rgba(27, 16, 48, 0.55) 100%), url("photos/toast.webp") center / cover no-repeat; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; padding: 0 0 30px; justify-content: center; flex-direction: column; align-items: center; gap: 18px; }
  .hero__photo { position: relative; inset: auto; width: 100%; height: 240px; order: -1; }
  .hero__photo img { object-position: center 35%; }
  .hero__visual .phone { margin: 0; }
  .turn, .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .how__photo { position: static; }
  .how__photo img { aspect-ratio: 4 / 3; }
  .who__photos { grid-template-columns: 1fr 1fr; }
  .who__photos img { height: 200px; }
  .who__photos img:nth-child(2) { margin-top: 0; }
  .who__photos img:nth-child(3) { display: none; }
}

/* floating cards sit above the photo and the phone */
.hero__visual .float { z-index: 5; }
@media (max-width: 960px) {
  .hero__visual .float--a { left: 10px; top: 214px; }
  .hero__visual .float--b { right: 10px; bottom: 14px; }
}

/* desktop hero: landscape photo, phone on its lower right, cards in the free space */
@media (min-width: 961px) {
  .hero__visual { min-height: 640px; }
  .hero__photo { left: 0; top: 0; width: 88%; height: 380px; }
  .hero__photo img { object-position: 12% center; }
  .hero__visual .phone { width: 262px; margin: 120px 0 0 0; }
  .hero__visual .phone__screen { min-height: 470px; padding: 18px 14px 16px; }
  .hero__visual .float--a { left: -14px; top: 424px; right: auto; bottom: auto; }
  .hero__visual .float--b { left: 6%; right: auto; top: auto; bottom: 24px; }
}

/* store buttons (App Store / Google Play) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 14px; background: #111; color: #fff; text-decoration: none; transition: transform .15s ease; }
.store:hover { transform: translateY(-1px); }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.store small { font-size: 11px; font-weight: 500; opacity: .85; letter-spacing: 0; }
.stores--light { margin-top: 28px; }
.stores--light .store { background: #fff; color: #111; }
.stores--sm { margin-top: 0; gap: 8px; }
.stores--sm .store { height: 42px; padding: 0 14px 0 12px; border-radius: 11px; background: #fff; color: #111; }
.stores--sm .store span { font-size: 14px; }
.stores--sm .store small { font-size: 9px; }
.footer .stores a.store { color: #111; }
.footer__fam, .footer__social { flex-basis: 100%; }
/* hero phone: event list */
.evl { display: grid; gap: 10px; margin: 12px 0 14px; }
.evl__i { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(25, 28, 30, .06); }
.evl__d { width: 48px; flex: none; text-align: center; font-size: 11px; color: var(--ink-mute); line-height: 1.3; }
.evl__d b { display: block; font-size: 14px; color: var(--primary-c); }
.evl__t { font-size: 14px; font-weight: 700; margin: 0; }
.evl__s { font-size: 12px; color: var(--ink-mute); margin: 2px 0 0; }
.jp-stores { justify-content: center; margin-top: 18px; }

/* ---------- events (landing section: an iframe of the app's own event cards, /embed/events) ---------- */
.section--events { padding: 88px 0 72px; }
.ev-frame { display: block; width: 100%; height: 520px; border: 0; background: transparent; }
.ev-all { margin-top: 28px; text-align: center; }
.ev-all .btn { text-decoration: none; }
.hero__events { margin: 0 0 18px; }
.hero__events .btn { height: 52px; padding: 0 28px; font-size: 16px; text-decoration: none; }

/* mobile header: the section links are hidden, so Events stays reachable */
.nav__events { display: none; margin-left: auto; font-size: 15px; font-weight: 700; color: var(--primary); }
@media (max-width: 900px) { .nav__events { display: inline-block; } .nav__events + .btn { margin-left: 0; } }
