/* Inter, JetBrains Mono and Source Serif 4 (SIL Open Font License 1.1), latin subset, self-hosted from Google Fonts. */
/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/premium/3100e775e8616cd2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/premium/83c005d49d8a6a50.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Source Serif 4 */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/premium/382475f38242c52d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* LetKite — premium design system (Apple-inspired), round 2
   Desktop first. One type scale, one spacing scale, one palette with light + dark.
   Nothing on the page is set below 16px. */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  --font-sans: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-sm: 1rem;        /* 16px — the floor */
  --text-md: 1.0625rem;   /* 17px */
  --text-body: 1.125rem;  /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 1.875rem;   /* 30px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-4xl: 3rem;       /* 48px */
  --text-5xl: 4rem;       /* 64px */
  --text-6xl: 5rem;       /* 80px */

  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-body: 1.55;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #EBEBEF;
  --surface-3: #E2E2E8;
  --line: rgba(17, 24, 39, 0.10);
  --line-strong: rgba(17, 24, 39, 0.18);
  --text: #111827;
  --text-2: #4B5563;
  --text-3: #6B7280;

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #DBEAFE;
  --on-primary: #FFFFFF;
  --accent: #3B82F6;
  --secondary: #8B5CF6;
  --secondary-soft: #EDE9FE;
  --success: #16A34A;
  --success-soft: #DCFCE7;
  --warning: #D97706;
  --warning-soft: #FEF3C7;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.14), 0 6px 16px rgba(17, 24, 39, 0.06);

  --phone-bezel: #0B0F17;
  --phone-screen: #FFFFFF;
  --bubble-you: var(--primary);
  --bubble-you-text: #FFFFFF;
  --bubble-ai: #EEF0F4;
  --bubble-ai-text: #111827;

  --header-h: 68px;
  --container: 1280px;
  --container-narrow: 820px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121419;
  --surface-2: #1C1F27;
  --surface-3: #262A34;
  --line: rgba(245, 245, 247, 0.12);
  --line-strong: rgba(245, 245, 247, 0.22);
  --text: #F5F5F7;
  --text-2: #B4B8C2;
  --text-3: #8A8F9A;
  --primary: #2F6FEA;
  --primary-hover: #4A84F2;
  --primary-soft: #16243F;
  --accent: #5B9CFF;
  --secondary: #A78BFA;
  --secondary-soft: #241C3F;
  --success: #34D27B;
  --success-soft: #0F2A1B;
  --warning: #F5A524;
  --warning-soft: #2F2410;
  --danger: #F26C6C;
  --danger-soft: #3A1717;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --phone-bezel: #2A2E38;
  --phone-screen: #0B0D12;
  --bubble-you: #2F6FEA;
  --bubble-ai: #1F232C;
  --bubble-ai-text: #F5F5F7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #121419;
    --surface-2: #1C1F27;
    --surface-3: #262A34;
    --line: rgba(245, 245, 247, 0.12);
    --line-strong: rgba(245, 245, 247, 0.22);
    --text: #F5F5F7;
    --text-2: #B4B8C2;
    --text-3: #8A8F9A;
    --primary: #2F6FEA;
    --primary-hover: #4A84F2;
    --primary-soft: #16243F;
    --accent: #5B9CFF;
    --secondary: #A78BFA;
    --secondary-soft: #241C3F;
    --success: #34D27B;
    --success-soft: #0F2A1B;
    --warning: #F5A524;
    --warning-soft: #2F2410;
    --danger: #F26C6C;
    --danger-soft: #3A1717;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --phone-bezel: #2A2E38;
    --phone-screen: #0B0D12;
    --bubble-you: #2F6FEA;
    --bubble-ai: #1F232C;
    --bubble-ai-text: #F5F5F7;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 899px) { body { font-size: var(--text-md); } }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.75rem + 3.5vw, var(--text-5xl)); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, var(--text-4xl)); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, var(--text-2xl)); line-height: var(--leading-snug); }
h4 { font-size: var(--text-xl); line-height: var(--leading-snug); }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s-4); }
a { color: var(--primary); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; }
code, .mono { font-family: var(--font-mono); font-size: 0.94em; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; padding: var(--s-3) var(--s-4);
  background: var(--primary); color: var(--on-primary); border-radius: var(--r-md); z-index: 100; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }
.container--narrow { max-width: var(--container-narrow); }
@media (max-width: 899px) { .container { padding-inline: var(--s-5); } }

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
@media (max-width: 899px) {
  .section { padding-block: var(--s-8); }
  .section--tight { padding-block: var(--s-7); }
}

.section-head { max-width: 820px; margin-bottom: var(--s-8); }
.section-head--center { margin-inline: auto; text-align: center; }
@media (max-width: 899px) { .section-head { margin-bottom: var(--s-7); } }

.eyebrow {
  display: inline-block; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary); margin-bottom: var(--s-4);
}
.lead {
  font-size: clamp(var(--text-lg), 1.1rem + 0.5vw, var(--text-xl));
  line-height: 1.45; color: var(--text-2); margin-top: var(--s-5);
}
.muted { color: var(--text-2); }
.center { text-align: center; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5);
  font: inherit; font-size: var(--text-md); font-weight: 600; line-height: 1;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--text-3); }
