/* Lupokits marketing site + docs (tokens and components come from brand.css). */
body.site { overflow-x: hidden; }
.site main { display: block; }
:root { --grad-a: #d8ff63; --grad-b: #8ee53f; --grad-c: #f1f4ec; }
:root[data-theme='light'] { --grad-a: #5f9a00; --grad-b: #2f7d12; --grad-c: #0e100c; }

/* ------------------------------------------------------------------ nav */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 68px;
  display: flex; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-nav.scrolled { background: var(--glass); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px); border-bottom-color: var(--line); }
.site-links { display: flex; gap: 4px; margin: 0 auto; }
.site-links a { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.site-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .theme-toggle { margin-right: 6px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 150px 24px 40px; text-align: center; overflow: hidden; }
.aurora { position: absolute; inset: -10% -10% auto; height: 760px; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 620px; height: 420px; left: 18%; top: 4%; background: radial-gradient(circle, rgba(199, 244, 58, .55), transparent 70%); }
.aurora i:nth-child(2) { width: 560px; height: 480px; right: 10%; top: 12%; background: radial-gradient(circle, rgba(109, 220, 46, .35), transparent 70%); animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 520px; height: 360px; left: 40%; top: 34%; background: radial-gradient(circle, rgba(64, 196, 170, .25), transparent 70%); animation-duration: 26s; animation-delay: -12s; }
:root[data-theme='light'] .aurora i { opacity: .55; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 30px) scale(1.12); } 100% { transform: translate(-40px, -20px) scale(.95); } }
.hero-copy { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(10px); color: var(--text-2); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); animation: fadeUp .8s var(--ease) both; }
.pill:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(199, 244, 58, .7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(199, 244, 58, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(199, 244, 58, 0); } }
.headline { margin: 26px 0 0; font-size: clamp(46px, 7.6vw, 108px); font-weight: 700; letter-spacing: -0.058em; line-height: .98; }
.headline .w { display: inline-block; opacity: 0; transform: translate3d(0, .35em, 0); will-change: transform, opacity; animation: wordIn .9s var(--ease) forwards; animation-delay: calc(100ms + var(--d, 0) * 70ms); }
.headline .grad { background: linear-gradient(100deg, var(--grad-a) 0%, var(--grad-b) 48%, var(--grad-c) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.lede { max-width: 680px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); animation: fadeUp 1s .55s var(--ease) both; }
.lede.sm { margin: 18px 0 0; font-size: 17px; max-width: 520px; }
.hero-start {
  display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 34px auto 0; padding: 8px 8px 8px 22px;
  border-radius: 99px; border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(16px);
  box-shadow: var(--shadow); color: var(--muted); animation: fadeUp 1s .7s var(--ease) both; transition: border-color .2s, box-shadow .2s;
}
.hero-start:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 6px var(--brand-soft), var(--shadow); }
.hero-start input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; color: var(--text); font-size: 16px; }
.hero-start .btn { --h: 50px; padding: 0 22px; font-size: 15px; }
.hero-note { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 13.5px; animation: fadeUp 1s .85s var(--ease) both; }
.hero-note .ic { color: var(--brand-text); }
.hero-note span { opacity: .5; }

