/* =========================================================
   Fivv — marketing site
   Static, no build step. Strict-CSP friendly (no inline styles).
   ========================================================= */

@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex-latin.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B0F1A;
  --ink-2: #161B28;
  --off: #F8F7F5;
  --paper-2: #EFEDE9;
  --teal: #00E5CB;
  --mint: #7CFFB2;
  --coral: #FF7A6E;
  --white: #FFFFFF;

  --text: var(--ink);
  --muted: #545967;          /* 7:1 on --off */
  --line: rgba(11, 15, 26, .12);
  --line-strong: rgba(11, 15, 26, .24);

  --thread: linear-gradient(90deg, var(--teal), var(--mint) 55%, var(--coral));

  --f-sans: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --g: clamp(20px, 4.4vw, 72px);       /* page gutter */
  --max: 1360px;
  --sec: clamp(96px, 13vw, 200px);    /* section rhythm */
  --r-lg: clamp(22px, 2.2vw, 32px);
  --r-md: 20px;

  --ease: cubic-bezier(.22, .8, .18, 1);
  --ease-io: cubic-bezier(.72, 0, .18, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--f-mono); }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 999px;
  text-decoration: none; transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #2F8A73;
  margin-bottom: 22px;
}
.eyebrow--light, .section-head--light .eyebrow { color: rgba(255, 255, 255, .86); }
.h2 {
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .98;
  font-weight: 520;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.section-head { padding-inline: var(--g); max-width: var(--max); margin-inline: auto; }
.section-head--light { color: var(--white); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  column-gap: var(--g);
  align-items: end;
}
.section-head--split .eyebrow { grid-column: 1 / -1; }
.section-head__aside { color: var(--muted); font-size: 18px; max-width: 40ch; padding-bottom: 8px; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.pill--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.pill__icon { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.pill:hover .pill__icon { transform: translateX(4px); }
.pill--line { color: var(--white); border-color: rgba(255, 255, 255, .72); }
.pill--line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.pill--dark-line { color: var(--ink); border-color: var(--line-strong); }
.pill--dark-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill--light { background: var(--white); color: var(--ink); }
.pill--light:hover { background: var(--mint); }

/* =========================================================
   SKY — gradient stage
   ========================================================= */
.sky { position: relative; z-index: 2; isolation: isolate; }
.sky__stage {
  position: absolute;
  inset: 0 0 var(--sky-tail, 30vh) 0;   /* gradient ends before the collage does */
  z-index: -1;
  clip-path: inset(0 round 0 0 clamp(36px, 7vw, 120px) clamp(36px, 7vw, 120px));
}
.sky__panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: #0E4744;
  animation: intro-panel 1.7s var(--ease-io) .15s both;
}
.sky__fallback {
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 55% at 18% 22%, rgba(0, 229, 203, .85), transparent 70%),
    radial-gradient(50% 50% at 82% 30%, rgba(255, 122, 110, .8), transparent 70%),
    radial-gradient(55% 60% at 60% 85%, rgba(124, 255, 178, .55), transparent 70%),
    radial-gradient(70% 60% at 10% 90%, rgba(11, 15, 26, .7), transparent 70%),
    #0F5A55;
  filter: saturate(.85);
}
.sky__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.sky__canvas.is-ready { opacity: 1; }
.sky__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 26, .34) 0%, rgba(11, 15, 26, .08) 30%, rgba(11, 15, 26, .06) 60%, rgba(11, 15, 26, .3) 100%);
}

