/* mcpfortally.com
   Laid out as tallynexa.ai is (12-Nov-26): always light, Inter with its display cut for headlines, centred
   chapters, dark square buttons, the product on grey bands and panels, a dark footer that ends on the name in
   dots. MCP for Tally keeps its own mark and its lime: lime is a fill (never text on white); its deep green is
   the text accent. */

@font-face { font-family: Inter; src: url(/fonts/Inter-latin.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/GeistMono-latin.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98A2B3;
  --line: #E8EBF0;
  --line-2: #D0D5DD;
  --white: #FFFFFF;
  --s2: #F8F9FB;
  --s3: #F1F3F6;
  --band: #F3F4F7;

  --brand-ink: #0E1116;
  --lime: #C5F04A;
  --lime-2: #B4E032;
  --lime-3: #8DBF1F;
  --lime-soft: #F4FADF;
  --lime-line: #DCEEA6;
  --lime-ink: #3E6B00;

  --ok: #17B26A;
  --ok-ink: #067647;
  --ok-soft: #ECFDF3;
  --warn-ink: #B54708;
  --warn-soft: #FFFAEB;
  --bad-ink: #B42318;
  --bad-soft: #FEF3F2;

  /* the app's own paper, inside the product window */
  --paper: #F4F5F7;
  --rail: #ECEEF1;
  --pline: #E2E5EA;

  --f: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1280px;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.5 var(--f); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, ol, h1, h2, h3, figure, pre, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--brand-ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); width: 100%; }
.ic { width: 16px; height: 16px; flex: none; }
.center { text-align: center; }

/* ---- type ---------------------------------------------------------------------------------------------- */
.display { font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; font-variation-settings: 'opsz' 32; }
.h1 { font-size: clamp(36px, 4.7vw, 68px); }
.h2 { font-size: clamp(34px, 3.7vw, 54px); }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); letter-spacing: -0.012em; text-wrap: pretty; }
.h-l { font-size: clamp(32px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; font-variation-settings: 'opsz' 32; }
.h-m { font-size: clamp(22px, 1.8vw, 26px); letter-spacing: -0.02em; }
.h-s { font-size: 19px; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
:is(.lead, .doc-body, .legal, .contact, .auth, .acct, .price-note, .checkout) a:not(.btn) { color: var(--lime-ink); text-underline-offset: 3px; }
.small { font-size: 14px; color: var(--ink-3); }
.mono { font-family: var(--mono) !important; font-size: 13.5px !important; word-break: break-all; }

/* ---- buttons ---------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font: 500 15px/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-dark, .btn-ink { background: var(--ink); color: var(--white); }
.btn-dark:hover, .btn-ink:hover { background: #1D2939; }
.btn-light, .btn-tone { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover, .btn-tone:hover { background: var(--s2); border-color: var(--ink-4); }
.btn-lime { background: var(--lime); color: var(--brand-ink); }
.btn-lime:hover { background: var(--lime-2); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: #E9ECF1; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--lime-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- top bar ---------------------------------------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; gap: 24px; }
.bar-brand { flex: none; }
.bar-brand img { height: 28px; width: auto; }
.bar-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 4px; }
.bar-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .15s, background-color .15s; }
.bar-link:hover, .bar-link[aria-current="page"] { color: var(--ink); background: var(--s3); }
.bar-acts { flex: none; display: flex; gap: 8px; }
.dd { position: relative; }
.dd-ic { width: 14px; height: 14px; transition: transform .2s; }
.dd-panel { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 18px 20px; width: 460px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(16,24,40,.10); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.dd-panel::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd:hover .dd-ic, .dd:focus-within .dd-ic { transform: rotate(180deg); }
.dd-col { display: grid; align-content: start; gap: 2px; }
.dd-h { font-size: 13px; color: var(--ink-3); padding: 0 8px 6px; }
.dd-col a { padding: 7px 8px; border-radius: 8px; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.dd-col a:hover { background: var(--s3); }
.dd-all { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--lime-ink) !important; font-weight: 500; }
.bar-menu { display: none; margin-left: auto; }
.bar-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); }
.bar-menu summary::-webkit-details-marker { display: none; }
.bar-menu summary .ic { width: 20px; height: 20px; }
.bar-menu .m-close, .bar-menu[open] .m-open { display: none; }
.bar-menu[open] .m-close { display: block; }
.bar-sheet { position: absolute; left: 0; right: 0; top: 64px; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: grid; box-shadow: 0 16px 32px rgba(16,24,40,.08); }
.bar-sheet > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; text-decoration: none; }
.bar-sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ---- hero ---------------------------------------------------------------------------------------------- */
.hero { position: relative; }
.hero-grid { position: absolute; inset: 0 0 auto; height: 640px; pointer-events: none;
  background-image: linear-gradient(to right, rgba(232,235,240,.85) 1px, transparent 1px), linear-gradient(to bottom, rgba(232,235,240,.85) 1px, transparent 1px);
  background-size: 112px 112px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 10%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 70% 80% at 50% 10%, #000 30%, transparent 85%); }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 56px; padding-bottom: 56px; }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; font-size: 14px; text-decoration: none; overflow: hidden; transition: border-color .15s; }
.pill:hover { border-color: var(--ink-4); }
.pill-a { padding: 6px 12px; font-weight: 500; }
.pill-on { display: inline-flex; align-items: center; gap: 7px; margin: 3px 0 3px 3px; padding: 3px 11px 3px 9px; border-radius: 999px; background: var(--lime); color: var(--brand-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-on i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-ink); }
.pill-on i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--brand-ink); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.pill-on + .pill-a { padding-left: 10px; }
.pill-b { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-left: 1px solid var(--line); color: var(--ink-3); transition: color .15s; }
.pill-b .ic { width: 14px; height: 14px; }
.pill:hover .pill-b { color: var(--ink); }
.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 18px; max-width: 54ch; }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
/* hero: copy on the left, the one-minute video on the right */
.hero-split { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 56px; align-items: center; text-align: left; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-split .h1 { font-size: clamp(38px, 3.75vw, 56px); }
.hero-split .h1 br { display: none; }
.hero-split .lede { font-size: 19px; max-width: 46ch; }
.hero-split .acts { justify-content: flex-start; }
.hero-media { margin: 0; width: 100%; }
.hm-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--band); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 32px 64px -32px rgba(16,24,40,.30); }
.hm-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-toggle { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: .85; transition: opacity .15s, background .15s; }
.hm-toggle:hover, .hm-toggle:focus-visible { opacity: 1; background: var(--white); }
.hm-toggle .ic { width: 16px; height: 16px; }
.hm-play, .hm-toggle.paused .hm-pause { display: none; }
.hm-toggle.paused .hm-play { display: inline-flex; }
.hm-pause { display: inline-flex; }
.hero-media figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

