/* =========================================================
   Kramar — styles
   8px grid · one accent (blue) · yellow only as a tiny highlight
   ========================================================= */

:root {
  --white: #ffffff;
  --gray: #f5f5f7;
  --gray-2: #e8e8ed;
  --line: #d2d2d7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --dark: #000000;
  --dark-text: #f5f5f7;
  --dark-muted: #a1a1a6;

  --blue: #0057b8;
  --blue-tint: rgba(0, 87, 184, 0.08);
  --yellow: #ffd500;
  --focus: #0057b8;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion tokens. Only transform and opacity are animated. */
  --dur-feedback: 150ms;                          /* hover, press, small state changes */
  --dur-press: 80ms;                              /* touch-down feedback, under 100ms */
  --dur-ui: 300ms;                                /* nav, pill, FAQ, bubbles */
  --dur-reveal: 800ms;                            /* scroll reveals, hero */
  --dur-reveal-long: 900ms;                       /* phone entrance, step connectors */
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);      /* standard moves */
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);/* small playful elements only: chat bubbles, step numbers */
  --stagger: 70ms;
  --reveal-y: 24px;
  --hero-scale: 0.96;
  --press-scale: 0.97;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px; --s12: 96px;
  --s16: 128px; --s20: 160px;

  --gutter: 24px;
  --maxw: 1120px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --band: var(--s12);

  --fs-body: 17px;
  --fs-lead: 21px;
}

@media (max-width: 379px) {
  :root { --gutter: 16px; }
}
@media (min-width: 768px) {
  :root { --gutter: 48px; --band: var(--s16); --fs-body: 18px; --fs-lead: 24px; }
}
@media (min-width: 1200px) {
  :root { --band: var(--s20); --fs-body: 19px; }
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;   /* long words, emails and URLs wrap instead of overflowing */
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
abbr { text-decoration: none; }
time { font-variant-numeric: tabular-nums; }

/* Soft accent ring: a crisp 2px outline plus a faint halo (static, never animated) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus) 18%, transparent);
}

/* Inline links: underline draws in from the left */
.link { position: relative; }
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease);
}
.link:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(1); }
}

/* Touch-down feedback for text controls (buttons have their own press) */
.link, .nav__links a, .nav__brand, .faq summary {
  transition: opacity var(--dur-feedback) var(--ease);
}
.link:active, .nav__links a:active, .nav__brand:active, .faq summary:active {
  opacity: 0.6;
  transition-duration: var(--dur-press);
}

/* Scroll progress: a 2px accent line, scaled from the left by JS */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.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: var(--s2);
  top: var(--s1);
  z-index: 100;
  padding: var(--s1) var(--s2);
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: 15px;
  transform: translateY(-200%);
  transition: transform var(--dur-ui) var(--ease);
}
.skip-link:focus { transform: none; }

/* Side gutters never smaller than the notch/rounded-corner safe areas (viewport-fit=cover) */
.container,
.nav__inner {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Type ---------- */
.display {
  font-size: clamp(40px, 4.4vw + 16px, 80px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.headline {
  font-size: clamp(32px, 3vw + 18px, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.headline--xl { font-size: clamp(36px, 3.6vw + 18px, 64px); }

.lead,
.body-lg {
  font-size: var(--fs-lead);
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  max-width: 34em; /* ≈ 65 characters at this size */
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-2);
}
.eyebrow--dark { color: var(--dark-muted); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex: none;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.actions--center { justify-content: center; }
@media (max-width: 559px) {
  .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero__copy .actions, .cta__inner .actions { margin-inline: auto; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 12px var(--s3);
  border-radius: 999px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  transition: transform var(--dur-feedback) var(--ease);
}
/* Brightening layer: a white wash faded in on hover (opacity only) */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transition: opacity var(--dur-feedback) var(--ease);
}
.btn:active {
  transform: scale(var(--press-scale));
  transition-duration: var(--dur-press);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover::after { opacity: 0.1; }
  .btn:hover:active { transform: scale(var(--press-scale)); }
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--secondary { background: var(--blue-tint); color: var(--blue); }
.btn--secondary::after { background: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .btn--secondary:hover::after { opacity: 0.06; }
}
.btn--sm { min-height: 32px; padding: 4px var(--s2); font-size: 14px; line-height: 24px; }
.btn__icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: transform var(--dur-ui) var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, 0.96); }
}
/* After 8px of scroll: a more opaque layer and a hairline fade in (opacity only) */
.nav::before,
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease);
}
.nav::before { top: 0; bottom: 0; background: rgba(255, 255, 255, 0.6); }
.nav::after { bottom: -1px; height: 1px; background: rgba(0, 0, 0, 0.1); }
.nav.is-scrolled::before,
.nav.is-scrolled::after { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 56px;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav__brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav__links {
  display: none;
  gap: var(--s4);
  margin-inline: auto;
}
.nav__links a {
  position: relative;
  color: var(--ink);
  opacity: 0.78;
  font-size: 14px;
  line-height: 24px;
}
.nav__links a[aria-current="true"] { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { opacity: 1; }
}
/* Current section marker */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform var(--dur-ui) var(--ease);
}
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}
@media (min-width: 840px) {
  .nav__links { display: flex; }
  .nav__actions { margin-left: 0; }
}