@keyframes intro-panel {
  0%   { clip-path: inset(calc(50% - 22px) calc(50% - 58px) round 999px); }
  38%  { clip-path: inset(calc(50% - 22px) calc(50% - 58px) round 999px); }
  70%  { clip-path: inset(7% 5% round 28px); }
  100% { clip-path: inset(0 0 round 0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--g);
  max-width: calc(var(--max) + var(--g) * 2);
  margin-inline: auto;
  color: var(--white);
  animation: fade-in 1s var(--ease) 1.45s both;
}
.site-header__brand { flex: none; border-radius: 8px; }
.site-header__brand img { width: 88px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.site-nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.site-nav__list a {
  text-decoration: none;
  font-size: 16px;
  opacity: .92;
  position: relative;
  padding: 6px 0;
}
.site-nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.site-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(150px, 22vh, 220px) var(--g) clamp(64px, 10vh, 120px);
  max-width: calc(var(--max) + var(--g) * 2);
  margin-inline: auto;
  color: var(--white);
}
.hero__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(16px, 2vw, 28px);
}
.hero__title {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: subgrid;
  font-size: clamp(54px, 8.4vw, 136px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.055em;
}
.hero__line { display: block; animation: rise-in 1.1s var(--ease) 1.3s both; }
.hero__line--a { padding-left: 14%; }
.hero__line--b { padding-left: 26%; animation-delay: 1.42s; white-space: nowrap; }
.hero__sub {
  grid-column: 8 / span 4;
  grid-row: 1;
  align-self: center;
  max-width: 30ch;
  padding-top: .4em;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
  animation: rise-in 1.1s var(--ease) 1.55s both;
}
.hero__cta {
  grid-column: 1 / span 3;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  margin-top: .6vw;
  animation: rise-in 1.1s var(--ease) 1.65s both;
}

/* fact cards */
.facts {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(72px, 11vh, 120px);
  animation: rise-in 1.2s var(--ease) 1.75s both;
}
.fact {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 34px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fact:nth-child(1) { grid-column: 2 / span 3; }
.fact:nth-child(2) { grid-column: 6 / span 3; margin-top: clamp(40px, 5vw, 88px); }
.fact:nth-child(3) { grid-column: 10 / span 3; margin-top: clamp(-36px, -2vw, -12px); }
.fact__num {
  font-size: clamp(80px, 7.6vw, 124px);
  line-height: .8;
  font-weight: 280;
  letter-spacing: -.06em;
}
.fact__label { font-size: 22px; font-weight: 500; margin-top: 14px; letter-spacing: -.01em; }
.fact__text { margin-top: auto; font-size: 15px; line-height: 1.45; max-width: 30ch; }
.fact__text code { font-size: 13.5px; }
.fact--glass {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
}
.fact--ink { background: var(--ink); color: var(--white); }
.fact--ink .fact__text { color: rgba(255, 255, 255, .78); }
.fact--mint {
  background: rgba(124, 255, 178, .78);
  border: 1px solid rgba(255, 255, 255, .5);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- reveal ---------- */
.reveal {
  padding: clamp(120px, 22vh, 240px) var(--g);
  max-width: calc(var(--max) + var(--g) * 2);
  margin-inline: auto;
  color: var(--white);
}
.reveal__text {
  font-size: clamp(28px, 3.3vw, 52px);
  line-height: 1.16;
  font-weight: 440;
  letter-spacing: -.028em;
  max-width: 24em;
  margin-left: 8%;
}
.reveal__text .w { opacity: var(--o, .2); transition: opacity .25s linear; }

/* ---------- channels ---------- */
.channels { padding: clamp(40px, 8vh, 120px) 0 clamp(120px, 18vh, 220px); }
.channels__track {
  position: relative;
  max-width: calc(var(--max) + var(--g) * 2);
  margin: clamp(56px, 8vw, 110px) auto 0;
  padding-inline: var(--g);
}
.channels__thread {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.channels__thread-path {
  fill: none;
  stroke: url(#thread-g);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js .channels__thread-path { stroke-dashoffset: var(--draw, 1); }
.channels__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.channel {
  border-radius: var(--r-lg);
  padding: clamp(22px, 2vw, 30px);
  background: rgba(11, 15, 26, .22);
  border: 1px solid rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  color: var(--white);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.channel:nth-child(1) { margin-top: 0; }
.channel:nth-child(2) { margin-top: 150px; }
.channel:nth-child(3) { margin-top: 40px; }
.channel:nth-child(4) { margin-top: 210px; }
.channel__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
}
.channel__icon svg { width: 24px; height: 24px; }
.channel--beep .channel__icon { background: var(--coral); color: var(--ink); }
.channel__name { font-size: clamp(26px, 2.3vw, 34px); font-weight: 520; letter-spacing: -.035em; margin-top: auto; padding-top: 56px; }
.channel__text { font-size: 15.5px; line-height: 1.5; margin-top: 10px; color: rgba(255, 255, 255, .9); }

/* ---------- shared code colours + status chip (developers section) ---------- */
.t-key { color: #9FE8FF; }
.t-str { color: var(--mint); }
.t-kw  { color: var(--coral); }
.t-cmd { color: var(--teal); }
.t-com { color: #7D8496; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  background: #ECEDEF; color: var(--ink);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--queued { background: #ECEDEF; color: #4D5361; }
.chip--sent { background: #E3ECF7; color: #2C5A8C; }
.chip--delivered { background: #D2F7F1; color: #036B5E; }
.chip--read { background: #D9FBE7; color: #136B3C; }
.chip--failed { background: #FFE3E0; color: #A8352B; }

/* =========================================================
   COLLAGE — product visuals (HTML/CSS/SVG only)
   Desktop: one layered stage, coordinates on a 1300px canvas.
   ========================================================= */
.collage {
  position: relative;
  z-index: 2;
  padding: 0 var(--g);
  max-width: calc(var(--max) + var(--g) * 2);
  margin: 0 auto -30vh;
}
.collage__note { font-size: 13px; color: var(--muted); margin-top: 28px; text-align: right; }

.stage {
  position: relative;
  width: 1300px;
  height: 1300px;
  margin: 0 auto;
}
.stage__phones { display: contents; }
.mock { position: absolute; will-change: transform; }

.stage__label {
  position: absolute;
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px; line-height: 1.4;
  color: rgba(255, 255, 255, .84);
}
.stage__kicker {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--white);
}
.stage__label--team { left: 2px; top: 0; }
.stage__label--cust { left: 1112px; top: 740px; width: 188px; display: block; }
.stage__label--cust .stage__kicker { display: block; margin-bottom: 6px; }

.mock--dash { left: 0;     top: 44px;  width: 1000px; z-index: 1; }
.mock--code { left: 880px; top: 300px; width: 420px;  z-index: 2; }
.mock--lock { left: 92px;  top: 560px; z-index: 3; }
.mock--chat { left: 430px; top: 470px; z-index: 5; }
.mock--call { left: 806px; top: 676px; z-index: 4; }
.mock--lock .iphone, .mock--call .iphone { zoom: .88; }

/* ---------- phone hardware ---------- */
.iphone {
  position: relative;
  width: 320px; height: 670px;
  padding: 2px;
  border-radius: 54px;
  background:
    linear-gradient(135deg, #e3e5ea 0%, #9a9ea7 7%, #44474f 20%, #2a2c32 48%, #3f424a 76%, #a3a7b0 93%, #e6e8ec 100%);
  box-shadow:
    0 0 0 .5px rgba(0, 0, 0, .55),
    0 1px 1px rgba(11, 15, 26, .16),
    0 6px 12px -2px rgba(11, 15, 26, .18),
    0 24px 44px -10px rgba(11, 15, 26, .32),
    0 64px 110px -24px rgba(11, 15, 26, .48);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
/* side buttons: action + volume on the left, side button on the right */
.iphone::before, .iphone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5d6169, #b9bcc3 45%, #6b6f77);
}
.iphone::before {
  left: -2.5px; top: 112px; height: 168px;
  background:
    linear-gradient(180deg, #8d9098 0 20px, transparent 20px 52px, #8d9098 52px 102px, transparent 102px 116px, #8d9098 116px 168px);
}
.iphone::after { right: -2.5px; top: 176px; height: 76px; }

.iphone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 8px solid #050506;
  border-radius: 52px;
  background: #000;
  box-shadow: 0 0 0 .5px #000;
  isolation: isolate;
}
/* glass reflection */
.iphone__screen::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(116deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 30%, rgba(255, 255, 255, 0) 31%);
}
.iphone__island {
  position: absolute;
  z-index: 35;
  top: 10px; left: 50%;
  width: 92px; height: 27px;
  margin-left: -46px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 78px 13.5px, #2a3555 0 1.6px, #10141f 2.6px, #050608 4.6px, transparent 5px),
    #000;
}
.iphone__home {
  position: absolute;
  z-index: 35;
  bottom: 7px; left: 50%;
  width: 104px; height: 4px;
  margin-left: -52px;
  border-radius: 2px;
  background: #0b0b0c;
}

/* status bar */
.sb {
  position: absolute; z-index: 30;
  top: 0; left: 0; right: 0;
  height: 47px;
  color: #000;
}
.sb__time {
  position: absolute; left: 0; top: 15px;
  width: 104px;
  text-align: center;
  font-size: 13.5px; font-weight: 620; letter-spacing: -.01em;
  line-height: 17px;
  font-variant-numeric: tabular-nums;
}
.sb__icons {
  position: absolute; right: 0; top: 18px;
  width: 104px;
  display: flex; justify-content: center; align-items: center; gap: 5px;
}
.sb__sig { width: 15.5px; height: 10.3px; }
.sb__wifi { width: 14px; height: 10.5px; }
.sb__bat { width: 22.5px; height: 10.8px; }
.sb svg { fill: currentColor; color: inherit; }
.sb--light { color: #fff; }
.sb__time--hide { visibility: hidden; }

/* ---------- phone 1: business chat ---------- */
.scr-chat {
  background-color: #EFEAE2;
  background-image: url("../img/chat-doodle.svg");
  background-size: 190px 190px;
  color: #111B21;
}
.chat__top {
  position: absolute; z-index: 20;
  top: 0; left: 0; right: 0;
  padding-top: 47px;
  background: rgba(247, 247, 247, .94);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 0, 0, .09);
}
.chat__nav {
  display: flex; align-items: center; gap: 6px;
  height: 44px;
  padding: 0 16px 0 10px;
  color: #1C1C1E;
}
.chat__back { width: 9px; height: 15px; flex: none; }
.chat__count { font-size: 13px; font-weight: 500; margin-right: 3px; font-variant-numeric: tabular-nums; }
.chat__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, #FFA79C 0%, #FF7A6E 55%, #E9604F 100%);
  color: #fff;
  font-size: 13.5px; font-weight: 620;
}
.chat__who { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 3px; line-height: 1.2; }
.chat__name { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 620; letter-spacing: -.01em; }
.chat__tick { width: 11px; height: 11px; color: #1FAF7A; flex: none; }
.chat__sub { font-size: 9.5px; color: #667781; margin-top: 1px; }
.chat__ic { width: 21px; height: 21px; flex: none; color: #1C1C1E; }
.chat__nav .chat__ic + .chat__ic { margin-left: 12px; }
.chat__ic--call { width: 18px; height: 18px; }

.chat__log {
  position: absolute; z-index: 1;
  top: 91px; bottom: 70px; left: 0; right: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 9px 8px 10px;
  overflow: hidden;
}
.chat__day {
  align-self: center;
  margin: 0 0 4px;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  color: #54656F;
  font-size: 9.5px; font-weight: 520;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.msg {
  position: relative;
  max-width: 80%;
  margin-top: 7px;
  padding: 5px 8px 6px 8px;
  border-radius: 8px;
  font-size: 12px; line-height: 1.34;
  letter-spacing: -.003em;
  color: #111B21;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.msg b { font-weight: 620; }
.msg::before {
  content: "";
  position: absolute; top: 0;
  width: 8px; height: 11px;
  background: inherit;
}
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.msg--in::before { left: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.msg--out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 0; }
.msg--out::before { right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.msg__meta {
  float: right;
  display: inline-flex; align-items: center; gap: 2px;
  margin: 6px -3px -5px 10px;
  font-size: 8.5px; line-height: 10px;
  color: #667781;
  font-variant-numeric: tabular-nums;
}
.msg__ticks { width: 14px; height: 8.5px; color: #53BDEB; }

.msg--tpl {
  width: 82%; max-width: 82%;
  padding: 3px 3px 0;
  display: flex; flex-direction: column;
}
.tpl__img { display: block; height: 108px; border-radius: 6px; overflow: hidden; }
.tpl__img svg { width: 100%; height: 100%; }
.tpl__title { padding: 7px 6px 0; font-size: 12.5px; font-weight: 640; line-height: 1.28; letter-spacing: -.01em; }
.tpl__text { padding: 3px 6px 0; }
.tpl__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 4px 6px 6px;
  font-size: 9.5px; color: #8696A0;
}
.tpl__foot .msg__meta { float: none; margin: 0 -2px 0 0; }
.tpl__btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 30px;
  margin: 0 -3px;
  border-top: 1px solid rgba(11, 20, 26, .08);
  color: #0A8C7E;
  font-size: 12px; font-weight: 520;
}
.tpl__btn svg { width: 12px; height: 12px; }

.chat__input {
  position: absolute; z-index: 20;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 13px 0;
  background: rgba(246, 246, 246, .96);
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.chat__input .chat__ic { margin-top: 4px; color: #3B4A54; }
.chat__field {
  flex: 1;
  display: flex; align-items: center; justify-content: flex-end;
  height: 29px;
  padding: 0 7px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
}
.chat__field svg { width: 17px; height: 17px; color: #8696A0; }

/* ---------- phone 2: lock screen ---------- */
.scr-lock { background: #0F4E4A; color: #fff; }
.scr-lock::before {
  content: "";
  position: absolute; inset: -40px;
  z-index: -1;
  background:
    radial-gradient(48% 36% at 22% 16%, rgba(0, 229, 203, .95), transparent 72%),
    radial-gradient(46% 40% at 94% 38%, rgba(255, 122, 110, .92), transparent 72%),
    radial-gradient(52% 34% at 18% 74%, rgba(124, 255, 178, .7), transparent 72%),
    radial-gradient(60% 40% at 86% 96%, rgba(11, 15, 26, .9), transparent 72%),
    linear-gradient(180deg, #0E5D57 0%, #114846 52%, #0D2B33 100%);
  filter: blur(22px) saturate(1.08);
}
.lock__pad { position: absolute; top: 45px; left: 50%; width: 10px; height: 13px; margin-left: -5px; color: #fff; z-index: 2; }
.lock__date {
  position: absolute; top: 66px; left: 0; right: 0;
  text-align: center;
  font-size: 13px; font-weight: 560; letter-spacing: .005em;
  color: rgba(255, 255, 255, .9);
}
.lock__clock {
  position: absolute; top: 80px; left: 0; right: 0;
  text-align: center;
  font-size: 84px; font-weight: 640; line-height: 1;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
  color: rgba(255, 255, 255, .95);
  font-variant-numeric: tabular-nums;
}
.lock__notes {
  position: absolute; left: 8px; right: 8px; bottom: 108px;
  display: flex; flex-direction: column; gap: 7px;
}
.note {
  display: flex; gap: 9px;
  padding: 10px 12px 10px 10px;
  border-radius: 17px;
  background: rgba(248, 248, 248, .74);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  color: #0B0F1A;
}
.note--stacked {
  box-shadow:
    0 6px 0 -3px rgba(255, 255, 255, .34),
    0 11px 0 -6px rgba(255, 255, 255, .2);
}
.note__icon {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 7.5px;
  color: #fff;
}
.note__icon svg { width: 18px; height: 18px; }
.note__icon--tg { background: linear-gradient(180deg, #45BDF2, #1D93D2); }
.note__icon--tg svg { margin-left: -1px; }
.note__icon--sms { background: linear-gradient(180deg, #6EE67D, #25BF43); }
.note__icon--sms svg { width: 19px; height: 19px; }
.note__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.note__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.note__head b { font-size: 11.5px; font-weight: 650; letter-spacing: -.005em; }
.note__head span { font-size: 10.5px; color: rgba(60, 60, 67, .62); }
.note__text { font-size: 11.5px; line-height: 1.3; margin-top: 1px; color: #1C1C1E; }
.lock__btn {
  position: absolute; bottom: 42px;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(20, 24, 32, .34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
}
.lock__btn svg { width: 18px; height: 18px; }
.lock__btn--l { left: 38px; }
.lock__btn--r { right: 38px; }
.scr-lock .iphone__home, .scr-call .iphone__home { background: rgba(255, 255, 255, .92); }

/* ---------- phone 3: Beep Call incoming ---------- */
.scr-call { background: #121620; color: #fff; text-align: center; }
.scr-call::before {
  content: "";
  position: absolute; inset: -40px;
  z-index: -1;
  background:
    radial-gradient(55% 32% at 78% 12%, rgba(255, 122, 110, .55), transparent 72%),
    radial-gradient(60% 34% at 12% 92%, rgba(0, 229, 203, .4), transparent 72%),
    radial-gradient(50% 30% at 50% 42%, rgba(124, 255, 178, .12), transparent 72%),
    linear-gradient(180deg, #1A1F2B 0%, #11151E 60%, #0C1017 100%);
  filter: blur(18px);
}
.call__kind {
  position: absolute; top: 68px; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 520;
  color: rgba(255, 255, 255, .72);
}
.call__kind svg { width: 12px; height: 12px; color: var(--coral); }
.call__who {
  position: absolute; top: 86px; left: 0; right: 0;
  font-size: 26px; font-weight: 520; letter-spacing: -.025em; line-height: 1.15;
}
.call__sub {
  position: absolute; top: 120px; left: 0; right: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, .64);
}
.call__avatar {
  position: absolute; top: 172px; left: 50%;
  width: 96px; height: 96px;
  margin-left: -48px;
}
.call__face {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(150deg, #9BFFC6 0%, #3FEFD6 50%, #00C9B3 100%);
  color: var(--ink);
  font-size: 31px; font-weight: 600; letter-spacing: -.02em;
  box-shadow: 0 10px 30px -8px rgba(0, 229, 203, .45);
}
.call__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .38);
  animation: call-ring 3s cubic-bezier(.2, .6, .3, 1) infinite;
}
.call__ring:nth-child(2) { animation-delay: 1s; }
.call__ring:nth-child(3) { animation-delay: 2s; }
@keyframes call-ring {
  0%   { transform: scale(1); opacity: 0; }
  12%  { opacity: .9; }
  100% { transform: scale(1.95); opacity: 0; }
}
.call__vd {
  position: absolute; top: 318px; left: 16px; right: 16px;
  padding: 10px 12px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: left;
}
.call__vd-head { display: flex; align-items: center; gap: 9px; }
.call__play {
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
}
.call__play svg { width: 10px; height: 10px; margin-left: 1px; }
.call__wave { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 22px; }
.call__wave i { display: block; width: 2.5px; height: 40%; border-radius: 2px; background: rgba(255, 255, 255, .34); }
.call__wave i:nth-child(-n+8) { background: rgba(255, 255, 255, .92); }
.call__wave i:nth-child(3n+1) { height: 55%; }
.call__wave i:nth-child(4n+2) { height: 85%; }
.call__wave i:nth-child(5n+3) { height: 30%; }
.call__wave i:nth-child(7n) { height: 100%; }
.call__wave i:nth-child(6n+5) { height: 65%; }
.call__dur { font-family: var(--f-mono); font-size: 10px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.call__tx { margin-top: 8px; font-size: 11.5px; line-height: 1.38; color: rgba(255, 255, 255, .9); }
.call__minor {
  position: absolute; top: 444px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 44px;
  font-size: 10.5px; color: rgba(255, 255, 255, .86);
}
.call__minor span { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; }
.call__minor svg { width: 20px; height: 20px; }
.call__btns {
  position: absolute; bottom: 46px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 38px;
}
.call__btn { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; font-size: 11px; color: rgba(255, 255, 255, .92); }
.call__btn i { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; }
.call__btn svg { width: 27px; height: 27px; color: #fff; }
.call__btn--no i { background: #F2554A; }
.call__btn--no svg { transform: rotate(135deg); }
.call__btn--yes i { background: #2FC862; }

/* ---------- desktop windows ---------- */
.win {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--f-sans);
  box-shadow:
    0 0 0 1px rgba(11, 15, 26, .1),
    0 1px 2px rgba(11, 15, 26, .06),
    0 14px 28px -10px rgba(11, 15, 26, .16),
    0 50px 90px -30px rgba(11, 15, 26, .42);
}
.win__bar {
  position: relative;
  display: flex; align-items: center;
  height: 36px;
  padding: 0 13px;
  background: linear-gradient(180deg, #F8F7F5, #F1F0ED);
  border-bottom: 1px solid rgba(11, 15, 26, .09);
}
.win__lights { display: flex; gap: 8px; }
.win__lights i { display: block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .16); }
.win__lights i:nth-child(1) { background: #FF5F57; }
.win__lights i:nth-child(2) { background: #FEBC2E; }
.win__lights i:nth-child(3) { background: #28C840; }
.win__title {
  position: absolute; left: 0; right: 0;
  text-align: center;
  font-size: 12px; font-weight: 560;
  color: #5B606B;
}

.app {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  font-size: 12.5px; line-height: 1.3;
}
.app svg { flex: none; }
.app__side {
  display: flex; flex-direction: column;
  padding: 12px 10px 12px;
  background: #FAFAF8;
  border-right: 1px solid rgba(11, 15, 26, .08);
}
.ws { display: flex; align-items: center; gap: 8px; padding: 3px 6px; font-weight: 620; font-size: 12.5px; }
.ws__logo { width: 20px; height: 20px; border-radius: 5px; }
.ws__chev { width: 12px; height: 12px; margin-left: auto; color: #8A8F99; }
.ws__env { display: flex; align-items: center; gap: 6px; margin: 1px 0 14px 34px; font-size: 10.5px; color: #6B7080; }
.ws__env-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C38E; }
.side-nav li, .side-ch li, .side-foot {
  display: flex; align-items: center; gap: 9px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: #3E4350;
}
.side-nav svg, .side-foot svg { width: 15px; height: 15px; color: #6B7080; }
.side-nav .is-active { background: rgba(11, 15, 26, .065); color: var(--ink); font-weight: 560; }
.side-nav .is-active svg { color: var(--ink); }
.side-head {
  margin: 18px 8px 4px;
  font-size: 10.5px; font-weight: 560;
  letter-spacing: .06em; text-transform: uppercase;
  color: #8A8F99;
}
.side-ch li { height: 26px; font-size: 12px; }
.side-ch svg { width: 14px; height: 14px; color: #6B7080; }
.side-ch__ok { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #22C38E; box-shadow: 0 0 0 3px rgba(34, 195, 142, .14); }
.side-foot { margin-top: auto; padding-top: 0; font-size: 12px; color: #6B7080; }

.app__main { min-width: 0; padding-bottom: 4px; }
.app__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 12px; }
.app__h { font-size: 15.5px; font-weight: 640; letter-spacing: -.015em; }
.app__sub { margin-left: 8px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: #8A8F99; }
.app__actions { display: flex; gap: 8px; }
.btn-g, .btn-p {
  display: inline-flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 11px;
  border-radius: 7px;
  font-size: 12px; font-weight: 540;
}
.btn-g { background: #fff; color: #2B2F3A; box-shadow: 0 0 0 1px rgba(11, 15, 26, .14), 0 1px 1px rgba(11, 15, 26, .05); }
.btn-p { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(11, 15, 26, .2); }
.btn-g svg, .btn-p svg { width: 13px; height: 13px; }
.app__filters {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgba(11, 15, 26, .08);
}
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #F1F0ED; }
.seg span { height: 23px; padding: 0 10px; border-radius: 6px; font-size: 11.5px; line-height: 23px; color: #5B606B; }
.seg .is-on { background: #fff; color: var(--ink); font-weight: 560; box-shadow: 0 1px 2px rgba(11, 15, 26, .1), 0 0 0 .5px rgba(11, 15, 26, .1); }
.fchip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 27px; padding: 0 8px 0 10px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(11, 15, 26, .14);
  font-size: 11.5px; color: #6B7080;
}
.fchip b { font-weight: 560; color: var(--ink); }
.fchip svg { width: 12px; height: 12px; color: #8A8F99; }
.fsearch {
  display: inline-flex; align-items: center; gap: 7px;
  width: 212px; height: 27px;
  margin-left: auto;
  padding: 0 6px 0 9px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(11, 15, 26, .14);
  font-size: 11.5px; color: #8A8F99;
}
.fsearch svg { width: 13px; height: 13px; }
.fsearch kbd {
  margin-left: auto;
  padding: 0 5px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(11, 15, 26, .12);
  background: #FAFAF8;
  font-family: var(--f-mono); font-size: 10px; line-height: 16px;
}

.log { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.log th {
  height: 30px; padding: 0 10px;
  text-align: left; white-space: nowrap;
  font-size: 11px; font-weight: 520;
  color: #8A8F99;
  background: #FCFCFB;
  border-bottom: 1px solid rgba(11, 15, 26, .08);
}
.log td {
  height: 33px; padding: 0 10px;
  white-space: nowrap;
  color: #2B2F3A;
  border-bottom: 1px solid rgba(11, 15, 26, .06);
}
.log th:first-child, .log td:first-child { padding-left: 18px; }
.log td:nth-child(1) { font-family: var(--f-mono); font-size: 11px; color: #6B7080; }
.log td:nth-child(2) { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink); }
.log td:nth-child(6) { font-family: var(--f-mono); font-size: 11px; color: #6B7080; }
.ch { display: inline-flex; align-items: center; gap: 7px; }
.ch svg { width: 14px; height: 14px; color: #6B7080; }
.st {
  display: inline-flex; align-items: center; gap: 5px;
  height: 19px; padding: 0 7px 0 6px;
  border-radius: 5px;
  font-size: 11px; font-weight: 540;
}
.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st--queued    { background: #F0EFEC; color: #5B606B; }
.st--sent      { background: #E8F0FB; color: #2A5DA8; }
.st--delivered { background: #DDF6F2; color: #05766A; }
.st--read      { background: #E1F7E8; color: #1C7A44; }
.st--failed    { background: #FDECEA; color: #B4392E; }
.rt { display: inline-flex; align-items: center; gap: 4px; }
.rt s { text-decoration: none; color: #9AA0AA; }
.rt svg { width: 12px; height: 12px; color: #9AA0AA; }
.log tr.is-open td { background: #F5FAF9; border-bottom-color: transparent; }
.log tr.log__exp td { height: auto; padding: 2px 18px 14px; background: #F5FAF9; font-family: var(--f-sans); font-size: 12px; color: #2B2F3A; }
.tl { display: flex; align-items: flex-start; gap: 28px; }
.tl__meta { display: flex; flex-direction: column; gap: 3px; min-width: 150px; padding-top: 1px; font-size: 11px; color: #6B7080; }
.tl__id { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink); }
.tl__steps { flex: 1; max-width: 540px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl__step { position: relative; display: flex; flex-direction: column; gap: 1px; padding-top: 17px; }
.tl__step::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 9px; height: 9px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid #12A08D;
  background: #fff;
}
.tl__step::after {
  content: "";
  position: absolute; left: 13px; right: 4px; top: 4px;
  height: 1px;
  background: #12A08D;
}
.tl__step--last::before { background: #12A08D; box-shadow: 0 0 0 3px rgba(18, 160, 141, .16); }
.tl__step--last::after { display: none; }
.tl__name { font-size: 11.5px; font-weight: 560; color: var(--ink); }
.tl__t { font-family: var(--f-mono); font-size: 10.5px; color: #6B7080; }

/* code editor */
.win--dark {
  background: #0F131C;
  color: #C9CFDB;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 14px 28px -10px rgba(11, 15, 26, .3),
    0 50px 90px -30px rgba(11, 15, 26, .6);
}
.win--dark .win__bar { background: #171B26; border-bottom-color: rgba(255, 255, 255, .06); }
.win--dark .win__lights i { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3); }
.ed-tabs { display: flex; align-self: stretch; margin-left: 18px; }
.ed-tab {
  display: flex; align-items: center;
  padding: 0 14px;
  font-family: var(--f-mono); font-size: 11px;
  color: #6F778A;
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.ed-tab.is-on { position: relative; background: #0F131C; color: #E6E9F0; }
.ed-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #0F131C; }
.ed {
  margin: 0;
  padding: 14px 18px 16px 0;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.66;
  color: #C9CFDB;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: none;
}
.ed .ln {
  display: inline-block;
  width: 40px; padding-right: 16px;
  text-align: right;
  color: #434A5C;
  -webkit-user-select: none; user-select: none;
}
.ed-out { background: #0B0E15; border-top: 1px solid rgba(255, 255, 255, .07); }
.ed-out__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 18px 2px;
  font-size: 10.5px; font-weight: 560; letter-spacing: .06em; text-transform: uppercase;
  color: #6F778A;
}
.ed-out__code {
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(124, 255, 178, .1);
  color: var(--mint);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
}
.ed--out { padding: 6px 18px 14px; font-size: 11.5px; }

/* ---------- collage: intermediate desktop widths ---------- */
@media (max-width: 1439px) and (min-width: 1180px) { .stage { zoom: .9; } }
@media (max-width: 1319px) and (min-width: 1180px) { .stage { zoom: .82; } }

/* ---------- collage: tablet ---------- */
@media (max-width: 1179px) {
  .stage { width: auto; height: auto; display: flex; flex-direction: column; }
  .stage__phones { display: flex; justify-content: center; align-items: center; gap: 22px; }
  .mock { position: relative; left: auto; top: auto; }
  .stage__label { position: static; }
  .stage__label--team { order: 1; margin-bottom: 18px; }
  .mock--dash { order: 2; width: 100%; }
  .mock--code { order: 3; width: min(452px, 56%); margin: -84px 24px 0 auto; }
  .stage__label--cust { order: 4; margin: 56px 0 22px; }
  .stage__phones { order: 5; }
  .mock--lock .iphone, .mock--call .iphone { zoom: .74; }
  .mock--chat .iphone { zoom: .82; }
  .app { grid-template-columns: 160px minmax(0, 1fr); }
  .log th:nth-child(6), .log td:nth-child(6) { display: none; }
  .fchip { display: none; }
}

/* ---------- collage: phone ---------- */
@media (max-width: 699px) {
  .stage__label { display: block; font-size: 15px; }
  .stage__kicker { display: block; margin-bottom: 4px; }
  .stage__label--cust { order: 1; margin: 0 0 18px; }
  .stage__phones {
    order: 2;
    justify-content: flex-start;
    gap: 14px;
    margin: 0 calc(-1 * var(--g));
    padding: 6px var(--g) 44px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--g);
    scrollbar-width: none;
  }
  .stage__phones::-webkit-scrollbar { display: none; }
  .stage__phones .mock { flex: none; scroll-snap-align: start; }
  .mock--chat { order: 1; }
  .mock--lock { order: 2; }
  .mock--call { order: 3; }
  .mock--lock .iphone, .mock--call .iphone, .mock--chat .iphone { zoom: .8; }
  .stage__label--team { order: 3; margin: 30px 0 18px; }
  .mock--dash { order: 4; }
  .mock--code { order: 5; width: 100%; margin: 16px 0 0; }

  .app { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
  .app__head { padding: 12px 14px 10px; }
  .app__sub, .btn-g { display: none; }
  .app__filters { padding: 0 14px 10px; overflow: hidden; }
  .fsearch { display: none; }
  .seg span { padding: 0 8px; }
  .log th:nth-child(1), .log tr:not(.log__exp) td:nth-child(1),
  .log th:nth-child(5), .log td:nth-child(5) { display: none; }
  .log th:nth-child(2), .log td:nth-child(2) { padding-left: 14px; }
  .log td:last-child, .log th:last-child { padding-right: 14px; }
  .log__exp td { padding: 4px 14px 14px; }
  .tl { flex-direction: column; gap: 12px; }
  .tl__steps { width: 100%; max-width: none; flex: none; }
  .ed { font-size: 11px; }
  .ed .ln { width: 30px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .call__ring { animation: none !important; opacity: .3; transform: scale(1.3); }
  .call__ring + .call__ring { display: none; }
}

/* =========================================================
   PAPER — light sections
   ========================================================= */
.paper { position: relative; z-index: 1; background: var(--off); }
.paper:not(.paper--after) { padding-top: calc(30vh + var(--sec)); }

/* how it works */
.how { padding-bottom: var(--sec); }
.steps {
  max-width: calc(var(--max) + var(--g) * 2);
  margin: clamp(56px, 7vw, 100px) auto 0;
  padding-inline: var(--g);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  counter-reset: step;
}
.step { padding-top: 26px; border-top: 1px solid var(--line-strong); position: relative; }
.step::before {
  content: "";
  position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--thread);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.step.is-in::before { transform: scaleX(1); }
.step:nth-child(2)::before { transition-delay: .15s; }
.step:nth-child(3)::before { transition-delay: .3s; }
.step:nth-child(4)::before { transition-delay: .45s; }
.step__n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.step__title { font-size: clamp(24px, 2.1vw, 32px); font-weight: 520; letter-spacing: -.035em; line-height: 1.1; margin-top: 52px; }
.step__text { color: var(--muted); margin-top: 14px; font-size: 16px; max-width: 32ch; }
.step__text code { font-size: 14px; color: var(--ink); }
.step--beep .step__n { color: #C2493E; }

/* use cases */
.cases { padding-bottom: var(--sec); }
.cases__table {
  max-width: calc(var(--max) + var(--g) * 2);
  margin: clamp(56px, 7vw, 100px) auto 0;
  padding-inline: var(--g);
}
.cases__row {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 3fr) minmax(0, 2.6fr) minmax(0, 3.2fr);
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
  transition: background-color .5s var(--ease);
}
.cases__row:last-child { border-bottom: 1px solid var(--line); }
.cases__row--head { padding: 0 0 14px; border-top: 0; font-size: 13px; letter-spacing: .02em; }
.cases__name { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); }
.tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13.5px;
  color: var(--ink);
  margin: 0 6px 6px 0;
}
.tag--beep { border-color: rgba(194, 73, 62, .45); color: #A8352B; }

/* developers */
.dev {
  max-width: calc(var(--max) + var(--g) * 2);
  margin: 0 auto;
  padding: 0 var(--g) var(--sec);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.dev .h2 { font-size: clamp(40px, 4.4vw, 70px); }
.dev__lede { font-size: 19px; color: var(--muted); margin-top: 26px; max-width: 34ch; }
.dev__features { margin-top: 44px; border-top: 1px solid var(--line); }
.dev__features li {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.dev__features strong { font-weight: 600; }
.dev__features span { color: var(--muted); }
.dev__code { position: sticky; top: 40px; }
.code-tabs {
  background: var(--ink);
  color: #D7DBE6;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.code-tabs__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-tabs__tab {
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 7px 16px; font-size: 14px; color: rgba(255, 255, 255, .66); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.code-tabs__tab:hover { color: var(--white); }
.code-tabs__tab[aria-selected="true"] { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.code-tabs__dots { margin-left: auto; display: flex; gap: 6px; padding-right: 6px; }
.code-tabs__dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.code-tabs__panel pre {
  margin: 0; padding: 26px 26px 30px;
  font-size: clamp(12.5px, 1.05vw, 14.5px); line-height: 1.75;
  overflow-x: auto;
}
.code-tabs__panel:focus-visible { outline-offset: -4px; }
.webhook {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
}
.webhook__label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.webhook pre { margin: 12px 0 0; font-size: 13px; line-height: 1.7; overflow-x: auto; color: var(--ink); }
.webhook .t-key { color: #1F6F8B; }
.webhook .t-str { color: #136B3C; }
.webhook .t-kw { color: #A8352B; }

/* ---------- manifesto ---------- */
.manifesto {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(56px, 13vw, 220px) clamp(56px, 13vw, 220px) 0 0;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #0F4C48;
}
.manifesto__bg {
  position: absolute; inset: -30%;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 25% 35%, rgba(0, 229, 203, .9), transparent 70%),
    radial-gradient(38% 40% at 75% 30%, rgba(255, 122, 110, .85), transparent 70%),
    radial-gradient(45% 45% at 55% 75%, rgba(124, 255, 178, .6), transparent 70%),
    radial-gradient(40% 40% at 15% 80%, rgba(11, 15, 26, .75), transparent 70%),
    #0F4C48;
  animation: drift 26s ease-in-out infinite alternate;
}
.manifesto::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 15, 26, .1), rgba(11, 15, 26, .32));
}
@keyframes drift {
  from { transform: rotate(0deg) scale(1); }
  to   { transform: rotate(14deg) scale(1.12); }
}
.manifesto__inner {
  max-width: calc(var(--max) + var(--g) * 2);
  margin-inline: auto;
  padding: var(--sec) var(--g);
  width: 100%;
}
.manifesto__text {
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: .98;
  font-weight: 480;
  letter-spacing: -.05em;
  max-width: 13em;
  text-wrap: balance;
}

/* ---------- pricing ---------- */
.paper--after { padding-top: var(--sec); }
.pricing { padding-bottom: var(--sec); }
.plans {
  max-width: calc(var(--max) + var(--g) * 2);
  margin: clamp(56px, 7vw, 100px) auto 0;
  padding-inline: var(--g);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.2vw, 34px);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.plan__name { font-size: clamp(26px, 2.2vw, 34px); font-weight: 520; letter-spacing: -.035em; }
.plan__fee { margin-top: 8px; font-size: 15px; color: var(--muted); }
.plan__terms { margin: 40px 0 32px; display: grid; gap: 12px; font-size: 15.5px; }
.plan__terms li { padding-left: 22px; position: relative; line-height: 1.45; }
.plan__terms li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 2px; border-radius: 2px; background: var(--thread);
}
.plan .pill { margin-top: auto; align-self: flex-start; }
.plan--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan--ink .plan__fee { color: rgba(255, 255, 255, .7); }
.pricing__note {
  max-width: calc(var(--max) + var(--g) * 2);
  margin: 22px auto 0; padding-inline: var(--g);
  font-size: 13.5px; color: var(--muted);
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}
.contact__rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  left: -14vw; top: 50%;
  width: 52vw; aspect-ratio: 1;
  transform: translateY(-50%);
}
.contact__rings span:nth-child(2) { width: 72vw; left: -24vw; }
.contact__rings span:nth-child(3) { width: 92vw; left: -34vw; }
.contact__orb {
  position: absolute;
  right: -12vw; top: 50%;
  width: min(62vw, 820px); aspect-ratio: 1;
  transform: translateY(-46%);
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(0, 229, 203, .95), transparent 70%),
    radial-gradient(55% 55% at 75% 40%, rgba(255, 122, 110, .9), transparent 70%),
    radial-gradient(60% 60% at 50% 85%, rgba(124, 255, 178, .9), transparent 70%),
    #3FB79B;
  box-shadow: 0 0 0 28px rgba(11, 15, 26, .03), 0 0 0 1px var(--line);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: translateY(-46%) rotate(360deg); } }
.contact__body {
  position: relative;
  max-width: calc(var(--max) + var(--g) * 2);
  margin-inline: auto;
  padding: var(--sec) var(--g);
  width: 100%;
}
.contact__title {
  font-size: clamp(44px, 6vw, 96px);
  line-height: .98;
  font-weight: 520;
  letter-spacing: -.05em;
  max-width: 9em;
}
.contact__text { font-size: 19px; color: var(--muted); max-width: 40ch; margin: 26px 0 40px; }
.contact .pill--dark-line { background: rgba(248, 247, 245, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.contact .pill--dark-line:hover { background: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--off);
  border-top: 1px solid var(--line);
  max-width: none;
  padding: 56px var(--g) 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 32px;
}
.site-footer__brand img { width: 100px; height: auto; }
.site-footer__brand p { margin-top: 14px; font-size: 19px; letter-spacing: -.02em; }
.site-footer__h { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { text-decoration: none; color: var(--muted); font-size: 15.5px; transition: color .3s var(--ease); }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__legal { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); padding-top: 32px; border-top: 1px solid var(--line); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero__head { grid-template-rows: auto auto auto auto; }
  .hero__title { grid-row: 1 / 3; }
  .hero__line--a { padding-left: 6%; }
  .hero__line--b { padding-left: 14%; }
  .hero__sub { grid-column: 2 / span 7; grid-row: 3; margin-top: 36px; padding-top: 0; }
  .hero__cta { grid-column: 2 / span 6; grid-row: 4; margin-top: 28px; }
  .facts { margin-top: 72px; }
  .fact:nth-child(1) { grid-column: 1 / span 4; }
  .fact:nth-child(2) { grid-column: 5 / span 4; margin-top: 56px; }
  .fact:nth-child(3) { grid-column: 9 / span 4; margin-top: 0; }
  .fact__num { font-size: clamp(80px, 13vw, 130px); }

  .channels__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel:nth-child(n) { margin-top: 0; }
  .channel:nth-child(2), .channel:nth-child(4) { margin-top: 90px; }
  .channel:nth-child(3) { margin-top: -50px; }


  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .dev { grid-template-columns: minmax(0, 1fr); }
  .dev__code { position: static; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 96px var(--g) 48px;
    background: rgba(11, 15, 26, .9);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
  .site-nav__list { flex-direction: column; gap: 8px; }
  .site-nav__list a { font-size: 40px; letter-spacing: -.04em; font-weight: 500; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px;
    position: relative; z-index: 40;
    min-height: 44px; padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .72);
    background: rgba(11, 15, 26, .12);
    color: var(--white);
    cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before {
    display: block; width: 16px; height: 1.5px; background: currentColor;
    transition: transform .4s var(--ease);
  }
  .menu-toggle__bars { position: relative; transform: translateY(-3px); }
  .menu-toggle__bars::before { content: ""; position: absolute; left: 0; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head__aside { margin-top: 24px; }

  .cases__row--head { display: none; }
  .cases__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 0; }
  .cases__name { margin-bottom: 6px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .site-header__brand img { width: 76px; }
  .hero { padding-top: 132px; }
  .hero__title { font-size: clamp(50px, 14.2vw, 72px); line-height: .98; }
  .hero__line--a { padding-left: 0; }
  .hero__line--b { padding-left: 0; white-space: normal; max-width: 6.4em; margin-left: auto; text-align: right; }
  .hero__sub { grid-column: 1 / -1; margin-top: 28px; max-width: 32ch; }
  .hero__cta { grid-column: 1 / -1; margin-top: 26px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
  .fact { padding: 18px; }
  .fact:nth-child(1) { grid-column: 1 / -1; aspect-ratio: auto; min-height: 220px; }
  .fact:nth-child(2) { grid-column: 1; margin-top: 0; }
  .fact:nth-child(3) { grid-column: 2; margin-top: 0; }
  .fact__num { font-size: 72px; }
  .fact__label { font-size: 17px; margin-top: 8px; }
  .fact__text { font-size: 13px; }
  .fact:nth-child(1) .fact__text { margin-top: 28px; }

  .reveal__text { margin-left: 0; font-size: clamp(26px, 7.4vw, 34px); }

  .channels__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .channel:nth-child(n) { margin-top: 0; min-height: 0; }
  .channel__name { padding-top: 36px; }

  .collage { margin-bottom: -18vh; }
  .sky__stage { --sky-tail: 18vh; }
  .paper:not(.paper--after) { padding-top: calc(18vh + 96px); }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .step__title { margin-top: 24px; }
  .dev__features li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .code-tabs__panel pre { padding: 20px 18px 24px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { min-height: 0; }
  .contact { min-height: 0; padding-bottom: 46vw; }
  .contact__orb { width: 90vw; right: -30vw; top: auto; bottom: -34vw; transform: none; animation: none; }
  .contact__rings span { width: 120vw; left: -60vw; }
  .contact__rings span:nth-child(2) { width: 160vw; left: -80vw; }
  .contact__rings span:nth-child(3) { display: none; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .sky__panel { animation: none; }
  .reveal__text .w { opacity: 1; }
  .js .channels__thread-path { stroke-dashoffset: 0; }
  .step::before { transform: scaleX(1); }
  .mock { transform: none !important; }
}
