/* Pavo website: tokens, type, shared components and page layouts. */

:root {
  color-scheme: light dark;

  --bg: #F5F6F8;
  --board: #E8EAEE;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-sunken: #F2F4F7;
  --fill: rgba(13, 17, 26, 0.039);
  --fill-strong: rgba(13, 17, 26, 0.078);
  --separator: rgba(13, 17, 26, 0.09);
  --separator-strong: rgba(13, 17, 26, 0.149);
  --label: #11141A;
  --secondary-label: #525866;
  --tertiary-label: #6E7480;
  --accent: #E3A33A;
  --on-accent: #1A1205;
  --accent-text: #8C5C08;
  --accent-soft: rgba(227, 163, 58, 0.18);
  --success: #1F8A55;
  --warning: #B3570F;
  --destructive: #C83434;
  --presence-coral: #F07C5E;
  --presence-teal: #36C2B4;
  --presence-violet: #9D8AF7;
  --presence-lime: #9FD45B;
  --presence-sky: #58ADF2;
  --presence-rose: #EE6EA6;
  --on-presence: #0D0F13;
  --hero-smoke: #E9B970;
  --hero-glint: #B8AEF2;
  --brand-ink: #15171C;

  --logo-mono: #000000;
  --logo-codex: #111111;
  --logo-cursor: #26251E;

  --glass-bg: rgba(255, 255, 255, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 2px rgba(13, 17, 26, 0.06), 0 8px 24px rgba(13, 17, 26, 0.08);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.078), 0 4px 24px rgba(0, 0, 0, 0.102);
  --shadow-popover: 0 1px 4px rgba(0, 0, 0, 0.102), 0 16px 64px rgba(0, 0, 0, 0.278);
  --shadow-frame: 0 18px 80px rgba(0, 0, 0, 0.22);

  --gutter: max(120px, calc(50% - 600px));
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0F13;
    --board: #0A0C10;
    --surface: #12151A;
    --surface-raised: #191D24;
    --surface-sunken: #0C0E12;
    --fill: rgba(255, 255, 255, 0.059);
    --fill-strong: rgba(255, 255, 255, 0.102);
    --separator: rgba(255, 255, 255, 0.078);
    --separator-strong: rgba(255, 255, 255, 0.141);
    --label: #ECEEF2;
    --secondary-label: #A2A8B4;
    --tertiary-label: #7C8390;
    --accent: #F2B347;
    --accent-text: #F4C064;
    --accent-soft: rgba(242, 179, 71, 0.141);
    --success: #45C486;
    --warning: #F59A4A;
    --destructive: #F26D6D;
    --hero-smoke: #B97F2C;
    --hero-glint: #5B4CC4;

    --logo-mono: #FFFFFF;
    --logo-codex: #FFFFFF;
    --logo-cursor: #EDECEC;

    --glass-bg: rgba(25, 29, 36, 0.62);
    --glass-edge: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.32);
  }
}

@media (max-width: 1200px) {
  :root { --gutter: 48px; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
}

/* Base */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 13px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
picture { display: contents; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; flex: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: 8px; background: var(--surface-raised); color: var(--label);
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Type */

.t-hero { font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -2.2px; }
.t-section { font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -1.2px; }
.t-display { font-size: 44px; line-height: 50px; font-weight: 600; letter-spacing: -1.2px; }
.t-title1 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.6px; }
.t-title2 { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.3px; }
.t-title3 { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.1px; }
.t-headline { font-size: 13px; line-height: 18px; font-weight: 600; }
.t-lead { font-size: 18px; line-height: 28px; font-weight: 400; }
.t-body-large { font-size: 15px; line-height: 22px; font-weight: 400; }
.t-body { font-size: 13px; line-height: 20px; font-weight: 400; }
.t-callout { font-size: 12px; line-height: 16px; font-weight: 400; }
.t-caption { font-size: 11px; line-height: 14px; font-weight: 500; }
.t-overline { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.t-mono { font-family: var(--font-mono); font-size: 12px; line-height: 18px; }
.t-mono-small { font-family: var(--font-mono); font-size: 11px; line-height: 14px; }

.c-label { color: var(--label); }
.c-secondary { color: var(--secondary-label); }
.c-tertiary { color: var(--tertiary-label); }
.c-accent { color: var(--accent-text); }

/* Glass: the floating material of the nav, chips and cards on the board */

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--glass-shadow);
}