.btn--lg { min-height: 60px; padding-inline: var(--s-6); font-size: var(--text-body); }
.btn--sm { min-height: 44px; padding-inline: var(--s-4); font-size: var(--text-sm); }
.btn--invert { background: #FFFFFF; color: #111827; }
.btn--invert:hover { background: #F5F5F7; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row--center { justify-content: center; }
@media (max-width: 599px) { .btn-row > .btn { flex: 1 1 100%; } }

.text-link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.text-link svg { width: 20px; height: 20px; transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a { color: var(--text-2); font-weight: 500; font-size: var(--text-sm); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
  transition: background-color .15s ease, border-color .15s ease;
}
.icon-btn:hover { border-color: var(--text-3); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
.menu-btn { display: none; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s-1);
    padding: var(--s-4) var(--s-5) var(--s-5);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: var(--text-lg); padding: var(--s-3); }
  .nav .nav-cta { margin-top: var(--s-3); }
  .header-actions .nav-cta { display: none; }
}
@media (min-width: 1100px) { .nav .nav-cta { display: none; } }

/* ------------------------------------------------------------------ */
/* Hero (home)                                                         */
/* ------------------------------------------------------------------ */
.hero { padding-top: var(--s-9); padding-bottom: var(--s-8); text-align: center; }
.hero h1 {
  font-size: clamp(2.75rem, 1.3rem + 5.2vw, var(--text-6xl));
  letter-spacing: -0.035em; line-height: 1.02;
  margin-inline: auto;
}
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .w + .w { margin-left: 0.28em; }
.hero h1 .w--ai { color: var(--primary); }
@media (max-width: 599px) {
  .hero { padding-top: var(--s-8); padding-bottom: var(--s-7); }
  .hero h1 .w { display: block; }
  .hero h1 .w + .w { margin-left: 0; }
}
.hero .lead { max-width: 56ch; margin-inline: auto; margin-top: var(--s-5); font-size: clamp(var(--text-lg), 1rem + 0.8vw, 1.625rem); }
.hero .btn-row { margin-top: var(--s-6); }

.hero-art {
  margin: var(--s-8) auto 0; max-width: 1180px;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 599px) {
  .hero-art { margin-top: var(--s-7); margin-inline: calc(-1 * var(--s-5)); border-radius: 0; border-inline: 0; }
}

/* Page hero (inner pages) */
.page-hero { padding-top: var(--s-9); padding-bottom: var(--s-7); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 52ch; }
@media (max-width: 899px) { .page-hero { padding-top: var(--s-8); padding-bottom: var(--s-6); } }

/* Split hero (product) */
.split-hero { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .split-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-8); } }
.split-hero h1 { font-size: clamp(2.75rem, 1.6rem + 3.6vw, 4.25rem); }
.split-hero .lead { max-width: 46ch; }
.split-hero .btn-row { margin-top: var(--s-6); }
.split-art { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 599px) { .split-art { margin-inline: calc(-1 * var(--s-5)); border-radius: 0; border-inline: 0; } }

/* Connect LetKite: one row on the home hero — the words, then one bar holding
   the system picker, the install line and Copy. */
.connect { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); text-align: left; }
.connect-label { margin: 0; font-size: var(--text-body); font-weight: 700; color: var(--text); white-space: nowrap; }
.connect-bar {
  display: flex; align-items: center; min-width: 0; max-width: 100%; min-height: 56px; padding: 6px;
  background: var(--text); color: var(--bg); border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
}
.connect-os { position: relative; display: inline-flex; flex: none; align-self: stretch; }
.connect-os select {
  appearance: none; -webkit-appearance: none; height: 100%; padding: 0 2.1rem 0 var(--s-4);
  font: inherit; font-size: var(--text-sm); font-weight: 700; color: inherit;
  background: color-mix(in srgb, var(--bg) 14%, transparent); border: 0; border-radius: var(--r-pill); cursor: pointer;
}
.connect-os select:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); }
.connect-os select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.connect-os select option { color: var(--text); background: var(--surface); }
.connect-os::after { content: ""; position: absolute; right: 0.95rem; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; pointer-events: none; }
.connect-bar code { flex: 0 1 auto; min-width: 0; padding: 0 var(--s-4); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.connect-bar code::-webkit-scrollbar { display: none; }
.connect-copy {
  flex: none; align-self: stretch; min-height: 44px; padding: 0 var(--s-4); font: inherit; font-size: var(--text-sm); font-weight: 700;
  color: var(--text); background: var(--bg); border: 0; border-radius: var(--r-pill); cursor: pointer;
}
.connect-copy:hover { background: var(--surface); }
.connect-copy:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.connect-copy.is-copied { background: var(--primary); color: var(--on-primary); }
@media (max-width: 599px) {
  .connect { flex-direction: column; align-items: stretch; }
  .connect-label { text-align: center; }
  .connect-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px; border-radius: var(--r-lg); }
  .connect-os select { width: 100%; min-height: 44px; }
  .connect-bar code { grid-column: 1 / -1; grid-row: 2; padding: var(--s-2) var(--s-3) var(--s-3); font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }

.principles { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { display: flex; flex-direction: column; overflow: hidden; }
.principle-art { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.principle-art svg { width: 100%; height: 100%; }
.principle-body { padding: var(--s-6); }
.principle-body h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, var(--text-3xl)); }
.principle-body p { margin-top: var(--s-3); font-size: var(--text-lg); color: var(--text-2); line-height: 1.4; }

/* Feature cards (product) */
.features { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features--5 { grid-template-columns: repeat(5, 1fr); } .features--3 { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.feature .f-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: var(--s-5);
}
.feature .f-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--text-xl); }
.feature p { margin-top: var(--s-2); color: var(--text-2); font-size: var(--text-md); }
.feature--big { padding: var(--s-7) var(--s-6); }
.feature--big h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, var(--text-2xl)); }
.feature--big p { font-size: var(--text-body); margin-top: var(--s-3); }

/* Product "between" diagram */
.between { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 1000px) { .between { grid-template-columns: 1fr 64px 1.1fr 64px 1fr; gap: 0; } }
.between-col { display: grid; gap: var(--s-3); }
.between-col-title { font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-bottom: var(--s-1); }
.tile {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: var(--text-md);
}
.tile small { font-weight: 500; color: var(--text-3); font-size: var(--text-sm); margin-left: auto; white-space: nowrap; }
.tile .t-ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text); flex: none; }
.tile .t-ico svg { width: 18px; height: 18px; }
.mcp-block {
  padding: var(--s-6); border-radius: var(--r-xl);
  background: var(--text); color: var(--bg); text-align: center;
}
.mcp-block b { display: block; font-size: var(--text-2xl); letter-spacing: -0.02em; line-height: 1.1; }
.mcp-block .gw-icon { width: 56px; height: 56px; margin: 0 auto var(--s-4); }
.mcp-block ul { list-style: none; margin-top: var(--s-4); display: grid; gap: 6px; color: color-mix(in srgb, var(--bg) 78%, transparent); font-size: var(--text-md); }
.between-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.between-arrow svg { width: 44px; height: 44px; }
@media (max-width: 999px) {
  .between-arrow svg { transform: rotate(90deg); width: 32px; height: 32px; }
  .between { gap: var(--s-3); }
  /* Phones: each side is one card of chips instead of a tile per line */
  .between-col { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--s-4); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
  .between-col-title { flex-basis: 100%; margin-bottom: 2px; }
  .between-col .tile { padding: 6px 12px 6px 6px; gap: 8px; border-radius: var(--r-pill); background: var(--surface-2); border: 0; font-size: var(--text-sm); }
  .between-col .tile .t-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); }
  .between-col .tile small { margin-left: 2px; }
  .between-col .tile small::before { content: "· "; }
}

