@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --line-strong: #d2d2d7;
  --accent: #32de84;         /* GitDroid green, same as the logo */
  --accent-ink: #0b7a43;     /* brand green dark enough for text on white */
  --accent-tint: #e6faf0;    /* pale brand background */
  --lime: var(--accent);
  --green: var(--accent-ink);
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid transparent; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 17px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333336; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.link { color: var(--green); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .8); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgb(0 0 0 / .08); }
.nav { height: 52px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand img { border-radius: 6px; }
.brand-sm { font-size: 14px; }
.brand-sm img { border-radius: 5px; }
.nav-links { display: flex; gap: 32px; font-size: 13px; color: var(--ink-2); letter-spacing: -0.01em; }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .footer-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-signin { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 980px; font-size: 13px; font-weight: 500; color: var(--ink); background: #fff; transition: border-color .2s, background-color .2s; }
.nav-signin:hover { border-color: var(--ink); background: var(--tint); }
.brand-accent { color: #16a35c; }

/* Hero */
.hero { padding: 72px 0 0; }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 .hl { color: #16a35c; }
.hero h1 { text-wrap: balance; max-width: 17ch; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.04; letter-spacing: -0.026em; font-weight: 700; }
.lede { margin-top: 20px; max-width: 34em; font-size: 21px; line-height: 1.45; color: var(--muted); letter-spacing: -0.02em; }
.hero-text > * { animation: rise .9s var(--ease) both; }
.hero-text > .lede { animation-delay: .08s; }
.hero-text > .repo-form { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.repo-form { margin-top: 36px; width: min(560px, 100%); }
.repo-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; background: #fff; border: 1px solid var(--line-strong); border-radius: 980px; box-shadow: 0 2px 6px rgb(0 0 0 / .04), 0 12px 32px -12px rgb(0 0 0 / .12); transition: border-color .2s, box-shadow .2s; }
.repo-field:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgb(50 222 132 / .25), 0 12px 32px -12px rgb(0 0 0 / .12); }
.repo-icon { color: var(--muted); flex-shrink: 0; }
.repo-field input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 4px; font: 15px var(--mono); letter-spacing: 0; outline: none; }
.repo-field input::placeholder { color: #a1a1a6; }
.repo-field input[aria-invalid=true] { color: #c0392b; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-more { display: inline-flex; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.hero-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-error { margin-top: 12px; font-size: 14px; color: #c0392b; }
.form-error:empty { display: none; }

/* Hero scene: isometric phone with a floating commit card.
   --s scales the whole scene; the unscaled scene is 700px tall with the phone centred 350px down. */
.scene { --s: .64; position: relative; height: calc(660px * var(--s)); margin-top: 20px; animation: rise 1.1s .22s var(--ease) both; }
.iso { position: absolute; left: 50%; top: calc(345px * var(--s)); width: 0; height: 0; transform: scale(var(--s)) rotate(-30deg) skewX(30deg); }
.iso-float { z-index: 5; transform: translateY(calc(-56px * var(--s))) scale(var(--s)) rotate(-30deg) skewX(30deg); animation: hover 6s var(--ease) infinite; }
@keyframes hover { 50% { transform: translateY(calc(-70px * var(--s))) scale(var(--s)) rotate(-30deg) skewX(30deg); } }
.float-shadow { position: absolute; z-index: 5; left: 82px; top: -100px; width: 420px; height: 190px; background: rgb(0 0 0 / .14); border-radius: 26px; filter: blur(20px); }
.update-card { position: absolute; left: 140px; top: -150px; width: 420px; padding: 26px 30px; background: rgb(255 255 255 / .97); border-radius: 30px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); font-size: 25px; }
.update-card .uc-row > svg { width: 26px; height: 26px; }
.uc-row { display: flex; align-items: center; gap: 10px; }
.uc-row b { font-weight: 600; letter-spacing: -0.02em; }
.uc-commit { margin-left: auto; display: flex; align-items: center; gap: 10px; font: 500 19px var(--mono); color: var(--muted); }
.uc-branch { padding: 2px 9px; background: var(--accent-tint); color: var(--accent-ink); border-radius: 980px; }
.uc-arrow { display: grid; place-items: center; width: 26px; margin: 10px 0; color: #a1a1a6; }
.uc-arrow svg { width: 22px; height: 22px; }
.uc-done { color: var(--accent-ink); }
.uc-done .tick { width: 26px; height: 26px; background-size: 17px; }

/* Desktop: size the phone by viewport height so the whole scene sits above the fold. */
@media (min-width: 1061px) and (max-height: 1100px) { .scene { --s: .58; } }
@media (min-width: 1061px) and (max-height: 980px) { .hero { padding-top: 44px; } .repo-form { margin-top: 30px; } .scene { --s: .5; margin-top: 12px; } }
@media (min-width: 1061px) and (max-height: 860px) { .hero { padding-top: 36px; } .hero h1 { font-size: 58px; } .lede { font-size: 19px; } .repo-form { margin-top: 28px; } .scene { --s: .42; margin-top: 20px; } }

/* Framework strip */
.stack { padding: 32px 0 36px; }
.stack-label { margin-bottom: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.marquee ul { display: flex; flex-shrink: 0; align-items: flex-start; gap: 56px; margin: 0; padding: 8px 56px 8px 0; list-style: none; animation: marquee 45s linear infinite; }
.marquee li { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 72px; }
.logo-name { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.logo { display: block; width: 40px; height: 40px; background: var(--brand); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Scroll reveal (class added by landing.js, so content stays visible without JS) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--tint); }
/* Background: crisp green circles, squircles and rounded triangles wandering slowly along looping paths. */
/* Shapes live only in the side margins. Their position is computed from the real gutter width
   (space outside the 1080px content column), so a shape plus its drift never reaches the content;
   on narrower screens they tuck further off the page edge instead of moving inward. */
.deco-host { position: relative; isolation: isolate; }
.deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --gutter: max(0px, 50% - 540px); }
.hero.deco-host { overflow-x: clip; }
.blob { position: absolute; top: var(--y); width: var(--s); aspect-ratio: 1; background: rgb(50 222 132 / var(--a)); animation: calc(var(--d) * 2) ease-in-out var(--delay) infinite; will-change: transform; }
.blob.l { left: min(var(--gutter) * var(--g), var(--gutter) - var(--s) - 56px); }
.blob.r { left: max(100% - var(--gutter) + var(--gutter) * var(--g), 100% - var(--gutter) + 56px); }
.blob.c { border-radius: 50%; }
.blob.sq { border-radius: 30%; }
.blob.tri { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2c.8 0 1.5.4 1.9 1.1l7.5 13c.8 1.4-.2 3.2-1.9 3.2h-15c-1.7 0-2.7-1.8-1.9-3.2l7.5-13c.4-.7 1.1-1.1 1.9-1.1Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2c.8 0 1.5.4 1.9 1.1l7.5 13c.8 1.4-.2 3.2-1.9 3.2h-15c-1.7 0-2.7-1.8-1.9-3.2l7.5-13c.4-.7 1.1-1.1 1.9-1.1Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.blob.w1 { animation-name: wander-1; } .blob.w2 { animation-name: wander-2; } .blob.w3 { animation-name: wander-3; }
@keyframes wander-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * -.25)) rotate(12deg); }
  50% { transform: translate(calc(var(--dx) * .15), calc(var(--dy) * .4)) rotate(24deg); }
  75% { transform: translate(calc(var(--dx) * -.3), calc(var(--dy) * .15)) rotate(10deg); }
}
@keyframes wander-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(calc(var(--dx) * -.2), calc(var(--dy) * .4)) rotate(-14deg); }
  60% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .2)) rotate(-26deg); }
  80% { transform: translate(calc(var(--dx) * .15), calc(var(--dy) * -.3)) rotate(-10deg); }
}
@keyframes wander-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(calc(var(--dx) * .3), calc(var(--dy) * .3)) rotate(10deg); }
  55% { transform: translate(calc(var(--dx) * -.15), calc(var(--dy) * .4)) rotate(20deg); }
  80% { transform: translate(calc(var(--dx) * -.35), calc(var(--dy) * -.2)) rotate(8deg); }
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; text-wrap: balance; }
.hero-text, .step-desc, .mode p { text-wrap: pretty; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -0.028em; font-weight: 700; }
.section-head p { margin-top: 12px; font-size: 21px; line-height: 1.45; color: var(--muted); letter-spacing: -0.02em; }