/* Brass smoke: the animated shader behind heroes (site.js), over a still gradient */

.smoke {
  position: relative;
  isolation: isolate;
  --cx: 50%; --cy: 45%; --rx: 45%; --ry: 45%;
}
.smoke::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse calc(var(--rx) * 0.55) calc(var(--ry) * 0.5) at calc(var(--cx) + 6%) calc(var(--cy) - 4%),
      color-mix(in srgb, var(--hero-glint) 26%, transparent), transparent 100%),
    radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) var(--cy),
      color-mix(in srgb, var(--hero-smoke) 62%, transparent) 0%,
      color-mix(in srgb, var(--hero-smoke) 34%, transparent) 45%,
      transparent 100%);
}
.smoke.is-live::before { display: none; }
.smoke > canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Icons */

.i { width: 16px; height: 16px; }

/* Logo */

.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-tile {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(#1E2128, var(--brand-ink));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.122);
}
.logo-tile svg { width: 20px; height: 20px; }
.logo-word { font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -0.4px; color: var(--label); }
.logo-lg { gap: 12px; }
.logo-lg .logo-tile { width: 40px; height: 40px; border-radius: 11px; }
.logo-lg .logo-tile svg { width: 29px; height: 29px; }
.logo-lg .logo-word { font-size: 24px; line-height: 28px; letter-spacing: -0.6px; }

/* Button */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 16px;
  font-size: 13px; line-height: 18px; font-weight: 600;
  white-space: nowrap; flex: none;
  transition: background-color 0.15s ease, filter 0.15s ease;
}
.btn .i { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--surface-raised); color: var(--label); box-shadow: inset 0 0 0 1px var(--separator-strong); }
.btn-secondary:hover { background: color-mix(in srgb, var(--surface-raised) 92%, var(--label)); }
.btn-ghost { color: var(--label); font-weight: 500; }
.btn-ghost .i { color: var(--secondary-label); }
.btn-ghost:hover { background: var(--fill); }
.btn-lg { height: 46px; padding: 0 20px; border-radius: 23px; gap: 8px; font-size: 15px; line-height: 22px; font-weight: 600; }
.btn-lg .i { width: 17px; height: 17px; }
.btn-sm { height: 26px; padding: 0 10px; border-radius: 13px; gap: 5px; font-size: 12px; line-height: 16px; font-weight: 500; }
.btn-sm .i { width: 13px; height: 13px; }
.btn-block { display: flex; width: 100%; }

/* Badge */

.badge {
  display: inline-flex; align-items: center; flex: none;
  padding: 2px 6px; border-radius: 4px;
  font-size: 11px; line-height: 14px; font-weight: 500;
  background: var(--fill); color: var(--secondary-label);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge-success { color: var(--success); }
.badge-warning { color: var(--warning); }

/* Kbd */

.kbd {
  display: inline-flex; padding: 1px 5px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; line-height: 14px; color: var(--secondary-label);
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--separator);
}

/* FeatureLine */

.features { display: flex; flex-direction: column; gap: 10px; }
.feature { display: flex; align-items: flex-start; gap: 8px; color: var(--label); font-size: 13px; line-height: 20px; }
.feature .i { width: 14px; height: 14px; margin-top: 3px; color: var(--accent-text); }
.feature-muted { color: var(--secondary-label); }
.feature-muted .i { color: var(--tertiary-label); }

/* Avatar: people are circles, agents rounded squares with their real logo */