/* Editions */
.editions { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .editions { grid-template-columns: 1fr 1fr; } }
.edition { padding: var(--s-7); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); display: flex; flex-direction: column; }
.edition--hosted { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 0 0 4px var(--primary-soft); }
.edition .ed-name { font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.edition .ed-price { margin-top: var(--s-3); font-size: clamp(2.25rem, 1.6rem + 2vw, var(--text-4xl)); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.edition .ed-price small { font-size: var(--text-lg); font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.edition .ed-sub { margin-top: var(--s-3); color: var(--text-2); font-size: var(--text-lg); }
.edition .points { margin-top: var(--s-6); margin-bottom: var(--s-6); }
.edition .btn-row { margin-top: auto; }

/* ------------------------------------------------------------------ */
/* Phone                                                               */
/* ------------------------------------------------------------------ */
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-4); width: 100%; }
.phone-device {
  width: 100%; max-width: 340px;
  background: var(--phone-bezel); border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-screen {
  background: var(--phone-screen); border-radius: 34px; overflow: hidden;
  min-height: 520px; display: flex; flex-direction: column; color: var(--text);
}
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 0; font-size: var(--text-sm); font-weight: 600; }
.phone-status .status-icons { display: flex; align-items: center; gap: 6px; }
.phone-status svg { height: 14px; width: auto; }
.phone-app { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.phone-app img { width: 36px; height: 36px; border-radius: var(--r-md); }
.phone-app .app-name { font-weight: 600; font-size: var(--text-md); line-height: 1.2; }
.phone-app .app-sub { font-size: var(--text-sm); color: var(--success); line-height: 1.2; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.phone-app .app-sub::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.phone-app .app-sub--wait { color: var(--warning); }
.phone-app .app-sub--busy { color: var(--primary); }

.chat { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-3); flex: 1; }
.msg { max-width: 90%; padding: 12px 14px; border-radius: 22px; font-size: var(--text-md); line-height: 1.4; text-wrap: pretty; margin: 0; }
.msg--you { align-self: flex-end; background: var(--bubble-you); color: var(--bubble-you-text); border-bottom-right-radius: 6px; }
.msg--ai { align-self: flex-start; background: var(--bubble-ai); color: var(--bubble-ai-text); border-bottom-left-radius: 6px; }
.msg-sender { display: block; font-size: var(--text-sm); color: var(--text-3); margin: 0 6px -6px; }
.msg-sender--you { align-self: flex-end; }
.msg-actions { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.pill {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-pill);
  font: inherit; font-size: var(--text-sm); font-weight: 600; line-height: 1; border: 1.5px solid transparent; cursor: default;
}
.pill--approve { background: var(--success); color: #FFFFFF; }
.pill--deny { background: transparent; color: var(--text); border-color: var(--line-strong); }
.pill svg { width: 18px; height: 18px; }
.msg--done { max-width: 100%; background: var(--success-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.msg--done .done-badge { display: flex; align-items: center; gap: var(--s-2); color: var(--success); font-weight: 600; margin-bottom: 6px; font-size: var(--text-sm); }
.msg--done .done-badge svg { width: 20px; height: 20px; }
.msg--done .url { display: block; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.msg--approved { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--success); }
.msg--approved svg { width: 18px; height: 18px; }
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 18px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); opacity: .7; animation: typing 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.phone-home { margin: auto auto 10px; width: 120px; height: 5px; border-radius: 3px; background: var(--line-strong); flex: none; }
.phone figcaption { font-size: var(--text-md); color: var(--text-2); text-align: center; text-wrap: balance; max-width: 30ch; }

/* ------------------------------------------------------------------ */
/* Scenes (phone + network, synchronised)                             */
/* ------------------------------------------------------------------ */
.scene { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) {
  .scene { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-7); }
}
.scene-phone { display: flex; justify-content: center; }
.scene .phone-device { max-width: 320px; }
/* small laptops: tighter columns so the zones keep two full host cards per row */
@media (min-width: 1024px) and (max-width: 1239px) {
  .scene { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); }
  .scene .phone-device { max-width: 260px; }
  .scene .msg { padding-inline: 11px; }
  .net { grid-template-columns: 196px minmax(0, 1fr); column-gap: 32px; padding: var(--s-5); }
  .wg-label .wg-sub { display: none; }
}
.scene-left { display: grid; gap: var(--s-5); align-content: start; }
.scene-legend { display: grid; gap: var(--s-3); }
@media (min-width: 600px) and (max-width: 1023px) { .scene-legend { grid-template-columns: 1fr 1fr; } }
.legend-item { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.legend-item b { display: flex; align-items: center; gap: var(--s-3); font-size: var(--text-md); }
.legend-item b::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); flex: none; }
.legend-item--people b::before { background: var(--secondary); }
.legend-item span { display: block; color: var(--text-2); font-size: var(--text-sm); margin-top: 4px; line-height: 1.45; }
.scene .phone-screen { min-height: 0; height: 640px; }
.scene .chat { overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.scene .chat::-webkit-scrollbar { display: none; }
/* Phones and tablets: the whole conversation is shown, inside a phone of fixed height. A swipe on the
   chat scrolls its history; a swipe anywhere else scrolls the page. */
@media (max-width: 1023px) {
  .scene .phone-screen, .story .phone-screen { height: min(620px, calc(100svh - 140px)); min-height: 460px; }
  .scene .chat { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; touch-action: pan-y; }
  .scene .chat::-webkit-scrollbar { display: block; width: 3px; }
  .scene .chat::-webkit-scrollbar-thumb { background: rgba(127,127,127,.45); border-radius: 3px; }
}

/* Reveal rules: chat messages append, network elements fade in place */
.js .scene .chat [data-at]:not(.is-on) { display: none; }
.js .scene .typing:not(.is-on) { display: none; }
.scene .typing { display: none; }
.js .scene .typing.is-on { display: inline-flex; }
.js .scene [data-group]:not(.is-on) { display: none; }
.js .net [data-at]:not(.is-on) { opacity: 0; transform: translateY(8px); }
.net [data-at] { transition: opacity .5s ease, transform .5s ease, border-color .3s ease, box-shadow .3s ease, background-color .3s ease; }
@media (prefers-reduced-motion: reduce) { .js .net [data-at]:not(.is-on) { transform: none; } }

.msg.is-on { animation: msg-in .35s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Network */
.net {
  position: relative;
  display: grid; gap: var(--s-5);
  padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
}
@media (min-width: 1024px) {
  .net { grid-template-columns: 232px minmax(0, 1fr); column-gap: 56px; row-gap: var(--s-5); padding: var(--s-6) var(--s-6) var(--s-6); align-items: stretch; }
}
.net > * { position: relative; z-index: 2; }
.net i.lk { display: none; }
.net-lines { position: absolute !important; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3 !important; }
@media (max-width: 1023px) { .net-lines { display: none; } }
.net-empty {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--s-6); color: var(--text-3); font-size: var(--text-lg); text-wrap: balance;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.5px); background-size: 22px 22px;
  border-radius: var(--r-xl);
}
.net-empty span { max-width: 28ch; background: var(--surface); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); }
.net-side { display: flex; flex-direction: column; gap: var(--s-6); }
.net-side .nn--you { margin-bottom: auto; }
.net-side .nn--gw { margin-bottom: auto; }
.js .net .net-audit:not(.is-on) { display: none; }
@media (max-width: 1023px) { .net-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } .net-side .nn--gw { grid-column: 1 / -1; } .net-side .nn--you, .net-side .nn--gw { margin: 0; } .net-side .nn--ai { order: -1; } }
.scene > *, .net, .net > *, .nn > div, .wg, .zone, .hc { min-width: 0; }
.net-lines .lk { fill: none; stroke-width: 3; stroke-linecap: round; stroke: var(--accent); }
.net-lines .lk--draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease, stroke .3s ease; }
.net-lines .lk--draw.is-on { stroke-dashoffset: 0; }
.net-lines .lk--fade { opacity: 0; transition: opacity .6s ease .2s, stroke .3s ease; }
.net-lines .lk--fade.is-on { opacity: 1; }
.net-lines .lk--people { stroke: var(--secondary); stroke-width: 2.5; }
.net-lines .lk--agent { stroke: var(--accent); stroke-width: 2; opacity: .55; }
.net-lines .lk--agent.is-on { opacity: .7; }
.net-lines .lk--hot { stroke: var(--danger); stroke-width: 3.5; }
.net-lines .lk--hot.is-ok { stroke: var(--success); }
.net-lines .ah { opacity: 0; transition: opacity .3s ease .8s, fill .3s ease; fill: var(--accent); }
.net-lines .ah.is-on { opacity: 1; }
.net-lines .ah--people { fill: var(--secondary); }
.net-lines .ah--agent { fill: var(--accent); opacity: 0; }
.net-lines .ah--agent.is-on { opacity: .7; }
.net-lines .ah--hot { fill: var(--danger); }
.net-lines .ah--hot.is-ok { fill: var(--success); }
.net-lines .lk--busy { stroke-dasharray: 6 8 !important; stroke-dashoffset: 0 !important; animation: dash-flow 1.2s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -28; } }
.net-lines .lk-label { font: 600 16px/1 var(--font-sans); fill: var(--text-2); opacity: 0; transition: opacity .4s ease .6s; }
.net-lines .lk-label.is-on { opacity: 1; }
.net-lines .lk-label--people { fill: var(--secondary); }

