@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* From the app icon: pale mint ground, teal diamond, black island. State colors only where AgentHop shows state. */
  --mist: #EEF5F2;
  --mint: #D9EEE6;
  --paper: #FFFFFF;
  --ink: #0E1F1B;
  --slate: #4E625B;
  --line: rgba(14, 31, 27, .11);
  --teal: #14B89A;
  --black: #000;
  --amber: #FF9F4A;
  --blue: #5AA9FF;
  --green: #4ADE80;
  --display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border-radius: 999px;
  font: 600 16px var(--ui); text-decoration: none; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease; }
.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--black); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 22px rgba(0, 0, 0, .16); }
.pill-light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-teal { background: var(--teal); color: #02261F; }
.pill-small { height: 38px; padding: 0 18px; font-size: 14px; }
.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 40px; height: 68px; padding: 0 max(5vw, 24px);
  background: rgba(238, 245, 242, .78); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); text-decoration: none; }
.nav nav { display: flex; gap: 28px; margin-right: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--slate); }
.nav nav a:hover { color: var(--ink); }
/* Language: looks like a quiet nav item; the native select sits invisibly on top, so the system picker and keyboard still work. */
.lang { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 15px; color: var(--slate); white-space: nowrap; transition: background .15s, color .15s; }
.lang:hover { background: rgba(14, 31, 27, .06); color: var(--ink); }
.lang:has(select:focus-visible) { box-shadow: 0 0 0 3px rgba(20, 184, 154, .3); }
.lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang .chev { width: 9px; height: 6px; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.lang select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font: inherit; }
.lang select:focus-visible { outline: none; }
html.i18n-pending body { visibility: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 7vh max(5vw, 24px) 10vh; }
.hero-copy { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6vw; align-items: end; max-width: 1320px; margin: 0 auto; }
h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: .98; letter-spacing: -0.035em; font-weight: 750; }
.lede { margin: 0; font-size: 19px; color: var(--slate); max-width: 34em; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--slate); }
.fine.center { text-align: center; margin-top: 32px; }