.av {
  --av: var(--presence-sky);
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--av); color: var(--on-presence);
  box-shadow: 0 0 0 2px var(--surface);
  font-size: 11px; line-height: 14px; font-weight: 600;
}
.av > * { grid-area: 1 / 1; }
.av-agent { border-radius: 7px; }
.av-tile { width: 22px; height: 22px; border-radius: 5.5px; background: var(--surface-raised); }
.av-logo { width: 14px; height: 14px; }
.av-pavo { width: 22px; height: 22px; }
.av .i { width: 14px; height: 14px; }
.av-sm { width: 20px; height: 20px; font-size: 9px; }
.av-sm.av-agent { border-radius: 5px; }
.av-sm .av-tile { width: 17px; height: 17px; border-radius: 4px; }
.av-sm .av-logo { width: 11px; height: 11px; }
.av-sm .av-pavo { width: 17px; height: 17px; }
.av-sm .i { width: 11px; height: 11px; }
.av-lg { width: 36px; height: 36px; font-size: 13px; line-height: 18px; }
.av-lg.av-agent { border-radius: 10px; }
.av-lg .av-tile { width: 32px; height: 32px; border-radius: 8px; }
.av-lg .av-logo { width: 20px; height: 20px; }
.av-lg .av-pavo { width: 32px; height: 32px; }
.av-lg .i { width: 19px; height: 19px; }
.av-row { display: flex; gap: 6px; }

/* Site nav */

.nav {
  position: fixed; z-index: 50;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1080px, calc(100% - 32px)); height: 52px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 6px 0 16px; border-radius: 26px;
}
.nav-home { display: flex; align-items: center; padding-right: 18px; }
.nav-links, .nav-end { display: flex; align-items: center; gap: 6px; }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; width: 36px; height: 36px; border-radius: 18px; place-items: center; color: var(--label); }
.nav-toggle .i { width: 18px; height: 18px; }
.nav-toggle:hover { background: var(--fill); }
.nav-menu { display: contents; }

/* Footer */

.footer { padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.footer-cols { display: flex; align-items: flex-start; gap: 48px; }
.footer-brand { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { color: var(--tertiary-label); }
.footer-col a, .footer-col span { color: var(--secondary-label); font-size: 13px; line-height: 20px; }
.footer-col a:hover { color: var(--label); }
.footer-base { display: flex; align-items: center; gap: 20px; color: var(--tertiary-label); font-size: 12px; line-height: 16px; }
.footer-base a:hover { color: var(--label); }
.footer-base .spacer { flex: 1; }

.divider { height: 1px; background: var(--separator); border: 0; margin: 0; flex: none; }

/* Shared section pieces */

.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.head .t-lead { max-width: 640px; color: var(--secondary-label); }
.stack { display: flex; flex-direction: column; }
.shot-frame {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--separator-strong), var(--shadow-popover);
}
.shot-frame img, .phone img, .media img { width: 100%; height: 100%; object-fit: cover; }

/* Code */

.command {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--separator);
  min-width: 0;
}
.command code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--label); }
.copy { display: grid; place-items: center; width: 22px; height: 22px; margin: -4px; border-radius: 6px; color: var(--secondary-label); flex: none; }
.copy .i { width: 14px; height: 14px; }
.copy:hover { background: var(--fill); color: var(--label); }
.copy.is-done { color: var(--success); }

/* Hero */

.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 132px var(--gutter) 56px;
  gap: 22px;
}
.hero h1 { max-width: 860px; }
.hero .t-lead { max-width: 680px; color: var(--secondary-label); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero .ctas { margin-top: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
}
.chip .i { width: 13px; height: 13px; color: var(--secondary-label); }

/* Landing */

.hero-shot {
  width: 1160px; max-width: 100%; aspect-ratio: 1160 / 725;
  padding-top: 2.586%; border-radius: 22px;
  display: flex; flex-direction: column;
}
.hero-shot img { flex: 1 1 0; min-height: 0; height: auto; }

.agents { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 56px var(--gutter); }
.agents-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; }
.agent-name { display: flex; align-items: center; gap: 8px; }
.agent-name svg { width: 22px; height: 22px; }

.how { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: center; }
.how-card { display: flex; flex-direction: column; gap: 14px; }
.how-card p { color: var(--secondary-label); }
.board-visual {
  position: relative; height: 240px; border-radius: 22px; overflow: hidden;
  background: var(--board);
  display: grid; place-items: center;
}
.board-visual > * { grid-area: 1 / 1; }