.nn {
  padding: var(--s-4); border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; gap: var(--s-3); align-items: center;
}
.nn .nn-icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.nn .nn-icon svg { width: 24px; height: 24px; }
.nn b { display: block; font-size: var(--text-md); line-height: 1.2; }
.nn small { display: block; color: var(--text-2); font-size: var(--text-sm); line-height: 1.3; margin-top: 2px; }
.nn--ai .nn-icon { color: var(--primary); }
.nn--you .nn-icon { color: var(--secondary); }

.nn--gw {
  display: block; padding: var(--s-5);
  background: var(--text); color: var(--bg); border-color: transparent;
}
.nn--gw b { color: var(--bg); font-size: var(--text-lg); }
.nn--gw .gw-icon { width: 40px; height: 40px; margin-bottom: var(--s-3); }
.nn--gw ul { list-style: none; margin-top: var(--s-3); display: grid; gap: 4px; font-size: var(--text-sm); color: color-mix(in srgb, var(--bg) 80%, transparent); line-height: 1.35; }
.nn--gw ul li::before { content: "— "; opacity: .6; }
.nn--gw.is-wait { box-shadow: 0 0 0 4px var(--warning-soft), 0 0 0 6px var(--warning); }

/* zones column, wrapped by the WireGuard network */
.wg { padding: var(--s-4); display: grid; gap: var(--s-3); position: relative; }
.wg-frame {
  position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none; z-index: 0;
  border: 1.5px dashed var(--secondary); background: color-mix(in srgb, var(--secondary) 5%, transparent);
}
.wg > :not(.wg-frame) { position: relative; z-index: 1; }
.wg-label {
  position: absolute; top: -14px; left: var(--s-4);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--secondary); color: #fff; font-size: var(--text-sm); font-weight: 600; line-height: 1.2;
}
.wg-label svg { width: 16px; height: 16px; }
.zone { padding: var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--s-3); }
.zone-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--text-md); min-height: 28px; }
.zone-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.zone--admin .dot { background: var(--secondary); }
.zone--data .dot { background: var(--warning); }
.zone-title .zbadge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--success-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
}
.zone-title .zbadge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.zone-title .zbadge--people { background: var(--secondary-soft); border-color: color-mix(in srgb, var(--secondary) 40%, transparent); font-family: var(--font-sans); }
.zone-title .zbadge--people::before { background: var(--secondary); }
.zone-hosts { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) and (max-width: 1023px), (min-width: 1240px) { .zone--data .zone-hosts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hc {
  position: relative; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line);
  line-height: 1.3;
}
.hc .hc-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 600; font-size: var(--text-md); }
.hc .hc-name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; transition: background-color .3s ease, box-shadow .3s ease; }
.hc .hc-user { display: inline; font-family: var(--font-mono); color: var(--text-2); font-size: var(--text-sm); }
.hc .hc-user::before { content: ""; display: block; height: 3px; }
.hc .hc-limit { display: block; color: var(--text-3); font-size: var(--text-sm); margin-top: 2px; }
.hc .hc-state { display: block; font-size: var(--text-sm); font-weight: 600; margin-top: 4px; color: var(--text-2); }
.hc.is-live .hc-name::before { background: var(--success); }
.hc.is-live { border-color: color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success-soft) 70%, var(--surface-2)); }
.hc.is-ok .hc-name::before { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.hc.is-ok { border-color: var(--success); }
.hc.is-wait .hc-name::before { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); animation: pulse 1.2s infinite; }
.hc.is-wait { border-color: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); background: color-mix(in srgb, var(--warning-soft) 60%, var(--surface-2)); }
.hc.is-busy .hc-name::before { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); animation: pulse 1s infinite; }
.hc.is-busy { border-color: var(--primary); }
.hc.is-down .hc-name::before { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); animation: pulse 1s infinite; }
.hc.is-down { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); background: color-mix(in srgb, var(--danger-soft) 70%, var(--surface-2)); }
.hc.is-down .hc-name { color: var(--danger); }
.hc.is-wait .hc-state { color: var(--warning); }
.hc.is-down .hc-state { color: var(--danger); }
.hc.is-live .hc-state, .hc.is-ok .hc-state { color: var(--success); }
.hc.is-busy .hc-state { color: var(--primary); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.msg.is-on.no-anim { animation: none; }

.rule {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: var(--text-sm); font-weight: 600; color: var(--text-2); line-height: 1.3;
}
.rule svg { width: 16px; height: 16px; color: var(--secondary); flex: none; }
.rule .mono { color: var(--text); }

/* mini audit in the net */
.net-audit { grid-column: 1 / -1; }
.audit-mini {
  list-style: none; padding: var(--s-2) 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.45;
}
.audit-mini li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--s-4); padding: 6px var(--s-4); }
.audit-mini li span { overflow-wrap: anywhere; min-width: 0; }
.audit-mini .a-time { color: var(--text-3); }
.audit-mini .a-res { color: var(--success); font-weight: 600; }
.audit-mini .a-res--warn { color: var(--warning); }
.audit-mini .a-res--you { color: var(--secondary); }
/* Time and result share the first line, the message gets the full width below: the column for the
   message never gets squeezed to one character wide, whatever the language. */
