/* ==========================================================================
   Remini — marketing site
   Inter · primary #2563D7 · minimal, airy, blue-only accent
   ========================================================================== */

:root {
  --blue: #2563d7;
  --blue-600: #1d54bd;
  --blue-700: #1a479e;
  --blue-50: #f1f5fe;
  --blue-100: #e3ebfb;
  --blue-200: #c9d8f7;

  /* complementary accent — used for progress, success and positive states (check-ins, paid, ticks) */
  --green: #0f9d6e;
  --green-600: #0b8a60;
  --green-700: #067050;
  --green-50: #edfaf4;
  --green-100: #d3f3e4;

  --ink: #0e1726;
  --ink-2: #344054;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e9ecf1;
  --line-2: #f1f3f6;
  --bg: #ffffff;
  --bg-soft: #f6f9fe;
  --bg-tint: #f2f6fd;   /* feature panels, Who it’s for, phone panel */
  --hero-bg: #fafbff;
  --warm: #845f4b;      /* family replies */
  --warm-50: #fbf3ef;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -6px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 48px -12px rgba(16, 24, 40, 0.14);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  /* spacing scale: 8 · 16 · 32 · 64 · 128 (+192 reserved for the gap before the final ask) */
  --s1: 8px; --s2: 16px; --s3: 32px; --s4: 64px; --s5: 128px;
  --section: clamp(96px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* --- Type ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue);
}
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.032em; line-height: 1.1; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.028em; line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.section-head { max-width: 760px; margin: 0 auto var(--s4); text-align: center; display: grid; justify-items: center; }
.section-head > .eyebrow + * { margin-top: var(--s1); }
.section-head > .lead { margin-top: var(--s2); }
.h4 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.026em; line-height: 1.18; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 215, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn--primary:hover { background: var(--blue-600); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #d5dae2; background: var(--bg-soft); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--blue-50); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 17px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 500; font-size: 16px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --- Nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 255, .9);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); transition: border-color .3s;
}
.nav .btn--sm { font-size: 16px; letter-spacing: -0.01em; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; height: 72px; gap: 40px; transition: height .3s var(--ease); }
.nav.is-scrolled .nav__inner { height: 60px; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { flex: 1; display: flex; justify-content: center; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); font-weight: 400; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__login { padding: 8px 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.nav__login:hover { color: var(--ink); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; align-items: center; justify-content: center; }
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__mobile { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__login { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__toggle { display: inline-flex; }
  .nav__actions .btn { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
  .nav__actions { gap: 4px; }
  .nav__mobile {
    display: grid; gap: 4px; padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line); background: #fff;
  }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line-2); }
  .nav__mobile .btn { margin-top: 16px; }
}

/* --- Hero ------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(56px, 7.2vw, 104px); overflow: hidden; background: linear-gradient(to bottom, #fafbfe 0%, rgba(250, 251, 255, 0) 66.6%), #fff; }
.hero__copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.hero__sub { margin-top: var(--s3); }
.hero__title {
  font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 600;
  max-width: 900px;
}
.hero__title em { font-style: normal; color: var(--blue); }
.hero__eyebrow { display: block; margin-bottom: 24px; font-size: 17px; line-height: 1.4; letter-spacing: 0.03em; text-align: center; text-wrap: balance; }
.hero__trust { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: left; }
.hero__trust img { flex: none; width: 20px; height: 20px; }
@media (max-width: 640px) {
  /* eyebrow runs edge to edge with 24px sides (breaks out of the container gutter) */
  .hero__eyebrow { justify-self: stretch; max-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: 24px; font-size: 14px; line-height: 1.5; }
  .hero__trust { align-items: flex-start; }
  .hero__sub-more { display: none; } /* shorter list on phones */
}
.hero__title { text-wrap: balance; }
@media (max-width: 760px) { .br-desktop { display: none; } }
.hero__sub { max-width: 720px; font-size: clamp(1.05rem, 1.32vw, 1.1875rem); line-height: 1.6; }
.hero__cta { display: grid; justify-items: center; gap: var(--s2); margin-top: 30px; }
.hero__cta .btn--lg { height: 56px; padding: 0 24px; font-size: 16px; border-radius: 12px; }

/* Stage: the two vector illustrations stay pinned to the screen edges at every width
   (natural size from 1440 up, scaled down below), over a full-bleed ground strip */
.hero__stage { position: relative; z-index: 1; height: max(440px, min(536px, 37.22vw)); margin-top: -108px; }
.stage__ground { position: absolute; left: 0; right: 0; bottom: 0; height: min(102px, 7.1vw); background: #fafafa; }
.stage__ill { position: absolute; bottom: 0; height: auto; opacity: .8; user-select: none; pointer-events: none; }
.stage__ill--left { left: 0; width: min(509px, 35.35vw); }
.stage__ill--right { right: 0; width: min(532px, 36.94vw); }
/* Desktop only: the balloon (Figma 186:36682, x 93 / y 228 at 1440) and the butterfly float up beside the headline */
.hero__fly { position: absolute; z-index: 1; height: auto; opacity: .8; user-select: none; pointer-events: none; }
.hero__fly--balloon { left: min(60px, 4.17vw); top: min(200px, 13.89vw); width: min(174px, 12.08vw); } /* frame padded 20px left so the sway never clips; art stays put */
.hero__fly--bfly { right: min(110px, 7.64vw); top: min(250px, 17.36vw); width: min(175px, 12.15vw); }
@media (max-width: 960px) { .hero__fly { display: none; } }
.stage__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }

/* Hero activity cards — positions and rotations from Figma (check-in on top) */
.hero-cards { position: absolute; z-index: 4; left: 50%; top: min(136px, 9.44vw); width: 450px; height: 278px; transform: translateX(-50%); }
.hero-card-wrap { position: absolute; }
.hero-card-wrap--checkin { left: 12px; top: 13px; transform: rotate(-7deg); z-index: 2; }
.hero-card-wrap--msg { left: 218px; top: 69px; transform: rotate(7deg); }
.hero-card { animation: float 7s ease-in-out infinite; }
.hero-card-wrap--msg .hero-card { animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.mini-card {
  width: 220px; background: #fff; border-radius: 16px;
  box-shadow: 0 9px 20px rgba(34, 49, 84, .14);
  overflow: hidden; text-align: left;
}
.mini-card__head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--blue-50); }
.mini-card__icon { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow-sm); }
.mini-card__icon .icon, .mini-card__icon img { width: 16px; height: 16px; }
.mini-card--warm .mini-card__head { background: var(--warm-50); }
.mini-card--green .mini-card__head { background: #edfaf4; }
.mini-card--green .mini-card__title { color: #293730; }
.mini-card--green .mini-card__icon { color: var(--green); }
.mini-card--green .avatar { background: var(--green-100); color: var(--green-700); }
.mini-card--green { box-shadow: 0 9px 20px rgba(48, 87, 69, .14); }
.mini-card--green .mini-card__body { display: grid; gap: 12px; }
.mini-card--green .bar > span { background: var(--green); }
.mini-card .bar { border-radius: 3px; background: #f1f3f6; }
.mini-card__title { font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: #0e1726; }
.mini-card__meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.mini-card__body { padding: 12px; }
.msgs--fixed { height: 138px; min-height: 0; padding: 12px; gap: 12px; grid-template-rows: auto auto; align-content: start; }
.msgs--fixed .msg { font-size: 12px; line-height: 1.45; }
.msgs--fixed .msg--in { width: 100%; max-width: none; background: #f6f1ef; color: #26160e; }
.msgs--fixed .msg__from { font-size: 10px; line-height: 1.3; color: #7a675d; }
.msg-slot { display: grid; justify-items: end; }
.msg-slot > * { grid-area: 1 / 1; }

.checkin-row { display: flex; align-items: center; gap: 10px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.checkin-row.is-out { opacity: 0; transform: translateY(6px); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--blue-700); background: var(--blue-100);
}
.checkin-row__name { font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink-2); }
.checkin-row__sub { margin-top: 2px; font-size: 10px; color: var(--muted); line-height: 1.3; }
.checkin-row__photo { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.checkin-row__check {
  position: relative; margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: .833px solid var(--green); color: #fff;
  display: grid; place-items: center; transition: border-color .25s var(--ease), transform .3s var(--ease);
}
/* morph: the empty ring tightens, fills green from the centre, then the tick draws itself */
.checkin-row__check::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform .38s var(--ease); }
.checkin-row__check .icon { position: relative; width: 12px; height: 12px; stroke-width: 2.6; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .34s var(--ease) .26s; }
.checkin-row__check.is-morph { transform: scale(.82); border-color: var(--green); }
.checkin-row__check.is-on { border-color: var(--green); }
.checkin-row__check.is-on::before { transform: scale(1); }
.checkin-row__check.is-on .icon { stroke-dashoffset: 0; }
.checkin-progress { display: grid; gap: 8px; }
.checkin-progress__label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.checkin-progress__label b { color: #0e1726; font-weight: 500; }
.bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .6s var(--ease); }

.msgs { display: grid; gap: 8px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.msg.is-hidden { opacity: 0; transform: translateY(6px); }
.msg--in { background: var(--bg-soft); border-bottom-left-radius: 4px; justify-self: start; }
.msg--out { background: var(--warm); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.msg__from { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.typing { display: inline-flex; gap: 4px; padding: 11px 12px; background: var(--warm-50); border-radius: 14px; border-bottom-right-radius: 4px; justify-self: end; transition: opacity .25s; }
.typing.is-hidden { opacity: 0; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--warm); opacity: .35; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

@media (max-width: 960px) {
  .hero__stage { height: auto; margin-top: 0; display: flex; flex-direction: column; }
  .hero-cards { position: relative; left: auto; top: auto; transform: none; width: auto; height: auto; margin: 48px auto 8px; display: flex; justify-content: center; gap: 16px; }
  .hero-card-wrap { position: relative; left: auto; top: auto; }
  .hero-card-wrap--checkin { order: -1; transform: rotate(-3deg); }
  .hero-card-wrap--msg { transform: rotate(3deg); }
  /* illustrations sit side by side under the cards */
  .stage__ill, .stage__ground, .stage__fade { position: absolute; }
  .hero__stage::after { content: ""; display: block; height: 40vw; }
  .stage__ill--left { width: 51vw; }
  .stage__ill--right { width: 53vw; }
  .stage__ground { height: 6vw; }
  .stage__fade { height: 40px; }
}
@media (max-width: 640px) {
  /* phones (Figma 175:35292): 12px under the eyebrow, no trust line, cards at 80% side by side, tilted ±7° */
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__trust { display: none; }
  .hero-cards { display: block; width: 353px; height: 226px; margin: 40px 0 8px 50%; transform: translateX(-50%); }
  .hero-card-wrap { position: absolute; transform-origin: 50% 50%; }
  .hero-card-wrap--checkin { left: -13px; top: -10px; transform: rotate(-7deg) scale(.8); }
  .hero-card-wrap--msg { left: 145px; top: 38px; transform: rotate(7deg) scale(.8); }
}

/* --- Trust bar -------------------------------------------------------- */
.trust { padding-block: var(--s2) var(--s4); position: relative; z-index: 2; }
.trust__title { text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; margin-top: var(--s4); border-top: 1px solid var(--line); }
.trust .stats { margin-top: var(--s4); }
.stat { padding: var(--s3) var(--s2) 0; text-align: center; display: grid; gap: var(--s1); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; color: var(--muted); }
.logos { margin-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px clamp(32px, 5vw, 64px); }
.logo-ph { display: inline-flex; align-items: center; gap: 8px; color: #8a93a3; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; opacity: .85; transition: opacity .2s; }
.logo-ph:hover { opacity: 1; }
.logo-ph .icon { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: var(--s3); }
}

/* --- Problem ---------------------------------------------------------- */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 104px); align-items: center; }
.problem__copy { display: grid; }
.problem__copy > .h2 { margin-top: var(--s1); }
.problem__copy > .lead { margin-top: var(--s2); }
.problem__copy > .pain-list, .problem__copy > .problem__resolve { margin-top: var(--s3); }
.pain-list { display: grid; }
.pain-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.pain-list li:last-child { border-bottom: 0; }
.pain-list .x { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); color: var(--subtle); display: grid; place-items: center; flex: none; }
.pain-list .x .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.problem__resolve { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue-700); font-weight: 500; }
.problem__resolve .icon { color: var(--blue); }

.chaos { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.chaos__ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed #d8dde5; }
.chaos__ring--2 { inset: 27%; }
.chaos__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 28px; background: var(--blue); color: #fff;
  display: grid; place-items: center; text-align: center; box-shadow: 0 24px 48px -16px rgba(37, 99, 215, .45);
}
.chaos__center img { width: 62%; filter: brightness(0) invert(1); }
.chaos__center small { display: block; font-size: 12px; opacity: .8; margin-top: 6px; }
.tool-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
}
.tool-chip__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--bg-soft); color: var(--muted); display: grid; place-items: center; }
.tool-chip__ic .icon { width: 16px; height: 16px; }
.tool-chip--1 { left: 2%; top: 12%; transform: rotate(-6deg); }
.tool-chip--2 { right: 0; top: 18%; transform: rotate(5deg); }
.tool-chip--3 { left: -2%; top: 62%; transform: rotate(4deg); }
.tool-chip--4 { right: 2%; top: 70%; transform: rotate(-5deg); }
.tool-chip--5 { left: 34%; bottom: 0; transform: rotate(-2deg); }
/* when revealed, chips settle onto the rings */
.chaos.is-in .tool-chip--1 { transform: rotate(0) translate(6%, 10%); }
.chaos.is-in .tool-chip--2 { transform: rotate(0) translate(-6%, 6%); }
.chaos.is-in .tool-chip--3 { transform: rotate(0) translate(8%, -6%); }
.chaos.is-in .tool-chip--4 { transform: rotate(0) translate(-6%, -8%); }
.chaos.is-in .tool-chip--5 { transform: rotate(0) translate(0, -10%); }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; } .chaos { max-width: 440px; } }
@media (max-width: 480px) { .tool-chip { font-size: 12.5px; padding: 8px 10px 8px 8px; } .tool-chip__ic { width: 24px; height: 24px; } }

