/* ==========================================================================
   ActiveCloud — main stylesheet
   Design language: calm and clear. White and signal blue, one sans family
   (Geist), stacked cards in four materials (white, photo, blue, mist),
   large light numerals, black-and-white photography, unhurried motion.

   00 Fonts            08 Approach (stack)     16 Footer
   01 Tokens           09 Day (scenes, UI)     17 Reveal
   02 Base             10 Worlds               18 Reduced motion
   03 Utilities        11 Coach
   04 Buttons, links   12 App
   05 Header, menu     13 Switch
   06 Hero             14 Trust
   07 Pains            15 Demo, form
   ========================================================================== */

/* 00 · Fonts (self-hosted, SIL Open Font License) ------------------------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 01 · Tokens ------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --ink: #0e1626;
  --ink-2: #3a4456;
  --slate: #5a6476;
  --mist: #f3f5f8;
  --mist-2: #e8ecf2;
  --blue: #0b5cff;
  --blue-d: #0047d6;
  --tint: #ebf1ff;
  --soft: #c7d7ff;
  --deep: #0a1c46;
  --error: #c2261d;
  /* ActiveCloud brand mark and wordmark, as defined in the product (Brand.jsx) */
  --brand-cloud: #2f63ff;
  --brand-word: #1a4ee6;
  --brand-ink: #1b2233;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-display: 560;
  --fw-head: 600;

  --max: 1760px;
  --pad: clamp(16px, 2.5vw, 44px);
  --gap: clamp(12px, 1.4vw, 24px);
  --space: clamp(104px, 12vw, 220px);
  --radius: clamp(18px, 2vw, 32px);
  --header-h: 76px;

  --fs-h1: clamp(3rem, 7.6vw, 8.8rem);
  --fs-h2: clamp(2.3rem, 4.9vw, 5.4rem);
  --fs-h3: clamp(2.1rem, 4vw, 4.4rem);
  --fs-lead: clamp(1.05rem, 1.25vw, 1.25rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --line: rgb(14 22 38 / .1);
  --line-strong: rgb(14 22 38 / .2);
  --shadow-card: 0 -24px 60px -36px rgb(14 22 38 / .3);
  --shadow-float: 0 30px 70px -34px rgb(14 22 38 / .3);
}
@media (max-width: 899px) {
  :root { --header-h: 64px; }
}

/* 02 · Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
:where(h1, h2, h3, h4, p, ol, ul, figure, blockquote, fieldset, legend) { margin: 0; }
:where(ol, ul) { padding: 0; list-style: none; }
:where(fieldset) { padding: 0; border: 0; min-width: 0; }
:where(legend) { padding: 0; }
:where(img, svg, video) { display: block; max-width: 100%; }
:where(img) { height: auto; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
:where(b, strong) { font-weight: 600; }
/* Accents are set in colour, never in italics */
:where(em) { font-style: normal; }
::selection { background: var(--blue); color: var(--white); }

section[id], [id="top"] { scroll-margin-top: var(--header-h); }

:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 03 · Utilities ---------------------------------------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.meta {
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.003em;
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--slate);
}
.label__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.3em;
  height: 1.75em;
  padding-inline: .5em;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.label--inverse { color: rgb(255 255 255 / .92); }
.label--inverse .label__num { background: var(--white); color: var(--blue); }

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
.section-title em,
.hero__main em { color: var(--blue); }
.section-lead {
  max-width: 40ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

/* Shared section heading layout */
.approach__head,
.day__head,
.coach__head,
.app__head,
.trust__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.6rem;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  margin-bottom: clamp(48px, 6vw, 110px);
}
.approach__head > .label,
.day__head > .label,
.coach__head > .label,
.app__head > .label,
.trust__head > .label { grid-column: 1 / -1; justify-self: start; }
.approach__title,
.day__title,
.coach__title,
.app__title,
.trust__title { grid-column: 1 / 9; }
.approach__lead,
.day__lead,
.coach__lead,
.app__lead,
.trust__lead { grid-column: 8 / -1; align-self: end; }
@media (max-width: 1099px) {
  .approach__title, .day__title, .coach__title, .app__title, .trust__title { grid-column: 1 / -1; }
  .approach__lead, .day__lead, .coach__lead, .app__lead, .trust__lead { grid-column: 1 / 10; }
}
@media (max-width: 699px) {
  .approach__lead, .day__lead, .coach__lead, .app__lead, .trust__lead { grid-column: 1 / -1; }
}

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

/* 04 · Buttons & links ---------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  --btn-hover: var(--blue-d);
  --btn-icon-bg: var(--white);
  --btn-icon-fg: var(--blue);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-height: 56px;
  padding: .5rem .55rem .5rem 1.5rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -.01em;
  line-height: 1.1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-hover);
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn__label { position: relative; }
.btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--btn-icon-bg);
  color: var(--btn-icon-fg);
  overflow: hidden;
}
.btn__icon svg {
  width: 16px;
  height: 16px;
  transition: transform .5s var(--ease-out);
}
.btn__icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11.5M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11.5M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateX(-200%);
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn:hover .btn__icon svg { transform: translateX(200%); }
  .btn:hover .btn__icon::after { transform: none; }
}
.btn:active { transform: scale(.98); }

.btn--small {
  min-height: 44px;
  padding: .4rem 1.1rem .4rem 1.2rem;
  gap: .6rem;
  font-size: .9rem;
}
.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--blue);
  --btn-hover: var(--tint);
  --btn-icon-bg: var(--blue);
  --btn-icon-fg: var(--white);
}
.btn__pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.btn__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 3.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .5; }
  60%, 100% { transform: scale(2.8); opacity: 0; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: .35rem;
  font-weight: 550;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
  .link-arrow:hover svg { transform: translateX(4px); }
  .link-arrow[href="#alltag"]:hover svg { transform: translateY(3px); }
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgb(11 92 255 / .45);
  animation: live 2.6s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgb(11 92 255 / .45); }
  80%, 100% { box-shadow: 0 0 0 7px rgb(11 92 255 / 0); }
}

/* 05 · Header & mobile menu ---------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  transition: color .35s ease, transform .6s var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .4s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-menu-open { --mark-cloud: var(--white); --mark-bell: var(--white); color: var(--white); }
.site-header.is-menu-open .brand__word { color: var(--white); }
.site-header.is-menu-open .brand__accent { color: var(--soft); }
.site-header.is-menu-open::before { opacity: 0; }
.site-header.is-menu-open .site-header__cta { --btn-bg: var(--white); --btn-fg: var(--blue); --btn-hover: var(--tint); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  height: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1;
}
.brand__mark {
  width: 36px;
  height: 31.5px;
  margin-block: -4px;
  transition: transform .6s var(--ease-out);
}
.brand__word { color: var(--brand-ink); transition: color .35s ease; }
.brand__accent { color: var(--brand-word); transition: color .35s ease; }
@media (hover: hover) {
  .brand:hover .brand__mark { transform: translateY(-2px); }
}

.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; gap: clamp(1rem, 1.9vw, 2.1rem); }
.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: .4rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .1rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .site-nav a:hover { color: var(--ink); }
  .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding-inline: .3rem;
  font-weight: 550;
  font-size: .95rem;
}
.menu-toggle__icon {
  position: relative;
  display: grid;
  gap: 5px;
  width: 22px;
}
.menu-toggle__icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1179px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .js .menu-toggle { display: inline-flex; }
}
@media (max-width: 599px) {
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-header__cta { padding-inline: 1rem; }
  .brand { font-size: 1.1rem; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header-h) + 4vh) var(--pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--blue);
  color: var(--white);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-out);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__nav li { border-bottom: 1px solid rgb(255 255 255 / .22); }
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: clamp(.7rem, 2.2vh, 1.1rem);
  font-size: clamp(2rem, 8.5vw, 3.4rem);
  font-weight: var(--fw-display);
  line-height: 1.05;
  letter-spacing: -.04em;
  transform: translateY(30px);
  opacity: 0;
  transition: transform .8s var(--ease-out), opacity .6s ease;
}
.mobile-menu__nav a .meta { letter-spacing: 0; color: rgb(255 255 255 / .92); }
.mobile-menu.is-open .mobile-menu__nav a { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(6) a { transition-delay: .2s; }
.mobile-menu__foot { display: grid; gap: 1rem; justify-items: start; }
.mobile-menu__foot .meta { color: rgb(255 255 255 / .92); }

/* 06 · Hero --------------------------------------------------------------- */
.cover { position: relative; }
.hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(20px, 4.5vh, 64px));
  padding-bottom: clamp(18px, 3vh, 36px);
  background: var(--white);
  overflow: clip;
}
.has-cover .hero {
  position: sticky;
  top: var(--hero-top, 0px);
}
.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: var(--gap);
  min-height: calc(100svh - var(--header-h) - clamp(20px, 4.5vh, 64px) - clamp(18px, 3vh, 36px));
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  transform: scale(var(--cover-scale, 1)) translateY(var(--cover-shift, 0px));
  transform-origin: 50% 0;
}
.hero__label { grid-column: 1 / 7; grid-row: 1; align-self: center; justify-self: start; }
.hero__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.hero__principles {
  grid-column: 7 / -1;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  gap: 1.4rem;
  color: var(--slate);
}
.hero__principles span:first-child { color: var(--ink); }

.hero__title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: clamp(14px, 2.4vh, 32px);
  font-weight: var(--fw-display);
}
.hero__main {
  display: block;
  font-size: var(--fs-h1);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero__sub {
  display: block;
  max-width: 9.4em;
  margin-top: clamp(10px, 1.6vh, 20px);
  font-size: clamp(1.9rem, 3.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--slate);
}
.hero .w {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: .06em .08em .16em;
  margin: -.06em -.08em -.16em;
}
.hero .w > span { display: inline-block; }

.hero__copy {
  grid-column: 1 / 7;
  grid-row: 3;
  align-self: end;
  display: grid;
  gap: clamp(20px, 3vh, 32px);
  max-width: 34rem;
  padding-top: clamp(20px, 3vh, 36px);
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
}

.hero__media {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 2 / 4;
  margin-top: calc(var(--fs-h1) * .98 + clamp(14px, 2.4vh, 32px) + 34px);
  min-height: 300px;
}
.hero__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  transform-origin: 50% 0;
}
.hero__card--back { background: var(--tint); transform: translateY(-30px) scale(.9); }
.hero__card--mid { background: var(--blue); transform: translateY(-15px) scale(.95); }
.hero__photo {
  position: relative;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-float);
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(var(--photo-scale, 1.04));
}
.hero__caption {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
}