.audit-mini li { grid-template-columns: auto 1fr; gap: 2px var(--s-3); }
.audit-mini li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.audit-mini .a-res { justify-self: end; text-align: right; }

/* Controls */
.sc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
  transition: border-color .15s ease, background-color .15s ease;
}
.sc-btn:hover { border-color: var(--text-3); }
.sc-btn svg { width: 22px; height: 22px; }
.sc-play .i-pause { display: none; }
.sc-play[data-state="playing"] .i-play { display: none; }
.sc-play[data-state="playing"] .i-pause { display: block; }
.sc-dots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-dot {
  width: 14px; height: 14px; border-radius: 50%; padding: 0; border: 0;
  background: var(--line-strong); cursor: pointer; position: relative;
  transition: background-color .2s ease, transform .2s ease;
}
.sc-dot::after { content: ""; position: absolute; inset: -8px; }
.sc-dot:hover { background: var(--text-3); }
.sc-dot.is-done { background: var(--primary); opacity: .45; }
.sc-dot[aria-current="step"] { background: var(--primary); opacity: 1; transform: scale(1.35); }
.sc-caption { flex: 1 1 260px; font-size: var(--text-md); color: var(--text-2); min-height: 1.5em; }
.sc-caption b { color: var(--text); }
@media (max-width: 1023px) { .sc-controls { display: none; } }

/* Step list (home story) */
.sc-steps { list-style: none; display: grid; gap: var(--s-2); counter-reset: sc; }
.sc-steps li {
  counter-increment: sc;
  display: grid; grid-template-columns: 36px 1fr; gap: var(--s-4); align-items: start;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-lg);
  font-size: var(--text-lg); color: var(--text-2); line-height: 1.35;
  transition: background-color .3s ease, color .3s ease;
}
.sc-steps li::before {
  content: counter(sc);
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: var(--text-sm);
  transition: background-color .3s ease, color .3s ease;
}
.sc-steps li.is-current { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.sc-steps li.is-current::before { background: var(--primary); color: #fff; }
.sc-steps li.is-done::before { background: var(--primary-soft); color: var(--primary); }
.sc-steps--hidden { display: none; }

/* Home story layout */
.story { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .story { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-9); } }
.story-text { max-width: 640px; }
.story-text h2 { max-width: 14ch; }
.story-text .lead { max-width: 46ch; }
.story-text .sc-steps { margin-top: var(--s-6); }
.story-text .sc-controls { margin-top: var(--s-5); }
.story .phone-device { max-width: 360px; }
@media (min-width: 1024px) { .story .phone-screen { height: 640px; } }

/* ------------------------------------------------------------------ */
/* Steps                                                               */
/* ------------------------------------------------------------------ */
.steps { display: grid; gap: var(--s-5); counter-reset: step; list-style: none; }
@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--s-5);
}
.step h3 { font-size: var(--text-xl); }
.step p { margin-top: var(--s-2); color: var(--text-2); }

/* Big numbered steps (how it works) */
.bigsteps { display: grid; gap: var(--s-5); counter-reset: big; list-style: none; }
.bigstep { counter-increment: big; display: grid; gap: var(--s-5); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
@media (min-width: 900px) { .bigstep { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 0.9fr); padding: var(--s-7); gap: var(--s-7); align-items: start; } }
.bigstep-num { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--primary); }
.bigstep-num::before { content: "0" counter(big); }
.bigstep h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, var(--text-3xl)); }
.bigstep > div > p { margin-top: var(--s-3); font-size: var(--text-lg); color: var(--text-2); }
.bigstep-aside { display: grid; gap: var(--s-3); align-self: center; min-width: 0; }
.bigstep-aside table { min-width: 440px; }
.points { margin-top: var(--s-5); display: grid; gap: var(--s-3); list-style: none; }
.points li { display: flex; gap: var(--s-3); align-items: flex-start; }
.points li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
[data-theme="dark"] .points li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B9CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .points li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B9CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }
}

/* Connector recipe tiles (how it works) */
.recipe { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.recipe b { display: block; font-size: var(--text-md); }
.recipe span { display: block; color: var(--text-2); font-size: var(--text-sm); margin-top: 2px; line-height: 1.4; }
.recipe span i { font-style: normal; color: var(--text-3); margin: 0 4px; }
.cmd { font-family: var(--font-mono); font-size: var(--text-sm); padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--text); color: var(--bg); overflow-wrap: anywhere; line-height: 1.5; }
.cmd i { font-style: normal; opacity: .5; margin-right: 8px; }

