
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light dark;
  --page: #f5f8f7; --card: #fff; --text: #0c342b; --heading: #1f3a33; --muted: #5b6f69;
  --field: #eaf2ef; --field-hover: #dde6e2; --action: #0a7a67; --action-hover: #1f3a33;
  --link: #0a7a67; --ring: #0a7a67; --line: rgba(12, 52, 43, 0.10);
  --ok: #0a7a67; --ok-fill: #eaf2ef; --danger: #b42318; --danger-fill: #fdecea;
  --shadow: 0 1px 2px rgba(12, 52, 43, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #111413; --card: #1a1e1d; --text: #f5f8f7; --heading: #f5f8f7; --muted: #a3ada9;
    --field: #222826; --field-hover: rgba(245, 248, 247, 0.08); --action: #0a7a67; --action-hover: #0e9e86;
    --link: #52997f; --ring: #52997f; --line: rgba(245, 248, 247, 0.08);
    --ok: #52997f; --ok-fill: rgba(82, 153, 127, 0.14); --danger: #fdecea; --danger-fill: rgba(180, 35, 24, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.30);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; padding: 64px 16px;
  background: var(--page); color: var(--text);
  font: 400 14px/1.6 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
header, .brand { font: 700 18px/1 'Inter', sans-serif; letter-spacing: -0.01em; color: var(--heading); }
header { text-align: center; margin-bottom: 32px; }
main {
  max-width: 28rem; margin: 0 auto; padding: 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--link); }