/* Language toggle: equal-width options, a white pill slides under the active one */
/* Without JavaScript the toggle can't work, so it stays invisible (its space is kept: no layout shift) */
html:not(.i18n-ready) .lang { visibility: hidden; }
.lang {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.lang::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform var(--dur-ui) var(--ease);
}
.lang[data-active="en"]::before { transform: translateX(44px); }
.lang__btn {
  position: relative;
  width: 44px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  opacity: 0.75;
  font: 600 13px/28px var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity var(--dur-feedback) var(--ease), transform var(--dur-feedback) var(--ease);
}
.lang__btn[aria-pressed="true"] { opacity: 1; }
.lang__btn:active { transform: scale(0.94); transition-duration: var(--dur-press); }
@media (hover: hover) and (pointer: fine) {
  .lang__btn:hover { opacity: 1; }
}

/* ---------- Bands ---------- */
.band { padding-block: var(--band); }
.band--white { background: var(--white); }
.band--gray { background: var(--gray); }
.band--dark { background: var(--dark); color: var(--dark-text); --focus: #8fc1ff; }

.section-head {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s8);
  max-width: 880px;
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
@media (min-width: 768px) { .section-head { margin-bottom: var(--s10); } }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s10); overflow: hidden; }
.hero__grid {
  display: grid;
  gap: var(--s8);
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: var(--s3);
  justify-items: center;
  text-align: center;
}
.hero__copy .lead { margin-inline: auto; }
.hero__copy .actions { justify-content: center; margin-top: var(--s2); }
.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s3);
}
.hero__visual::before {
  /* soft halo, no hard shadow */
  content: "";
  position: absolute;
  inset: 4% -10% 14%;
  background: radial-gradient(closest-side, rgba(0, 87, 184, 0.10), rgba(0, 87, 184, 0) 70%);
  pointer-events: none;
}
.hero__caption {
  position: relative;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .hero { padding-top: var(--s12); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s8); }
  .hero .display { font-size: clamp(56px, 3.6vw + 20px, 76px); }
  .hero__copy { justify-items: start; text-align: left; }
  .hero__copy .lead { margin-inline: 0; }
  .hero__copy .actions { justify-content: flex-start; }
}

/* ---------- Phone mockup ----------
   One width (--pw) drives everything. The frame image (1015×2000) keeps its aspect ratio;
   the live screen is positioned inside its transparent opening, measured from the image:
   opening x 86–928, y 86–1913, corner radius ≈ 125px, Dynamic Island x 373–641, y 110–188.
   The screen box bleeds 3 image-px under the bezel on every side so no seam can show.
   Inside the screen, --u is one design pixel of a 300-unit-wide screen. */