/* Live log card */
.log {
  position: absolute;
  left: clamp(-150px, -9vw, -40px);
  bottom: clamp(18px, 5vh, 48px);
  z-index: 3;
  width: min(392px, 86%);
  padding: 16px 18px 6px;
  border-radius: calc(var(--radius) * .62);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
}
.log__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.log__head .meta:first-child { font-weight: 600; }
.log__live { display: inline-flex; align-items: center; gap: .45rem; color: var(--slate); }
.log__list { position: relative; display: grid; }
.log__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.3;
}
.log__item:last-child { border-bottom: 0; }
.log__time { color: var(--slate); }
.log__status {
  padding: .28rem .6rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--slate);
  font-size: .72rem;
}
.log__status--signal { background: var(--blue); color: var(--white); }
.log__item.is-new { animation: log-in .9s var(--ease-out) both; }
.log__item.is-leaving { animation: log-out .5s ease both; }
@keyframes log-in {
  from { opacity: 0; transform: translateY(-12px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes log-out {
  to { opacity: 0; transform: translateY(8px); }
}

.hero__foot {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(22px, 4vh, 48px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--slate);
}
.hero__scroll { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); }
.hero__scroll-line {
  position: relative;
  width: 44px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  animation: scroll-line 2.8s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--ink);
  opacity: var(--cover-shade, 0);
  pointer-events: none;
}

/* Hero intro (pure CSS, so it also runs if scripts fail) */
@media (prefers-reduced-motion: no-preference) {
  .hero .w > span { transform: translateY(112%); animation: rise 1.3s var(--ease-out) forwards; }
  .hero__main .w:nth-child(1) > span { animation-delay: .15s; }
  .hero__main .w:nth-child(2) > span { animation-delay: .23s; }
  .hero__sub .w:nth-child(1) > span { animation-delay: .38s; }
  .hero__sub .w:nth-child(2) > span { animation-delay: .44s; }
  .hero__sub .w:nth-child(3) > span { animation-delay: .5s; }
  .hero__label, .hero__principles, .hero__lead, .hero__actions, .hero__foot {
    opacity: 0;
    animation: fade-up 1.2s var(--ease-out) forwards;
  }
  .hero__label { animation-delay: .05s; }
  .hero__principles { animation-delay: .15s; }
  .hero__lead { animation-delay: .6s; }
  .hero__actions { animation-delay: .72s; }
  .hero__foot { animation-delay: 1s; }
  .hero__photo { animation: wipe-up 1.6s var(--ease-out) .35s both; }
  .hero__photo img { animation: settle 2.6s var(--ease-out) .35s both; }
  .hero__card--mid { animation: card-mid 1.4s var(--ease-out) 1s both; }
  .hero__card--back { animation: card-back 1.4s var(--ease-out) 1.12s both; }
  .log { animation: fade-up 1.2s var(--ease-out) 1.25s both; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes wipe-up {
  from { clip-path: inset(100% 0 0 0 round var(--radius)); }
  to { clip-path: inset(0 0 0 0 round var(--radius)); }
}
@keyframes settle {
  from { transform: scale(1.14); }
  to { transform: scale(var(--photo-scale, 1.04)); }
}
@keyframes card-mid {
  from { transform: translateY(0) scale(.95); }
  to { transform: translateY(-15px) scale(.95); }
}
@keyframes card-back {
  from { transform: translateY(0) scale(.9); }
  to { transform: translateY(-30px) scale(.9); }
}

@media (max-width: 1099px) {
  .hero__principles { display: none; }
  .hero__label { grid-column: 1 / -1; }
  .hero__copy { grid-column: 1 / -1; grid-row: 3; max-width: 40rem; }
  .hero__media {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: clamp(48px, 8vw, 72px) 0 0;
    height: clamp(320px, 62vw, 560px);
  }
  .hero__foot { grid-row: 5; }
  .hero__inner { grid-template-rows: auto auto auto auto auto; }
  .log { left: auto; right: clamp(12px, 3vw, 28px); bottom: clamp(-40px, -4vw, -24px); width: min(392px, 88%); }
}
@media (max-width: 599px) {
  .hero__media { height: 108vw; margin-top: 56px; }
  .hero__foot p:nth-child(2) { display: none; }
  .log { right: 10px; left: 10px; width: auto; bottom: -36px; }
  .log__item { font-size: .84rem; gap: .6rem; }
  .hero__foot { margin-top: 64px; }
}

/* 07 · Pains (light card sliding over the hero) --------------------------- */
.pains {
  position: relative;
  z-index: 2;
  padding-inline: var(--pad);
}
.pains__card {
  max-width: calc(var(--max) - 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(28px, 4.4vw, 80px);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink);
  box-shadow: 0 -30px 80px -40px rgb(14 22 38 / .28);
}
.pains__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.6rem;
  margin-bottom: clamp(56px, 7vw, 120px);
}
.pains__head .label { grid-column: 1 / 9; grid-row: 1; justify-self: start; }
.pains__title { grid-column: 1 / 9; grid-row: 2; }
.pains__lead { grid-column: 1 / 7; grid-row: 3; max-width: 46ch; padding-top: 1rem; }
.pains__media {
  grid-column: 9 / -1;
  grid-row: 1 / 4;
  align-self: stretch;
  min-height: 320px;
  border-radius: calc(var(--radius) * .55);
  overflow: hidden;
}
.pains__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

.pains__hint {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: 1rem;
  color: var(--slate);
}
.pains__hint::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.pains__list { border-top: 1px solid var(--line); }
.pain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(22px, 2.6vw, 40px);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease;
}
.pain::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(28px, 4.4vw, 80px));
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform .5s var(--ease-out);
}
.pain.is-known::before { transform: scaleY(1); }
.pain__num {
  grid-column: 1 / 3;
  font-size: clamp(3rem, 5.6vw, 6.4rem);
  font-weight: 200;
  line-height: .8;
  letter-spacing: -.05em;
  color: rgb(14 22 38 / .2);
  transition: color .4s;
}
.pain__num::before { content: attr(data-num); }
.pain.is-known .pain__num { color: var(--blue); }
.pain__body { grid-column: 3 / 10; display: grid; gap: .5rem; }
.pain__title {
  font-size: clamp(1.4rem, 2.3vw, 2.4rem);
  font-weight: var(--fw-head);
  line-height: 1.08;
  letter-spacing: -.03em;
  transition: transform .6s var(--ease-out);
}
.pain__text { max-width: 54ch; color: var(--slate); font-size: clamp(.98rem, 1.1vw, 1.1rem); }
.pain__toggle {
  grid-column: 10 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
  padding: .45rem 1.2rem .45rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-weight: 550;
  font-size: .95rem;
  transition: background-color .35s, border-color .35s, color .35s, transform .4s var(--ease-out);
}
.pain__box {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgb(14 22 38 / .25);
  transition: background-color .35s, border-color .35s;
}
.pain__box svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  transform: scale(0);
  transition: transform .45s var(--ease-out);
}
.pain__toggle[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.pain__toggle[aria-pressed="true"] .pain__box { background: var(--white); border-color: var(--white); }
.pain__toggle[aria-pressed="true"] .pain__box svg { transform: none; }
.pain__toggle:active { transform: scale(.97); }
@media (hover: hover) {
  .pain:hover { background: rgb(255 255 255 / .55); }
  .pain:hover .pain__title { transform: translateX(8px); }
  .pain__toggle:hover { border-color: rgb(14 22 38 / .45); }
  .pain__toggle[aria-pressed="true"]:hover { border-color: var(--blue); }
}

.pains__result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-top: clamp(28px, 3.4vw, 52px);
}
.pains__count {
  font-size: clamp(3.2rem, 6vw, 6.6rem);
  font-weight: 250;
  line-height: .8;
  letter-spacing: -.05em;
}
.pains__of { color: var(--slate); }
.pains__count.is-bump { animation: bump .6s var(--ease-out); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); color: var(--blue); }
  100% { transform: scale(1); }
}
.pains__msg { max-width: 44ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.45; }
.pains__msg em { color: var(--blue); }

@media (max-width: 899px) {
  .pains__head .label, .pains__title, .pains__lead { grid-column: 1 / -1; }
  .pains__media { grid-column: 1 / -1; grid-row: 4; min-height: 0; aspect-ratio: 16 / 10; margin-top: 1rem; }
  .pain { row-gap: 1.1rem; }
  .pain__num { grid-column: 1 / 3; align-self: start; font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .pain__body { grid-column: 3 / -1; }
  .pain__toggle { grid-column: 3 / -1; justify-self: start; }
  .pains__result { grid-template-columns: auto 1fr; }
  .pains__result .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 599px) {
  .pain__num { grid-column: 1 / -1; }
  .pain__body, .pain__toggle { grid-column: 1 / -1; }
}

/* 08 · Approach: stacked principle cards --------------------------------- */
.approach {
  position: relative;
  z-index: 1;
  padding-block: var(--space) calc(var(--space) * .4);
  background: var(--white);
}

.stack {
  --stack-top: var(--header-h);
  display: grid;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.stack__card {
  --card-pad: clamp(24px, 3.2vw, 56px);
  --bg: var(--white);
  --fg: var(--ink);
  --text: var(--ink-2);
  --muted: var(--slate);
  --card-line: var(--line);
  --num: rgb(11 92 255 / .16);
  position: sticky;
  top: calc(var(--stack-top) + 2vh + var(--i, 0) * 16px);
  min-height: min(76vh, 780px);
  margin-bottom: 8vh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: var(--card-pad);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  color: var(--fg);
  transform-origin: 50% 0;
  scale: var(--scale, 1);
  box-shadow: var(--shadow-card), 0 0 0 1px rgb(14 22 38 / .06);
}
.stack__card:last-child { margin-bottom: 0; }

.stack__card--photo { --bg: var(--deep);  --fg: var(--white); --text: var(--white); --muted: rgb(255 255 255 / .92); --card-line: rgb(255 255 255 / .22); --num: rgb(255 255 255 / .3); }
.stack__card--blue  { --bg: var(--blue);  --fg: var(--white); --text: var(--white); --muted: rgb(255 255 255 / .92); --card-line: rgb(255 255 255 / .3);  --num: rgb(255 255 255 / .3); }
.stack__card--mist  { --bg: var(--mist);  --num: rgb(11 92 255 / .18); }

.stack__text {
  position: relative;
  z-index: 2;
  grid-column: 1 / 7;
  align-self: end;
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
}
.stack__kicker { display: flex; gap: 1.2rem; color: var(--muted); }
.stack__kicker span:first-child { color: var(--fg); font-weight: 600; }
.stack__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.stack__text > p:not([class]) { max-width: 44ch; color: var(--text); font-size: clamp(1.02rem, 1.25vw, 1.25rem); line-height: 1.55; }
.stack__meta { padding-top: 1rem; border-top: 1px solid var(--card-line); color: var(--muted); }

.stack__media {
  position: relative;
  z-index: 1;
  grid-column: 7 / -1;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) * .55);
}
.stack__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack__media--portrait { grid-column: 8 / -1; }
.stack__bg { position: absolute; inset: 0; z-index: 0; }
.stack__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) contrast(1.02); }
.stack__card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(10 28 70 / .94) 0%, rgb(10 28 70 / .62) 50%, rgb(10 28 70 / .12) 100%);
}