.point-phone {
  position: absolute; left: 50%; top: 5px; width: 170px; height: 370px; margin-left: -85px;
  border-radius: 26px; overflow: hidden;
}
.point-phone img { width: 100%; height: 100%; object-fit: cover; }
.point-ring {
  position: absolute; left: 50%; top: 93px; width: 158px; height: 78px; margin-left: -79px;
  border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--accent);
}
.ask {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 5px; border-radius: 999px;
  white-space: nowrap;
}
.ask-ref { padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.ask-send { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.ask-send .i { width: 12px; height: 12px; }

.thread { width: 300px; max-width: calc(100% - 32px); padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.msg { display: flex; flex-direction: column; gap: 4px; }
.msg-head { display: flex; align-items: center; gap: 8px; }
.msg-text { padding-left: 28px; color: var(--label); }

.pin {
  position: absolute; left: 18px; top: 16px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 18px 18px 18px 3px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--separator-strong), var(--shadow-card);
}
.pin-state {
  position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--presence-sky); color: var(--on-presence);
  box-shadow: 0 0 0 2px var(--surface-raised);
}
.pin-state .i { width: 10px; height: 10px; }

.sessions { width: 300px; max-width: calc(100% - 32px); padding: 8px; border-radius: 18px; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.session { padding: 9px 10px; border-radius: 12px; display: flex; flex-direction: column; gap: 5px; }
.session-top { display: flex; align-items: center; gap: 8px; }
.session-top .t-headline { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-top .i { width: 14px; height: 14px; }
.session-sub { padding-left: 28px; display: flex; flex-direction: column; gap: 3px; }
.session-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--secondary-label); white-space: nowrap; }
.session-branch { display: flex; align-items: center; gap: 4px; color: var(--tertiary-label); }
.session-branch .i { width: 11px; height: 11px; }

.split { display: flex; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.split-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split-text .t-lead { color: var(--secondary-label); }
.split-shot { width: 600px; height: 375px; flex: none; }

.repo-visual {
  position: relative; width: 600px; height: 400px; flex: none;
  border-radius: 26px; overflow: hidden; background: var(--board);
  display: grid; place-items: center;
}
.repo-visual > canvas { opacity: 0.7; }
.repo-visual.smoke::before { opacity: 0.7; }
.flow { display: flex; align-items: center; gap: 22px; }
.repo-card { width: 230px; border-radius: 18px; overflow: hidden; text-align: left; }
.repo-name { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500; }
.repo-name .i { width: 15px; height: 15px; }
.repo-files { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; color: var(--secondary-label); }
.repo-files li { display: flex; align-items: center; gap: 7px; }
.repo-files .i { width: 12px; height: 12px; }
.flow-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-text); }
.flow-arrow .i { width: 16px; height: 16px; }
.flow-phones { display: flex; }
.flow-phones .phone { width: 120px; height: 261px; border-radius: 19px; overflow: hidden; box-shadow: var(--shadow-frame); }
.flow-phones .phone:first-child { transform: rotate(-4deg); }
.flow-phones .phone + .phone { margin-left: -40px; transform: translateY(16px) rotate(4deg); }

.native {
  padding-top: 72px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  background: linear-gradient(var(--bg), var(--board));
}
.native .head .t-lead { max-width: 680px; }
.native-phones { display: flex; align-items: flex-start; justify-content: center; gap: 28px; }
.native-phones .phone { flex: none; overflow: hidden; box-shadow: var(--shadow-frame); }
.phone-a { width: 200px; height: 365px; margin-top: 70px; border-radius: 32px; }
.phone-b { width: 220px; height: 448px; margin-top: 30px; border-radius: 35px; }
.phone-c { width: 240px; height: 522px; border-radius: 38px; }

.pricing-teaser { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ai-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 20px; background: var(--fill);
}
.ai-row .stack { flex: 1; min-width: 0; gap: 2px; }
.ai-row .t-body { color: var(--secondary-label); }