.phone {
  --pw: min(360px, 100%);
  position: relative;
  flex: none;
  width: var(--pw);
  aspect-ratio: 1015 / 2000;
  container-type: inline-size;
}
.phone__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.phone__screen {
  --u: calc(83.6453cqw / 300);          /* 849 / 1015 of the frame width = 300u */
  position: absolute;
  left: 8.1773%;                        /* 83 / 1015 */
  top: 4.15%;                           /* 83 / 2000 */
  width: 83.6453%;                      /* 849 / 1015 */
  height: 91.7%;                        /* 1834 / 2000 */
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14.723% / 6.816%;      /* 125px of the 849 × 1834 box */
  background: linear-gradient(180deg, #e9eff7 0%, #dfe8f3 100%);
  font-size: calc(14 * var(--u));
  line-height: calc(19 * var(--u));
  letter-spacing: -0.01em;
  color: #000;
}
/* No container queries (Safari < 16, Firefox < 110): 1u ≈ 1px matches the 360px phone closely */
@supports not (width: 1cqw) {
  .phone__screen { --u: 1px; }
}

/* Status bar: three columns matching the ears either side of the island
   (island spans 102.5u–197.5u). Its centre line, 23.5u, is the island's centre. */
.phone__status {
  flex: none;
  display: grid;
  grid-template-columns: calc(102.5 * var(--u)) 1fr calc(102.5 * var(--u));
  align-items: center;
  height: calc(47 * var(--u));
  background: rgba(247, 247, 249, 0.94);
  color: #000;
}
.phone__time {
  grid-column: 1;
  justify-self: center;
  padding-left: calc(6 * var(--u));     /* nudges toward the corner, like iOS */
  font-size: calc(14 * var(--u));
  line-height: calc(16 * var(--u));
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
/* The one deliberate exception to relative units: the icons are drawn on a whole-pixel
   grid (10px tall) and only stay crisp at exactly that size. The phone only ranges from
   ~328 to 360px wide (scale 0.91–1), so fixed icons stay visually proportional.
   JS snaps the group onto the device-pixel grid. */
.phone__icons {
  grid-column: 3;
  justify-self: center;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: calc(6 * var(--u));
}
.sb-icon { flex: none; height: 10px; fill: currentColor; overflow: hidden; }
.sb-icon--15 { width: 15px; }
.sb-icon--23 { width: 23px; }

.tg-head {
  flex: none;
  display: grid;
  grid-template-columns: calc(24 * var(--u)) 1fr calc(36 * var(--u));
  align-items: center;
  gap: calc(8 * var(--u));
  padding: 0 calc(14 * var(--u)) calc(10 * var(--u));
  background: rgba(247, 247, 249, 0.94);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}
.tg-head__back { width: calc(12 * var(--u)); height: calc(20 * var(--u)); color: var(--blue); }
.tg-head__title { display: grid; justify-items: center; line-height: calc(18 * var(--u)); }
.tg-head__title strong { font-size: calc(15 * var(--u)); font-weight: 600; }
.tg-head__title span { font-size: calc(12 * var(--u)); color: #6e6e73; }
.tg-head__avatar { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; background: #fff; }

.tg-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  padding: calc(12 * var(--u)) calc(10 * var(--u));
  overflow: hidden;
}
.tg-demo {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  margin-bottom: calc(4 * var(--u));
  padding: calc(3 * var(--u)) calc(10 * var(--u));
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.62);
  color: #fff;
  font-size: calc(12 * var(--u));
  line-height: calc(18 * var(--u));
  font-weight: 600;
}
.tg-demo .dot { width: calc(6 * var(--u)); height: calc(6 * var(--u)); }

.msg {
  position: relative;
  max-width: 84%;
  padding: calc(7 * var(--u)) calc(10 * var(--u)) calc(6 * var(--u));
  border-radius: calc(16 * var(--u));
  word-wrap: break-word;
}
.msg p { display: inline; }
.msg time {
  float: right;
  margin: calc(6 * var(--u)) 0 calc(-4 * var(--u)) calc(8 * var(--u));
  font-size: calc(11 * var(--u));
  line-height: calc(14 * var(--u));
  color: rgba(60, 60, 67, 0.55);
}
.msg--out {
  align-self: flex-end;
  background: #d7e8fb;
  border-bottom-right-radius: calc(6 * var(--u));
}
.msg--in {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: calc(6 * var(--u));
}
.msg-slot { position: relative; display: flex; }
.msg-slot .msg--in { max-width: 88%; }

.product {
  display: grid;
  grid-template-columns: calc(64 * var(--u)) 1fr;
  gap: calc(10 * var(--u));
  margin-top: calc(8 * var(--u));
  padding: calc(8 * var(--u));
  border-radius: calc(12 * var(--u));
  background: #f2f4f7;
}
.product__img {
  display: grid;
  place-items: center;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  border-radius: calc(8 * var(--u));
  background: linear-gradient(160deg, #fbfbfd, #e6e8ec);
}
.product__img svg { width: calc(48 * var(--u)); height: calc(48 * var(--u)); }
.product__body { display: grid; align-content: center; gap: calc(1 * var(--u)); min-width: 0; }
.product__body strong { font-size: calc(14 * var(--u)); font-weight: 600; }
.product__body > span { font-size: calc(12 * var(--u)); color: #6e6e73; }
.product__row { display: flex; align-items: baseline; gap: calc(8 * var(--u)); margin-top: calc(2 * var(--u)); flex-wrap: wrap; }
.product__row b { font-size: calc(14 * var(--u)); font-weight: 600; }
.product__row em {
  display: inline-flex;
  align-items: center;
  gap: calc(4 * var(--u));
  font-style: normal;
  font-size: calc(12 * var(--u));
  color: #1a7f37;
}
.product__row em::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #1f9d43; }

.handoff {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  width: fit-content;
  margin-top: calc(8 * var(--u));
  padding: calc(2 * var(--u)) calc(8 * var(--u)) calc(2 * var(--u)) calc(6 * var(--u));
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  font-size: calc(12 * var(--u));
  line-height: calc(18 * var(--u));
  font-weight: 600;
}
.handoff::before {
  content: "";
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h7M6.5 3 9.5 6l-3 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h7M6.5 3 9.5 6l-3 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.typing {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: calc(4 * var(--u));
  padding: calc(12 * var(--u));
  border-radius: calc(16 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)) calc(6 * var(--u));
  background: #fff;
  opacity: 0;
}
.typing i {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: #8e8e93;
}

/* Bottom safe area: input sits above the home indicator, clear of the rounded corners */
.tg-input {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--u));
  margin: calc(4 * var(--u)) calc(12 * var(--u)) calc(24 * var(--u));
  padding: 0 calc(8 * var(--u)) 0 calc(16 * var(--u));
  height: calc(36 * var(--u));
  border-radius: 999px;
  background: #fff;
  color: #8e8e93;
  font-size: calc(14 * var(--u));
}
.tg-input svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: #8e8e93; }
.phone__home {
  position: absolute;
  left: 50%;
  bottom: calc(7 * var(--u));
  width: calc(102 * var(--u));
  height: calc(4 * var(--u));
  margin-left: calc(-51 * var(--u));
  border-radius: 999px;
  background: #000;
}

/* Chat sequence (JS adds .is-animated; steps get .is-typing / .is-shown).
   Bubbles pop from their sender's corner: a tiny scale + rise on the spring curve, plain fade. */
.js .tg-chat.is-animated [data-step] > .msg,
.js .tg-chat.is-animated .msg[data-step] {
  opacity: 0;
  transform: translateY(calc(6 * var(--u))) scale(0.92);
  transform-origin: 0% 100%;
  transition:
    opacity var(--dur-ui) var(--ease),
    transform 420ms var(--ease-spring);
}
.js .tg-chat.is-animated .msg--out[data-step] { transform-origin: 100% 100%; }
.js .tg-chat.is-animated [data-step].is-shown > .msg,
.js .tg-chat.is-animated .msg[data-step].is-shown {
  opacity: 1;
  transform: none;
}
.js .tg-chat.is-animated .typing {
  transform: scale(0.9);
  transform-origin: 0% 100%;
  transition: opacity var(--dur-feedback) var(--ease), transform var(--dur-ui) var(--ease-spring);
}
.js .tg-chat.is-animated .msg-slot.is-typing .typing { opacity: 1; transform: none; }
.js .tg-chat.is-animated .msg-slot.is-typing .typing i { animation: typing 1.2s var(--ease) infinite; }
.js .tg-chat.is-animated .msg-slot.is-typing .typing i:nth-child(2) { animation-delay: 0.16s; }
.js .tg-chat.is-animated .msg-slot.is-typing .typing i:nth-child(3) { animation-delay: 0.32s; }
.js .tg-chat.is-fading [data-step] > .msg,
.js .tg-chat.is-fading .msg[data-step] {
  opacity: 0 !important;
  transform: none !important;
  transition: opacity 600ms var(--ease) !important;
}

/* Soft pulse: dim → full with a 2-unit lift */
@keyframes typing {
  0%, 70%, 100% { transform: none; opacity: 0.35; }
  35% { transform: translateY(calc(-2 * var(--u))); opacity: 1; }
}

/* ---------- Cards (shared) ---------- */
.card {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding: var(--s4);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.card--gray { background: var(--gray); }
.card__title {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.card__text { color: var(--ink-2); max-width: 32em; }
@media (min-width: 768px) {
  .card { padding: var(--s6); }
  .card__title { font-size: 28px; line-height: 36px; }
}

/* ---------- Problem ---------- */
.split { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.q-stack {
  display: grid;
  gap: var(--s1);
  margin-top: var(--s3);
}
.q-stack li,
.night__msg {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  width: fit-content;
  max-width: 100%;
  padding: 12px var(--s2);
  border-radius: 20px 20px 20px 8px;
  background: var(--gray);
  font-size: 17px;
  line-height: 24px;
}
.q-stack li:nth-child(2) { margin-left: var(--s2); }
.q-stack li:nth-child(3) { margin-left: var(--s4); }
@media (min-width: 768px) {
  .q-stack li:nth-child(2) { margin-left: var(--s3); }
  .q-stack li:nth-child(3) { margin-left: var(--s6); }
}
.q-stack time,
.night__msg time { font-size: 13px; color: var(--muted); }

.night {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s3);
  padding: var(--s3);
  border-radius: var(--radius-md);
  background: #eef0f4;
}
.night__msg { background: var(--white); }
.night__status {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: 14px;
  line-height: 24px;
  color: #5b5b60;          /* --muted is only 4.3:1 on this card's #eef0f4; this is 5.6:1 */
}
.night__pip { width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: var(--s5);
}
.step { position: relative; display: grid; gap: var(--s2); align-content: start; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s1);
  border-radius: 50%;
  background: var(--gray);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.step__title { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; font-weight: 600; }
.step__text { color: var(--ink-2); max-width: 30em; }

/* Connector from each number to the next: vertical when stacked, horizontal in a row.
   Drawn with scaleY/scaleX when .steps gets .is-drawn; each number pops as the line reaches it.
   Timing: number i at (i-1)×600ms, its connector runs 100→600ms after it. */
/* Stacked layout: number in its own column so the vertical connector has a clear gutter */
@media (max-width: 899px) {
  .step { grid-template-columns: 48px 1fr; column-gap: 20px; row-gap: var(--s1); }
  .step__num { grid-row: 1 / span 2; margin-bottom: 0; }
  .step__title { padding-top: 8px; }
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 56px;                                   /* 8px below the 48px number */
  bottom: calc(-1 * var(--s5) + 8px);          /* stops 8px above the next number */
  width: 2px;
  border-radius: 1px;
  background: var(--line);
  transform-origin: top;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
  .step { padding-right: var(--s2); }
  .step:not(:last-child)::after {
    left: 60px;                                /* 48px number + 12px air */
    right: calc(-1 * var(--s6) + 12px);        /* 12px before the next number */
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
    transform-origin: left;
  }
}
.js .steps:not(.is-drawn) .step__num { opacity: 0; transform: scale(0.6); }
.js .steps:not(.is-drawn) .step:not(:last-child)::after { transform: scaleY(0); }
@media (min-width: 900px) {
  .js .steps:not(.is-drawn) .step:not(:last-child)::after { transform: scaleX(0); }
}
.js .steps .step__num {
  transition:
    opacity var(--dur-ui) var(--ease) var(--step-delay, 0ms),
    transform var(--dur-ui) var(--ease-spring) var(--step-delay, 0ms);
}
.js .steps .step:not(:last-child)::after {
  transition: transform 500ms var(--ease) calc(var(--step-delay, 0ms) + 100ms);
}
.step:nth-child(2) { --step-delay: 600ms; }
.step:nth-child(3) { --step-delay: 1200ms; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--s2); }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .tile--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > .tile { grid-column: span 2; }
  .bento > .tile--wide { grid-column: span 4; }
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  min-height: 280px;
  padding: var(--s4);
  border-radius: var(--radius-lg);
  background: var(--white);
  /* hover lift uses the individual `translate` property so it never fights the reveal `transform` */
  transition: translate var(--dur-ui) var(--ease);
}
/* Soft shadow, faded in on hover */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 16px 40px -16px rgba(0, 32, 80, 0.18);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease);
  pointer-events: none;
}
/* Tiles aren't links, so the hover is deliberately small: it acknowledges the pointer
   without promising a click. */