/* floating stage of live designs */
.stage { position: relative; z-index: 1; height: 560px; max-width: 1240px; margin: 64px auto 0; perspective: 1400px; --mx: 0; --my: 0; }
.tile {
  position: absolute; left: 50%; top: 50%; border-radius: 18px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) rotateY(var(--ry)) rotateZ(var(--rz))
    translate3d(calc(var(--mx) * var(--px) * 1px), calc(var(--my) * var(--px) * 1px), 0);
  animation: rise 1.2s var(--ease) both, bob 7s ease-in-out infinite alternate; animation-delay: calc(.6s + var(--i) * 90ms), calc(var(--i) * -1.1s);
  transition: transform .6s var(--ease);
  will-change: transform, opacity;
}
:root[data-theme='light'] .tile { box-shadow: 0 30px 70px -24px rgba(16, 24, 10, .35), 0 0 0 1px rgba(16, 24, 10, .06); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s; }
.tile.ready img { opacity: 1; }
.tile.t1 { --i: 0; --x: -520px; --y: 40px; --z: -260px; --ry: 22deg; --rz: -4deg; --px: 6; width: 190px; aspect-ratio: 9 / 16; }
.tile.t2 { --i: 1; --x: -350px; --y: -30px; --z: -120px; --ry: 14deg; --rz: -2deg; --px: 10; width: 250px; aspect-ratio: 1; }
.tile.t3 { --i: 2; --x: -180px; --y: 50px; --z: -30px; --ry: 7deg; --rz: -1deg; --px: 14; width: 240px; aspect-ratio: 4 / 5; }
.tile.t4 { --i: 3; --x: 0px; --y: 0px; --z: 80px; --ry: 0deg; --rz: 0deg; --px: 20; width: 270px; aspect-ratio: 9 / 16; z-index: 3; }
.tile.t5 { --i: 4; --x: 180px; --y: 50px; --z: -30px; --ry: -7deg; --rz: 1deg; --px: 14; width: 240px; aspect-ratio: 4 / 5; }
.tile.t6 { --i: 5; --x: 350px; --y: -30px; --z: -120px; --ry: -14deg; --rz: 2deg; --px: 10; width: 250px; aspect-ratio: 1; }
.tile.t7 { --i: 6; --x: 520px; --y: 40px; --z: -260px; --ry: -22deg; --rz: 4deg; --px: 6; width: 190px; aspect-ratio: 9 / 16; }
.tile.t3, .tile.t5 { z-index: 2; }
@keyframes rise { from { opacity: 0; scale: .9; } }
@keyframes bob { from { translate: 0 -8px; } to { translate: 0 10px; } }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 4; pointer-events: none; }

/* ------------------------------------------------------------------ marquee */
.marquee-band { padding: 26px 0 10px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: slide 38s linear infinite; }
.marquee .track span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 600 17px var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.marquee .track span .ic { color: var(--brand-text); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: 120px 24px; }
.section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2, .section h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.05em; line-height: 1.02; }
.sec-head p { max-width: 640px; margin: 18px auto 0; color: var(--text-2); font-size: 18px; }
.soft { color: var(--muted); }
.kicker { display: inline-block; margin-bottom: 16px; color: var(--brand-text); font: 700 13px var(--font); letter-spacing: .12em; text-transform: uppercase; }
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--r, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.b {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 280px; padding: 30px;
  border-radius: 30px; background: var(--surface); border: 1px solid var(--line); isolation: isolate;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.b::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(199, 244, 58, .12), transparent 60%); }