/* Decorative numerals are drawn by CSS from data-num */
.stack__num {
  position: absolute;
  top: calc(var(--card-pad) * .7);
  left: var(--card-pad);
  z-index: 1;
  font-size: clamp(5rem, 13vw, 15rem);
  font-weight: 200;
  line-height: .8;
  letter-spacing: -.05em;
  color: var(--num);
  pointer-events: none;
}
.stack__num::before { content: attr(data-num); }

.stack__entry { position: relative; z-index: 2; grid-column: 7 / -1; align-self: center; display: grid; gap: 1.6rem; justify-items: start; }
.stack__word { font-size: clamp(5.5rem, 13vw, 15rem); font-weight: 300; line-height: .85; letter-spacing: -.06em; }
.stack__def { max-width: 34ch; color: var(--text); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; }
.stack__def .meta { display: block; margin-bottom: .7rem; color: var(--muted); }

/* Earlier cards fade back into the page while the next one slides over */
.stack__shade { position: absolute; inset: 0; z-index: 6; background: var(--white); opacity: var(--shade, 0); pointer-events: none; }

@media (max-width: 899px) {
  .stack__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.6rem;
    min-height: min(80vh, 700px);
    top: calc(var(--stack-top) + 1.5vh + var(--i, 0) * 10px);
  }
  .stack__text, .stack__entry { grid-column: 1; grid-row: 2; }
  .stack__entry { grid-row: 1; justify-items: end; text-align: right; padding-top: 3rem; }
  .stack__entry .stack__def { display: none; }
  .stack__media, .stack__media--portrait { grid-column: 1; grid-row: 1; min-height: 24vh; margin-left: 35%; }
  .stack__num { font-size: 22vw; }
}

/* 09 · Day: pinned workflow scenes --------------------------------------- */
.day {
  position: relative;
  padding-top: var(--space);
}
.day .day__head { margin-bottom: clamp(16px, 3vw, 48px); }
.day__scenes { position: relative; }
.scene { position: relative; }
.scene__pin {
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 6vw, 96px);
}
.day__scenes.is-pinned .scene { height: calc(100vh + 120vh); }
.day__scenes.is-pinned .scene__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-block: calc(var(--header-h) + 2vh) 3vh;
}
.scene__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.scene__text {
  position: relative;
  grid-column: 1 / 6;
  display: grid;
  gap: 1.15rem;
  align-content: center;
}
.scene__time {
  font-size: clamp(4.6rem, 10vw, 12rem);
  font-weight: 200;
  line-height: .8;
  letter-spacing: -.05em;
  color: rgb(11 92 255 / .24);
  font-variant-numeric: tabular-nums;
  margin-bottom: clamp(4px, 1vh, 16px);
}
.scene__time::before { content: attr(data-num); }
.scene__kicker { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--slate); }
.scene__kicker span:first-child { color: var(--ink); font-weight: 600; }
.scene__title {
  font-size: clamp(1.9rem, 3.2vw, 3.5rem);
  font-weight: var(--fw-head);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.scene__body { max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem, 1.12vw, 1.12rem); line-height: 1.55; }
.scene__before {
  display: grid;
  gap: .35rem;
  max-width: 46ch;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--slate);
  font-size: .98rem;
  line-height: 1.5;
}
.scene__before .meta { color: var(--ink); font-weight: 600; }
.scene__progress { display: flex; gap: 6px; padding-top: .6rem; }
.scene__progress span {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  transition: background-color .4s ease;
}
.scene__progress span:first-child,
.scene.is-s1 .scene__progress span:nth-child(2),
.scene.is-s2 .scene__progress span:nth-child(3),
.scene.is-s3 .scene__progress span:nth-child(4),
.scene.is-s4 .scene__progress span:nth-child(5) { background: var(--blue); }
.day__scenes:not(.is-pinned) .scene__progress { display: none; }
@media (max-height: 780px) {
  .day__scenes.is-pinned .scene__time { font-size: clamp(4rem, 8vw, 7rem); }
  .day__scenes.is-pinned .scene__text { gap: .95rem; }
}

.scene__ui {
  grid-column: 7 / -1;
  container-type: inline-size;
}

/* Chain: seven manual steps collapse into one */
.chain {
  display: grid;
  gap: .7rem;
  padding: .95rem 1rem 1rem;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  max-width: 34rem;
}
.chain__label { color: var(--slate); }
.chain__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.chain__list li {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 22em;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: color .3s, border-color .3s;
}
.chain__list li::before {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  top: 50%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 60ms);
}
.chain__list li:nth-child(1) { --n: 0; }
.chain__list li:nth-child(2) { --n: 1; }
.chain__list li:nth-child(3) { --n: 2; }
.chain__list li:nth-child(4) { --n: 3; }
.chain__list li:nth-child(5) { --n: 4; }
.chain__list li:nth-child(6) { --n: 5; }
.chain__list li:nth-child(7) { --n: 6; }
.chain__merged {
  display: inline-flex;
  visibility: hidden;
  opacity: 0;
  align-items: center;
  gap: .55rem;
  justify-self: start;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
}
.chain__merged svg { width: 14px; height: 14px; }
.scene.is-s1 .chain { border-style: solid; border-color: var(--line); }
.scene.is-s1 .chain__list li { color: var(--slate); border-color: var(--line); }
.scene.is-s1 .chain__list li::before { transform: scaleX(1); }
.scene.is-s1 .chain__merged { visibility: visible; opacity: 1; animation: pop .7s var(--ease-out) both .5s; }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* UI kit (illustrative product UI) */
.ui {
  --ui-bg: var(--white);
  --ui-fg: var(--ink);
  --ui-muted: var(--slate);
  --ui-line: rgb(14 22 38 / .09);
  --ui-soft: var(--mist);
  --ui-strong: var(--ink);
  --ui-strong-fg: var(--white);
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) * .7);
  background: var(--ui-bg);
  color: var(--ui-fg);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 40px 80px -48px rgb(14 22 38 / .35), 0 0 0 1px var(--ui-line);
}
.ui--mist {
  --ui-bg: var(--mist);
  --ui-line: rgb(14 22 38 / .1);
  --ui-soft: var(--white);
}
.ui__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ui-line);
}
.ui__crumb { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; letter-spacing: -.01em; }
.ui__mark { width: 21px; height: 18.4px; }
.ui__meta { color: var(--ui-muted); font-size: .75rem; }
.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--ui-line);
  background: var(--ui-soft);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}
.ui-chip svg { width: 11px; height: 11px; }
.ui-chip--loc { background: transparent; }
.ui-chip--signal { background: var(--blue); border-color: var(--blue); color: var(--white); }
.ui-chip--ink { background: var(--ui-strong); border-color: var(--ui-strong); color: var(--ui-strong-fg); }
.ui-chip--ok { color: var(--ui-muted); }
.ui-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}
.ui-avatar--small { width: 22px; height: 22px; font-size: 8.5px; }
.ui-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 550;
  font-size: 12.5px;
}
.ui-btn--ghost { background: transparent; color: var(--ui-fg); border: 1px solid var(--ui-line); }

/* Mail */
.mail__body { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 440px; }
.mail__empty {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(100% / 2.05);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity .4s ease;
}
.mail__empty p { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .55rem; color: var(--ui-muted); transition: opacity .4s ease, transform .5s var(--ease-out); }
.mail__empty svg { width: 14px; height: 14px; color: var(--blue); }
.mail__empty-done { opacity: 0; transform: translateY(8px); }
.scene.is-s1 .mail__empty-sorting { opacity: 0; transform: translateY(-8px); }
.scene.is-s1 .mail__empty-done { opacity: 1; transform: none; }
.scene.is-s2 .mail__empty { opacity: 0; }
.mail__list { border-right: 1px solid var(--ui-line); }
.mail__item {
  position: relative;
  border-bottom: 1px solid var(--ui-line);
  transition: background-color .5s ease;
}
.mail__open {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "av from time" "av subject subject" "av tags tags";
  column-gap: 12px;
  row-gap: 3px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
}
.mail__open .ui-avatar { grid-area: av; }
.mail__from { grid-area: from; font-weight: 600; }
.mail__time { grid-area: time; color: var(--ui-muted); font-size: .75rem; }
.mail__subject { grid-area: subject; color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail__tags {
  grid-area: tags;
  display: flex;
  gap: 5px;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .45s ease, transform .5s var(--ease-out);
  transition-delay: calc(var(--k, 0) * 90ms);
}
.mail__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform .5s var(--ease-out);
}
.mail__detail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity .5s ease, transform .6s var(--ease-out), visibility .5s;
}
.mail__detail-from { display: flex; align-items: center; gap: 10px; }
.mail__detail-from > span:last-child { display: grid; gap: 2px; }
.mail__detail-from .meta { color: var(--ui-muted); font-size: .72rem; }
.mail__detail-text { color: var(--ui-fg); font-size: 13.5px; line-height: 1.55; }
.mail__actions { display: grid; gap: 10px; }
.mail__assigned { display: inline-flex; align-items: center; gap: .45rem; color: var(--ui-muted); font-size: .72rem; }
.mail__assigned svg { width: 13px; height: 13px; color: var(--blue); }
.mail__task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--ui-line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .6s var(--ease-out), visibility .5s;
}
.mail__task .meta { color: var(--ui-muted); font-size: .72rem; }
.mail__task > span:nth-child(2) { font-weight: 600; }
.mail__assignee { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; color: var(--ui-muted); font-size: 12.5px; }
.mail__reply {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ui-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .6s var(--ease-out), visibility .5s;
}
.mail__reply .meta { color: var(--ui-muted); font-size: .72rem; }
.mail__reply-text { font-size: 13px; line-height: 1.5; }
.mail__reply-actions { display: flex; justify-content: flex-end; gap: 6px; }

.scene.is-s1 .mail__tags { opacity: 1; transform: none; }
.scene.is-s2 .mail__item--active { background: rgb(11 92 255 / .05); }
.scene.is-s2 .mail__item--active::before { transform: scaleY(1); }
.scene.is-s2 .mail__detail { opacity: 1; visibility: visible; transform: none; }
.scene.is-s3 .mail__task { opacity: 1; visibility: visible; transform: none; }
.scene.is-s4 .mail__reply { opacity: 1; visibility: visible; transform: none; }
.scene.is-s4 .mail:not(.is-live) .mail__reply .ui-btn:not(.ui-btn--ghost) { animation: nudge 2.4s var(--ease-out) .6s infinite; }
@keyframes nudge {
  0%, 60%, 100% { box-shadow: 0 0 0 0 rgb(11 92 255 / 0); }
  20% { box-shadow: 0 0 0 5px rgb(11 92 255 / .2); }
}

