/* Capybuyer landing. Dark, calm surfaces; one warm accent (capybara amber) used only for emphasis. */
:root {
  --bg: #0b0a09;
  --bg-alt: #100e0c;
  --surface: #161411;
  --surface-2: #1d1a16;
  --surface-3: #25211c;
  --border: rgba(255, 240, 220, 0.08);
  --border-strong: rgba(255, 240, 220, 0.16);
  --text: #f3efe9;
  --text-2: #c9c1b6;
  --text-muted: #9b9389;
  --accent: #e0a560;
  --accent-soft: rgba(224, 165, 96, 0.12);
  --accent-line: rgba(224, 165, 96, 0.45);
  --on-accent: #1d1206;
  --ok: #7fd49b;
  --ok-soft: rgba(127, 212, 155, 0.12);
  --err: #ff8a7e;
  --err-soft: rgba(255, 138, 126, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
.up { color: var(--ok); }
.down { color: var(--err); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
.narrow-wrap { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ebb574; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 10, 9, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.brand-small { font-size: 15px; gap: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Language switcher */
.lang { position: relative; }
.lang > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13px; font-weight: 550; letter-spacing: .02em;
  border: 1px solid transparent; user-select: none;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { color: var(--text); border-color: var(--border-strong); }
.lang > summary:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
  min-width: 196px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 6px; color: var(--text-2); font-size: 14px;
}
.lang-menu a:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--accent); }
.lang-menu a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; flex-basis: 100%; }
.foot-langs a { color: var(--text-muted); font-size: 13px; }
.foot-langs a:hover { color: var(--text); }

/* Invoice page */
.pay-wrap { max-width: 860px; padding-top: 56px; padding-bottom: 80px; }
.pay-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 32px; }
.pay-card [hidden] { display: none !important; }
.pay-title { font-size: 30px; letter-spacing: -0.02em; margin: 8px 0 24px; }
.pay-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.pay-label { color: var(--text-muted); font-size: 13px; margin: 0 0 8px; }
.pay-label + .pay-copy { margin-bottom: 6px; }
.pay-copy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-amount { font-size: 30px; font-weight: 650; color: var(--accent); letter-spacing: -0.01em; }
.pay-address { font-size: 15px; word-break: break-all; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; flex: 1 1 260px; }
.pay-network { color: var(--text-2); font-size: 14px; margin: 0 0 24px; }
.pay-rules { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pay-rules li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.pay-rules li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pay-qr { margin: 0; text-align: center; }
.pay-qr img { display: block; width: 196px; height: 196px; border-radius: 12px; background: #fff; }
.pay-qr figcaption { color: var(--text-muted); font-size: 12px; margin-top: 8px; }
.pay-status { margin: 28px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 15px; }
.pay-status:empty { display: none; }
.pay-status.ok { background: var(--ok-soft); color: var(--ok); }
.pay-status.warn { background: var(--err-soft); color: var(--err); }
.pay-status a { color: inherit; text-decoration: underline; }
.pay-foot { margin: 20px 0 0; }
@media (max-width: 760px) {
  .pay-wrap { padding-top: 24px; }
  .pay-card { padding: 22px; }
  .pay-main { grid-template-columns: 1fr; }
  .pay-qr { order: -1; }
  .pay-qr img { margin: 0 auto; width: 168px; height: 168px; }
  .pay-amount { font-size: 26px; }
}

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 10% auto; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(224, 165, 96, 0.10), transparent 70%);
}
.hero > .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 14px;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; margin: 22px auto 0; max-width: 14ch; letter-spacing: -0.035em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 640px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* Demo window */
.demo {
  margin: 56px auto 0; max-width: 1000px; text-align: left;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--text-muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.demo-url { flex: 1; text-align: center; }
.demo-ext { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.demo-ext img { border-radius: 4px; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 380px; }
.demo-cap { padding: 10px 16px; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); }

.am { padding: 14px 16px; font-size: 13px; }
.am-head, .am-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 0.9fr 0.8fr 0.6fr 0.7fr; gap: 10px; align-items: center; }
.am-head { color: var(--text-muted); font-size: 12px; padding: 0 10px 10px; border-bottom: 1px solid var(--border); }
.am-row { padding: 12px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); border-radius: var(--radius-sm); transition: background .3s; }
.am-name { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border-strong); flex-shrink: 0; transition: background .2s, border-color .2s; }
.am-row.is-selected { background: var(--accent-soft); }
.am-row.is-selected .chk { background: var(--accent); border-color: var(--accent); }
.pill-on, .pill-off { font-size: 11px; padding: 2px 8px; border-radius: 999px; justify-self: start; }
.pill-on { background: var(--ok-soft); color: var(--ok); }
.pill-off { background: var(--surface-3); color: var(--text-muted); }
.am-new {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px dashed var(--accent-line); color: var(--accent); font-size: 13px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.am-new.is-on { opacity: 1; transform: none; }

.panel { border-left: 1px solid var(--border); background: var(--bg-alt); padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.panel-title { font-weight: 650; font-size: 14px; }
.panel-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.panel-val { color: var(--text); }
.panel-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-2); transition: all .25s; }
.chips span.is-on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.panel-run { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--text-muted); font-weight: 600; transition: all .2s; }
.panel-run.is-ready { background: var(--accent); color: var(--on-accent); }
.panel-run.is-press { transform: scale(.97); }
.progress { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s linear; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font: 12px/1.4 var(--mono); color: var(--text-2); min-height: 132px; max-height: 132px; overflow: hidden; }
.log li { display: flex; gap: 8px; align-items: center; animation: logIn .25s ease-out; }
.log li::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--ok-soft) center/8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='%237fd49b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-done { margin-top: auto; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; opacity: 0; transition: opacity .4s; }
.panel-done.is-on { opacity: 1; }

