/* FlowsToken — light editorial design system
   Paper white, ink blue accent, mono numerals. No gradients, no glow. */

:root {
  --paper: #fbfbf9;
  --paper-2: #f3f3ef;
  --paper-3: #eaeae4;
  --ink: #0e1220;
  --ink-2: #3a4050;
  --ink-3: #6b7280;
  --ink-4: #9aa0ab;
  --line: #e3e3dc;
  --line-2: #d1d1c8;
  --accent: #1f4fd8;
  --accent-ink: #163ba6;
  --accent-soft: #e9eefc;
  --brand-blue: #238df7;
  --ok: #167a4a;
  --ok-soft: #e4f3ea;
  --warn: #9a5b00;
  --warn-soft: #fbf1dc;

  --sans: "Onest", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(14, 18, 32, .04), 0 1px 1px rgba(14, 18, 32, .03);
  --shadow-2: 0 1px 2px rgba(14, 18, 32, .05), 0 12px 32px -12px rgba(14, 18, 32, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code, .mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #e7e9ee;
  font-size: 13px;
  line-height: 1.4;
}
.announce .wrap {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 36px; padding: 6px 0;
}
.announce .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: #c8cfe0; border: 1px solid rgba(255,255,255,.22); padding: 1px 7px; border-radius: 999px;
}
.announce a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); white-space: nowrap; }
.announce .tag { white-space: nowrap; }
.announce a:hover { border-color: #fff; }
.announce-msgs {
  display: grid;
  min-width: 0;
  max-width: 100%;
}
.announce-msg {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .5s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.announce-msg.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .announce-msg { transition: none; }
  .announce-msg:not(.is-on) { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 249, .85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { height: 26px; width: auto; display: block; }
.brand-word { color: var(--ink); }
.brand-word b { font-weight: 600; color: var(--brand-blue); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 7px 11px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink-2);
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a.is-current { color: var(--ink); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; font-size: 12.5px;
}
.lang-switch a { padding: 3px 9px; border-radius: 999px; color: var(--ink-3); white-space: nowrap; }
.lang-switch a.is-on { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1f2536; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink-4); background: var(--paper-2); }
.btn-ghost { color: var(--ink-2); padding: 0 10px; }
.btn-ghost:hover { color: var(--ink); background: var(--paper-2); }
.nav-login.is-logged-in { max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, rgba(0,0,0,.35), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, rgba(0,0,0,.35), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--ink-4); }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.12;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 52ch; }
.hero-lede code { font-size: 15px; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.hero-actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start; }
.hero-facts div { border-left: 1px solid var(--line-2); padding-left: 14px; }
.hero-facts strong { display: block; font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.hero-facts span { font-size: 12.5px; color: var(--ink-3); }

/* Receipt card */
.receipt {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.receipt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.kv { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.kv small { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; letter-spacing: .02em; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kv-row code { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  flex: none; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
}
.copy:hover { border-color: var(--ink-4); color: var(--ink); }
.copy.is-done { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }

.trace { padding: 14px 16px; }
.trace small { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 10px; letter-spacing: .02em; }
.trace ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trace li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  opacity: 0; animation: fadeIn .4s ease both;
}
.trace li:nth-child(1) { animation-delay: .25s; }
.trace li:nth-child(2) { animation-delay: .45s; }
.trace li:nth-child(3) { animation-delay: .65s; }
.trace li:nth-child(4) { animation-delay: .85s; }
@keyframes fadeIn { to { opacity: 1; } }
.trace .n { color: var(--ink-4); }
.trace .k { color: var(--ink); }
.trace .v { color: var(--ink-3); text-align: right; }
.trace .v.ok { color: var(--ok); }
.trace .v.ac { color: var(--accent); }

.receipt-foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); background: var(--paper);
}
.receipt-foot div { padding: 12px 16px; border-right: 1px solid var(--line); }
.receipt-foot div:last-child { border-right: 0; }
.receipt-foot small { display: block; font-size: 11px; color: var(--ink-3); }
.receipt-foot strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; margin-top: 2px; }
.receipt-foot span { font-size: 11px; color: var(--ink-4); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; scroll-margin-top: 72px; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; }
.section-head h2 { margin-top: 14px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head .more { margin-top: 12px; font-size: 14px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.section-head .more:hover { text-decoration: underline; }

/* Groups */
.groups { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.group:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.group.is-featured { border-color: var(--accent); }
.group-top { display: flex; align-items: center; justify-content: space-between; }
.group-top .eyebrow::before { display: none; }
.pill { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.group h3 { margin-top: 14px; font-size: 22px; letter-spacing: -0.015em; }
.group .basis { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.group .price { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.group .price b { font-weight: 500; color: var(--ink); }
.group ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.group li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.group li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ink-4); }
.group .actions { margin-top: auto; padding-top: 22px; display: flex; gap: 8px; }
.group code { font-size: 13px; }

/* Pricing table */
.tabs { margin-top: 36px; display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; background: var(--paper-2); }
.tabs button { padding: 7px 14px; border-radius: 5px; font-size: 13.5px; color: var(--ink-2); }
.tabs button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.table-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.table-note { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-3); }
.table-note code { font-size: 12px; }
table.prices { width: 100%; border-collapse: collapse; }
table.prices th, table.prices td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.prices tr:last-child td { border-bottom: 0; }
table.prices th { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
table.prices th:not(:first-child), table.prices td:not(:first-child) { text-align: right; font-family: var(--mono); font-size: 14px; }
table.prices td:first-child code { font-size: 13.5px; }
table.prices .vendor { color: var(--ink-4); }
table.prices tbody tr:hover { background: var(--paper); }
.table-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
table.prices td:first-child { width: 34%; }
table.prices td:nth-child(2) { white-space: nowrap; }
table.prices th abbr { text-decoration: none; cursor: help; }
.ep {
  display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; margin-right: 4px;
  white-space: nowrap; font-weight: 400;
}
.ep:last-child { margin-right: 0; }
[data-tab-panel] { display: none; }
[data-tab-panel].is-on { display: block; }

/* Steps */
.steps { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.step-list { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--ink-4); padding-top: 3px; }
.step h3 { font-size: 18px; }
.step p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.step .links { margin-top: 10px; display: flex; gap: 14px; font-size: 13.5px; }
.step .links a { color: var(--accent); }
.step .links a:hover { text-decoration: underline; }

.code {
  background: var(--ink); color: #dfe3ea; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-2); position: sticky; top: 88px;
}
.code-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-head button { font-family: var(--mono); font-size: 12px; color: #9aa3b5; padding: 4px 10px; border-radius: 5px; }
.code-head button.is-on { color: #fff; background: rgba(255,255,255,.08); }
.code-head .copy { margin-left: auto; border-color: rgba(255,255,255,.18); background: transparent; color: #c8cfdc; }
.code-head .copy:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.code-head .copy.is-done { border-color: #6ee7a8; color: #6ee7a8; background: rgba(110,231,168,.1); }
.code pre { margin: 0; padding: 18px 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; display: none; min-height: 296px; }
.code pre.is-on { display: block; }
.code .c { color: #7b8497; }
.code .s { color: #b7d8ff; }
.code .k { color: #ffd28a; }
.code .a { color: #8ee7b5; }

/* Trust */
.trust { padding: 64px 0; }
.trust .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.trust h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 14px; }
.trust p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pay span {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2);
}
.pay img { height: 18px; width: auto; }
.trust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.trust-stats div { background: #fff; padding: 22px 22px 20px; }
.trust-stats strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.trust-stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }

/* Support */
.support { padding: 0 0 88px; }
.support-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.contact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; transition: border-color .15s, transform .15s;
}
.contact:hover { border-color: var(--ink-4); transform: translateY(-1px); }
.contact .ico { width: 34px; height: 34px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.contact .ico svg, .contact .ico img { width: 22px; height: 22px; }
.contact small { display: block; font-size: 11.5px; color: var(--ink-3); }
.contact strong { display: block; font-weight: 500; font-size: 14px; font-family: var(--mono); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--ink-3); max-width: 34ch; font-size: 13.5px; }
.footer-brand .addr { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.site-footer h4 { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer nav { display: grid; gap: 9px; }
.site-footer nav a { color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.footer-bottom .status { font-size: 12.5px; }
.footer-legal { margin-top: 14px; font-size: 12px; color: var(--ink-4); line-height: 1.6; max-width: 90ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .groups { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .code { position: static; }
  .trust .wrap { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header-tools .btn-ghost { display: none; }
  .announce .wrap { justify-content: flex-start; gap: 10px; font-size: 12.5px; }
  .announce .tag { display: none; }
  .header-tools { gap: 6px; }
  .lang-switch { font-size: 12px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 40px; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .hero-facts div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; display: flex; align-items: baseline; gap: 12px; }
  .hero-facts strong { font-size: 18px; }
  .section { padding: 56px 0; }
  .receipt-foot { grid-template-columns: 1fr; }
  .receipt-foot div { border-right: 0; border-bottom: 1px solid var(--line); }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  table.prices th, table.prices td { padding: 10px 12px; }
  #pricing .table-wrap { overflow-x: auto; }
  #pricing table.prices { min-width: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  .receipt, .trace li { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Page: shared inner-page ---------- */
.site-nav a.is-current { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.page-hero { padding: 64px 0 40px; }
.page-hero h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.025em; }
.page-hero .lede, .lede { margin-top: 16px; font-size: 16.5px; color: var(--ink-2); max-width: 64ch; }
.small { font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.h2-lg { margin-top: 14px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; }
.keyline { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.keyline code { background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

.article { max-width: 760px; margin: 0 auto; padding-bottom: 72px; }
.article h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.015em; }
.article p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.article .lede { font-size: 17px; }
.article code { background: var(--paper-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; font-size: 13.5px; }

.notice {
  margin-top: 22px; padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--warn); background: var(--warn-soft); color: var(--warn);
  font-size: 14px; max-width: 720px;
}
.note {
  margin-top: 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; font-size: 14px; color: var(--ink-2);
}
.note a { color: var(--accent); }
.note a:hover { text-decoration: underline; }

.pill-new { background: var(--warn-soft); color: var(--warn); margin-right: 8px; }
.pill-live { background: var(--ok-soft); color: var(--ok); }

/* ---------- Page: smart-api ---------- */
.flow { padding: 18px 16px; display: grid; gap: 12px; justify-items: stretch; }
.flow-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flow-chips span {
  text-align: center; font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 0; background: var(--paper);
}
.flow-arrow { text-align: center; color: var(--ink-4); line-height: 1; }
.flow-hub {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--accent); border-radius: var(--r); padding: 12px 14px; background: var(--accent-soft);
}
.flow-hub strong { display: block; font-size: 15px; }
.flow-hub code { font-size: 12.5px; color: var(--accent-ink); }
.flow-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flow-split div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--paper); }
.flow-split span { display: block; font-size: 12px; color: var(--ink-3); }
.flow-split strong { font-size: 13.5px; }
.flow-result {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--ok); border-radius: var(--r); padding: 10px 14px; background: var(--ok-soft); color: var(--ok);
}
.flow-result svg { width: 16px; height: 16px; flex: none; }
.flow-result strong { display: block; font-size: 13.5px; color: var(--ink); }
.flow-result span { font-size: 12px; color: var(--ink-3); }

.strip { background: var(--ink); color: #e7e9ee; }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; flex-wrap: wrap; }
.strip p { font-size: 17px; }
.strip .more { color: #b7d8ff; font-size: 14px; }
.strip .more:hover { text-decoration: underline; }

.use-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.use-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-1);
}
.use-card h3 { margin-top: 12px; font-size: 19px; }
.use-card > p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.use-card blockquote {
  margin: 16px 0 0; padding: 10px 14px; border-left: 2px solid var(--accent);
  background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px; color: var(--ink-3);
}

.step-list-4 { margin-top: 40px; max-width: 760px; }
.pricing-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pricing-grid .lede { font-size: 15.5px; }
.pricing-grid .small { margin-top: 12px; }

.kv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.kv-card .kv:last-child { border-bottom: 0; }
.code-title { font-family: var(--mono); font-size: 12px; color: #dfe3ea; }
.code-sub { font-family: var(--mono); font-size: 12px; color: #9aa3b5; }
.code .code-head .copy { margin-left: auto; }
.code pre { min-height: 0; }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 0; margin-bottom: 10px; box-shadow: var(--shadow-1);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-size: 15px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-4); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; font-size: 14px; color: var(--ink-2); }
.faq code { background: var(--paper-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; font-size: 13px; }

.cta-final h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
.cta-final .small { margin-top: 18px; }

/* ---------- Page: announce ---------- */
.timeline { max-width: 860px; }
.tl-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-4); padding-top: 4px; }
.tl-item h2 { font-size: 18px; letter-spacing: -0.01em; }
.tl-item p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.tl-item code { background: var(--paper-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; font-size: 13px; }
.tl-item a { color: var(--accent); }
.tl-item a:hover { text-decoration: underline; }

/* ---------- Page: contact ---------- */
.contact .desc { font-size: 12px; color: var(--ink-4); font-family: var(--sans); margin-top: 2px; }
.duo-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.community-title { display: flex; gap: 14px; align-items: flex-start; }
.community-title .ico {
  width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); flex: none; overflow: hidden;
}
.community-title .ico svg, .community-title .ico img { width: 30px; height: 30px; }
.community-title h3 { margin-top: 6px; font-size: 18px; }
.community-body { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.community-action { align-items: center; }
.link-hint { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }

.biz { margin-top: 56px; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 32px; background: #fff; box-shadow: var(--shadow-1); }
.perks { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--paper);
}
.perk svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.perk strong { display: block; font-size: 14px; }
.perk span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.biz-channels { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.info-blocks { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; background: #fff; }
.info-block h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.info-block h3 svg { width: 18px; height: 18px; color: var(--ink-3); }
.info-block p { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- Page: docs ---------- */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-bottom: 88px; align-items: start; }
.docs-toc { position: sticky; top: 88px; display: grid; gap: 20px; }
.docs-toc nav { display: grid; gap: 2px; }
.docs-toc nav a {
  font-size: 13.5px; color: var(--ink-2); padding: 6px 10px; border-radius: var(--r-sm);
  border-left: 2px solid var(--line); border-radius: 0;
}
.docs-toc nav a:hover { color: var(--ink); background: var(--paper-2); }
.docs-toc nav a.is-current { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 500; }
.docs-toc .toc-local { border-top: 1px solid var(--line); padding-top: 16px; }
.docs-toc .toc-local a { font-size: 12.5px; color: var(--ink-3); }
.docs-body { max-width: 760px; min-width: 0; }
.docs-body h2 { margin: 40px 0 0; font-size: 22px; letter-spacing: -0.015em; scroll-margin-top: 88px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { margin: 24px 0 0; font-size: 16.5px; }
.docs-body p, .docs-body li { font-size: 14.5px; color: var(--ink-2); }
.docs-body p { margin-top: 10px; }
.docs-body ol, .docs-body ul { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.docs-body a { color: var(--accent); }
.docs-body a:hover { text-decoration: underline; }
.docs-body code { background: var(--paper-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; font-size: 13px; }
.docs-body .code code, .docs-body .code span { background: none; border: 0; padding: 0; }
.docs-body .code { margin-top: 12px; position: static; }
.docs-body .btn { color: inherit; }
.docs-body a.btn-accent { color: #fff; }
.docs-body .hero-actions { margin-top: 32px; }

.doc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px; margin-top: 16px; box-shadow: var(--shadow-1);
}
.doc-card:first-child { margin-top: 0; }
.doc-card > h2 { margin-top: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.doc-card > h2 .step-num { font-size: 13px; }
.doc-card .pill { font-size: 11px; font-weight: 400; }
.doc-card-accent { border-color: var(--accent); }

.field-row { display: flex; gap: 8px; margin-top: 10px; max-width: 560px; }
.field {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.field:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field.mono-sm { font-size: 12px; }

.alert {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--warn); background: var(--warn-soft);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
}
.tip {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--r);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper);
  font-size: 14px; color: var(--ink-2); line-height: 1.8;
}
.err { font-family: var(--mono); font-size: 14px; color: var(--warn); }

.generator {
  margin-top: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--paper); padding: 20px;
}
.generator-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.generator-head label { font-size: 14.5px; font-weight: 600; }
.generator-head span { font-size: 12px; color: var(--ink-4); }
.generator .field-row { max-width: 100%; }
.generator-label { margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

.docs-body table.prices th, .docs-body table.prices td { text-align: left; font-family: var(--sans); font-size: 13.5px; }
.docs-body table.prices td { vertical-align: top; color: var(--ink-2); }
.docs-body table.prices td code { font-size: 12.5px; }
.docs-body table.prices small { color: var(--ink-4); }

@media (max-width: 1024px) {
  .use-grid, .duo-grid, .perks, .biz-channels, .info-blocks, .pricing-grid, .faq-wrap { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
  .docs-toc nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-toc nav a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .article .support-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .page-hero { padding: 40px 0 28px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .flow-chips { grid-template-columns: 1fr 1fr; }
  .biz { padding: 22px; }
  .doc-card { padding: 18px; }
  .field-row { flex-direction: column; }
}
.b-arrow { margin-left: auto; color: var(--ink-4); flex: none; }

/* ---------- Page: legal / 404 ---------- */
.legal-body { padding-bottom: 88px; max-width: 760px; }
.legal-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.legal-body .legal-meta { margin-top: 32px; }

.legal-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.legal-card { display: block; text-decoration: none; color: var(--ink); }
.legal-card strong { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.legal-card span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.legal-card:hover { border-color: var(--accent); }

.error-page { display: grid; place-items: center; min-height: 60vh; padding: 48px 0 88px; }
.error-card {
  width: min(560px, 100%); text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 48px 40px; box-shadow: var(--shadow-1);
}
.error-card .eyebrow { justify-content: center; }
.error-code { font-family: var(--mono); font-size: 64px; font-weight: 500; letter-spacing: -0.03em; color: var(--accent); margin: 0 0 8px; }
.error-card h1 { font-size: 30px; letter-spacing: -0.02em; margin: 12px 0 0; }
.error-card .lede { margin: 14px auto 0; font-size: 15px; }
.error-card .hero-actions { justify-content: center; margin-top: 28px; }

@media (max-width: 760px) {
  .legal-hub { grid-template-columns: 1fr; }
  .error-card { padding: 36px 24px; }
}

/* FlowsToken full-width site navigation — 20261001header1 */
.site-header > .wrap { width: calc(100% - 48px); }
.site-header .site-nav a, html[lang="en"] .site-header .site-nav a { font-size: 16px; }
@media (min-width: 1181px) {
  .site-header .site-nav {
    position: absolute;
    left: 50%;
    top: 32px;
    transform: translate(-50%, -50%);
    width: max-content;
    margin-left: 0;
  }
}
@media (max-width: 1180px) {
  .site-header .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    transform: none;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .site-header .site-nav.is-open { display: flex; }
  .site-header .nav-toggle { display: flex; }
}
@media (max-width: 760px) {
  .site-header > .wrap { width: calc(100% - 32px); }
}
@media (min-width: 1181px) and (max-width: 1439px) {
  html[lang="en"] .site-header .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    transform: none;
    margin: 0;
    width: auto;
    padding: 8px 16px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  html[lang="en"] .site-header .site-nav.is-open { display: flex; }
  html[lang="en"] .site-header .nav-toggle { display: flex; }
}
