@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/assets/fonts/jetbrains-mono-700-normal.woff2) format("woff2"); }

:root {
  --bg: #0B0B10; --bg2: #101017; --panel: #15151D; --panel2: #1B1B25; --border: #262633; --border2: #33334A;
  --text: #ECE9E3; --soft: #B9B6C4; --muted: #8E8C9C;
  --accent: #E08A6A; --accent2: #F2B38F; --violet: #A78BFA; --green: #7CD992; --yellow: #E8C46A; --red: #F28B82;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --r: 14px; --wrap: 1180px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F4F0; --bg2: #EFECE6; --panel: #FFFFFF; --panel2: #F7F5F1; --border: #E2DED6; --border2: #D3CEC4;
    --text: #1E1D24; --soft: #45434F; --muted: #76737F; --accent: #C8643F; --accent2: #B5532F; --violet: #7C5CE0; --green: #2E9A4E; --yellow: #B98A12; --red: #CC3B30;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .88em; padding: .1em .35em; border-radius: 6px; background: var(--panel2); border: 1px solid var(--border); }
kbd { display: inline-block; min-width: 1.7em; padding: .05em .45em; font-size: .82em; text-align: center; border-radius: 6px; background: var(--panel2); border: 1px solid var(--border2); border-bottom-width: 2px; color: var(--text); }
h1, h2, h3 { font-family: var(--mono); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.accent { color: var(--accent); }
.y { color: var(--yellow); } .g { color: var(--green); } .dim { color: var(--muted); } .p { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 14px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.sub { color: var(--soft); max-width: 640px; margin-inline: auto; }
section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #1A1110; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; font: 700 15px var(--mono); border: 1px solid var(--border2); color: var(--text); background: var(--panel); transition: transform .15s, border-color .15s, background .15s, box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #EAA07F); color: #1A1110; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(224, 138, 106, .7); }
.btn.primary:hover { box-shadow: 0 16px 40px -12px rgba(224, 138, 106, .9); }
.btn.ghost { background: transparent; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 17px var(--mono); color: var(--text); }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 22px; margin-left: auto; font: 14px var(--mono); }
.links a { color: var(--soft); }
.links a:hover { color: var(--text); text-decoration: none; }
.gh { min-height: 38px; padding: 0 14px; font-size: 13px; }

/* hero */
.hero { padding-top: clamp(40px, 7vw, 90px); padding-bottom: 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%); opacity: .5; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.g1 { width: 520px; height: 520px; background: var(--accent); top: -160px; left: 8%; }
.g2 { width: 460px; height: 460px; background: var(--violet); top: 40px; right: 2%; opacity: .3; animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 13px var(--mono); color: var(--soft); padding: 6px 14px; border: 1px solid var(--border2); border-radius: 999px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(124, 217, 146, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124, 217, 146, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 217, 146, 0); } }
h1 { font-size: clamp(44px, 7.4vw, 88px); margin: 22px 0 22px; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, #F5C4A1 45%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 600px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.center .ctas { justify-content: center; }
.hero-note { margin-top: 18px; font: 13px var(--mono); color: var(--muted); }
.hero-mascot { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-mascot img { width: clamp(140px, 18vw, 220px); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.bubble { position: relative; margin-bottom: 18px; padding: 12px 16px; min-width: 250px; font: 14px var(--mono); background: var(--panel); border: 1px solid var(--border2); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; background: var(--panel); border-right: 1px solid var(--border2); border-bottom: 1px solid var(--border2); transform: translateX(-50%) rotate(45deg); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; margin-left: 2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.window { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--border2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.win-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: var(--panel2); border-bottom: 1px solid var(--border); font: 12px var(--mono); color: var(--muted); }
.win-bar i, .term-bar i, .mini-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.win-bar i:nth-child(2), .term-bar i:nth-child(2), .mini-dots i:nth-child(2) { background: #FEBC2E; }
.win-bar i:nth-child(3), .term-bar i:nth-child(3), .mini-dots i:nth-child(3) { background: #28C840; }
.win-bar span { margin-left: auto; margin-right: auto; padding-right: 50px; }
.hero-shot { margin-top: 56px; transform: perspective(1600px) rotateX(calc(var(--tilt, 1) * 14deg)) scale(calc(.94 + .06 * (1 - var(--tilt, 1)))); transform-origin: 50% 0; transition: transform .1s linear; position: relative; }
.hero-shot::after { content: ""; position: absolute; inset: auto 10% -60px; height: 120px; background: var(--accent); filter: blur(80px); opacity: .25; z-index: -1; }

/* routine */
.routine { background: linear-gradient(180deg, transparent, var(--bg2)); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.routine p { color: var(--soft); }
.compare { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.term { border-radius: 12px; border: 1px solid var(--border2); background: #0D0D12; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.term-bar { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; background: #15151C; font: 12px var(--mono); color: #8E8C9C; }
.term-bar span { margin-left: 10px; }
.term pre { margin: 0; padding: 14px 16px; font-size: 13.5px; line-height: 1.7; color: #E8E6E1; overflow-x: auto; }
.term .dim { color: #75737F; }
.term.before pre { opacity: .8; }
.term.after { border-color: color-mix(in srgb, var(--accent) 55%, var(--border2)); box-shadow: 0 30px 70px -30px rgba(224, 138, 106, .45); }
.arrow { text-align: center; font: 22px var(--mono); color: var(--accent); }

/* interactive demo */
.mini { position: relative; margin-top: 44px; border-radius: 16px; border: 1px solid var(--border2); background: #0E0E13; color: #E8E6E1; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .85); font: 13px/1.6 var(--mono); }
.mini-top { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #13131A; border-bottom: 1px solid #23232E; }
.mini-dots { display: flex; gap: 7px; }
.mini-title { color: #E8E6E1; font-weight: 700; }
.mini-count { color: #8E8C9C; }
.grow { flex: 1; }
.mini-body { display: grid; grid-template-columns: 210px 1fr 230px; height: 430px; }
.mini-list { list-style: none; margin: 0; padding: 10px 8px; border-right: 1px solid #23232E; background: #101016; overflow: hidden; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #C9C6D2; transition: background .15s; }
.mini-list li:hover { background: #1A1A23; }
.mini-list li.sel { background: #1F1F2A; color: #fff; box-shadow: inset 2px 0 0 #E08A6A; }
.mini-list .ico { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; flex-shrink: 0; }
.mini-list .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .st { font-size: 12px; }
.mini-list .grp { padding: 10px 10px 4px; font-size: 10.5px; letter-spacing: .12em; color: #6E6C7A; cursor: default; }
.mini-list .grp:hover { background: none; }
.mini-term { display: flex; flex-direction: column; min-width: 0; }
.mini-tabs { display: flex; gap: 2px; height: 34px; align-items: flex-end; padding: 0 10px; border-bottom: 1px solid #23232E; }
.mini-tabs span { padding: 6px 12px; border-radius: 8px 8px 0 0; color: #8E8C9C; }
.mini-tabs span.on { color: #E8E6E1; background: #16161E; box-shadow: inset 0 -2px 0 #E08A6A; }
.mini-out { flex: 1; margin: 0; padding: 14px 16px; overflow: hidden; white-space: pre-wrap; word-break: break-word; color: #E8E6E1; }
.mini-out .u { display: block; background: #23232D; padding: 2px 8px; margin: 2px 0 8px; border-radius: 4px; color: #fff; }
.mini-out .b { color: #E08A6A; }
.mini-out .t { color: #7CD992; }
.mini-out .d { color: #7C7A88; }
.mini-out .spin { color: #E08A6A; }
.mini-side { border-left: 1px solid #23232E; padding: 14px; background: #101016; color: #C9C6D2; overflow: hidden; }
.mini-side h4 { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .12em; color: #6E6C7A; font-weight: 400; }
.mini-side .row { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0; }
.mini-side .row > span:first-child { color: #8E8C9C; }
.meter { height: 5px; border-radius: 3px; background: #23232E; margin: 6px 0 12px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #E08A6A, #F2B38F); border-radius: 3px; transition: width .6s; }
.mini-side .sep { height: 1px; background: #23232E; margin: 12px 0; }
.toast { position: absolute; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 10px; background: #1F1F2A; border: 1px solid #E8C46A55; color: #E8E6E1; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); transform: translateY(20px); opacity: 0; transition: .3s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }

/* goals */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.card { position: relative; padding: 24px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.num { font: 700 13px var(--mono); color: var(--accent); }
.card h3 { margin-top: 14px; }
.card p { color: var(--soft); font-size: 15px; margin: 0; }

/* features */
.features { background: var(--bg2); }
.feat { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(56px, 8vw, 110px); }
.feat.flip .feat-copy { order: 2; }
.feat-copy p { color: var(--soft); }
.feat h3 { font-size: clamp(22px, 2.6vw, 30px); }
.tag { display: inline-block; font: 12px var(--mono); letter-spacing: .08em; color: var(--accent); padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; color: var(--soft); font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.zoomable { cursor: zoom-in; transition: transform .3s; }
.zoomable:hover { transform: translateY(-4px) scale(1.01); }
.pair { display: grid; grid-template-columns: .38fr 1fr; gap: 16px; align-items: center; }
.window.tall img { width: 100%; }

/* remote */
.remote { overflow: hidden; }
.remote-bg { position: absolute; inset: 0; background: radial-gradient(600px 400px at 20% 50%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%), radial-gradient(500px 360px at 85% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.remote .two { position: relative; }
.remote p { color: var(--soft); }
.phone { position: relative; justify-self: center; }
/* an iPhone 15 Pro: titanium band, Dynamic Island, status bar, buttons */
.iphone { position: relative; width: min(330px, 76vw); padding: 3.6%; border-radius: 17.5% / 8.1%; background: linear-gradient(135deg, #6E6D73 0%, #3A393F 10%, #1E1E22 45%, #2C2B30 80%, #67666C 100%); box-shadow: inset 0 0 0 1.5px #8A898F, inset 0 0 0 4px #141417, 0 70px 120px -40px rgba(0, 0, 0, .85), 0 30px 60px -30px rgba(0, 0, 0, .6); transition: transform .6s; }
.phone:hover .iphone { transform: translateY(-6px); }
.iphone .hw { position: absolute; width: 1.2%; background: linear-gradient(90deg, #4A494F, #2A292E); border-radius: 2px; }
.iphone .action { left: -1%; top: 17%; height: 4%; }
.iphone .vol-up { left: -1%; top: 24%; height: 7.5%; }
.iphone .vol-down { left: -1%; top: 33%; height: 7.5%; }
.iphone .power { right: -1%; top: 27%; height: 11%; }
.iphone-screen { position: relative; display: flex; flex-direction: column; aspect-ratio: 393 / 852; overflow: hidden; border-radius: 13.6% / 6.3%; background: #13131A; container-type: inline-size; }
.ios-bar { position: relative; flex: none; height: 13.74cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.2cqw 7.5cqw 0 10cqw; color: #fff; font: 600 4.3cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.01em; }
.ios-island { position: absolute; left: 50%; top: 2.8cqw; width: 31.6cqw; height: 9.4cqw; border-radius: 99px; background: #000; transform: translateX(-50%); }
.ios-icons { display: flex; align-items: center; gap: 1.5cqw; }
.ios-icons svg { height: 3.1cqw; width: auto; fill: currentColor; }
.iphone-screen img { width: 100%; height: auto; }
.ios-home { position: absolute; left: 50%; bottom: 2cqw; width: 34cqw; height: 1.3cqw; border-radius: 99px; background: rgba(255, 255, 255, .55); transform: translateX(-50%); }
.ping { position: absolute; bottom: -54px; left: 50%; translate: -50% 0; padding: 10px 14px; font: 13px var(--mono); border-radius: 12px; background: var(--panel); border: 1px solid var(--border2); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); animation: ping 6s ease-in-out infinite; white-space: nowrap; }
@keyframes ping { 0%, 15% { opacity: 0; transform: translateY(10px); } 25%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pills { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.pills li { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--border); font-size: 15px; color: var(--soft); }
.pills b { color: var(--text); font-weight: 600; }

/* security */
.security { background: var(--bg2); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.sec { padding: 26px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); }
.sec .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin-bottom: 16px; }
.sec p { color: var(--soft); font-size: 15px; margin: 0; }

/* shortcuts */
.keys p { color: var(--soft); }
.keys-mascot { margin-top: 24px; animation: float 6s ease-in-out infinite; }
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.kgrid div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); transition: border-color .2s; }
.kgrid div:hover { border-color: var(--accent); }
.kgrid dt { font-family: var(--mono); color: var(--muted); }
.kgrid dd { margin: 0; font-size: 14px; color: var(--soft); }

/* install */
.install { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.steps { list-style: none; padding: 0; margin: 44px auto 0; max-width: 820px; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 17px var(--mono); color: #1A1110; background: linear-gradient(135deg, var(--accent), #EAA07F); }
.steps h3 { margin: 8px 0 10px; }
.code { position: relative; border-radius: 12px; background: #0D0D12; border: 1px solid var(--border2); }
.code pre { margin: 0; padding: 14px 90px 14px 16px; overflow-x: auto; color: #E8E6E1; font-size: 14px; }
.code pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.copy { position: absolute; top: 8px; right: 8px; padding: 6px 12px; font: 12px var(--mono); color: #E8E6E1; background: #1F1F2A; border: 1px solid #33334A; border-radius: 8px; cursor: pointer; }
.copy:hover { border-color: var(--accent); }
.copy.done { color: var(--green); }
.steps .small { margin-top: 8px; }
.then { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; font-size: 18px; color: var(--soft); }
.then p { margin: 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq summary { cursor: pointer; list-style: none; font: 700 17px var(--mono); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); margin: 12px 0 0; }
.faq h2 { margin-bottom: 24px; }

/* final */
.final { overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 400px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); pointer-events: none; }
.final .wrap { position: relative; }
.final img { margin: 0 auto 12px; animation: float 5s ease-in-out infinite; }

.foot { border-top: 1px solid var(--border); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; text-align: right; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 5, 8, .85); backdrop-filter: blur(6px); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 12px; border: 1px solid var(--border2); }
.lb-close { position: fixed; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #33334A; background: #15151D; color: #fff; font-size: 16px; cursor: pointer; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .mini-body { grid-template-columns: 180px 1fr; }
  .mini-side { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .links { display: none; }
  .gh { margin-left: auto; }
  .hero-in, .two, .feat { grid-template-columns: 1fr; }
  .feat.flip .feat-copy { order: 0; }
  .hero-mascot { order: -1; }
  .bubble { min-width: 0; }
  .hero-shot { margin-top: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .mini-body { grid-template-columns: 1fr; height: auto; }
  .mini-list { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #23232E; padding: 8px; }
  .mini-list .grp { display: none; }
  .mini-list li { flex-shrink: 0; }
  .mini-out { height: 300px; }
  .phone { margin-bottom: 56px; }
  .foot p { text-align: left; }
}
@media (max-width: 520px) {
  .cards, .sec-grid, .kgrid { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .window.tall { max-width: 240px; margin: 0 auto; }
  .steps li { grid-template-columns: 1fr; }
  .then { flex-direction: column; text-align: center; }
  .code pre { padding-right: 16px; padding-bottom: 46px; }
  .copy { top: auto; bottom: 8px; }
}

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

/* grid columns shrink below their content's width (long terminal lines scroll inside) */
.hero-in > *, .two > *, .feat > *, .steps li > *, .pair > *, .compare > * { min-width: 0; }