/* Workflow */

.mock { margin-top: auto; display: grid; gap: 10px; padding: 18px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 10px 30px -14px rgb(0 0 0 / .18); font-size: 14px; }
.mock-field { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; overflow: hidden; white-space: nowrap; }
.mock-field svg { flex-shrink: 0; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; color: var(--muted); }
.mock-select { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--tint); border-radius: 8px; color: var(--ink); font-size: 13px; }
.mock-select::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.mock-value { color: var(--ink); font-weight: 500; }
.mock-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--accent-tint); border-radius: 10px; color: var(--accent-ink); font-size: 13px; }
.mock-ok .mono { font-weight: 500; }
.tick { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #1fae66 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mock-app { display: flex; align-items: center; gap: 12px; padding: 2px; }
.mock-app b { display: block; font-size: 15px; }
.mock-app small { display: block; font-size: 12px; color: var(--muted); }
.mock-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(180deg, #7fb8e6 0 45%, #5f9a5c 45% 70%, #2f6a3a 70%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.mock-segment { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--tint); border-radius: 10px; font-size: 13px; font-weight: 500; text-align: center; }
.mock-segment span { padding: 6px; border-radius: 8px; color: var(--muted); }
.mock-segment .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.mock-log { display: grid; gap: 10px; margin: 0; padding: 4px 2px; list-style: none; }
.mock-log li { display: flex; align-items: center; gap: 10px; }
.mock-log .mono { font-size: 13px; }
.mock-file { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--tint); border-radius: 12px; }
.mock-file b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; }
.mock-file small { display: block; font-size: 12px; color: var(--muted); }
.mock-file-icon { flex-shrink: 0; width: 34px; height: 40px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; }
.mock-file-icon::after { content: 'APK'; position: absolute; left: 4px; right: 4px; bottom: 6px; padding: 2px 0; background: #1fae66; color: #fff; border-radius: 3px; font: 600 8px/1 var(--sans); letter-spacing: .02em; text-align: center; }
.mock-download { margin-left: auto; padding: 6px 12px; background: var(--ink); color: #fff; border-radius: 980px; font-size: 12px; font-weight: 500; }

/* How it works: auto-advancing step list (left) with a matching interface preview (right). */
.steps-ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
.steps-tabs { display: grid; gap: 8px; align-content: center; }
.step-tab { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 22px 24px; text-align: left; background: transparent; border: 0; border-radius: 20px; color: var(--muted); overflow: hidden; transition: background-color .3s var(--ease), color .3s var(--ease); }
.step-tab:hover { color: var(--ink); }
.step-tab[aria-selected=true] { background: var(--tint); color: var(--ink); }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: 15px; font-weight: 600; transition: all .3s var(--ease); }
.step-tab[aria-selected=true] .step-n { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-text b { display: block; padding-top: 6px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.step-desc { display: block; max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); font-size: 16px; transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease); }
.step-tab[aria-selected=true] .step-desc { max-height: 6em; opacity: 1; margin-top: 8px; }
.step-progress { position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 3px; background: transparent; }
.step-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.steps-ui.is-playing .step-tab[aria-selected=true] .step-progress { background: var(--line); }
.steps-ui.is-playing .step-tab[aria-selected=true] .step-progress i { animation: step-progress var(--step-time, 5s) linear forwards; }
.steps-ui.is-paused .step-progress i { animation-play-state: paused !important; }
@keyframes step-progress { to { width: 100%; } }

.steps-stage { position: relative; display: grid; place-items: center; min-height: 440px; padding: 48px; border-radius: 28px; background: var(--tint); overflow: hidden; }
.steps-stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgb(0 0 0 / .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.step-panel { position: relative; width: 100%; max-width: 400px; }
.step-panel:not([hidden]) { animation: panel-in .5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.stage-window { background: #fff; border-radius: 20px; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 30px 60px -30px rgb(0 0 0 / .3); overflow: hidden; }
.stage-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.stage-crumbs { display: flex; gap: 6px; margin-left: auto; font-size: 12px; font-weight: 500; }
.stage-crumbs span { padding: 3px 10px; border-radius: 980px; color: var(--muted); }
.stage-crumbs .on { background: var(--accent-tint); color: var(--accent-ink); }
.stage-window .mock { margin: 0; box-shadow: none; border-radius: 0; padding: 22px; gap: 12px; font-size: 15px; }

/* Live vs pinned */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode { display: flex; flex-direction: column; padding: 36px; background: #fff; border-radius: 28px; }
.mode h3 { font-size: 28px; letter-spacing: -0.03em; }
.mode p { margin-top: 10px; color: var(--muted); max-width: 42ch; }
.mode .painpoint { display: flex; gap: 12px; align-items: flex-start; max-width: none; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--accent-tint); color: var(--ink-2); font-size: 15px; }
.painpoint .tick { margin-top: 2px; }
.painpoint b { color: var(--accent-ink); font-weight: 600; }
.painpoint code { font: 500 .9em var(--mono); padding: 1px 6px; border-radius: 6px; background: #fff; }
.painpoint .code-dark { padding: 3px 9px; background: #1d1d1f; color: #e8e8ed; }
.painpoint .code-dark::before { content: '$ '; color: var(--accent); }
.mode .link { margin-top: auto; padding-top: 24px; font-size: 17px; }

.timeline { position: relative; height: 120px; margin-bottom: 28px; background: var(--tint); border-radius: 18px; }
.track { position: absolute; left: 10%; right: 10%; top: 72px; height: 2px; background: var(--line-strong); }
.commit { position: absolute; top: 66px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid #a1a1a6; }
.c1 { left: 10%; } .c2 { left: 30%; } .c3 { left: 50%; } .c4 { left: 70%; } .c5 { left: 90%; }
.marker { position: absolute; top: 20px; transform: translateX(-50%); padding: 5px 11px; background: var(--ink); color: #fff; border-radius: 980px; font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.marker::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 2px; height: 12px; margin-left: -1px; background: var(--ink); }
.pinned .marker { left: 50%; }
.pinned .c3 { background: var(--ink); border-color: var(--ink); }
.pinned .c4, .pinned .c5 { border-color: #d2d2d7; background: var(--tint); }
.tl-note { position: absolute; top: 90px; transform: translateX(-50%); font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.tl-note.new { left: 90%; color: var(--accent-ink); animation: new-commit 6s var(--ease) infinite; }
.tl-note.ignored { left: 80%; color: #a1a1a6; }
/* Live: a new commit lands and the app moves to it. */
.live .marker { left: 70%; animation: follow 6s var(--ease) infinite; }
.live .c4 { background: var(--ink); border-color: var(--ink); animation: was-head 6s var(--ease) infinite; }
.live .c5 { background: var(--accent); border-color: var(--accent); animation: new-commit 6s var(--ease) infinite; }
@keyframes follow { 0%, 22% { left: 70%; } 38%, 70% { left: 90%; } 86%, 100% { left: 70%; } }
@keyframes was-head { 0%, 22% { background: var(--ink); border-color: var(--ink); } 38%, 70% { background: #fff; border-color: #a1a1a6; } 86%, 100% { background: var(--ink); border-color: var(--ink); } }
@keyframes new-commit { 0%, 6% { opacity: 0; transform: scale(.4); } 20%, 74% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(.4); } }

/* Details */
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.details article { padding: 32px 28px; background: var(--tint); border-radius: 24px; }
.details svg { box-sizing: content-box; padding: 10px; color: var(--accent-ink); background: var(--accent-tint); border-radius: 12px; }
.details h3 { margin-top: 20px; font-size: 19px; letter-spacing: -0.02em; }
.details p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Wide feature card: web API → Android permission */
.feature-wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 20px; padding: 48px; background: var(--tint); border-radius: 28px; }
.soon { display: inline-block; padding: 4px 12px; border-radius: 980px; background: var(--accent-tint); color: var(--accent-ink); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.feature-copy h3 { margin-top: 16px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.03em; }
.feature-copy p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.api-list { display: grid; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15px; }
.api-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; margin-left: -10px; text-align: left; background: transparent; border: 0; border-radius: 12px; color: var(--muted); transition: background-color .25s var(--ease), color .25s var(--ease); }
.api-list button:hover { color: var(--ink); }
.api-list button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.api-list code { font: 500 13px var(--mono); padding: 3px 9px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.api-list button { position: relative; overflow: hidden; }
.perm-progress { position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; }
.perm-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.feature-wide.is-playing .api-list button[aria-selected=true] .perm-progress { background: var(--line); }
.feature-wide.is-playing .api-list button[aria-selected=true] .perm-progress i { animation: step-progress var(--perm-time, 4.5s) linear forwards; }
.feature-wide.is-paused .perm-progress i { animation-play-state: paused !important; }
.api-list button[aria-selected=true] code { background: var(--accent-tint); border-color: transparent; color: var(--accent-ink); }
.perm-demo { display: grid; }
.perm-demo { align-self: start; }
.perm-slide { grid-area: 1 / 1; display: grid; justify-items: center; align-content: start; gap: 12px; opacity: 0; transform: translateY(8px) scale(.985); visibility: hidden; transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s .3s; }
.perm-slide.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity .55s var(--ease) .25s, transform .7s cubic-bezier(.2, .8, .2, 1) .25s, visibility 0s; }
.perm-code { width: 100%; max-width: 340px; padding: 16px 18px; background: #1d1d1f; color: #e8e8ed; border-radius: 16px; font: 13.5px/1.6 var(--mono); }
.c-k { color: #ff7ab2; } .c-p { color: #6bdfff; } .c-s { color: #ffd479; }
.perm-arrow { color: #a1a1a6; }
.perm-dialog { width: 100%; max-width: 300px; display: grid; justify-items: center; gap: 4px; padding: 24px 20px 14px; background: #fff; border-radius: 28px; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 18px 40px -20px rgb(0 0 0 / .25); text-align: center; }
.perm-icon { color: var(--accent-ink); }
.perm-dialog p { margin: 8px 0 10px; font-size: 16px; line-height: 1.35; }
.perm-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.perm-choice span { display: grid; justify-items: center; gap: 6px; }
.perm-choice .on { color: var(--accent-ink); font-weight: 600; }
.map { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #fff 0 4px, transparent 5px), repeating-linear-gradient(35deg, #e7efe9 0 6px, #f3f7f4 6px 12px); box-shadow: inset 0 0 0 1px var(--line); }
.map.precise { background: radial-gradient(circle, var(--accent) 0 6px, rgb(50 222 132 / .25) 7px 14px, transparent 15px), repeating-linear-gradient(35deg, #e7efe9 0 6px, #f3f7f4 6px 12px); box-shadow: inset 0 0 0 2px var(--accent); }
.perm-sheet { justify-items: stretch; text-align: left; padding: 20px 18px; }
.perm-sheet p { margin: 0 0 10px; }
.perm-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.perm-photos i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(160deg, #9fd0ea, #5f9a5c); }
.perm-photos i:nth-child(2) { background: linear-gradient(160deg, #f6d9a8, #c98f5a); } .perm-photos i:nth-child(3) { background: linear-gradient(160deg, #cfe6c3, #3f7a3a); }
.perm-photos i:nth-child(4) { background: linear-gradient(160deg, #b9c6f0, #5c6fb3); } .perm-photos i:nth-child(5) { background: linear-gradient(160deg, #a8e6c6, #1fae66); } .perm-photos i:nth-child(6) { background: linear-gradient(160deg, #eac0c0, #b35c6f); }
.perm-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.perm-sources span { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.perm-sources .perm-icon svg { width: 20px; height: 20px; }
.perm-btn { width: 100%; padding: 10px; border-radius: 980px; background: var(--accent-tint); color: var(--accent-ink); font-size: 14px; font-weight: 600; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 36px 32px; background: #fff; border-radius: 28px; }
.plan-featured { box-shadow: 0 0 0 2px #1fae66, 0 24px 60px -24px rgb(31 174 102 / .45); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 19px; letter-spacing: -0.02em; }
.tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 980px; background: var(--accent-tint); color: var(--accent-ink); letter-spacing: 0; }
.plan-price { margin-top: 16px; font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-size: 17px; font-weight: 400; letter-spacing: -0.02em; color: var(--muted); }
.plan-desc { margin-top: 12px; color: var(--muted); font-size: 15px; min-height: 2.9em; }
.plan .btn { margin-top: 24px; width: 100%; }
.plan ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230b7a43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plans-note { margin-top: 24px; font-size: 14px; color: var(--muted); text-align: center; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq-title { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.028em; font-weight: 700; text-align: center; margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { position: relative; padding: 24px 48px 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); }

/* CTA */
.cta { padding: 96px 0; text-align: center; background: var(--tint); }
.cta h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; font-weight: 700; }
.cta p { margin-top: 12px; font-size: 21px; color: var(--muted); }
.cta .btn { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--tint); }
.footer { display: flex; align-items: center; gap: 40px; padding: 24px 0 32px; border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.legal { margin-left: auto; font-size: 12px; }

@media (max-width: 1060px) {
  .scene { --s: .56; }
  .details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .steps-ui { grid-template-columns: 1fr; }
  .steps-stage { min-height: 0; padding: 32px 20px; }
  .feature-wide { grid-template-columns: 1fr; padding: 32px; }
  .nav-links { display: none; }
    .modes, .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-desc { min-height: 0; }
}

@media (max-width: 720px) {
  .step-tab { padding: 18px; }
  .step-progress { left: 18px; right: 18px; }
  .feature-wide { padding: 28px 22px; border-radius: 24px; }
  .wrap { width: calc(100% - 40px); }
  .nav { gap: 16px; }
  .nav-signin { display: none; }
  .hero { padding-top: 56px; }
  .lede { font-size: 18px; }
  .repo-field { flex-wrap: wrap; padding: 8px; border-radius: 22px; }
  .repo-icon { margin-left: 10px; }
  .repo-field .btn { width: 100%; }
  .scene { --s: .4; margin-top: 16px; }
  .stack { padding: 28px 0 30px; }
  .marquee ul { gap: 32px; padding-right: 32px; }
  .logo { width: 32px; height: 32px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 18px; }
    .mode, .plan { padding: 28px 24px; border-radius: 24px; }
  .details { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .cta { padding: 64px 0; }
  .footer { flex-wrap: wrap; gap: 16px 24px; }
  .legal { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
  .scene { --s: .3; }
}

/* Shapes only where the side margins are wide enough to hold them. */
@media (max-width: 1240px) { .deco { display: none; } }

/* Explicit site preference; preserve the OS preference when JS is unavailable. */
  html[data-motion="reduce"] { scroll-behavior: auto; }
  html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
  html[data-motion="reduce"] .reveal { opacity: 1; transform: none; }
  html[data-motion="reduce"] .live .marker { left: 90%; }
  html[data-motion="reduce"] .live .c4 { background: #fff; border-color: #a1a1a6; }
  html[data-motion="reduce"] .marquee { -webkit-mask-image: none; mask-image: none; }
  html[data-motion="reduce"] .marquee ul { flex-wrap: wrap; justify-content: center; gap: 28px 32px; padding: 0; flex-shrink: 1; }
  html[data-motion="reduce"] .marquee ul[aria-hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) { scroll-behavior: auto; }
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after { animation: none !important; transition: none !important; }
  html:not([data-motion="full"]) .reveal { opacity: 1; transform: none; }
  html:not([data-motion="full"]) .live .marker { left: 90%; }
  html:not([data-motion="full"]) .live .c4 { background: #fff; border-color: #a1a1a6; }
  html:not([data-motion="full"]) .marquee { -webkit-mask-image: none; mask-image: none; }
  html:not([data-motion="full"]) .marquee ul { flex-wrap: wrap; justify-content: center; gap: 28px 32px; padding: 0; flex-shrink: 1; }
  html:not([data-motion="full"]) .marquee ul[aria-hidden] { display: none; }
}

.footer { flex-wrap: wrap; gap: 20px 28px; }