@container (max-width: 620px) {
  .mail__body { grid-template-columns: 1fr; min-height: 0; }
  .mail__list { border-right: 0; }
  .mail__item:nth-child(n + 4) { display: none; }
  .mail__detail { border-top: 1px solid var(--ui-line); }
  .mail__empty { display: none; }
  .mail__detail-text { display: none; }
}

/* Radar */
.radar__summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 28px;
  align-items: end;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ui-line);
}
.radar__summary p { display: grid; gap: 4px; }
.radar__summary .meta { color: var(--ui-muted); font-size: .72rem; }
.radar__summary b {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
  transition: opacity .4s ease;
}
.radar__summary p:first-child b { color: var(--blue); }
.radar__sweep {
  justify-self: end;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ui-line);
  background:
    radial-gradient(circle, transparent 0 9px, var(--ui-line) 9px 10px, transparent 10px 17px, var(--ui-line) 17px 18px, transparent 18px);
  overflow: hidden;
}
.radar__sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(11 92 255 / .45), rgb(11 92 255 / 0) 28%);
  opacity: 0;
}
.scene.is-s1 .radar__sweep::after { opacity: 1; animation: sweep 3.4s linear infinite; }
@keyframes sweep { to { transform: rotate(1turn); } }

.radar__list {
  --row-h: 64px;
  position: relative;
  height: calc(var(--rows) * var(--row-h));
}
.radar__row {
  --pos: var(--alpha);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--row-h);
  border-bottom: 1px solid var(--ui-line);
  transform: translateY(calc(var(--pos) * var(--row-h)));
  transition: transform 1s var(--ease-out), background-color .5s ease;
}
.radar__open {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.25fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0 18px;
  text-align: left;
}
.radar__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform .5s var(--ease-out) .35s;
}
.radar__name { display: grid; font-weight: 600; line-height: 1.25; min-width: 0; }
.radar__name .meta { color: var(--ui-muted); font-size: .7rem; font-weight: 500; }
.radar__reason {
  color: var(--ui-muted);
  font-size: .75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .5s ease;
}
.radar__meter { display: flex; gap: 3px; }
.radar__meter i {
  display: block;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  background: var(--mist);
  border: 1px solid var(--ui-line);
  transition: background-color .4s ease, border-color .4s ease;
}
.radar__action { justify-self: end; opacity: 0; transform: translateX(10px); transition: opacity .5s ease, transform .6s var(--ease-out); }
.scene.is-s1 .radar__reason { opacity: 1; }
.scene.is-s1 .radar__row[data-risk="1"] .radar__meter i:nth-child(-n + 1),
.scene.is-s1 .radar__row[data-risk="2"] .radar__meter i:nth-child(-n + 2) { background: rgb(14 22 38 / .28); border-color: transparent; }
.scene.is-s1 .radar__row[data-risk="4"] .radar__meter i:nth-child(-n + 4),
.scene.is-s1 .radar__row[data-risk="5"] .radar__meter i:nth-child(-n + 5) { background: var(--blue); border-color: var(--blue); }
.scene.is-s2 .radar__row { --pos: var(--rank); }
.scene.is-s2 .radar__row--top { background: rgb(11 92 255 / .05); }
.scene.is-s2 .radar__row--top::before { transform: scaleY(1); }
.scene.is-s3 .radar__action { opacity: 1; transform: none; }
.scene:not(.is-s1) .radar__summary b { opacity: .25; }

@container (max-width: 560px) {
  .radar__list { --row-h: 70px; }
  .radar__open { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; padding-block: 8px; }
  .radar__reason { grid-column: 2; grid-row: 2; }
  .radar__name { grid-row: 1; }
  .radar__meter { grid-column: 3; grid-row: 1; }
  .radar__action { grid-column: 3; grid-row: 2; }
  .radar__row .ui-avatar { grid-row: 1 / 3; }
  .radar__action .ui-chip { font-size: 10px; padding: 1px 7px; }
  .radar__summary { gap: 16px; }
  .radar__summary b { font-size: 1.35rem; }
}

/* Hours */
.hours__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-size: .72rem;
}
.hours__legend span { display: inline-flex; align-items: center; gap: 6px; }
.hours__key { display: inline-block; width: 16px; height: 8px; border-radius: 2px; }
.hours__key--target { border: 1px solid var(--ui-fg); }
.hours__key--actual { background: var(--ui-fg); }
.hours__auto { margin-left: auto; opacity: 0; transition: opacity .5s; }
.scene.is-s1 .hours__auto { opacity: 1; }
.hours__row {
  border-bottom: 1px solid var(--ui-line);
  transition: background-color .5s ease;
}
.hours__open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.6fr) 88px 64px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  text-align: left;
}
.hours__name { display: grid; font-weight: 600; line-height: 1.25; min-width: 0; }
.hours__name .meta { color: var(--ui-muted); font-size: .7rem; font-weight: 500; }
.hours__bar {
  position: relative;
  height: 12px;
  border-radius: 4px;
  background: var(--ui-soft);
}
.hours__bar::after {
  content: "";
  position: absolute;
  left: 80%;
  top: -5px;
  bottom: -5px;
  width: 1.5px;
  background: var(--ui-fg);
}
.hours__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--ist) / 1.25 * 100%);
  border-radius: 4px;
  background: var(--ui-fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out), background-color .4s ease;
  transition-delay: calc(var(--k, 0) * 110ms);
}
.hours__value { color: var(--ui-muted); font-size: .75rem; opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--k, 0) * 110ms + .3s); white-space: nowrap; }
.hours__delta { justify-self: end; opacity: 0; transform: scale(.85); transition: opacity .4s ease, transform .5s var(--ease-out); }
.hours__sum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 18px;
  font-size: .75rem;
  color: var(--ui-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.hours__sum span:last-child { margin-left: auto; color: var(--ui-fg); font-weight: 600; }
.scene.is-s1 .hours__bar i { transform: scaleX(1); }
.scene.is-s1 .hours__value { opacity: 1; }
.scene.is-s2 .hours__delta { opacity: 1; transform: none; }
.scene.is-s2 .hours__row--plus { background: rgb(11 92 255 / .06); }
.scene.is-s2 .hours__row--plus .hours__bar i { background: var(--blue); }
.scene.is-s2 .hours__row--minus { background: rgb(14 22 38 / .03); }
.scene.is-s3 .hours__sum { opacity: 1; transform: none; }

@container (max-width: 560px) {
  .hours__open { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; }
  .hours__open .ui-avatar { grid-row: 1 / 3; }
  .hours__bar { grid-column: 2 / -1; grid-row: 2; }
  .hours__value { display: none; }
  .hours__auto { margin-left: 0; }
  .hours__sum span:last-child { margin-left: 0; }
}

/* Interactive demos: the story plays on scroll, one touch hands over control */
.scene__try { display: inline-flex; align-items: flex-start; gap: .65rem; justify-self: start; color: var(--ink); font-weight: 550; }
.scene__try .live-dot,
.app__try .live-dot { margin-top: .42em; }

.ui__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; min-width: 0; }
.ui-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgb(14 22 38 / .05);
}
.ui-seg__btn {
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--ui-muted);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.5;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.ui-seg__btn:hover { color: var(--ui-fg); }
.ui-seg__btn[aria-pressed="true"] { background: var(--white); color: var(--ui-fg); box-shadow: 0 1px 2px rgb(14 22 38 / .14), 0 0 0 1px var(--ui-line); }
.ui-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--ui-muted);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}
.ui-icon svg { width: 12px; height: 12px; }
.ui-icon:hover { color: var(--ui-fg); background: rgb(14 22 38 / .05); }
.ui-icon[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.ui-icon--back svg,
.ui-back svg { transform: rotate(180deg); }
.ui-week { display: inline-flex; align-items: center; gap: 6px; }
.ui-week__label { min-width: 3.4em; text-align: center; color: var(--ui-fg); font-size: .75rem; font-weight: 600; }
.ui-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 550;
  transition: color .2s ease;
}
.ui-back svg { width: 12px; height: 12px; }
.ui-back:hover { color: var(--blue); }
button.ui-btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
button.ui-btn:hover { background: var(--blue-d); }
button.ui-btn--ghost:hover { background: rgb(14 22 38 / .05); border-color: rgb(14 22 38 / .2); }
.ui-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.ui-check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px rgb(14 22 38 / .25);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.ui-check__box svg { width: 10px; height: 10px; color: var(--white); opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .3s var(--ease-out); }
.ui-check:hover .ui-check__box { box-shadow: inset 0 0 0 1.5px var(--blue); }
.ui-check[aria-pressed="true"] { color: var(--ui-fg); }
.ui-check[aria-pressed="true"] .ui-check__box { background: var(--blue); box-shadow: none; }
.ui-check[aria-pressed="true"] .ui-check__box svg { opacity: 1; transform: none; }
.ui-person,
.ui-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  background: var(--ui-bg);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  font-size: 12px;
  font-weight: 550;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.ui-option { padding: 5px 11px; }
.ui-person:hover,
.ui-option:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.ui-option[aria-pressed="true"] { background: var(--blue); color: var(--white); box-shadow: none; }
.ui-options { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-textarea {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  color: var(--ui-fg);
  font-size: 13px;
  line-height: 1.5;
  resize: none;
}
.ui-textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 10px; }
.mail__open:focus-visible,
.radar__open:focus-visible,
.hours__open:focus-visible { outline-offset: -3px; border-radius: 0; }
@keyframes ui-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Mail demo */
.mail__done { display: none; width: 12px; height: 12px; margin-right: 5px; color: var(--blue); vertical-align: -1px; }
.mail__item.is-done .mail__done { display: inline-block; }
.mail__item.is-done .mail__from { color: var(--ui-muted); }
.mail.is-live .mail__item:hover { background: rgb(14 22 38 / .025); }
.scene.is-s2 .mail.is-live .mail__item--active:hover { background: rgb(11 92 255 / .07); }
.mail__back { display: none; }
.mail__task .ui-check { grid-column: 3; grid-row: 1; }
.mail__task-title { font-weight: 600; }
.mail__task.is-done .mail__task-title { color: var(--ui-muted); text-decoration: line-through; }
.mail__task--empty,
.mail__reply--empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mail__pick { grid-column: 1 / -1; margin-top: 4px; color: var(--ui-muted); font-size: .72rem; }
.mail__people { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.mail__reply.is-sent .meta { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); }
.mail__reply.is-sent .meta svg { width: 12px; height: 12px; }
.mail__reply-note { color: var(--ui-muted); font-size: 12.5px; }
.mail__detail.is-entering > * { animation: ui-in .45s var(--ease-out) both; }