.b:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.b:hover::before { opacity: 1; }
.b h3 { font-size: 24px; letter-spacing: -0.035em; }
.b p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 420px; }
.b-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 6px; }
.b-sizes { grid-column: span 4; grid-row: span 2; min-height: 580px; background: radial-gradient(90% 70% at 100% 100%, rgba(199, 244, 58, .14), transparent 60%), var(--surface); }
.b-sizes .b-copy h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.05em; }
.b-sizes .b-copy p { font-size: 17px; margin-top: 10px; }
.b-ai, .b-import { grid-column: span 2; }
.b-video, .b-brand, .b-kits { grid-column: span 2; }
.sizes { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; margin-top: 24px; }
.size-demo { display: flex; align-items: flex-end; gap: 14px; }
.sd { position: relative; flex: none; display: grid; gap: 8px; text-decoration: none; transition: transform .45s var(--ease); }
.sd .sd-img { display: block; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.sd img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s; }
.sd.ready img { opacity: 1; }
.sd .sd-cap { font-size: 12px; font-weight: 600; color: var(--muted); }
.sd:hover { transform: translateY(-6px); }
.sd0 { width: 26%; }
.sd0 .sd-img { aspect-ratio: 9 / 16; }
.sd1 { width: 33%; }
.sd1 .sd-img { aspect-ratio: 1; }
.sd2 { width: calc(41% - 28px); }
.sd2 .sd-img { aspect-ratio: 1200 / 628; }
.size-list { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.size { display: grid; gap: 7px; justify-items: center; color: var(--muted); font-size: 11.5px; font-weight: 600; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; transition-delay: calc(var(--k) * 45ms); }
.b.in .size { opacity: 1; transform: none; }
.size i { display: block; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--bg-elev); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.size.lit { color: var(--text); }
.size.lit i { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-4px); }
.typing { margin-top: auto; min-height: 112px; padding: 16px 18px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--text-2); }
.typing b { display: block; font: 600 16px var(--display); color: var(--text); margin-bottom: 6px; letter-spacing: -0.02em; }
.typing .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fields { margin-top: auto; display: grid; gap: 8px; }
.fields div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 13.5px; opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fields div span { color: var(--muted); }
.b.in .fields div { opacity: 1; transform: none; }
.b.in .fields div:nth-child(1) { transition-delay: .25s; } .b.in .fields div:nth-child(2) { transition-delay: .45s; }
.b.in .fields div:nth-child(3) { transition-delay: .65s; } .b.in .fields div:nth-child(4) { transition-delay: .85s; }
.fields div:last-child b { color: var(--brand-text); }
.mini-reel { position: relative; margin-top: auto; height: 170px; border-radius: 18px; overflow: hidden; background: #111; }
.mini-reel div { position: absolute; inset: 0; background: center / cover; opacity: 0; animation: reelShot 12s infinite; }
.mini-reel div:nth-child(2) { animation-delay: 4s; } .mini-reel div:nth-child(3) { animation-delay: 8s; }
@keyframes reelShot {
  0% { opacity: 0; transform: scale(1.02) translateX(0); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.16) translateX(-3%); }
  100% { opacity: 0; }
}
.mini-reel::after { content: 'MP4 · 1080×1920'; position: absolute; left: 12px; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(6px); }
.swatches-row { margin-top: auto; display: flex; gap: 10px; }
.swatches-row i { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .3); transition: transform .4s var(--ease); }
.b-brand:hover .swatches-row i { transform: translateY(-6px); }
.b-brand:hover .swatches-row i:nth-child(2) { transition-delay: .05s; } .b-brand:hover .swatches-row i:nth-child(3) { transition-delay: .1s; }
.b-brand:hover .swatches-row i:nth-child(4) { transition-delay: .15s; } .b-brand:hover .swatches-row i:nth-child(5) { transition-delay: .2s; }
.stack { position: relative; margin-top: auto; height: 150px; }
.stack img { position: absolute; bottom: 0; width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform .5s var(--ease); background: var(--surface-2); }
.stack img:nth-child(1) { left: 6%; transform: rotate(-8deg); }
.stack img:nth-child(2) { left: 30%; transform: rotate(0deg) translateY(-10px); z-index: 2; }
.stack img:nth-child(3) { left: 54%; transform: rotate(8deg); }
.b-kits:hover .stack img:nth-child(1) { transform: rotate(-14deg) translateX(-14px); }
.b-kits:hover .stack img:nth-child(2) { transform: translateY(-22px) scale(1.04); }
.b-kits:hover .stack img:nth-child(3) { transform: rotate(14deg) translateX(14px); }

