/* Geist website. The Geist 2 hero (text left, the floating ghost right) on the
   Geist navy, then the app in a window, three steps, the ghost's moods, a bento
   of features, the service flow. Geist Sans, Mono and Pixel, no external
   assets. site.js only adds motion (reveal on scroll, the ghost's eyes); the
   page is complete without it. */

@font-face { font-family: 'Geist Pixel'; src: url('fonts/GeistPixel-Circle.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/GeistVF.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMonoVF.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #1a1a2e;
  --night: #0c0c16;
  --panel: #17172a;
  --panel-2: #20203a;
  --line: #2c2c48;
  --line-strong: #4a4a6e;
  --text: #e6e6f0;
  --strong: #ffffff;
  --muted: #9e9eb8;
  --faint: #8484a6;
  --accent: #6b5ce7;
  --accent-soft: #8b7cf7;
  --accent-light: #9d90f9;
  --code: #7fd1dc;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --pixel: 'Geist Pixel', var(--mono);
  --width: 1180px;
  --top-h: 52px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--night); overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; background: var(--night); }

a { color: inherit; text-decoration: none; }
a:focus-visible, label:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--code); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--night); }

/* ---- frame ----------------------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem max(var(--gutter), calc((100% - var(--width)) / 2));
  background: rgba(26, 26, 46, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 44, 72, 0.6);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--pixel); font-size: 1.35rem; line-height: 1; color: var(--accent-soft); }
.brand svg { display: block; }
.nav { display: flex; gap: 1.6rem; font-family: var(--mono); font-size: 13px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent-light); }

main { flex: 1; display: flex; flex-direction: column; gap: 7rem; padding-bottom: 6rem; }
main > section, main > figure { width: 100%; max-width: calc(var(--width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- the Geist 2 hero ------------------------------------------------------------------- */

main > .hero {
  max-width: none;
  padding: 2rem max(var(--gutter), calc((100% - var(--width)) / 2));
  margin-bottom: 0;
  /* one screen under the top bar, the content centred with the same space above and below */
  min-height: calc(100vh - var(--top-h)); min-height: calc(100svh - var(--top-h));
  align-content: center;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 3rem;
  background:
    radial-gradient(ellipse 760px 560px at 78% 120px, rgba(107, 92, 231, 0.22), transparent 70%),
    radial-gradient(circle, rgba(139, 124, 247, 0.07) 1px, transparent 1.5px) 0 0 / 24px 24px,
    linear-gradient(var(--bg) 70%, var(--night));
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--accent-light); }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent-soft); }
.soon {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0 0;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem; white-space: nowrap;
  border: 1px solid rgba(139, 124, 247, 0.55); border-radius: 999px;
  background: rgba(107, 92, 231, 0.16);
  font-family: var(--mono); font-size: 13px; color: var(--strong);
}
.soon-dot { width: 8px; height: 8px; background: var(--accent-soft); box-shadow: 0 0 10px var(--accent-soft); animation: soon 1.8s ease-in-out infinite; }
@keyframes soon { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.55); } }

h1 { margin: 0; max-width: 13.5ch; font-family: var(--pixel); font-weight: normal; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--strong); text-wrap: balance; }

.lead { margin: 0; max-width: 34rem; font-size: 1.15rem; color: var(--muted); text-wrap: pretty; }


.meta { margin: 0; font-size: 13px; color: var(--faint); }

.hero-ghost { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.ghost { overflow: visible; }
.ghost .blink { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
.ghost .look { transition: transform 0.25s cubic-bezier(.2, .8, .2, 1); }
.ghost.big { display: block; width: min(100%, 300px); height: auto; filter: drop-shadow(0 0 48px rgba(107, 92, 231, 0.45)); animation: float 4.5s ease-in-out infinite; }
.ghost-shadow { width: 46%; height: 14px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%); animation: shadow 4.5s ease-in-out infinite; }

@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.82); opacity: 0.6; } }