/* Release steps */
.release { display: grid; gap: var(--s-4); counter-reset: rel; list-style: none; }
@media (min-width: 700px) { .release { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .release { grid-template-columns: repeat(3, 1fr); } }
.release li { counter-increment: rel; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.release li::before { content: counter(rel); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--text); color: var(--bg); font-weight: 700; font-size: var(--text-sm); }
.release li b { display: block; font-size: var(--text-lg); }
.release li span { color: var(--text-2); }
.release li.needs-ok::before { background: var(--warning); color: #111827; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); background: var(--warning-soft); color: var(--text); margin-top: var(--s-2); }
.tag--ok { background: var(--success-soft); }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
th, td { text-align: left; padding: var(--s-4) var(--s-5); vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--text-2); font-size: var(--text-sm); letter-spacing: 0.02em; text-transform: uppercase; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td .host { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
td .user { font-family: var(--font-mono); color: var(--text-2); white-space: nowrap; }
td.ok::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--warning); margin-right: 10px; vertical-align: 1px; }
@media (max-width: 699px) {
  .table-wrap--perm { border: 0; background: transparent; overflow: visible; }
  .table-wrap--perm table { min-width: 0; display: block; }
  .table-wrap--perm thead { display: none; }
  .table-wrap--perm tbody { display: grid; gap: var(--s-4); }
  .table-wrap--perm tr { display: block; padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .table-wrap--perm td { display: block; padding: var(--s-2) 0; border: 0; }
  .table-wrap--perm td[data-label]::before { content: attr(data-label); display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
  .table-wrap--perm td.ok::before { display: block; width: auto; height: auto; border-radius: 0; background: none; margin-right: 0; }
  .table-wrap--perm td:first-child { padding-top: 0; font-size: var(--text-lg); }
}

/* ------------------------------------------------------------------ */
/* Tabs, sub-sections, detail blocks                                  */
/* ------------------------------------------------------------------ */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill); max-width: 100%; }
.tab {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 0;
  font: inherit; font-size: var(--text-md); font-weight: 600; color: var(--text-2); background: transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
@media (max-width: 599px) { .tabs { display: flex; } .tab { padding-inline: var(--s-3); } }

.js .panel[hidden] { display: none; }
.panel:focus { outline: none; }
.panel-title { margin-bottom: var(--s-7); }
.panel-title h2 { font-size: clamp(2rem, 1.5rem + 2vw, var(--text-4xl)); max-width: 24ch; }
.panel-title p { margin-top: var(--s-4); }

.sub-section { padding-block: var(--s-8); border-top: 1px solid var(--line); }
@media (max-width: 899px) { .sub-section { padding-block: var(--s-7); } }
.sub-section > h3, .sub-head h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, var(--text-3xl)); }
.sub-head { max-width: 760px; margin-bottom: var(--s-6); }
.sub-head p { margin-top: var(--s-3); color: var(--text-2); font-size: var(--text-lg); }
.detail-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-8); } }

.cards-3 { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.datacard { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.datacard b { display: block; font-family: var(--font-mono); font-size: var(--text-lg); }
.datacard span { color: var(--text-2); display: block; margin-top: var(--s-2); }

.timeline { display: grid; gap: 0; list-style: none; position: relative; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); padding-bottom: var(--s-5); position: relative; }
.timeline .t-time { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-md); min-width: 72px; padding-top: 2px; color: var(--primary); }
.timeline .t-dot { position: absolute; left: 86px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 92px; top: 26px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline .t-text { padding-left: 36px; }
.timeline .t-text b { display: block; font-size: var(--text-lg); }
.timeline .t-text span { color: var(--text-2); }

.audit { list-style: none; margin: 0; padding: var(--s-2) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.5; }
.audit li { display: grid; gap: var(--s-1) var(--s-4); grid-template-columns: auto 1fr; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.audit li:last-child { border-bottom: 0; }
.audit .a-time { color: var(--text-3); }
.audit .a-who { color: var(--text-2); }
.audit .a-who i { font-style: normal; color: var(--text-3); }
.audit .a-act { color: var(--primary); font-weight: 600; }
.audit .a-act--ok { color: var(--success); }
.audit .a-what { grid-column: 1 / -1; color: var(--text); overflow-wrap: anywhere; }
.audit .a-res { grid-column: 1 / -1; color: var(--success); font-weight: 600; }
.audit .a-res--warn { color: var(--warning); }
@media (min-width: 900px) {
  .audit li { grid-template-columns: 84px 230px 90px 1fr auto; align-items: baseline; }
  .audit .a-what, .audit .a-res { grid-column: auto; }
  .audit .a-res { text-align: right; }
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--s-9); } }
.faq-grid .lead { margin-top: var(--s-4); }
.faq { display: grid; gap: var(--s-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 24px; height: 24px; color: var(--text-3); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--s-5) var(--s-5); color: var(--text-2); font-size: var(--text-lg); }

/* ------------------------------------------------------------------ */
/* Pricing line + banner                                               */
/* ------------------------------------------------------------------ */
.pricing-line { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-7); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 1000px) { .pricing-line { grid-template-columns: minmax(0, 1fr) auto; padding: var(--s-8); } }
.pricing-line h2 { max-width: 16ch; }
.pricing-line .lead { max-width: 44ch; margin-top: var(--s-4); }

