/* gitnotify.com — one page. Values follow the landing-page skill: Tailwind type steps, spacing 2/4/8/12/16/24/32/40/48/64/80/96,
   Tailwind radii, flat backgrounds, Geist only (+ Geist Mono for code). */
:root {
  --bg: #000000; --bg-1: #181818; --bg-2: #1F1F1F; --bg-3: #272727; --line: #313131;
  --text: #FFFFFF; --muted: #9B9B9B; --dim: rgba(255, 255, 255, 0.3);
  --main: #3FB950; --staging: #D29922; --dev: #58A6FF; --feat: #A371F7; --risk: #F85149;
  --head-a: #FFFFFF; --head-b: #9B9B9B;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FFFFFF; --bg-1: #F6F6F4; --bg-2: #EEEEEB; --bg-3: #E4E4E0; --line: #D6D6D1;
    --text: #0A0A0A; --muted: #5E5E5A; --dim: rgba(10, 10, 10, 0.28);
    --main: #1A7F37; --staging: #9A6700; --dev: #0969DA; --feat: #8250DF; --risk: #CF222E;
    --head-a: #000000; --head-b: #666666; color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-size: 1rem; line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; font-weight: 600; margin: 0; }
p, li { text-wrap: pretty; }
code, .mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.875rem; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--dev); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; transition: top 300ms var(--ease); }
.skip:focus { top: 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* nav: floating pill */
.nav { position: sticky; top: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.nav-pill {
  pointer-events: auto; margin-top: 24px; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px;
  border-radius: 9999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-1) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; text-decoration: none; }
.brand svg { width: 20px; height: 20px; }
.nav-links { display: none; gap: 16px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color 300ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--text); color: var(--bg);
  transition: transform 500ms var(--ease), background-color 500ms var(--ease), opacity 500ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn.sm { font-size: 0.875rem; line-height: 1.25rem; border-radius: 9999px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-2); }
.btn svg { width: 16px; height: 16px; }

/* hero */
.hero { padding: 96px 0 64px; text-align: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); margin-bottom: 24px; }
.hero h1 {
  max-width: 680px; margin: 0 auto; font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--head-a), var(--head-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; line-height: 1; } }
.hero .sub { max-width: 680px; margin: 24px auto 0; color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; }
.choices { display: grid; gap: 16px; margin: 48px auto 0; max-width: 960px; text-align: left; }
@media (min-width: 768px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; border: 1px solid var(--line);
  background: var(--bg-1); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: transform 700ms var(--ease), border-color 700ms var(--ease), background-color 700ms var(--ease);
}
.choice:hover { transform: translateY(-4px); background: var(--bg-2); }
.choice:active { transform: scale(0.98); }
.choice[aria-pressed="true"] { border-color: var(--text); background: var(--bg-2); }
.choice .num { font-family: 'Geist Mono', monospace; font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.choice h2 { font-size: 1.25rem; line-height: 1.75rem; }
.choice p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.choice .mini { height: 48px; width: 100%; }
.proof { margin: 32px auto 0; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.proof .comment { display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--line); background: var(--bg-1); color: var(--text); }

/* sections */
section { padding: 80px 0; }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head h2 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.01em; }
.sec-head p { color: var(--muted); margin: 12px 0 0; font-size: 1.125rem; line-height: 1.75rem; }
.kicker { font-family: 'Geist Mono', monospace; font-size: 0.75rem; line-height: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; display: block; }

/* flow explorer */
#flow[hidden] { display: none; }
.stage { border: 1px solid var(--line); background: var(--bg-1); border-radius: 24px; padding: 16px; }
@media (min-width: 768px) { .stage { padding: 24px; } }
.stage svg.lanes { display: block; width: 100%; height: auto; }
.lane-label { font: 600 12px/16px 'Geist Mono', monospace; }
.env-label { font: 500 12px/16px 'Geist', sans-serif; }
.edge { fill: none; stroke-width: 2; stroke-linecap: round; }
.dot { transition: opacity 600ms var(--ease), r 600ms var(--ease); }
.reveal-item { opacity: 0; transition: opacity 600ms var(--ease); }
.reveal-item.on { opacity: 1; }
.draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 900ms var(--ease); }
.draw.on { stroke-dashoffset: 0; }
.pulse { transform-box: fill-box; transform-origin: center; }
.pulse.on { animation: pulse 1400ms var(--ease) 1; }
@keyframes pulse { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.step-text { flex: 1 1 280px; min-height: 48px; margin: 0; color: var(--text); }
.step-text .n { font-family: 'Geist Mono', monospace; color: var(--muted); margin-right: 8px; }
.steps-dots { display: flex; gap: 4px; }
.steps-dots i { width: 8px; height: 8px; border-radius: 9999px; background: var(--line); transition: background-color 500ms var(--ease); }
.steps-dots i.on { background: var(--text); }

.risks { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .risks { grid-template-columns: 1fr 1fr; } }
.risk { border: 1px solid var(--line); border-radius: 24px; background: var(--bg-1); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.risk h3 { font-size: 1.125rem; line-height: 1.75rem; display: flex; gap: 8px; align-items: flex-start; }
.risk h3 svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--risk); }
.risk p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.risk svg.mini-diagram { width: 100%; height: auto; border-radius: 12px; background: var(--bg-2); }
.risk .fix { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--bg-2); color: var(--text); font-size: 0.875rem; line-height: 1.25rem; }
.risk .fix svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--main); }
.other { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }

/* tagline reveal */
.tagline { padding: 96px 0; }
.tagline p { max-width: 680px; margin: 0; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 768px) { .tagline p { font-size: 3rem; line-height: 1; } }
.tagline .w { color: var(--dim); transition: color 700ms var(--ease); }
.tagline .w.on { color: var(--text); }

/* benefits, steps */
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 24px; background: var(--bg-1); padding: 24px; }
.card h3 { font-size: 1.125rem; line-height: 1.75rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card .ico { width: 24px; height: 24px; margin-bottom: 16px; color: var(--text); }
.card .n { font-family: 'Geist Mono', monospace; font-size: 0.875rem; color: var(--muted); display: block; margin-bottom: 16px; }
.pr-comment { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 12px; font-size: 0.875rem; line-height: 1.25rem; }
.pr-comment .who { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 8px; }
.pr-comment .who b { color: var(--text); font-weight: 600; }
.pr-comment .av { width: 20px; height: 20px; border-radius: 9999px; background: var(--feat); display: inline-block; }

/* faq */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 20px; height: 20px; margin-top: 4px; transition: transform 500ms var(--ease); color: var(--muted); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: 1.875rem; line-height: 2.25rem; max-width: 680px; margin: 0 auto; }
.final p { color: var(--muted); max-width: 680px; margin: 16px auto 32px; }
.risk-rev { margin-top: 16px; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* scroll reveal (IntersectionObserver), off when reduced motion */
.fade { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); }
.fade.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; filter: none; transition: none; }
  .draw { stroke-dashoffset: 0; transition: none; }
  .reveal-item { opacity: 1; transition: none; }
  .tagline .w { color: var(--text); transition: none; }
  html { scroll-behavior: auto; }
}

/* simple pages (privacy, 404, sitemap) */
.page { max-width: 680px; padding: 128px 16px 64px; margin: 0 auto; }
.page h1 { font-size: 2.25rem; line-height: 2.5rem; margin-bottom: 24px; }
.page p, .page li { color: var(--muted); }
.page h2 { font-size: 1.25rem; line-height: 1.75rem; margin: 32px 0 8px; }