/* Radar demo */
.radar__stage { position: relative; }
.radar.is-live .radar__row:hover { background: rgb(14 22 38 / .025); }
.scene.is-s2 .radar.is-live .radar__row--top:hover { background: rgb(11 92 255 / .08); }
.radar__detail {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px 18px 16px;
  background: var(--ui-bg);
  animation: ui-in .4s var(--ease-out) both;
}
.radar__detail-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.radar__level { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.radar__level--high { background: var(--blue); color: var(--white); }
.radar__level--watch { background: var(--tint); color: var(--blue); }
.radar__level--ok { color: var(--ui-muted); box-shadow: inset 0 0 0 1px var(--ui-line); }
.radar__detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-content: start; }
.radar__detail-main,
.radar__detail-side { display: grid; align-content: start; gap: 10px; }
.radar__who { display: flex; align-items: center; gap: 10px; }
.radar__who > span:last-child { display: grid; line-height: 1.3; }
.radar__who b { font-size: 15px; font-weight: 600; }
.radar__who .meta,
.radar__why-label,
.radar__next .meta,
.radar__chart .meta { color: var(--ui-muted); font-size: .72rem; }
.radar__why-label { margin-top: 4px; }
.radar__why { display: grid; gap: 6px; }
.radar__why li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.45; }
.radar__why li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.radar__chart { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--ui-soft); }
.radar__bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.radar__bars i { flex: 1; height: max(3px, calc(var(--v) * 100%)); border-radius: 3px; background: rgb(14 22 38 / .22); }
.radar__bars i:last-child { background: var(--blue); }
.radar__next { display: grid; gap: 8px; }
.radar__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.radar__form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.radar__result { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 550; line-height: 1.45; }
.radar__result svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--blue); }

/* Hours demo */
.hours__stage { position: relative; }
.hours.is-live .hours__stage { min-height: 296px; }
.hours.is-live .hours__row:hover { background: rgb(14 22 38 / .03); }
.hours.is-live .hours__bar i { transition: transform 1.1s var(--ease-out), width .6s var(--ease-out), background-color .4s ease; }
.hours__legend .ui-check { font-size: inherit; }
.hours__hint { display: flex; align-items: center; gap: 6px; padding: 14px 18px; color: var(--ui-muted); font-size: .75rem; }
.hours__detail {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 18px 14px;
  background: var(--ui-bg);
  animation: ui-in .4s var(--ease-out) both;
}
.hours__detail-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hours__detail-bar .meta,
.hours__who .meta,
.hours__day-value,
.hours__detail-sum { color: var(--ui-muted); font-size: .72rem; }
.hours__who { display: flex; align-items: center; gap: 10px; }
.hours__who-name { display: grid; margin-right: auto; line-height: 1.3; }
.hours__who b { font-size: 15px; font-weight: 600; }
.hours__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.hours__day { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 5px; min-height: 0; }
.hours__day-bar { position: relative; width: 100%; max-width: 30px; min-height: 56px; border-radius: 6px; background: var(--ui-soft); }
.hours__day-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--d) * 100%); border-radius: 6px; background: var(--ui-fg); transform-origin: bottom; animation: hours-grow .7s var(--ease-out) both; }
.hours__day.is-over .hours__day-bar i { background: var(--blue); }
.hours__day-bar b { position: absolute; left: -4px; right: -4px; bottom: calc(var(--p) * 100%); height: 1.5px; background: var(--ui-fg); }
.hours__day-name { font-size: .72rem; font-weight: 600; }
.hours__day.is-off .hours__day-name,
.hours__day.is-off .hours__day-value { opacity: .55; }
.hours__detail-sum { display: inline-flex; align-items: center; gap: 6px; }
.hours__detail-sum svg { width: 12px; height: 12px; color: var(--blue); }
@keyframes hours-grow { from { transform: scaleY(0); } }

@container (min-width: 621px) {
  .mail.is-live .mail__list { min-height: calc(5 * 104px); }
}
@container (max-width: 620px) {
  .mail:not(.is-live) .mail__reply-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ui__bar { flex-wrap: wrap; row-gap: 10px; }
  .ui__tools { justify-content: flex-start; }
  .mail.is-live .mail__item:nth-child(n + 4) { display: block; }
  .mail.is-live:not(.is-reading) .mail__detail { display: none; }
  .mail.is-live.is-reading .mail__list { display: none; }
  .mail.is-live.is-reading .mail__detail { border-top: 0; }
  .mail.is-live .mail__detail-text { display: block; }
  .mail.is-live .mail__back { display: inline-flex; }
}
@container (max-width: 560px) {
  .radar__detail { padding: 12px 14px; }
  .radar__detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .radar__chart { display: none; }
  .hours.is-live .hours__stage { min-height: 340px; }
  .hours__detail { padding: 12px 14px; }
  .hours__days { gap: 5px; }
}

.day__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  width: min(100% - 2 * var(--pad), var(--max) - 2 * var(--pad));
  margin: clamp(48px, 6vw, 96px) auto 0;
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--line);
}
.day__cta p { max-width: 38ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.45; }
.day__note { display: block; margin-top: .9rem; color: var(--slate); }
.day__scenes.is-pinned + .day__cta { margin-top: 0; }

@media (max-width: 899px) {
  .scene__pin { padding-block: clamp(48px, 9vw, 72px); }
  .scene__text, .scene__ui { grid-column: 1 / -1; }
  .scene__ui { margin-top: 2rem; }
  .scene__time { font-size: clamp(4rem, 19vw, 7rem); }
  .scene + .scene .scene__pin { border-top: 1px solid var(--line); }
}

/* 10 · Worlds: five product worlds on signal blue ------------------------ */
.worlds {
  position: relative;
  padding: var(--space) var(--pad) 0;
}
.worlds__card {
  position: relative;
  max-width: calc(var(--max) - 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(28px, 4.4vw, 80px);
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.worlds__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.6rem;
  margin-bottom: clamp(48px, 6vw, 100px);
}
.worlds__head .label { grid-column: 1 / -1; justify-self: start; }
.worlds__title { grid-column: 1 / 10; }
.worlds__title em { color: var(--soft); }
.worlds__lead { grid-column: 8 / -1; color: rgb(255 255 255 / .92); }
.worlds__list { position: relative; z-index: 2; border-top: 1px solid rgb(255 255 255 / .24); }
.world { border-bottom: 1px solid rgb(255 255 255 / .24); }
.world__heading { font: inherit; }
.world__trigger {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 21rem) auto;
  align-items: center;
  gap: var(--gap);
  width: 100%;
  padding-block: clamp(18px, 2.3vw, 34px);
  text-align: left;
}
.world__num { color: rgb(255 255 255 / .92); }
.world__title {
  font-size: clamp(1.8rem, 4vw, 4.6rem);
  font-weight: var(--fw-display);
  line-height: 1.02;
  letter-spacing: -.04em;
  transition: transform .7s var(--ease-out);
}
.world__teaser { color: rgb(255 255 255 / .92); font-size: clamp(.95rem, 1.05vw, 1.05rem); }
.world__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .45);
  transition: transform .6s var(--ease-out), background-color .35s, color .35s, border-color .35s;
}
.world__icon svg { width: 16px; height: 16px; }
.world__trigger[aria-expanded="true"] .world__icon { transform: rotate(135deg); background: var(--white); border-color: var(--white); color: var(--blue); }
@media (hover: hover) {
  .world__trigger:hover .world__title { transform: translateX(14px); }
  .world__trigger:hover .world__icon { border-color: var(--white); }
}
.world__panel { display: grid; }
.js .world__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .7s var(--ease-out), visibility 0s linear .7s;
}
.js .world.is-open .world__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .7s var(--ease-out), visibility 0s;
}
.world__panel-inner {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 21rem) 48px;
  column-gap: var(--gap);
  min-height: 0;
  overflow: hidden;
}
.world__text { grid-column: 2; max-width: 52ch; padding-bottom: 1.2rem; color: var(--white); font-size: var(--fs-lead); line-height: 1.5; }
.world .tags { grid-column: 2 / 4; padding-bottom: clamp(24px, 2.6vw, 40px); }
.world__img { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .4);
  font-size: .82rem;
  font-weight: 500;
}
.worlds__float {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: clamp(240px, 21vw, 340px);
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius) * .55);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) rotate(var(--fr, 0deg)) scale(.94);
  transition: opacity .4s ease;
  box-shadow: 0 40px 80px -30px rgb(10 28 70 / .55);
}
.worlds__float.is-active { opacity: 1; }
.worlds__float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity .5s ease, transform 1s var(--ease-out);
}
.worlds__float img.is-current { opacity: 1; transform: none; }
.worlds__sum {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-top: clamp(24px, 2.6vw, 40px);
  color: rgb(255 255 255 / .92);
}
.worlds__sum span { display: inline-flex; align-items: center; gap: .55rem; }
.worlds__sum span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--soft); }

@media (max-width: 1099px) {
  .worlds__title { grid-column: 1 / -1; }
  .worlds__lead { grid-column: 1 / 10; }
  .world__trigger { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
  .world__teaser { grid-column: 2; grid-row: 2; }
  .world__icon { grid-column: 3; grid-row: 1 / 3; }
  .world__panel-inner { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .world__text, .world .tags { grid-column: 2; }
  .world__img {
    display: block;
    grid-column: 2;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: calc(var(--radius) * .5);
    margin-bottom: clamp(24px, 4vw, 40px);
  }
  .worlds__float { display: none; }
}
@media (max-width: 599px) {
  .worlds__lead { grid-column: 1 / -1; }
  .world__trigger { grid-template-columns: minmax(0, 1fr) auto; row-gap: .4rem; }
  .world__num { grid-column: 1; grid-row: 1; }
  .world__title { grid-column: 1; grid-row: 2; }
  .world__teaser { grid-column: 1; grid-row: 3; }
  .world__icon { grid-column: 2; grid-row: 1 / 4; width: 42px; height: 42px; }
  .world__panel-inner { grid-template-columns: minmax(0, 1fr); }
  .world__text, .world .tags, .world__img { grid-column: 1; }
}

/* 11 · Coach: logbook vs. coach, outlook --------------------------------- */
.coach { padding-top: var(--space); }
.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: var(--gap);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.versus__side {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.4rem;
  padding: clamp(24px, 3.2vw, 56px);
  border-radius: var(--radius);
  overflow: hidden;
}
.versus__side--log { background: var(--mist); color: var(--ink); }
.versus__side--coach { --mark-cloud: var(--white); --mark-bell: var(--white); background: var(--blue); color: var(--white); }
.versus__who { display: inline-flex; align-items: center; gap: .55rem; color: var(--slate); }
.versus__side--coach .versus__who { color: rgb(255 255 255 / .92); font-weight: 600; }
.versus__mark { width: 23px; height: 20px; }
.versus__quote--log {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--slate);
}
.versus__quote--coach {
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.versus__note { color: var(--slate); }
.versus__side--coach .versus__note { color: rgb(255 255 255 / .92); }

.ledger {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.ledger__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr .8fr 1fr;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  color: var(--slate);
  transition: background-color .5s ease, color .5s ease;
}
.ledger__row--head { font-size: .75rem; font-weight: 600; }
.ledger__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38px;
  background: linear-gradient(180deg, rgb(11 92 255 / 0), rgb(11 92 255 / .16), rgb(11 92 255 / 0));
  opacity: 0;
  pointer-events: none;
}
.versus.is-in .ledger__scan { animation: scan 2s var(--ease-in-out) .3s both; }
@keyframes scan {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(330px); }
}
.versus.is-in .ledger__row--hit { background: rgb(11 92 255 / .08); color: var(--ink); transition-delay: calc(.5s + var(--k) * 180ms); }