@media (hover: hover) and (pointer: fine) {
  .tile:hover { translate: 0 -2px; }
  .tile:hover::before { opacity: 1; }
}
.tile__vis {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--s3);
}
@media (max-width: 639px) {
  .tile { min-height: 0; }
  .tile .glyph { font-size: 64px; }
  .tile .bars { width: 160px; height: 64px; }
  .catalog .catalog__row span { white-space: normal; }
}
@media (min-width: 640px) { .tile__vis { height: 128px; } }
.tile__title { font-size: 21px; line-height: 28px; letter-spacing: -0.02em; font-weight: 600; }
.tile__text { color: var(--ink-2); font-size: 17px; line-height: 25px; }
@media (min-width: 768px) {
  .tile { padding: var(--s5); min-height: 320px; }
  .tile__title { font-size: 24px; line-height: 32px; }
}

.tile--wide { gap: var(--s4); }
.tile__copy { display: grid; gap: var(--s1); max-width: 26em; }
.tile--wide .tile__title { font-size: clamp(24px, 1.2vw + 18px, 32px); line-height: 1.2; }
@media (min-width: 900px) {
  .tile--wide { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s5); }
  .tile--wide .tile__copy { flex: 1 1 45%; }
  .tile--wide .catalog { flex: 1 1 55%; align-self: center; }
}