/* Works-in strip */
.works { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.works-row { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.works-label { color: var(--text-muted); font-size: 13px; }
.works-list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.works-list li { color: var(--text-2); font-weight: 600; letter-spacing: -0.01em; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-top: 12px; max-width: 18ch; }
.section h2 + .muted, .section h2 + p { margin-top: 16px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--border-strong); }
.tile h3 { font-size: 19px; }
.tile p { color: var(--text-2); font-size: 15px; }
.tile-wide { grid-column: span 2; flex-direction: row; gap: 28px; align-items: center; }
.tile-wide .tile-text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.viz { margin-top: auto; padding-top: 16px; font-size: 12px; }
.tile-wide .viz { margin-top: 0; padding-top: 0; flex: 1; }

.viz-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.viz-grid i { aspect-ratio: 1.6; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); transition: background .3s, border-color .3s; }
.viz-grid i.is-on { background: var(--accent-soft); border-color: var(--accent-line); }

.viz-preset { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.viz-preset .k { color: var(--text-muted); }
.viz-preset .v { color: var(--text); font-family: var(--mono); }

.viz-split { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.viz-split .root { padding: 6px 14px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); position: relative; }
.viz-split .root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--border-strong); }
.viz-split .branches { display: flex; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border-strong); }
.viz-split .branches span { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-2); }

.viz-stats { display: flex; flex-direction: column; gap: 8px; }
.viz-stats .sr { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.viz-stats .sr span:last-child { text-align: right; font-weight: 600; }

.viz-bm { display: flex; flex-direction: column; gap: 7px; }
.viz-bm span { display: flex; align-items: center; gap: 9px; color: var(--text-2); }
.tick { width: 14px; height: 14px; border-radius: 4px; background: var(--accent) center/9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='%231d1206' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.viz-log { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); }
.viz-log span { padding-left: 14px; position: relative; color: var(--text-2); }
.viz-log span::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; }
.viz-log .ok::before { background: var(--ok); }
.viz-log .err { color: var(--err); }
.viz-log .err::before { background: var(--err); }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.calc-box { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.calc-field label { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.calc-field output { font: 600 15px var(--mono); color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-3); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent-line); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: pointer; }
input[type="range"]::-moz-range-progress { background: var(--accent); height: 6px; border-radius: 3px; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 6px; border-top: 1px solid var(--border); }
.metric { padding-top: 16px; }
.metric-label { font-size: 12px; color: var(--text-muted); }
.metric-val { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step-n { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--mono); }
.steps h3 { font-size: 18px; margin-top: 18px; }
.steps p { color: var(--text-2); margin-top: 8px; font-size: 15px; }

/* Security */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 24px; }
.split-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.split-col:first-child { border-color: var(--accent-line); }
.split-col h3 { font-size: 17px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--ok-soft) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='%237fd49b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* FAQ */
#faq details { border-bottom: 1px solid var(--border); }
#faq details:first-of-type { margin-top: 32px; border-top: 1px solid var(--border); }
#faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
#faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
#faq details p { color: var(--text-2); padding: 0 0 20px; max-width: 64ch; }

/* Join */
.section-join { position: relative; overflow: hidden; }
.section-join::before { content: ""; position: absolute; inset: auto 0 -40% 0; height: 520px; background: radial-gradient(closest-side, rgba(224, 165, 96, 0.08), transparent 70%); pointer-events: none; }
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start; position: relative; }
.join-form { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.join-form > label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
input[type="email"], input[type="text"] {
  height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg-alt); color: var(--text); font: 15px var(--font);
}
input[type="email"]:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--err); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 14px; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 13px; color: var(--text-2); text-align: center; }
.radio input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.2em; font-size: 14px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 36px 0 48px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot-legal { flex-basis: 100%; }

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 36px; margin-bottom: 20px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.top > .brand { margin: 0 auto; max-width: var(--max); padding: 0 24px; height: 64px; display: flex; }
.foot > p { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Responsive */
@media (max-width: 980px) {
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .panel { border-left: 0; border-top: 1px solid var(--border); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .tile-log { grid-column: span 1; flex-direction: column; align-items: stretch; }
  .tile-log .viz { margin-top: auto; padding-top: 16px; }
  .calc, .join { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .lang { margin-left: auto; }
  .top-row { gap: 12px; }
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 72px 0; }
  .am-head, .am-row { grid-template-columns: minmax(0, 2fr) 0.9fr 0.7fr; }
  .am-head span:nth-child(3), .am-head span:nth-child(4), .am-row > span:nth-child(3), .am-row > span:nth-child(4) { display: none; }
  .bento, .steps, .split { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .calc-out { grid-template-columns: 1fr 1fr 1fr; }
  .metric-label { font-size: 11px; }
  .works-row { gap: 14px; }
  .works-list { gap: 18px; }
}
@media (max-width: 420px) {
  .top .brand span { display: none; }
  .top .btn-small { white-space: nowrap; font-size: 13px; }
  .wrap { padding: 0 18px; }
  .btn-small { padding: 0 12px; }
  .calc-box, .join-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