.closing { padding-bottom: 72px; }
.closing-card {
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  padding: 64px 40px; border-radius: 32px; overflow: hidden;
  background-color: var(--surface);
  box-shadow: inset 0 0 0 1px var(--separator);
}
.closing-card > canvas { border-radius: 32px; }

/* PlanCard */

.plan {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 24px; border-radius: 24px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator);
}
.plan-pro { background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .t-callout { color: var(--secondary-label); }
.plan-blurb { color: var(--secondary-label); max-width: 318px; }

/* Pricing page */

.pricing-hero { padding: 140px var(--gutter) 48px; gap: 18px; }
.pricing-hero h1 { max-width: 720px; }
.pricing-hero .t-lead { max-width: 640px; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); }
.segment {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 9px; border-radius: 13px;
  font-size: 13px; line-height: 20px; font-weight: 500; color: var(--secondary-label);
}
.segment .t-caption { color: var(--tertiary-label); }
.segment[aria-pressed="true"] { background: var(--fill-strong); color: var(--label); }
.segment[aria-pressed="true"] .t-caption { color: var(--accent-text); }

.plans-block { display: flex; flex-direction: column; gap: 20px; }
.enterprise {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: 24px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator);
}
.enterprise .stack { flex: 1; gap: 4px; }
.enterprise .t-body { color: var(--secondary-label); }

.two-ways { padding-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.two-ways .head { gap: 10px; }
.two-ways .head .t-lead { max-width: none; }
.ways { display: flex; align-items: flex-start; gap: 20px; }
.way {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: 24px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator);
}
.way-title { display: flex; align-items: center; gap: 8px; }
.way > p { color: var(--secondary-label); }
.packs { border-radius: 16px; background: var(--fill); }
.pack { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.pack + .pack { border-top: 1px solid var(--separator); }

.compare { padding-top: 88px; }
.compare h2 { text-align: center; padding-bottom: 24px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 0; }
.compare-table thead th { padding: 12px 0; }
.compare-table thead th:not(:first-child) { width: 200px; text-align: center; }
.compare-table thead th.c-accent { color: var(--accent-text); }
.compare-table thead tr { border-bottom: 1px solid var(--separator); }
.compare-table tbody th { padding: 14px 0; text-align: left; color: var(--label); font-weight: 400; }
.compare-table tbody td { text-align: center; color: var(--secondary-label); }
.compare-table tbody td .i { width: 16px; height: 16px; margin: 0 auto; }
.compare-table .yes { color: var(--accent-text); }
.compare-table .no { color: var(--tertiary-label); }
.compare-table tbody tr.row + tr.row { border-top: 1px solid var(--separator); }
.compare-table tr.group th { padding: 28px 0 4px; text-align: left; color: var(--tertiary-label); }
.compare-table tr.group:first-child th { padding-top: 20px; }

.faq { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.faq-item { display: flex; flex-direction: column; gap: 6px; }
.faq-item p { color: var(--secondary-label); }

/* Docs */

.docs { display: flex; align-items: flex-start; gap: 56px; padding: 100px 72px 0; max-width: 1440px; margin: 0 auto; }
.docs-nav { width: 248px; flex: none; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.docs-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--fill); color: var(--tertiary-label);
}
.docs-search .i { width: 13px; height: 13px; }
.docs-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0;
  font: inherit; font-size: 13px; line-height: 20px; color: var(--label);
}
.docs-search input::placeholder { color: var(--tertiary-label); }
.docs-search:focus-within { box-shadow: 0 0 0 2px var(--accent-soft); }
.docs-group { display: flex; flex-direction: column; gap: 1px; }
.docs-group h2 { padding: 4px 8px; color: var(--tertiary-label); }
.side-row {
  display: flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 6px;
  font-size: 13px; line-height: 20px; color: var(--label); white-space: nowrap;
}
a.side-row:hover { background: var(--fill); }
.side-row[aria-current="page"] { background: var(--accent-soft); font-weight: 500; }
.side-row.is-hidden { display: none; }
.docs-article { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-bottom: 80px; }
.docs-article > .t-lead { color: var(--secondary-label); }
.docs-article h2 { padding-top: 10px; scroll-margin-top: 96px; }
.docs-article > .t-body-large { color: var(--secondary-label); }
.note { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: var(--accent-soft); }
.note .i { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }
.code {
  border-radius: 16px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--separator); overflow: hidden;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; color: var(--tertiary-label); border-bottom: 1px solid var(--separator); }
