/* Takes: gettakes.app. Brand kit 2026-10-02: Cloud White, Deep Navy #102A56, Clear Blue #3B82F6,
   Mist Gray #E7ECF4, Fresh Mint #DFF7E9. Nunito for headings, Inter for everything else. */

@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-VF.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --white: #ffffff;
  --paper: #f7f9fc;
  --mist: #e7ecf4;
  --navy: #102a56;
  --ink: #0d1c3a;
  --muted: #55627a;
  --faint: #8b96ab;
  --blue: #3b82f6;
  --blue-ink: #2563eb;
  --blue-soft: #e3eeff;
  --mint: #dff7e9;
  --mint-ink: #16a36a;
  --night: #0a1428;
  --night-2: #101f3d;
  --night-line: rgba(255, 255, 255, .08);
  --on-night: #e9eef8;
  --on-night-muted: #9aa8c4;
  --danger: #e5484d;

  --bg: var(--paper);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --panel-m: clamp(8px, 1.2vw, 18px);
  --panel-r: clamp(26px, 3.4vw, 48px);
  --shadow: 0 1px 2px rgba(16, 42, 86, .06), 0 12px 32px -8px rgba(16, 42, 86, .16);
  --shadow-lg: 0 2px 4px rgba(16, 42, 86, .06), 0 40px 100px -20px rgba(16, 42, 86, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.55; color: var(--ink);
  background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
::selection { background: var(--blue); color: #fff; }

/* Film grain over everything, very quiet */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* Cursor follower: desktop only */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
.cursor-dot {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, .55); background: rgba(59, 130, 246, .06);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-link .cursor-dot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(59, 130, 246, .12); border-color: transparent; }
.cursor.on-dark .cursor-dot { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); }
@media (pointer: fine) { .cursor { display: block; opacity: 0; transition: opacity .3s; } .cursor.is-on { opacity: 1; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 90; translate: -50% 0;
  width: min(calc(100% - 2 * var(--gutter)), 1120px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(16, 42, 86, .07);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 8px 30px -12px rgba(16, 42, 86, .18);
  transition: transform .5s var(--ease), background .4s, border-color .4s, color .4s;
}
.nav.is-hidden { transform: translateY(-140%); }
.nav.on-dark { background: rgba(14, 26, 52, .6); border-color: rgba(255, 255, 255, .08); color: var(--on-night); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: "Nunito"; font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .72; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.gh { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; opacity: .75; transition: opacity .2s, background .2s; }
.gh:hover { opacity: 1; background: rgba(16, 42, 86, .06); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15.5px; background: var(--navy); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(16, 42, 86, .6);
  transition: background .25s, box-shadow .25s;
}
.btn:hover { background: var(--blue-ink); box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .6); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(16, 42, 86, .14); }
.btn-ghost:hover { background: #fff; color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, .4); }
.magnetic > * { pointer-events: none; }

.cmd {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 18px;
  border-radius: 999px; background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(16, 42, 86, .1), 0 12px 30px -14px rgba(16, 42, 86, .35);
  transition: box-shadow .3s, background .3s;
}
.cmd:hover { box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, .5), 0 16px 36px -14px rgba(37, 99, 235, .45); }
.cmd code { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.cmd-prompt { color: var(--blue); font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.cmd-copy {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-ink); font-size: 13.5px; font-weight: 600;
  transition: background .3s, color .3s;
}
.cmd.is-copied .cmd-copy, .term-copy.is-copied { background: var(--mint); color: var(--mint-ink); }
.cmd-dark { background: rgba(255, 255, 255, .06); color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.cmd-dark .cmd-copy { background: var(--blue); color: #fff; }
.cmd-dark:hover { box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, .7); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .01em; color: var(--blue-ink); margin-bottom: 18px;
}
.eyebrow.on-dark { color: #7fb0ff; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-ink); box-shadow: 0 0 0 4px rgba(22, 163, 106, .15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(22, 163, 106, 0); } }
.section-title {
  font-family: "Nunito"; font-weight: 900; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(38px, 5.6vw, 76px); color: var(--navy); text-wrap: balance;
}
.dark .section-title, .footer-title { color: #fff; }
.section-sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted); max-width: 640px; text-wrap: pretty; }
.dark .section-sub { color: var(--on-night-muted); }
.section-sub code { font-size: .88em; padding: 2px 7px; border-radius: 7px; background: rgba(59, 130, 246, .12); color: inherit; }
.section-head { width: min(100%, var(--max)); margin: 0 auto; padding: 0 var(--gutter); }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center .section-title { max-width: 980px; }

/* SplitText masks */
.split-line { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 16vh, 170px) 0 0; isolation: isolate; }
.blobs { position: absolute; inset: 0 0 auto; height: 120vh; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.b1 { width: 620px; height: 620px; background: #cfe0ff; top: -160px; right: -120px; animation: drift1 18s ease-in-out infinite; }
.b2 { width: 480px; height: 480px; background: var(--mint); top: 260px; left: -160px; animation: drift2 22s ease-in-out infinite; }
.b3 { width: 360px; height: 360px; background: #e9e3ff; top: 120px; left: 38%; opacity: .5; animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(-60px, 50px) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(70px, -40px) scale(.94); } }

.hero-grid {
  width: min(100%, var(--max)); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.45fr .8fr; align-items: center; gap: 24px;
}
.hero-title { font-family: "Nunito"; font-weight: 900; color: var(--navy); letter-spacing: -.045em; line-height: .98; font-size: clamp(48px, 6.3vw, 100px); }
.hero-title .line { display: block; }
/* Room inside each word mask, so round letters and the dot never touch its edge. */
.hero-title [class*="mask"] { padding: .1em .06em .14em; margin: -.1em -.06em -.14em; }
.accent-line { background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 55%, #59a2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-line .split-char, .accent-line .split-word { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero-sub { margin-top: 26px; font-size: clamp(17.5px, 1.6vw, 20px); color: var(--muted); max-width: 560px; text-wrap: pretty; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 18px; font-size: 13.5px; color: var(--faint); font-weight: 500; }

.mascot-wrap { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1; }
.mascot { position: relative; width: 100%; height: 100%; transform-origin: 50% 88%; will-change: transform; cursor: grab; }
.mascot img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 30px 40px rgba(16, 42, 86, .16)); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eye { fill: #12285a; }
.glint { fill: #fff; opacity: .9; }
.eyes-open, .eyes-happy { transition: opacity .16s ease; }
.eyes-happy path, .smile { fill: none; stroke: #12285a; stroke-width: 11; stroke-linecap: round; }
.eyes-happy { opacity: 0; }
.cheek { fill: #ffb7c6; opacity: .0; transition: opacity .4s; }
.mascot.is-happy .cheek { opacity: .55; }
.mascot.is-happy .eyes-open { opacity: 0; }
.mascot.is-happy .eyes-happy { opacity: 1; }
.mascot-shadow { position: absolute; left: 22%; right: 22%; bottom: 3%; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 42, 86, .22), transparent); z-index: -1; }
.spark { position: absolute; width: 26px; height: 6px; border-radius: 6px; background: var(--blue); opacity: 0; }
.s1 { top: 18%; right: 6%; rotate: -48deg; }
.s2 { top: 26%; right: 0; rotate: -18deg; }
.s3 { top: 36%; right: 3%; rotate: 12deg; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mascot-wrap { order: -1; width: 190px; margin-bottom: 4px; justify-self: start; }
}

/* Stage: the app window that tilts up */
.stage { position: relative; width: min(calc(100% - 2 * var(--gutter)), 1200px); margin: clamp(56px, 9vh, 100px) auto 0; perspective: 1600px; }
.window {
  position: relative; border-radius: 16px; overflow: hidden; background: #161618;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16, 42, 86, .1);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1e1e21; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.window-hero { transform-origin: 50% 0; will-change: transform; }
.toast {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: 14.5px; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.toast img { width: 30px; height: 30px; }
.toast b { font-weight: 700; }
.toast.mint { background: var(--mint); color: #0f7a4e; }
.toast .star { color: #f5a524; font-size: 17px; }
.toast .check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-ink); color: #fff; font-size: 12px; }
.toast .num { font-family: "Nunito"; font-weight: 900; font-size: 18px; color: var(--blue-ink); min-width: 1.2em; text-align: right; }
.t1 { top: 8%; left: -3%; }
.t2 { top: 34%; right: -3%; }
.t3 { bottom: 16%; left: -2%; }
.t4 { bottom: -4%; right: 12%; }
@media (max-width: 700px) {
  .toast { font-size: 12.5px; padding: 7px 12px 7px 9px; }
  .toast img { width: 22px; height: 22px; }
  .t1 { left: 2%; top: -6%; } .t2 { right: 2%; } .t3 { left: 2%; } .t4 { right: 4%; }
}

/* ---------- Marquee ---------- */
.marquee { margin-top: clamp(80px, 12vh, 140px); padding: 26px 0; overflow: hidden; border-block: 1px solid rgba(16, 42, 86, .08); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-row { display: flex; align-items: center; gap: 38px; padding-right: 38px; flex-shrink: 0; }
.marquee-row span { font-family: "Nunito"; font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.03em; color: var(--navy); white-space: nowrap; }
.marquee-row span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.marquee-row i { font-style: normal; color: var(--blue); font-size: 26px; }

/* ---------- Dark sections ---------- */
.dark { color: var(--on-night); background: var(--night); margin-inline: var(--panel-m); border-radius: var(--panel-r); }
.footer.dark { border-radius: var(--panel-r) var(--panel-r) 0 0; margin-bottom: 0; }

/* ---------- Flow (pinned) ---------- */
.flow { position: relative; }
.flow-inner {
  width: min(100%, 1320px); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 100vh; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.flow .section-title { font-size: clamp(34px, 3.8vw, 54px); }
.steps { list-style: none; margin-top: 40px; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 6px; padding: 18px 18px 18px 14px; border-radius: 18px; opacity: .38; transition: opacity .5s var(--ease), background .5s var(--ease); }
.step.is-active { opacity: 1; background: rgba(255, 255, 255, .045); }
.step-num { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #7fb0ff; padding-top: 6px; }
.step h3 { font-family: "Nunito"; font-weight: 800; font-size: 25px; letter-spacing: -.02em; color: #fff; }
.step p { margin-top: 4px; font-size: 15.5px; color: var(--on-night-muted); }
.flow-progress { margin-top: 26px; height: 3px; border-radius: 3px; background: var(--night-line); overflow: hidden; }
.flow-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), #7fb0ff); transform-origin: 0 50%; transform: scaleX(0); }
.window-flow { box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.flow-frames { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow-tab { transition: opacity .3s; }
@media (max-width: 900px) {
  .flow-inner { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 60px; }
}

/* ---------- Sketches ---------- */
.sketches { position: relative; padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); overflow: hidden; }
.strip { margin-top: clamp(48px, 7vh, 72px); }
.strip-track {
  --shot: clamp(200px, 18vw, 250px);
  display: grid; grid-template-columns: repeat(7, var(--shot)); column-gap: 20px; row-gap: 18px;
  width: max-content; padding: 0 var(--gutter); will-change: transform;
}
.shot { position: relative; margin: 0; aspect-ratio: 928 / 1152; border-radius: 16px; overflow: hidden; background: #f3f1ec;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 48px -30px rgba(16, 42, 86, .4); transition: translate .5s var(--ease); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after { content: attr(data-time); position: absolute; right: 10px; bottom: 10px; font: 600 11px ui-monospace, Menlo, monospace; color: var(--blue-ink); background: rgba(255, 255, 255, .88); padding: 3px 7px; border-radius: 6px; }
@media (hover: hover) { .shot:hover { translate: 0 -6px; } }
.act { padding-top: 10px; border-top: 2px solid rgba(16, 42, 86, .18); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.act-hook { border-color: var(--blue); color: var(--blue-ink); }
.act-end { border-color: var(--navy); color: var(--navy); }

/* ---------- Chat ---------- */
.chat-section { padding: clamp(110px, 16vh, 180px) 0; }
.chat-grid { width: min(100%, var(--max)); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stats { margin-top: 44px; display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.stat b { display: block; font-family: "Nunito"; font-weight: 900; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; color: #fff; }
.stat span { font-size: 14px; color: var(--on-night-muted); }
.chat-panel {
  border-radius: 22px; background: #1c1c1f; border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .75); overflow: hidden; color: #ececef;
  font-size: 14.5px;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chat-head img { border-radius: 7px; }
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 12.5px; color: #8e8e96; }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; min-height: 560px; }
.msg { max-width: 92%; line-height: 1.5; }
.msg.user { align-self: flex-end; background: #f3f3f5; color: #1b1b1f; padding: 9px 14px; border-radius: 16px 16px 4px 16px; font-weight: 500; }
.msg.bot { align-self: flex-start; }
.tool { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8e8e96; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: #7fb0ff; animation: spin .8s linear infinite; }
.tool.is-done .spin { animation: none; border-color: var(--mint-ink); background: var(--mint-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.clip { position: relative; width: 190px; border-radius: 14px; overflow: hidden; background: #2a2a2e; }
.clip img { aspect-ratio: 9 / 13; object-fit: cover; width: 100%; }
.play { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: rgba(20, 20, 22, .75); }
.play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.clip-meta { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 12px; color: #8e8e96; }
.clip-meta b { color: #ececef; }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); color: #77777f; font-size: 14px; }
.chat-input i { width: 26px; height: 26px; border-radius: 50%; background: #2c2c30; }
.caret-inline { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #7fb0ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .chat-grid { grid-template-columns: 1fr; } .chat-body { min-height: 0; } }

/* ---------- Platforms ---------- */
.platforms { position: relative; overflow: hidden; }
.platforms-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 40px; }
.rail { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 40px var(--gutter) 10px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
.pcard {
  position: relative; width: clamp(300px, min(52vw, calc((100vh - 400px) * 1.6)), 760px); flex-shrink: 0; border-radius: 18px; overflow: hidden;
  background: #161618; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16, 42, 86, .08);
}
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ptag {
  position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.li { background: #0a66c2; } .dot.x { background: #111; } .dot.yt { background: #ff0033; } .dot.vt { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
@media (max-width: 900px) {
  .platforms-pin { min-height: 0; }
  .rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }
  .pcard { width: 84vw; scroll-snap-align: center; }
}

/* ---------- Features ---------- */
.bento-section { padding: clamp(80px, 12vh, 140px) 0; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(1080px, 100% - 2 * var(--gutter)); margin: 56px auto 0; }
.feat { padding: 28px 26px 30px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 42, 86, .06), 0 18px 40px -30px rgba(16, 42, 86, .35); }
.feat-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.feat h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; letter-spacing: -.015em; color: var(--navy); }
.feat p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; gap: 10px; } .feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; } .feat-ico { grid-row: span 2; margin: 0; } }

/* ---------- Folders ---------- */
.folders { padding: clamp(110px, 16vh, 180px) 0; }
.diagram { position: relative; width: min(calc(100% - 2 * var(--gutter)), 1000px); margin: 70px auto 0; aspect-ratio: 1000 / 340; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: rgba(127, 176, 255, .45); stroke-width: 2; stroke-dasharray: 6 8; }
.pulse { fill: #7fb0ff; filter: drop-shadow(0 0 6px #7fb0ff); }
.pulse.mint { fill: #4fd69a; filter: drop-shadow(0 0 6px #4fd69a); }
.node {
  position: absolute; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 22px 18px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.node b { font-size: 16px; color: #fff; }
.node span { font-size: 13px; color: var(--on-night-muted); }
.node img { border-radius: 13px; }
.n-app { left: 0; width: 21%; }
.n-claude { right: 0; width: 21%; }
.claude-mark { font-size: 40px !important; line-height: 56px; color: #d97757 !important; }
.n-lib { left: 50%; translate: -50% -50%; width: 30%; align-items: stretch; text-align: left; }
.n-lib b { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.tree { margin-top: 8px; min-height: 9.2em; font-size: 12.5px; line-height: 1.6; color: #b9c6e0; white-space: pre; overflow: hidden; }
.tree .t-dir { color: #7fb0ff; }
.tree .t-new { color: #4fd69a; }
.wire-label { position: absolute; font: 600 11.5px ui-monospace, Menlo, monospace; color: #7fb0ff; letter-spacing: .02em; translate: -50% 0; }
.l1 { left: 31%; top: 40%; }
.l2 { left: 69%; top: 40%; }
.l3 { left: 50%; top: calc(100% + 10px); color: #4fd69a; }
@media (max-width: 960px) {
  .diagram { aspect-ratio: auto; display: grid; gap: 14px; }
  .wires, .wire-label { display: none; }
  .node, .n-lib { position: relative; inset: auto; translate: none; width: 100%; }
}

/* ---------- Install ---------- */
.install { padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 10vh, 120px); }
.terminal {
  position: relative; width: min(calc(100% - 2 * var(--gutter)), 860px); margin: 60px auto 0; border-radius: 16px; overflow: hidden;
  background: #101114; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16, 42, 86, .1);
}
.term-body { padding: 22px 24px 30px; min-height: 330px; font: 14.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: #e8e8ea; }
.term-prompt { color: #4fd69a; }
.term-cmd { color: #fff; }
.caret { display: inline-block; width: 9px; height: 1.15em; vertical-align: -3px; background: #e8e8ea; animation: blink 1s steps(1) infinite; }
.term-out { margin-top: 6px; }
.term-out p { opacity: 0; color: #c8c8cc; }
.term-out p b { color: #fff; }
.term-out .done b { color: #4fd69a; }
.term-out .bar { height: 1.7em; display: flex; align-items: center; }
.term-out .bar span { display: block; height: 8px; width: 0; border-radius: 2px; background: linear-gradient(90deg, #3b82f6, #7fb0ff); }
.term-copy { position: absolute; right: 14px; top: 46px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.term-copy:hover { background: var(--blue); }
.install-notes { width: min(calc(100% - 2 * var(--gutter)), 860px); margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.note { padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 42, 86, .07); font-size: 14.5px; color: var(--muted); }
.note b { display: block; margin-bottom: 4px; color: var(--navy); font-size: 15px; }
.note a { color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.note code { font-size: 12.5px; background: var(--paper); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 800px) { .install-notes { grid-template-columns: 1fr; } .term-copy { position: static; margin: 0 24px 22px; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 10vh, 120px) 0 clamp(110px, 16vh, 180px); }
.faq-list { width: min(calc(100% - 2 * var(--gutter)), 820px); margin: 48px auto 0; display: grid; gap: 10px; }
details { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 42, 86, .07); overflow: hidden; transition: box-shadow .3s; }
details[open] { box-shadow: 0 0 0 1.5px rgba(59, 130, 246, .35), 0 16px 40px -24px rgba(37, 99, 235, .4); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 17px; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--blue-ink); font-size: 20px; font-weight: 500; transition: transform .45s var(--spring), background .3s; }
details[open] summary::after { transform: rotate(135deg); background: var(--blue-soft); }
.answer { padding: 0 22px 22px; color: var(--muted); font-size: 16px; }
.answer a { color: var(--blue-ink); font-weight: 600; }
.answer code { font-size: .88em; background: var(--paper); padding: 1px 6px; border-radius: 6px; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: clamp(110px, 16vh, 170px) 0 0; }
.footer-cta { width: min(100%, var(--max)); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 34px; }
.footer-title { font-family: "Nunito"; font-weight: 900; letter-spacing: -.045em; line-height: 1; font-size: clamp(44px, 7vw, 104px); max-width: 1000px; text-wrap: balance; }
.peek { position: relative; height: clamp(190px, 26vw, 340px); margin-top: 60px; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.mascot-peek { width: clamp(240px, 34vw, 440px); height: auto !important; aspect-ratio: 1; flex-shrink: 0; transform-origin: 50% 100%; }
.footer-bar {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 22px var(--gutter) 28px; border-top: 1px solid var(--night-line); background: var(--night);
}
.brand.on-dark { color: #fff; font-size: 18px; }
.footer-bar nav { display: flex; gap: 22px; font-size: 14.5px; }
.footer-bar nav a { text-decoration: none; color: var(--on-night-muted); transition: color .2s; }
.footer-bar nav a:hover { color: #fff; }
.fine { font-size: 13px; color: #6b7a98; }
.footer-bar .brand { justify-self: start; }
.footer-bar .fine { justify-self: end; text-align: right; }
@media (max-width: 760px) { .footer-bar { grid-template-columns: 1fr; justify-items: center; gap: 14px; } .footer-bar .brand, .footer-bar .fine { justify-self: center; text-align: center; } }

/* Copied toast */
.toast-copied {
  position: fixed; left: 50%; bottom: 28px; z-index: 110; translate: -50% calc(100% + 60px);
  padding: 12px 20px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 18px 40px -12px rgba(16, 42, 86, .55); transition: translate .55s var(--spring), visibility 0s .55s; visibility: hidden;
}
.toast-copied.is-on { translate: -50% 0; visibility: visible; transition: translate .55s var(--spring), visibility 0s; }

/* Reveal defaults (JS sets them up; without JS everything shows) */
html.js .reveal-up { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal-up { opacity: 1; transform: none; }
  .term-out p { opacity: 1; }
  .term-out .bar span { width: 70%; }
}
.nav.on-dark .btn { background: var(--blue); }
.nav.on-dark .btn:hover { background: #fff; color: var(--navy); }
.nav.on-dark .gh:hover { background: rgba(255, 255, 255, .08); }
.hero-grid > *, .chat-grid > *, .flow-inner > * { min-width: 0; }
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cmd { width: 100%; justify-content: space-between; padding-left: 14px; gap: 8px; }
  .cmd code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .cmd-copy svg { display: none; }
  .btn-ghost { align-self: flex-start; }
  .footer-cta .cmd { width: auto; max-width: 100%; }
  .stats { gap: 22px; }
  .term-body { font-size: 12.5px; padding: 18px 16px 24px; }
}
@media (max-width: 420px) { .cmd-prompt { display: none; } .cmd code { font-size: 12px; } .cmd-copy { padding: 0 11px; } }

/* Flow on phones and tablets: the window sticks under the title, the steps scroll past it */
@media (max-width: 900px) {
  .flow-inner { gap: 0; padding-top: 72px; padding-bottom: 56px; min-height: 0; }
  .flow-copy { display: contents; }
  .flow-visual {
    order: 3; position: sticky; top: 0; z-index: 2; margin-top: 4px; padding: 56px 0 18px;
    background: linear-gradient(to bottom, var(--night) calc(100% - 18px), rgba(10, 20, 40, 0));
  }
  .flow .steps { order: 4; margin-top: 8px; gap: 10px; padding-bottom: 14vh; }
  .flow-progress { display: none; }
  .step { padding: 16px 14px 16px 10px; grid-template-columns: 38px 1fr; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 15px; }
}

/* Storyboard strip on phones: swipe it */
@media (max-width: 759px) {
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .strip::-webkit-scrollbar { display: none; }
  .strip-track { --shot: 58vw; column-gap: 12px; scroll-padding: 0 var(--gutter); }
  .shot { scroll-snap-align: center; border-radius: 12px; }
}


/* SplitText: hide until the text is split, so nothing flashes */
html.js [data-split] { visibility: hidden; }
html.js .hero .mascot-wrap, html.js .stage { visibility: hidden; }
