/* Abhako site. No external requests: Geist + Geist Mono are self-hosted (SIL OFL 1.1, assets/fonts/OFL.txt). */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #0f1115;
  --surface: #161a21;
  --raise: #1c212a;
  --line: #262d38;
  --text: #e6e8ec;
  --muted: #7d8590;
  --accent: #2dd4bf;
  --accent-text: #2dd4bf;
  --ink: #06211d;
  --accent-soft: rgba(45, 212, 191, .12);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --round: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Adwaita Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --raise: #eef0f3;
    --line: #dde1e7;
    --text: #14171c;
    --muted: #5d6570;
    --accent-text: #0b8577;
    --accent-soft: rgba(45, 212, 191, .16);
    --shadow: 0 30px 70px -35px rgba(20, 30, 40, .35);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line) var(--bg); }
pre, code { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
kbd { padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--raise); }
p code, li code, dd code { background: var(--raise); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--round); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top .gh { color: var(--text); display: inline-flex; align-items: center; gap: 7px; font-size: 15px; text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.top .gh:hover { border-color: var(--muted); }
@media (max-width: 760px) { .top nav { display: none; } .top .gh { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 {
  margin: 0 0 .15em;
  font: 800 clamp(64px, 11vw, 148px)/.9 var(--round);
  letter-spacing: -.045em;
}
.hero .pitch { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; margin: 0 0 14px; max-width: 30ch; text-wrap: balance; }
.hero .sub { color: var(--muted); margin: 0 0 30px; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  padding: 13px 20px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--text); background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* the sloth */
.sloth { width: 100%; max-width: 520px; justify-self: end; overflow: visible; }
.sloth .check { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw .8s cubic-bezier(.65,0,.35,1) .05s forwards; }
.sloth .animal { opacity: .15; transform: translateY(-14px); transform-origin: 170px 90px; transform-box: view-box; animation: hang 1.2s cubic-bezier(.2,.8,.2,1) .45s forwards; }
.sloth .animal.swing { opacity: 1; animation: swing 1.9s cubic-bezier(.3,.7,.4,1) both; }
@keyframes swing {
  0% { transform: rotate(0); } 18% { transform: rotate(-16deg); } 38% { transform: rotate(12deg); }
  56% { transform: rotate(-7deg); } 72% { transform: rotate(4deg); } 86% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); }
}
.sloth-wrap { position: relative; justify-self: end; width: 100%; max-width: 520px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sloth-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 16px; }
.sloth-wrap .sloth { max-width: none; }
.confetti { position: absolute; left: 0; top: 0; width: 14px; height: 14px; pointer-events: none; }
.quip { position: absolute; right: 4%; top: -4px; max-width: 26ch; padding: 8px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 1.35;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.quip.on { opacity: 1; transform: none; }
.sloth .blink { transform-origin: 168px 163px; animation: blink 7s 3s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes hang {
  0% { opacity: 0; transform: translateY(-14px) rotate(0); }
  45% { opacity: 1; transform: translateY(3px) rotate(-2deg); }
  75% { transform: translateY(0) rotate(1deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) {
  .sloth .animal.swing { animation: none; }
  .sloth .check { animation: none; stroke-dashoffset: 0; }
  .sloth .animal { animation: none; opacity: 1; transform: none; }
  .sloth .blink { animation: none; }
}
/* text left, sloth right down to small tablets; phones stack with the sloth on top, right-aligned */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px; }
}
@media (max-width: 600px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .sloth-wrap { order: -1; max-width: 230px; margin: -10px -6px -18px 0; }
}

/* ---------- install box ---------- */
.install { max-width: 560px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 0 0; border-bottom: 0; width: max-content; max-width: 100%; }
.tabs button {
  font: 500 14px/1 var(--sans); color: var(--muted); background: none; border: 0;
  padding: 9px 13px; border-radius: 8px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--raise); color: var(--text); }
.tabs button:hover { color: var(--text); }
.cmd {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 12px 12px 12px;
  padding: 8px 8px 8px 16px;
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14.5px; padding: 8px 0; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd code .p { color: var(--muted); user-select: none; }
.copy {
  flex: none; font: 600 13px/1 var(--sans); color: var(--text);
  background: var(--raise); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; cursor: pointer; min-width: 74px;
}
.copy:hover { border-color: var(--muted); }
.copy.done { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.install .note { color: var(--muted); font-size: 14px; margin: 10px 2px 0; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 112px) 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font: 750 clamp(32px, 4.6vw, 52px)/1.04 var(--round); letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
h3 { font: 700 22px/1.2 var(--round); letter-spacing: -.01em; margin: 0 0 10px; }
.lead { font-size: clamp(18px, 1.8vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }
.lead strong { color: var(--text); font-weight: 600; }

/* why */
.why .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.gripes { list-style: none; margin: 28px 0 0; padding: 0; }
.gripes li { padding: 16px 0; border-top: 1px solid var(--line); }
.gripes li:last-child { border-bottom: 1px solid var(--line); }
.gripes b { display: block; font-weight: 600; }
.gripes span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .why .grid { grid-template-columns: minmax(0, 1fr); } }

/* collaboration demo */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.demo-head .t { font: 700 18px/1.2 var(--round); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--muted); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); position: relative; transition: background .2s, border-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 3px; }
.task { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--p, var(--muted)); margin-top: 3px; }
.task.done .box { background: var(--accent); border-color: var(--accent); position: relative; }
.task.done .box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.task.done .title { color: var(--muted); text-decoration: line-through; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-top: 3px; }
.meta .d { color: var(--accent-text); }
.meta .tag { color: var(--accent-text); }
.meta .collab { display: inline-flex; align-items: center; gap: 5px; transition: opacity .25s; }
.av { width: 18px; height: 18px; border-radius: 50%; background: var(--raise); border: 1px solid var(--line); font: 700 10px/16px var(--sans); text-align: center; color: var(--text); }
.demo.solo .collab { display: none; }
.demo-foot { color: var(--muted); font-size: 13.5px; padding: 12px 6px 2px; min-height: 2.6em; }

/* features */
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feature.flip .copytext { order: 2; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.copytext p { color: var(--muted); margin: 0 0 16px; max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: .32em; width: 15px; height: 15px; border-radius: 4px;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
}
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: calc(.32em + 2.5px); width: 4px; height: 8px; border: solid var(--accent-text); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.ticks li span { color: var(--muted); }
.shot {
  margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #0f1115; box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.shots2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shots2 .shot:first-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .shots2 { grid-template-columns: minmax(0, 1fr); } }
.parse {
  font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; line-height: 1.9;
}
.parse .k { color: var(--accent-text); background: var(--accent-soft); border-radius: 5px; padding: 1px 4px; }
.phone { max-width: 260px; margin: 0 auto; border-radius: 32px; border: 8px solid var(--raise); outline: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.everywhere { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
@media (max-width: 860px) {
  .feature, .feature.flip, .everywhere { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copytext { order: 0; }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
.soon { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.soon b { color: var(--text); font-weight: 600; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.facts > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.facts > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.facts > div:not(:nth-child(3n+1)) { padding-left: 24px; }
.facts p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div:not(:nth-child(3n+1)) { padding: 20px 0; border-right: 0 !important; }
}

/* install section */
.steps { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); margin-top: 36px; }
.steps .install { max-width: none; }
.steps ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.steps ol li { margin-bottom: 10px; }
.steps ol li strong { color: var(--text); font-weight: 600; }
pre.block {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  overflow-x: auto; margin: 10px 0 14px; font-size: 14px; line-height: 1.7;
}
pre.block .c { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.faq { max-width: 820px; margin-top: 30px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font: 600 18px/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.faq summary:hover { color: var(--accent-text); }
.faq .a { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 24px; height: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .fine { flex-basis: 100%; margin: 0; font-size: 13.5px; }

/* legal pages */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal .wrap { max-width: 800px; }
.legal h1 { font: 800 clamp(38px, 6vw, 60px)/1 var(--round); letter-spacing: -.035em; margin: 0 0 18px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.draft { font-size: 13.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 26px; }
.langnote { font-size: 14.5px; color: var(--muted); margin: 0 0 30px; }
.ph { color: var(--accent-text); background: var(--accent-soft); border-radius: 5px; padding: 0 5px; }

/* language switch */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 13px; font-weight: 600; }
.lang a { color: var(--muted); text-decoration: none; padding: 5px 9px; border-radius: 999px; line-height: 1; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--raise); color: var(--text); }
.top .lang { margin-left: 0; }
@media (max-width: 760px) { .top .lang { margin-left: auto; } .top .lang + .gh { margin-left: 0; } }
.legal .authority { font-size: 14.5px; color: var(--muted); margin: -8px 0 28px; }
@media (max-width: 480px) { .cmd code { white-space: normal; overflow-wrap: anywhere; } }

/* comparison table */
.cmp-scroll { overflow-x: auto; margin: 28px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cmp-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-weight: 700; color: var(--text); background: var(--raise); }
.cmp tbody th { font-weight: 600; color: var(--text); width: 26%; }
.cmp td { color: var(--muted); }
.cmp td.me, .cmp thead th:nth-child(2) { color: var(--text); background: var(--accent-soft); }
.cmp thead th:nth-child(2) { color: var(--accent-text); }
.cmp-sum { margin-top: 26px; }
.cmp-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.cmp-tabs { margin-top: 28px; }
.cmp-tabs + .cmp-panel .cmp-scroll { margin-top: 0; border-top-left-radius: 0; }
.cmp-panel + .cmp-panel { margin-top: 48px; }
.js .cmp-panel + .cmp-panel { margin-top: 0; }
.cmp-panel .cmp-scroll { margin-top: 0; }
.cmp-note a { color: inherit; }