/* --- Platform overview (tabs) ---------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); width: fit-content; margin: 0 auto var(--s3); }
.tab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s, box-shadow .2s;
}
.tab .icon { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(16, 24, 40, .04); }
.tab[aria-selected="true"] .icon { color: var(--blue); }
.tab__progress { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; opacity: 0; }
.tab[aria-selected="true"] .tab__progress { opacity: .9; }
@media (max-width: 760px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}

#platform { padding-top: var(--s4); padding-bottom: var(--s4); } /* stats → platform: 64 + 64 = 128 */
.tabs-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto var(--s3); }
.tabs-row .tabs { margin: 0; }
.tabs-play {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.tabs-play:hover { color: var(--blue); border-color: var(--blue-200); transform: scale(1.06); }
.tabs-play svg { width: 14px; height: 14px; fill: currentColor; }
.tabs-play__play, .tabs-play[aria-pressed="true"] .tabs-play__pause { display: none; }
.tabs-play[aria-pressed="true"] .tabs-play__play { display: block; }
@media (max-width: 760px) { .tabs-row { gap: 8px; } .tabs-row .tabs { width: auto; min-width: 0; flex: 1; } }

/* Product screens — real HTML at the Figma width (1080px), scaled to fit by main.js (--k); 640px tall at every size.
   At 900px and below the window stops shrinking: it fills the column and each screen restacks (see @container scr) */
.shots {
  --k: 1; --h: 640px; position: relative; max-width: 1080px; margin: 0 auto -40px; height: calc(var(--h) * var(--k));
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%);
}
.win {
  position: absolute; left: 0; top: 0; width: 1080px; height: var(--h); transform: scale(var(--k)); transform-origin: 0 0;
  border-radius: 20px; background: #fff; border: 1px solid #e9ecf1; overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .10), 0 4px 12px rgba(16, 24, 40, .04);
  font-feature-settings: "cv09" 1, "ss11" 1; color: #20252d; text-align: left;
}
.win img { display: block; max-width: none; }
.win__bar { display: flex; align-items: center; height: 44px; padding: 0 16px; background: #f6f9fe; border-bottom: 1px solid #e9ecf1; }
.win__url { margin: 0 auto; transform: translateX(-21px); padding: 4px 40px; border-radius: 6px; background: #f1f3f6; color: #98a2b3; font-size: 12px; font-weight: 500; line-height: 1.3; }
.win__body { display: flex; height: calc(100% - 45px); }
.win__side { flex: none; width: 210px; padding: 18px 12px; background: #f6f9fe; border-right: 1px solid #e9ecf1; }
.win__logo { margin: 4px 0 18px 8px; }
.win__nav { display: grid; gap: 2px; }
.win__item { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 16px; color: #525966; transition: background-color .3s, color .3s; }
.win__item.is-active { background: #e9f0fb; color: #163c83; }
.win__badge { display: grid; place-items: center; min-width: 16px; height: 16px; margin-left: auto; padding: 0 2px; border-radius: 99px; background: #df1c41; color: #fff; font-size: 11px; font-weight: 500; line-height: 12px; transition: transform .3s var(--ease), opacity .3s; }
.win__badge.is-gone { transform: scale(0); opacity: 0; }
.win__groups { display: grid; gap: 16px; margin-top: 16px; }
.win__group { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 4px 0; font-size: 12px; font-weight: 500; line-height: 16px; color: #525966; text-transform: uppercase; border-radius: 6px; transition: color .3s; }
.win__group.is-active { color: #163c83; }
.win__main { position: relative; flex: 1; min-width: 0; container: scr / inline-size; }
.win .panel { height: 100%; overflow: hidden; animation: scrIn .45s var(--ease); }
@keyframes scrIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  /* tablets and phones: real size, full column width, nothing cropped */
  .shots { margin-bottom: -24px; }
  .win { position: relative; width: 100%; transform: none; }
}
@media (max-width: 760px) { .win__side { display: none; } }
@media (max-width: 640px) {
  .win { border-radius: 16px; }
  .win__bar { height: 36px; }
  .win__body { height: calc(100% - 37px); }
  .trust { padding-top: 0; }
}

/* screen parts (values from the Figma app windows) */
.scr { padding: 28px 32px; }
.scr button { font: inherit; color: inherit; cursor: pointer; }
.scr-title { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: #0e1726; margin-bottom: 16px; }
.scr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.scr-kpi { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid #e2e3e9; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(228, 229, 231, .24); }
.scr-kpis--bil .scr-kpi { gap: 12px; }
.win .scr-kpi__mi { display: none; } /* phone-only icon */
.scr-kpi__ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); }
.scr-kpi b { display: block; font-size: 20px; font-weight: 500; line-height: 24px; letter-spacing: -0.015em; color: #20232d; font-variant-numeric: tabular-nums; }
.scr-kpi b.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--blue); } }
.scr-kpi div > span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: #525666; }
.scr-kpis--bil .scr-kpi div > span { margin-top: 2px; }

.scr-table { overflow: hidden; background: #fff; }
.scr-table--att { border: 1px solid #dde1e8; border-radius: 8px; }
.scr-th, .scr-tr { display: grid; align-items: center; }
.scr-table--att .scr-th, .scr-table--att .scr-tr { grid-template-columns: 1fr 220px 157px; }
.scr-th { background: #e9f0fb; font-size: 14px; line-height: 20px; letter-spacing: -0.006em; color: #525966; margin-bottom: 4px; }
.scr-th > span { display: flex; align-items: center; gap: 2px; padding: 8px 12px; }
.scr-th > span:first-child { padding-left: 24px; }
.scr-table--att .scr-th > span:last-child { justify-content: center; }
.scr-tr { height: 64px; margin-bottom: 4px; box-shadow: 0 1px 0 #e2e4e9, 0 4px 0 #fff; font-size: 14px; font-weight: 500; line-height: 20px; color: #20252d; transition: background-color .25s; }
.scr-tr > span { padding: 0 20px 0 12px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.scr-tr > span:first-child { padding-left: 24px; }
.scr-tr:hover { background: #fafbfe; }
.scr-who { gap: 12px; }
.scr-av { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.scr-av--initials { position: relative; display: grid; place-items: center; }
.scr-av--initials img { position: absolute; inset: 0; }
.scr-av--initials i { position: relative; font-style: normal; font-size: 16px; font-weight: 500; color: #0f2857; opacity: .8; }
.scr-badge { display: inline-flex; align-items: center; padding: 4px 10px; border: 0; border-radius: 999px; font-style: normal; font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; transition: background-color .35s, color .35s, transform .35s var(--ease); }
.scr-badge.is-pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }
.scr-badge--sm { font-size: 12px; line-height: 16px; }
.scr-badge--warn { background: #ffdac2; color: #883c09; }
.scr-badge--ok { background: #cbf5e5; color: #205d48; }
.scr-badge--out { background: #d3e0f8; color: #163c83; }
.scr-badge--proc { background: #e3cbf5; color: #43205d; }
.scr-badge--err { background: #f8c9d2; color: #710e21; }
.scr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 125px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #2563d7; background: #2563d7; color: #fff !important; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(55, 93, 251, .08); transition: background-color .25s, color .25s, transform .2s var(--ease), box-shadow .25s; }
.scr-btn img { width: 20px; height: 20px; margin-right: 4px; }
.scr-btn:hover { background: #1f55bb; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37, 99, 215, .22); }
.scr-btn:active { transform: scale(.97); }
.scr-btn--line { background: #fff; color: #2563d7 !important; }
.scr-btn--line:hover { background: #f1f5fe; }
.scr-btn--done { background: #f6f7fa; border-color: #e2e4e9; color: #6b7381 !important; box-shadow: none; }
.scr-btn--done:hover { background: #eef0f4; box-shadow: none; }

.scr-person { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.scr-person img { border-radius: 50%; }
.scr-person b { display: block; font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.015em; }
.scr-person span { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: #6b7081; }

/* Newsletter: the issue scrolls inside its card, with a visible scrollbar and a reading-progress line */
.scr--nl { padding-bottom: 22px; }
.nl { height: 100%; border: 1px solid #e2e4e9; border-radius: 16px; background: #fff; overflow: hidden; }
.nl__scroll { height: 100%; overflow-y: auto; scroll-behavior: smooth; outline: 0; }
.nl__scroll::-webkit-scrollbar { width: 12px; }
.nl__scroll::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.nl__scroll::-webkit-scrollbar-thumb { border: 3px solid #fff; border-radius: 99px; background: #c9d0db; }
.nl__scroll:hover::-webkit-scrollbar-thumb { background: #98a2b3; }
.nl__scroll::-webkit-scrollbar-thumb:active { background: #2563d7; }
@supports not selector(::-webkit-scrollbar) { .nl__scroll { scrollbar-width: thin; scrollbar-color: #c9d0db transparent; } }
.nl__scroll:focus-visible { box-shadow: inset 0 0 0 2px rgba(37, 99, 215, .35); }
.nl__meta { display: flex; align-items: center; gap: 6px; padding: 20px 24px; border-bottom: 1px solid #e2e4e9; }
.nl__from, .nl__to { display: flex; align-items: center; gap: 6px; }
.nl__meta img:not(.nl__arrow) { width: 31.5px; height: 31.5px; border-radius: 50%; }
.nl__from b { display: block; font-size: 14px; font-weight: 600; line-height: 20px; color: #0a0e14; }
.nl__from small { display: block; margin-top: 1.5px; font-size: 9px; line-height: 12px; color: #525966; }
.nl__room { position: relative; flex: none; display: grid; place-items: center; width: 31.5px; height: 31.5px; }
.nl__room img { position: absolute; inset: 0; }
.nl__room i { position: relative; font-style: normal; font-size: 15.6px; font-weight: 700; line-height: 1; color: #fff; opacity: .8; }
.nl__to, .nl__date { font-size: 14px; font-weight: 500; line-height: 20px; color: #525966; }
.nl__date { margin-left: auto; white-space: nowrap; }
.nl__head { position: sticky; top: 0; z-index: 2; padding: 20px 24px 19px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: center; }
.nl__head h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: #20252d; }
.nl__head p { margin-top: 8px; font-size: 14px; line-height: 20px; color: #525966; }
.nl__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #e2e4e9; }
.nl__progress i { position: absolute; inset: -1px auto 0 0; width: 100%; height: 2px; background: #2563d7; border-radius: 0 2px 2px 0; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform .12s linear; }
.nl__body { display: grid; gap: 20px; padding: 20px 24px 48px; }
.nl-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.nl-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.nl-col { display: grid; gap: 16px; }
.nl-pic { position: relative; margin: 0; height: 200px; border-radius: 16px; overflow: hidden; background: #eef1f6; }
.nl-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.nl-pic:hover img { transform: scale(1.05); }
.nl-text { display: grid; gap: 8px; }
.nl-text h4 { font-size: 16px; font-weight: 700; line-height: 24px; color: #344054; }
.nl-text p { font-size: 14px; line-height: 20px; color: #525966; }
.nl-text p.nl-lg { font-size: 16px; line-height: 24px; }
.nl-row > .nl-text, .nl-col > .nl-text { transition: transform .4s var(--ease); }
.panel.is-active .nl-row { animation: docIn .6s var(--ease) both; }
.panel.is-active .nl-row:nth-child(2) { animation-delay: .08s; }
.panel.is-active .nl-row:nth-child(n+3) { animation-delay: .14s; }

.scr-card { border: 1px solid #e2e3e9; border-radius: 16px; background: #fff; overflow: hidden; }
.scr-card__head { display: flex; align-items: center; gap: 12px; padding: 24px 24px 16px; border-bottom: 1px solid #e2e3e9; }
.scr-card__head > div { flex: 1; }
.scr-h { display: block; font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.015em; margin-bottom: 8px; }
.scr-sub { font-size: 14px; line-height: 20px; color: #525966; }
.scr-sub b { font-weight: 700; color: #20252d; }
.scr-filter { display: inline-flex; align-items: center; gap: 4px; padding: 10px 10px 10px 14px; border: 1px solid #e2e4e9; border-radius: 10px; font-size: 14px; font-weight: 500; line-height: 20px; color: #525966; box-shadow: 0 1px 2px rgba(82, 88, 102, .06); }
.scr-table--bil .scr-th, .scr-table--bil .scr-tr { grid-template-columns: 1fr 1fr 1fr 116px; }
.scr-table--bil .scr-th > span, .scr-table--bil .scr-tr > span { padding-left: 16px; padding-right: 16px; }
.scr-table--bil .scr-th > span:first-child, .scr-table--bil .scr-tr > span:first-child { padding-left: 24px; }
.scr-table--bil .scr-th > span:nth-child(3), .scr-table--bil .scr-tr > span:nth-child(3) { justify-content: flex-end; }
.scr-pay { position: relative; }
.scr-pay:not(.is-paid):hover { background: #2563d7; color: #fff; }
.scr-pay.is-paid { background: #cbf5e5; color: #205d48; cursor: default; }

.scr-card__bar { display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 20px; border-bottom: 1px solid #e2e4e9; }
.scr-card__bar b { flex: 1; font-size: 16px; font-weight: 500; line-height: 24px; color: #0a0c14; }
.scr-link { display: inline-flex; align-items: center; gap: 2px; padding: 6px 6px 6px 10px; font-size: 14px; font-weight: 500; line-height: 20px; color: #2563d7; }
.scr-adm-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 20px; }
.scr-stat { display: flex; gap: 12px; align-items: flex-start; }
.scr-key { display: grid; place-items: center; width: 48px; height: 48px; border: 1.2px solid #e2e4e9; border-radius: 10.3px; box-shadow: 0 1.2px 2.4px rgba(228, 229, 231, .24); }
.scr-stat b { display: block; font-size: 20px; font-weight: 500; line-height: 24px; }
.scr-stat div > span { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 20px; color: #525666; }
.scr-alert { position: relative; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 8px 12px; border: 0; border-radius: 12px; background: #fdedf0; text-align: left; transition: background-color .35s, transform .2s var(--ease); }
.scr-alert:hover { transform: translateY(-1px); }
.scr-alert > span { display: grid; gap: 4px; }
.scr-alert b { font-size: 14px; font-weight: 500; line-height: 20px; color: #0a0e14; }
.scr-alert > span span { font-size: 12px; line-height: 16px; color: #525966; }
.scr-alert__cta { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-style: normal; font-size: 12px; font-weight: 500; color: #df1c41; opacity: 0; transition: opacity .2s; }
.scr-alert:hover .scr-alert__cta { opacity: 1; }
.scr-alert.is-ok { background: #e9f8f2; cursor: default; }
.scr-alert.is-ok:hover { transform: none; }
.scr-alert.is-ok .scr-alert__cta { display: none; }
.scr-alert img { transition: filter .35s; }
.scr-alert.is-ok img { filter: hue-rotate(160deg) saturate(.8); }
.scr-adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.scr-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px; }
.scr-class { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 16px; min-height: 64px; border: 1px solid #e2e4e9; border-radius: 16px; font-size: 14px; font-weight: 500; line-height: 20px; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); cursor: pointer; }
.scr-class > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-class:hover { border-color: #a8c1f0; box-shadow: 0 6px 16px -6px rgba(37, 99, 215, .25); transform: translateY(-2px); }
.scr-posts { display: grid; padding: 12px 20px; }
.scr-post { display: flex; align-items: center; gap: 16px; padding: 8px 0; margin-bottom: 8px; box-shadow: 0 1px 0 #e2e4e9; cursor: pointer; }
.scr-post:last-child { box-shadow: none; }
.scr-post > span { flex: 1; min-width: 0; display: grid; gap: 4px; }
.scr-post b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; line-height: 20px; }
.scr-post small { font-size: 12px; line-height: 16px; color: #6b7381; }
.scr-post img { transition: transform .2s var(--ease); }
.scr-post:hover b { color: #2563d7; }
.scr-post:hover img { transform: translateX(3px); }
.scr-forms { display: grid; gap: 16px; padding: 20px; }
.scr-form { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; border: 1px solid #e2e4e9; border-radius: 12px; font-size: 16px; font-weight: 500; line-height: 24px; color: #20252d; cursor: pointer; transition: border-color .2s, box-shadow .2s, color .2s; }
.scr-form img { transition: transform .2s var(--ease); }
.scr-form:hover { border-color: #a8c1f0; box-shadow: 0 6px 16px -6px rgba(37, 99, 215, .25); color: #2563d7; }
.scr-form:hover img { transform: translateX(3px); }
.scr-bdays { display: grid; gap: 16px; padding: 20px; }
.scr-bday { display: flex; align-items: center; gap: 12px; }
.scr-bday img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.scr-bday > span { display: grid; gap: 4px; }
.scr-bday b { font-size: 16px; font-weight: 500; line-height: 24px; color: #20252d; }
.scr-bday small { font-size: 14px; line-height: 20px; color: #6b7381; }
.scr .sm { display: none; }
/* Administration scrolls inside the window, with the same slim scrollbar as the newsletter */
.win .scr--adm { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 72px; }
.scr--adm::-webkit-scrollbar, .scr--doc::-webkit-scrollbar { width: 12px; }
.scr--adm::-webkit-scrollbar-track, .scr--doc::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.scr--adm::-webkit-scrollbar-thumb, .scr--doc::-webkit-scrollbar-thumb { border: 3px solid #fff; border-radius: 99px; background: #c9d0db; }
.scr--adm:hover::-webkit-scrollbar-thumb, .scr--doc:hover::-webkit-scrollbar-thumb { background: #98a2b3; }
@supports not selector(::-webkit-scrollbar) { .scr--adm, .scr--doc { scrollbar-width: thin; scrollbar-color: #c9d0db transparent; } }

.scr-doc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.scr-doc-head .scr-title { margin-bottom: 0; }
.scr-new { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #2563d7; color: #fff !important; font-size: 16px !important; font-weight: 500; letter-spacing: -0.01em; box-shadow: 0 1px 1px rgba(16, 24, 40, .05); transition: background-color .2s, transform .2s var(--ease); }
.scr-new:hover { background: #1f55bb; transform: translateY(-1px); }
.scr-new:active { transform: translateY(0) scale(.97); }
.scr-new--sm { height: 30px; padding: 0 12px; border-radius: 7.5px; font-size: 12px !important; letter-spacing: -0.01em; }

/* Forms (Figma 36:29971): year groups that open and close, progress cards */
.frm { border: 1px solid #dde1e8; border-radius: 16px; overflow: hidden; background: #fff; }
.frm__body { display: grid; padding: 16px; }
.frm-group + .frm-group { border-top: 1px solid #e2e4e9; }
.frm-group { border-radius: 8px; transition: background-color .35s; }
.frm-group.is-open { background: #e9f0fb; border-top-color: transparent; }
.frm-group.is-open + .frm-group { border-top-color: transparent; }
.frm-group__head { display: flex; align-items: center; gap: 22px; width: 100%; height: 52px; padding: 0 30px 0 24px; border: 0; border-bottom: 1px solid transparent; background: none; text-align: left; font-size: 15px !important; font-weight: 500; line-height: 1.5; letter-spacing: -0.015em; color: #0a0e14 !important; transition: border-color .35s; }
.frm-group__head > span { flex: 1; }
.frm-group.is-open .frm-group__head { border-bottom-color: #dde1e8; }
.frm-group__head:hover > span { color: #2563d7; }
.frm-chev { transition: transform .35s var(--ease); }
.frm-group.is-open .frm-chev { transform: rotate(180deg); }
.frm-group__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.frm-group.is-open .frm-group__body { grid-template-rows: 1fr; }
.frm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; overflow: hidden; padding: 0 12px; transition: padding .45s var(--ease); }
.frm-group.is-open .frm-grid { padding: 12px; }
.frm-card { display: grid; gap: 16px; padding: 20px; border: 1px solid #e2e4e9; border-radius: 12px; background: #fff; text-align: left; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.frm-card:hover { border-color: #a8c1f0; box-shadow: 0 8px 20px -6px rgba(37, 99, 215, .16); transform: translateY(-2px); }
.frm-card:active { transform: translateY(0) scale(.99); }
.frm-card[hidden] { display: none; }
.frm-card.is-new { animation: frmIn .6s var(--ease) both; }
@keyframes frmIn { from { opacity: 0; transform: translateY(8px) scale(.98); box-shadow: 0 0 0 3px rgba(37, 99, 215, .25); } }
.frm-card__top { display: flex; align-items: center; gap: 8px; }
.frm-card__top > span { flex: 1; min-width: 0; display: grid; gap: 4px; }
.frm-card b { font-size: 16px; font-weight: 500; line-height: 24px; color: #20252d; }
.frm-meta { display: flex; gap: 16px; font-size: 12px; line-height: 16px; color: #525966; }
.frm-meta > span { display: flex; gap: 4px; white-space: nowrap; }
.frm-bar { display: block; height: 6px; border-radius: 999px; background: #d3e0f8; overflow: hidden; }
.frm-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: #2563d7; transition: width .9s var(--ease); }
.frm-prog { display: flex; justify-content: space-between; gap: 4px; margin-top: -8px; font-size: 14px; line-height: 20px; color: #525966; }
.frm-prog > span:first-child { font-weight: 500; transition: color .25s; }
.frm-card.is-sent .frm-prog > span:first-child { color: #0f9d6e; }

/* Documentation (Figma 149:27158): who wrote it, the note, the photo and developmental observations */
.scr--doc .scr-title { margin-bottom: 22px; }
.doc-who { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.doc-person { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; margin: -3px -8px -3px -3px; border-radius: 99px; transition: background-color .25s; }
.doc-person:hover { background: #f1f5fe; }
.doc-person img { width: 31.5px; height: 31.5px; border-radius: 50%; }
.doc-person b { display: block; font-size: 10.5px; font-weight: 600; line-height: 15px; color: #0a0e14; }
.doc-person--child b { font-weight: 500; color: #525966; }
.doc-person small { display: block; font-size: 9px; line-height: 12px; color: #525966; margin-top: 1.5px; }
.doc-who__arrow { transition: transform .3s var(--ease); }
.doc-who:hover .doc-who__arrow { transform: translateX(3px); }
.doc-note { font-size: 14px; line-height: 20px; color: #525966; margin-bottom: 12px; }
.doc-grid { display: flex; align-items: flex-start; gap: 16px; }
.doc-photo { flex: none; width: 300px; height: 200px; margin: 0; border-radius: 16px; overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.doc-photo:hover img { transform: scale(1.06); }
.obs-panel { flex: 1; min-width: 0; display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: #e3ebfb; }
.obs-panel__title { font-size: 16px; font-weight: 500; line-height: 24px; color: #0f182c; }
.obs { display: grid; gap: 12px; padding: 20px; border: 1px solid #dde1e8; border-radius: 16px; background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.obs:hover { border-color: #a8c1f0; box-shadow: 0 10px 24px -8px rgba(37, 99, 215, .18); transform: translateY(-2px); }
.obs header { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #e2e3e9; }
.obs header b { font-size: 16px; font-weight: 500; line-height: 24px; color: #0a0e14; }
.obs__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6.7px; background: var(--c); transition: transform .35s var(--ease); }
.obs:hover .obs__ic { transform: scale(1.1) rotate(-6deg); }
.obs dl { display: grid; gap: 12px; margin: 0; }
.obs dl div { display: flex; align-items: baseline; gap: 8px; }
.obs dt { flex: none; width: 80px; font-size: 14px; font-weight: 500; line-height: 20px; color: #344054; }
.obs dd { margin: 0; font-size: 14px; line-height: 20px; color: #525966; }
/* entrance each time the tab opens */
.panel.is-active .doc-note, .panel.is-active .doc-photo, .panel.is-active .obs-panel__title, .panel.is-active [data-obs] { animation: docIn .6s var(--ease) both; }
.panel.is-active .doc-photo { animation-delay: .08s; }
.panel.is-active .obs-panel__title { animation-delay: .14s; }
.panel.is-active [data-obs]:nth-of-type(1) { animation-delay: .22s; }
.panel.is-active [data-obs]:nth-of-type(2) { animation-delay: .34s; }
@keyframes docIn { from { opacity: 0; transform: translateY(10px); } }
.panel.is-active .frm-bar i { animation: barIn 1s var(--ease) .15s both; }
@keyframes barIn { from { width: 0; } }

/* Narrow window (phones, small tablets): every screen restacks into one column instead of being cropped */
@container scr (max-width: 600px) {
  /* Figma 198:50360 — Attendance, Billing and Administration at phone width */
  .scr { padding: 20px 24px; }
  .scr .lg { display: none; }
  .scr .sm { display: inline; }
  .scr-title { margin-bottom: 16px; }
  /* counts become small inline pills, two by two: icon, "Label:", value */
  .scr-kpis, .scr-kpis--bil { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .scr-kpi, .scr-kpis--bil .scr-kpi { justify-content: center; align-items: center; gap: 4px; padding: 8px; border-radius: 8px; }
  .scr-kpi__ic { display: none; }
  .win .scr-kpi__mi { display: block; width: 16px; height: 16px; }
  .scr-kpi > div { display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; white-space: nowrap; }
  .scr-kpi b { display: inline; font-size: 14px; font-weight: 700; line-height: 20px; color: #20252d; }
  .scr-kpi div > span, .scr-kpis--bil .scr-kpi div > span { margin: 0; font-size: 12px; line-height: 16px; }
  .scr-kpi div > span::after { content: ":"; }

  /* Attendance: photo, name over status, action on the right; rows split by hairlines */
  .scr-table--att { border: 0; border-radius: 0; border-top: 1px solid #e2e4e9; overflow: visible; }
  .scr-table--att .scr-th { display: none; }
  .scr-table--att .scr-tr { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; height: auto; margin: 0; padding: 16px 0; box-shadow: 0 1px 0 #e2e4e9; }
  .scr-table--att .scr-tr:hover { background: none; }
  .scr-table--att .scr-tr > span { padding: 0; overflow: visible; }
  .scr-table--att .scr-tr > span:first-child { padding: 0; }
  .scr-table--att .scr-who { align-items: flex-start; gap: 8px; min-width: 0; }
  .scr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .scr-who > img:last-child:not(.scr-av) { flex: none; }
  .scr-table--att .scr-tr > span:nth-child(2) { position: absolute; left: 52px; top: 40px; }
  .scr-table--att .scr-badge { padding: 3px 10px; font-size: 10px; line-height: 14px; }
  .scr-btn, .scr-btn--line, .scr-btn--done { width: auto; height: 28px; padding: 0 12px 0 6px; font-size: 12px; line-height: 16px; }
  .scr-btn img { width: 16px; height: 16px; margin-right: 4px; }
  .scr-btn:not(.scr-btn--line):not(.scr-btn--done) { padding-right: 10px; }

  /* Billing: description and date on the left, amount over status on the right */
  .scr-kpis--bil + .scr-card { border-color: #dde1e8; }
  .scr-card__head { padding: 20px; border-bottom-color: #e2e4e9; }
  .scr-card__head .scr-filter { display: none; }
  .scr-h { margin-bottom: 4px; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
  .scr-table--bil { padding: 16px 20px; }
  .scr-table--bil .scr-th { display: none; }
  .scr-table--bil .scr-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; height: auto; margin: 0; padding: 16px 0; box-shadow: 0 1px 0 #e2e4e9; }
  .scr-table--bil .scr-th + .scr-tr { padding-top: 0; }
  .scr-table--bil .scr-tr:last-child { padding-bottom: 0; box-shadow: none; }
  .scr-table--bil .scr-tr:hover { background: none; }
  .scr-table--bil .scr-tr > span:nth-child(n) { padding: 0; }
  .scr-table--bil .scr-tr > span:nth-child(1) { grid-area: 2 / 1; font-size: 12px; font-weight: 500; line-height: 16px; color: #667085; }
  .scr-table--bil .scr-tr > span:nth-child(2) { grid-area: 1 / 1; display: block; text-overflow: ellipsis; }
  .scr-table--bil .scr-tr > span:nth-child(3) { grid-area: 1 / 2; justify-content: flex-end; }
  .scr-table--bil .scr-tr > span:nth-child(4) { grid-area: 2 / 2; justify-content: flex-end; }
  .scr-table--bil .scr-badge { padding: 3px 10px; font-size: 10px; line-height: 14px; }

  /* Administration: one column of cards, links shorten to "View All", the ratio alert stays desktop only */
  .scr--adm { padding-bottom: 64px; }
  .scr-adm-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .scr-card__bar { gap: 12px; padding: 0 16px; }
  .scr-card__bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .scr-link { padding-right: 6px; }
  .scr-adm-stats { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
  .scr-adm-stats .scr-alert { display: none; }
  .scr-stat { gap: 8px; }
  .scr-key { width: 44px; height: 44px; border-radius: 9.4px; }
  .scr-key img { width: 19px; height: 19px; }
  .scr-stat b { font-size: 16px; font-weight: 600; }
  .scr-stat div > span { font-size: 12px; line-height: 16px; }
  .scr-classes { gap: 12px; padding: 16px; }
  .scr-class { padding: 12px; min-height: 0; }
  .scr-posts { padding: 12px 16px; }
  .scr-forms { gap: 12px; padding: 16px; }
  .scr-form { font-size: 14px; line-height: 20px; }
  .scr-bdays { padding: 16px; }
  .scr-bday img { width: 40px; height: 40px; }
  .scr-bday b { font-size: 14px; line-height: 20px; }
  .scr-bday small { font-size: 12px; line-height: 16px; }

  /* Forms: one card per row */
  .frm__body { padding: 8px; }
  .frm-group__head { gap: 10px; padding: 0 12px; }
  .frm-grid { grid-template-columns: minmax(0, 1fr); }
  .frm-group.is-open .frm-grid { padding: 8px; }
  .frm-card { padding: 16px; }
  .frm-meta { flex-wrap: wrap; gap: 4px 12px; }

  /* Communications: same issue in one column; the date drops under the sender */
  .scr--nl { padding: 16px 16px 16px; }
  .nl__meta { gap: 4px; padding: 14px 12px; white-space: nowrap; }
  .nl__from, .nl__to { gap: 5px; min-width: 0; }
  .nl__meta img:not(.nl__arrow), .nl__room { width: 24px; height: 24px; }
  .nl__room i { font-size: 12px; }
  .nl__from b { font-size: 12px; line-height: 16px; }
  .nl__from small { margin-top: 0; font-size: 8px; line-height: 11px; }
  .nl__arrow { width: 14px; height: 14px; }
  .nl__to { font-size: 12px; line-height: 16px; }
  .nl__date { display: none; }
  .nl__head { padding: 14px 16px 13px; }
  .nl__head h3 { font-size: 18px; }
  .nl__head p { margin-top: 4px; font-size: 13px; line-height: 18px; }
  .nl__body { gap: 20px; padding: 20px 16px 48px; }
  .nl-row--split, .nl-row--two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nl-text p.nl-lg { font-size: 14px; line-height: 20px; }

  /* Documentation: photo above the observations; the screen scrolls like Administration */
  .win .scr--doc { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 72px; }
  .doc-grid { flex-direction: column; align-items: stretch; }
  .doc-photo { width: 100%; height: 190px; }
  .obs-panel { padding: 12px; }
  .obs { padding: 14px; }
  .obs dl div { flex-direction: column; gap: 2px; }
  .obs dt { width: auto; }
}
@container scr (max-width: 360px) {
  /* phone window inside the page margins: a little less side padding so labels keep their room */
  .scr { padding-inline: 16px; }
  .scr-kpi, .scr-kpis--bil .scr-kpi { padding-inline: 4px; }
  .scr-classes { gap: 8px; padding: 12px; }
  .scr-class { gap: 6px; padding: 10px; }
}

/* App window frame (legacy panels, kept for parked sections) */
.app {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; max-width: 1080px; margin: 0 auto;
}
.app__bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e4e7ec; }
.app__url { margin: 0 auto; font-size: 12px; color: var(--subtle); background: var(--bg-soft); border-radius: 6px; padding: 4px 40px; }
.app__body { display: grid; grid-template-columns: 210px 1fr; min-height: 520px; }
.app__side { border-right: 1px solid var(--line); padding: 18px 12px; display: grid; align-content: start; gap: 2px; background: #fcfcfd; }
.app__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 600; font-size: 14px; }
.app__brand img { height: 14px; }
.app__nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); transition: background-color .25s, color .25s; }
.app__nav .icon { width: 16px; height: 16px; }
.app__nav.is-active { background: var(--blue-50); color: var(--blue-700); font-weight: 500; }
.app__side-foot { margin-top: 28px; padding: 12px 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.app__side-foot .avatar { width: 28px; height: 28px; font-size: 11px; }
.app__main { position: relative; padding: 28px 32px; background: #fff; }
.panel { display: none; animation: panelIn .5s var(--ease); }
.panel.is-active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.panel__sub { font-size: 13px; color: var(--muted); }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pill-btn .icon { width: 14px; height: 14px; }
.pill-btn--ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: #fff; }
.chip .icon { width: 14px; height: 14px; color: var(--blue); }
.chip--on { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 64px 32px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.tl-item:last-child { border-bottom: 0; }
.tl-time { font-size: 12.5px; color: var(--subtle); padding-top: 6px; font-variant-numeric: tabular-nums; }
.tl-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.tl-ic--green, .float-note .tl-ic { background: var(--green-50); color: var(--green); }
.tl-ic .icon { width: 16px; height: 16px; }
.tl-title { font-size: 14px; font-weight: 500; }
.tl-desc { font-size: 13px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); margin-top: 6px; }
.tag--blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi__label { font-size: 12.5px; color: var(--muted); }
.kpi__value { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--subtle); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.table .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--bg-soft); color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.status--in { background: var(--green-50); color: var(--green-700); }
.status--out { color: var(--muted); }
.status--warn { color: #b54708; background: #fffaeb; }

.thread { display: grid; grid-template-columns: 230px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 400px; }
.thread__list { border-right: 1px solid var(--line); background: #fcfcfd; }
.thread__item { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-2); align-items: center; }
.thread__item.is-active { background: #fff; box-shadow: inset 2px 0 0 var(--blue); }
.thread__item .avatar { width: 32px; height: 32px; font-size: 11px; }
.thread__name { font-size: 13px; font-weight: 500; }
.thread__preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.thread__body { padding: 18px; display: grid; align-content: start; gap: 10px; }
.thread__body .msg { font-size: 13.5px; max-width: 75%; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 280px; }
.photo { border-radius: 10px; overflow: hidden; background: var(--blue-50); aspect-ratio: 4/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.portfolio-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.portfolio-head .avatar { width: 48px; height: 48px; font-size: 15px; }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.milestone { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.milestone .photo { border-radius: 0; aspect-ratio: 16/10; }
.milestone__body { padding: 12px 14px 14px; }
.milestone__date { font-size: 11.5px; color: var(--subtle); }
.milestone__title { font-size: 13.5px; font-weight: 500; margin-top: 2px; line-height: 1.35; }

.admin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.box__title { font-size: 13px; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.box__title span { font-weight: 400; color: var(--muted); font-size: 12px; }
.ratio { display: grid; grid-template-columns: 90px 1fr 50px; align-items: center; gap: 12px; font-size: 13px; padding: 7px 0; }
.ratio b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.checklist { display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }
.checklist li { display: flex; gap: 10px; align-items: center; }
.tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; flex: none; }
.tick .icon { width: 11px; height: 11px; stroke-width: 3; }
.tick--off { background: var(--line); color: transparent; }

@media (max-width: 900px) {
  .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__main { padding: 20px; overflow-x: auto; }
  .thread { grid-template-columns: 1fr; }
  .thread__list { display: none; }
  .milestones { grid-template-columns: 1fr 1fr; }
  .milestone:nth-child(3) { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { display: none; }
  .app__url { padding: 4px 16px; }
  .tl-item { grid-template-columns: 52px 28px 1fr; gap: 10px; }
}

/* --- Feature rows ----------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s4) clamp(64px, 8vw, 128px); align-items: center; }
.feature__copy { display: grid; max-width: 480px; justify-items: start; }
.feature__copy > .h3, .feature__copy > .h2 { margin-top: var(--s1); }
.feature__copy > .lead { margin-top: var(--s2); }
.feature__copy > .benefits { margin-top: var(--s3); }
.feature__copy > .link-arrow { margin-top: var(--s3); }
.benefits { display: grid; gap: 12px; }
.benefits--2col { grid-template-columns: 1fr 1fr; column-gap: var(--s3); }
.benefits--sm li { font-size: 15px; }
.benefits li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 17px; }
.bcheck { width: 20px; height: 20px; flex: none; }
.benefits .tick { width: 20px; height: 20px; background: var(--green-50); color: var(--green); }
.benefits .tick .icon { width: 12px; height: 12px; }

.stage {
  position: relative; border-radius: var(--radius-lg); background: var(--bg-soft);
  padding: var(--s4) var(--s3); display: grid; place-items: center; min-height: 520px; overflow: hidden;
}
.stage::before { /* faint dot grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#dfe3ea 1px, transparent 1px); background-size: 18px 18px; opacity: .6;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.stage > * { position: relative; }
.stage--tint { background: var(--bg-tint); }
.stage--tint::before { display: none; }
/* Feature · Documentation visual (Figma 149:27553): the observations panel, centred in the frame */
.obs-vis { width: 456px; max-width: 100%; flex: none; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.obs-panel--feat { gap: 11.2px; padding: 18.7px; border-radius: 15px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: box-shadow .5s var(--ease); }
.stage:hover .obs-panel--feat { box-shadow: 0 24px 48px -16px rgba(37, 99, 215, .22); }
.obs-panel--feat .obs-panel__title { font-size: 15px; line-height: 22.4px; }
.obs-panel--feat .obs { gap: 11.2px; padding: 18.7px; border-width: .935px; border-radius: 15px; }
.obs-panel--feat .obs header { position: relative; gap: 7.5px; padding-bottom: 11.2px; border-bottom: 0; }
.obs-panel--feat .obs header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .935px; background: #e2e3e9; transform-origin: 0 50%; }
.obs-panel--feat .obs:hover header::after { background: linear-gradient(90deg, #2563d7, #a8c1f0); }
.obs-panel--feat .obs header b { font-size: 15px; line-height: 22.4px; }
.obs-panel--feat .obs__ic { width: 30px; height: 30px; border-radius: 6.3px; }
.obs-panel--feat .obs dl { gap: 11.2px; }
.obs-panel--feat .obs dl div { gap: 7.5px; }
.obs-panel--feat .obs dt { width: 75px; font-size: 13.1px; line-height: 18.7px; }
.obs-panel--feat .obs dd { font-size: 13.1px; line-height: 18.7px; transition: color .25s; }
.obs-panel--feat .obs:hover dd { color: #20252d; }
/* entrance when the section scrolls in (backwards fill, so hover states take over afterwards) */
.reveal.is-in .obs-panel--feat .obs { animation: docIn .7s var(--ease) .25s backwards; }
.reveal.is-in .obs-panel--feat .obs:nth-of-type(2) { animation-delay: .4s; }
.reveal.is-in .obs-panel--feat .obs header::after { animation: lineIn .8s var(--ease) .55s backwards; }
.reveal.is-in .obs-panel--feat .obs:nth-of-type(2) header::after { animation-delay: .7s; }
@keyframes lineIn { from { transform: scaleX(0); } }
.stage:has(.obs-vis) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
@media (max-width: 560px) {
  .stage:has(.obs-vis) { min-height: 0; padding: 32px 16px; }
  .obs-panel--feat { padding: 14px; }
  .obs-panel--feat .obs { padding: 14px; }
  .obs-panel--feat .obs dl div { flex-direction: column; gap: 2px; }
}
.ui-card--lg { width: min(100%, 440px) !important; }
.ui-card { width: min(100%, 400px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 20px; }
.ui-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ui-card__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ui-card__meta { font-size: 12.5px; color: var(--muted); }
.float-note {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.float-note .tl-ic { width: 28px; height: 28px; border-radius: 8px; }
.float-note b { color: var(--ink); font-weight: 600; display: block; font-size: 13px; }

.quicklog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ql-btn { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: #fff; transition: all .3s; }
.ql-btn .icon { width: 22px; height: 22px; color: var(--muted); }
.ql-btn.is-on { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }
.ql-btn.is-on .icon { color: var(--blue); }
.kid-strip { display: flex; gap: -6px; margin-bottom: 16px; align-items: center; }
.kid-strip .avatar { width: 30px; height: 30px; font-size: 10.5px; border: 2px solid #fff; margin-left: -6px; }
.kid-strip .avatar:first-child { margin-left: 0; }
.kid-strip span { margin-left: 10px; font-size: 13px; color: var(--muted); }

.signature { border: 1px dashed #d0d5dd; border-radius: 12px; height: 120px; display: grid; place-items: center; background: #fcfcfd; position: relative; }
.signature svg { width: 70%; height: auto; }
.signature path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-in .signature path { animation: sign 2.2s .4s var(--ease) forwards; }
@keyframes sign { to { stroke-dashoffset: 0; } }
.signature__x { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--subtle); }

.invoice-lines { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 14px 0; }
.invoice-lines div { display: flex; justify-content: space-between; }
.invoice-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.invoice-total strong { font-size: 26px; letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .stage { min-height: 400px; }
}
@media (max-width: 520px) {
  .float-note { display: none; }
}

/* --- Families: a composition of pieces, centred --------------------- */
.compose { display: grid; grid-template-columns: 1fr 400px 1fr; gap: 24px; align-items: center; max-width: 1080px; margin: 0 auto; }
.compose__col { display: grid; gap: 24px; align-content: center; }
.piece { background: #fff; border-radius: 18px; box-shadow: 0 8px 12px rgba(16, 24, 40, .08), 0 1px 1px rgba(16, 24, 40, .04); }
.piece b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.piece span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.piece--photo { margin: 0; padding: 12px; }
.piece--photo .photo { width: 100%; height: 167px; aspect-ratio: auto; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.piece--photo .photo img { width: 100%; height: 100%; object-fit: cover; }
.piece--photo figcaption { padding: 12px 4px 4px; display: grid; gap: 2px; }
.piece--row { display: flex; gap: 12px; align-items: center; padding: 16px; }
.piece--row > div { display: grid; gap: 2px; }
.piece--alert .tl-ic { background: #fff4ed; color: #c4320a; }
.piece--note { padding: 20px; display: grid; gap: 8px; }
.piece__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--blue-700) !important; font-size: 12.5px !important; }
.piece__label .icon { width: 15px; height: 15px; }
.piece--note b { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; }
.piece .tl-ic img { width: 16px; height: 16px; }
.piece__label img { width: 15px; height: 15px; }
.piece__meta { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12.5px !important; }
.piece--thread { padding: 0; overflow: hidden; box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -12px rgba(16, 24, 40, .14); }
.piece__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #a2a8cd; flex: none; }
.piece__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.piece__head > div { display: grid; }
.piece__time { margin-left: auto; font-size: 12.5px !important; }
.piece--thread .msgs { padding: 20px 20px 12px; gap: 10px; }
.thread-photo { position: relative; width: 150px; height: 112px; border-radius: 10px; overflow: hidden; }
.thread-photo img { width: 100%; height: 100%; object-fit: cover; }
.msg-row { display: flex; justify-content: flex-end; }
.piece--thread .msg { font-size: 15px; line-height: 1.5; }
.piece--thread .msg--in { max-width: 304px; }
.piece--thread .msg--out { max-width: none; white-space: nowrap; }
.piece--thread .photo-grid { max-width: 86%; }
.piece__composer { display: flex; align-items: center; justify-content: space-between; margin: 0 16px 16px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 12px; }
.piece__composer span:first-child { color: var(--subtle); font-size: 14px; }
.piece__send { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); opacity: .5; display: grid; place-items: center; }
.piece__send img { width: 16px; height: 16px; }
.piece__send .icon { width: 16px; height: 16px; }

/* Families — light motion on a few pieces + hover tilt (main.js sets --rx / --ry) */
.piece[data-tilt].tilt-ready { transition: transform .35s var(--ease), box-shadow .35s var(--ease); transition-delay: 0s; }
.piece[data-tilt].is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); box-shadow: 0 18px 32px -10px rgba(16, 24, 40, .16), 0 2px 4px rgba(16, 24, 40, .04); transition-duration: .18s; }
.piece__read { font-variant-numeric: tabular-nums; }
.read-bar { display: block; height: 4px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.read-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width 1.4s var(--ease); }
.thread-heart { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .16); transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.thread-heart svg { width: 14px; height: 14px; fill: #e5484d; }
.thread-heart.is-on { transform: scale(1); }
.msg-row--reply { position: relative; min-height: 40px; align-items: flex-end; }
.msg-row--reply .typing { position: absolute; right: 0; bottom: 0; }
.msg-row--reply .msg--out { transform-origin: 100% 100%; }
.msg-row--reply .msg--out.is-hidden { opacity: 0; transform: scale(.9) translateY(4px); }
@media (prefers-reduced-motion: no-preference) {
  .tl-ic--ping { position: relative; }
  .tl-ic--ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 99, 215, .35); animation: ping 2.8s var(--ease) infinite; }
  .piece--alert .tl-ic img { transform-origin: 50% 15%; animation: ring 4.5s ease-in-out infinite; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 215, .35); } 70%, 100% { box-shadow: 0 0 0 10px rgba(37, 99, 215, 0); } }
@keyframes ring { 0%, 76%, 100% { transform: rotate(0); } 80% { transform: rotate(14deg); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(8deg); } 92% { transform: rotate(-5deg); } 96% { transform: rotate(2deg); } }
.inline-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: var(--s4); color: var(--ink-2); font-size: 15px; }
.inline-benefits li { display: inline-flex; align-items: center; gap: 8px; }
.inline-benefits .icon { width: 16px; height: 16px; color: var(--green); stroke-width: 2.25; }
@media (max-width: 960px) {
  .compose { grid-template-columns: 1fr 1fr; }
  .piece--thread { grid-column: 1 / -1; order: -1; max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 600px) { .compose { grid-template-columns: 1fr; } .compose__col:last-child { display: none; } }

/* --- Rest: one quote and a lot of air -------------------------------- */
.rest { padding-block: var(--section); }
.quotes { max-width: 900px; margin: 0 auto; display: grid; justify-items: center; text-align: center; }
.quotes__viewport { display: grid; width: 100%; margin-top: var(--s3); }
.quotes__viewport > .quote { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.quotes__viewport > .quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quotes__nav { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.quotes__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.quotes__arrow:hover { border-color: #cfd5de; color: var(--ink); }
.quotes__arrow[data-dir="-1"] .icon { transform: rotate(180deg); }
.quotes__arrow .icon { width: 18px; height: 18px; }
.quotes__dots { display: flex; gap: 8px; }
.quotes__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #d5dae2; transition: width .35s var(--ease), background-color .35s; }
.quotes__dots button[aria-selected="true"] { width: 24px; background: var(--green); }
.quote { max-width: 880px; margin: 0 auto; text-align: center; display: grid; justify-items: center; align-content: start; }
.quote blockquote { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.32; letter-spacing: -0.024em; font-weight: 500; text-wrap: balance; }
.quote__who { display: flex; align-items: center; gap: 14px; text-align: left; margin-top: var(--s3); }
.quote__who .avatar { width: 44px; height: 44px; font-size: 14px; }
.quote__name { font-weight: 600; font-size: 15px; }
.quote__role { color: var(--muted); font-size: 14px; }

/* --- Portfolios: split heading + full-bleed strip -------------------- */
.section--flush { padding-top: 0; }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s3) clamp(64px, 8vw, 128px); align-items: end; }
.split-head__copy { display: grid; justify-items: start; max-width: 560px; }
.split-head__copy > .h3 { margin-top: var(--s1); }
.split-head__copy > .lead { margin-top: var(--s2); }
.split-head__aside { display: grid; gap: var(--s3); justify-items: start; padding-bottom: 6px; }
.strip { margin-top: var(--s4); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__set { display: flex; gap: 20px; padding-right: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.moment { width: 260px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.moment:nth-child(even) { margin-top: 32px; }
.moment .photo { height: 195px; border-radius: 0; background: var(--bg-soft); }
.moment .photo img { width: 100%; height: 100%; object-fit: cover; }
.moment__body { padding: 16px; display: grid; gap: 4px; justify-items: start; }
.moment__date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.moment b { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.moment .tag { margin-top: 8px; }
@media (max-width: 900px) { .split-head { grid-template-columns: 1fr; } .moment { width: 220px; } }
@media (max-width: 520px) { .benefits--2col { grid-template-columns: 1fr; } }

/* --- Administration: annotated dashboard + numbered legend --------- */
.admin__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) clamp(64px, 8vw, 128px); align-items: end; }
.admin__head .h3 { margin-top: var(--s1); max-width: 16ch; }
.admin__aside { display: grid; gap: var(--s3); justify-items: start; }

.board {
  position: relative; margin-top: var(--s4); padding: var(--s2); border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.board__bar { position: relative; display: flex; align-items: center; gap: var(--s2); padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.board__site { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.board__site .icon { width: 14px; height: 14px; transform: rotate(90deg); color: var(--subtle); }
.board__logo { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; }
.board__date { font-size: 13px; color: var(--muted); margin-right: auto; }
.board__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s2); }
.board__panel { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.board__rooms { grid-column: span 2; }
.board__comp { grid-column: span 2; }
.board .table td { padding-block: 10px; }
.board .table b { font-weight: 500; color: var(--ink); }
.ratio-bar { display: inline-block; vertical-align: middle; width: 56px; height: 6px; margin-right: 8px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.ratio-bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.board__who { display: flex; gap: 12px; align-items: center; }
.board__who .avatar { width: 40px; height: 40px; }
.board__who b, .board__list b { display: block; font-size: 14px; font-weight: 600; }
.board__who span, .board__list span { font-size: 12.5px; color: var(--muted); }
.board__facts { margin: var(--s2) 0 0; display: grid; gap: 8px; }
.board__facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.board__facts dt { color: var(--muted); }
.board__facts dd { margin: 0; font-weight: 500; text-align: right; }
.board__list { display: grid; gap: 12px; }
.board__list li { display: flex; gap: 12px; align-items: center; }
.board__list .avatar { width: 32px; height: 32px; font-size: 11px; }
.board .checklist { gap: 12px; font-size: 13.5px; }
.board .tick:not(.tick--warn) { background: var(--green); }
.tick--warn { background: #fef0c7; color: #b54708; font-size: 11px; font-weight: 700; }
.avatar--alt { background: var(--green-100); color: var(--green-700); }

/* numbered pins on the dashboard */
.pin {
  position: absolute; top: -10px; right: -10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 4px #fff, var(--shadow);
  transition: transform .35s var(--ease);
}
.pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: pinPulse 3.2s var(--ease) infinite; }
.board__bar .pin { top: 50%; right: -13px; transform: translateY(-50%); }
@keyframes pinPulse { 0% { opacity: .5; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.7); } }

/* pointing: the matching area lifts, the rest steps back */
.board [data-area] { transition: opacity .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.board[data-active] [data-area] { opacity: .45; }
.board[data-active="1"] [data-area="1"], .board[data-active="2"] [data-area="2"], .board[data-active="3"] [data-area="3"],
.board[data-active="4"] [data-area="4"], .board[data-active="5"] [data-area="5"] {
  opacity: 1; border-color: var(--blue-200); box-shadow: 0 0 0 4px var(--blue-50), var(--shadow);
}
.board[data-active="1"] [data-pin="1"], .board[data-active="2"] [data-pin="2"], .board[data-active="3"] [data-pin="3"],
.board[data-active="4"] [data-pin="4"] { transform: scale(1.15); }
.board[data-active="5"] [data-pin="5"] { transform: translateY(-50%) scale(1.15); }

/* legend */
.notes { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.note { display: grid; align-content: start; gap: 6px; padding: var(--s3) var(--s2) 0 0; cursor: default; outline: none; }
.note + .note { padding-left: var(--s2); border-left: 1px solid var(--line); }
.note__n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--blue-200); color: var(--blue); display: grid; place-items: center; font-size: 12px; font-weight: 600; margin-bottom: 10px; transition: background-color .3s, color .3s, border-color .3s; }
.note b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.note > span:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; }
.note.is-active .note__n, .note:focus-visible .note__n { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 1000px) {
  .admin__head { grid-template-columns: 1fr; }
  .board__grid { grid-template-columns: 1fr 1fr; }
  .board__rooms { grid-column: 1 / -1; }
  .board__comp { grid-column: span 1; }
  .notes { grid-template-columns: 1fr 1fr; }
  .note, .note + .note { padding: var(--s3) var(--s2) var(--s3) 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .board__grid { grid-template-columns: 1fr; }
  .board__rooms .table th:last-child, .board__rooms .table td:last-child { display: none; }
  .ratio-bar { width: 36px; }
  .board__date { display: none; }
  .notes { grid-template-columns: 1fr; }
}

/* --- Attendance + Billing: two peers, visuals cropped by the cell ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo__cell { background: var(--bg-tint); border-radius: var(--radius-lg); padding: var(--s4) var(--s4) 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.duo__cell:hover { background: #eaf0fb; box-shadow: inset 0 0 0 1px var(--line); }
.duo__visual .ui-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.duo__cell:hover .duo__visual .ui-card { transform: translateY(-14px); box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 32px 56px -16px rgba(16, 24, 40, .2); }
.duo__cell:hover .status--in { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }
.duo__copy { display: grid; justify-items: start; max-width: 460px; }
.duo__copy .h4 { margin-top: var(--s1); }
.duo__copy p { margin-top: var(--s2); color: var(--muted); font-size: 16.5px; }
.duo__copy .benefits { margin-top: var(--s3); }
.duo__visual { margin-top: var(--s4); display: flex; justify-content: center; align-items: flex-end; }
/* both cards run off the bottom of their cell by the same amount, so the pair reads as one row */
.duo__visual .ui-card { width: min(100%, 420px); padding-bottom: var(--s4); margin-bottom: calc(var(--s3) * -1); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .duo__cell { padding: var(--s3) var(--s3) 0; } }

#who { background: var(--bg-tint); }
/* --- Audience: rows divided by hairlines ----------------------------- */
.who { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s4) clamp(64px, 8vw, 128px); align-items: start; }
.who__head { display: grid; justify-items: start; position: sticky; top: 112px; background: var(--bg-tint); /* gives the multiplied illustration a backdrop inside the sticky stacking context */ }
.who__head .h2 { margin-top: var(--s1); }
.who__art { width: 100%; max-width: 480px; height: auto; margin-top: var(--s4); }
@media (max-width: 900px) { .who__art { max-width: 320px; margin-top: var(--s3); } }
.who__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.who__row { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.who__num { font-size: 13px; color: var(--blue); font-weight: 600; padding-top: 6px; font-variant-numeric: tabular-nums; }
.who__row h3 { font-size: 22px; letter-spacing: -0.02em; }
.who__row p { color: var(--muted); margin-top: 4px; }
.who__uses { grid-column: 2; font-size: 13.5px; color: var(--ink-2); margin-top: var(--s1); }
@media (max-width: 900px) {
  .who { grid-template-columns: 1fr; row-gap: 0; }
  /* phones/tablets: heading → list → illustration */
  .who__head { display: contents; }
  .who__head > * { justify-self: start; }
  .who__list { margin-top: var(--s3); }
  .who__art { order: 2; justify-self: center; margin-top: var(--s4); }
}

/* --- Mobile: copy left, devices large and cropped by the section ----- */
.mobile { padding-bottom: 0; overflow: hidden; }
.mobile__grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 572px); justify-content: space-between; gap: var(--s4) clamp(64px, 8vw, 128px); align-items: center; }
.mobile__copy { display: grid; justify-items: start; }
.mobile__copy > .h3 { margin-top: var(--s1); }
.mobile__copy > .lead { margin-top: var(--s2); }
.apps { margin-top: var(--s3); display: grid; border-top: 1px solid var(--line); width: 100%; }
.apps li { display: flex; gap: var(--s2); align-items: center; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.apps__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.apps b { display: block; font-weight: 600; font-size: 16px; }
.apps span { color: var(--muted); font-size: 15px; }
.stores { display: flex; gap: 12px; margin-top: var(--s3); flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 14px; border-radius: 12px; background: #111827; color: #fff; transition: background-color .2s; }
.store:hover { background: #000; }
.store svg { width: 22px; height: 22px; fill: #fff; }
.store small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .8; }
.store strong { display: block; font-size: 15px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }

.mobile__visual { position: relative; height: 680px; width: 100%; border-radius: 24px; background: var(--bg-tint); overflow: hidden; }
.mobile__halo { position: absolute; left: 56px; top: 116px; width: 460px; height: 460px; }
.mobile__device { position: absolute; left: 50%; top: 80px; width: 382px; height: 601px; margin-left: -191px; transform-origin: 50% 0; transition: transform .7s var(--ease); }
.mobile__visual:hover .mobile__device { transform: translateY(-6px); }
.mobile__phone, .mobile__phone > img, .mobile__phone > svg { display: block; width: 382px; height: 601px; }
.mobile__laptop { position: absolute; left: 294px; top: 355px; width: 189px; height: 142px; transform-origin: 30% 90%; transition: transform .5s var(--ease); cursor: pointer; }
.mobile__laptop:hover { transform: rotate(-6deg) translateY(-4px) scale(1.04); }
.mobile__laptop.is-wave, .reveal.is-in .mobile__laptop.is-wave { animation: ltWave .9s var(--ease); }
@keyframes ltWave { 25% { transform: rotate(-10deg) translateY(-8px); } 55% { transform: rotate(6deg) translateY(-2px); } 80% { transform: rotate(-3deg); } }
/* inlined phone: cards lift on hover, the class avatars fan out, the button brightens */
.ph-card, .ph-cta { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .35s var(--ease), filter .35s var(--ease); }
.ph-card:hover { transform: translateY(-3px); filter: drop-shadow(0 8px 14px rgba(37, 99, 215, .16)); }
.ph-card--1:hover .ph-av { animation: none; transform: translateX(calc(var(--x) * 1.5)); }
.ph-cta:hover { transform: scale(1.04); filter: brightness(1.08); }
.reveal.is-in .ph-card { animation: phIn .7s var(--ease) backwards; }
.reveal.is-in .ph-card--1 { animation-delay: .25s; } .reveal.is-in .ph-card--2 { animation-delay: .35s; }
.reveal.is-in .ph-card--3 { animation-delay: .45s; } .reveal.is-in .ph-card--4 { animation-delay: .55s; }
.reveal.is-in .mobile__laptop { animation: ltIn .9s var(--ease) .5s backwards; }
@keyframes phIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes ltIn { from { opacity: 0; transform: translate(24px, 18px) rotate(10deg); } }
.stores a { display: block; transition: opacity .2s; }
.stores a:hover { opacity: .85; }
.stores img { display: block; height: 40px; width: auto; }
.screen { padding: 24px; display: grid; gap: 12px; align-content: start; font-size: 13px; }
.phone .screen { padding: 48px 16px 16px; gap: 12px; }
.scr-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.scr-head small { font-weight: 400; color: var(--muted); font-size: 13px; }
.screen .scr-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.scr-card .photo { border-radius: 8px; }
.scr-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.scr-row .icon { width: 16px; height: 16px; color: var(--blue); }
.scr-row .avatar { width: 26px; height: 26px; font-size: 10px; }
.scr-muted { color: var(--muted); font-size: 12px; }
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; }
.roster div { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.roster div.is-in { background: var(--blue-50); border-color: var(--blue-100); }
.roster .avatar { width: 40px; height: 40px; font-size: 13px; }
.mobile .chips { margin: 4px 0 0; }
@media (max-width: 900px) {
  .mobile__grid { grid-template-columns: 1fr; }
  .mobile__copy { padding-bottom: 0; }
  .mobile__visual { height: 520px; max-width: 572px; justify-self: center; }
  .mobile__halo { left: 50%; top: 80px; width: 380px; height: 380px; transform: translateX(-50%); }
  .mobile__device { top: 56px; transform: scale(.785); }
  .mobile__visual:hover .mobile__device { transform: scale(.785) translateY(-6px); }
}
@media (max-width: 480px) { .roster { grid-template-columns: repeat(3, 1fr); } .roster div:nth-child(n+10) { display: none; } }

/* --- Why Remini ------------------------------------------------------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 36px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.why__item + .why__item { padding-left: 28px; border-left: 1px solid var(--line); }
.why__art { display: block; height: 132px; margin-bottom: var(--s2); }
.why__art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; transform-origin: 30% 100%; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.why__item:hover .why__art img { transform: translateY(-4px) rotate(-1.5deg) scale(1.03); }
.why__item h3 { font-size: 16px; letter-spacing: -0.01em; }
.why__item p { color: var(--muted); font-size: 17px; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr 1fr; border-top: 0; }
  .why__item, .why__item + .why__item { padding: 28px 24px 28px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* --- Blog ------------------------------------------------------------- */
.blog-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: grid; gap: 18px; align-content: start; }
.post__img { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.post__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.post__img--photo { border: 0; }
.post__img--photo img { mix-blend-mode: normal; }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.post__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.post h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; transition: color .2s; }
.post:hover h3 { color: var(--blue); }
.post p { color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; max-width: 560px; } .blog-head { flex-direction: column; align-items: start; } }

/* --- Final CTA -------------------------------------------------------- */
.final { padding-block: 0 var(--section); }
#blog { padding-bottom: clamp(128px, 14vw, 192px); }
.final__panel {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--blue-700); color: #fff;
  padding: clamp(64px, 9vw, 128px) var(--gutter) clamp(48px, 7vw, 96px); text-align: center; display: grid; justify-items: center;
}
.final__ring { position: absolute; pointer-events: none; max-width: none; }
.final__ring--a { left: -260px; top: 330px; width: 720px; height: 720px; }
.final__ring--b { right: -211px; top: -235px; width: 435px; height: 435px; }
.final__panel > :not(.final__ring) { position: relative; }
.final__panel .h2 { max-width: 760px; color: #fff; }
.final__panel .lead { color: rgba(255, 255, 255, .82); max-width: 620px; margin-top: var(--s2); }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s3); }
.final__note { font-size: 14px; color: rgba(255, 255, 255, .72); margin-top: var(--s2); }
.final__steps {
  list-style: none; padding: var(--s3) 0 0; margin: var(--s4) 0 0; width: min(100%, 880px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); text-align: left;
  position: relative; z-index: 1;
}
.final__steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .32) 50%, rgba(255, 255, 255, 0)); }
.final__steps li { display: flex; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.45; }
.final__steps span { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #fff; }
.final__steps b { display: block; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: -0.005em; }
@media (max-width: 760px) { .final__steps { grid-template-columns: 1fr; gap: var(--s2); } }

/* --- Footer ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 40px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer__brand { display: grid; gap: 16px; align-content: start; max-width: 280px; color: var(--muted); }
.footer__brand img { height: 22px; width: auto; }
.footer h4, .footer .footer__h { font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--ink); }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.footer__bottom nav { display: flex; gap: 20px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* --- Reveal on scroll ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* --- Demo page -------------------------------------------------------- */
/* --- Book a demo ------------------------------------------------------
   Spacing scale: 4 · 8 · 16 · 24 · 32 · 64. Labels 14/500 at ~70% ink, answers 16/400,
   helpers 13 at ~45%, placeholders ~30%. One filled button per step. */
.demo { padding-block: var(--s4) var(--s5); background: linear-gradient(to bottom, var(--hero-bg), #fff 480px); }
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(48px, 7vw, 112px); align-items: start; }
.demo__intro { display: grid; gap: var(--s3); position: sticky; top: 104px; padding-top: var(--s1); }
.demo__intro .eyebrow { margin-bottom: calc(var(--s2) * -1); }
.demo__title { font-size: clamp(2.25rem, 3.9vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.06; max-width: 13ch; }
.demo__lead { font-size: clamp(1.05rem, 1.32vw, 1.1875rem); line-height: 1.6; color: var(--muted); max-width: 46ch; margin-top: calc(var(--s2) * -1); }


.demo__quote { margin: var(--s1) 0 0; display: grid; gap: 14px; padding: 24px; border-radius: 16px; background: var(--bg-soft); }
.demo__quote blockquote { margin: 0; font-size: 17px; font-style: italic; line-height: 1.6; color: var(--ink-2); }
.demo__quote figcaption { display: flex; align-items: center; gap: 12px; }
.demo__quote .avatar { width: 36px; height: 36px; font-size: 12px; }
.demo__quote figcaption b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.demo__quote figcaption span span, .demo__quote figcaption > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Card */
.form-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--s3); }
@media (min-width: 600px) { .form-card { padding: 40px; } }

/* Progress: named steps + counter */
.progress { display: grid; gap: 12px; margin-bottom: var(--s3); }
.progress__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress__count b { color: var(--ink); font-weight: 600; }
.progress__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.progress__steps li { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .3s; }
.progress__steps i { position: relative; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress__steps i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress__steps li.is-current, .progress__steps li.is-done { color: var(--ink); }
.progress__steps li.is-done i::after, .progress__steps li.is-current i::after { transform: scaleX(1); }
.progress__steps li.is-done { color: var(--muted); }

/* Steps */
.fstep { display: none; }
.fstep.is-active { display: grid; gap: var(--s3); animation: panelIn .45s var(--ease); }
.fstep__head { display: grid; gap: 4px; }
.fstep__title:focus { outline: none; }
.fstep__title { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.fstep__sub { font-size: 15px; color: var(--muted); line-height: 1.5; }
.fstep__sub b { color: var(--ink-2); font-weight: 500; }
.fstep--details.is-active { gap: var(--s2); }
.fstep--details .fstep__head { margin-bottom: var(--s1); }
.fstep--details .recap { margin-bottom: var(--s1); }
.fstep__back { margin-bottom: calc(var(--s1) * -1); }

/* Tap groups */
.group { border: 0; margin: 0; padding: 0; min-width: 0; display: block; }
.group .group__error { margin-top: 8px; }
.group legend, .field label { padding: 0; margin-bottom: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.group legend { margin-bottom: 12px; } /* legends ignore grid gap */
.opt { font-weight: 400; color: var(--muted); }
.taps { display: flex; flex-wrap: wrap; gap: 8px; }
.taps--even { display: grid; grid-template-columns: repeat(5, 1fr); }
.taps--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.taps--two .chip-opt span { justify-content: flex-start; min-height: 48px; padding: 0 16px; white-space: normal; text-align: left; line-height: 1.3; }
.taps--times { display: grid; grid-template-columns: repeat(4, 1fr); }
.chip-opt { position: relative; display: block; }
.chip-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border-radius: 12px; border: 1px solid #dde1e8; background: #fff;
  font-size: 14px; font-weight: 450; color: var(--ink-2); white-space: nowrap; pointer-events: none;
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.chip-opt span .icon { width: 16px; height: 16px; color: var(--subtle); transition: color .2s; }
.chip-opt:hover span { border-color: #c4cbd6; }
.chip-opt input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue); }
.chip-opt input:checked + span .icon { color: var(--blue); }
.chip-opt input:focus-visible + span { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgba(37, 99, 215, .18); }
.group.has-error .chip-opt span { border-color: #f1b4ae; }
.group__error, .field__error { display: none; font-size: 13px; font-weight: 500; color: #c4320a; line-height: 1.4; }
.group.has-error .group__error, .field.has-error .field__error { display: block; }

/* Day tiles */
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.days .chip-opt span { flex-direction: column; gap: 2px; min-height: 64px; padding: 8px 4px; }
.days .chip-opt small { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.days .chip-opt b { font-size: 16px; font-weight: 600; color: var(--ink); }
.days .chip-opt input:checked + span small { color: var(--blue); }
.days .chip-opt input:checked + span b { color: var(--blue-700); }
.fstep.is-flexible .days, .fstep.is-flexible .taps--times { opacity: .4; pointer-events: none; }

/* Text buttons (secondary actions stay quiet) */
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--blue); cursor: pointer; justify-self: start; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 16px; height: 16px; }
.text-link--back { color: var(--muted); }
.text-link--back:hover { color: var(--ink); text-decoration: none; }
[data-flexible][aria-pressed="true"] { color: var(--green-700); }

/* Fields */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field { display: grid; gap: 8px; align-content: start; }
.input, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #dde1e8; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #b3bac6; }
.input:hover, .textarea:hover { border-color: #c4cbd6; }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 215, .14); }
.field.is-valid .input { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%230f9d6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field.has-error .input { border-color: #e0583f; }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(224, 88, 63, .14); }
.field__help { font-size: 13px; color: var(--muted); line-height: 1.4; }
.field.has-error .field__help { display: none; }

/* Recap: what they picked, editable in place */
.recap { display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.recap__row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.recap__row + .recap__row { border-top: 1px solid var(--line); }
.recap__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.recap__ic .icon { width: 15px; height: 15px; }
.recap .text-link { font-size: 13px; }

.addnote { display: grid; gap: var(--s2); }
.addnote [hidden], .form-card [hidden] { display: none !important; }
.form-legal { font-size: 13px; color: var(--muted); line-height: 1.5; text-align: center; max-width: 44ch; }
.form-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* Actions */
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding-top: var(--s1); }
.form-actions .btn--primary { margin-left: auto; }
.form-actions--final { align-items: flex-start; }
.submit { display: grid; justify-items: center; gap: 12px; padding-top: var(--s1); }
.btn--block { width: 100%; justify-content: center; }
.submit__note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.submit__note .icon { width: 14px; height: 14px; color: var(--green); stroke-width: 2.4; }
.fstep .btn--primary { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 12px; font-weight: 600; }
.btn__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__spin { display: inline-block; }
.btn.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ending — Peak-End: one short confirmation moment (≈1.6s, runs once), then calm.
   Motion language matches the hero check-in card: ring tightens, fills green, tick draws. */
.success { display: none; text-align: center; justify-items: center; padding: var(--s1) 0 0; }
.success:focus { outline: none; }
.success.is-active { display: grid; }

.done-mark { position: relative; width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: var(--s3); }
.done-mark__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); transform: scale(.6); opacity: 0; }
.done-mark__ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--green); transform: scale(0); }
.done-mark__ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; }
.done-mark__tick { position: relative; width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.done-mark__burst { position: absolute; inset: 0; }
.done-mark__burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--c, var(--blue)); opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); }
.done-mark__burst i:nth-child(1)  { --a: 0deg;   --c: var(--blue); }
.done-mark__burst i:nth-child(2)  { --a: 36deg;  --c: var(--green); width: 4px; height: 4px; margin: -2px; }
.done-mark__burst i:nth-child(3)  { --a: 72deg;  --c: var(--warm); }
.done-mark__burst i:nth-child(4)  { --a: 108deg; --c: var(--blue-200); width: 4px; height: 4px; margin: -2px; }
.done-mark__burst i:nth-child(5)  { --a: 144deg; --c: var(--green); }
.done-mark__burst i:nth-child(6)  { --a: 180deg; --c: var(--blue); width: 4px; height: 4px; margin: -2px; }
.done-mark__burst i:nth-child(7)  { --a: 216deg; --c: #f2b8a0; }
.done-mark__burst i:nth-child(8)  { --a: 252deg; --c: var(--green); width: 4px; height: 4px; margin: -2px; }
.done-mark__burst i:nth-child(9)  { --a: 288deg; --c: var(--blue); }
.done-mark__burst i:nth-child(10) { --a: 324deg; --c: var(--warm); width: 4px; height: 4px; margin: -2px; }

.success.is-active .done-mark__ring { animation: dmRing .45s var(--ease) forwards; }
.success.is-active .done-mark__ring::before { animation: dmFill .4s var(--ease) .3s forwards; }
.success.is-active .done-mark__ring::after { animation: dmRipple 1s var(--ease) .55s forwards; }
.success.is-active .done-mark__tick { animation: dmTick .4s var(--ease) .55s forwards; }
.success.is-active .done-mark__burst i { animation: dmBurst .9s var(--ease) .6s forwards; }
@keyframes dmRing { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes dmFill { to { transform: scale(1); } }
@keyframes dmTick { to { stroke-dashoffset: 0; } }
@keyframes dmRipple { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes dmBurst { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-54px) scale(1); } }

/* Staggered reveal of everything else, after the mark lands */
.success [data-anim] { opacity: 0; transform: translateY(10px); }
.success.is-active [data-anim] { animation: dmUp .6s var(--ease) forwards; }
.success.is-active [data-anim="1"] { animation-delay: .75s; }
.success.is-active [data-anim="2"] { animation-delay: .85s; }
.success.is-active [data-anim="3"] { animation-delay: 1s; }
.success.is-active [data-anim="4"] { animation-delay: 1.2s; }
.success.is-active [data-anim="5"] { animation-delay: 1.45s; }
@keyframes dmUp { to { opacity: 1; transform: none; } }

.success__title { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.success__sub { margin-top: 8px; font-size: 16px; color: var(--muted); line-height: 1.5; max-width: 40ch; }

/* Slot: a little calendar tile that settles into place, like a card being pinned */
.slot { display: flex; align-items: center; gap: var(--s2); width: 100%; margin-top: var(--s3); padding: var(--s2); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; box-shadow: var(--shadow-sm); }
.slot__cal { flex: none; width: 64px; overflow: hidden; display: grid; justify-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 14px -6px rgba(16, 24, 40, .18); }
.success.is-active .slot__cal { animation: dmPin .7s cubic-bezier(.34, 1.56, .64, 1) 1.05s both; }
@keyframes dmPin { 0% { transform: translateY(-14px) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.slot__month { width: 100%; padding: 3px 0; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.slot__day { padding-top: 4px; font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.slot__dow { padding-bottom: 6px; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slot__cal.is-flexible .slot__day { font-size: 22px; color: var(--blue); }
.slot__info { display: grid; gap: 4px; min-width: 0; }
.slot__info > b { font-size: 16px; font-weight: 600; color: var(--ink); }
.slot__info > span:not(.slot__pill) { font-size: 14px; color: var(--muted); }
.slot__pill { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #fff7ec; color: #93370d; font-size: 12px; font-weight: 500; }
.slot__pill i { width: 6px; height: 6px; border-radius: 50%; background: #f79009; }

/* What happens next — step 1 done, step 2 in progress (honest: someone is about to act) */
.next { list-style: none; margin: var(--s3) 0 0; padding: 0; width: 100%; display: grid; text-align: left; }
.next__item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: var(--s2); }
.next__item:last-child { padding-bottom: 0; }
.next__item:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.next__item.is-done::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--green); transform-origin: top; transform: scaleY(0); }
.success.is-active .next__item.is-done::after { animation: dmLine .6s var(--ease) 1.5s forwards; }
@keyframes dmLine { to { transform: scaleY(1); } }
.next__dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; }
.next__item.is-done .next__dot { border-color: var(--green); background: var(--green); }
.next__dot svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.next__item.is-active .next__dot { border-color: var(--blue); }
.next__item.is-active .next__dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.next__item.is-active .next__dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; }
.success.is-active .next__item.is-active .next__dot::after { animation: dmWait 2.4s ease-out 2.1s infinite; }
@keyframes dmWait { 0% { opacity: .45; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.8); } }
.next__item b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.next__item div span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.next__item:not(.is-done):not(.is-active) b { color: var(--ink-2); }

.success__actions { display: grid; justify-items: center; gap: var(--s2); width: 100%; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.success__actions .btn { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 12px; font-weight: 600; }
.success__actions .btn .icon { width: 18px; height: 18px; }
.success__actions .btn.is-saved { background: var(--green); }
.success__actions .text-link { justify-self: center; }


/* Scheduler (after the request is sent): name, day, time, time zone, then book */
.success [hidden] { display: none !important; }
.success.is-switched [data-anim], .success.is-switched .slot__cal { animation-delay: 0s !important; }
.sched { display: grid; gap: var(--s2); width: 100%; margin-top: var(--s3); padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); text-align: left; }
.sched__head { display: flex; align-items: center; gap: 12px; padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.sched__head h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.sched__head p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.sched__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.sched__ic .icon { width: 20px; height: 20px; }
.sched__block { text-align: center; }
.sched__block + .sched__block { margin-top: var(--s2); } /* 16px grid gap + 16 = double */
.group .sched__q { width: 100%; margin-bottom: 14px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-align: center; }
/* week calendar */
/* arrows sit beside the question so the week gets the full width */
.sched__block { position: relative; }
.sched__block:has(.cal) .sched__q { padding: 0 40px; line-height: 32px; }
.cal { position: static; }
.cal__nav { position: absolute; top: -46px; }
.cal__nav[data-week="-1"] { left: 0; } .cal__nav[data-week="1"] { right: 0; }
.cal__nav { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
.cal__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cal__nav:hover:not(:disabled) { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue); }
.cal__nav:active:not(:disabled) { transform: scale(.92); }
.cal__nav:disabled { border-color: transparent; background: #f2f4f7; color: #b3bac6; cursor: default; }
.cal__box { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow { padding: 8px 4px; background: #f2f4f7; font-size: 12px; font-weight: 500; color: var(--muted); }
.cal__days { gap: 2px; padding: 6px; }
.cal__days.is-sliding { animation: daysIn .35s var(--ease); }
@keyframes daysIn { from { opacity: 0; transform: translateX(var(--dx, 12px)); } }
.cal__day { position: relative; display: block; }
.cal__day input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cal__day span { display: grid; justify-items: center; gap: 1px; padding: 8px 0; border-radius: 10px; font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--ink); pointer-events: none; transition: background-color .2s, color .2s, transform .25s var(--ease); }
.cal__day small { font-size: 12px; font-weight: 500; color: var(--muted); transition: color .2s; }
.cal__day:hover input:not(:disabled) + span { background: var(--blue-50); }
.cal__day input:disabled { cursor: default; }
.cal__day input:disabled + span, .cal__day input:disabled + span small { color: #c4cbd6; font-weight: 500; }
.cal__day input:checked + span { background: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 99, 215, .55); animation: chipPick .3s var(--ease); }
.cal__day input:checked + span small { color: rgba(255, 255, 255, .85); }
.cal__day input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 99, 215, .3); }
/* time zone line: sits above the slots */
.sched__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.sched__meta > i { width: 4px; height: 4px; border-radius: 50%; background: #c4cbd6; }
.sched__tz select { max-width: 100%; padding: 4px 22px 4px 6px; border: 0; border-radius: 8px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M5 8h14l-7 9z' fill='%23667085'/%3E%3C/svg%3E") no-repeat right 4px center; appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.sched__tz select:hover { background-color: var(--bg-soft); color: var(--ink); }
.sched__tz select:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 215, .25); color: var(--ink); }
/* time slots */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot-opt { position: relative; display: block; }
.slot-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.slot-opt span { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; pointer-events: none; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.slot-opt span small { margin-top: -4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.slot-opt:hover input:not(:disabled) + span { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(37, 99, 215, .25); }
.slot-opt input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 99, 215, .55); animation: chipPick .3s var(--ease); }
.slot-opt input:checked + span small { color: rgba(255, 255, 255, .85); }
.slot-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 99, 215, .3); }
.slot-opt input:disabled { cursor: not-allowed; }
.slot-opt input:disabled + span { background: #f6f7fa; border-color: #eef0f4; color: #b3bac6; text-decoration: line-through; font-weight: 500; }
.slots.is-fresh .slot-opt { animation: dmUp .35s var(--ease) backwards; }
.slots.is-fresh .slot-opt:nth-child(3n+2) { animation-delay: .03s; } .slots.is-fresh .slot-opt:nth-child(3n) { animation-delay: .06s; }
.group.has-error .slot-opt span { border-color: #f1b4ae; }
.sched__block .group__error { text-align: center; }
.chip-opt input:checked + span { animation: chipPick .3s var(--ease); }
@keyframes chipPick { 40% { transform: scale(.96); } }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.sched__summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; color: var(--muted); transition: background-color .3s, color .3s; }
.sched__summary .icon { flex: none; width: 16px; height: 16px; color: var(--subtle); transition: color .3s; }
.sched__summary.is-set { background: var(--blue-50); color: var(--blue-700); font-weight: 500; }
.sched__summary.is-set .icon { color: var(--blue); }
.sched .submit { padding-top: 0; }
.sched__later { justify-self: center; color: var(--muted); }
.sched__later:hover { color: var(--ink); }
.slot__pill.is-ok { background: var(--green-50); color: var(--green-700); }
.slot__pill.is-ok i { background: var(--green); }
.next__item:not(.is-done) .next__dot svg { display: none; }
.next__item.is-done .next__dot i { display: none; }

@media (prefers-reduced-motion: reduce) {
  .success [data-anim], .done-mark__ring, .slot__cal { opacity: 1 !important; transform: none !important; }
  .done-mark__ring::before { transform: none !important; }
  .done-mark__tick { stroke-dashoffset: 0 !important; }
  .next__item.is-done::after { transform: none !important; }
  .done-mark__burst { display: none; }
}

@media (max-width: 960px) {
  .demo { padding-top: var(--s3); }
  .demo__grid { grid-template-columns: 1fr; gap: var(--s3); }
  .demo__intro { position: static; gap: var(--s2); }
  .demo__intro .eyebrow { margin-bottom: 0; }
  .demo__lead { margin-top: 0; }
  .demo__quote { display: none; }
  .demo__title { max-width: none; }
}
@media (max-width: 560px) {
  .form-card { padding: 24px 20px; border-radius: 20px; }
  .taps--even { grid-template-columns: repeat(3, 1fr); }
  .taps--times { grid-template-columns: repeat(2, 1fr); }
  .days { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .row2 { grid-template-columns: 1fr; }
  .taps--two { grid-template-columns: 1fr; }
  .sched { padding: 16px; }
  .group .sched__q { font-size: 15px; }
  .sched__block:has(.cal) .sched__q { padding: 0 36px; line-height: 30px; }
  .cal__nav { top: -44px; width: 30px; height: 30px; border-radius: 8px; }
  .cal__dow { padding: 8px 2px; font-size: 11px; }
  .cal__days { padding: 4px; gap: 0; }
  .cal__day span { font-size: 15px; }
  .cal__day small { font-size: 11px; }
  .slots { gap: 8px; }
  .slot-opt span { font-size: 14px; }
}

/* --- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 480px) { .hide-sm { display: none; } }