/* ---- motion ---------------------------------------------------------------------------- */

:root { --ease: cubic-bezier(.16, 1, .3, 1); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.rise { animation: rise 1s var(--ease) 0.15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(48px) scale(0.98); } }
.hero-text > * { animation: rise 0.8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.05s; }
.hero-text > :nth-child(3) { animation-delay: 0.1s; }
.hero-text > :nth-child(4) { animation-delay: 0.15s; }
.hero-text > :nth-child(5) { animation-delay: 0.2s; }
.hero-text > :nth-child(6) { animation-delay: 0.25s; }

/* ---- the app in a window --------------------------------------------------------------- */

main > .window { max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.window-bar {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border: 1px solid rgba(139, 124, 247, 0.22); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: linear-gradient(#232340, #1c1c33);
}
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window-bar span:first-child { background: #e5534b; }
.window-bar span:nth-child(2) { background: #e3b341; }
.window-bar span:nth-child(3) { background: #57ab5a; }
.window-bar em { margin-left: auto; margin-right: auto; padding-right: 50px; font-family: var(--pixel); font-style: normal; font-size: 13px; color: var(--faint); }
.window img {
  display: block; width: 100%; height: auto; border-radius: 0 0 12px 12px;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(139, 124, 247, 0.22), 0 0 120px -30px rgba(107, 92, 231, 0.5);
}

/* ---- headings -------------------------------------------------------------------------- */

.title { margin: 0; font-family: var(--sans); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; color: var(--strong); text-wrap: balance; }
.title.small { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.title .px { font-family: var(--pixel); font-weight: normal; letter-spacing: 0; color: var(--accent-light); }
.intro { margin: 1rem 0 0; max-width: 36rem; font-size: 1.1rem; color: var(--muted); }

/* ---- three steps ----------------------------------------------------------------------- */

.step-list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel), var(--night)); transition: border-color 0.3s, transform 0.4s var(--ease); }
.step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.step:nth-child(2) { --d: 0.08s; }
.step:nth-child(3) { --d: 0.16s; }
.step-n { font-family: var(--pixel); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.step h3 { margin: 1.2rem 0 0.4rem; font-size: 1.2rem; font-weight: 600; color: var(--strong); }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.term { margin: 1.2rem 0 0; padding: 0.75rem 0.9rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--night); font-family: var(--mono); font-size: 13.5px; color: var(--text); white-space: pre; }
.term .dim { color: var(--faint); }
.term .acc { color: var(--accent-soft); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--accent-soft); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---- the ghost's moods ----------------------------------------------------------------- */

.moods { text-align: center; }
.mood-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.mood { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.8rem 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.mood:nth-child(2) { --d: 0.06s; }
.mood:nth-child(3) { --d: 0.12s; }
.mood:nth-child(4) { --d: 0.18s; }
.mood svg { width: 72px; height: 80px; overflow: visible; filter: drop-shadow(0 0 22px rgba(107, 92, 231, 0.35)); }
.mood figcaption { font-size: 14px; color: var(--muted); }
.mood strong { display: block; margin-bottom: 0.2rem; font-size: 15px; color: var(--strong); }
.mood .body, .mood .bang, .mood .spark, .mood .scan, .mood .blink { transform-box: fill-box; transform-origin: center bottom; }
.mood .bang { transform-origin: center bottom; }
.waits .body { animation: hop 1.4s var(--ease) infinite; }
.waits .bang { animation: bang 1.4s ease-in-out infinite; }
.working .body { animation: bob 1.2s ease-in-out infinite; }
.working .scan { animation: scan 2.4s steps(1) infinite; }
.done .body { animation: bob 2.4s ease-in-out infinite; }
.done .spark rect { transform-box: fill-box; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.done .spark rect:nth-child(2) { animation-delay: 0.5s; }
.done .spark rect:nth-child(3) { animation-delay: 1s; }
.idle .body { animation: bob 4s ease-in-out infinite; }
.idle .blink { transform-origin: center; animation: blink 4s infinite; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 20% { transform: translateY(-2px); } 35% { transform: translateY(0) scaleY(0.94); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes bang { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-10deg); } 45% { transform: rotate(0); } }
@keyframes scan { 0% { transform: translateX(0); } 50% { transform: translateX(-1px); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.4); opacity: 0.3; } 50% { transform: scale(1.4); opacity: 1; } }

/* ---- bento: panels shaped like their screenshots ---------------------------------------- */
/* 3 columns: the left bar tall on the left, agents and browser right of it, then a wide and a
   narrow panel per row, long sessions across. In each row the tallest screenshot sets the height;
   the others ("fill") take the room they get, cut from the top left like a screenshot. */
.bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
  grid-template-areas:
    "side agents agents"
    "side browser browser"
    "places places places"
    "diff diff wizard"
    "artifacts artifacts commands"
    "tools tools tools"
    "mini mini mini";
}
.t-side { grid-area: side; } .t-agents { grid-area: agents; } .t-browser { grid-area: browser; }
.t-diff { grid-area: diff; } .t-wizard { grid-area: wizard; } .t-artifacts { grid-area: artifacts; }
.t-commands { grid-area: commands; } .t-tools { grid-area: tools; } .t-places { grid-area: places; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color 0.3s, box-shadow 0.4s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(139, 124, 247, 0.14), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.tile:hover { border-color: var(--line-strong); box-shadow: 0 30px 80px -40px rgba(107, 92, 231, 0.55); }
.tile:hover::before { opacity: 1; }
.tile-text { padding: 1.4rem 1.5rem 0; }
.tile h3 { margin: 0 0 0.4rem; font-size: 1.2rem; font-weight: 600; color: var(--strong); }
.tile-text p { margin: 0; font-size: 15px; color: var(--muted); }
/* the screenshot bleeds off the bottom edge */
.tile-art { flex: 1; margin-top: 1.2rem; padding: 0 0 0 1.5rem; }
.tile-art img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; box-shadow: -10px -10px 50px rgba(0, 0, 0, 0.35); transition: transform 0.6s var(--ease); }
.tile:hover .tile-art img { transform: translate(-4px, -4px); }
.tile.fill .tile-art { position: relative; min-height: 110px; }
.tile.fill .tile-art img { position: absolute; top: 0; left: 1.5rem; width: calc(100% - 1.5rem); height: 100%; object-fit: cover; object-position: left top; }
.t-tools { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: end; }
.t-tools .tile-text { align-self: center; padding-bottom: 1.4rem; }
.t-places { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: end; }
.t-places .tile-text { align-self: center; padding-bottom: 1.4rem; }
.mini { grid-area: mini; }
.tile:nth-of-type(even) { --d: 0.08s; }

.mini { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.mini li { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.mini strong { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; font-size: 15px; color: var(--strong); }
.mini strong::before { content: ""; width: 7px; height: 7px; background: var(--accent-soft); }

/* ---- under the hood -------------------------------------------------------------------- */

.inside { display: flex; flex-direction: column; }
.flow { display: flex; align-items: stretch; gap: 0.8rem; margin-top: 2.5rem; }
/* four even blocks: same height and width, the arrows centred between them */
.flow > .node { flex: 1 1 0; min-width: 0; justify-content: flex-start; }
.flow .node .what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow > .arrow { flex: none; align-self: center; }
.node { display: flex; flex-direction: column; min-width: 180px; padding: 1rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); }
.node strong { font-family: var(--mono); font-weight: 500; color: var(--strong); }
.node span { font-size: 14px; color: var(--muted); }
.node.accent { border-color: var(--accent-soft); animation: glow 3s ease-in-out infinite; }
.node.accent strong { color: var(--accent-light); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 24px rgba(107, 92, 231, 0.18); } 50% { box-shadow: 0 0 52px rgba(107, 92, 231, 0.42); } }
.arrow { position: relative; width: 32px; height: 2px; overflow: visible; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 9px); background-size: 9px 2px; animation: flow 0.9s linear infinite; }
/* the agent CLI and provider blocks show their logos; the coming ones dimmed */
.logos { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--night); }
.logo svg { width: 18px; height: 18px; }
.logo.later { opacity: 0.4; border-style: dashed; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--line-strong); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@keyframes flow { to { background-position: 9px 0; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.facts > div { padding: 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.facts > div:nth-child(2) { --d: 0.08s; }
.facts > div:nth-child(3) { --d: 0.16s; }
.facts strong { color: var(--strong); }
.facts p { margin: 0.4rem 0 0; font-size: 15px; color: var(--muted); }

/* ---- closing --------------------------------------------------------------------------- */

.cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.cta h2 { margin: 0; font-family: var(--pixel); font-weight: normal; font-size: clamp(2rem, 4vw, 3rem); color: var(--strong); }
.ghost.mid { width: 96px; height: 96px; filter: drop-shadow(0 0 40px rgba(107, 92, 231, 0.45)); animation: float 4.5s ease-in-out infinite; }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem max(var(--gutter), calc((100% - var(--width)) / 2)) calc(1.6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.foot a { color: var(--accent-light); }

.hero-text { min-width: 0; max-width: 100%; }

/* install per OS (macOS Homebrew, Linux and Windows one-line scripts), switched without script */
.get { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 0.4rem; max-width: 100%; }
.get-tab { position: absolute; opacity: 0; pointer-events: none; }
.get-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--night); font-family: var(--mono); font-size: 12.5px; }
.get-switch label { padding: 0.2rem 0.75rem; border-radius: 5px; color: var(--faint); cursor: pointer; transition: background 0.2s, color 0.2s; }
.get-switch label:hover { color: var(--text); }
#get-mac:checked ~ .get-switch label[for="get-mac"], #get-linux:checked ~ .get-switch label[for="get-linux"], #get-win:checked ~ .get-switch label[for="get-win"] { background: var(--panel-2); color: var(--strong); }
#get-mac:focus-visible ~ .get-switch label[for="get-mac"], #get-linux:focus-visible ~ .get-switch label[for="get-linux"], #get-win:focus-visible ~ .get-switch label[for="get-win"] { outline: 2px solid var(--accent-soft); }
.get .install { display: none; }
#get-mac:checked ~ .get-mac, #get-linux:checked ~ .get-linux, #get-win:checked ~ .get-win { display: flex; animation: rise 0.4s var(--ease) both; }
.install { display: flex; align-items: center; gap: 0.85rem; max-width: 100%; padding: 0.7rem 0.7rem 0.7rem 1.1rem; background: var(--night); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 0 0 4px rgba(107, 92, 231, 0.08); }
.install .prompt { font-family: var(--mono); font-size: 14px; color: var(--accent-soft); }
.install code { min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 15px; color: var(--text); scrollbar-width: none; }
.install .copy { flex: none; padding: 0.3rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--muted); font-family: var(--mono); font-size: 12px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.install .copy:hover { border-color: var(--accent-soft); color: var(--strong); }
.install .copy.done { border-color: #57ab5a; color: #8ddb8c; }

/* ---- device layouts -------------------------------------------------------------------
   Landscape (laptops, tablets on their side, phones on their side): the hero in two columns.
   Portrait up to tablet width (iPhone, Android phones, iPad mini, 11 and 13 inch, Fold):
   one centred column, the ghost on top. Short landscape screens (phones): smaller type and
   ghost so the install line is on the first screen. */

@media (orientation: portrait) and (max-width: 1100px) {
  main > .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.6rem; text-align: center; }
  .hero-text { align-items: center; }
  .hero-text h1, .hero-text .lead { margin-inline: auto; }
  .get { align-items: center; width: 100%; }
  .hero-ghost { order: -1; gap: 0.8rem; }
  .ghost.big { width: 132px; }
}

@media (orientation: landscape) and (max-width: 1280px) {
  main > .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; }
  .ghost.big { width: min(100%, 240px); }
}

@media (orientation: landscape) and (max-height: 540px) {
  main > .hero { padding-block: 1rem; gap: 1.5rem; }
  .hero-text { gap: 0.7rem; }
  .eyebrow { display: none; }
  h1 { max-width: none; font-size: clamp(1.8rem, 3.8vw, 2.4rem); }
  .lead { font-size: 0.95rem; line-height: 1.5; }
  .get-switch { display: none; }
  .ghost.big { width: min(100%, 140px); }
  .hero-ghost { gap: 0.8rem; }
}

@media (max-width: 1100px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow > .node { flex: none; }
  .flow > .arrow { align-self: flex-start; }
  .arrow { width: 2px; height: 20px; margin-left: 1.2rem; background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 9px); background-size: 2px 9px; animation-name: flow-down; }
  .arrow::after { right: -4px; top: auto; bottom: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--line-strong); border-bottom: 0; }
  @keyframes flow-down { to { background-position: 0 9px; } }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "agents" "browser" "places" "diff" "wizard" "artifacts" "commands" "tools" "mini"; }
  .tile.fill .tile-art { position: static; min-height: 0; }
  .tile.fill .tile-art img { position: static; width: 100%; height: auto; }
  .t-side .tile-art img { max-height: 420px; object-fit: cover; object-position: left top; }
  .t-tools, .t-places { display: flex; }
  .t-tools .tile-text, .t-places .tile-text { padding-bottom: 0; }
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mood-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- phone ----------------------------------------------------------------------------- */