.insights { display: grid; gap: 10px; }
.insight {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "av name" "av why";
  column-gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 44px -30px rgb(10 28 70 / .55);
  transition: opacity .6s ease, transform .8s var(--ease-out);
  transition-delay: calc(1.6s + var(--k) * 160ms);
}
.has-reveal .versus:not(.is-in) .insight { opacity: 0; transform: translateX(24px); }
.insight .ui-avatar { grid-area: av; }
.insight__name { grid-area: name; font-weight: 600; }
.insight__why { grid-area: why; color: var(--blue); font-size: .8rem; }

.outlook {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
  max-width: var(--max);
  margin: clamp(64px, 8vw, 140px) auto 0;
  padding-inline: var(--pad);
}
.outlook__head { grid-column: 1 / 5; display: grid; align-content: start; gap: 1.1rem; }
.outlook__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-self: start;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  color: var(--slate);
}
.outlook__dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--blue); }
.outlook__title {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: var(--fw-head);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.outlook__text { max-width: 44ch; color: var(--slate); }
.outlook__notes { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.note {
  display: grid;
  align-content: space-between;
  gap: 2rem;
  min-height: 250px;
  padding: clamp(20px, 2vw, 30px);
  border-radius: calc(var(--radius) * .75);
  border: 1.5px dashed var(--line-strong);
  transition-delay: var(--d, 0ms);
}
.note__topic { color: var(--slate); }
.note__text {
  color: var(--ink-2);
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.outlook__foot { grid-column: 5 / -1; color: var(--slate); }

@media (max-width: 1099px) {
  .versus { grid-template-columns: 1fr; }
  .outlook__head, .outlook__notes, .outlook__foot { grid-column: 1 / -1; }
}
@media (max-width: 799px) {
  .outlook__notes { grid-template-columns: 1fr; }
  .note { min-height: 0; }
  .ledger__row { grid-template-columns: 1fr 1.3fr .7fr; }
  .ledger__row span:nth-child(4) { display: none; }
}

/* 12 · App: two sides, one loop ------------------------------------------ */
.app { padding-top: var(--space); }
.app__stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.side { display: grid; gap: 1.2rem; }
.side--studio { grid-column: 1 / 4; text-align: right; justify-items: end; }
.side--member { grid-column: 10 / -1; }
.side__label { display: inline-flex; align-items: center; gap: .6rem; color: var(--slate); }
.side__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.side--member .side__label::before { background: var(--blue); }
.side--studio .side__label { flex-direction: row-reverse; }
.side__list { display: grid; width: 100%; border-top: 1px solid var(--line); }
.side__list li {
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.45vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.025em;
  transition: color .3s, transform .5s var(--ease-out);
}
@media (hover: hover) {
  .side--studio .side__list li:hover { transform: translateX(-8px); color: var(--blue); }
  .side--member .side__list li:hover { transform: translateX(8px); color: var(--blue); }
}

.app__device {
  position: relative;
  grid-column: 4 / 10;
  padding-block: clamp(40px, 6vw, 90px);
}
.app__photo {
  position: relative;
  aspect-ratio: 4 / 3.3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.app__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: translateY(var(--parallax, 0px)) scale(1.1); }
.app__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(14 22 38 / 0) 35%, rgb(14 22 38 / .45));
}

.phone {
  position: absolute;
  right: 6%;
  top: 50%;
  z-index: 2;
  width: clamp(240px, 18.5vw, 296px);
  aspect-ratio: 9 / 18.6;
  padding: 9px;
  border-radius: 44px;
  background: #121a2b;
  box-shadow: 0 60px 100px -40px rgb(14 22 38 / .55), inset 0 0 0 1.5px rgb(255 255 255 / .12);
  transform: translateY(calc(-50% + var(--phone-y, 0px)));
}
.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 12px 16px 14px;
  border-radius: 36px;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  font-size: 12.5px;
  /* Laid out for a 266px phone, scaled to the phone's real width (set by the script) */
  zoom: var(--phone-zoom, 1);
}
.phone__status { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; }
.phone__notch { width: 74px; height: 20px; border-radius: 12px; background: #121a2b; }
.phone__bars { display: flex; align-items: end; gap: 2px; }
.phone__bars i { width: 3px; border-radius: 1px; background: var(--ink); }
.phone__bars i:nth-child(1) { height: 5px; }
.phone__bars i:nth-child(2) { height: 7px; }
.phone__bars i:nth-child(3) { height: 9px; }
.phone__top { display: flex; justify-content: space-between; padding-top: 6px; color: var(--slate); font-size: .68rem; }
.phone__exercise { font-size: 1.55em; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.phone__target { color: var(--slate); font-size: .68rem; margin-top: -4px; }
.phone__sets { display: grid; gap: 6px; }
.phone__set {
  display: grid;
  grid-template-columns: 1fr auto auto 24px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--mist);
  font-weight: 550;
  text-align: left;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.phone__set .meta { font-size: .66rem; color: var(--slate); }
.phone__tick {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color .3s, border-color .3s;
}
.phone__tick svg { width: 12px; height: 12px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease-out); }
.phone__set.is-done .phone__tick { background: var(--blue); border-color: var(--blue); color: var(--white); }
.phone__set.is-done .phone__tick svg { opacity: 1; transform: none; }
.phone__set.is-active { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--blue); }
.phone__rest { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.phone__ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.phone__ring circle { fill: none; stroke: var(--mist-2); stroke-width: 4; }
.phone__ring .phone__ring-fill { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 119.38; stroke-dashoffset: var(--ring, 0); transition: stroke-dashoffset 1s linear; }
.phone__rest p { display: grid; line-height: 1.15; }
.phone__rest .meta { font-size: .66rem; color: var(--slate); }
.phone__rest b { min-width: 3.2em; font-size: 1.4em; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.phone__progress { display: grid; gap: 6px; margin-top: 2px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.phone__progress .meta { font-size: .64rem; color: var(--slate); }
.phone__spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.phone__spark i { flex: 1; height: calc(var(--h) * 100%); border-radius: 2px; background: var(--mist-2); }
.phone__spark i:last-child { background: var(--blue); }
.phone__gain { font-size: .9em; color: var(--slate); }
.phone__gain b { color: var(--ink); }
.phone__cta { margin-top: auto; padding: 10px 12px; border-radius: 12px; background: var(--blue); color: var(--white); font-weight: 550; font-size: .92em; }
.phone__tabs { display: flex; justify-content: space-between; padding-top: 4px; border-top: 1px solid var(--line); font-size: .6rem; color: var(--slate); }
.phone__tabs button { padding: 5px 2px 2px; transition: color .2s ease; }
.phone__tabs button:hover { color: var(--ink); }
.phone__tabs .is-active,
.phone__tabs .is-active:hover { color: var(--blue); font-weight: 600; }

/* Member app demo: every tab and button works */
.phone__view { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.phone.is-live .phone__view:not([hidden]) { animation: ui-in .35s var(--ease-out) both; }
.phone__workout { display: flex; flex-direction: column; gap: 10px; }
.phone__set:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.phone__set.is-active:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.phone__skip {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  font-size: .64rem;
  font-weight: 600;
  transition: background-color .2s ease;
}
.phone__skip:hover { background: var(--mist-2); }
.phone__cta { text-align: left; transition: background-color .2s ease; }
.phone__cta:hover { background: var(--blue-d); }
.phone__done {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--mist);
}
.phone__done-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); }
.phone__done-icon svg { width: 16px; height: 16px; }
.phone__done .meta { color: var(--slate); font-size: .66rem; }
.phone__done-note { font-size: .9em; }
.phone__title { padding-top: 6px; font-size: 1.3em; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
.phone__courses { display: grid; gap: 6px; }
.phone__course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  border-radius: 12px;
  background: var(--mist);
}
.phone__course-info { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.phone__course-info b { font-weight: 600; }
.phone__course-info .meta { color: var(--slate); font-size: .62rem; }
.phone__badge { display: inline-block; padding: 0 5px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: .55rem; font-weight: 600; vertical-align: 1px; }
.phone__book,
.phone__like,
.phone__chips button {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .64rem;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.phone__book:hover,
.phone__like:hover,
.phone__chips button:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.phone__book[aria-pressed="true"],
.phone__chips button[aria-pressed="true"] { background: var(--blue); color: var(--white); box-shadow: none; }
.phone__like[aria-pressed="true"] { background: var(--tint); color: var(--blue); box-shadow: none; }
.phone__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.phone__chips button { padding-inline: 8px; }
.phone__chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 104px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.phone__chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; background: var(--mist-2); transition: height .5s var(--ease-out); }
.phone__chart i:last-child,
.phone__spark i:last-child { background: var(--blue); }
.phone__spark i { transition: height .5s var(--ease-out); }
.phone__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone__stats p { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--mist); }
.phone__stats .meta { color: var(--slate); font-size: .6rem; line-height: 1.25; }
.phone__stats b { font-size: 1.35em; font-weight: 650; letter-spacing: -.02em; }
.phone__challenge { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--mist); }
.phone__challenge .meta { color: var(--slate); font-size: .62rem; }
.phone__challenge-title { font-weight: 600; }
.phone__meter { height: 6px; margin-block: 2px; border-radius: 6px; background: var(--white); overflow: hidden; }
.phone__meter i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--blue); transition: width .6s var(--ease-out); }
.phone__board { display: grid; gap: 2px; }
.phone__board li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; }
.phone__board .meta { color: var(--slate); font-size: .62rem; }
.phone__board .is-me { background: var(--tint); color: var(--blue); font-weight: 600; }
.phone__post { display: grid; justify-items: start; gap: 5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.phone__post .meta { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); font-size: .62rem; }
.phone__post-mark { width: 17px; height: 15px; }
.phone__post-text { font-weight: 550; line-height: 1.35; }
.float-card__bar i { transition: width .6s var(--ease-out); }
.app__try { display: flex; align-items: flex-start; justify-content: center; gap: .65rem; max-width: var(--max); margin: clamp(8px, 1.5vw, 20px) auto 0; padding-inline: var(--pad); color: var(--ink); font-weight: 550; text-align: left; }