.banner {
  position: relative; overflow: hidden; text-align: center;
  padding: var(--s-9) var(--s-7); border-radius: var(--r-xl); color: #FFFFFF; background: #0B1220;
  background-image:
    radial-gradient(900px 400px at 15% 110%, rgba(59,130,246,0.55), transparent 60%),
    radial-gradient(700px 400px at 90% -10%, rgba(45,212,191,0.45), transparent 60%),
    linear-gradient(180deg, #0F172A, #0B1220);
}
@media (max-width: 899px) { .banner { padding: var(--s-8) var(--s-5); } }
.banner h2 { color: #FFFFFF; }
.banner p { color: rgba(255,255,255,0.78); margin-top: var(--s-4); font-size: var(--text-lg); }
.banner .btn-row { margin-top: var(--s-6); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-7); margin-top: var(--s-7); }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--text-2); margin-top: var(--s-4); max-width: 34ch; }
.footer-col h4 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: var(--s-4); font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: var(--s-3); }
.footer-col a { color: var(--text); font-size: var(--text-md); }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--text-sm); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; }

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---- Phone chat drawn as the real Claude app (layout from the owner's saved Claude page) ---- */
:root{--cl-bg:#FAF9F5;--cl-text:#141413;--cl-text-2:#6B6A63;--cl-user:#F0EEE6;--cl-line:rgba(20,20,19,.10);--cl-composer:#FFFFFF;--cl-clay:#D97757;--cl-notif:rgba(244,244,246,.94);--cl-notif-text:#111;--cl-notif-sub:#6B6B70;--cl-ios-blue:#0A84FF}
[data-theme="dark"]{--cl-bg:#191919;--cl-text:rgba(255,255,255,.93);--cl-text-2:#9A9A96;--cl-user:#303030;--cl-line:rgba(255,255,255,.08);--cl-composer:#303030;--cl-notif:rgba(48,48,52,.94);--cl-notif-text:#fff;--cl-notif-sub:#A1A1A6}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--cl-bg:#191919;--cl-text:rgba(255,255,255,.93);--cl-text-2:#9A9A96;--cl-user:#303030;--cl-line:rgba(255,255,255,.08);--cl-composer:#303030;--cl-notif:rgba(48,48,52,.94);--cl-notif-text:#fff;--cl-notif-sub:#A1A1A6}}
.scene-phone .phone-screen{background:var(--cl-bg);color:var(--cl-text);position:relative;display:flex;flex-direction:column}
.scene-phone .phone-status{color:var(--cl-text);padding:14px 26px 4px}
.scene-phone .phone-status .status-icons{gap:5px}
.scene-phone .phone-status .status-icons svg{height:12px}
.claude-top{display:flex;align-items:center;justify-content:space-between;padding:6px 16px 10px;color:var(--cl-text)}
.claude-top svg.ct-menu,.claude-top svg.ct-new{width:22px;height:22px;opacity:.85}
.ct-title{display:inline-flex;align-items:center;gap:7px;font-family:"Source Serif 4","Iowan Old Style",Georgia,serif;font-size:19px;font-weight:500}
.ct-spark{width:20px;height:20px;color:var(--cl-clay)}
.scene-phone .chat{padding:8px 16px 8px;gap:18px;background:transparent}
.scene-phone .msg{max-width:100%;border-radius:0;background:none;color:var(--cl-text);padding:0;border:0}
.scene-phone .msg--you{align-self:flex-end;max-width:86%;background:var(--cl-user);color:var(--cl-text);border-radius:18px;padding:10px 14px;font-family:inherit;font-size:15px;line-height:1.45}
.scene-phone .msg--ai{align-self:stretch;font-family:"Source Serif 4","Iowan Old Style",Georgia,serif;font-size:16px;line-height:1.55;position:relative}
.scene-phone .msg--ai:not(.typing)::after{content:"";display:block;width:18px;height:18px;margin-top:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23D97757' d='m19.6 66.5 19.7-11 .3-1-.3-.5h-1l-3.3-.2-11.2-.3L14 53l-9.5-.5-2.4-.5L0 49l.2-1.5 2-1.3 2.9.2 6.3.5 9.5.6 6.9.4L38 49.1h1.6l.2-.7-.5-.4-.4-.4L29 41l-10.6-7-5.6-4.1-3-2-1.5-2-.6-4.2 2.7-3 3.7.3.9.2 3.7 2.9 8 6.1L37 36l1.5 1.2.6-.4.1-.3-.7-1.1L33 25l-6-10.4-2.7-4.3-.7-2.6c-.3-1-.4-2-.4-3l3-4.2L28 0l4.2.6L33.8 2l2.6 6 4.1 9.3L47 29.9l2 3.8 1 3.4.3 1h.7v-.5l.5-7.2 1-8.7 1-11.2.3-3.2 1.6-3.8 3-2L61 2.6l2 2.9-.3 1.8-1.1 7.7L59 27.1l-1.5 8.2h.9l1-1.1 4.1-5.4 6.9-8.6 3-3.5L77 13l2.3-1.8h4.3l3.1 4.7-1.4 4.9-4.4 5.6-3.7 4.7-5.3 7.1-3.2 5.7.3.4h.7l12-2.6 6.4-1.1 7.6-1.3 3.5 1.6.4 1.6-1.4 3.4-8.2 2-9.6 2-14.3 3.3-.2.1.2.3 6.4.6 2.8.2h6.8l12.6 1 3.3 2 1.9 2.7-.3 2-5.1 2.6-6.8-1.6-16-3.8-5.4-1.3h-.8v.4l4.6 4.5 8.3 7.5L89 80.1l.5 2.4-1.3 2-1.4-.2-9.2-7-3.6-3-8-6.8h-.5v.7l1.8 2.7 9.8 14.7.5 4.5-.7 1.4-2.6 1-2.7-.6-5.8-8-6-9-4.7-8.2-.5.4-2.9 30.2-1.3 1.5-3 1.2-2.5-2-1.4-3 1.4-6.2 1.6-8 1.3-6.4 1.2-7.9.7-2.6v-.2H49L43 72l-9 12.3-7.2 7.6-1.7.7-3-1.5.3-2.8L24 86l10-12.8 6-7.9 4-4.6-.1-.5h-.3L17.2 77.4l-4.7.6-2-2 .2-3 1-1 8-5.5Z'/%3E%3C/svg%3E") center/contain no-repeat}
.scene-phone .msg--ai b{font-weight:600}
.scene-phone .msg--done{border:0;background:none}
.scene-phone .msg--done .done-badge{color:#2E9B5F;font-family:inherit;font-size:13px}
.scene-phone .msg--done .url{font-family:var(--font-mono);color:var(--cl-clay)}
.scene-phone .msg--approved{align-self:flex-start;font-family:inherit;color:#2E9B5F;font-size:13px}
.scene-phone .typing{background:none}
.claude-composer{display:flex;align-items:center;gap:10px;margin:6px 12px 8px;padding:10px 12px;border-radius:22px;background:var(--cl-composer);box-shadow:inset 0 0 0 1px var(--cl-line);color:var(--cl-text-2);flex:none}
.claude-composer svg{width:22px;height:22px;display:block}
.cc-ph{flex:1;font-size:15px}
.cc-voice{color:var(--cl-text)}
.scene-phone .phone-home{background:var(--cl-text);opacity:.35}
/* iOS notification from LetKite: where the approval happens */
.notif{position:absolute;z-index:5;top:44px;left:8px;right:8px;display:flex;gap:10px;padding:10px 12px;border-radius:22px;background:var(--cl-notif);color:var(--cl-notif-text);backdrop-filter:blur(18px);box-shadow:0 10px 30px rgba(0,0,0,.28)}
.notif img{width:30px;height:30px;border-radius:8px;flex:none}
.notif-body{flex:1;min-width:0}
.notif-head{display:flex;justify-content:space-between;font-size:13px}
.notif-head span{color:var(--cl-notif-sub)}
.notif-text{font-size:14px;line-height:1.3;margin-top:2px}
.notif-actions{display:flex;gap:16px;margin-top:8px;font-size:14px;font-weight:600;color:var(--cl-ios-blue)}
.notif-btn--ok{color:#fff;background:var(--cl-ios-blue);padding:4px 14px;border-radius:999px}
.js .scene .notif[data-at]:not(.is-on){display:none}
.notif.is-on{animation:notif-in .4s cubic-bezier(.2,.9,.3,1.2) both}
@keyframes notif-in{from{opacity:0;transform:translateY(-14px) scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.notif.is-on{animation:none}}
/* iPhone status bar, right side, left to right: cellular, Wi-Fi, battery */
.scene-phone .phone-status .status-icons { display: flex; align-items: center; gap: 6px; flex: none; }
.scene-phone .phone-status .status-icons svg { height: 12px; width: 18px; flex: none; }
.scene-phone .phone-status .status-icons svg:nth-child(2) { width: 17px; }
.scene-phone .phone-status .status-icons svg:nth-child(3) { width: 26px; }

/* ---- enterprise build flow: plan card, tool calls, CI, build zone, GitHub node ---- */
.story-head{margin-bottom:var(--s-7)}
.story-head h2{max-width:none}
.scene-phone .plan{align-self:stretch;border:1px solid var(--cl-line);border-radius:14px;padding:12px 14px;background:var(--cl-composer);font-family:inherit}
.plan-h{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--cl-text-2);margin-bottom:8px}
.plan ol{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.plan li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.35;color:var(--cl-text)}
.pc{flex:none;width:18px;height:18px;margin-top:1px;border-radius:50%;border:1.5px solid var(--cl-text-2);display:inline-flex;align-items:center;justify-content:center;opacity:.8}
.pc-ok{width:12px;height:12px;color:#fff}
.plan li:has(.pc-ok.is-on) .pc{background:#2E9B5F;border-color:#2E9B5F;opacity:1}
.plan li:has(.pc-ok.is-on){color:var(--cl-text-2)}
.tool{align-self:stretch;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border-radius:12px;background:var(--cl-user);font-family:var(--font-mono);font-size:12.5px;line-height:1.3;color:var(--cl-text)}
.tool-i{width:15px;height:15px;flex:none;color:var(--cl-text-2)}
.tool-name{font-weight:600}
.tool-cmd{color:var(--cl-text-2);overflow-wrap:anywhere}
.tool-res{margin-left:auto;color:#2E9B5F;font-weight:600}
.tool-res--wait{color:#C7791B}
.ci{align-self:stretch;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-family:var(--font-mono);font-size:12.5px}
.ci-h{color:var(--cl-text-2);margin-right:4px}
.ci-s{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;background:rgba(46,155,95,.14);color:#2E9B5F;font-weight:600}
.ci-s::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.nn--gh .nn-icon{color:var(--text)}
.zone--build .zone-title .dot{background:var(--warning)}

/* ---- letkite.com integration ---- */
html[lang="zh-CN"] .scene-phone .msg--ai, html[lang="ja"] .scene-phone .msg--ai, html[lang="ko"] .scene-phone .msg--ai,
html[lang="zh-CN"] .ct-title, html[lang="ja"] .ct-title, html[lang="ko"] .ct-title { font-family: var(--font-sans); }
/* Phones: the conversation only. The cloud drawing, its legend and the playback controls are for laptops. */
@media (max-width: 1023px) {
  .scene--wide .net, .scene--wide .sc-controls, .scene--wide .scene-legend, .scene--wide .sc-steps { display: none !important; }
  .scene--wide .scene-left { gap: 0; }
}
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer; color: var(--text-2); font-size: var(--text-sm); font-weight: 600; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface); color: var(--text); }
.lang-menu svg { width: 18px; height: 18px; }
.lang-menu__drop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; min-width: 160px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md, 0 12px 32px rgba(0,0,0,.18)); display: grid; }
.lang-menu__drop a { padding: 10px 14px; border-radius: 10px; color: var(--text); font-size: var(--text-md); }
.lang-menu__drop a:hover, .lang-menu__drop a[aria-current] { background: var(--bg); }
.footer-cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-cookies[hidden] { display: none; }
.footer-legal { margin-top: var(--s-5); font-size: var(--text-sm); color: var(--text-3); max-width: 90ch; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; padding: 18px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 32px rgba(0,0,0,.2); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: var(--text-md); line-height: 1.5; color: var(--text-2); }
.cookie-bar a { color: var(--primary); }
.cookie-bar__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.lang-hint { position: absolute; right: 16px; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: min(520px, calc(100% - 32px)); padding: 8px 8px 8px 16px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.lang-hint p { margin: 0; font-size: var(--text-md); line-height: 1.4; color: var(--text-2); }
.lang-hint a { color: var(--primary); font-weight: 600; white-space: nowrap; }
.lang-hint__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; }
.hc span, .nn small, .zone-title, .rule { overflow-wrap: anywhere; hyphens: auto; }

/* ↓ next-step button in the phone's chat (site.js buildNext) */
.sc-next { position: absolute; z-index: 4; left: 50%; bottom: 76px; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--cl-composer); color: var(--cl-text); border: 0; box-shadow: 0 0 0 1px var(--cl-line), 0 6px 18px rgba(0,0,0,.18); }
.sc-next svg { width: 20px; height: 20px; }
.sc-next:hover { color: var(--cl-clay); }
.sc-next:focus-visible { outline: 2px solid var(--cl-clay); outline-offset: 2px; }
.sc-next[hidden] { display: none; }