.code-head .copy .i { width: 13px; height: 13px; }
.code pre { margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.code pre span { display: block; white-space: pre; }
.docs-toc { width: 200px; flex: none; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 100px; }
.docs-toc a { font-size: 13px; line-height: 20px; color: var(--secondary-label); }
.docs-toc a:hover { color: var(--label); }
.docs-toc a.is-current { color: var(--accent-text); }

/* Changelog */

.changelog-hero { padding: 150px var(--gutter) 56px; gap: 14px; }
.changelog-hero .t-lead { max-width: 620px; }
.changelog-hero .ctas { gap: 8px; }
.entries { max-width: 1080px; margin: 0 auto; padding: 0 40px 96px; }
.entry { display: flex; align-items: flex-start; gap: 48px; padding: 44px 0; }
.entry + .entry { border-top: 1px solid var(--separator); }
.entry-when { width: 170px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.entry-body > .t-body-large { color: var(--secondary-label); }
.media { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--separator); position: relative; }
.media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--separator); pointer-events: none; }
.media-pair { display: flex; align-items: flex-end; gap: 16px; }
.media-pair .media { flex: 1; min-width: 0; height: 420px; }
.media-phone { width: 194px; height: 420px; flex: none; border-radius: 34px; overflow: hidden; position: relative; }
.media-phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px var(--separator-strong); }
.media-phone img { width: 100%; height: 100%; object-fit: cover; }
.bullets { display: flex; flex-direction: column; gap: 8px; color: var(--secondary-label); }
.bullets li { display: flex; align-items: baseline; gap: 10px; }
.bullets li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.session-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator);
}
.session-card .stack { flex: 1; min-width: 0; gap: 2px; }

/* Mac app */

.mac-hero { padding: 150px var(--gutter) 48px; gap: 18px; }
.mac-hero .t-lead { max-width: 640px; }
.app-icon { width: 80px; height: 80px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28)); }
.mac-shot {
  max-width: 1200px; margin: 0 auto; aspect-ratio: 1200 / 750; border-radius: 20px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--separator-strong), var(--shadow-frame);
  position: relative;
}
.mac-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--separator-strong); pointer-events: none; }
.mac-shot img { width: 100%; height: 100%; object-fit: cover; }
.mac-features { padding-top: 88px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.mac-feature {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator);
}
.mac-feature p { color: var(--secondary-label); }
.feature-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.feature-icon .i { width: 18px; height: 18px; }
.iphone { display: flex; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.iphone .split-text { gap: 14px; align-items: flex-start; }
.iphone .t-lead { max-width: 520px; color: var(--secondary-label); }
.iphone-phone {
  width: 240px; height: 522px; flex: none; border-radius: 40px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-frame);
}
.iphone-phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 5px var(--separator-strong); }
.iphone-phone img { width: 100%; height: 100%; object-fit: cover; }

/* Invite and billing: one glass card on the smoke */

.solo {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 104px 20px 48px;
  --cx: 50%; --cy: 42%; --rx: 52%; --ry: 60%;
}
.solo-card {
  width: min(460px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: 40px 36px 36px; border-radius: 28px;
}
.solo-card .app-icon { width: 64px; height: 64px; }
.solo-card h1 { text-wrap: balance; }
.solo-card .t-body-large { color: var(--secondary-label); text-wrap: pretty; }
.solo-card .ctas { margin-top: 6px; width: 100%; flex-direction: column; align-items: stretch; }
.solo-card .ctas .btn { width: 100%; }
.solo-card .t-callout { color: var(--tertiary-label); }
.solo-form { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.solo-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--secondary-label); }
.field input {
  height: 44px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-size: 15px;
  background: var(--surface-sunken); color: var(--label); box-shadow: inset 0 0 0 1px var(--separator-strong);
}
.field input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.form-error { min-height: 18px; margin: 0; font-size: 13px; line-height: 18px; color: var(--destructive); text-align: center; }
.solo-nav { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); }