.float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: .45rem;
  width: clamp(190px, 15vw, 240px);
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
  transform: translateY(var(--float-y, 0px));
}
.float-card .meta { display: inline-flex; align-items: center; gap: .45rem; color: var(--slate); font-size: .72rem; }
.float-card__title { font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.float-card__bar { height: 6px; border-radius: 6px; background: var(--mist-2); overflow: hidden; }
.float-card__bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--blue); border-radius: inherit; }
.float-card__mark { width: 19px; height: 16.6px; }
.float-card--challenge { left: -6%; bottom: 4%; }
.float-card--message { left: 8%; top: 0; }

/* Loop: the member-side flywheel on a running track */
.loop {
  max-width: var(--max);
  margin: clamp(64px, 8vw, 130px) auto 0;
  padding-inline: var(--pad);
}
.loop__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1rem;
  margin-bottom: clamp(56px, 6vw, 96px);
}
.loop__title {
  grid-column: 1 / 7;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  font-weight: var(--fw-head);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.loop__text { grid-column: 8 / -1; align-self: end; max-width: 40ch; color: var(--slate); font-size: var(--fs-lead); line-height: 1.5; }
.loop__track { position: relative; height: clamp(240px, 21vw, 320px); margin-block: 3.4rem; }
.loop__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__lane { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.loop__lane--inner { stroke: var(--line); }
.loop__path { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; opacity: .45; }
.loop__runner {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgb(11 92 255 / .16), 0 0 24px rgb(11 92 255 / .4);
  transform: translate3d(var(--rx, 15%), var(--ry, 0px), 0);
  opacity: 0;
  transition: opacity .4s;
}
.loop.is-running .loop__runner { opacity: 1; }
.loop__steps li {
  position: absolute;
  left: var(--x);
  top: calc(13.333% + var(--y) * 73.333%);
  width: 0;
  height: 0;
}
.loop__steps li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease-out);
}
.loop__steps li.is-hit::before { background: var(--blue); border-color: var(--blue); transform: scale(1.25); }
.loop__label {
  position: absolute;
  left: 0;
  width: max-content;
  max-width: 15rem;
  display: grid;
  justify-items: center;
  gap: .3rem;
  text-align: center;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  transform: translate(-50%, calc(-100% - 22px));
}
.loop__label .meta { color: var(--blue); font-weight: 600; }
.loop__steps li[style*="--y:1"] .loop__label { transform: translate(-50%, 22px); }

@media (max-width: 1179px) {
  .side--studio { grid-column: 1 / 7; grid-row: 2; text-align: left; justify-items: start; margin-top: 2rem; }
  .side--studio .side__label { flex-direction: row; }
  .side--member { grid-column: 7 / -1; grid-row: 2; margin-top: 2rem; }
  .app__device { grid-column: 1 / -1; grid-row: 1; padding-block: 0 clamp(40px, 7vw, 80px); }
  .app__photo { aspect-ratio: 16 / 10; width: 78%; }
  .phone { right: 2%; }
  .float-card--challenge { left: 2%; bottom: 2%; }
  .float-card--message { display: none; }
}
@media (max-width: 899px) {
  .loop__title, .loop__text { grid-column: 1 / -1; }
  .loop__track { height: auto; margin-block: 0; }
  .loop__svg, .loop__runner { display: none; }
  .loop__steps { position: relative; display: grid; gap: 0; padding-left: 34px; }
  .loop__steps::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line-strong); }
  .loop__steps::after {
    content: "Und wieder von vorn";
    display: block;
    padding-top: 1rem;
    font-size: .875rem;
    font-weight: 550;
    color: var(--blue);
  }
  .loop__steps li { position: relative; left: auto; top: auto; width: auto; height: auto; padding-block: .8rem; border-bottom: 1px solid var(--line); }
  .loop__steps li::before { left: -34px; top: 50%; margin-top: -7px; }
  .loop__label, .loop__steps li[style*="--y:1"] .loop__label { position: static; transform: none; width: auto; max-width: none; justify-items: start; text-align: left; display: flex; align-items: baseline; gap: .8rem; }
}
@media (max-width: 699px) {
  .side--studio, .side--member { grid-column: 1 / -1; }
  .side--member { grid-row: 3; }
  .app__photo { width: 100%; aspect-ratio: 4 / 3; }
  .phone { position: relative; right: auto; top: auto; margin: -38% 0 0 auto; transform: translateY(var(--phone-y, 0px)); width: min(74vw, 290px); }
  .float-card { display: none; }
}

/* 13 · Switch: handover at full speed ------------------------------------ */
.switch { padding-top: var(--space); }
.switch__intro {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  min-height: min(88vh, 860px);
  width: min(100% - 2 * var(--pad), var(--max) - 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(28px, 4.4vw, 80px);
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.switch__bg { position: absolute; inset: 0; z-index: -2; }
.switch__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; filter: brightness(.82) contrast(1.02); transform: scale(1.08) translateY(var(--parallax, 0px)); }
.switch__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(270deg, rgb(10 28 70 / .95) 0%, rgb(10 28 70 / .74) 40%, rgb(10 28 70 / .06) 78%), linear-gradient(0deg, rgb(10 28 70 / .45), rgb(10 28 70 / 0) 45%);
}
.switch__intro-text { grid-column: 7 / -1; display: grid; gap: 1.6rem; justify-items: start; }
.switch__title em { color: var(--soft); }
.switch__lead { max-width: 46ch; color: rgb(255 255 255 / .92); }
.switch__badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem 1.15rem .45rem .45rem;
  border-radius: 1.4rem;
  background: var(--white);
  color: var(--ink);
  font-size: .975rem;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.switch__badge-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}
.switch__badge-icon svg { width: 14px; height: 14px; }

.lanes__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(28px, 5vh, 64px);
}
.lanes__question {
  max-width: 34ch;
  font-size: clamp(1.4rem, 2.1vw, 2.3rem);
  font-weight: var(--fw-head);
  line-height: 1.18;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lanes__question em { color: var(--blue); }
.lanes__count {
  flex: none;
  display: flex;
  align-items: baseline;
  font-size: clamp(4rem, 9vw, 10.5rem);
  font-weight: 200;
  line-height: .8;
  letter-spacing: -.05em;
  color: rgb(11 92 255 / .24);
  font-variant-numeric: tabular-nums;
}
.lanes__count::before { content: attr(data-num); }
.lanes__count::after { content: "/06"; font-size: .38em; letter-spacing: -.02em; margin-left: .2em; }

.lanes { position: relative; margin-top: clamp(40px, 5vw, 80px); }
.lanes.is-pinned { height: 260vh; }
.lanes__pin { padding-block: 2rem; }
.lanes.is-pinned .lanes__pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  padding-block: calc(var(--header-h) + 2vh) 4vh;
}
.lanes__inner {
  --x: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.lanes__track {
  position: relative;
  height: clamp(170px, 22vh, 230px);
  margin-bottom: clamp(32px, 5vh, 64px);
}
.lanes__zone {
  position: absolute;
  left: calc(100% / 6);
  width: calc(100% / 6 * 4.5);
  top: 0;
  bottom: 30px;
  border-inline: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, rgb(11 92 255 / .06) 0 1.5px, transparent 1.5px 11px);
  border-radius: 6px;
}
.lanes__zone .meta { position: absolute; top: 10px; left: 14px; color: var(--slate); }
.lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
}
.lane--old { top: 38%; }
.lane--new { top: 68%; }
.lane__label { position: absolute; left: 0; bottom: 12px; color: var(--slate); white-space: nowrap; }
.lane--new .lane__label { left: calc(100% / 6 + 14px); color: var(--ink); font-weight: 600; }
.lane--old .lane__line {
  position: absolute;
  left: 0;
  width: calc(100% / 6 * 5.5);
  height: 2px;
  border-radius: 2px;
  background: rgb(14 22 38 / .28);
}
.lane__end {
  position: absolute;
  left: calc(100% / 6 * 5.5);
  top: -9px;
  width: 2px;
  height: 20px;
  background: rgb(14 22 38 / .28);
}
.lane--new .lane__line {
  position: absolute;
  left: calc(100% / 6);
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.lane__fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(var(--fill, 1));
  transform-origin: left;
}
.lanes__baton {
  position: absolute;
  left: calc(15px + var(--x) * (100% - 30px));
  top: calc(var(--baton-top, 68%) - 6px);
  width: 30px;
  height: 14px;
  margin-left: -15px;
  border-radius: 7px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgb(11 92 255 / .16);
  transition: top .6s var(--ease-out);
}
/* Step 03: the data moves across from lane 1 into lane 2 */
.lanes__transfer {
  position: absolute;
  left: calc(100% / 6 * 2.5);
  top: 38%;
  height: 30%;
}
.lanes__transfer::before,
.lanes__transfer::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 100%;
}
.lanes__transfer::before { background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.lanes__transfer::after {
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--ease-out);
}
.lanes__packets span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  opacity: 0;
}
.lanes__packets span::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgb(11 92 255 / .18);
}
.lanes__packets span:nth-child(2) { --delay: .7s; }
.lanes__packets span:nth-child(3) { --delay: 1.4s; }
.lanes__transfer.is-current .lanes__packets span { animation: transfer-packet 2.1s var(--ease-in-out) var(--delay, 0s) infinite; }
@keyframes transfer-packet {
  0% { opacity: 0; transform: translateY(0); }
  20%, 75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%); }
}
.lanes__transfer-label {
  position: absolute;
  left: 14px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: max-content;
  padding: .28rem .75rem .28rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--slate);
  white-space: nowrap;
  transform: translateY(-50%);
  transition: color .5s ease, background-color .5s ease, border-color .5s ease;
}
.lanes__transfer-label svg { flex: none; width: 12px; height: 12px; }
.lanes__transfer.is-active::after,
.lanes:not(.is-live) .lanes__transfer::after { transform: none; }
.lanes__transfer.is-active .lanes__transfer-label,
.lanes:not(.is-live) .lanes__transfer-label { background: var(--blue); border-color: var(--blue); color: var(--white); }
.lanes__ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  color: var(--slate);
}
.lanes__ticks li { position: relative; text-align: center; transition: color .4s; }
.lanes__ticks li::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 1px;
  height: 10px;
  background: currentColor;
}
.lanes__ticks li.is-active,
.lanes:not(.is-live) .lanes__ticks li { color: var(--ink); }
.lanes__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.lane-step {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  transition: opacity .5s ease, border-color .5s ease;
}
.lanes.is-live .lane-step:not(.is-active) { opacity: .35; }
.lane-step.is-active { border-color: var(--ink); }
.lane-step:last-child.is-active { border-color: var(--blue); }
.lane-step__num { color: var(--blue); font-weight: 600; }
.lane-step__title {
  font-size: clamp(1.3rem, 1.7vw, 1.9rem);
  font-weight: var(--fw-head);
  letter-spacing: -.03em;
  line-height: 1.08;
}
.lane-step__text { color: var(--slate); font-size: .98rem; line-height: 1.5; }
.lane-step__text strong { color: var(--ink); font-weight: 550; }

