/* Gabble site: the studio's shared system (hourslip.app, fetchretriever.app, capta.cam, karakabakov.com).
   Black, near-black panels on 1px hairlines, Inter 500 headings, white pill buttons.
   The accent is Gabble's own (the duck's yellow) and stays small: a glow, a label, a focus ring. Never the button. */
:root {
  --bg: #000;
  --panel: #0b0b0d;
  --panel-2: #111114;
  --line: #1d1d22;
  --line-2: #2a2a31;
  --ink: #f5f5f7;
  --ink-2: #a1a1aa;
  --ink-3: #8a8a94;
  --accent: #ffc83d;
  --accent-soft: rgba(255, 200, 61, 0.13);
  --green: #4ade80;
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink);
  white-space: nowrap;
}
kbd { font-family: inherit; font-weight: 500; border-bottom-width: 2px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: #fff; color: #000; padding: 8px 14px; border-radius: 999px; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: clamp(44px, 7.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 500; }
.grad {
  background: linear-gradient(100deg, #fff3c2, var(--accent) 55%, #ff8a1f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,0.02);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill.accent { color: var(--accent); border-color: rgba(255,200,61,.3); background: var(--accent-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 "Inter", system-ui, sans-serif; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, transform .12s, opacity .12s;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; margin-top: -2px; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e7e7ea; }
.btn-dark { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.btn-dark:hover { background: #18181c; }
.btn-sm { padding: 9px 15px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.nav-cta { justify-self: end; }

/* Hero */
.hero { padding: 76px 0 0; text-align: center; position: relative; }
.hero h1 { margin: 26px auto 0; max-width: 860px; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 620px; margin: 22px auto 0; letter-spacing: -0.01em; }
.hero .cta { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }
.fine a, .note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.fine a:hover, .note a:hover { color: var(--ink); }
.stage { position: relative; margin: 52px auto 0; max-width: 1080px; }
.stage::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 18%; bottom: -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,200,61,.26), transparent 72%);
  filter: blur(40px);
}
.frame {
  border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--panel);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.promo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* The hero's Mac: a menu bar with a notch, the duck pill under it, and the app being dictated into */
.screen { text-align: left; background:
  radial-gradient(60% 70% at 18% 0%, rgba(255,200,61,.16), transparent 60%),
  radial-gradient(50% 70% at 92% 100%, rgba(255,138,31,.11), transparent 60%),
  linear-gradient(180deg, #0f0f12, #08080a); }
.nd-bar { position: relative; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: rgba(255,255,255,.04); font-size: 13.5px; color: var(--ink-2); }
.nd-menus, .nd-status { display: flex; align-items: center; gap: 16px; }
.nd-menus b { width: 13px; height: 15px; border-radius: 3px 3px 5px 5px; background: var(--ink-2); }
.nd-menus i, .nd-status i { font-style: normal; }
.nd-menus i:first-of-type { color: var(--ink); font-weight: 600; }
.nd-ico { width: 15px; height: 15px; border-radius: 4px; background: var(--line-2); }
.nd-notch { position: absolute; left: 50%; top: 0; width: 180px; height: 100%; transform: translateX(-50%); background: #000; border-radius: 0 0 14px 14px; }
.quack {
  margin: 12px auto 0; width: max-content; display: flex; align-items: center; gap: 9px;
  padding: 5px 16px 5px 7px; border-radius: 999px; background: rgba(0,0,0,.88); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 26px rgba(0,0,0,.5); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.duck { width: 30px; height: 30px; flex: none; transform-origin: 50% 90%; animation: rock 1.5s ease-in-out infinite; }
.duck .bill, .duck .mouth { transform-box: fill-box; transform-origin: center top; animation: quack 1.5s ease-in-out infinite; }
.ripples { width: 112px; height: 26px; flex: none; overflow: visible; }
.ripples path { fill: none; stroke: #ff9a1f; stroke-width: 2.2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: ripple 1.5s ease-in-out infinite; }
.demo-window { max-width: 640px; margin: 34px auto 60px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 22px 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.demo-bar { display: flex; gap: 7px; align-items: center; margin-bottom: 16px; color: var(--ink-3); font-size: 12.5px; }
.demo-bar b { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo-bar span { margin-left: 8px; }
.demo-text { margin: 0; font-size: 18px; line-height: 1.6; letter-spacing: -0.01em; min-height: 86px; }
.said { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255,200,61,.55); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }

/* Facts under the hero */
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin-top: 72px; font-size: 14px; color: var(--ink-2); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--accent); }

/* Sections */
.section { padding: 150px 0 0; }
.section-head { max-width: 600px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.section-head a, .tile .copy a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.note { margin-top: 26px; color: var(--ink-3); font-size: 14px; }

/* Steps (animated minis) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.step .mini {
  height: 220px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  position: relative; overflow: hidden; padding: 18px; display: grid; place-content: center; justify-items: center; gap: 18px;
}
.step h3 { margin: 20px 4px 6px; }
.step p { margin: 0 4px; color: var(--ink-2); font-size: 14.5px; }
.m-key { font: 500 17px/1 "Inter", system-ui, sans-serif; padding: 14px 20px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 4px; animation: press 4s ease-in-out infinite; }
.mini .quack { margin: 0; box-shadow: none; }
.m-said { max-width: 250px; font-size: 14px; color: var(--ink-2); text-align: center; line-height: 1.7; }
.m-said s { color: var(--ink-3); text-decoration-color: rgba(255,200,61,.6); }
.m-tag { font-size: 11.5px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.m-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.m-field { width: 250px; max-width: 100%; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); padding: 12px 14px; font-size: 13.5px; color: var(--ink); }
.m-field small { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }

/* Bento */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.tile { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.tile .copy { padding: 28px 28px 0; }
.tile .copy h3 { font-size: 20px; }
.tile .copy p { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; max-width: 460px; }
.tile .shot { margin: 18px 10px 0; }
.tile .shot img { width: 100%; }
.tile.wide { grid-column: 1 / -1; }
.tile.wide .shot { margin: 10px 4% 0; }

/* Detail grid */
.details { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.detail { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.detail:nth-child(3n) { border-right: 0; }
.detail:nth-last-child(-n+3) { border-bottom: 0; }
.detail svg { width: 22px; height: 22px; color: var(--ink); opacity: .9; }
.detail h3 { margin: 18px 0 6px; }
.detail p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Tables in a panel: models and the comparison */
.glance { margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.section-head + .glance { margin-top: 56px; }
.glance table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.glance caption { text-align: left; padding: 22px 26px 14px; font-size: 13px; color: var(--accent); }
.glance caption span { color: var(--ink-3); }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 14px 26px; border-top: 1px solid var(--line); }
.glance thead th { font-size: 13px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.glance tbody th { font-weight: 500; color: var(--ink); white-space: nowrap; }
.glance td { color: var(--ink-2); }
.glance td.yes { color: var(--ink); }
.glance .ours { color: var(--ink); background: rgba(255,255,255,.02); }
.glance a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.glance .pill { margin-left: 10px; padding: 2px 9px; font-size: 11.5px; }

/* Cards */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 30px; }
.card svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 20px; letter-spacing: -0.025em; }
.card p { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; }
.card p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* FAQ */
.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 8px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-size: 15.5px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; max-width: 700px; }

/* Closer */
.closer { padding: 170px 0 150px; text-align: center; }
.closer img { width: 88px; height: 88px; margin: 0 auto 28px; }
.closer p { color: var(--ink-2); margin: 14px auto 30px; font-size: 17px; max-width: 560px; }
.closer .fine { margin: 16px auto 0; font-size: 13.5px; color: var(--ink-3); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 48px; color: var(--ink-3); font-size: 13.5px; }
.footer .cols { display: grid; gap: 28px; grid-template-columns: 1.5fr repeat(3, 1fr); }
.footer .brand { color: var(--ink); margin-bottom: 14px; }
.footer p { margin: 6px 0 0; max-width: 300px; }
.footer p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--ink); }

/* Document pages (articles, section indexes, privacy, changelog, 404) */
.doc { max-width: 760px; padding: 70px 0 140px; }
.doc h1 { font-size: clamp(38px, 6vw, 52px); margin: 18px 0 10px; }
.doc .lede { font-size: 18px; color: var(--ink-2); margin: 0 0 34px; }
.doc .meta { color: var(--ink-3); font-size: 13.5px; margin: 0 0 34px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 48px 0 10px; }
.doc h3 { margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong, .doc b { color: var(--ink); font-weight: 500; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.doc a:hover { text-decoration-color: var(--ink-3); }
.doc a.btn, .doc a.card, .doc .crumbs a { text-decoration: none; }
.doc a.btn-light { color: #000; }
.doc .crumbs { flex-wrap: wrap; }
.doc .crumbs a { color: var(--ink-2); }
.doc .crumbs a:hover { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0 16px; }
.doc li { margin-top: 7px; }
.doc li::marker { color: var(--ink-3); }
.doc img { border-radius: 12px; border: 1px solid var(--line-2); }
.doc code { white-space: normal; overflow-wrap: anywhere; }
.doc pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; }
.doc pre code { background: none; border: 0; padding: 0; white-space: pre; }
.doc blockquote { margin: 20px 0; padding: 2px 18px; border-left: 2px solid var(--accent); color: var(--ink-2); }
.doc .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 500; }
.doc td { color: var(--ink-2); }
.doc .tldr { margin: 0 0 34px; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--panel); }
.doc .tldr strong { display: block; font-size: 13px; color: var(--accent); margin-bottom: 4px; }
.doc .tldr p { margin: 0; color: var(--ink); }
.doc details { margin-top: 8px; }
.doc .cards { display: grid; gap: 12px; margin-top: 34px; }
.doc a.card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 16px; transition: border-color .15s, background .15s; }
.doc a.card:hover { border-color: var(--line-2); background: var(--panel-2); }
.doc .card b { font-size: 17px; letter-spacing: -0.015em; line-height: 1.35; }
.doc .card span { color: var(--ink-2); font-size: 14.5px; }
.doc .guide-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 56px; padding: 24px 26px; }
.doc .guide-cta h3 { font-size: 18px; }
.doc .guide-cta p { margin: 4px 0 0; font-size: 14.5px; }
.doc .more { margin-top: 48px; }
.doc .more b { font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* Motion */
@keyframes blink { 50% { opacity: 0; } }
@keyframes quack { 0%, 100% { transform: scaleY(.38); } 18% { transform: scaleY(1); } 36% { transform: scaleY(.5); } 54% { transform: scaleY(.95); } 76% { transform: scaleY(.42); } }
@keyframes rock { 0%, 100% { transform: rotate(-5deg); } 18% { transform: rotate(4deg) scaleY(1.06); } 54% { transform: rotate(-3deg) scaleY(1.05); } 76% { transform: rotate(5deg); } }
@keyframes ripple { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes press { 0%, 12%, 70%, 100% { transform: none; border-bottom-width: 4px; background: var(--panel-2); } 18%, 64% { transform: translateY(2px); border-bottom-width: 2px; background: #18181c; } }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.on { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .steps, .bento, .about { grid-template-columns: 1fr; }
  .details { grid-template-columns: repeat(2, 1fr); }
  .detail:nth-child(3n) { border-right: 1px solid var(--line); }
  .detail:nth-child(2n) { border-right: 0; }
  .detail:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .detail:last-child { border-bottom: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero { padding-top: 70px; }
  .hero .lede { font-size: 17px; }
  .section { padding-top: 110px; }
  .details { grid-template-columns: 1fr; }
  .detail { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .detail:last-child { border-bottom: 0 !important; }
  .nd-menus i:not(:first-of-type), .nd-status i:not(:last-child) { display: none; }
  .nd-notch { width: 110px; }
  .demo-window { margin: 26px 14px 40px; }
  .demo-text { font-size: 16px; }
  .glance th, .glance td, .glance caption { padding-left: 18px; padding-right: 18px; }
  .doc { padding: 46px 0 100px; }
  .doc .guide-cta .btn { width: 100%; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
