/* OwlAgenda: live-surface build on the scrollcraft engine.
   Theme = token overrides. The engine file is never edited. */

:root {
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --sc-font-mono: "Geist Mono", ui-monospace, monospace;
  --side-w: 15.5rem;
  --bar-h: 56px;
  --r: 10px;
  --r-win: 16px;
}

/* OwlAgenda colour system: night cockpit, 60-30-10.
   60 obsidian ground, 30 chalk ink, 10 signal amber. Amber is kept for the owl's eyes,
   the booked moment, money figures and the main action. Radar green means "the system is on". */
[data-theme="dark"] {
  --sc-canvas: #0B0C0E;
  --sc-surface: #141619;
  --surface-2: #1A1D21;
  --glass: rgb(22 24 27 / 0.7);
  --sc-hairline: rgb(255 255 255 / 0.08);
  --sc-hairline-strong: rgb(255 255 255 / 0.14);
  --sc-ink: #EDEDEA;
  --sc-ink-soft: #8E9196;
  --ink-faint: #62666B;
  --sc-accent: #FF6A33;
  --sc-accent-ink: #160701;
  --accent-text: #FF8A5C;
  --ok: #7FD1A7;
  --live: #10B981;
  --sc-shadow-color: 220 20% 2%;
  color-scheme: dark;
}
/* Light: cold lab paper, deep ink, burnt signal orange. White cards, ultra thin graphite rules. */
[data-theme="light"] {
  --sc-canvas: #F4F4F1;
  --sc-surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --glass: rgb(255 255 255 / 0.74);
  --sc-hairline: rgb(21 23 26 / 0.09);
  --sc-hairline-strong: rgb(21 23 26 / 0.16);
  --sc-ink: #15171A;
  --sc-ink-soft: #565A5F;
  --ink-faint: #7C8085;
  --sc-accent: #D9480F;
  --sc-accent-ink: #FFFFFF;
  --accent-text: #B83E0E;
  --ok: #0E7A55;
  --live: #10B981;
  --sc-shadow-color: 220 15% 30%;
  color-scheme: light;
}
[data-theme="light"] .sc-grain { opacity: 0.03; }

body { font-weight: 400; transition: background-color var(--sc-d-base) var(--sc-ease-out), color var(--sc-d-base) var(--sc-ease-out); }
[data-theme="dark"] body { letter-spacing: 0.002em; line-height: 1.66; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: var(--r); background: var(--sc-surface); }
.skip:focus { left: 8px; }
.nums { font-variant-numeric: tabular-nums; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 6px 16px -8px hsl(16 100% 40% / 0.55); }
@media (hover: hover) and (pointer: fine) { .btn-accent:hover { background: color-mix(in oklab, var(--sc-accent) 88%, white); } }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); cursor: pointer; transition: border-color 160ms var(--sc-ease-out); }
.icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--sc-ink-soft); } }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* --------------------------------------------------------------- sidebar */
.side {
  position: fixed; inset: 0 auto 0 0; z-index: var(--sc-z-chrome); width: var(--side-w);
  display: flex; flex-direction: column; gap: var(--sc-5); padding: 14px 12px 16px;
  background: color-mix(in oklab, var(--sc-canvas) 86%, var(--sc-surface));
  border-right: 1px solid var(--sc-hairline);
}
.ws { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r); text-decoration: none; }
/* Logo: two masks of the owl mark. The body takes the ink colour, the eyes take signal amber,
   so the mark matches both themes without separate files. */
.logo { position: relative; width: 34px; height: 34px; flex: none; display: block; }
.logo i { position: absolute; inset: 0; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo-m { --m: url("../img/logo-mark.png"); background: var(--sc-ink); }
.logo-e { --m: url("../img/logo-eyes.png"); background: var(--sc-accent); filter: drop-shadow(0 0 3px color-mix(in oklab, var(--sc-accent) 70%, transparent)); animation: owl-blink 7s ease-in-out infinite; transform-origin: 50% 42%; }
@keyframes owl-blink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(0.08); } }
@media (prefers-reduced-motion: reduce) { .logo-e { animation: none; } }
.bar-logo { display: none; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .logo { width: 22px; height: 22px; }
.ws-text { display: grid; line-height: 1.2; }
.ws-text b { font-weight: 650; letter-spacing: -0.015em; }
.ws-text small { color: var(--sc-ink-soft); font-size: 0.87rem; }
.views { display: grid; gap: 2px; }
.views a {
  position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px;
  border-radius: 8px; color: var(--sc-ink-soft); text-decoration: none; font-size: 0.98rem; font-weight: 500;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.views a svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) { .views a:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 5%, transparent); } }
.views a[aria-current="true"] { color: var(--sc-ink); background: var(--sc-surface); box-shadow: var(--sc-edge), 0 1px 2px hsl(var(--sc-shadow-color) / 0.2); }
.views a[aria-current="true"]::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--sc-ink); }
.views-rule { height: 1px; margin: 10px 10px; background: var(--sc-hairline); }
.count {
  position: relative; margin-left: auto; min-width: 1.45rem; height: 1.45rem; padding: 0 0.4rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  font: 700 0.8rem/1 var(--sc-font-text); font-variant-numeric: tabular-nums; letter-spacing: 0;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 22%, transparent), 0 4px 14px -4px color-mix(in oklab, var(--sc-accent) 80%, transparent);
  animation: badge-pop 520ms cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.count span { display: block; transform: translateY(0.02em); }
.count::before, .count::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--sc-accent); pointer-events: none;
  animation: badge-ring 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
.count::after { animation-delay: 0.7s; }
@keyframes badge-pop { 0% { transform: scale(0.3) rotate(-20deg); opacity: 0; } 55% { transform: scale(1.3) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes badge-ring { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(2.3); opacity: 0; } }
.views a.has-unread { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-accent) 10%, transparent); }
.views a.has-unread svg { color: var(--accent-text); animation: inbox-shake 0.9s ease both; transform-origin: 50% 20%; }
@keyframes inbox-shake { 0%, 100% { transform: none; } 15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
.menu-btn { position: relative; }
.menu-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 2px var(--sc-surface); }
.menu-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sc-accent); animation: badge-ring 1.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .count, .count::before, .count::after, .views a.has-unread svg, .menu-dot::after { animation: none; } }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-foot .btn { width: 100%; }
.settings { display: flex; gap: 6px; }
.field-sel { position: relative; flex: 1; min-width: 0; }
.field-sel select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 40px; padding: 0 26px 0 10px;
  border-radius: var(--r); border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface);
  font-size: 0.95rem; font-weight: 500; cursor: pointer; text-overflow: ellipsis;
}
.field-sel::after { content: ""; position: absolute; right: 11px; top: 16px; width: 6px; height: 6px; border-right: 1.5px solid var(--sc-ink-soft); border-bottom: 1.5px solid var(--sc-ink-soft); transform: rotate(45deg); pointer-events: none; }