/* template rows */
.templates { padding-left: 0; padding-right: 0; overflow: hidden; }
.templates .sec-head { padding: 0 24px; }
.templates > .rows { max-width: none; }
.rows { display: grid; gap: 22px; }
.row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.row .track { display: flex; gap: 22px; width: max-content; animation: slide 70s linear infinite; padding: 10px 0 24px; }
.row.reverse .track { animation-direction: reverse; animation-duration: 80s; }
.row:hover .track { animation-play-state: paused; }
.shot { flex: none; height: 300px; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); transition: transform .4s var(--ease); position: relative; }
.shot:hover { transform: translateY(-6px) scale(1.02); }
a.shot, a.tile { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.shot .use { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -8px); padding: 8px 14px; border-radius: 99px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s var(--ease); }
.shot:hover .use, .shot:focus-visible .use { opacity: 1; transform: translate(-50%, 0); }
.shot img { height: 100%; width: auto; display: block; opacity: 0; transition: opacity .5s; }
.shot.ready img { opacity: 1; }
.shot figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(8, 9, 7, .62); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.shot:hover figcaption { opacity: 1; transform: none; }

/* video */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.phone { position: relative; justify-self: center; width: 330px; padding: 12px; border-radius: 54px; background: #0c0d0a; box-shadow: 0 0 0 1.5px #2a2e24, 0 50px 120px -30px rgba(0, 0, 0, .7), 0 0 120px -20px rgba(199, 244, 58, .25); }
.phone-screen { aspect-ratio: 9 / 16; border-radius: 42px; overflow: hidden; background: #14170f; }
.phone-notch { position: absolute; top: 24px; left: 50%; width: 92px; height: 26px; border-radius: 99px; background: #0c0d0a; transform: translateX(-50%); }
.motion-list { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.motion-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--text-2); }
.motion-list li > .ic { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-text); }
.motion-list b { color: var(--text); font-weight: 600; }
.motion-list span { padding-top: 6px; }

/* how it works */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-grid article { padding: 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.how-grid .num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); font: 700 20px var(--display); margin-bottom: 22px; }
.how-grid h3 { font-size: 22px; margin-bottom: 10px; }
.how-grid p { margin: 0; color: var(--text-2); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.hl { border-color: var(--brand); background: radial-gradient(120% 80% at 100% 0%, rgba(199, 244, 58, .16), transparent 60%), var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.price-card .tag { position: absolute; top: -12px; left: 28px; }
.price-card h3 { font-size: 22px; }
.price-card .tagline { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.price-card .amount { font: 700 54px/1 var(--display); letter-spacing: -0.05em; }
.price-card .amount small { font: 500 15px var(--font); color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.price-card li .ic { margin-top: 3px; color: var(--brand-text); }
.price-card li.no { color: var(--muted); }
.price-card li.no .ic { color: var(--muted); }

/* api */
.api-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.api .btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.code { margin: 0; padding: 26px 28px; border-radius: 26px; background: #0b0d09; color: #dfe6d6; border: 1px solid rgba(255, 255, 255, .08); font: 13.5px/1.75 var(--mono); overflow-x: auto; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.code .c { color: #7b8572; } .code .s { color: #c7f43a; } .code .f { color: #8fd3ff; }

/* final cta + footer */
.cta-final { position: relative; overflow: hidden; margin: 40px 24px 0; padding: 120px 24px; text-align: center; border-radius: 40px; background: var(--surface); border: 1px solid var(--line); }
.cta-final > *:not(.aurora) { position: relative; z-index: 1; }
.aurora.small { inset: 0; height: auto; }
.cta-mark { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 26px; box-shadow: 0 20px 50px -10px rgba(199, 244, 58, .5); }
.cta-final h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.05em; margin-bottom: 34px; }
.site-footer { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 48px max(24px, calc((100vw - 1200px) / 2)) 56px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer small { flex-basis: 100%; }

/* "Get API access": a small window with the one contact address. */
.contact-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.contact-dialog::backdrop { background: rgba(5, 6, 5, .55); backdrop-filter: blur(6px); }
.contact-dialog[open] { animation: dialogIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.contact-dialog form { position: relative; display: grid; gap: 12px; padding: 30px 28px 26px; }
.contact-dialog .kicker { margin: 0; }
.contact-dialog h3 { margin: 0; padding-right: 36px; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.contact-dialog p { margin: 0 0 6px; color: var(--muted); line-height: 1.55; }
.contact-dialog .mail { color: var(--text); }
.contact-dialog .x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; }
.contact-dialog .x:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .contact-dialog[open] { animation: none; } }

/* ------------------------------------------------------------------ docs */
.docs { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 110px 24px 100px; }
.toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 0 6px; }
.toc a { text-decoration: none; color: var(--text-2); padding: 6px 10px; border-radius: 10px; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.doc h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.05em; margin-bottom: 14px; }
.doc h2 { font-size: 28px; margin: 64px 0 14px; padding-top: 12px; scroll-margin-top: 90px; }
.doc h3 { font-size: 18px; margin: 32px 0 10px; scroll-margin-top: 90px; }
.doc p, .doc li { color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.doc a { color: var(--brand-text); }
.doc code { font: 13.5px var(--mono); background: var(--surface-2); padding: 2px 7px; border-radius: 7px; }
.doc pre { background: #0b0d09; color: #dfe6d6; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 20px 22px; overflow-x: auto; font: 13px/1.7 var(--mono); }
.doc pre code { background: none; padding: 0; color: inherit; }
.endpoint { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 600 15px var(--mono); margin: 30px 0 8px; scroll-margin-top: 90px; }
.verb { font: 700 11.5px var(--font); padding: 4px 9px; border-radius: 8px; color: var(--ink); letter-spacing: .04em; }
.get { background: var(--lime); } .post { background: #8fd3ff; } .patch { background: #f5b544; }
.auth-tag { font: 600 12px var(--font); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 2px 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.callout { border: 1px solid var(--brand-line); background: var(--brand-soft); border-radius: 18px; padding: 16px 20px; margin: 20px 0; color: var(--text-2); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.keys { display: none; }
.keys.on { display: block; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-sizes { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .b-ai, .b-import, .b-video, .b-brand, .b-kits { grid-column: span 1; }
  .stage { transform: scale(.8); margin-top: 20px; }
  .split, .api-split { grid-template-columns: 1fr; gap: 56px; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 860px) {
  .site-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn.ghost { display: none; }
  .hero { padding-top: 120px; }
  .hero-start { flex-wrap: wrap; border-radius: 26px; padding: 10px; }
  .hero-start > .ic { display: none; }
  .hero-start input { padding: 0 12px; }
  .hero-start .btn { width: 100%; }
  .stage { height: 380px; transform: scale(.56); margin: -40px auto -80px; }
  .section { padding: 84px 20px; }
  .bento, .how-grid { grid-template-columns: 1fr; }
  .b-sizes, .b-ai, .b-import, .b-video, .b-brand, .b-kits { grid-column: auto; }
  .shot { height: 220px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 96px 16px 80px; }
  .doc table { display: block; overflow-x: auto; }
  .toc { position: static; }
  .cta-final { margin: 20px 12px 0; padding: 80px 20px; border-radius: 30px; }
}
@media (max-width: 480px) {
  .site-nav { gap: 10px; padding: 0 14px; }
  .site-nav .logo b { display: none; }
  .nav-actions .theme-toggle { margin-right: 0; }
  .pill { font-size: 12.5px; }
  .hero-note { font-size: 12.5px; }
}

/* phones: the section links open from a menu button (js/site/landing.js) */
.nav-menu, .site-links .menu-only { display: none; }
@media (max-width: 860px) {
  .nav-menu { display: inline-grid; flex: none; }
  .site-nav.menu-open { background: var(--glass); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px); border-bottom-color: var(--line); }
  .site-nav.menu-open .site-links {
    position: fixed; top: 76px; left: 12px; right: 12px; display: grid; gap: 2px; margin: 0; padding: 10px;
    border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: popIn .22s var(--ease);
  }
  .site-nav.menu-open .site-links a { padding: 13px 14px; border-radius: 14px; font-size: 16px; font-weight: 600; color: var(--text); }
  .site-nav.menu-open .site-links .menu-only { display: block; }
}