/* Below 1200: keep the composition, tighten the gutters */

@media (max-width: 1200px) {
  .split, .iphone { gap: 40px; }
  .split-shot { width: 48%; height: auto; aspect-ratio: 600 / 375; flex: none; }
  .repo-visual { width: 50%; }
  .flow { zoom: 0.8; }
  .docs { padding-left: 32px; padding-right: 32px; gap: 40px; }
  .docs-toc { display: none; }
}

/* Below 900: one column */

@media (max-width: 900px) {
  .t-hero { font-size: 42px; line-height: 46px; letter-spacing: -1.4px; }
  .t-section { font-size: 30px; line-height: 36px; letter-spacing: -0.9px; }
  .t-display { font-size: 38px; line-height: 44px; }
  .t-title1 { font-size: 24px; line-height: 30px; letter-spacing: -0.5px; }
  .t-lead { font-size: 16px; line-height: 25px; }

  .nav { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 8px 8px 14px; border-radius: 26px; }
  .nav-toggle { display: grid; order: 2; }
  .nav-end .btn-ghost { display: none; }
  .nav-end { order: 1; margin-left: auto; }
  .nav-spacer { display: none; }
  .nav-menu {
    display: none; order: 3; width: 100%;
    flex-direction: column; gap: 2px; padding: 8px 0 4px;
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav.is-open { border-radius: 22px; }
  .nav-menu .nav-links, .nav-menu .nav-more { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu .btn { justify-content: flex-start; height: 40px; border-radius: 12px; }
  .nav-menu .nav-more { display: flex; border-top: 1px solid var(--separator); padding-top: 6px; margin-top: 4px; }

  .hero { padding-top: 112px; gap: 18px; }
  .hero-shot { border-radius: 14px; }
  .chip .t-callout { text-align: left; }

  .cards3, .plans, .mac-features, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .how, .split, .pricing-teaser { padding-top: 56px; padding-bottom: 56px; }
  .split { flex-direction: column; align-items: stretch; gap: 32px; }
  .split-reverse { flex-direction: column-reverse; }
  .split-shot, .repo-visual { width: 100%; height: auto; aspect-ratio: 600 / 400; }
  .split-shot { aspect-ratio: 600 / 375; }
  .flow { zoom: 0.6; }
  .native { padding-top: 56px; }
  .native-phones { width: 1192px; flex: none; }
  .native-phones .phone { zoom: 0.62; }

  .ai-row, .enterprise { flex-wrap: wrap; }
  .ai-row .stack { flex: 1 1 calc(100% - 50px); }
  .ai-row .btn { margin-left: 50px; }
  .enterprise .stack { flex: 1 1 100%; }
  .closing-card { padding: 48px 20px; }

  .pricing-hero, .changelog-hero, .mac-hero { padding-top: 112px; }
  .ways { flex-direction: column; align-items: stretch; }
  .compare-table thead th:not(:first-child) { width: 64px; }
  .compare-table tbody td, .compare-table tbody th { font-size: 12px; line-height: 16px; }
  .compare-table tbody td { padding: 0 2px; }

  .footer-cols { flex-wrap: wrap; gap: 32px 40px; }
  .footer-brand { flex: 1 0 100%; }

  .docs { flex-direction: column; align-items: stretch; padding: 96px 20px 0; gap: 28px; }
  .docs-nav { position: static; width: 100%; }
  .docs-group:not(:first-of-type) { display: none; }

  .entries { padding: 0 20px 72px; }
  .entry { flex-direction: column; gap: 16px; padding: 36px 0; }
  .entry-when { width: auto; flex-direction: row; align-items: center; }
  .media-pair .media { height: auto; aspect-ratio: 1440 / 900; }
  .media-pair .media-phone { display: none; }
  .media-tall { height: auto !important; aspect-ratio: 1440 / 900; }

  .iphone { flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .iphone-phone { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