/* ------------------------------------------------------------ status bar */
.bar {
  position: fixed; top: 0; right: 0; left: var(--side-w); z-index: calc(var(--sc-z-chrome) - 1); height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-4); padding: 0 var(--sc-5);
  background: color-mix(in oklab, var(--sc-canvas) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--sc-hairline);
}
.bar p { margin: 0; }
.menu-btn { display: none; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; color: var(--sc-ink-soft); white-space: nowrap; overflow: hidden; }
.crumb b { color: var(--sc-ink); font-weight: 600; }
.crumb-sep { color: var(--ink-faint); }
.clock { margin-left: auto !important; display: flex; align-items: baseline; gap: 10px; }
.clock-label { font-family: var(--sc-font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.clock-time { font-family: var(--sc-font-mono); font-size: 0.98rem; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 12ch; text-align: right; }
.clock.is-live .clock-time { color: var(--sc-ink); }
.sample { padding: 4px 9px; border-radius: 6px; border: 1px dashed var(--sc-hairline-strong); font-family: var(--sc-font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); white-space: nowrap; }

/* ------------------------------------------------------------------ main */
.main { margin-left: var(--side-w); }
html { font-size: clamp(16px, 0.5vw + 10.4px, 22px); }
.wrap { width: 100%; max-width: 92rem; margin-inline: auto; padding-inline: clamp(1.25rem, 3.5vw, 4.5rem); }
.view { scroll-margin-top: var(--bar-h); }
.view:not(.view-inbox):not(.view-winback) { padding-block: clamp(4.5rem, 7vw, 8rem); }
.h1 { margin: 0; font-size: clamp(2.5rem, 1.2rem + 3vw, 4.4rem); font-weight: 650; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; max-width: 14ch; }
.h2 { margin: 0; font-size: clamp(2rem, 1.1rem + 2.5vw, 3.7rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; max-width: 17ch; }
[data-theme="dark"] :is(.h1, .h2) { letter-spacing: -0.032em; }
.lede { margin: 0; font-size: clamp(1.12rem, 1rem + 0.45vw, 1.42rem); line-height: 1.5; color: var(--sc-ink-soft); max-width: 38ch; text-wrap: pretty; }
.body { margin: 0; color: var(--sc-ink-soft); max-width: 46ch; font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.26rem); text-wrap: pretty; }
.note > .body { margin-top: var(--sc-4); }
.note--wide { margin-bottom: var(--sc-7); }
.note--wide .h2 { max-width: 26ch; }
.mono-meta { font-family: var(--sc-font-mono); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.fine { margin: 0; font-size: 0.9rem; color: var(--ink-faint); }

.panel {
  background: var(--sc-surface); border: 1px solid var(--sc-hairline); border-radius: var(--r-win);
  box-shadow: var(--sc-edge), var(--sc-e2);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--sc-hairline); font-size: 0.98rem; }
.panel-head--sub { border-top: 1px solid var(--sc-hairline); }

/* ================================================================ INBOX == */
.inbox-stage {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem); padding: calc(var(--bar-h) + 4vh) clamp(1.25rem, 4vw, 4rem) 6vh; position: relative;
}
.intro { display: grid; gap: var(--sc-5); align-content: center; justify-items: start; }
.intro .btn { margin-top: var(--sc-2); order: 3; }
.intro .lede { order: 2; }

.hero-visual { position: relative; display: flex; justify-content: flex-start; padding: 28px 0 28px 4%; }
.phone {
  position: relative; z-index: 1; width: min(370px, 100%); display: flex; flex-direction: column;
  background: var(--sc-surface); border: 1px solid var(--sc-hairline); border-radius: 34px; padding: 10px;
  box-shadow: var(--sc-edge), var(--sc-e3), 0 40px 80px -30px hsl(var(--sc-shadow-color) / 0.55);
}
.phone-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--sc-hairline); }
.avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #0B0C0E; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.avatar .logo { width: 28px; height: 28px; }
.avatar .logo-m { background: #EDEDEA; }
.chat-who { display: grid; line-height: 1.3; min-width: 0; }
.chat-who b { font-weight: 600; font-size: 0.98rem; }
.online { display: flex; align-items: center; gap: 6px; font-size: 0.87rem; color: var(--ok); font-weight: 500; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-closed { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 6px 0; padding: 7px 10px; border-radius: 10px; background: color-mix(in oklab, var(--sc-ink) 5%, transparent); font-size: 0.85rem; color: var(--sc-ink-soft); }
.dot-off { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.chat {
  list-style: none; margin: 0; padding: 14px 6px 10px; height: 410px; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
}
.chat > li { display: none; }
.chat > li.on { display: flex; animation: msg-in 380ms cubic-bezier(.2,.8,.2,1) both; }
.msg { flex-direction: column; gap: 4px; max-width: 82%; padding: 10px 14px 7px; border-radius: 18px; font-size: 0.98rem; line-height: 1.45; }
.msg time { font-family: var(--sc-font-mono); font-size: 0.78rem; color: var(--ink-faint); align-self: flex-end; }
.msg.lead { align-self: flex-start; background: color-mix(in oklab, var(--sc-ink) 7%, var(--sc-surface)); border-bottom-left-radius: 6px; }
.msg.ai { align-self: flex-end; background: color-mix(in oklab, var(--sc-accent) 20%, var(--sc-surface)); border-bottom-right-radius: 6px; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.slot { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--sc-hairline-strong); font-size: 0.87rem; font-weight: 500; transition: background-color 200ms var(--sc-ease-out), color 200ms var(--sc-ease-out); }
.slot.is-picked.picked { background: var(--sc-ink); color: var(--sc-canvas); border-color: var(--sc-ink); }
.typing { align-self: flex-end; gap: 4px; padding: 13px 16px; border-radius: 18px; border-bottom-right-radius: 6px; background: color-mix(in oklab, var(--sc-accent) 12%, var(--sc-surface)); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sc-ink-soft); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.phone-input { margin: 6px; height: 46px; border-radius: 999px; background: color-mix(in oklab, var(--sc-ink) 5%, transparent); display: flex; align-items: center; gap: 6px; padding: 0 18px; }
.phone-input span { height: 6px; border-radius: 99px; background: var(--sc-hairline-strong); }
.phone-input span:nth-child(1) { width: 34%; } .phone-input span:nth-child(2) { width: 14%; } .phone-input span:nth-child(3) { width: 8%; margin-left: auto; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px;
  background: var(--sc-surface); border: 1px solid var(--sc-hairline); border-radius: 16px;
  box-shadow: var(--sc-edge), var(--sc-e2); animation: floaty 7s ease-in-out infinite;
}
.float span { display: grid; line-height: 1.25; }
.float small { font-size: 0.83rem; color: var(--sc-ink-soft); }
.float b { font-family: var(--sc-font-mono); font-weight: 500; font-size: 1.05rem; }
.f-ic { width: 36px; height: 36px; flex: none; display: grid !important; place-items: center; border-radius: 11px; background: color-mix(in oklab, var(--sc-ink) 6%, transparent); }
.f-ic svg { width: 18px; height: 18px; }
.f-ic--ok { background: var(--ok); color: var(--sc-canvas); }
.f-ic--ok svg { stroke-width: 2.4; }
.float-timer { left: -6%; top: 150px; }
.float { translate: calc(var(--mx, 0) * 22px) calc(var(--my, 0) * 16px + var(--enter, 0px)); }
.float-timer.is-running b { color: var(--accent-text); }
.float-timer.is-stopped b { color: var(--ok); }
.float-booked { right: 6%; bottom: 96px; animation-delay: -3s; opacity: 0; --enter: 12px; transition: opacity 320ms var(--sc-ease-out); }
.float-booked.on { opacity: 1; --enter: 0px; }
.stamp { position: absolute; left: 50%; bottom: 2.2vh; translate: -50% 0; margin: 0; font-family: var(--sc-font-mono); font-size: 0.87rem; color: var(--sc-ink-soft); opacity: 0; transition: opacity 300ms var(--sc-ease-out); white-space: nowrap; }
.stamp.on { opacity: 1; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =============================================================== TRIALS == */
.trials-grid, .members-grid, .report-grid, .help-grid, .start-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
@media (min-width: 1024px) {
  :is(.trials-grid, .members-grid, .report-grid, .help-grid, .start-grid) > .note { position: sticky; top: calc(var(--bar-h) + 3rem); }
}
.note--wide { position: relative; z-index: 1; }
.funnel { list-style: none; margin: var(--sc-6) 0 0; padding: 0; display: grid; gap: 0; max-width: 22rem; }
.funnel li { position: relative; padding: 9px 0 9px 26px; color: var(--ink-faint); font-weight: 500; border-top: 1px solid var(--sc-hairline); transition: color 200ms var(--sc-ease-out); }
.funnel li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--sc-hairline-strong); transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out); }
.funnel li.on { color: var(--sc-ink); }
.funnel li.on::before { background: var(--sc-accent); border-color: var(--sc-accent); }
#week-range { text-transform: none; letter-spacing: 0; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { min-height: 9.5rem; padding: 10px 8px; border-right: 1px solid var(--sc-hairline); display: flex; flex-direction: column; gap: 6px; transition: background-color 200ms var(--sc-ease-out); }
.day:last-child { border-right: 0; }
.day-name { font-family: var(--sc-font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.day.is-today { background: color-mix(in oklab, var(--sc-ink) 4%, transparent); }
.day.is-today .day-name { color: var(--sc-ink); }
.ev { padding: 5px 6px; border-radius: 6px; font-size: 0.78rem; line-height: 1.3; background: color-mix(in oklab, var(--sc-ink) 7%, transparent); color: var(--sc-ink-soft); overflow: hidden; }
.ev b { display: block; font-family: var(--sc-font-mono); font-weight: 500; color: var(--sc-ink); }
.ev--her { background: var(--sc-accent); color: var(--sc-accent-ink); }
.ev--her b { color: var(--sc-accent-ink); }
.ev--done { background: color-mix(in oklab, var(--ok) 20%, var(--sc-surface)); color: var(--sc-ink); }
.ev--done b { color: var(--sc-ink); }
.log { list-style: none; margin: 0; padding: 6px 18px 14px; display: grid; }
.log li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sc-hairline); font-size: 0.98rem; opacity: 0.28; transition: opacity 260ms var(--sc-ease-out); }
.log li:last-child { border-bottom: 0; }
.log li.on { opacity: 1; }
.log time { font-family: var(--sc-font-mono); font-size: 0.87rem; color: var(--ink-faint); }
.log-win.on span { color: var(--accent-text); font-weight: 600; }

/* ============================================================== WIN-BACK == */
.winback-stage { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(4.5rem, 7vw, 7rem); }
.winback-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 2rem; align-items: end; margin: 0; }
.winback-copy { justify-self: end; display: grid; gap: 14px; max-width: 46ch; }
.wb-window { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--sc-font-mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.view-winback .wb-window { color: var(--wb-ink); }
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 92rem; margin-inline: auto; padding-inline: clamp(1.25rem, 3.5vw, 4.5rem); }
.campaign {
  display: flex; flex-direction: column; gap: 18px; padding: 22px; min-width: 0;
  background: var(--sc-surface); border: 1px solid var(--sc-hairline); border-radius: var(--r-win); box-shadow: var(--sc-edge), var(--sc-e2);
}
.campaign header { display: grid; gap: 6px; }
.campaign h3 { margin: 0; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.campaign header p { margin: 0; color: var(--sc-ink-soft); font-size: 0.98rem; }
.bubble { margin: 0; padding: 12px 14px; border-radius: 14px; border-bottom-right-radius: 5px; font-size: 0.98rem; background: color-mix(in oklab, var(--sc-accent) 14%, var(--sc-surface)); border: 1px solid color-mix(in oklab, var(--sc-accent) 24%, transparent); }
.campaign footer { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--sc-ink-soft); }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.campaign--skip { background: transparent; box-shadow: none; border-style: dashed; }
.skip-big { margin: 0; font-family: var(--sc-font-mono); font-size: 4.5rem; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.campaign-foot { margin: auto 0 0; color: var(--sc-ink-soft); font-size: 0.98rem; }
/* Consent check sits under the three channels as one slim strip. */
.campaign--skip { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding-block: 18px; }
.campaign--skip header { flex: 0 1 18rem; }
.campaign--skip .skip-big { font-size: 3rem; }
.campaign--skip .campaign-foot { margin: 0; max-width: 46ch; }

/* =============================================================== MEMBERS == */
.control { margin-top: var(--sc-6); display: grid; gap: 10px; max-width: 22rem; }
.control label { display: flex; justify-content: space-between; font-weight: 500; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 10px 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--sc-accent) var(--p, 50%), var(--sc-hairline-strong) var(--p, 50%));
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--sc-surface); border: 1.5px solid var(--sc-ink); box-shadow: var(--sc-e1); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sc-surface); border: 1.5px solid var(--sc-ink); }
.nudge { margin-top: var(--sc-6); max-width: 24rem; display: grid; gap: 8px; }
.nudge p { margin: 0; padding: 12px 14px; border-radius: 14px; border-bottom-right-radius: 5px; font-size: 0.98rem; background: color-mix(in oklab, var(--sc-accent) 14%, var(--sc-surface)); border: 1px solid color-mix(in oklab, var(--sc-accent) 24%, transparent); }
.table { width: 100%; border-collapse: collapse; font-size: 1.04rem; }
.table th { padding: 12px 20px; text-align: left; font-family: var(--sc-font-mono); font-size: 0.83rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--sc-hairline); }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--sc-hairline); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; color: var(--sc-ink-soft); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status--risk { color: var(--accent-text); font-weight: 600; }
.status--risk::before { background: var(--sc-accent); }
.status--renew::before { background: transparent; border: 1.5px solid var(--sc-ink-soft); }
tr.is-risk td:first-child { font-weight: 600; }