main > a, main > p > a, button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px;
  padding: 0 16px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--action); color: #fff; font: 600 13.5px/1 'Inter', sans-serif;
  transition: background-color 120ms ease;
}
main > a, main > p > a { display: flex; width: 100%; margin-top: 24px; min-height: 42px; font-size: 14px; }
main > a:hover, main > p > a:hover, button:hover, .btn:hover { background: var(--action-hover); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--field); }
.btn-small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ring);
}
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
body.app { display: flex; flex-wrap: wrap; padding: 0; background: var(--card); }
.side { flex: 0 0 232px; display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; background: var(--page); border-right: 1px solid var(--line); }
.side .brand { padding: 4px 10px 16px; }
.side-label { margin: 16px 10px 4px; font-size: 12px; color: var(--muted); }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: 6px; color: var(--text); font-weight: 500; text-decoration: none; }
.nav svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.nav:hover { background: var(--field); }
body:not(:has(.view:target)) .nav[href="#home"], body:has(#avodocs:target) .nav[href="#avodocs"], body:has(#avopseudo:target) .nav[href="#avopseudo"],
body:has(#connectors:target) .nav[href="#connectors"], body:has(#skills:target) .nav[href="#skills"], body:has(#billing:target) .nav[href="#billing"],
body:has(#faq:target) .nav[href="#faq"] {
  background: var(--field); color: var(--action); font-weight: 600;
}
.side-foot { margin-top: auto; padding: 0 10px; display: flex; flex-direction: column; gap: 10px; }
.side-foot p { margin: 0; font-size: 12.5px; color: var(--muted); }
.main-column { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 0 clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); text-align: left; font: 400 13px/1.4 'Inter', sans-serif; letter-spacing: normal; color: var(--muted); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langs { display: flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--field); }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 5px 8px; border-radius: 5px; text-align: center; color: var(--muted); font-weight: 600; font-size: 12px; text-decoration: none; }
.langs a[aria-current] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
main.views { max-width: none; width: 100%; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 96px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.view { display: none; flex-direction: column; gap: 44px; scroll-margin-top: 100vh; }
.view:target, .views:not(:has(> .view:target)) > #home { display: flex; }
.notice { margin: 0 0 24px; padding: 10px 14px; border-radius: 8px; color: var(--ok); background: var(--ok-fill); font-weight: 600; font-size: 13.5px; }
.head { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; }
.head-id { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.head-id h1 { margin: 0; font-size: 28px; }
.head-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.lead { margin: 0; font-size: 15px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.is-ok { color: var(--ok); background: var(--ok-fill); }
.badge.is-muted { color: var(--muted); background: var(--field); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 32px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.platform-facts { margin: -28px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.platform-logo { width: 16px; height: 16px; }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: center; }
.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.points li { display: flex; gap: 14px; }
.points strong { display: block; margin-bottom: 2px; color: var(--heading); }
.points li > span:last-child { color: var(--muted); }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-fill); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.check-icon { width: 12px; height: 12px; flex: none; }
.video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--field); object-fit: cover; }
.demo { position: relative; }
.demo[data-idle] { cursor: pointer; }
.demo[data-idle]::before { content: ''; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
.demo[data-idle]::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 20px; margin: -10px 0 0 -6px; background: var(--action); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video.soon { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.block { display: flex; flex-direction: column; gap: 18px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.plan.featured { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan p { margin: 0; }
.price { color: var(--muted); font-size: 13px; }
.price strong { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features .check-icon { margin-top: 4px; color: var(--ok); }
.plan-action:empty { display: none; }
.plan-action button, .plan-action .btn { width: 100%; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-column { grid-template-columns: 1fr; gap: 16px; }
.panel { padding: 24px 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.panel h2 { margin-bottom: 8px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: start; }
.split h3 { margin-bottom: 10px; }
.split-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.split-row p { margin: 0; max-width: 60ch; }
.caution { padding: 12px 14px; border-radius: 8px; background: var(--field); font-size: 13px; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows li > span:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.rows .badge { align-self: flex-start; }
.connector { display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 10px; border-radius: 7px; background: var(--field); }
.connector-url { overflow-wrap: anywhere; user-select: all; font: 500 12px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--heading); }
.copy { min-height: 28px; padding: 0 8px; background: transparent; color: var(--muted); }
.copy:hover { background: var(--field-hover); color: var(--text); }
.copy > * { pointer-events: none; }
.copy .icon { width: 15px; height: 15px; }
.copy .copied { display: none; font-size: 12px; }
.copy[data-copied] { color: var(--ok); }
.copy[data-copied] .icon { display: none; }
.copy[data-copied] .copied { display: inline; }
.examples { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
.tool-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 48px; align-items: center; }
.tool-body { display: flex; flex-direction: column; gap: 10px; }
.tool-body > p { margin: 0; }
.tool-media { position: relative; }
.local-pill { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--ok); font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.local-note { padding: 10px 12px; border-radius: 8px; background: var(--ok-fill); color: var(--heading); font-size: 13px; }
.tool-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-card .actions { padding-top: 8px; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-label { display: flex; justify-content: space-between; margin: 0; font-size: 12.5px; color: var(--muted); }
.meter-label strong { color: var(--text); font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 6px; }
.cockpit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.foot-note { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 20px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 28px; text-align: center; }
.empty p { margin: 0; max-width: 46ch; }
.legacy { padding-top: 24px; border-top: 1px solid var(--line); }
.faq { columns: 2 460px; column-gap: 16px; }
.faq-item { break-inside: avoid; margin-bottom: 16px; padding: 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.faq-item:hover { border-color: var(--action); }
.faq-item[open] { border-color: var(--action); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--field); color: var(--action); font-size: 20px; font-weight: 500; line-height: 28px; text-align: center; transition: transform .15s, background .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--action); color: var(--card); }
.faq-item p { margin: 0; padding: 0 44px 22px 0; line-height: 1.65; color: var(--muted); }
.legacy summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); }
.legacy p { margin: 10px 0 0; font-size: 13px; }
.key-field { display: flex; align-items: center; gap: 10px; max-width: 420px; margin-top: 12px; padding: 5px 5px 5px 14px; background: var(--field); border-radius: 8px; }
#key-value { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 500 14px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.1em; color: var(--heading); }
button[aria-busy="true"], button[aria-busy="true"]:hover { cursor: progress; background: var(--action-hover); }
button[aria-busy="true"]::before {
  content: ''; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: busy-spin 700ms linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"]::before { animation-duration: 2s; } }
@media (pointer: coarse) { .btn, button, .nav, .langs a { min-height: 44px; } }
.topbar-brand { display: none; }
@media (max-width: 900px) {
  .tool-card { grid-template-columns: 1fr; }
  body.app { flex-direction: column; flex-wrap: nowrap; }
  .main-column { display: contents; }
  .topbar { order: 0; min-height: 52px; padding: 0 16px; }
  .topbar-brand { display: inline; font-size: 16px; }
  .side { order: 1; position: sticky; top: 0; z-index: 10; flex: none; min-width: 0; flex-direction: row; align-items: center; gap: 6px; padding: 8px 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .side::-webkit-scrollbar { display: none; }
  .side .brand, .side-label, .side-foot { display: none; }
  .side-group { display: contents; }
  .side .nav { flex: none; white-space: nowrap; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
  main.views { order: 2; padding-top: 32px; }
}
@media (max-width: 560px) {
  main { padding: 28px 20px; }
  .who { display: none; }
  .topbar-end .btn { min-height: 36px; padding: 0 12px; }
  .view { gap: 32px; }
  .head-id h1 { font-size: 24px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .plan { padding: 20px; }
  .panel { padding: 20px; }
  .connector { flex-wrap: wrap; }
  .steps { gap: 16px; }
  .steps li { flex-direction: row; align-items: flex-start; gap: 12px; }
  .steps li::before { flex: none; }
  .faq { columns: 1; }
  .faq-item { padding: 0 16px; }
  .faq-item p { padding-right: 0; }
}