.catalog {
  display: grid;
  gap: 2px;
  padding: var(--s1);
  border-radius: var(--radius-md);
  background: var(--gray);
  font-size: 15px;
  line-height: 24px;
}
.catalog__head {
  padding: var(--s1) var(--s2) 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.catalog__row {
  display: grid;
  grid-template-columns: 1fr auto 8px;
  align-items: center;
  gap: var(--s2);
  padding: 12px var(--s2);
  border-radius: 12px;
  background: var(--white);
}
.catalog__row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stock { width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; }
.stock--yes { background: #1f9d43; }

.glyph {
  display: flex;
  gap: 0.18em;
  font-size: 88px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.handoff-vis {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--muted);
}
.handoff-vis img { width: 48px; height: 48px; border-radius: 50%; background: var(--gray); }
.handoff-vis__arrow { width: 40px; height: 12px; }
.handoff-vis__person {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--ink-2);
}
.handoff-vis__person svg { width: 24px; height: 24px; }

.bars { width: 200px; height: 80px; }
.bars rect { fill: var(--gray-2); }
@media (min-width: 768px) { .bars { width: 240px; height: 96px; } }
.bars .bars__hi { fill: var(--ink); }

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  width: fit-content;
  padding: var(--s1) var(--s2);
  border-radius: 999px;
  background: var(--gray);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
}