/* ================================================================ REPORT == */
.report-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); overflow: hidden; }
.inputs { padding: 22px 22px 14px; display: grid; gap: 14px; }
.field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
.field label { font-size: 0.98rem; color: var(--sc-ink-soft); }
.field output { font-weight: 600; }
.field input { grid-column: 1 / -1; }
.result { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface-2); border-left: 1px solid var(--sc-hairline); }
.result-big { font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.result dl { margin: 0; display: grid; }
.result dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sc-hairline); font-size: 0.98rem; }
.result dt { color: var(--sc-ink-soft); }
.result dd { margin: 0; font-weight: 600; }
.result .fine { margin-top: auto; }

/* ================================================================= PLANS == */
.table-scroll { overflow-x: auto; }
.plans { min-width: 40rem; }
.plans thead th { padding-top: 18px; padding-bottom: 16px; vertical-align: bottom; }
.plans .plan-name { display: block; font-family: var(--sc-font-text); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--sc-ink); }
.plans .plan-note { display: block; margin-top: 2px; font-family: var(--sc-font-text); font-size: 0.9rem; letter-spacing: 0; text-transform: none; color: var(--sc-ink-soft); }
.plans .is-featured { background: color-mix(in oklab, var(--sc-accent) 7%, transparent); }
.plans th[scope="row"] { font-family: var(--sc-font-text); font-size: 0.98rem; text-transform: none; letter-spacing: 0; color: var(--sc-ink-soft); font-weight: 400; }
.plans td { vertical-align: top; }
.plans .price { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.plans .yes svg { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.2; }
.plans .no { color: var(--ink-faint); }

/* =============================================================== REGIONS == */
.regions { margin: 0; padding: 6px; display: grid; gap: 2px; }
.region {
  display: grid; grid-template-columns: 20px 3.2rem minmax(8rem, 1fr) minmax(10rem, 1.3fr) minmax(10rem, 1.2fr) 5rem; align-items: center; gap: 14px;
  padding: 16px 16px; border-radius: 10px; cursor: pointer; font-size: 1rem; transition: background-color 140ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .region:hover { background: color-mix(in oklab, var(--sc-ink) 4%, transparent); } }
.region:has(input:checked) { background: color-mix(in oklab, var(--sc-accent) 9%, transparent); }
.region input { width: 16px; height: 16px; margin: 0; }
.r-code { font-family: var(--sc-font-mono); font-weight: 500; }
.r-name { font-weight: 600; }
.r-ch { color: var(--sc-ink-soft); }
.r-rules { font-family: var(--sc-font-mono); font-size: 0.87rem; color: var(--sc-ink-soft); }
.r-lang { font-family: var(--sc-font-mono); font-size: 0.87rem; color: var(--ink-faint); text-align: right; }

/* ================================================================== HELP == */
.search { margin-top: var(--sc-6); display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; max-width: 24rem; border-radius: var(--r); border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); }
.search:focus-within { border-color: var(--sc-accent); }
.search svg { width: 18px; height: 18px; color: var(--ink-faint); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; }
.faq details { border-bottom: 1px solid var(--sc-hairline); }
.faq details[hidden] { display: none; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-weight: 500; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--sc-ink-soft); border-bottom: 1.5px solid var(--sc-ink-soft); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--sc-ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq p { margin: 0 0 20px; max-width: 62ch; color: var(--sc-ink-soft); font-size: 1.04rem; }
.faq-none { color: var(--sc-ink-soft); padding: 18px 0; margin: 0; }

/* ================================================================= START == */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.step { padding: 18px 20px; border-radius: var(--r-win); border: 1px solid var(--sc-hairline); color: var(--sc-ink-soft); }
.step > p { margin: 8px 0 0 30px; max-width: 52ch; font-size: 1rem; }
.step-head { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.step-head b { color: var(--sc-ink); font-weight: 600; }
.step-mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--sc-hairline-strong); }
.step.is-active { background: var(--sc-surface); box-shadow: var(--sc-edge), var(--sc-e3); border-color: var(--sc-hairline-strong); }
.step.is-active .step-mark { border-color: var(--sc-accent); box-shadow: inset 0 0 0 4px var(--sc-surface); background: var(--sc-accent); }
.step.is-done .step-mark { background: var(--ok); border-color: var(--ok); }
.form { margin: 18px 0 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form input, .form select { min-width: 0; width: 100%; }
.form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 500; color: var(--sc-ink-soft); }
.form input, .form select {
  height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--sc-hairline-strong); background: var(--sc-canvas);
  color: var(--sc-ink); font-size: 0.98rem; transition: border-color 140ms var(--sc-ease-out);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--sc-accent); }
.form input.invalid { border-color: var(--accent-text); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form .fine, .form .form-msg { grid-column: 1 / -1; margin: 0; }
.form-msg { font-weight: 600; color: var(--ok); min-height: 1.2em; }
.is-done .form { display: none; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: clamp(4rem, 8vw, 7rem); padding-top: 22px; padding-bottom: 6px; border-top: 1px solid var(--sc-hairline); font-size: 0.92rem; color: var(--ink-faint); }
.foot a { color: inherit; }

/* ============================================================== LIVELY == */
/* Hero depth: a far plane of branch activity, the phone, near cards. Pointer
   moves them at different rates (--mx/--my set in site.js, fine pointers only). */
.phone { transform: perspective(1400px) rotateY(calc(var(--mx, 0) * 6deg)) rotateX(calc(var(--my, 0) * -5deg)) translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 6px), 0); transform-style: preserve-3d; }
.feed {
  position: absolute; z-index: 0; top: 4%; bottom: 4%; right: 0; width: 46%; overflow: hidden; pointer-events: none;
  translate: calc(var(--mx, 0) * -16px) calc(var(--my, 0) * -12px); scale: 0.94; filter: blur(0.4px); opacity: 0.7;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.feed-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; animation: feed-up 34s linear infinite; }