.switch__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  width: min(100% - 2 * var(--pad), var(--max) - 2 * var(--pad));
  margin: clamp(40px, 5vw, 80px) auto 0;
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--line);
}
.switch__promise { display: grid; gap: 1rem; max-width: 50rem; }
.switch__promise-title {
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  font-weight: var(--fw-head);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.switch__promise-title em { display: block; color: var(--blue); }
.switch__promise-text { max-width: 46ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.45; }

@media (max-width: 1099px) {
  .switch__intro { min-height: min(80vh, 760px); }
  .switch__bg img { object-position: 20% 58%; }
  .switch__intro-text { grid-column: 1 / -1; }
  .switch__intro::before { background: linear-gradient(0deg, rgb(10 28 70 / .95) 0%, rgb(10 28 70 / .72) 50%, rgb(10 28 70 / .25) 100%); }
}
@media (max-width: 699px) {
  .switch__intro { display: block; min-height: 0; padding-top: 0; }
  .switch__intro::before { display: none; }
  .switch__bg {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 4 / 3.4;
    margin: 0 calc(-1 * clamp(28px, 4.4vw, 80px)) 1.6rem;
    overflow: hidden;
  }
  .switch__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--deep) 0%, rgb(10 28 70 / .35) 38%, rgb(10 28 70 / 0) 70%);
  }
  .switch__bg img { object-position: 24% 72%; filter: brightness(.92) contrast(1.02); }
}
@media (max-width: 899px) {
  .lanes__track { display: none; }
  .lanes__head { flex-direction: column; align-items: flex-start; }
  .lanes__count { display: none; }
  .lanes__steps {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 58px;
  }
  .lanes__steps::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    height: calc(100% / 6 * 5.5);
    width: 2px;
    background: rgb(14 22 38 / .28);
  }
  .lanes__steps::after {
    content: "";
    position: absolute;
    left: 36px;
    top: calc(100% / 6);
    height: calc(100% / 6 * 5 * var(--fill, 1));
    width: 2px;
    background: var(--blue);
  }
  .lane-step { padding-block: 1.1rem 1.4rem; border-top: 0; border-bottom: 1px solid var(--line); }
  .lane-step.is-active { border-color: var(--line); }
}

/* 14 · Trust: cards on the table ----------------------------------------- */
.trust { padding-top: var(--space); }
.deck {
  --p: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.deck__card {
  --bg: var(--white);
  --fg: var(--ink);
  --text: var(--ink-2);
  --muted: var(--slate);
  --card-line: var(--line);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 1rem;
  min-height: clamp(300px, 25vw, 400px);
  padding: clamp(22px, 2.4vw, 38px);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 30px 60px -44px rgb(14 22 38 / .4), 0 0 0 1px rgb(14 22 38 / .07);
  translate: calc(var(--dx, 0px) * (1 - var(--p))) calc(var(--dy, 0px) * (1 - var(--p)));
  rotate: calc(var(--rot, 0deg) * (1 - var(--p)));
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  z-index: calc(10 - var(--n));
}
.deck__card--blue { --mark-cloud: var(--white); --mark-bell: var(--white); --bg: var(--blue); --fg: var(--white); --text: var(--white); --muted: rgb(255 255 255 / .92); --card-line: rgb(255 255 255 / .3); }
.deck__card--mist { --bg: var(--mist); }
.deck__card--tint { --bg: var(--tint); }
.deck__corner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.deck__corner svg { width: 31px; height: 27px; }
.deck__title {
  align-self: end;
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  font-weight: var(--fw-head);
  line-height: 1.04;
  letter-spacing: -.035em;
  hyphens: manual;
}
.deck__text { max-width: 38ch; color: var(--text); }
.deck__meta { padding-top: .9rem; border-top: 1px solid var(--card-line); color: var(--muted); }
@media (hover: hover) {
  .deck__card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -44px rgb(14 22 38 / .5), 0 0 0 1px rgb(14 22 38 / .07); }
}
.trust__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 3rem;
  width: min(100% - 2 * var(--pad), var(--max) - 2 * var(--pad));
  margin: clamp(36px, 4vw, 64px) auto 0;
  padding-top: clamp(24px, 2.6vw, 40px);
  border-top: 1px solid var(--line);
}
.trust__foot p { max-width: 46ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.45; }

@media (max-width: 999px) {
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .deck { grid-template-columns: 1fr; }
  .deck__card { min-height: 0; }
  .deck__title { margin-top: 1.4rem; }
}

/* 15 · Demo & form ------------------------------------------------------- */
.demo { padding: var(--space) var(--pad) clamp(80px, 10vw, 180px); }
.demo__card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
  max-width: calc(var(--max) - 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(26px, 4.4vw, 80px);
  border-radius: var(--radius);
  background: var(--mist);
}
.demo__intro { grid-column: 1 / 6; grid-row: 1; display: grid; align-content: start; justify-items: start; gap: 1.6rem; }
.demo__details { grid-column: 1 / 6; grid-row: 2; display: grid; align-content: start; gap: 1.6rem; }
.demo__title { font-size: clamp(2.4rem, 4.8vw, 5.4rem); }
.demo__lead { max-width: 40ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }
.plan { width: 100%; border-top: 1px solid var(--line); }
.plan__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.plan__phase { font-size: clamp(1.2rem, 1.5vw, 1.5rem); font-weight: var(--fw-head); letter-spacing: -.03em; line-height: 1.1; }
.plan__time { align-self: center; color: var(--slate); }
.plan__text { grid-column: 1 / -1; color: var(--slate); }
.demo__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--slate); }
.demo__meta span { display: inline-flex; align-items: center; gap: .55rem; }
.demo__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.demo__form-wrap { grid-column: 7 / -1; grid-row: 1 / span 2; position: relative; }
.form { display: grid; gap: 1.5rem; }
.form__intro { color: var(--slate); border-bottom: 1px solid var(--line); padding-block: 0 1rem; }
.form__fields { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 550;
  color: var(--ink);
}
.field__optional { color: var(--slate); font-size: .8125rem; font-weight: 400; }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid rgb(14 22 38 / .14);
  border-radius: 14px;
  background: var(--white);
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field__input:hover { border-color: rgb(14 22 38 / .3); }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(11 92 255 / .16); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .86rem; }
.field__error:empty { display: none; }

.form__status { color: var(--error); font-size: .92rem; }
.form__status:empty { display: none; }
.form__submit { justify-self: start; margin-top: .2rem; }
.form__note { margin-top: -.4rem; color: var(--slate); font-size: .86rem; line-height: 1.5; }
.form__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form__topics { display: grid; gap: .65rem; }
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form__chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
  padding: .3rem .35rem .3rem .95rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgb(11 92 255 / .35);
  font-size: .9rem;
  font-weight: 500;
  animation: pop .5s var(--ease-out) both;
}
.form__chip-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--slate);
  transition: background-color .2s ease, color .2s ease;
}
.form__chip-remove svg { width: 12px; height: 12px; transform: rotate(45deg); }
.form__chip-remove:hover { background: var(--tint); color: var(--blue); }
.form.is-sending .form__submit { pointer-events: none; opacity: .7; }

.form-success {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.2rem;
  height: 100%;
  padding: clamp(8px, 2vw, 24px) 0;
}
.form-success__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  animation: pop .8s var(--ease-out) both;
}
.form-success__icon svg { width: 30px; height: 30px; }
.form-success__title {
  font-size: clamp(2.1rem, 3.4vw, 3.6rem);
  font-weight: var(--fw-display);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.form-success__title em { display: block; color: var(--blue); }
.form-success p:not([class]) { max-width: 44ch; color: var(--slate); font-size: var(--fs-lead); line-height: 1.5; }

@media (max-width: 1099px) {
  .demo__card { row-gap: 2.6rem; }
  .demo__intro, .demo__details, .demo__form-wrap { grid-column: 1 / -1; grid-row: auto; }
}

/* 16 · Footer ------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4) calc(var(--radius) * 1.4) 0 0;
  background: var(--blue);
  color: var(--white);
}
.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(64px, 8vw, 140px) var(--pad) 0;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(48px, 6vw, 96px);
  border-bottom: 1px solid rgb(255 255 255 / .24);
}
.site-footer__statement {
  max-width: 12em;
  font-size: clamp(2.4rem, 5.6vw, 6.4rem);
  font-weight: var(--fw-display);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.site-footer__statement em { color: var(--soft); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem var(--gap);
  padding-block: clamp(40px, 5vw, 72px);
}
.site-footer__heading { margin-bottom: 1.1rem; color: rgb(255 255 255 / .92); font-weight: 600; }
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer__col a, .site-footer__col span { color: var(--white); }
.site-footer__col span { color: rgb(255 255 255 / .92); }
.site-footer__col a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
@media (hover: hover) {
  .site-footer__col a:hover { background-size: 100% 1px; }
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / .24);
  color: rgb(255 255 255 / .92);
}
.site-footer__top-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--white); }
.site-footer__top-link svg { width: 14px; height: 14px; transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .site-footer__top-link:hover svg { transform: translateY(-3px); }
}
.site-footer__word {
  margin: clamp(10px, 2vw, 30px) 0 -.16em;
  font-size: clamp(3.4rem, 15.5vw, 16.5rem);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: rgb(255 255 255 / .12);
  user-select: none;
  transform: translateY(var(--word-y, 0px));
}
.site-footer__word::before { content: attr(data-word); }
@media (max-width: 899px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 499px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* 17 · Reveal (states only apply once the script has started) ------------- */
.sw { display: inline-block; vertical-align: top; }
.sw__i { display: inline-block; }
[data-reveal="words"] .sw { overflow: hidden; padding: .08em .06em .14em; margin: -.08em -.06em -.14em; }
@media (prefers-reduced-motion: no-preference) {
  .has-reveal [data-reveal="words"] .sw__i {
    transform: translateY(108%);
    transition: transform 1.3s var(--ease-out);
    transition-delay: calc(var(--wi, 0) * 55ms);
  }
  .has-reveal [data-reveal="words"].is-in .sw__i { transform: none; }
  .has-reveal [data-reveal]:not([data-reveal="words"]) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.4s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .has-reveal [data-reveal].is-in:not([data-reveal="words"]) { opacity: 1; transform: none; }
}

/* 18 · Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
