/* Landing sections. Uses tokens.css and components.css only. */

.page { display: grid; gap: var(--section-gap); padding-bottom: 10rem; }
@media (max-width: 767px) { .page { gap: 5rem; padding-bottom: 7rem; } }

/* ---------- Hero ---------- */
.hero { display: grid; gap: var(--s-5); padding-top: var(--s-4); }
.hero__text { display: grid; gap: var(--s-3); justify-items: start; }
.hero__title { max-width: none; }
.hero__lead { max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 1100px) { .hero { padding-top: var(--s-2); } }
@media (max-width: 767px) {
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
}

/* Stage: Redout's big product window, on an accent-tinted backdrop */
.stage {
  margin: 0; position: relative; border-radius: var(--r-card-lg); overflow: hidden;
  padding: clamp(1rem, 4vw, 3.5rem);
  background:
    radial-gradient(110% 90% at 88% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    radial-gradient(80% 80% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--surface);
}
.stage__note { margin-top: 0.875rem; text-align: center; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 767px) { .stage { border-radius: var(--r-card); } }

/* The window is a picture of the product: fixed light palette, does not follow the page theme */
.win {
  --w-bg: #FFFFFF; --w-chat: #EEF1F4; --w-line: #E3E6EA; --w-text: #111111; --w-muted: #7A7F87; --w-link: #2B7FD4;
  --app-bg: #EBEBEB; --app-surface: #F7F7F7; --app-text: #1A1A1A; --app-muted: rgba(26, 26, 26, .58);
  --m-done: #45A55F; --m-fail: #D94A4A; --m-req: #2BA3B3;
  max-width: 68rem; margin: 0 auto; border-radius: 1.25rem; overflow: hidden; background: var(--w-bg);
  box-shadow: 0 30px 80px rgba(3, 7, 18, 0.18), 0 2px 8px rgba(3, 7, 18, 0.06);
  color: var(--w-text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  display: grid; grid-template-rows: 2.5rem minmax(0, 1fr);
}
.win__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.875rem; border-bottom: 1px solid var(--w-line); background: #F8F8F8; }
.win__bar i { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.win__bar i:nth-child(1) { background: #FF5F57; } .win__bar i:nth-child(2) { background: #FEBC2E; } .win__bar i:nth-child(3) { background: #28C840; }
.win__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: 32.5rem; }

.chat { background: var(--w-chat); display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--w-line); min-width: 0; }
.chat__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.125rem; background: var(--w-bg); border-bottom: 1px solid var(--w-line); }
.ava { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.8125rem; font-weight: 600; flex: none; overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat__name { font-weight: 600; font-size: 0.9375rem; }
.chat__meta { font-size: 0.8125rem; color: var(--w-muted); }
.chat__open { margin-left: auto; font-size: 0.8125rem; font-weight: 600; color: var(--w-link); }
.feed { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.625rem; padding: 1.125rem; overflow: hidden; }
.msg { display: flex; gap: 0.5rem; align-items: flex-end; max-width: 92%; }
.msg .ava { width: 1.875rem; height: 1.875rem; font-size: 0.6875rem; }
.bubble { background: #FFFFFF; border-radius: 1rem 1rem 1rem 0.375rem; padding: 0.5rem 0.75rem 0.375rem; font-size: 0.875rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.05); min-width: 0; }
.bubble__who { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.125rem; }
.bubble__time { font-size: 0.6875rem; color: var(--w-muted); text-align: right; margin-top: 0.125rem; }
.bubble ul { margin: 0.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.125rem; }
.bubble__btn { margin-top: 0.5rem; display: block; text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--w-link); background: #F1F6FC; border-radius: 0.625rem; padding: 0.4375rem; }

.app { background: var(--app-bg); color: var(--app-text); padding: 1rem 0.875rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.app__top { display: flex; justify-content: space-between; align-items: baseline; padding: 0.25rem 0.375rem 0.5rem; }
.app__title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.app__week { font-size: 0.8125rem; color: var(--app-muted); }
.app__tabs { display: flex; gap: 0.375rem; }
.app__tabs span { font-size: 0.75rem; padding: 0.3125rem 0.625rem; border-radius: 999px; background: var(--app-surface); color: var(--app-muted); }
.app__tabs span:first-child { background: #111; color: #fff; }
.plate { background: var(--app-surface); border-radius: 1.125rem; padding: 0.875rem; display: grid; gap: 0.625rem; }
.count { display: flex; align-items: baseline; gap: 0.5rem; }
.count__num { display: inline-grid; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.count__num span { grid-area: 1 / 1; }
.count__label { font-size: 0.875rem; color: var(--app-muted); }
.faces { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.face { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #D4D4D4; display: grid; place-items: center; font-size: 0.5625rem; font-weight: 600; color: #fff; }
.face--on { background: var(--m-done); }
.report__head { display: flex; gap: 0.625rem; align-items: center; }
.report__who { font-size: 0.9375rem; font-weight: 600; }
.report__when { font-size: 0.75rem; color: var(--app-muted); }
.mark { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; align-items: start; font-size: 0.84375rem; line-height: 1.35; }
.mark__pill { font-size: 0.6875rem; font-weight: 600; padding: 0.1875rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.mark--done .mark__pill { background: color-mix(in srgb, var(--m-done) 14%, transparent); color: var(--m-done); }
.mark--fail .mark__pill { background: color-mix(in srgb, var(--m-fail) 12%, transparent); color: var(--m-fail); }
.mark--req .mark__pill { background: color-mix(in srgb, var(--m-req) 14%, transparent); color: #1F8592; }

@media (max-width: 1023px) {
  .win__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chat { border-right: 0; border-bottom: 1px solid var(--w-line); min-height: 17rem; }
}

/* Hero animation, 9 s loop. Resting styles are the final state; the loop starts mid-way. */
@media (prefers-reduced-motion: no-preference) {
  .anim { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-delay: -5.2s; animation-fill-mode: both; }
  .a-msg { animation-name: msgIn; }
  .a-glow { animation-name: glow; }
  .a-card { animation-name: cardIn; }
  .a-row1 { animation-name: row1; } .a-row2 { animation-name: row2; } .a-row3 { animation-name: row3; } .a-row4 { animation-name: row4; }
  .a-nine { animation-name: nine; } .a-ten { animation-name: ten; }
  .a-face { animation-name: faceOn; }
}
.a-nine { opacity: 0; }
@keyframes msgIn  { 0%, 10% { opacity: 0; transform: translateY(16px); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes glow   { 0%, 20% { box-shadow: 0 0 0 0 transparent; } 26%, 40% { box-shadow: 0 0 0 3px var(--accent); } 48%, 100% { box-shadow: 0 1px 1px rgba(0,0,0,.05); } }
@keyframes cardIn { 0%, 34% { opacity: 0; transform: translateY(14px) scale(.98); } 41%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes row1   { 0%, 40% { opacity: 0; transform: translateX(-6px); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes row2   { 0%, 43% { opacity: 0; transform: translateX(-6px); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes row3   { 0%, 46% { opacity: 0; transform: translateX(-6px); } 51%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes row4   { 0%, 49% { opacity: 0; transform: translateX(-6px); } 54%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes nine   { 0%, 38% { opacity: 1; transform: none; } 42%, 96% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes ten    { 0%, 38% { opacity: 0; transform: translateY(10px); } 42%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes faceOn { 0%, 38% { background: #D4D4D4; } 42%, 96% { background: #45A55F; } 100% { background: #D4D4D4; } }

/* ---------- Section frame ---------- */
.section { display: grid; gap: var(--s-4); }

/* ---------- 02 Compare: "how it usually is" vs "in Peers" ----------
   One white card. The Peers column is a tinted band from the header to the last row, like a highlighted plan in a pricing table. */
.compare {
  background: var(--surface); border-radius: var(--r-card-lg);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  display: grid; grid-template-columns: 15rem minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-4);
}
.compare__row { display: contents; }
.compare__cell { padding-block: 1.375rem; border-top: 1px solid var(--border); min-width: 0; }
.compare__cell--peers { background: var(--accent-soft); padding-inline: 1.5rem; border-top-color: color-mix(in srgb, var(--accent) 8%, transparent); }
.compare__head .compare__cell { border-top: 0; padding-block: 1.25rem 0.75rem; }
.compare__head .compare__cell--peers { border-radius: 1.5rem 1.5rem 0 0; }
.compare__row:last-child .compare__cell--peers { border-radius: 0 0 1.5rem 1.5rem; }
.compare__head + .compare__row .compare__cell { border-top: 0; }
.compare__label { font-size: 1.25rem; line-height: 1.3; font-weight: var(--fw-heading); letter-spacing: -0.01em; }
.compare__was, .compare__now { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: 1.0625rem; line-height: 1.5; }
.compare__was { color: var(--muted); }
.compare__now { color: var(--text); }
.compare__col { display: inline-flex; align-items: baseline; gap: 0.5rem; font-size: var(--fs-small); font-weight: var(--fw-ui); color: var(--muted); }
.compare__col .logo { font-size: 1.25rem; }

/* 20 px mark centred on the first line's lowercase letters, so it never rises above the text */
.ico { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 0.25em; }
.ico svg { width: 0.75rem; height: 0.75rem; }
.ico--was { background: var(--fill); color: var(--muted); }
.ico--now { background: var(--accent-tint); color: var(--accent); }

@media (max-width: 1100px) {
  .compare { grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-3); padding-left: var(--s-3); }
}
/* Phone: every row becomes its own block, the Peers text sits in a tinted plate */
@media (max-width: 767px) {
  .compare { grid-template-columns: minmax(0, 1fr); padding: var(--s-1) var(--s-3) var(--s-3); border-radius: var(--r-card); }
  .compare__head { display: none; }
  .compare__cell, .compare__cell--peers { border-top: 0; padding: 0; background: none; border-radius: 0; }
  .compare__label { padding-top: var(--s-3); margin-top: var(--s-1); border-top: 1px solid var(--border); }
  .compare__head + .compare__row .compare__label { border-top: 0; margin-top: 0; }
  .compare__was { padding-top: 0.75rem; font-size: 1rem; }
  .compare__now { margin-top: 0.75rem; padding: 0.875rem 1rem; border-radius: 1.25rem; background: var(--accent-soft); font-size: 1rem; }
  .compare__label .dev-flag { margin-left: 0.5rem; }
}

/* ---------- 03 App showcase: tabs on the left, the real app in a phone on the right ---------- */
.showcase {
  border-radius: var(--r-card-lg); overflow: hidden; padding: clamp(1.5rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center;
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    radial-gradient(60% 70% at 70% 100%, color-mix(in srgb, #EE821A 12%, transparent), transparent 60%),
    var(--surface);
}
.tabs { display: grid; gap: 0.25rem; }
.tab {
  display: grid; text-align: left; padding: 1.125rem 1.5rem; border-radius: 1.5rem;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; position: relative; overflow: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.tab:hover { color: var(--text); }
.tab__title { font-size: 1.5rem; line-height: 1.2; font-weight: var(--fw-heading); letter-spacing: -0.01em; }
/* The description opens smoothly: grid row 0fr → 1fr */
.tab__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease); }
.tab__more > span { overflow: hidden; }
.tab__text { display: block; padding-top: 0.375rem; font-size: var(--fs-body); line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.tab[aria-selected="true"] { background: var(--canvas); color: var(--text); }
.tab[aria-selected="true"] .tab__more { grid-template-rows: 1fr; opacity: 1; transition-delay: 0s, .1s; }
.tab__progress { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0.625rem; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; opacity: 0; transition: opacity .4s var(--ease); }
.tab[aria-selected="true"] .tab__progress { opacity: 1; }
.tab__progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.showcase.is-playing .tab[aria-selected="true"] .tab__progress i { animation: tabProgress var(--tab-time, 6s) linear forwards; }
@keyframes tabProgress { to { transform: scaleX(1); } }
.showcase__caption { display: none; }

/* Phone: a thin, even bezel. The app renders at 390 × 844 and is scaled to the screen. */
.phone {
  --ph-w: 21.25rem;                 /* 340 */
  --ph-scale: calc(340 / 390);
  --bezel: 0.3125rem;               /* 5 */
  --screen-r: 2.75rem;
  position: relative; padding: var(--bezel); border-radius: calc(var(--screen-r) + var(--bezel));
  background: linear-gradient(145deg, #2A2B2E, #0B0B0C 40%, #1C1D20);
  box-shadow: 0 40px 90px rgba(3, 7, 18, 0.2), 0 2px 6px rgba(3, 7, 18, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__screen {
  position: relative; width: var(--ph-w); height: calc(844px * var(--ph-scale));
  border-radius: var(--screen-r); overflow: hidden; background: #EBEBEB; isolation: isolate;
}
.phone__app {
  position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; display: block; pointer-events: none;
  transform: scale(var(--ph-scale)); transform-origin: 0 0;
  transition: opacity .32s var(--ease), filter .32s var(--ease), transform .32s var(--ease);
}
.phone__app.is-leaving { opacity: 0; filter: blur(4px); transform: scale(var(--ph-scale)) translateY(6px); }

@media (max-width: 1100px) {
  .showcase { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-4); }
  .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; width: 100%; }
  .tab { padding: 0.625rem 1rem; border-radius: var(--r-pill); background: var(--canvas); }
  .tab__title { font-size: var(--fs-small); font-weight: var(--fw-ui); }
  .tab[aria-selected="true"] { background: var(--text); color: var(--canvas); }
  .tab__more, .tab__progress { display: none; }
  .showcase__caption { display: block; text-align: center; max-width: 46ch; color: var(--text-2); min-height: 3em; transition: opacity .35s var(--ease); }
  .showcase__caption.is-leaving { opacity: 0; }
}
@media (max-width: 767px) {
  .showcase { border-radius: var(--r-card); padding: var(--s-3) var(--s-2); }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .phone { zoom: 0.9; }
}

/* ---------- Reveal on scroll: content is visible without JS; with JS it rises in once ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- 04 Bot: scenarios, text and a scene in turn ---------- */
.scenes { display: grid; gap: clamp(4.5rem, 9vw, 8rem); }
.scenario { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); align-items: center; }
.scenario:nth-child(even) .scenario__text { order: 2; }
.scenario__text { display: grid; gap: var(--s-2); align-content: center; min-width: 0; }
.scenario__kicker { font-size: var(--fs-small); font-weight: var(--fw-ui); color: var(--accent); }
.scenario__title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.scenario__body { color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; max-width: 46ch; }
.scenario__note { font-size: var(--fs-small); color: var(--muted); max-width: 46ch; }
.scene {
  position: relative; border-radius: var(--r-card-lg); min-height: 26rem; padding: clamp(1.25rem, 3vw, 2.5rem);
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(80% 70% at 90% 10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 60%),
    radial-gradient(70% 70% at 10% 100%, color-mix(in srgb, #EE821A 11%, transparent), transparent 60%),
    var(--surface);
}
/* Pictures of the product keep one light palette in both themes */
.pic { --p-bg: #FFFFFF; --p-soft: #F3F4F6; --p-line: #E7E9EC; --p-text: #111827; --p-muted: #6B7280;
  color: var(--p-text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; }
.chatcard { width: min(100%, 30rem); background: #EEF1F4; border-radius: 1.5rem; padding: 1rem; display: grid; gap: 0.625rem; box-shadow: 0 24px 60px rgba(3, 7, 18, 0.12); }
.chatcard__head { display: flex; align-items: center; gap: 0.625rem; padding: 0.25rem 0.25rem 0.5rem; font-size: 0.875rem; }
.chatcard__head b { font-weight: 600; }
.chatcard__head span { color: var(--p-muted); }
.bub { justify-self: start; max-width: 92%; background: var(--p-bg); border-radius: 1.125rem 1.125rem 1.125rem 0.375rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.bub--me { justify-self: end; background: #E3F2FD; border-radius: 1.125rem 1.125rem 0.375rem 1.125rem; }
.bub__who { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.125rem; }
.bub ul { margin: 0.375rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.3125rem; }
.bub li { display: flex; gap: 0.5rem; align-items: baseline; justify-content: space-between; }
.bub__src { margin-top: 0.5rem; font-size: 0.75rem; color: var(--p-muted); }
.tag { flex: none; font-size: 0.6875rem; font-weight: 600; padding: 0.1875rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.tag--done { background: rgba(69,165,95,.14); color: #2F7E46; }
.tag--fail { background: rgba(217,74,74,.12); color: #B33A3A; }
.tag--ask { background: rgba(43,163,179,.14); color: #1F7D8A; }
.tag--plan { background: rgba(103,135,232,.14); color: #4A66C2; }
.js .scene .tag { opacity: 0; transform: scale(.85); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .scene.is-in .tag { opacity: 1; transform: none; }
.js .scene.is-in li:nth-child(2) .tag { transition-delay: .15s; } .js .scene.is-in li:nth-child(3) .tag { transition-delay: .3s; } .js .scene.is-in li:nth-child(4) .tag { transition-delay: .45s; }

/* Week cards fan */
.fan { position: relative; width: min(100%, 30rem); height: 22rem; }
.wcard { position: absolute; top: 50%; left: 50%; width: 12.5rem; aspect-ratio: 4 / 5; border-radius: 1.25rem; padding: 1.125rem; display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: 0 24px 50px rgba(3, 7, 18, 0.16); transform: translate(-50%, -50%); transition: transform 1s var(--ease); background: #fff; }
.wcard__k { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(17,24,39,.55); }
.wcard__big { font-size: 2.5rem; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.wcard__t { font-size: 1rem; line-height: 1.25; font-weight: 600; }
.wcard__list { display: grid; gap: 0.4375rem; font-size: 0.8125rem; line-height: 1.3; margin-top: auto; }
.wcard__list span { display: flex; gap: 0.5rem; align-items: center; }
.wcard__list i { flex: none; width: 1.375rem; height: 1.375rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.5625rem; font-weight: 700; color: #fff; }
.wcard--a { background: linear-gradient(160deg, #FFE7D6, #F9B48F 70%, #F28A62); }
.wcard--b { background: #FFFFFF; }
.wcard--c { background: linear-gradient(160deg, #E6ECFF, #B8C6FF 80%); }
.wcard--a { transform: translate(-50%, -50%) rotate(-2deg); z-index: 3; }
.wcard--b { transform: translate(-50%, -50%) rotate(2deg); z-index: 2; }
.wcard--c { transform: translate(-50%, -50%) rotate(5deg); z-index: 1; }
.scene.is-in .wcard--a { transform: translate(-112%, -50%) rotate(-7deg); }
.scene.is-in .wcard--b { transform: translate(-50%, -54%) rotate(0deg); }
.scene.is-in .wcard--c { transform: translate(12%, -50%) rotate(7deg); }

/* Trace chips under an answer */
.trace { display: flex; flex-wrap: wrap; gap: 0.375rem; justify-content: center; margin-top: 1rem; }
.trace span { font-size: 0.75rem; padding: 0.375rem 0.75rem; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--p-muted); border: 1px solid var(--p-line); }
.trace b { color: var(--p-text); font-weight: 600; }

/* AI client window */
.aiwin { width: min(100%, 32rem); background: var(--p-bg); border-radius: 1.25rem; overflow: hidden; box-shadow: 0 24px 60px rgba(3, 7, 18, 0.14); }
.aiwin__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--p-line); font-size: 0.8125rem; color: var(--p-muted); }
.aiwin__bar i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #E5E7EB; }
.aiwin__conn { margin-left: auto; display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 600; color: #2F7E46; }
.aiwin__conn::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #2EC055; }
.aiwin__body { padding: 1rem; display: grid; gap: 0.75rem; font-size: 0.875rem; line-height: 1.45; }
.aiwin__q { justify-self: end; background: var(--p-soft); border-radius: 1rem; padding: 0.625rem 0.875rem; max-width: 85%; }
.aiwin__a { display: grid; gap: 0.625rem; }
.change { border: 1px solid var(--p-line); border-radius: 1rem; padding: 0.75rem 0.875rem; display: grid; gap: 0.5rem; }
.change__k { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--p-muted); }
.change__row { display: flex; justify-content: space-between; gap: 0.75rem; }
.change__row s { color: var(--p-muted); }
.change__btns { display: flex; gap: 0.375rem; }
.change__btns span { font-size: 0.75rem; font-weight: 600; padding: 0.4375rem 0.75rem; border-radius: 999px; background: var(--p-soft); }
.change__btns span:first-child { background: #111827; color: #fff; }

/* ---------- 05 Rhythm ---------- */
.rhythm { background: var(--surface); border-radius: var(--r-card-lg); padding: var(--s-4); display: grid; gap: var(--s-3); }
.rhythm__cap { font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-ui); }
.steps-line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); position: relative; padding: 0; margin: 0; list-style: none; }
.steps-line::before { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; top: 0.4375rem; height: 2px; background: var(--border); }
.step { position: relative; display: grid; gap: 0.5rem; padding-top: 1.75rem; min-width: 0; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-sizing: border-box; }
.step--hot::before { background: var(--accent); }
.step__when { font-size: var(--fs-small); font-weight: var(--fw-ui); color: var(--accent); }
.step__title { font-size: 1.125rem; font-weight: var(--fw-heading); line-height: 1.25; }
.step__text { font-size: 0.9375rem; color: var(--text-2); line-height: 1.5; }

/* ---------- 06 Control: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2); }
.bento > * { min-width: 0; }
.b-7 { grid-column: span 7; } .b-5 { grid-column: span 5; } .b-4 { grid-column: span 4; } .b-6 { grid-column: span 6; } .b-12 { grid-column: span 12; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }
.tile__title { font-size: 1.25rem; line-height: 1.25; font-weight: var(--fw-heading); letter-spacing: -0.01em; }
.tile__text { color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.tile__pic { margin-top: auto; }
.roles { display: grid; gap: 0.5rem; }
.role { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.75rem; align-items: center; padding: 0.75rem 0.875rem; border-radius: 1.125rem; background: var(--canvas); }
.role__dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; grid-row: span 2; }
.role__name { font-weight: var(--fw-heading); font-size: 0.9375rem; }
.role__perms { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.role__perms span { font-size: 0.75rem; padding: 0.1875rem 0.5rem; border-radius: 999px; background: var(--surface); color: var(--text-2); font-weight: var(--fw-ui); }
.log { display: grid; gap: 0; }
.log__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.625rem 0; border-top: 1px solid var(--border); font-size: 0.875rem; line-height: 1.4; }
.log__row:first-child { border-top: 0; }
.log__row time { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.bc { background: var(--canvas); border-radius: 1.125rem; padding: 0.875rem; font-size: 0.875rem; line-height: 1.45; display: grid; gap: 0.5rem; }
.bc__btn { text-align: center; font-weight: var(--fw-ui); font-size: 0.8125rem; padding: 0.5rem; border-radius: 0.75rem; background: var(--surface); color: var(--accent); }
.bc__meta { font-size: 0.75rem; color: var(--muted); }
.file { display: grid; gap: 0.5rem; background: var(--canvas); border-radius: 1.125rem; padding: 0.875rem; font-size: 0.875rem; }
.file__row { display: flex; justify-content: space-between; gap: 0.5rem; }
.file__row span { color: var(--muted); }
.bar { height: 0.375rem; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.js .bar i { transform: scaleX(.08); transition: transform 1.8s var(--ease) .2s; }
.js .is-in .bar i { transform: none; }
.cost { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.cost__n { font-size: 2.25rem; line-height: 1; font-weight: var(--fw-heading); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cost__bars { display: flex; align-items: flex-end; gap: 0.25rem; height: 3rem; }
.cost__bars i { width: 0.5rem; border-radius: 0.25rem; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.cost__bars i:last-child { background: var(--accent); }

/* ---------- 07 Data: dark band ---------- */
.dark { background: #0B0F19; color: #F9FAFB; border-radius: var(--r-card-lg); padding: clamp(1.5rem, 5vw, 4rem); display: grid; gap: var(--s-4);
  --d-line: rgba(255, 255, 255, 0.1); --d-muted: rgba(249, 250, 251, 0.62); --d-card: rgba(255, 255, 255, 0.04); }
.dark .t-heading { color: #F9FAFB; }
.dark .t-subhead { color: var(--d-muted); }
.dark__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.dcard { border: 1px solid var(--d-line); background: var(--d-card); border-radius: var(--r-card); padding: var(--s-3); display: grid; gap: 0.625rem; align-content: start; }
.dcard--wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem var(--s-3); align-items: center;
  background: radial-gradient(80% 160% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--d-card); }
.dcard__ico { width: 2.5rem; height: 2.5rem; border-radius: 0.875rem; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.dcard__ico svg { width: 1.25rem; height: 1.25rem; }
.dcard--wide .dcard__ico { grid-row: span 2; width: 3.25rem; height: 3.25rem; }
.dcard__title { font-size: 1.125rem; font-weight: var(--fw-heading); line-height: 1.3; }
.dcard__text { color: var(--d-muted); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- 08 Case ---------- */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4); align-items: end; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.stat { background: var(--surface); border-radius: var(--r-card); padding: var(--s-3); display: grid; gap: 0.5rem; align-content: start; }
.stat__n { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; font-weight: var(--fw-heading); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__l { color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }

/* ---------- 09 Platforms ---------- */
.plat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.pcard { background: var(--surface); border-radius: var(--r-card); padding: var(--s-3); display: grid; gap: 0.625rem; align-content: start; }
.pcard__ico { width: 2.75rem; height: 2.75rem; border-radius: 1rem; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pcard__ico svg { width: 1.375rem; height: 1.375rem; }
.pcard__title { font-size: 1.125rem; font-weight: var(--fw-heading); }
.pcard__text { color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.pcard a { color: var(--accent); text-decoration: none; font-weight: var(--fw-ui); font-size: 0.9375rem; }

/* ---------- 10 FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5); align-items: start; }
.faq__aside { display: grid; gap: var(--s-2); position: sticky; top: 6rem; }
.qa { background: var(--surface); border-radius: var(--r-card); }
.qa + .qa { margin-top: 0.5rem; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font-size: 1.125rem; font-weight: var(--fw-heading); line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa { transition: background-color .3s var(--ease); }
.qa:hover { background: color-mix(in srgb, var(--surface) 92%, var(--text)); }
.qa summary::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--canvas) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 5v10M5 10h10' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round'/></svg>") center / 1rem no-repeat; transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 1.5rem 1.375rem; color: var(--text-2); line-height: 1.6; max-width: 62ch; overflow: hidden; }

/* ---------- 11 Start and footer ---------- */
.start { background: #0B0F19; color: #F9FAFB; border-radius: var(--r-card-lg); padding: clamp(1.5rem, 6vw, 5rem); display: grid; gap: var(--s-4); justify-items: center; text-align: center; position: relative; overflow: hidden; }
.start::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.start > * { position: relative; }
.start .t-title { color: #F9FAFB; max-width: 18ch; }
.start .t-subhead { color: rgba(249,250,251,.68); max-width: 48ch; }
.start__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 0; margin: 0; list-style: none; counter-reset: st; }
.start__steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem 0.5rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,.07); font-size: var(--fs-small); color: rgba(249,250,251,.85); }
.start__steps li::before { content: counter(st); width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 0.75rem; font-weight: 600; }
.lead { width: min(100%, 40rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; text-align: left; }
.field { display: grid; gap: 0.375rem; font-size: 0.8125rem; color: rgba(249,250,251,.7); }
.field input { height: 3.25rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #F9FAFB; padding: 0 1rem; font: var(--fw-text) 1rem var(--font); transition: border-color .25s ease, background-color .25s ease; }
.field input::placeholder { color: rgba(249,250,251,.35); }
.field input:hover { border-color: rgba(255,255,255,.28); }
.field input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); }
.lead__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 0.375rem; }
.lead__note { font-size: 0.8125rem; color: rgba(249,250,251,.5); }
.lead__done { grid-column: 1 / -1; text-align: center; padding: 1rem; border-radius: 1rem; background: rgba(46,192,85,.12); color: #A7F3C0; }
.footer { display: grid; gap: var(--s-3); padding-block: var(--s-4) 0; }
.footer__mark { font-size: clamp(5rem, 22vw, 20rem); line-height: .8; font-weight: var(--fw-heading); letter-spacing: -0.06em; color: var(--text); text-align: center; user-select: none; }
.footer__mark span { color: var(--accent); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--fs-small); color: var(--muted); }
.footer__row a { color: var(--text-2); text-decoration: none; }
.footer__row a:hover { color: var(--accent); }

/* ---------- Responsive for 04–11 ---------- */
@media (max-width: 1100px) {
  .scenario { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .scenario:nth-child(even) .scenario__text { order: 0; }
  .bento .b-7, .bento .b-5 { grid-column: span 12; }
  .bento .b-4 { grid-column: span 6; }
  .bento .b-4:last-child { grid-column: span 12; }
  .dark__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .plat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .faq__aside { position: static; }
}
@media (max-width: 767px) {
  .scene { min-height: 0; border-radius: var(--r-card); padding: 1rem; }
  .fan { height: 19rem; }
  .wcard { width: 10.5rem; padding: 0.875rem; }
  .wcard__big { font-size: 2rem; }
  .scene.is-in .wcard--a { transform: translate(-74%, -50%) rotate(-6deg); }
  .scene.is-in .wcard--b { transform: translate(-50%, -55%) rotate(0deg); }
  .scene.is-in .wcard--c { transform: translate(-26%, -50%) rotate(6deg); }
  .rhythm { padding: var(--s-3); }
  .steps-line { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .steps-line::before { left: 0.4375rem; right: auto; top: 0.5rem; bottom: 0.5rem; width: 2px; height: auto; }
  .step { padding-top: 0; padding-left: 2rem; }
  .bento .b-4 { grid-column: span 12; }
  .dark { border-radius: var(--r-card); }
  .dark__grid { grid-template-columns: minmax(0, 1fr); }
  .dcard--wide { grid-template-columns: minmax(0, 1fr); }
  .dcard--wide .dcard__ico { grid-row: auto; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: var(--s-2); border-radius: 1.5rem; }
  .plat { grid-template-columns: minmax(0, 1fr); }
  .qa summary { padding: 1.125rem 1.25rem; font-size: 1rem; }
  .qa__a { padding: 0 1.25rem 1.25rem; }
  .start { border-radius: var(--r-card); }
  .lead { grid-template-columns: minmax(0, 1fr); }
  .start__steps { flex-direction: column; align-items: stretch; width: 100%; }
  .start__steps li { text-align: left; border-radius: 1rem; }
  .lead__foot { flex-direction: column; align-items: stretch; }
  .footer__row { flex-direction: column; }
}

/* ---------- 04: album of real weekly cards inside the bot message ---------- */
.bub--album { max-width: 100%; width: 100%; padding: 0.625rem 0.625rem 0.5rem; display: grid; gap: 0.5rem; }
.bub--album .bub__who { padding: 0 0.25rem; }
.album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 0.875rem; overflow: hidden; }
.album__item { padding: 0; border: 0; background: #F4F4F4; cursor: zoom-in; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.album__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.album__item:hover img { transform: scale(1.06); }
.album__cap { padding: 0 0.25rem; font-size: 0.875rem; line-height: 1.45; }
.bub__btn { display: block; text-align: center; font-size: 0.8125rem; font-weight: 600; color: #2B7FD4; background: #F1F6FC; border-radius: 0.625rem; padding: 0.4375rem; }
.js .scene .album__item { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .scene.is-in .album__item { opacity: 1; transform: none; }
.js .scene.is-in .album__item:nth-child(2) { transition-delay: .08s; } .js .scene.is-in .album__item:nth-child(3) { transition-delay: .16s; }
.js .scene.is-in .album__item:nth-child(4) { transition-delay: .24s; } .js .scene.is-in .album__item:nth-child(5) { transition-delay: .32s; } .js .scene.is-in .album__item:nth-child(6) { transition-delay: .4s; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .35s var(--ease); }
.lightbox::backdrop { background: rgba(3, 7, 18, 0.82); backdrop-filter: blur(6px); }
.lightbox__img { max-width: min(92vw, 34rem); max-height: 88dvh; border-radius: 1.25rem; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; border-radius: 50%; width: 3rem; height: 3rem; background: rgba(255,255,255,.12); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }

/* ---------- 04: dialogs with the bot ---------- */
.asks { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.25rem; }
.ask { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: var(--r-pill); padding: 0.5rem 0.875rem; font: var(--fw-ui) var(--fs-small)/1.2 var(--font); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.ask:hover { border-color: var(--accent); color: var(--accent); }
.ask[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dialog { min-height: 17rem; align-content: start; }
.dialog__feed { display: grid; gap: 0.625rem; }
.bub--in { animation: bubIn .45s var(--ease) both; }
@keyframes bubIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.bub--typing { padding: 0.75rem 0.875rem; }
.typing { display: inline-flex; gap: 0.25rem; }
.typing i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #9CA3AF; animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bub--in, .typing i { animation: none; } }

/* ---------- Open backlog: text and a phone ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; border-radius: var(--r-card-lg); padding: clamp(1.5rem, 4vw, 3.5rem);
  background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%), var(--surface); }
.split__text { display: grid; gap: var(--s-3); align-content: center; min-width: 0; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); max-width: 40rem; }
.points li { display: grid; gap: 0.25rem; padding-left: 1.75rem; position: relative; color: var(--text-2); line-height: 1.55; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--accent-tint); }
.points li::after { content: ""; position: absolute; left: 0.1875rem; top: calc(0.3em + 0.1875rem); width: 0.75rem; height: 0.75rem; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.points b { color: var(--text); font-weight: var(--fw-heading); }

@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
@media (max-width: 767px) {
  .split { border-radius: var(--r-card); padding: var(--s-3) var(--s-2); }
  .split .phone { zoom: 0.9; }
}

/* ---------- Hero: live chat and the real app ---------- */
.app--live { position: relative; padding: 0; overflow: hidden; background: #EBEBEB; display: block; }
.app__frame { position: absolute; top: 0; left: 0; width: 390px; border: 0; transform-origin: 0 0; pointer-events: none; }
.msg--new { animation: bubIn .5s var(--ease) both; }
@keyframes glowFade { 0%, 15% { box-shadow: 0 1px 1px rgba(0,0,0,.05); } 25%, 70% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 1px 1px rgba(0,0,0,.05); } }
.mini-album { display: grid; grid-template-columns: repeat(3, 4.25rem); gap: 2px; border-radius: 0.625rem; overflow: hidden; margin: 0.25rem 0 0.375rem; }
.mini-album img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.bubble .typing { padding: 0.25rem 0.125rem; }
@media (max-width: 767px) { .app--live { height: 30rem; } }

/* ---------- 04: weekly cards as stories ---------- */
.stories { position: relative; width: min(100%, 22rem); aspect-ratio: 4 / 5; border-radius: 1.5rem; overflow: hidden; background: #F4F4F4;
  box-shadow: 0 30px 70px rgba(3, 7, 18, 0.18); outline-offset: 4px; user-select: none; touch-action: pan-y; }
.stories__frame, .stories__slide { position: absolute; inset: 0; }
.stories__slide { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.stories__slide.is-active { opacity: 1; transform: none; }
.stories__bars { position: absolute; z-index: 3; top: 0.625rem; left: 0.625rem; right: 0.625rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.25rem; }
.stories__bar { height: 3px; border-radius: 2px; background: rgba(17, 24, 39, .14); overflow: hidden; }
.stories__bar i { display: block; height: 100%; width: 100%; background: #111827; transform-origin: left; transform: scaleX(0); }
.stories__tap { position: absolute; z-index: 2; top: 0; bottom: 0; width: 40%; border: 0; background: transparent; cursor: pointer; }
.stories__tap--prev { left: 0; cursor: w-resize; }
.stories__tap--next { right: 0; width: 60%; cursor: e-resize; }
@media (max-width: 767px) { .stories { width: min(100%, 19rem); } }

/* ---------- 04: facts under a scenario ---------- */
.facts { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; max-width: 44ch; }
.facts li { position: relative; padding-left: 1.5rem; color: var(--text); font-size: 0.9375rem; line-height: 1.45; }
.facts li::before { content: ""; position: absolute; left: 0.25rem; top: 0.55em; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--accent); }

/* ---------- 04: promise and event scenes ---------- */
.chat-day { justify-self: center; font-size: 0.75rem; color: #6B7280; background: rgba(255,255,255,.7); padding: 0.1875rem 0.625rem; border-radius: 999px; }
.event { justify-self: start; display: flex; gap: 0.75rem; align-items: center; background: #fff; border-radius: 1rem; padding: 0.625rem 0.875rem 0.625rem 0.625rem; box-shadow: 0 6px 18px rgba(3,7,18,.08); font-size: 0.8125rem; }
.event > div:last-child { display: grid; gap: 0.125rem; }
.event > div:last-child span { color: #6B7280; }
.event__date { width: 2.75rem; border-radius: 0.625rem; overflow: hidden; text-align: center; background: #F3F4F6; display: grid; }
.event__date span { background: #E5484D; color: #fff; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; padding: 0.125rem 0; }
.event__date b { font-size: 1.125rem; padding: 0.125rem 0 0.25rem; }

/* ---------- Open backlog: example proposals ---------- */
.ideas { display: grid; gap: 0.5rem; max-width: 30rem; }
.idea { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 1rem; border-radius: 1rem; background: var(--canvas); font-size: 0.9375rem; }
.idea b { font-weight: var(--fw-heading); }
.idea em { flex: none; font-style: normal; font-size: 0.8125rem; color: var(--accent); font-weight: var(--fw-ui); }
.footer__row a.footer__brand { color: var(--accent); font-weight: var(--fw-heading); }
.footer__row a.footer__brand:hover { color: var(--accent-hover); }

/* ---------- Hero: a week of the chat and pieces of the app ---------- */
.feed { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-block: 45% 45%; gap: 0.625rem; scroll-behavior: auto; }
.feed::-webkit-scrollbar { display: none; }
.tl-day { align-self: center; font-size: 0.75rem; color: #6B7280; background: rgba(255,255,255,.75); padding: 0.1875rem 0.75rem; border-radius: 999px; margin: 0.375rem 0 0.125rem; }
.tl-event { display: grid; gap: 0.5rem; cursor: pointer; opacity: .38; transition: opacity .5s var(--ease); }
.tl-event.is-active { opacity: 1; }
.tl-event .msg { max-width: 92%; }
.ava--bot { background: #111; }
.pieces { position: relative; background: #EBEBEB; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 1.25rem 1.125rem; min-width: 0; min-height: 0;
  --pc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; font-family: var(--pc-font); color: #111827; }

/* Story bars: one per piece, the current one fills while it is shown */
.pieces__bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.25rem; }
.pieces__bar { appearance: none; border: 0; background: none; padding: 0.375rem 0; cursor: pointer; }
.pieces__bar i { display: block; height: 3px; border-radius: 2px; background: rgba(17, 24, 39, .12); overflow: hidden; position: relative; }
.pieces__bar i::after { content: ""; position: absolute; inset: 0; background: #111827; border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 0)); }
.pieces__bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.pieces__stage { position: relative; min-height: 0; }
.piece { position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: auto auto; align-content: start; gap: 0.875rem;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .6s var(--ease); pointer-events: none; }
.piece.is-active { opacity: 1; transform: none; pointer-events: auto; }
.piece figcaption { display: grid; gap: 0.125rem; font: 600 1rem/1.3 var(--pc-font); padding: 0 0.25rem; }
.piece figcaption span { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: #6B7280; }

.pieces__nav { display: flex; align-items: center; gap: 0.5rem; }
.pieces__count { margin-right: auto; padding-left: 0.25rem; font-size: 0.8125rem; color: #6B7280; font-variant-numeric: tabular-nums; }
.pieces__arrow { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(17, 24, 39, .12); background: #fff; color: #111827; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.pieces__arrow svg { width: 1.125rem; height: 1.125rem; }
.pieces__arrow:hover { border-color: rgba(17, 24, 39, .28); }
.pieces__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* One component of the app: a white card with an even border, everything inside it */
.pc { background: #fff; border: 1px solid #E3E5E8; border-radius: 1.125rem; padding: 0.875rem 1rem 1rem; display: grid; gap: 0.625rem; overflow: hidden; font-size: 0.875rem; line-height: 1.35; }
.pc img { display: block; }
.pc__head { display: flex; align-items: center; gap: 0.625rem; padding-bottom: 0.625rem; border-bottom: 1px solid #F0F1F3; }
.pc__head > img, .pc__rows img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; flex: none; }
.pc__name { display: grid; min-width: 0; font-weight: 600; flex: 1; }
.pc__name small { font-weight: 400; font-size: 0.8125rem; color: #6B7280; }
.pc__name > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__amt { display: grid; justify-items: end; flex: none; }
.pc__amt small { font-size: 0.8125rem; color: #6B7280; white-space: nowrap; }
.pc__chip { font-style: normal; font-size: 0.75rem; font-weight: 600; padding: 0.1875rem 0.5rem; border-radius: 999px; white-space: nowrap; flex: none; }
.pc__chip--ok { background: #E8F5EC; color: #15803D; }
.pc__chip--late { background: #FDF3E1; color: #B45309; }
.pc__chip--none { background: #F2F3F5; color: #6B7280; }
.pc__topic { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #9CA3AF; margin-bottom: -0.25rem; }
.pc__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4375rem; }
.pc-i { display: grid; grid-template-columns: 1.125rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.pc-i span { display: grid; }
.pc-i small { font-size: 0.8125rem; color: #6B7280; }
.pc-i::before { content: ""; width: 1.125rem; height: 1.125rem; margin-top: 0.03rem; border-radius: 50%; box-sizing: border-box; background: center / 0.75rem no-repeat; }
.pc-i--done::before { background-color: #16A34A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pc-i--moved::before { background-color: #F3F4F6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6h7m0 0L7 3.5M9.5 6 7 8.5' stroke='%236B7280' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pc-i--plan::before { border: 1.5px solid #4F6BED; }
.pc-i--ask::before { background-color: #EEF1FD; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.6 4.6a1.5 1.5 0 1 1 2 1.4c-.4.2-.6.5-.6.9v.3' stroke='%234F6BED' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='9' r='.7' fill='%234F6BED'/%3E%3C/svg%3E"); }
.pc-i--open::before { border: 1.5px solid #D1D5DB; }

.pc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.25rem; }
.pc__top b { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.pc__top span { font-size: 0.8125rem; color: #6B7280; }
.pc__rows { list-style: none; margin: 0; padding: 0; display: grid; }
.pc__rows li { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0; border-top: 1px solid #F0F1F3; }
.pc__rows li:last-child { padding-bottom: 0; }
.pc__glyph { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: #F3F4F6; color: #6B7280; font-style: normal; font-weight: 600; flex: none; }
.pc__sum { font-weight: 600; white-space: nowrap; color: #374151; }
.pc__sum.is-in { color: #15803D; }

.pc__album { display: grid; grid-template-columns: repeat(3, minmax(0, 8.5rem)); gap: 0.375rem; }
.pc__album img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.625rem; }
.pc__text { display: grid; gap: 0.125rem; color: #374151; }
.pc__text b { color: #111827; font-weight: 600; }

.pc__date { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: #EEF1FD; color: #4F6BED; display: grid; place-content: center; text-align: center; font-size: 0.6875rem; line-height: 1; text-transform: uppercase; flex: none; }
.pc__date b { font-size: 1.125rem; margin-bottom: 0.125rem; }
.pc__facts { margin: 0; display: grid; gap: 0.625rem; }
.pc__facts div { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.5rem; }
.pc__facts dt { color: #6B7280; }
.pc__facts dd { margin: 0; display: grid; gap: 0.375rem; }
.pc__who { display: flex; align-items: center; gap: 0.5rem; }
.pc__who img { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; }
.pc__src { margin: 0; padding-top: 0.5rem; border-top: 1px solid #F0F1F3; font-size: 0.8125rem; color: #6B7280; }
.pc__progress { height: 0.375rem; border-radius: 999px; background: #F0F1F3; overflow: hidden; }
.pc__progress i { display: block; height: 100%; border-radius: inherit; background: #16A34A; }

.win__body { height: 34rem; min-height: 0; }
.chat { min-height: 0; }
.feed { min-height: 0; }
@media (max-width: 1023px) {
  .win__body { height: auto; grid-template-rows: 18rem auto; }
  .pieces__stage { height: 25rem; }
}
@media (max-width: 767px) {
  .pieces { padding: 0.75rem 0.875rem 0.875rem; }
  .pieces__stage { height: 28.5rem; }
  .pc { padding: 0.75rem 0.875rem 0.875rem; }
  .pc__head > img, .pc__rows img, .pc__glyph { width: 2rem; height: 2rem; }
}

/* ---------- 08: one group in numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.num { background: var(--surface); border-radius: var(--r-card-lg); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.num--wide { grid-column: span 2; grid-row: span 1; }
.num__head { display: grid; gap: 0.75rem; }
.num__big { font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1; font-weight: var(--fw-heading); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.num__text { color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; max-width: 34ch; }
.num__text b { color: var(--text); font-weight: var(--fw-heading); }
.num__note { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.num--wide .num__head { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: var(--s-3); }
.num--wide .num__text { max-width: 44ch; }
.chart { width: 100%; height: auto; margin-top: auto; overflow: visible; }
.chart .cbar { fill: color-mix(in srgb, var(--accent) 28%, transparent); }
.chart .cbar--now { fill: var(--accent); }
.chart .axis { fill: var(--muted); font: 500 11px var(--font); }
.ring { --size: 7.5rem; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 79%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--fill) 0); }
.ring span { display: grid; justify-items: center; font-size: 2rem; font-weight: var(--fw-heading); letter-spacing: -0.03em; line-height: 1; }
.ring small { font-size: 0.8125rem; font-weight: var(--fw-ui); color: var(--muted); letter-spacing: 0; margin-top: 0.25rem; }
.tline { margin-top: auto; display: grid; gap: 0.5rem; }
.tline__track { position: relative; height: 2.25rem; border-radius: 999px; background: var(--canvas); }
.tline__deadline { position: absolute; top: -0.25rem; bottom: -0.25rem; width: 2px; background: var(--text); border-radius: 2px; }
.tdot { position: absolute; top: 50%; width: 0.75rem; height: 0.75rem; margin: -0.375rem 0 0 -0.375rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); border: 2px solid var(--surface); }
.tdot--hour { background: var(--accent); }
.tdot--late { background: #E5484D; }
.tline__axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }
.tline__axis span:nth-child(2) { margin-left: auto; margin-right: 6%; }
.pairs { margin-top: auto; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0.25rem; }
.pairs i { aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.pairs i.off { background: var(--fill); }
.stack { margin-top: auto; display: flex; gap: 2px; height: 0.875rem; border-radius: 999px; overflow: hidden; }
.seg--done { background: #2EC055; } .seg--extra { background: #6FD68C; } .seg--progress { background: var(--accent); } .seg--plan { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); } .seg--failed { background: #E5484D; }
.stack__legend { display: flex; flex-wrap: wrap; gap: 0.375rem 0.875rem; font-size: 0.8125rem; color: var(--text-2); }
.stack__legend span { display: inline-flex; align-items: center; gap: 0.375rem; }
.stack__legend i { width: 0.5rem; height: 0.5rem; border-radius: 50%; display: inline-block; }
@media (max-width: 1100px) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num--wide { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .num { border-radius: var(--r-card); padding: var(--s-3); }
  .num--wide .num__head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Section titles sit half a corner radius in from the blocks below them ---------- */
.section-head, .hero__text, .faq__aside { padding-left: calc(var(--r-card-lg) / 2); }
.dark .section-head, .split .section-head, .faq__aside .section-head { padding-left: 0; }
@media (max-width: 767px) {
  .section-head, .hero__text, .faq__aside { padding-left: calc(var(--r-card) / 2); }
  .dark .section-head, .split .section-head { padding-left: 0; }
}

/* ---------- More air between lines of running text ---------- */
.t-subhead { line-height: 1.55; }
.t-body, .scenario__body, .tile__text, .pcard__text, .dcard__text, .points li { line-height: 1.65; }
.scenario__note { line-height: 1.6; }
.facts { gap: 0.625rem; }
.facts li { line-height: 1.55; }
.qa__a { line-height: 1.7; }
.section-head { gap: 1.25rem; }
.num--center { justify-content: center; align-items: flex-start; }
.num--center .ring { --size: 9rem; }

/* Showcase tab: the progress bar is part of the tab, so the space under it equals the space above the title */
.tab { padding: 1.5rem 1.5rem; }
.tab__progress { position: relative; left: auto; right: auto; bottom: auto; height: 0; margin-top: 0; opacity: 0;
  transition: height .4s var(--ease), margin-top .4s var(--ease), opacity .4s var(--ease); }
.tab[aria-selected="true"] .tab__progress { height: 2px; margin-top: 1.125rem; opacity: 1; }

/* Scenario texts line up with the section title: half a corner radius in */
.scenario__text { padding-left: calc(var(--r-card-lg) / 2); }
@media (max-width: 767px) { .scenario__text { padding-left: calc(var(--r-card) / 2); } }

/* Stories: the progress bars get their own strip above the card, so they never cover it */
.stories { aspect-ratio: auto; background: #F5F5F5; padding-top: 1.625rem; }
.stories__bars { top: 0.75rem; left: 0.875rem; right: 0.875rem; }
.stories__bar { background: rgba(17, 24, 39, .12); }
.stories__frame { position: relative; inset: auto; aspect-ratio: 4 / 5; }
.stories__slide { position: absolute; inset: 0; }

/* Numbers: every line is rounded */
.stack { gap: 4px; overflow: visible; border-radius: 0; height: 0.875rem; }
.stack .seg { border-radius: 999px; min-width: 0.875rem; }
.tone { margin-top: auto; display: grid; gap: 0.5rem; }
.tone__row { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) 2.25rem; align-items: center; gap: 0.625rem; }
.tone__emoji { font-size: 1.125rem; line-height: 1; }
.tone__bar { height: 0.625rem; border-radius: 999px; background: var(--canvas); overflow: hidden; }
.tone__bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.tone__n { font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.qa-pic { margin-top: auto; display: grid; gap: 0.5rem; padding: 1rem; border-radius: 1.5rem; background: #EEF1F4; }
.qa-pic .bub { box-shadow: none; }
.qa-pic__time { justify-self: center; font-size: 0.75rem; font-weight: 600; color: #2F7E46; background: rgba(46, 192, 85, .14); padding: 0.25rem 0.625rem; border-radius: 999px; }

/* Numbers v3: thin rounded lines */
.streak { width: 100%; height: 7.5rem; margin-top: auto; fill: var(--accent); }
.cum-wrap { margin-top: auto; color: var(--accent); }
.cum { width: 100%; height: auto; display: block; overflow: visible; }
.thumbs { margin-top: auto; display: flex; padding-left: 0.5rem; }
.thumbs img { width: 34%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.875rem; box-shadow: 0 10px 28px rgba(3,7,18,.12); margin-left: -0.5rem; border: 2px solid var(--surface); }
.thumbs img:nth-child(1) { transform: rotate(-5deg); } .thumbs img:nth-child(3) { transform: rotate(5deg); }
.qa-pic .bub__src { margin-top: 0.375rem; font-size: 0.6875rem; color: #6B7280; }
.member-bars { margin-top: auto; display: grid; gap: 0.625rem; }
.member-bar { display: grid; grid-template-columns: minmax(0, 1fr) 2rem; align-items: center; gap: 0.75rem; }
.member-bar__track { height: 0.375rem; border-radius: 999px; background: var(--canvas); overflow: hidden; }
.member-bar__track i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.member-bar__n { font-size: 0.8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