.feed li { display: grid; justify-items: end; text-align: right; gap: 2px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--sc-surface); border: 1px solid var(--sc-hairline); box-shadow: var(--sc-e1); font-size: 0.92rem; color: var(--sc-ink-soft); }
.feed li b { color: var(--sc-ink); font-weight: 600; }
.fi-ch { font-family: var(--sc-font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
@keyframes feed-up { to { transform: translateY(calc(-50% - 5px)); } }
.inbox-stage::before {
  content: ""; position: absolute; z-index: -1; right: 6%; top: 18%; width: min(44vw, 40rem); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--sc-accent) 22%, transparent), transparent);
  translate: calc(var(--mx, 0) * -30px) calc(var(--my, 0) * -20px);
}
[data-theme="light"] .inbox-stage::before { background: radial-gradient(closest-side, color-mix(in oklab, var(--sc-accent) 16%, transparent), transparent); }
.btn-lg { height: 3.4rem; padding: 0 1.6rem; font-size: 1.02rem; }

/* Headings arrive word by word. */
[data-split] .w { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 600ms var(--sc-ease-out), transform 700ms var(--sc-ease-out); transition-delay: calc(var(--i) * 45ms); }
[data-split].is-in .w { opacity: 1; transform: none; }

/* Five languages, two directions. */
.hello-band { padding: clamp(2.5rem, 5vw, 4.5rem) 0; display: grid; gap: 14px; overflow: hidden; border-block: 1px solid var(--sc-hairline); background: color-mix(in oklab, var(--sc-surface) 55%, var(--sc-canvas)); }
.hb-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hb-track { display: flex; gap: 14px; width: max-content; animation: band-l 48s linear infinite; }
.hb-row--r .hb-track { animation-name: band-r; animation-duration: 56s; }
.hb { flex: none; padding: 0.8rem 1.2rem; border-radius: 20px; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.hb-lead { background: var(--sc-surface); border: 1px solid var(--sc-hairline); border-bottom-left-radius: 6px; box-shadow: var(--sc-e1); }
.hb-ai { background: var(--sc-accent); color: var(--sc-accent-ink); border-bottom-right-radius: 6px; box-shadow: 0 6px 18px -10px hsl(16 100% 40% / 0.6); }
@keyframes band-l { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes band-r { from { transform: translateX(calc(-50% - 7px)); } to { transform: translateX(0); } }
@media (hover: hover) and (pointer: fine) { .hello-band:hover .hb-track { animation-play-state: paused; } }

/* The accent owns two regions: the win-back ground and the report result. */
.view-winback { --wb-ink: var(--sc-accent-ink); background: var(--sc-accent); color: var(--wb-ink); }
.view-winback .h2 { color: var(--wb-ink); }
.view-winback .winback-copy .body { color: color-mix(in oklab, var(--wb-ink) 78%, var(--sc-accent)); }
.view-winback .campaign { color: var(--sc-ink); border-color: transparent; box-shadow: 0 2px 4px hsl(16 80% 20% / 0.18), 0 24px 48px -20px hsl(16 80% 18% / 0.55); }
.view-winback .campaign--skip { background: transparent; color: var(--wb-ink); border: 1.5px dashed color-mix(in oklab, var(--wb-ink) 45%, transparent); box-shadow: none; }
.view-winback .campaign--skip .mono-meta, .view-winback .campaign--skip .campaign-foot { color: color-mix(in oklab, var(--wb-ink) 75%, var(--sc-accent)); }
.result { background: var(--sc-accent); color: var(--sc-accent-ink); border-left: 0; }
.result .mono-meta, .result .fine, .result dt { color: color-mix(in oklab, var(--sc-accent-ink) 72%, var(--sc-accent)); }
.result dl div { border-top-color: color-mix(in oklab, var(--sc-accent-ink) 18%, transparent); }
.result-big { font-size: clamp(2.2rem, 1.3rem + 1.9vw, 3.6rem); overflow-wrap: anywhere; }

/* Small, quick responses to the hand. */
@media (hover: hover) and (pointer: fine) {
  .table tbody tr { transition: background-color 140ms var(--sc-ease-out); }
  .table tbody tr:hover { background: color-mix(in oklab, var(--sc-ink) 4%, transparent); }
  .step:not(.is-active) { transition: border-color 160ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
  .step:not(.is-active):hover { border-color: var(--sc-hairline-strong); transform: translateX(4px); }
  .log li.on:hover { background: color-mix(in oklab, var(--sc-ink) 3%, transparent); }
}
.clock.is-live::before { content: ""; width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: var(--live); align-self: center; box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 60%, transparent); animation: live-pulse 1.8s ease-out infinite; }
.live-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--live); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 65%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--live) 0%, transparent); } }