@media (max-width: 700px) {
  main { gap: 4.5rem; }
  main > .hero { padding-block: 1.5rem; }
  .ghost.big { width: 96px; }
  @media (orientation: landscape) { main > .hero { padding-block: 1rem; } .ghost.big { width: 110px; } }
  @media (orientation: portrait) {
    main > .hero { padding-block: 1.25rem; gap: 0.9rem; }
    .hero-ghost { gap: 0.4rem; }
    .ghost.big { width: 72px; }
    .ghost-shadow { height: 8px; }
    .hero-text { gap: 0.9rem; }
    .eyebrow { display: none; }
      h1 { max-width: none; font-size: clamp(2.2rem, 10vw, 2.8rem); }
    .lead { font-size: 1rem; line-height: 1.55; }
  }
  .eyebrow { font-size: 12px; }
  .install code { font-size: 13px; }
  .step-list, .facts, .mini { grid-template-columns: minmax(0, 1fr); }
  .mood-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .mood { padding: 1.2rem 0.8rem 1rem; }
  .mood svg { width: 54px; height: 60px; }
  .tile-art { padding: 1.1rem 1.1rem 1.2rem; }
  .window-bar { height: 22px; }
  .window-bar span { width: 8px; height: 8px; }
  .window-bar em { display: none; }
  .nav a:nth-child(n+3) { display: none; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* the coming-soon note sits where the install line goes once Geist 3 ships */
.hero .soon { padding: 0.7rem 1.2rem 0.7rem 1rem; border-radius: 10px; font-size: 14.5px; box-shadow: 0 0 0 4px rgba(107, 92, 231, 0.08); }

/* the note for coding agents: in the page for fetchers, never on screen */
.for-agents { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the second install switch at the end of the page */
#get2-mac:checked ~ .get-switch label[for="get2-mac"], #get2-linux:checked ~ .get-switch label[for="get2-linux"], #get2-win:checked ~ .get-switch label[for="get2-win"] { background: var(--panel-2); color: var(--strong); }
#get2-mac:checked ~ .get2-mac, #get2-linux:checked ~ .get2-linux, #get2-win:checked ~ .get2-win { display: flex; animation: rise 0.4s var(--ease) both; }
.cta .get { align-items: center; margin: 0.6rem auto 0.8rem; }