/* ---------- Dark / technology ---------- */
.band--dark .headline { color: var(--white); }
.band--dark .body-lg { color: var(--dark-muted); }
.points {
  display: grid;
  gap: var(--s5);
  padding-top: var(--s6);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.points h3 { font-size: 21px; line-height: 28px; letter-spacing: -0.02em; font-weight: 600; color: var(--white); margin-bottom: var(--s1); }
.points p { color: var(--dark-muted); max-width: 30em; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.fineprint {
  margin-top: var(--s10);
  font-size: 14px;
  line-height: 24px;
  color: #86868b;
}

/* ---------- Who ---------- */
.who { display: grid; gap: var(--s2); }
@media (min-width: 900px) { .who { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.who .card__title { font-size: 21px; line-height: 28px; }
@media (min-width: 768px) { .who .card { padding: var(--s5); } }
.who__note {
  margin-top: var(--s6);
  max-width: 40em;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s6); }
@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s10); align-items: start; }
}
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: var(--s3) var(--s6) var(--s3) 0;
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform var(--dur-ui) var(--ease);
}
/* .is-closing lets the chevron turn back at the start of the close animation */
.faq details[open]:not(.is-closing) summary::after { transform: translateY(6px) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p {
  padding-bottom: var(--s3);
  color: var(--ink-2);
  max-width: 36em;
}
@media (min-width: 768px) { .faq summary { font-size: 21px; } }

/* ---------- CTA ---------- */
.cta__inner {
  display: grid;
  justify-items: center;
  gap: var(--s3);
  text-align: center;
}
.cta__inner .headline { max-width: 16em; }
.cta__inner .body-lg { margin-inline: auto; }
.cta__inner .actions { margin-top: var(--s2); }
.cta__mail { font-size: 15px; line-height: 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  padding-top: var(--s6);
  padding-bottom: max(var(--s6), calc(env(safe-area-inset-bottom, 0px) + var(--s3)));
  background: var(--gray);
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}
.footer__inner {
  display: grid;
  gap: var(--s4);
}
.footer__brand { display: flex; align-items: center; gap: var(--s2); }
.footer__brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer__brand strong { display: block; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; }
.footer__links { display: grid; gap: var(--s1); }
.footer__links a { color: var(--blue); }
.footer__legal {
  display: grid;
  gap: 4px;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__links { grid-auto-flow: column; gap: var(--s4); }
  .footer__legal { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; }
}

/* ---------- Scroll reveal ----------
   Start states exist only under .js (set in <head>, removed by a failsafe if script.js
   never runs), so content is always visible without JavaScript.
   JS sets --delay = sibling index × --stagger. */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity var(--dur-reveal) var(--ease) var(--delay, 0ms),
    transform var(--dur-reveal) var(--ease) var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* Tiles also transition `translate` for the hover lift */
.js .tile.reveal {
  transition:
    opacity var(--dur-reveal) var(--ease) var(--delay, 0ms),
    transform var(--dur-reveal) var(--ease) var(--delay, 0ms),
    translate var(--dur-ui) var(--ease);
}

/* ---------- Hero load sequence ----------
   Headline lines, then subhead, then buttons, then the phone rises into place.
   JS sets --delay per element and adds .is-done when each one finishes. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(var(--reveal-y)); }
  to { opacity: 1; transform: none; }
}
/* The phone frame is the LCP element: it is visible from the first paint (no fade) and only
   rises into place, so the browser counts it as painted immediately. */
@keyframes phone-in {
  from { transform: translateY(var(--reveal-y)) scale(var(--hero-scale)); }
  to { transform: none; }
}
.js [data-hero]:not([data-hero="phone"]):not(.is-done) { opacity: 0; }
.js [data-hero="phone"]:not(.is-done) { transform: translateY(var(--reveal-y)) scale(var(--hero-scale)); }
.js .hero.is-playing [data-hero]:not(.is-done),
.js .hero.is-playing .hero-line {
  animation: rise-in var(--dur-reveal) var(--ease) var(--delay, 0ms) both;
}
.js .hero.is-playing [data-hero="phone"]:not(.is-done) {
  animation: phone-in var(--dur-reveal-long) var(--ease) var(--delay, 0ms) both;
}
.hero-line { display: block; }

/* ---------- Reduced motion ----------
   Keep quick fades; drop drift, scale, stagger, springs. JS also turns off
   parallax, the chat loop, nav auto-hide and the line split. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-ui: 150ms;
    --dur-reveal: 150ms;
    --dur-reveal-long: 150ms;
    --ease-spring: var(--ease);
    --stagger: 0ms;
    --reveal-y: 0px;
    --hero-scale: 1;
  }
  html { scroll-behavior: auto; }
  .step:nth-child(n) { --step-delay: 0ms; }
  .js .steps .step:not(:last-child)::after { transition: none; }
  .typing i { animation: none !important; }
}