.flow { margin-top: 52px; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.flow-i { position: relative; display: flex; align-items: center; }
.flow-pipe { position: absolute; left: -40px; width: 40px; top: 50%; height: 1px; background: var(--line-2); overflow: hidden; }
.flow-pipe i { position: absolute; top: -1.5px; left: 0; width: 8px; height: 4px; border-radius: 2px; background: var(--lime-3); animation: flowx 1.8s linear infinite; }
@keyframes flowx { from { transform: translateX(-8px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(40px); opacity: 0; } }
.flow-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.flow-card:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(16,24,40,.06); }
.flow-card:active { transform: scale(.98); }
.flow-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--ink-2); border: 1px solid var(--line); }
.flow-ic .ic { width: 20px; height: 20px; }
.flow-ic-lime { background: var(--lime); border-color: var(--lime-2); color: var(--brand-ink); }
.flow-t { display: grid; min-width: 0; }
.flow-t b { font-size: 15px; font-weight: 600; }
.flow-t span { font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.flow-t .ok { color: var(--ok-ink); }
.flow-t .ok .ic { width: 14px; height: 14px; }

/* the app's tile: the mark on its ink square */
.tile-mark { display: grid; place-items: center; background: var(--brand-ink); border-radius: 22%; flex: none; }
.tile-mark svg { width: 74%; height: auto; }
.tm-xs { width: 18px; height: 18px; border-radius: 5px; }
.tm-sm { width: 40px; height: 40px; border-radius: 10px; }
.tm-lg { width: 56px; height: 56px; border-radius: 14px; }

/* ---- the band with the product ---------------------------------------------------------------------------- */
.band { position: relative; background: var(--band); padding-bottom: 64px; }
.notch { position: relative; width: min(820px, 100%); margin: 0 auto; height: 76px; display: flex; justify-content: center; }
.notch-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--white); }
.tabs { position: relative; display: flex; gap: 6px; padding-top: 12px; }
.tab { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 8px; border-radius: 10px; border: 1px solid transparent; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.tab:hover { background: var(--s2); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--white); border-color: var(--line-2); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.tab-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--s3); color: var(--ink-3); }
.tab-ic .ic { width: 15px; height: 15px; }
.tab-ask .tab-ic { background: var(--lime); color: var(--brand-ink); }
.tab[aria-selected="true"] .tab-ic { background: var(--lime); color: var(--brand-ink); }
.turn { display: flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; margin: 18px auto 22px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.turn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.turn.playing .turn-dot { background: var(--lime-3); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.turn-btn { border: 0; background: var(--s3); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.turn-btn:hover { background: var(--line); }
.win { position: relative; max-width: 1200px; margin: 0 auto; height: 660px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 24px 48px -24px rgba(16,24,40,.12); }
.win-cap { max-width: 860px; margin: 18px auto 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* the AI chat */
.chat { height: 100%; display: flex; flex-direction: column; background: var(--white); }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-title { font-weight: 600; }
.chat-mcp { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; }
.chat-on { display: inline-flex; align-items: center; gap: 5px; color: var(--ok-ink); font-weight: 500; }
.chat-on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chat-co { color: var(--ink-3); font-weight: 400; padding-left: 8px; border-left: 1px solid var(--line); }
.chat-log { flex: 1; overflow: hidden auto; padding: 26px 22px 12px; }
.talk { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.bubble { justify-self: end; max-width: 72%; background: var(--s3); border-radius: 18px 18px 4px 18px; padding: 11px 16px; font-size: 15.5px; }
.ai { display: grid; gap: 14px; font-size: 15.5px; line-height: 1.6; }
.call { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); font-size: 13.5px; width: fit-content; max-width: 100%; }
.call-ic { width: 22px; height: 22px; border-radius: 6px; background: var(--lime); color: var(--brand-ink); display: grid; place-items: center; }
.call-ic .ic { width: 13px; height: 13px; }
.call-what { color: var(--ink-3); }
.call-what b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; }
.call-args { color: var(--ink-3); font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-st { display: inline-flex; align-items: center; gap: 6px; color: var(--ok-ink); font-weight: 500; }
.call-ok::before { content: '✓ '; }
.spin { display: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink-2); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ans { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.ans th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); }
.ans td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ans .num { text-align: right; padding-right: 0; padding-left: 16px; }
.ai-text { display: grid; gap: 12px; justify-items: start; }
.ai-text .ans { justify-self: stretch; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; font-size: 14px; }
.file-ic { width: 26px; height: 26px; border-radius: 6px; background: #217346; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
/* a talk's stages, played by home.js: question, then the call, then the answer */
.talk .ai, .talk .bubble { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.talk.s-q .bubble, .talk.s-call .bubble, .talk.s-done .bubble { opacity: 1; transform: none; }
.talk.s-call .ai, .talk.s-done .ai { opacity: 1; transform: none; }
.talk.s-call .ai-text { visibility: hidden; }
.talk.s-call .spin { display: inline-block; }
.talk.s-call .call-ok { display: none; }
.talk.s-done .ai-text > * { animation: up .5s var(--ease) both; }
.talk.s-done .ai-text > :nth-child(2) { animation-delay: .08s; }
.talk.s-done .ai-text > :nth-child(3) { animation-delay: .16s; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-foot { padding: 12px 22px 18px; display: grid; gap: 10px; max-width: 864px; width: 100%; margin: 0 auto; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.qchip:hover { background: var(--s2); }
.qchip.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.composer { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 10px 10px 16px; min-height: 52px; }
.composer-text { flex: 1; color: var(--ink-4); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-text.typing { color: var(--ink); }
.composer-text.typing::after { content: ''; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.composer-send { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--white); display: grid; place-items: center; }
.composer-send .ic { width: 16px; height: 16px; transform: rotate(-90deg); }

/* the app, as its screens are */
.app { height: 100%; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--paper); font-size: 14px; }
.app-rail { background: var(--rail); border-right: 1px solid var(--pline); padding: 18px 12px; display: flex; flex-direction: column; gap: 20px; }
.app-brand img { height: 23px; width: auto; margin-left: 6px; }
.app-nav { display: grid; gap: 2px; }
.app-nav button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; font-weight: 500; text-align: left; cursor: pointer; }
.app-nav button .ic { width: 18px; height: 18px; color: #586170; }
.app-nav button:hover { background: rgba(14,17,22,.05); }
.app-nav button[aria-current="true"] { background: var(--white); box-shadow: 0 1px 2px rgba(14,17,22,.05), 0 4px 14px rgba(14,17,22,.05); }
.app-nav button[aria-current="true"]::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 0 2px var(--brand-ink); }
.app-status { margin-top: auto; display: grid; gap: 8px; font-size: 12.5px; }
.srow { display: flex; gap: 8px; padding: 9px 10px; background: var(--white); border: 1px solid var(--pline); border-radius: 10px; }
.srow b { display: block; font-weight: 600; }
.srow span { color: #586170; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: #3BA55C; margin-top: 5px; flex: none; }
.app-main { overflow: hidden auto; padding: 28px 32px; }
.scr-h { font-size: 24px; letter-spacing: -0.02em; }
.scr-p { margin-top: 6px; color: #586170; max-width: 64ch; }
.acards { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acard { background: var(--white); border: 1px solid var(--pline); border-radius: 14px; padding: 14px 16px; display: grid; gap: 12px; align-content: start; transition: border-color .3s, box-shadow .3s; }
.acard-on { border-color: #B9DA6A; box-shadow: 0 0 0 1px #DCEFA6; }
.acard-top { display: flex; align-items: center; gap: 12px; }
.acard-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--pline); background: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.acard-ic-mark { background: var(--white); }
.acard-ic-mark svg { width: 20px; height: 20px; }
.acard-n { flex: 1; min-width: 0; display: grid; }
.acard-n b { font-weight: 600; }
.acard-n span { font-size: 12.5px; color: #586170; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achip { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #ECEEF1; color: #586170; white-space: nowrap; }
.achip-ok { background: var(--lime); color: var(--brand-ink); }
.achip-ok::before { content: '✓ '; }
.achip-warn { background: #FBF1DC; color: #8A5A00; }
.achip-bad { background: #FBEAE8; color: #A4271F; }
.adesc { color: #586170; font-size: 13px; }
.anote { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.anote-ok { background: #EEF8D2; color: #2C4A00; }
.anote-warn { background: #FBF1DC; color: #5C3D00; }
.aacts { display: flex; gap: 8px; flex-wrap: wrap; }
.abtn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .15s; }
.abtn:hover { background: var(--s2); }
.abtn:active { transform: scale(.97); }
.abtn-lime { background: var(--lime); border-color: var(--lime-2); color: var(--brand-ink); }
.abtn-lime:hover { background: var(--lime-2); }
.abtn-dark { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--white); }
.abtn-dark:hover { background: #1B2129; }
.abtn-wide { width: 100%; height: 38px; }
.pcard { margin-top: 14px; background: var(--white); border: 1px solid var(--pline); border-radius: 14px; padding: 18px 20px; }
.pcard-t { font-weight: 600; }
.pcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pcard-head > span { display: grid; min-width: 0; }
.pcard-head > span span { font-size: 12.5px; color: #586170; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soft { color: #586170; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid-addr { grid-template-columns: minmax(0, 1fr) 110px auto; align-items: end; margin: 12px 0; }
.fl { display: grid; gap: 6px; font-weight: 600; font-size: 13px; margin-top: 12px; }
.fgrid .fl { margin-top: 0; }
.fl select, .fl input { height: 38px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; background: var(--white); font: 400 14px var(--f); color: var(--ink); width: 100%; }
.fperiod { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.fdate { border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.fto { color: #586170; }
.fpick { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.fpick.on { background: var(--brand-ink); color: var(--white); border-color: var(--brand-ink); }
.fmts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fmts button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--white); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.fmts button[aria-checked="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--white); }
.fgo { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pline); }
.fgrid .fgo { margin: 0; padding: 0; border: 0; }
.fmsg { font-size: 13px; color: #586170; }
.fmsg.ok { color: var(--ok-ink); font-weight: 500; }
.atable { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.atable th { text-align: left; font-weight: 600; color: #586170; padding: 8px 10px; border-bottom: 1px solid var(--pline); }
.atable td { padding: 10px; border-bottom: 1px solid #EFEEE8; vertical-align: top; }
.atable tbody tr:last-child td { border-bottom: 0; }
.atable td b { display: block; font-weight: 600; }
.atable td .soft, .atable td .bad { display: block; font-size: 12.5px; }
.atable .bad { color: #A4271F; }
.atable tr.new td { animation: arrive 1.6s var(--ease) both; }
@keyframes arrive { from { opacity: 0; background: var(--lime-soft); } 30% { opacity: 1; background: var(--lime-soft); } to { background: transparent; } }
.segs { display: flex; gap: 6px; margin-top: 12px; }
.segs button { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--white); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.segs button[aria-checked="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--white); }
.pcard-sw { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; }
.pcard-sw label { display: grid; gap: 2px; cursor: pointer; }
.pcard-sw label span { color: #586170; font-size: 13px; }

/* a switch */
.aswitch { position: relative; flex: none; display: inline-block; width: 38px; height: 22px; }
.aswitch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.aswitch span { position: absolute; inset: 0; border-radius: 999px; background: #D4D3CC; transition: background-color .2s; }
.aswitch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform .2s var(--ease); }
.aswitch input:checked + span { background: var(--brand-ink); }
.aswitch input:checked + span::after { transform: translateX(16px); background: var(--lime); }
.aswitch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- works with ---------------------------------------------------------------------------------------------- */
.works { padding-top: 88px; }
.works-h { text-align: center; font-size: 15px; color: var(--ink-3); }
.logos { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logos-track { display: flex; width: max-content; animation: drift 46s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex: none; }
.logos-set li { display: flex; align-items: center; gap: 10px; color: var(--ink-4); transition: color .3s; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.logos:hover .logos-set li { color: var(--ink-2); }
.logos-set svg { fill: currentColor; transition: fill .3s; }
.logos:hover .logos-set svg { fill: var(--brand); }
.lg-ic { width: 27px; height: 27px; }
.lg-word { height: 30px; width: auto; }
@keyframes drift { to { transform: translateX(-50%); } }
.works-note { margin: 28px auto 0; max-width: 80ch; text-align: center; font-size: 14px; color: var(--ink-3); }

/* ---- the drifting feature cards ---------------------------------------------------------------------------------- */
.feats { padding-top: 152px; }
.feats .h2 { margin-bottom: 56px; }
.frow { overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.frow + .frow { margin-top: 18px; }
.frow-track { display: flex; width: max-content; animation: drift 70s linear infinite; }
.frow-rev .frow-track { animation-direction: reverse; }
.frow:hover .frow-track, .frow:focus-within .frow-track { animation-play-state: paused; }
.frow-set { display: flex; gap: 18px; padding-right: 18px; flex: none; }
.fcard { position: relative; width: 316px; min-height: 216px; display: grid; align-content: start; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.fcard:hover { border-color: var(--line-2); box-shadow: 0 10px 28px -12px rgba(16,24,40,.16); transform: translateY(-2px); }
.fcard-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); border: 1px solid var(--lime-line); color: var(--lime-ink); margin-bottom: 18px; }
.fcard-ic .ic { width: 24px; height: 24px; }
.fcard-go { position: absolute; top: 24px; right: 22px; color: var(--ink-4); transition: color .2s, transform .2s var(--ease); }
.fcard:hover .fcard-go { color: var(--ink); transform: translateX(3px); }
.fcard b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.fcard > span:last-child { color: var(--ink-3); font-size: 15px; line-height: 1.5; }

/* ---- chapters ---------------------------------------------------------------------------------------------- */
.ch { padding-top: 168px; scroll-margin-top: 0; }
.ch-head { max-width: 880px; margin: 0 auto 56px; text-align: center; display: grid; justify-items: center; }
.ch-head .lede { margin-top: 18px; max-width: 60ch; }
.panel { background: var(--band); border-radius: 24px; padding: 32px; }
.panel-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.mini-win { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mini-bar { padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--s2); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* how: step tabs with bars, then the step */
.steps-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px 18px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink-3); text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.step:hover { color: var(--ink); }
.step.on { background: var(--white); color: var(--ink); }
.step-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--line); color: var(--ink-2); flex: none; }
.step.on .step-n, .step.done .step-n { background: var(--brand-ink); color: var(--lime); }
.step-bar { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.step-bar i { position: absolute; inset: 0; background: var(--lime-3); transform-origin: left; transform: scaleX(0); }
.step.done .step-bar i { transform: scaleX(1); }
.steps-stage { margin-top: 18px; min-height: 420px; display: grid; }
.sframe { display: grid; align-content: center; justify-items: center; gap: 18px; animation: up .5s var(--ease) both; }
.sframe-cap { max-width: 62ch; text-align: center; font-size: 15px; color: var(--ink-2); }
.inst { width: min(560px, 100%); }
.inst-body { display: flex; gap: 18px; padding: 26px 24px; align-items: flex-start; }
.inst-text { display: grid; gap: 10px; min-width: 0; }
.inst-text b { font-size: 18px; }
.inst-text p { color: var(--ink-3); font-size: 14.5px; }
.inst-text code { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { position: relative; height: 8px; border-radius: 8px; background: var(--s3); overflow: hidden; }
.track i { position: absolute; inset: 0; background: var(--lime-3); transform-origin: left; transform: scaleX(.86); transition: transform .2s linear; }
.gate { width: min(520px, 100%); padding: 30px 28px; display: grid; justify-items: center; gap: 14px; background: var(--paper); }
.gate img { height: 27px; width: auto; }
.gate-h { font-size: 22px; letter-spacing: -0.02em; }
.gate-row { display: flex; gap: 8px; width: 100%; }
.gate-key { flex: 1; height: 42px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font: 500 14px var(--mono); letter-spacing: .04em; }
.gate .abtn { height: 42px; }
.gate-or { font-size: 13px; color: var(--ink-3); }
.gate-ok { width: 100%; }
.add-flow { width: min(940px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.acard-solo { background: var(--white); min-height: 210px; }
.add-steps { display: grid; gap: 10px; counter-reset: s; }
.add-steps li { position: relative; padding: 12px 14px 12px 46px; border-radius: 12px; color: var(--ink-3); font-size: 15px; transition: background-color .3s, color .3s; }
.add-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink-2); }
.add-steps li.on { background: var(--white); color: var(--ink); }
.add-steps li.on::before { background: var(--brand-ink); color: var(--lime); }
.mini-chat { width: min(640px, 100%); padding: 24px; display: grid; gap: 14px; font-size: 15px; }

/* what you can ask */
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qcard { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.qcard-q { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.qcard-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.qcard-tools code { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--lime-soft); border: 1px solid var(--lime-line); color: var(--lime-ink); }
.qcard-d { font-size: 14.5px; color: var(--ink-3); }

/* export */
.ex { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.ex-list { display: grid; gap: 6px; }
.ex-row { width: 100%; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s; }
.ex-row:hover { background: rgba(255,255,255,.6); }
.ex-row.on { background: var(--white); border-color: var(--line); }
.ex-name { font-weight: 600; font-size: 16px; display: flex; align-items: baseline; gap: 8px; }
.ex-ext { font: 500 12.5px var(--mono); color: var(--ink-3); }
.ex-d { font-size: 14px; color: var(--ink-3); display: none; }
.ex-row.on .ex-d { display: block; }
.ex-pic { position: sticky; top: 96px; display: grid; }
.ex-frame { grid-area: 1 / 1; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease), visibility .35s; }
.ex-frame.on { opacity: 1; visibility: visible; transform: none; }
.pv { margin: 0; }
.pv-code { padding: 20px 22px; font-size: 13px; line-height: 1.65; color: var(--ink-2); overflow-x: auto; min-height: 300px; }
.pv-xlsx table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pv-xlsx th, .pv-xlsx td { border: 1px solid var(--line); padding: 8px 10px; white-space: nowrap; }
.pv-xlsx thead th, .pv-xlsx tbody th { background: var(--s2); color: var(--ink-3); font-weight: 500; text-align: center; width: 38px; }
.pv-xlsx .hd td { font-weight: 600; background: #E9F3E6; }
.pv-xlsx .sel td:nth-child(4) { outline: 2px solid #217346; outline-offset: -2px; }
.pv-tabs { display: flex; gap: 2px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.pv-tabs span { padding: 3px 10px; border-radius: 6px; }
.pv-tabs .on { background: var(--white); color: #217346; font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.pv-print { padding: 28px 30px; min-height: 300px; }
.pv-print-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.pv-print-h span { color: var(--ink-3); font-size: 14px; }
.pv-print table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.pv-print td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.pv-print .tot td { font-weight: 700; border-bottom: 0; }

/* control */
.ctl { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: start; }
.ctl-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 8px 24px; }
.ctl-h { font-weight: 600; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.ctl-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ctl-row:last-child { border-bottom: 0; }
.ctl-row label { display: grid; gap: 4px; cursor: pointer; }
.ctl-row b { font-weight: 600; font-size: 16px; }
.ctl-row label span { color: var(--ink-3); font-size: 14.5px; }
.ctl-side { display: grid; gap: 16px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; gap: 6px; }
.side-h { font-weight: 600; font-size: 16px; }
.side-card p:last-child { color: var(--ink-2); font-size: 15px; }

/* where the data goes */
.lanes { display: grid; gap: 16px; }
.lane { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px; }
.lane-h { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.lane-t b { font-size: 17px; font-weight: 600; }
.lane-t span { margin-left: 10px; font-size: 14.5px; color: var(--ink-3); }
.lane-chip { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--s3); color: var(--ink-2); white-space: nowrap; }
.lane-local .lane-chip { background: var(--lime); color: var(--brand-ink); }
.lane-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 44px; align-items: center; }
.pcbox { position: relative; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 24px 16px 16px; }
.pcbox-l { position: absolute; top: -10px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--white); font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.pcbox-l .ic { width: 14px; height: 14px; }
.nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.node { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--s2); min-width: 0; }
.node-ic, .out-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.node-ic .ic, .out-ic .ic { width: 18px; height: 18px; }
.node-t { display: grid; min-width: 0; }
.node-t b { font-size: 14.5px; font-weight: 600; }
.node-t span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node + .node::before, .out::before { content: ''; position: absolute; top: 50%; height: 1px; background: var(--line-2); }
.node + .node::before { left: -37px; width: 36px; }
.node + .node::after, .lane-cloud .out::after { content: ''; position: absolute; top: calc(50% - 1.5px); width: 8px; height: 4px; border-radius: 2px; background: var(--lime-3); animation: pipe 1.8s linear infinite; }
.node + .node::after { left: -37px; }
.out { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); min-width: 0; }
.out::before { left: -45px; width: 44px; }
.lane-cloud .out::after { left: -45px; --to: 36px; }
.lane-cloud .out .node-t span { white-space: normal; }
.lane-local .out { background: var(--s2); border-style: dashed; color: var(--ink-3); }
.lane-local .out::before { height: 0; background: none; border-top: 1.5px dashed var(--line-2); }
.lane-local .out .out-ic { background: var(--s3); color: var(--ink-3); }
@keyframes pipe { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(var(--to, 28px)); opacity: 0; } }
.keep { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.keep li:nth-child(2) { background: var(--lime-soft); border-color: var(--lime-line); }
.flow-cap { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); text-align: left; }
.flow-cap .ic { flex: none; width: 16px; height: 16px; color: var(--lime-ink); }
.flow-cap a, .local-alt a { color: var(--lime-ink); text-underline-offset: 3px; }
.acard-ic-local { background: var(--lime-soft); border-color: var(--lime-line); color: var(--lime-ink); }

/* fully local with Ollama */
.local { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.local-l { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.lsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lsteps li { display: flex; gap: 14px; align-items: flex-start; }
.lstep-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-ink); color: var(--lime); font-size: 13px; font-weight: 600; }
.lstep-t { display: grid; gap: 10px; padding-top: 2px; font-size: 16px; }
.lstep-t code { width: fit-content; max-width: 100%; padding: 7px 12px; border-radius: 8px; background: var(--brand-ink); color: #E6F6B8; font-size: 13.5px; }
.local-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.local-go { margin-top: 20px; }
.local-go .btn .ic { width: 16px; height: 16px; }
.local-r { display: grid; gap: 14px; }
.lchat-bar { display: flex; justify-content: space-between; gap: 10px; }
.net-off { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 500; }
.net-off .ic { width: 14px; height: 14px; }
.lchat-body { padding: 20px; display: grid; gap: 12px; font-size: 15px; }
.lchat-foot { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ok-ink); }
.lchat-foot .ic { width: 14px; height: 14px; }
.lnotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lnotes li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--ink-2); }

/* apps */
.agrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.agrid li:last-child { grid-column: span 2; }
.gcard { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.gcard:hover { border-color: var(--line-2); box-shadow: 0 10px 28px -12px rgba(16,24,40,.16); transform: translateY(-2px); }
.gcard b { font-size: 17px; font-weight: 600; }
.gcard > span:nth-child(2) { color: var(--ink-3); font-size: 14.5px; }
.gcard-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--lime-ink); }
.gcard:hover .gcard-go .ic { transform: translateX(3px); }
.gcard-go .ic { transition: transform .2s var(--ease); }

/* pricing */
.cur-row { margin-top: 22px; font-size: 14px; color: var(--ink-3); }
/* one currency on screen (rule 7.2): <html data-cur> hides the other where the page carries both */
html[data-cur="INR"] [data-cur-show="USD"], html[data-cur="USD"] [data-cur-show="INR"] { display: none !important; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--s2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan-mid { background: var(--lime-soft); border-color: var(--lime-line); }
.plan-name { font-size: 20px; letter-spacing: -0.01em; }
.plan-for { margin-top: 6px; color: var(--ink-2); font-size: 15px; min-height: 45px; }
.plan-price { margin-top: 22px; font-size: 46px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variation-settings: 'opsz' 32; }
.plan-price small { display: block; margin-top: 10px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.plan-box { margin-top: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.plan-box div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14.5px; }
.plan-box div + div { border-top: 1px solid var(--line); }
.plan-box dt { color: var(--ink-3); }
.plan-box dd { font-weight: 600; }
.plan-buy { margin-top: 22px; }
/* the same plan paid once (owner, 12-Nov-26): a row in the box, and a quiet link under the yearly button */
.plan-box .plan-life dt { color: var(--ink-2); }
.plan-buy-life { display: block; margin-top: 10px; padding: 6px 0; text-align: center; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2, #cfd4dc); text-underline-offset: 4px; }
.plan-buy-life:hover { text-decoration-color: currentColor; }
.co-lines .co-sub { color: var(--ink-3); font-size: 13.5px; }
.plan-inc { margin-top: 24px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.plan-list { margin-top: 10px; display: grid; gap: 9px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; }
.tick { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--lime-ink); }
.every { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
.every-h h3 { font-size: 20px; }
.every-h p { margin-top: 4px; color: var(--ink-3); font-size: 14.5px; }
.every-list { display: flex; flex-wrap: wrap; gap: 8px; }
.every-list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; }
.every-list .ic { width: 14px; height: 14px; color: var(--lime-ink); }
.price-note { margin-top: 28px; font-size: 14px; color: var(--ink-3); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; max-width: 1120px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.qa[open] summary .ic { transform: rotate(180deg); }
.qa summary:hover { color: var(--ink-2); }
.qa p { padding: 0 32px 22px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }

/* close */
.close { padding: 176px 0 152px; text-align: center; }
.close .acts { margin-top: 32px; }

/* ---- footer ---------------------------------------------------------------------------------------------- */
.foot { background: #0B0F17; color: #C3C9D4; overflow: hidden; }
.foot-in { max-width: var(--wrap); margin-inline: auto; padding: 72px var(--pad) 0; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin-top: 18px; font-size: 15px; line-height: 1.55; max-width: 30ch; color: #C3C9D4; }
.foot-brand .foot-acts { display: flex; gap: 8px; margin-top: 18px; }
.foot-col { display: grid; align-content: start; gap: 12px; }
.foot-col h2 { font-size: 14px; font-weight: 600; color: var(--white); letter-spacing: 0; margin-bottom: 6px; }
.foot-col a { font-size: 14px; color: #98A2B3; text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid #1F2633; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: #98A2B3; }
.foot-legal-links a, .foot-top-link { color: #98A2B3; text-decoration: none; }
.foot-legal-links a:hover, .foot-top-link:hover { color: var(--white); }
.foot-top-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.foot-top-link .up { transform: rotate(180deg); width: 14px; height: 14px; }
.foot-legal { margin-top: 14px; font-size: 12.5px; color: #667085; max-width: 110ch; }
.foot-dots { position: relative; margin-top: 56px; height: clamp(84px, 10.5vw, 150px); display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2vw, 28px); padding-top: 8px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 1.4px) 0 0 / 6px 6px; }
.foot-dots span { display: block; flex: none; --dot: radial-gradient(circle, var(--c) 0 1.45px, transparent 1.85px) 0 0 / 6px 6px; background: var(--dot); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.dots-mark { --c: var(--lime); height: clamp(98px, 12.6vw, 182px); aspect-ratio: 48 / 52;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 6 48 52'%3E%3Cpath fill-rule='evenodd' d='M24.25 7.5a2.75 2.75 0 0 1 2.75 2.75V16h10v-5.75a2.75 2.75 0 0 1 5.5 0V16H44a9 9 0 0 1 9 9v14a9 9 0 0 1-9 9H30.5l-10 8.2V48A9 9 0 0 1 11 39V25a9 9 0 0 1 9-9h1.5v-5.75a2.75 2.75 0 0 1 2.75-2.75ZM20.75 24.5h22.5a1.75 1.75 0 0 1 0 3.5h-22.5a1.75 1.75 0 0 1 0-3.5Zm0 6h22.5a1.75 1.75 0 0 1 0 3.5h-22.5a1.75 1.75 0 0 1 0-3.5Zm0 6h11.5a1.75 1.75 0 0 1 0 3.5h-11.5a1.75 1.75 0 0 1 0-3.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 6 48 52'%3E%3Cpath fill-rule='evenodd' d='M24.25 7.5a2.75 2.75 0 0 1 2.75 2.75V16h10v-5.75a2.75 2.75 0 0 1 5.5 0V16H44a9 9 0 0 1 9 9v14a9 9 0 0 1-9 9H30.5l-10 8.2V48A9 9 0 0 1 11 39V25a9 9 0 0 1 9-9h1.5v-5.75a2.75 2.75 0 0 1 2.75-2.75ZM20.75 24.5h22.5a1.75 1.75 0 0 1 0 3.5h-22.5a1.75 1.75 0 0 1 0-3.5Zm0 6h22.5a1.75 1.75 0 0 1 0 3.5h-22.5a1.75 1.75 0 0 1 0-3.5Zm0 6h11.5a1.75 1.75 0 0 1 0 3.5h-11.5a1.75 1.75 0 0 1 0-3.5Z'/%3E%3C/svg%3E"); }
.dots-word { --c: #E4E7EC; height: clamp(72px, 9.3vw, 134px); margin-top: clamp(10px, 1.4vw, 20px); aspect-ratio: 534.6 / 104; -webkit-mask-image: url(/brand/wordmark-dark.svg); mask-image: url(/brand/wordmark-dark.svg); }

/* ---- other pages ---------------------------------------------------------------------------------------------- */
.page-head { text-align: center; padding-top: 72px; display: grid; justify-items: center; }
.page-head .lead { margin-top: 16px; max-width: 62ch; }
.doc-hero, .dl-hero, .contact, .legal, .oops, .acct, .admin { padding-top: 64px; }
.doc-hero, .dl-hero, .oops { text-align: center; display: grid; justify-items: center; }
.doc-hero .lead, .dl-hero .lead, .contact .lead, .legal .lead, .oops .lead { margin-top: 16px; max-width: 62ch; }
.oops { padding-bottom: 96px; }
.oops p:last-child { margin-top: 28px; }
.doc-index { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 56px; padding-bottom: 32px; }
.doc-group { background: var(--band); border-radius: 24px; padding: 24px; }
.doc-group .h-m { margin-bottom: 16px; font-size: 20px; }
.doc-links { display: grid; gap: 10px; }
.doc-index .doc-group:last-child .doc-links { grid-template-columns: 1fr 1fr; }
.doc-links a { display: grid; align-content: start; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; height: 100%; transition: border-color .2s, box-shadow .2s; }
.doc-links a:hover { border-color: var(--line-2); box-shadow: 0 8px 24px -12px rgba(16,24,40,.16); }
.doc-links b { font-size: 17px; font-weight: 600; }
.doc-links span { font-size: 14.5px; color: var(--ink-3); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
.doc-side { position: sticky; top: 88px; align-self: start; font-size: 14.5px; }
.doc-side > p a { color: var(--ink-3); text-decoration: none; }
.doc-side ul { margin-top: 12px; display: grid; gap: 2px; }
.doc-side a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.doc-side a:hover { background: var(--s3); color: var(--ink); }
.doc-side a[aria-current="page"] { background: var(--s3); color: var(--ink); font-weight: 600; }
.doc-body { max-width: 760px; }
.doc-body .lead { margin-top: 16px; }
.doc-body h2 { font-size: 24px; letter-spacing: -0.02em; margin-top: 44px; }
.doc-body > p { margin-top: 14px; color: var(--ink-2); }
.doc-body code { background: var(--s3); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.olist { margin-top: 16px; padding-left: 0; display: grid; gap: 10px; counter-reset: o; }
.olist li { position: relative; padding-left: 38px; color: var(--ink-2); }
.olist li::before { counter-increment: o; content: counter(o); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--s3); color: var(--ink); }
.tip { margin-top: 28px; display: grid; grid-template-columns: 20px 1fr; gap: 12px; background: var(--lime-soft); border: 1px solid var(--lime-line); padding: 16px 18px; border-radius: 14px; color: var(--ink); }
.bul { width: 18px; height: 18px; margin-top: 3px; color: var(--lime-ink); flex: none; }
.warn { margin-top: 24px !important; background: var(--warn-soft); color: #5C3D00; padding: 14px 18px; border-radius: 14px; border: 1px solid #FEDF89; }
.code { position: relative; margin-top: 18px; }
.code figcaption { font-size: 13.5px; color: var(--ink-3); margin-bottom: 6px; }
.code pre { background: #0B0F17; color: #DDE7C2; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.code code { background: none; padding: 0; color: inherit; }
.copy { position: absolute; right: 10px; top: 34px; background: #1F2633; color: var(--white); border: 0; border-radius: 7px; padding: 6px 12px; font: 500 13px var(--f); cursor: pointer; transition: background-color .2s; }
.copy:hover { background: #2B3444; }
.copy.done { background: var(--lime); color: var(--brand-ink); }
.doc-next { margin-top: 48px !important; font-size: 15px; color: var(--ink-3); padding-bottom: 32px; }
.blist { display: grid; gap: 10px; margin-top: 12px; }
.blist li { display: flex; gap: 10px; }

.dl-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.dl { background: var(--s2); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; gap: 14px; align-content: start; }
.dl-mine { background: var(--lime-soft); border-color: var(--lime-line); }
.dl-os { width: 52px; height: 52px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.dl-os .ic { width: 26px; height: 26px; }
.dl h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-yours { font-size: 12.5px; font-weight: 600; background: var(--brand-ink); color: var(--lime); padding: 4px 10px; border-radius: 999px; letter-spacing: 0; }
.dl-meta { color: var(--ink-2); }
.dl-hash { font-size: 13.5px; color: var(--ink-3); word-break: break-all; }
.dl-hash code { font-size: 12px; }
.dl-req { font-size: 14.5px; color: var(--ink-2); }
.dl-first { border-top: 1px solid var(--line); padding-top: 12px; }
.dl-first summary { cursor: pointer; font-weight: 500; font-size: 15px; }
.dl-first p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.dl-next { margin-top: 24px; padding-bottom: 48px; }
.dl-next .panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
.dl-next .olist { margin-top: 0; }

.pr-more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-bottom: 56px; }
.pr-more > div { background: var(--band); border-radius: 24px; padding: 28px; }
.pr-more p { margin-top: 12px; color: var(--ink-2); }
.pr-more a { color: var(--lime-ink); }
.pricing-page { padding-top: 0; }
.pricing-page .ch-head { margin-top: 72px; }

.legal { max-width: 820px; padding-bottom: 64px; }
.legal section { margin-top: 36px; }
.legal section p { margin-top: 10px; color: var(--ink-2); }
.contact { padding-bottom: 64px; }
.contact-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 40px; }
.contact-cols > div { background: var(--band); border-radius: 24px; padding: 28px; }
.contact-cols p { margin-top: 12px; color: var(--ink-2); }

/* forms, notices, tables */
.auth { padding-top: 72px; padding-bottom: 72px; display: grid; justify-items: center; }
.auth-box { width: 100%; max-width: 480px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 24px 48px -28px rgba(16,24,40,.18); }
.auth-wide { max-width: 720px; }
.auth-box .lead { margin-top: 14px; font-size: 16px; }
.auth-box .small { margin-top: 14px; }
.form { margin-top: 24px; display: grid; gap: 16px; }
.form-inline { margin-top: 18px; }
.field { display: grid; gap: 6px; margin: 0; }
.field label, .field-label, .choices legend { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea, .admin-search input { width: 100%; height: 44px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); border-radius: 8px; padding: 0 12px; font: 16px/1.4 var(--f); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.field textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .admin-search input:focus { outline: none; border-color: var(--lime-3); box-shadow: 0 0 0 4px rgba(197,240,74,.45); }
.code-input { font-size: 26px !important; letter-spacing: .3em; font-weight: 600; height: 56px !important; text-align: center; }
.hint { font-size: 13.5px; color: var(--ink-3); }
.err { font-size: 13.5px; color: var(--bad-ink); font-weight: 500; }
.has-err input, .has-err select { border-color: #FDA29B; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: 10px; font-size: 15px; border: 1px solid transparent; }
.notice-ok { background: var(--ok-soft); color: var(--ok-ink); border-color: #ABEFC6; }
.notice-err { background: var(--bad-soft); color: var(--bad-ink); border-color: #FECDCA; }
.notice-dev { background: var(--s3); border-color: var(--line); }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; font-size: 15.5px; transition: border-color .15s, background-color .15s; }
.choice:has(input:checked) { border-color: var(--lime-3); background: var(--lime-soft); }
.choice input { margin-top: 3px; accent-color: var(--brand-ink); width: 18px; height: 18px; }
.seg-choice { display: inline-flex; background: var(--s3); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; width: fit-content; }
.seg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.seg-choice label, .seg-link { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-3); text-decoration: none; }
.seg-choice input:checked + label, .seg-link.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.seg-choice input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 16px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .num { text-align: right; }
.tbl-wrap { overflow-x: auto; }
.result { margin-top: 16px; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; padding-top: 64px; padding-bottom: 72px; align-items: start; }
.co-form .lead { margin-top: 14px; }
.co-sum { position: sticky; top: 88px; }
.co-sum-in { background: var(--s2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.co-plan { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 19px; margin-bottom: 18px; }
.co-plan .mini { width: 28px; height: 28px; padding: 4px; background: var(--brand-ink); border-radius: 8px; }
.co-lines p { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-lines-plain { margin-top: 24px; max-width: 520px; }
.co-total { font-weight: 700; font-size: 19px; margin-top: 4px; border-bottom: 0 !important; }
.co-incl { margin-top: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.india-only[hidden] { display: none; }

.acct { padding-bottom: 32px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.acct-head .lead { margin-top: 10px; }
.kcard { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.kcard-off { opacity: .75; }
.kcard-key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kcard-key code { font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: .02em; }
.kcard-key .copy { position: static; }
.kcard-plan { margin-top: 8px; color: var(--ink-3); }
.kcard-plan b { color: var(--ink); }
.kcard-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kcard .small { margin-top: 10px; }
.empty { margin-top: 20px; background: var(--band); border-radius: 20px; padding: 32px; }
.empty p + p { margin-top: 16px; }
.acct-more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-bottom: 64px; }
.acct-more > div { background: var(--band); border-radius: 20px; padding: 28px; }
.acct-dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.admin { padding-bottom: 64px; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.admin-stats span { background: var(--s3); padding: 10px 16px; border-radius: 999px; }
.admin-search { display: flex; gap: 8px; max-width: 520px; }
.admin-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 48px; }
.admin-acts .form { background: var(--band); padding: 24px; border-radius: 20px; margin: 0; }
.admin .h-m { margin-top: 40px; }

/* ---- motion: parts rise in once, when first seen (site.js marks them) -------------------------------------------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rise { opacity: 1; transform: none; }
  .logos-track, .frow-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logos-set[aria-hidden], .frow-set[aria-hidden] { display: none; }
  .frow-set { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .logos-set { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; gap: 24px 48px; padding: 0 16px; }
  .logos, .frow { -webkit-mask-image: none; mask-image: none; }
}

/* ---- tablet and phone ---------------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .bar-nav > .bar-link:first-child { display: none; }
  .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  :root { --pad: 24px; }
  .bar-nav, .bar-acts { display: none; }
  .bar-menu { display: block; }
  .flow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-pipe { display: none; }
  .win { height: 640px; }
  .app { grid-template-columns: 1fr; }
  .app-rail { display: none; }
  .qgrid { grid-template-columns: 1fr 1fr; }
  .ex { grid-template-columns: 1fr; }
  .ex-pic { position: static; order: -1; }
  .ctl { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-copy { align-items: center; }
  .hero-split .acts { justify-content: center; }
  .hero-split .lede { max-width: 54ch; }
  .hero-media { max-width: 640px; margin-inline: auto; }
  .local { grid-template-columns: 1fr; }
  .lane-row { grid-template-columns: 1fr; gap: 14px; }
  .out { width: fit-content; max-width: 100%; }
  .out::before, .lane-cloud .out::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .every { grid-template-columns: 1fr; gap: 16px; }
  .faq { grid-template-columns: 1fr; }
  .add-flow { grid-template-columns: 1fr; }
  .doc-index { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .doc-side { position: static; }
  .doc-side ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-side a { border: 1px solid var(--line); }
  .checkout { grid-template-columns: 1fr; }
  .co-sum { position: static; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .h1 { font-size: 36px; letter-spacing: -0.035em; }
  .h2 { font-size: 32px; }
  .lede { font-size: 17px; }
  .hero-in { padding-top: 36px; padding-bottom: 40px; }
  .hero h1 br, .h2 br { display: none; }
  .acts { flex-direction: column; align-items: stretch; width: 100%; }
  .flow { grid-template-columns: 1fr; }
  .notch { height: auto; width: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .notch-shape { display: none; }
  .tabs { width: 100%; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .band { padding-bottom: 40px; }
  .win { height: 600px; border-radius: 14px; }
  .chat-co, .call-args { display: none; }
  .chat-log { padding: 18px 14px 8px; }
  .chat-foot { padding: 10px 14px 14px; }
  .qchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .qchip { flex: none; }
  .bubble { max-width: 88%; }
  .ans { font-size: 13.5px; }
  .app-main { padding: 20px 16px; }
  .acards { grid-template-columns: 1fr; }
  .fgrid, .fgrid-addr { grid-template-columns: 1fr; }
  .alog th:nth-child(5), .alog td:nth-child(5) { display: none; }
  .works { padding-top: 64px; }
  .logos-set { gap: 44px; padding-right: 44px; }
  .logos-set li { font-size: 18px; }
  .feats { padding-top: 112px; }
  .feats .h2 { margin-bottom: 36px; }
  .fcard { width: 272px; min-height: 0; padding: 20px; }
  .ch { padding-top: 112px; }
  .ch-head { margin-bottom: 36px; }
  .panel { padding: 16px; border-radius: 20px; }
  .steps-tabs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .step { padding: 10px 12px 16px; font-size: 14px; }
  .steps-stage { min-height: 0; }
  .inst-body { flex-direction: column; }
  .gate { padding: 24px 18px; }
  .gate-row { flex-direction: column; }
  .qgrid { grid-template-columns: 1fr; }
  .agrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nodes { grid-template-columns: 1fr; gap: 14px; }
  .node + .node::before { left: 29px; top: -15px; width: 1px; height: 14px; }
  .node + .node::after { display: none; }
  .keep { grid-template-columns: 1fr; }
  .lane { padding: 18px 14px; }
  .lane-t span { display: block; margin: 2px 0 0; }
  .local-l { padding: 20px 18px; }
  .flow-cap { font-size: 13.5px; }
  .pill-b { display: none; }
  .gcard { padding: 16px; }
  .plan { padding: 22px; }
  .plan-price { font-size: 40px; }
  .close { padding: 112px 0 104px; }
  .foot-in { padding-top: 56px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .dl-boxes, .pr-more, .contact-cols, .acct-more, .admin-acts, .field-row { grid-template-columns: 1fr; }
  .dl-next .panel { grid-template-columns: 1fr; }
  .doc-index .doc-group:last-child .doc-links { grid-template-columns: 1fr; }
  .auth-box { padding: 24px; border-radius: 16px; }
  .page-head, .doc-hero, .dl-hero, .contact, .legal, .oops, .acct, .admin, .auth { padding-top: 40px; }
}