/* ============================================================ NIGHT SCENE == */
/* Illustration keeps its own fixed palette: it is night in both themes. */
.hero-visual { --phone-w: 300px; min-height: 40rem; }
.phone { width: min(var(--phone-w), 100%); z-index: 2; }
.night, .sleeper, .robot { position: absolute; pointer-events: none; }
:is(.night, .sleeper, .robot) svg { width: 100%; height: auto; fill: initial; stroke: none; overflow: visible; }
.night {
  z-index: 0; top: 3%; bottom: 5%; left: 14%; right: 0; border-radius: 30px; overflow: hidden;
  background: linear-gradient(165deg, #1F2747 0%, #151a2e 55%, #10131f 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), var(--sc-e2);
  translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px);
}
.night .sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.star { fill: #F4EBD0; animation: twinkle 3.2s ease-in-out infinite; }
.star.s2 { animation-delay: -1.1s; } .star.s3 { animation-delay: -2.2s; }
.moon { fill: #F4EBD0; } .moon-cut { fill: #1d2443; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.sleeper { z-index: 1; top: 24%; right: -1%; width: 64%; max-width: 24rem; translate: calc(var(--mx, 0) * -6px) calc(var(--my, 0) * -4px); }
.ill-shadow { fill: rgb(0 0 0 / 0.28); }
.ill-wood { fill: #E7E1D6; stroke: #15171A; stroke-width: 2.5; }
.ill-sheet { fill: #F8F6F1; stroke: #15171A; stroke-width: 2.5; }
.ill-pillow { fill: #FFFFFF; stroke: #15171A; stroke-width: 2.5; }
.ill-skin { fill: #E9B996; stroke: #15171A; stroke-width: 2.5; }
.ill-hair { fill: #2A2220; stroke: #15171A; stroke-width: 2.5; stroke-linejoin: round; }
.ill-line { fill: none; stroke: #15171A; stroke-width: 2.5; stroke-linecap: round; }
.ill-blanket { fill: #FF6A33; stroke: #15171A; stroke-width: 2.5; stroke-linejoin: round; }
.ill-stripe { fill: none; stroke: #D9531F; stroke-width: 5; stroke-linecap: round; }
.zzz { position: absolute; right: 14%; top: -14%; display: flex; gap: 2px; font-family: var(--sc-font-mono); font-weight: 500; color: #F4EBD0; }
.zzz i { font-style: normal; display: inline-block; opacity: 0; animation: zzz 3.6s ease-out infinite; }
.zzz i:nth-child(1) { font-size: 0.98rem; }
.zzz i:nth-child(2) { font-size: 1.15rem; animation-delay: 0.9s; }
.zzz i:nth-child(3) { font-size: 1.5rem; animation-delay: 1.8s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 10px) rotate(-8deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -26px) rotate(8deg); } }

.robot { z-index: 3; left: calc(var(--phone-w) - 1.2rem); bottom: 9%; width: 30%; max-width: 11rem; translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 10px); }
.robot svg { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.r-shell { fill: #F4F3EF; stroke: #15171A; stroke-width: 3; }
.r-mid { fill: #D9D6CF; stroke: #15171A; stroke-width: 3; }
.r-screen { fill: #15171A; }
.r-stem { stroke: #15171A; stroke-width: 3; stroke-linecap: round; }
.r-bulb { fill: #FF6A33; stroke: #15171A; stroke-width: 3; }
.r-tube-o { fill: none; stroke: #15171A; stroke-width: 19; stroke-linecap: round; }
.r-tube { fill: none; stroke: #F4F3EF; stroke-width: 13; stroke-linecap: round; }
.r-eyes rect { fill: #FF6A33; }
.r-eyes { transform-box: fill-box; transform-origin: center; animation: blink-eyes 4.2s infinite; }
.r-happy { display: none; } .r-happy path { fill: none; stroke: #FF6A33; stroke-width: 3.5; stroke-linecap: round; }
.r-dots circle { fill: #FF6A33; opacity: 0.25; }
.r-reach { transform-origin: 56px 108px; transition: rotate 300ms var(--sc-ease-out); }
@keyframes blink-eyes { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.robot.is-typing .r-reach { animation: tap 0.42s ease-in-out infinite; }
.robot.is-typing .r-dots circle { animation: dot 0.9s infinite; }
.robot.is-typing .r-dots circle:nth-child(2) { animation-delay: 0.15s; }
.robot.is-typing .r-dots circle:nth-child(3) { animation-delay: 0.3s; }
.robot.is-typing .r-bulb { animation: bulb 0.9s ease-in-out infinite; }
.robot.is-happy .r-eyes { display: none; }
.robot.is-happy .r-happy { display: inline; }
.robot.is-happy .r-dots circle { opacity: 1; fill: #7FD1A7; }
@keyframes tap { 0%, 100% { rotate: 0deg; } 50% { rotate: -7deg; } }
@keyframes dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes bulb { 0%, 100% { fill: #FF6A33; } 50% { fill: #FFC2A6; } }

.ill-tag {
  position: absolute; left: 50%; bottom: -1.6rem; translate: -50% 0; white-space: nowrap; padding: 3px 9px; border-radius: 7px;
  font-family: var(--sc-font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: #C9CCD6; background: rgb(16 19 31 / 0.85); border: 1px solid rgb(255 255 255 / 0.1);
}
.sleeper .ill-tag { bottom: 0.2rem; }
.ill-tag--on { display: inline-flex; align-items: center; gap: 7px; color: #EDEDEA; background: rgb(11 12 14 / 0.86); border-color: rgb(16 185 129 / 0.35); }
.float-timer { left: -6%; top: 140px; z-index: 4; }
.float-booked { left: -8%; right: auto; bottom: 120px; z-index: 4; }

/* ================================================================== TEAM == */
.view-team { position: relative; overflow: hidden; }
.view-team::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 60vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--sc-accent) 12%, transparent), transparent);
}
.team-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.team-copy .body { margin-top: var(--sc-4); }
.services { margin: var(--sc-7) 0 0; display: grid; gap: 0; }
.services > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--sc-hairline); }
.services dt { font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.services dd { margin: 0; color: var(--sc-ink-soft); font-size: 1.04rem; }
.people { margin-top: var(--sc-6); padding: 1.4rem 1.5rem; border-radius: var(--r-win); background: var(--sc-surface); border: 1px solid var(--sc-hairline); box-shadow: var(--sc-edge), var(--sc-e2); }
.people b { display: block; font-size: 1.05rem; margin-bottom: 0.4rem; }
.people p { margin: 0; color: var(--sc-ink-soft); }
.people .safe { display: flex; gap: 10px; align-items: flex-start; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--sc-hairline); font-size: 0.98rem; }
.people .safe svg { width: 20px; height: 20px; flex: none; color: var(--ok); stroke-width: 1.9; margin-top: 1px; }

.globe-wrap { display: grid; justify-items: center; gap: 1rem; }
.globe { position: relative; width: min(100%, 40rem); aspect-ratio: 1; }
.globe canvas { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; opacity: 0; scale: 0.94; transition: opacity 900ms var(--sc-ease-out), scale 1200ms var(--sc-ease-out); }
.globe.is-ready canvas { opacity: 1; scale: 1; }
.globe.is-dragging canvas { cursor: grabbing; }
.globe.is-failed { display: none; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.g-label {
  position: absolute; left: 0; top: 0; translate: 12px -50%; padding: 3px 8px; border-radius: 7px; white-space: nowrap; opacity: 0;
  font-family: var(--sc-font-mono); font-size: 0.81rem; letter-spacing: 0.02em; color: var(--sc-ink);
  background: color-mix(in oklab, var(--sc-surface) 86%, transparent); border: 1px solid var(--sc-hairline); box-shadow: var(--sc-e1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.g-label.is-hub { background: var(--sc-accent); color: var(--sc-accent-ink); border-color: transparent; font-weight: 500; }
.globe-hint { margin: 0; }
.globe-note { margin: 0.2rem 0 0; max-width: 36rem; text-align: center; color: var(--sc-ink-soft); font-size: 0.95rem; }
.cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 36rem; }
.city {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); font-size: 0.98rem; font-weight: 500;
  transition: border-color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.city:active { transform: scale(0.97); }
.city-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 25%, transparent); }
.city-t { font-family: var(--sc-font-mono); font-size: 0.87rem; color: var(--ink-faint); }
.city.is-on { border-color: var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 10%, var(--sc-surface)); }
@media (hover: hover) and (pointer: fine) { .city:hover { border-color: var(--sc-ink-soft); } }

/* ============================================================== COUNTRY == */
.field-sel--country { flex: 1; }
.country-chip {
  height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface);
  font-family: var(--sc-font-mono); font-size: 0.83rem; letter-spacing: 0.03em; color: var(--sc-ink); cursor: pointer; white-space: nowrap;
  transition: border-color 140ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .country-chip:hover { border-color: var(--sc-accent); } }

.timer-in { margin-left: auto; display: grid; justify-items: end; line-height: 1.2; }
.timer-in small { font-family: var(--sc-font-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.timer-in b { font-family: var(--sc-font-mono); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.timer-in.is-running b { color: var(--accent-text); }
.timer-in.is-stopped b { color: var(--ok); }
.faq summary::after { margin-right: 4px; }
.float-booked { left: -6%; bottom: 3%; }
/* ================================================================= ROOM == */
/* Day and night are classes on .room (is-day), driven by the chat loop in site.js. */
.room {
  position: absolute; z-index: 0; top: 3%; bottom: 3%; left: calc(var(--phone-w) - 2.5rem); right: 0; border-radius: 30px; overflow: hidden; pointer-events: none;
  background: linear-gradient(to bottom, #EADFCF 0 81.8%, #C9A98A 81.8%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), var(--sc-e2);
  translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -8px);
}
.room svg { position: relative; z-index: 1; width: 100%; height: 100%; fill: initial; stroke: none; overflow: visible; }
.rm-room { filter: brightness(0.42) saturate(0.7) hue-rotate(-8deg); transition: filter 2.4s ease; }
.room.is-day .rm-room { filter: none; }
.rm-wall { fill: #EADFCF; } .rm-floor { fill: #C9A98A; } .rm-skirt { fill: #DCCDB7; } .rm-rug { fill: #E0794C; opacity: 0.55; }
.rm-frame { fill: none; stroke: #F7F3EC; stroke-width: 9; }
.rm-mullion { stroke: #F7F3EC; stroke-width: 4; }
.rm-sill { fill: #F7F3EC; stroke: #15171A; stroke-width: 2; }
.rm-rod { stroke: #4A3B32; stroke-width: 3.5; stroke-linecap: round; }
.rm-curtain { fill: #3E6E73; stroke: #15171A; stroke-width: 2; }
.rm-clock { fill: #15171A; }
.clock-night, .clock-day { font-family: "Geist Mono", monospace; font-size: 9px; text-anchor: middle; fill: #FF6A33; transition: opacity 600ms ease; }
.clock-day { opacity: 0; }
.room.is-day .clock-day { opacity: 1; } .room.is-day .clock-night { opacity: 0; }
.sun { fill: #FFD45C; transition: transform 2.4s ease; }
.room:not(.is-day) .sun { transform: translateY(150px); }
.cloud { fill: #FFFFFF; opacity: 0.9; animation: cloud 18s linear infinite; }
.cloud.c2 { animation-duration: 26s; animation-delay: -9s; opacity: 0.75; }
@keyframes cloud { from { transform: translateX(-60px); } to { transform: translateX(200px); } }
.sky-night { opacity: 1; transition: opacity 2.4s ease; }
.room.is-day .sky-night { opacity: 0; }
.moon { fill: #F4EBD0; } .moon-cut { fill: #141B3A; }
.skyline { fill: #0A0E1C; transition: fill 2.4s ease; }
.room.is-day .skyline { fill: #8EA6BE; }
.city-lights rect { fill: #FFD27A; transition: opacity 1.2s ease; }
.room.is-day .city-lights rect { opacity: 0; }
.beam { mix-blend-mode: screen; transition: opacity 2.4s ease; }
.beam-day { opacity: 0; } .room.is-day .beam-day { opacity: 1; } .room.is-day .beam-night { opacity: 0; }
.pose-sleep, .pose-awake { transition: opacity 700ms ease, transform 900ms var(--sc-ease-out); transform-box: fill-box; transform-origin: 50% 100%; }
.pose-awake { opacity: 0; transform: translateY(14px) scaleY(0.85); }
.room.is-day .pose-awake { opacity: 1; transform: none; }
.room.is-day .pose-sleep { opacity: 0; }
.room.is-day .pose-awake .arm, .room.is-day .pose-awake .arm-o { animation: stretch 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes stretch { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.08); } }
.arm-o { fill: none; stroke: #15171A; stroke-width: 11; stroke-linecap: round; }
.arm { fill: none; stroke: #8EC5E8; stroke-width: 7; stroke-linecap: round; }
.pj { fill: #8EC5E8; stroke: #15171A; stroke-width: 2.5; }
.eye { fill: #15171A; }
.yawn { fill: #7A2E1E; animation: yawn 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes yawn { 0%, 60%, 100% { transform: scale(0.6); } 75% { transform: scale(1.4); } }
.zzz-svg { font-family: "Geist Mono", monospace; font-weight: 600; font-size: 11px; fill: #F4EBD0; animation: zzz-float 3.2s ease-in-out infinite; }
@keyframes zzz-float { 0%, 100% { opacity: 0.25; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-4px); } }
.r-tablet { fill: #15171A; stroke: #FF6A33; stroke-width: 2; }
.robot.is-typing .r-tablet { fill: #3A1A0E; }
.robot { left: calc(var(--phone-w) - 1.4rem); right: auto; bottom: 2%; width: 24%; max-width: 9rem; }
.room.is-day .zzz-wrap { opacity: 0; }
.zzz-wrap { transition: opacity 700ms ease; }

/* =============================================================== AMBIENT == */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.main { position: relative; z-index: 1; }
.view-winback { position: relative; overflow: hidden; }
.view-winback::before {
  content: ""; position: absolute; inset: -50%; pointer-events: none; opacity: 0.16;
  background: repeating-linear-gradient(-35deg, transparent 0 46px, var(--sc-accent-ink) 46px 48px);
  animation: wb-drift 14s linear infinite;
}
@keyframes wb-drift { to { transform: translate(-68px, 48px); } }
@media (prefers-reduced-motion: reduce) { .view-winback::before { animation: none; } .ambient { opacity: 0.6; } }

/* ============================================================== INCLUDED == */
.included { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.inc-h { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 650; letter-spacing: -0.03em; margin: 0 0 0.4rem; }
.inc-main > .body { margin-bottom: 1.4rem; }
.inc-list { border-top: 1px solid var(--sc-hairline); }
.inc { border-bottom: 1px solid var(--sc-hairline); }
.inc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem 1rem; padding: 1.05rem 0.2rem; }
.inc summary::-webkit-details-marker { display: none; }
.inc summary::after { content: ""; grid-column: 3; grid-row: 1; width: 8px; height: 8px; border-right: 1.6px solid var(--sc-ink-soft); border-bottom: 1.6px solid var(--sc-ink-soft); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--sc-ease-out); }
.inc[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.inc-t { grid-column: 1; grid-row: 1; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; transition: color 140ms var(--sc-ease-out); }
.inc-soon { grid-column: 1; grid-row: 2; justify-self: start; padding: 2px 8px; border-radius: 6px; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--sc-accent) 45%, transparent); }
.inc-plans { grid-column: 2; grid-row: 1; display: flex; gap: 4px; }
.pl { padding: 3px 8px; border-radius: 6px; font-size: 0.78rem; font-weight: 500; color: var(--ink-faint); border: 1px solid var(--sc-hairline); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--ink-faint) 60%, transparent); }
.pl.on { color: var(--sc-ink); border-color: var(--sc-hairline-strong); background: var(--sc-surface); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .inc summary:hover .inc-t { color: var(--accent-text); } }
.inc-body { padding: 0 0.2rem 1.3rem; display: grid; gap: 0.8rem; max-width: 64ch; animation: inc-in 260ms var(--sc-ease-out); }
@keyframes inc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.inc-d { margin: 0; color: var(--sc-ink-soft); line-height: 1.65; }
.inc-ex { margin: 0; display: grid; gap: 4px; padding: 0.8rem 1rem; border-radius: 12px; background: color-mix(in oklab, var(--sc-accent) 9%, var(--sc-surface)); border: 1px solid color-mix(in oklab, var(--sc-accent) 22%, transparent); }
.inc-ex-t { font-size: 0.95rem; }
.inc-side { display: grid; gap: 14px; }
.inc-box { padding: 1.2rem 1.3rem; border-radius: var(--r-win); background: var(--sc-surface); border: 1px solid var(--sc-hairline); box-shadow: var(--sc-edge), var(--sc-e1); }
.inc-box h4 { margin: 0 0 0.7rem; font-size: 1rem; font-weight: 650; }
.inc-box p { margin: 0; color: var(--sc-ink-soft); font-size: 0.95rem; }
.inc-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; color: var(--sc-ink-soft); }
.inc-box li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.3em; width: 0.38rem; height: 0.7rem; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 0.1rem; top: 0.72em; width: 0.8rem; height: 2px; background: var(--accent-text); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.inc-box--rule { background: color-mix(in oklab, var(--sc-accent) 8%, var(--sc-surface)); }
@media (min-width: 1024px) { .inc-side { position: sticky; top: calc(var(--bar-h) + 1.5rem); } }
@media (max-width: 1023px) { .included { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .inc summary { grid-template-columns: minmax(0, 1fr) auto; }
  .inc summary::after { grid-column: 2; }
  .inc-plans { grid-column: 1 / -1; grid-row: auto; flex-wrap: wrap; }
  .inc-soon { grid-row: auto; }
}

/* ================================================================= PHONE == */
.f-phone { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 500; color: var(--sc-ink-soft); }
.f-phone > label { font: inherit; color: inherit; }
.phone-field { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: var(--r); border: 1px solid var(--sc-hairline-strong); background: var(--sc-canvas); transition: border-color 140ms var(--sc-ease-out); }
.phone-field:focus-within { border-color: var(--sc-accent); }
.phone-field:has(.invalid) { border-color: var(--accent-text); }
.form .phone-field > input { height: 42px; border: 0; background: transparent; border-radius: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.form .phone-field > input:focus { outline: none; }
.dial-btn { height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 0.6rem 0 0.75rem; border: 0; border-right: 1px solid var(--sc-hairline-strong); border-radius: var(--r) 0 0 var(--r); background: transparent; color: var(--sc-ink); font-family: var(--sc-font-mono); font-size: 0.85rem; white-space: nowrap; cursor: pointer; }
.dial-btn span { color: var(--sc-ink-soft); }
.dial-btn b { font-weight: 500; }
.dial-btn i { width: 6px; height: 6px; margin: 0 0 3px 2px; border-right: 1.5px solid var(--sc-ink-soft); border-bottom: 1.5px solid var(--sc-ink-soft); transform: rotate(45deg); }
.dial-btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
.dial-pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: max(100%, 19rem); max-width: calc(100vw - 2rem); overflow: hidden; border-radius: 12px; border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); box-shadow: var(--sc-e3); }
.form .dial-pop input { width: 100%; height: 42px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--sc-hairline); border-radius: 0; background: transparent; font-size: 0.92rem; }
.dial-pop ul { list-style: none; margin: 0; padding: 4px; max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.dial-pop li[role="option"] { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 0.92rem; color: var(--sc-ink); cursor: pointer; }
.dial-pop li .dc { flex: none; font-family: var(--sc-font-mono); font-size: 0.8rem; color: var(--sc-ink-soft); }
.dial-pop li.is-active { background: color-mix(in oklab, var(--sc-ink) 8%, transparent); }
.dial-pop li[aria-selected="true"] .dn { color: var(--accent-text); font-weight: 600; }
.dial-sep { height: 1px; margin: 4px 6px; background: var(--sc-hairline); }
.dial-none { padding: 10px; color: var(--sc-ink-soft); font-size: 0.9rem; }
.f-err { color: var(--accent-text); font-size: 0.8rem; font-weight: 500; }

/* ================================================================ APP UIS == */
/* Win-back cards show the message in the channel it goes out on. Each app keeps its own
   look in both themes; the site's amber stays out of them. */
.app { --app-bg: #000; --app-ink: #F5F5F5; --app-soft: #A8A8A8; --app-line: rgb(255 255 255 / 0.1); --in-bg: #262626; --in-ink: #F5F5F5; --out-bg: #3797F0; --out-ink: #fff;
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--app-bg); color: var(--app-ink);
  border: 1px solid var(--app-line); box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, var(--sc-font-text); font-size: 0.8rem; line-height: 1.35; letter-spacing: 0; }
.app .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--app-line); }
.app-head .ic:first-child { margin-left: -4px; }
.who { display: grid; min-width: 0; margin-right: auto; line-height: 1.2; }
.who b { font-weight: 600; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 0.7rem; color: var(--app-soft); }
.av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #5B6670; color: #fff; font-size: 0.66rem; font-weight: 600; font-style: normal; }
.av i { font-style: normal; }
.av--xs { width: 22px; height: 22px; font-size: 0.55rem; align-self: flex-end; }
.app-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
.app-day { align-self: center; margin-bottom: 4px; font-size: 0.68rem; color: var(--app-soft); text-align: center; }
.am { margin: 0; max-width: 86%; padding: 7px 11px; border-radius: 18px; word-wrap: break-word; }
.am-out { align-self: flex-end; background: var(--out-bg); color: var(--out-ink); }
.am-in { align-self: flex-start; background: var(--in-bg); color: var(--in-ink); }
.app-meta { align-self: flex-end; margin: -2px 4px 2px 0; font-size: 0.66rem; color: var(--app-soft); }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 9px; }
.app-bar .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; color: var(--app-soft); white-space: nowrap; overflow: hidden; }

/* Instagram */
.app--ig .av--ring { padding: 2px; background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #FEDA75); }
.app--ig .av--ring i { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: #5B6670; box-shadow: 0 0 0 2px var(--app-bg); }
.app--ig .am-in { display: flex; gap: 8px; align-items: flex-end; padding: 0; background: none; max-width: 90%; }
.app--ig .am-in > span:last-child { padding: 8px 12px; border-radius: 18px; background: var(--in-bg); }
.app--ig .field { border: 1px solid var(--app-line); }
.app--ig .cam { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #3797F0; color: #fff; }
.app--ig .cam .ic { width: 17px; height: 17px; }
[data-theme="light"] .app--ig { --app-bg: #fff; --app-ink: #000; --app-soft: #737373; --app-line: #DBDBDB; --in-bg: #EFEFEF; --in-ink: #000; }

/* WhatsApp */
.app--wa { --app-bg: #0B141A; --app-ink: #E9EDEF; --app-soft: #8696A0; --app-line: rgb(134 150 160 / 0.15); --in-bg: #202C33; --in-ink: #E9EDEF; --out-bg: #005C4B; --out-ink: #E9EDEF; --head: #202C33; --tick: #53BDEB; }
.app--wa .app-head { background: var(--head); border-bottom: 0; }
.app--wa .app-body { background-color: var(--app-bg); background-image: radial-gradient(circle at 1px 1px, rgb(134 150 160 / 0.09) 1px, transparent 1.4px); background-size: 14px 14px; }
.app--wa .am { border-radius: 8px; padding: 6px 8px 6px 9px; box-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13); }
.app--wa .am-out { border-top-right-radius: 2px; }
.app--wa .am-in { border-top-left-radius: 2px; }
.app--wa .app-day { padding: 3px 9px; border-radius: 7px; background: var(--head); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.02em; }
.stamp-in { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; font-size: 0.64rem; color: color-mix(in oklab, currentColor 62%, transparent); }
.wa-ticks { width: 15px; height: 10px; fill: none; stroke: var(--tick); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app--wa .app-bar { background: var(--app-bg); }
.app--wa .field { background: var(--head); }
.app--wa .field .ic { width: 18px; height: 18px; }
.app--wa .mic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #00A884; color: #111B21; }
.app--wa .mic .ic { width: 18px; height: 18px; }
[data-theme="light"] .app--wa { --app-bg: #EFEAE2; --app-ink: #111B21; --app-soft: #667781; --app-line: #D1D7DB; --in-bg: #fff; --in-ink: #111B21; --out-bg: #D9FDD3; --out-ink: #111B21; --head: #F0F2F5; }
[data-theme="light"] .app--wa .app-body { background-image: radial-gradient(circle at 1px 1px, rgb(17 27 33 / 0.06) 1px, transparent 1.4px); }
[data-theme="light"] .app--wa .app-head { background: #fff; }
[data-theme="light"] .app--wa .field { background: #fff; }
[data-theme="light"] .app--wa .app-day { background: #fff; }

/* SMS (iOS Messages) */
.app--sms { --app-bg: #000; --app-ink: #fff; --app-soft: #8E8E93; --app-line: rgb(255 255 255 / 0.12); --in-bg: #26252A; --in-ink: #fff; --out-bg: #34C759; --out-ink: #fff; }
.app--sms .app-head { background: rgb(30 30 30 / 0.92); align-items: flex-start; color: #0A84FF; }
.app--sms .app-head .ic { margin-top: 12px; }
.sms-who { flex: 1; display: grid; justify-items: center; gap: 3px; color: var(--app-ink); }
.sms-who b { font-weight: 500; font-size: 0.7rem; }
.app--sms .av { width: 34px; height: 34px; background: linear-gradient(#A5ABB6, #858994); font-size: 0.74rem; }
.ic-gap { width: 20px; flex: none; }
.app--sms .am-out { border-bottom-right-radius: 6px; }
.app--sms .am-in { border-bottom-left-radius: 6px; }
.app--sms .field { border: 1px solid var(--app-line); }
.app--sms .plus, .app--sms .mic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--in-bg); color: var(--app-soft); }
.app--sms .plus .ic, .app--sms .mic .ic { width: 17px; height: 17px; }
[data-theme="light"] .app--sms { --app-bg: #fff; --app-ink: #000; --app-line: #D1D1D6; --in-bg: #E9E9EB; --in-ink: #000; }
[data-theme="light"] .app--sms .app-head { background: rgb(246 246 246 / 0.94); color: #007AFF; }

/* ================================================================= GLASS == */
/* Frosted cards: the night room and ambient light stay faintly visible behind them. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .inc-box, .people, .feed li, .hb-lead {
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    backdrop-filter: blur(12px) saturate(1.1);
  }
}

/* ============================================================== STOAIX+ == */
/* Category line above the hero headline */
.kicker { margin: 0 0 0.9rem; font-family: var(--sc-font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }

/* Three pillars: Reply, Book, Win back */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--sc-hairline); border-bottom: 1px solid var(--sc-hairline); }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; align-content: start; padding: 1.4rem 1.4rem 1.5rem 0; color: inherit; text-decoration: none; }
.pillar + .pillar { padding-left: 1.4rem; border-left: 1px solid var(--sc-hairline); }
.pillar-n { grid-row: span 2; font-family: var(--sc-font-mono); font-size: 0.82rem; color: var(--ink-faint); padding-top: 0.3rem; }
.pillar b { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.pillar p { margin: 0; color: var(--sc-ink-soft); font-size: 0.98rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .pillar:hover b { color: var(--accent-text); } }

/* Activity feed: concrete events, relative time */
.activity { margin-top: var(--sc-6); border-radius: var(--r-win); border: 1px solid var(--sc-hairline); background: var(--glass, var(--sc-surface)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; }
.activity-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--sc-hairline); font-size: 0.95rem; }
.activity-head .mono-meta { margin-left: auto; }
.act-list { list-style: none; margin: 0; padding: 4px 0; }
.act-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mod time" "txt txt"; gap: 2px 12px; padding: 10px 16px; border-bottom: 1px solid var(--sc-hairline); }
.act-list li:last-child { border-bottom: 0; }
.act-mod { grid-area: mod; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); }
.act-txt { grid-area: txt; font-size: 0.95rem; line-height: 1.45; }
.act-list time { grid-area: time; font-family: var(--sc-font-mono); font-size: 0.75rem; color: var(--ink-faint); white-space: nowrap; }
.act-list li.is-new { animation: act-in 520ms var(--sc-ease-out); }
@keyframes act-in { from { opacity: 0; transform: translateY(-8px); background: color-mix(in oklab, var(--live) 12%, transparent); } to { opacity: 1; transform: none; } }

/* Calculator: next step + method. The result card is amber, so the button inverts to ink. */
.roi-cta { align-self: stretch; justify-content: center; max-width: 100%; height: auto; min-height: 44px; padding-block: 0.55rem; white-space: normal; text-align: center; line-height: 1.3; margin-top: 0.2rem; background: var(--sc-accent-ink); color: var(--sc-accent); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .result .roi-cta:hover { background: color-mix(in oklab, var(--sc-accent-ink) 85%, var(--sc-accent)); } }
.how { border-top: 1px solid color-mix(in oklab, var(--sc-accent-ink) 18%, transparent); padding-top: 0.8rem; font-size: 0.92rem; }
.how summary { cursor: pointer; font-weight: 600; }
.how p { margin: 0.6rem 0 0; color: color-mix(in oklab, var(--sc-accent-ink) 78%, var(--sc-accent)); line-height: 1.6; }

/* Integrations: only what we can really connect */
.int-label { margin: 0.2rem 0 0.5rem !important; font-family: var(--sc-font-mono); font-size: 0.72rem !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint) !important; }
.int-chips { display: flex !important; flex-wrap: wrap; gap: 6px !important; margin-bottom: 0.8rem !important; }
.int-chips li { padding: 4px 9px !important; border-radius: 7px; border: 1px solid var(--sc-hairline-strong); font-size: 0.85rem; color: var(--sc-ink); }
.int-chips--later li { border-style: dashed; color: var(--sc-ink-soft); }
.int-note { font-size: 0.85rem !important; }

/* Founders + direct contact */
.founders { margin-top: var(--sc-6); }
.founders-h { display: block; font-size: 1.05rem; }
.founders-p { margin: 0.25rem 0 1rem; color: var(--sc-ink-soft); }
.founder-row { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.founder { margin: 0; display: flex; align-items: center; gap: 12px; }
.founder-pic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--sc-hairline-strong); font-weight: 600; }
.founder-pic img { width: 100%; height: 100%; object-fit: cover; }
.founder figcaption { display: grid; line-height: 1.3; }
.founder small { color: var(--sc-ink-soft); font-size: 0.85rem; }
.contact-row, .contact-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.btn-ghost { background: transparent; border: 1px solid var(--sc-hairline-strong); color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { border-color: var(--sc-ink-soft); } }
.dev-note { margin: 0; padding: 0.9rem 1rem; border-radius: var(--r); border: 1.5px dashed var(--sc-hairline-strong); color: var(--sc-ink-soft); font-size: 0.9rem; }
.dev-note code { font-family: var(--sc-font-mono); font-size: 0.82rem; color: var(--sc-ink); }

@media (max-width: 700px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 1.1rem 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--sc-hairline); }
  .kicker { display: none; } /* the first screen must still end at the robot's tag */
}

/* ============================================================ RESPONSIVE == */
@media (max-width: 1100px) {
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .campaign--skip { grid-column: auto; flex-direction: column; align-items: stretch; }
  .campaign--skip header { flex: none; }
  .campaign--skip .skip-big { font-size: 4.5rem; }
  .campaign--skip .campaign-foot { margin: auto 0 0; }
}
@media (max-width: 700px) {
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}

@media (max-width: 1023px) {
  .side { transform: translateX(-100%); transition: transform 280ms var(--sc-ease-drawer); box-shadow: var(--sc-e3); }
  .side.open { transform: none; }
  .hero-visual { max-width: 40rem; width: 100%; justify-self: center; }
  .scrim-side { position: fixed; inset: 0; z-index: calc(var(--sc-z-chrome) - 2); background: hsl(var(--sc-shadow-color) / 0.45); }
  .bar { left: 0; padding: 0 12px; gap: 10px; }
  .menu-btn { display: grid; }
  .bar-logo { display: block; margin-left: -4px; }
  .bar-logo .logo { width: 28px; height: 28px; }
  .main { margin-left: 0; }
  .inbox-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 1rem; padding-top: calc(var(--bar-h) + 2rem); padding-bottom: 4rem; }
  .intro { gap: 0.9rem; }
  .trials-grid, .members-grid, .report-grid, .help-grid, .start-grid, .team-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .note { position: static; }
  .winback-head { grid-template-columns: minmax(0, 1fr); }
  .winback-copy { justify-self: start; }
}
@media (max-width: 700px) {
  .h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 2.7rem); }
  .h2 { font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.3rem); }
  .lede { font-size: 0.98rem; }
  .sample, .clock-label { display: none; }
  .country-chip { padding: 0 8px; font-size: 0.78rem; }
  .cc-city { display: none; }
  .crumb > span:first-child, .crumb-sep { display: none; }
  .week { grid-template-columns: repeat(7, minmax(2.6rem, 1fr)); overflow-x: auto; }
  .day { min-height: 8rem; padding: 8px 4px; }
  .ev { font-size: 0.78rem; padding: 4px; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .report-panel { grid-template-columns: minmax(0, 1fr); }
  .services > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .result { border-left: 0; border-top: 1px solid var(--sc-hairline); }
  .region { grid-template-columns: 20px 2.6rem minmax(0, 1fr); row-gap: 4px; }
  .region .r-ch, .region .r-rules, .region .r-lang { grid-column: 3; text-align: left; }
  .table th, .table td { padding-inline: 10px; }
  #members-table th:nth-child(3), #members-table td:nth-child(3) { display: none; }
  .status { white-space: normal; }
  .form { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
  .step > p { margin-left: 0; }
  .stamp { white-space: normal; text-align: center; width: calc(100% - 2rem); bottom: 1rem; }
  .chat { height: 360px; }
  .float-booked { left: -4px; bottom: 0; }
  .hb { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .chat > li.on { animation: none; }
  .float, .feed-track, .hb-track, .star, .zzz i, .robot svg, .robot .r-reach, .r-eyes, .robot .r-dots circle, .robot .r-bulb { animation: none !important; }
  .zzz i { opacity: 1; }
  .globe canvas { transition: none; }
  [data-split] .w { opacity: 1; transform: none; transition: none; }
  .typing i { animation: none; opacity: 0.6; }
  .side { transition: none; }
}

/* Phones: same composition as desktop. Chat on the left over the room, robot at the foot of the bed. */
@media (max-width: 700px) {
  .inbox-stage { padding-top: calc(var(--bar-h) + 1rem); padding-bottom: 1rem; gap: 0.75rem; }
  /* CTA floats up to the right; the lede wraps around it, saving a full row. */
  .intro { display: block; }
  .intro .h1 { margin-bottom: 0.8rem; }
  .intro .btn { float: right; margin: 0.1rem 0 0.35rem 0.9rem; height: 2.6rem; padding: 0 1rem; font-size: 0.84rem; }
  .intro .lede { font-size: 0.95rem; }
  .intro::after { content: ""; display: block; clear: both; }
  .hero-visual { --phone-w: 62%; padding: 0.5rem 0 2.2rem; min-height: 0; justify-content: flex-start; }
  .stamp { display: none; }
  .room { top: 6%; bottom: 6%; left: 16%; right: -2%; border-radius: 22px; }
  .robot { left: calc(var(--phone-w) - 1.1rem); right: auto; top: auto; bottom: 1%; width: 25%; max-width: 6.5rem; }
  .phone { border-radius: 26px; padding: 7px; }
  .phone-head { padding: 9px 8px 10px; gap: 8px; }
  .mark-lg { width: 30px; height: 30px; border-radius: 9px; }
  .mark-lg svg { width: 17px; height: 17px; }
  .chat-who b { font-size: 0.8rem; line-height: 1.2; }
  .online { font-size: 0.7rem; }
  .timer-in small { display: none; }
  .timer-in b { font-size: 1rem; }
  .chat-closed { font-size: 0.66rem; margin: 8px 3px 0; padding: 6px 8px; }
  .chat { height: clamp(200px, calc(100svh - 37.5rem), 330px); padding: 10px 3px 8px; gap: 7px; }
  .msg { font-size: 0.78rem; padding: 7px 10px 5px; max-width: 90%; border-radius: 14px; }
  .msg time { font-size: 0.6rem; }
  .slot { font-size: 0.68rem; padding: 3px 6px; }
  .phone-input { height: 36px; margin: 4px; }
  .float-booked { left: -2px; bottom: 0; padding: 8px 12px 8px 8px; }
  .float-booked b { font-size: 0.9rem; }
  .ill-tag { font-size: 0.62rem; bottom: -1.3rem; }
}

/* Narrow phones: owl, view name, clock and country chip share one bar row. */
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .crumb { font-size: 0.92rem; }
  .clock-time { min-width: 0; white-space: nowrap; font-size: 0.86rem; }
  .cc-cur { display: none; }
}

/* ======================================================== FIT TO SCREEN == */
/* Desktop: every view fills the screen under the status bar and centres its content, so a
   jump from the sidebar shows the whole view. Type, spacing and the big visuals follow the
   screen height as well as its width. Phones keep their own rules above. */
@media (min-width: 1024px) {
  .view:not(.view-inbox) { min-height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; justify-content: center; }
  .view:not(.view-inbox):not(.view-winback) { padding-block: clamp(2rem, 7vh, 6rem); }
  .h1 { font-size: clamp(2.5rem, min(1.2rem + 3vw, 7.6vh), 4.4rem); }
  .h2 { font-size: clamp(2rem, min(1.1rem + 2.5vw, 6.2vh), 3.7rem); }
  .lede { font-size: clamp(1.05rem, min(1rem + 0.45vw, 2.9vh), 1.42rem); }
  .inbox-stage { padding-top: calc(var(--bar-h) + 3vh); padding-bottom: 4vh; }
  .hero-visual { min-height: min(40rem, calc(100svh - var(--bar-h) - 9vh)); }
  .chat { height: clamp(220px, calc(100svh - var(--bar-h) - 9vh - 330px), 410px); }
  .winback-stage { padding-block: clamp(1.5rem, 5vh, 5rem); gap: clamp(1.25rem, 3vh, 3rem); }
  /* Team: the globe stays in view while the text beside it scrolls. clip, not hidden, so sticky works. */
  .view-team { overflow: clip; }
  .team-grid { align-items: start; }
  .globe-wrap { position: sticky; top: calc(var(--bar-h) + 3vh); }
  .globe { width: min(100%, 40rem, calc(100svh - var(--bar-h) - 17rem)); }
  /* Win-back: head, three chats and the consent strip on one screen. */
  .winback-stage { padding-block: clamp(1.25rem, 3.5vh, 4rem); }
  .winback-copy { max-width: 58ch; }
  .winback-copy .body { max-width: none; line-height: 1.5; font-size: clamp(1rem, min(0.98rem + 0.3vw, 2.5vh), 1.26rem); }
  .winback-copy { gap: 10px; }
  .campaign { padding: 18px 20px; gap: 14px; }
  .campaign h3 { font-size: clamp(1.15rem, 2.7vh, 1.45rem); }
  .app-body { padding: 10px 12px 12px; gap: 5px; }
  .campaign--skip { padding-block: 12px; }
  .campaign--skip .skip-big { font-size: 2.2rem; }
  .campaign--skip header { gap: 2px; }
}
/* Short desktop screens: the live feed shows three events instead of five. */
@media (min-width: 1024px) and (max-height: 1100px) {
  .act-list li:nth-child(n+4) { display: none; }
}

/* Speed view: research numbers on how fast an enquiry goes cold */
.speed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: 16px; background: var(--sc-surface); border: 1px solid var(--sc-hairline); }
.stat-n { font-family: var(--sc-font-mono); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.stat p { margin: 0; color: var(--ink-faint); line-height: 1.45; }
.stat--us { grid-column: 1 / -1; background: var(--sc-accent); border-color: transparent; }
.stat--us .stat-n, .stat--us p { color: var(--sc-accent-ink); }
.speed-src { margin: var(--sc-6) 0 0; max-width: 34rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-faint); }
@media (max-width: 640px) { .speed { grid-template-columns: minmax(0, 1fr); } }