.stage { margin: 8vh auto 0; max-width: 1320px; }
.screen-frame { position: relative; padding: 12px; border-radius: 30px; background: #0B0B0C;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 2px 0 1px #2B2D30, 0 50px 100px -20px rgba(14, 31, 27, .45), 0 30px 60px -30px rgba(14, 31, 27, .5); }
.screen-holder { position: relative; overflow: hidden; border-radius: 18px; }
.screen { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; overflow: hidden; transform-origin: 0 0; font-family: var(--ui);
  background:
    radial-gradient(520px 380px at 18% 22%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(700px 520px at 88% 85%, rgba(20, 184, 154, .55), transparent 70%),
    radial-gradient(600px 400px at 60% 40%, rgba(170, 225, 210, .9), transparent 75%),
    linear-gradient(160deg, #DDF3EA 0%, #B3E2D3 48%, #7CC9B8 100%); }

.mac-bar { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 20px; height: 32px; padding: 0 18px;
  font-size: 13.5px; color: #10231E; background: rgba(255, 255, 255, .34); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mac-bar b { font-weight: 700; }
.apple { width: 14px; height: 16px; background: #10231E; clip-path: path("M11.6 9c0-2 1.7-3 1.8-3.1-1-1.4-2.5-1.6-3-1.6-1.3-.1-2.5.8-3.2.8-.7 0-1.7-.8-2.8-.7C3 4.4 1.7 5.2 1 6.5c-1.5 2.6-.4 6.4 1.1 8.5.7 1 1.5 2.1 2.6 2.1 1 0 1.4-.7 2.7-.7 1.2 0 1.6.7 2.7.7 1.1 0 1.8-1 2.5-2 .8-1.1 1.1-2.2 1.1-2.3 0 0-2.1-.8-2.1-3.8zM9.5 2.9c.6-.7 1-1.6.9-2.6-.8 0-1.8.6-2.4 1.3-.5.6-1 1.6-.9 2.5.9.1 1.8-.5 2.4-1.2z"); }
.mac-right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-variant-numeric: tabular-nums; }
.glyph { display: inline-block; background: #10231E; }
.wifi { width: 16px; height: 12px; clip-path: path("M8 12 0 3.6Q8-3 16 3.6Z"); }
.battery { position: relative; width: 24px; height: 11px; border-radius: 3px; background: none; box-shadow: inset 0 0 0 1.2px #10231E; }
.battery::after { content: ""; position: absolute; inset: 2.2px 6px 2.2px 2.2px; border-radius: 1.5px; background: #10231E; }

/* ---------- Island (geometry from the app's UnevenIslandShape) ---------- */
.island { position: absolute; top: 0; left: 50%; z-index: 6; translate: -50% 0; color: #fff; }
.island-clip { position: absolute; inset: 0; background: var(--black); overflow: hidden; }
.island.attention { filter: drop-shadow(0 0 6px rgba(255, 159, 74, .8)) drop-shadow(0 6px 18px rgba(255, 159, 74, .45)); }
.island.lifted { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.island-face { position: absolute; inset: 0; transition: opacity .18s ease; }
.island-face.expanded { opacity: 0; }
.island.open .island-face.compact { opacity: 0; }
.island.open .island-face.expanded { opacity: 1; transition-delay: .14s; }

.compact { display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 32px; font: 700 14px/1 var(--ui); }
.counts { display: flex; align-items: center; gap: 12px; }
.count { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-variant-numeric: tabular-nums; }
.count svg { width: 16px; height: 16px; }
.count.zero { opacity: .32; }
.c-wait { color: var(--amber); }
.c-run { color: #fff; } .c-run svg { color: var(--blue); }
.c-done { color: var(--green); }
.focus { display: flex; align-items: center; gap: 8px; min-width: 0; }
.focus-text { display: grid; gap: 3px; line-height: 1.05; }
.focus-text b { font-size: 12.5px; white-space: nowrap; }
.focus-text small { font-size: 11px; font-weight: 600; white-space: nowrap; }
.s-wait { color: var(--amber); } .s-run { color: var(--blue); } .s-done { color: var(--green); }

.agent { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; }
.agent svg { width: 11px; height: 11px; }
.agent.claude { background: #D97757; }
.agent.codex { background: #fff; color: #000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.agent.gemini { background: #4C8DF6; }
.agent.cursor { background: #1E1E1E; }

.expanded { padding: 0 34px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; }
.row .focus-text b { font-size: 13px; } .row .focus-text small { font-size: 11.5px; }
.row .where { margin-left: auto; font-size: 11.5px; color: #8B949E; }
.x-head { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 2px; color: #9AA3AD; font-size: 12px; font-weight: 600; }
.card { padding: 14px 16px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-top b { font-size: 14px; }
.tag { padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #C9D1D9; background: rgba(255, 255, 255, .1); }
.card-top .tag:last-child { margin-left: auto; }
.card p { margin: 10px 0 8px; color: var(--amber); font-weight: 600; }
.card pre { margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font: 12.5px/1.5 var(--mono); color: #E6EDF3; white-space: pre-wrap; }
.card-actions { display: flex; gap: 8px; }
.card-actions span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; border-radius: 8px; font-weight: 600; background: rgba(255, 255, 255, .1); transition: transform .12s ease, background .2s; }
.card-actions kbd { font: 11px var(--ui); opacity: .65; }
.card-actions .allow { background: #2F6BFF; }
.card-actions .allow.pressed { transform: scale(.96); background: #2457D6; }
.card.resolved p { color: var(--green); }

/* ---------- Windows on the desk ---------- */
.windows { position: absolute; inset: 32px 0 0; }
.win { position: absolute; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), 0 22px 50px rgba(14, 40, 34, .32), 0 6px 14px rgba(14, 40, 34, .16);
  transition: transform .5s cubic-bezier(.2, .9, .25, 1.05), box-shadow .5s ease, filter .5s ease; }
.win.front { z-index: 4; transform: scale(1.035); box-shadow: 0 0 0 2px var(--teal), 0 34px 70px rgba(14, 40, 34, .42); }
.windows.focusing .win:not(.front) { filter: saturate(.6) brightness(.9); }
.win.waiting { box-shadow: 0 0 0 2px var(--amber), 0 22px 50px rgba(255, 159, 74, .35); }
.win-bar { position: relative; flex: none; display: flex; align-items: center; height: 30px; padding: 0 12px; gap: 8px; font-size: 12px; font-weight: 600; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; } .lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; }
.win-title { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.term { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 16px 14px; overflow: hidden; font: 12.5px/1.6 var(--mono); }
.term p { flex: none; margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.term .dim { opacity: .55; } .term .ok { color: #4ADE80; } .term .ask { color: var(--amber); }
.term p.new { animation: line .28s ease-out; }
@keyframes line { from { opacity: 0; transform: translateY(5px); } }

.iterm { left: 56px; top: 54px; width: 560px; height: 300px; background: #14171C; color: #D8DEE6; }
.iterm .win-bar { background: #23272E; color: #9AA4AF; }
.ghostty { left: 668px; top: 40px; width: 556px; height: 290px; background: #282A36; color: #F1F1EC; }
.ghostty .win-bar { background: #282A36; color: #8C90A3; border-bottom: 1px solid #343746; }
.vscode { left: 96px; top: 392px; width: 600px; height: 340px; background: #1F1F1F; color: #CCCCCC; }
.vscode .win-bar { background: #181818; color: #9D9D9D; border-bottom: 1px solid #2B2B2B; }
.vs-body { flex: 1; display: grid; grid-template-columns: 42px 150px 1fr; min-height: 0; }
.vs-act { background: #181818; border-right: 1px solid #2B2B2B; }
.vs-tree { padding: 10px 12px; font-size: 12px; color: #9D9D9D; border-right: 1px solid #2B2B2B; line-height: 1.9; }
.vs-tree b { color: #CCCCCC; font-weight: 600; }
.vs-panel { display: flex; flex-direction: column; min-width: 0; }
.vscode .term { font: 13px/1.65 var(--ui); }
.vs-head { display: flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 12px; font-weight: 600; border-bottom: 1px solid #2B2B2B; }
.codexapp { left: 740px; top: 372px; width: 470px; height: 352px; background: #FFFFFF; color: #111; }
.codexapp .win-bar { background: #F7F7F7; color: #555; border-bottom: 1px solid #E8E8E8; }
.cx-body { flex: 1; display: grid; grid-template-columns: 148px 1fr; min-height: 0; }
.cx-side { background: #F7F7F7; border-right: 1px solid #ECECEC; padding: 10px; font-size: 12px; color: #555; line-height: 2; }
.cx-side .on { color: #111; font-weight: 600; background: #EAEAEA; border-radius: 6px; padding: 0 8px; margin: 0 -8px; }
.cx-main { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; font-size: 12.5px; min-width: 0; overflow: hidden; }
.cx-main .you { align-self: flex-end; max-width: 80%; padding: 7px 11px; border-radius: 14px; background: #F0F0F0; }
.cx-main .step { flex: none; color: #666; font-size: 12px; }
.cx-main .step b { color: #111; font-weight: 600; }
.cx-main .step.new { animation: line .28s ease-out; }
.cx-input { flex: none; margin-top: 4px; height: 34px; border-radius: 17px; box-shadow: inset 0 0 0 1px #E3E3E3; color: #999; font-size: 12px; display: flex; align-items: center; padding: 0 14px; }

.pointer { position: absolute; z-index: 9; left: 960px; top: 600px; width: 22px; height: 30px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 30'%3E%3Cpath d='M2 2v22l5.5-5.2 3.6 8.4 3.7-1.6-3.6-8.3H19z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  transition: left .9s cubic-bezier(.4, 0, .2, 1), top .9s cubic-bezier(.4, 0, .2, 1), opacity .3s, transform .12s; }
.pointer.on { opacity: 1; }
.pointer.click { transform: scale(.86); }
.keycaps { position: absolute; z-index: 9; left: 50%; top: 54%; translate: -50% -50%; display: flex; gap: 10px; opacity: 0; scale: .92; transition: opacity .25s, scale .25s; }
.keycaps.on { opacity: 1; scale: 1; }
.keycaps kbd { min-width: 64px; height: 64px; padding: 0 18px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .94);
  font: 600 24px var(--ui); color: var(--ink); box-shadow: 0 5px 0 #C9DCD5, 0 18px 40px rgba(14, 40, 34, .3); transition: translate .1s, box-shadow .1s; }
.keycaps.press kbd { translate: 0 3px; box-shadow: 0 2px 0 #C9DCD5, 0 12px 30px rgba(14, 40, 34, .3); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 0; padding: 0; }
.steps button { position: relative; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 2px 12px; width: 100%; height: 100%; padding: 16px 18px 22px; overflow: hidden;
  border: 0; border-radius: 16px; background: transparent; color: var(--slate); font: inherit; text-align: left; cursor: pointer; transition: background .3s, box-shadow .3s; }
.steps button:hover { background: rgba(255, 255, 255, .5); }
.steps .step-n { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 14px var(--ui); background: rgba(14, 31, 27, .08); color: var(--slate); transition: background .3s, color .3s; }
.steps b { font-size: 16px; color: var(--ink); }
.steps span:not(.step-n) { font-size: 14px; line-height: 1.45; }
.steps i { position: absolute; left: 18px; right: 18px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(14, 31, 27, .08); overflow: hidden; }
.steps i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.steps li.active button { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(14, 31, 27, .07); }
.steps li.active .step-n { background: var(--ink); color: #fff; }

/* ---------- Works with ---------- */
.idea, .works, .details, .faq { max-width: 1240px; margin: 0 auto; padding: 14vh max(5vw, 24px); }
.section-head { max-width: 660px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.section-head p { margin: 20px 0 0; font-size: 19px; color: var(--slate); }

.footnote { margin: 36px 0 0; font-size: 14px; color: var(--slate); }

/* ---------- Mini islands (static) ---------- */
.mini-island { display: grid; justify-items: center; gap: 16px; }
.mini-island .island { position: relative; left: auto; translate: none; }
.mini-island .card { width: 380px; background: #0B0B0B; color: #fff; box-shadow: 0 24px 50px -16px rgba(14, 31, 27, .45); }
.keys { display: flex; gap: 8px; }
.keys kbd { min-width: 46px; height: 46px; padding: 0 14px; display: grid; place-items: center; border-radius: 11px; background: var(--paper); font: 600 17px var(--ui); box-shadow: 0 4px 0 #C9DCD5, 0 0 0 1px var(--line); }

/* ---------- Details ---------- */
.details { padding-top: 4vh; }
.detail { display: grid; grid-template-columns: 520px 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.detail + .detail { border-top: 1px solid var(--line); }
.detail h3 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 12px; }
.detail p { margin: 0; color: var(--slate); max-width: 30em; }
.also { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.also li { padding: 24px 0; border-top: 1px solid var(--line); color: var(--slate); font-size: 16px; }
.also b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* ---------- Demo ---------- */
.demo { padding: 12vh max(5vw, 24px); background: var(--paper); }
.demo h2 { text-align: center; margin-bottom: 48px; }
.video-shell { position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0B0F12;
  box-shadow: 0 40px 90px -30px rgba(14, 31, 27, .5); }
.video-shell video { display: block; width: 100%; height: 100%; }
.play { position: absolute; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px 0 20px;
  border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 16px var(--ui); cursor: pointer; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .18s; }
.play:hover { transform: translateY(-2px); }
.play svg { width: 22px; height: 22px; }
.video-missing { position: absolute; inset: auto 0 0; margin: 0; padding: 20px 28px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }

/* ---------- Pricing ---------- */
.pricing { padding: 14vh max(5vw, 24px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 36px; border-radius: 28px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { font-size: 22px; }
.price { margin: 10px 0 24px; font: 700 52px/1 var(--display); letter-spacing: -0.03em; }
.price .once { display: block; margin-top: 10px; font: 500 15px var(--ui); letter-spacing: 0; color: var(--slate); }
.seats { display: inline-flex; gap: 4px; margin: 16px 0 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); align-self: flex-start; }
.seats button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: #B9C6C1; font: 600 14px var(--ui); cursor: pointer; transition: background .2s, color .2s; }
.seats button[aria-checked="true"] { background: #fff; color: var(--ink); }
.plan ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; align-content: start; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 30px; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--mint) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%230E1F1B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan li.lead { padding-left: 0; font-weight: 600; } .plan li.lead::before { display: none; }
.plan-pro { background: var(--black); color: #fff; box-shadow: 0 40px 80px -30px rgba(14, 31, 27, .55); }
.plan-pro .price .once { color: #9FB0AA; }
.plan-pro li::before { background-color: rgba(20, 184, 154, .25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%2314B89A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .pill { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--slate); max-width: 40em; }

/* ---------- Closing ---------- */
.local { display: grid; justify-items: center; gap: 32px; padding: 16vh max(5vw, 24px); text-align: center; background: var(--mint); }
.local h2 { max-width: 14em; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; padding: 32px max(5vw, 24px) 44px; font-size: 14px; color: var(--slate); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 17px var(--display); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; } .footer a:hover { text-decoration: underline; }
.footer p { margin: 0 0 0 auto; }

/* ---------- Legal pages ---------- */
.legal-bar { display: flex; align-items: center; height: 68px; padding: 0 max(5vw, 24px); }
.legal { max-width: 720px; margin: 0 auto; padding: 6vh max(5vw, 24px) 12vh; }
.legal h1 { font-size: clamp(40px, 5vw, 56px); }
.legal .updated { margin: 10px 0 44px; color: var(--slate); font-size: 14px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.legal p, .legal li { color: #2B3D39; }
.legal ul { padding-left: 1.2em; } .legal li { margin: 8px 0; }
.legal code { font: 14px var(--mono); }

/* ---------- Small screens ---------- */
@media (max-width: 1080px) {
  .hero-copy { grid-template-columns: 1fr; gap: 28px; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .lang { padding: 0 10px; } .lang span { display: none; }
  .nav nav { display: none; }
  .nav { justify-content: space-between; gap: 16px; }
  .nav .brand { margin-right: auto; }
  .screen-frame { padding: 6px; border-radius: 16px; }
  .screen-holder { border-radius: 11px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 6px; }
  .steps button { padding: 12px 12px 18px; gap: 0 10px; }
  .steps span:not(.step-n) { display: none; }
  .steps .step-n { grid-row: auto; width: 24px; height: 24px; font-size: 12px; }
  .steps b { font-size: 14px; align-self: center; }
  .steps i { left: 12px; right: 12px; }
  .plans, .also { grid-template-columns: 1fr; }
  .mini-island { zoom: .78; }
  .footer p { margin: 0; }
}
/* Hero "Hop": each letter hops in, lands with a squash; hover the title to hop again. */
h1 .hop { font-style: normal; color: var(--teal); white-space: nowrap; }
h1 .hop i { display: inline-block; font-style: normal; transform-origin: 50% 100%; animation: hop .6s cubic-bezier(.3, .7, .4, 1) calc(.25s + var(--i) * .07s) both; }
h1 .hop i:nth-child(1) { --i: 0; } h1 .hop i:nth-child(2) { --i: 1; } h1 .hop i:nth-child(3) { --i: 2; }
h1:hover .hop i { animation-name: rehop; animation-delay: calc(var(--i) * .07s); }
@keyframes hop { 0% { opacity: 0; transform: translateY(.6em); } 35% { opacity: 1; transform: translateY(-.4em); } 62% { transform: translateY(0) scale(1.08, .86); } 80% { transform: translateY(-.08em); } 100% { opacity: 1; transform: none; } }
@keyframes rehop { 0%, 100% { transform: none; } 35% { transform: translateY(-.4em) scale(.97, 1.04); } 62% { transform: scale(1.08, .86); } 80% { transform: translateY(-.08em); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.detail .card p { margin: 10px 0 8px; color: var(--amber); max-width: none; }

[hidden] { display: none !important; }

/* Chinese headings: CJK needs air the Latin tracking takes away. */
:lang(zh-CN) h1 { line-height: 1.12; letter-spacing: -0.01em; }
:lang(zh-CN) h2, :lang(zh-CN) h3 { letter-spacing: 0; line-height: 1.2; }
:lang(zh-CN) body, :lang(zh-CN) .lede { line-height: 1.75; }
h1.lines span { display: block; white-space: nowrap; }

/* ---------- Idea: you, one jump host, every agent ---------- */
.idea { padding-bottom: 10vh; }
.chain { position: relative; display: grid; grid-template-columns: 180px 1fr 360px; gap: 0 48px; align-items: center; margin-top: 8px; }
.chain-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chain-wires path { fill: none; stroke: rgba(20, 184, 154, .5); stroke-width: 1.5; }
.chain-wires path.you { stroke: var(--ink); stroke-width: 2.5; }
.chain-wires path.hot { stroke: var(--amber); stroke-width: 2.5; }
.chain-wires circle { fill: var(--teal); }
.chain-wires circle.hot { fill: var(--amber); }
.chain-you { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 28px 16px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(14, 31, 27, .3); }
.chain-you b { font: 750 44px/1 var(--display); letter-spacing: -0.03em; }
.chain-you span { display: flex; gap: 4px; }
.chain-you kbd { min-width: 28px; height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 7px; background: var(--mist); font: 600 12px var(--ui); box-shadow: 0 2px 0 #C9DCD5; }
.chain-hub { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; }
.chain-hub > span { font: 700 20px var(--display); letter-spacing: -0.02em; }
.chain-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chain-chip { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 15px; white-space: nowrap; }
.chain-chip .agent { width: 22px; height: 22px; }
.chain-chip .in { color: var(--slate); }
.chain-chip.hot { box-shadow: 0 0 0 2px var(--amber), 0 12px 30px -12px rgba(255, 159, 74, .6); }
.chain-chip .needs { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgba(255, 159, 74, .16); color: #B4560F; font-size: 12.5px; font-weight: 700; }
.chain-chip.more { justify-content: center; background: none; box-shadow: inset 0 0 0 1.5px rgba(14, 31, 27, .18); border-radius: 14px; color: var(--slate); }
.chain-chip.more { outline: 1.5px dashed rgba(14, 31, 27, .22); outline-offset: -1.5px; box-shadow: none; }
.claims { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 96px 0 0; padding: 0; }
.claims li { color: var(--slate); font-size: 17px; }
.claims b { display: block; margin-bottom: 10px; color: var(--ink); font: 750 clamp(26px, 2.6vw, 36px)/1.1 var(--display); letter-spacing: -0.03em; }
:lang(zh-CN) .claims b { letter-spacing: 0; }

.host-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.host-group { padding: 18px 20px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.host-group h3 { font: 600 14px var(--ui); color: var(--slate); margin-bottom: 12px; }
.host-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.host-group li { padding: 6px 12px; border-radius: 999px; background: var(--mist); font-size: 14.5px; font-weight: 500; }
.host-group li.any { background: none; color: var(--slate); padding-inline: 4px; }
.host-group sup, .footnote sup { color: var(--teal); font-weight: 700; }

@media (max-width: 1080px) {
  .chain { grid-template-columns: 1fr; justify-items: center; gap: 36px; }
  .chain-wires { display: none; }
  .chain-you, .chain-hub { position: relative; }
  .chain-you::after, .chain-hub::after { content: ""; position: absolute; left: 50%; bottom: -30px; width: 2px; height: 24px; background: var(--teal); }
  .chain-sessions { width: 100%; max-width: 420px; }
  .claims { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; }
  .host-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) { .host-groups { grid-template-columns: 1fr; } }
