/* TeamClaude Cloud — QUOTA RAIL
   Motion is reserved for routing decisions, sync state, and direct feedback. */

:root {
  --bg: var(--canvas);
  --panel: var(--surface);
  --panel-2: var(--surface-raised);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: var(--ink);
  --text-2: var(--muted);
  --text-3: #818792;
  --mint: var(--live);
  --indigo: var(--route);
  --amber: var(--warning);
  --radius: 10px;
  --font: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { color: var(--ink); }
.hidden, [hidden] { display: none !important; }

::selection { background: var(--route); color: var(--canvas); }
:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--route);
  color: var(--canvas);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-grid, .bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

/* Header */
.l-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}
.l-header.scrolled {
  border-color: var(--line);
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(18px);
}
.l-header-inner {
  width: min(100% - 40px, 1380px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -0.035em; white-space: nowrap; }
.brand-name { font-size: 16px; }
.brand-name em { color: var(--muted); font-style: normal; font-weight: 560; }
.brand-mark { width: 24px; height: 24px; display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line-strong); background: var(--surface); }
.brand-mark i { display: block; width: 3px; height: 4px; background: var(--muted-2); }
.brand-mark i:nth-child(2) { height: 9px; background: var(--route); }
.brand-mark i:nth-child(3) { height: 14px; background: var(--ink); }
.l-nav { display: flex; align-items: center; gap: 28px; margin-left: 18px; }
.l-nav a, .header-github { color: var(--muted); font-size: 13px; font-weight: 620; transition: color 180ms ease; }
.l-nav a:hover, .header-github:hover { color: var(--ink); }
.l-header-actions { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.lang-toggle { display: flex; border: 1px solid var(--line); background: var(--surface-soft); }
.lang-btn { min-width: 34px; min-height: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--muted-2); font: 700 10px var(--mono); cursor: pointer; }
.lang-btn.active { background: var(--ink); color: var(--canvas); }
.l-menu-btn { display: none; width: 42px; height: 40px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.l-menu-btn span { display: block; width: 16px; height: 1px; margin: 4px auto; background: var(--ink); transition: transform 180ms ease; }
.l-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.l-menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.l-mobile-nav { display: none; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn.small { min-height: 38px; padding: 0 15px; font-size: 12px; }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 15px; }
.btn-primary { background: var(--route); color: #130c09; box-shadow: 0 10px 30px rgba(255, 118, 72, 0.14); }
.btn-primary:hover { background: var(--route-bright); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.035); }
.btn-text { min-height: auto; padding: 9px 0; border-radius: 0; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.btn-text:hover { color: var(--route); border-bottom-color: var(--route); }

/* Shared headings */
.mono-label, .panel-kicker, .surface-no, .tier-label {
  margin: 0;
  color: var(--muted-2);
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-head { width: min(100% - 40px, 1260px); margin: 0 auto 54px; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr); gap: 84px; align-items: end; }
.section-head h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.section-sub { margin: 0; max-width: 38em; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.route-text { color: var(--route); }

/* Hero */
.hero { padding: 92px 0 78px; }
.hero-inner {
  width: min(100% - 40px, 1380px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(600px, 1.14fr);
  gap: clamp(46px, 6vw, 96px);
  align-items: center;
}
.mono-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font: 700 10px var(--mono); letter-spacing: 0.13em; }
.status-dot, .live-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(88, 214, 176, 0.09); animation: live-pulse 2.2s ease-in-out infinite; }
.hero-title {
  margin: 27px 0 25px;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(50px, 5.3vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.067em;
  font-weight: 790;
  text-wrap: balance;
}
.hero-sub { margin: 0 0 29px; max-width: 39em; color: var(--muted); font-size: 17px; line-height: 1.72; text-wrap: pretty; }
.hero-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: var(--muted-2); font-size: 11.5px; }
.hero-meta span { padding-right: 18px; border-right: 1px solid var(--line); }
.hero-meta a { color: var(--muted); }
.hero-meta a:hover { color: var(--route); }

/* Interactive routing board */
.routing-shell { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.routing-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 1px rgba(255,255,255,.035); }
.routing-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 22px 18px; border-bottom: 1px solid var(--line); }
.routing-head h2 { margin: 7px 0 0; font-size: 16px; letter-spacing: -0.02em; }
.live-state { display: inline-flex; align-items: center; gap: 9px; color: var(--live); font: 650 10px var(--mono); white-space: nowrap; }
.tour-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tour-tab { min-height: 44px; border: 0; border-right: 1px solid var(--line); background: var(--surface-soft); color: var(--muted-2); font: 650 10px var(--mono); cursor: pointer; transition: color 160ms ease, background 160ms ease; }
.tour-tab:last-child { border-right: 0; }
.tour-tab:hover { color: var(--ink); }
.tour-tab.active { position: relative; background: var(--surface-raised); color: var(--ink); }
.tour-tab.active::after { content: ""; position: absolute; height: 2px; left: 18px; right: 18px; bottom: -1px; background: var(--route); }
.tour-panel { min-height: 324px; padding: 20px 22px; }
.tour-panel.active { animation: panel-in 320ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.route-column-head { display: grid; grid-template-columns: 1.05fr 1.35fr 1fr; gap: 20px; padding: 0 14px 9px; color: var(--muted-2); font-size: 9px; letter-spacing: .12em; }
.route-row { position: relative; display: grid; grid-template-columns: 1.05fr 1.35fr 1fr; gap: 20px; align-items: center; min-height: 69px; padding: 11px 14px; border-top: 1px solid var(--line); }
.route-row.selected { background: linear-gradient(90deg, var(--route-soft), transparent 70%); }
.route-row.selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--route); }
.route-row.disabled { opacity: .45; }
.route-account { display: grid; grid-template-columns: 9px 1fr; column-gap: 9px; align-items: center; }
.route-account b { font: 700 12px var(--mono); }
.route-account small { grid-column: 2; color: var(--muted-2); font-size: 10px; }
.account-light { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.disabled .account-light { background: var(--muted-2); }
.quota-cell { display: grid; grid-template-columns: auto 1fr; gap: 1px 9px; align-items: baseline; }
.quota-cell b { font: 730 13px var(--mono); }
.quota-cell small { color: var(--muted-2); font-size: 9.5px; }
.quota-track { grid-column: 1 / -1; height: 3px; margin-top: 7px; overflow: hidden; background: var(--line); }
.quota-track i { display: block; width: var(--usage); height: 100%; background: var(--muted-2); }
.selected .quota-track i { background: var(--route); }
.route-decision { position: relative; min-height: 34px; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; border-bottom: 1px solid var(--route-line); color: var(--route); }
.route-decision b { position: relative; z-index: 1; padding-left: 8px; background: var(--surface); font: 700 10px var(--mono); }
.route-decision.standby { border-color: var(--line); color: var(--muted-2); }
.rail-signal { position: absolute; left: 0; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--route); box-shadow: 0 0 12px var(--route); animation: signal-travel 2.7s var(--ease-out) infinite; }
@keyframes signal-travel { 0% { transform: translateX(-8px); opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateX(120px); opacity: 0; } }
.route-output { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface-soft); font-size: 10px; }
.key-chip { display: inline-flex; color: var(--route); font: 650 10px var(--mono); }
.group-chip { padding: 4px 7px; background: var(--route-soft); color: var(--route-bright); font: 700 10px var(--mono); }
.route-arrow { color: var(--muted-2); }
.route-output b { margin-left: auto; color: var(--live); font: 650 10px var(--mono); }
.routing-log { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; padding: 11px 22px; border-top: 1px solid var(--line); background: #0b0d10; color: var(--muted-2); font-size: 9px; }
.routing-log .log-ok { color: var(--route); }
.policy-map { min-height: 280px; display: grid; grid-template-columns: 1fr 54px 1fr 54px 1fr; align-items: center; }
.policy-key, .policy-group { min-height: 122px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; border: 1px solid var(--line); background: var(--surface-soft); }
.policy-key b, .policy-group b { font-size: 13px; }
.policy-key small, .policy-group small { color: var(--muted-2); font-size: 10px; }
.policy-line { position: relative; height: 1px; background: var(--route-line); }
.policy-line i { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--route); animation: signal-travel 2.5s linear infinite; }
.policy-accounts { display: flex; flex-direction: column; gap: 7px; }
.policy-accounts span { padding: 10px; border: 1px solid var(--line); color: var(--ink-soft); font: 650 10px var(--mono); }
.policy-accounts .blocked { color: var(--muted-2); text-decoration: line-through; }
.sync-flow { min-height: 280px; display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: center; }
.sync-node { min-width: 0; padding: 17px 13px; border: 1px solid var(--line); background: var(--surface-soft); text-align: center; }
.sync-node.cloud { border-color: var(--route-line); background: var(--route-soft); }
.sync-node b { display: block; margin: 8px 0 5px; font-size: 12px; }
.sync-node small { display: block; overflow: hidden; color: var(--muted-2); font: 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.sync-rail { position: relative; height: 1px; background: var(--line-strong); }
.sync-rail i { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--route); animation: signal-travel 2.8s linear infinite; }
.sync-rail b { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); color: var(--muted-2); font: 650 7px var(--mono); white-space: nowrap; }

/* Proof rail */
.proof-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0f12; }
.proof-inner { width: min(100%, 1380px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { position: relative; min-height: 152px; padding: 27px 26px; border-left: 1px solid var(--line); }
.proof-item:last-child { border-right: 1px solid var(--line); }
.proof-index { position: absolute; top: 21px; right: 22px; color: var(--muted-2); font: 9px var(--mono); }
.proof-item strong { display: block; margin: 8px 0 7px; font: 720 clamp(25px, 2.8vw, 38px) var(--mono); letter-spacing: -0.06em; }
.proof-item p { margin: 0; color: var(--muted); font-size: 12px; }

/* Routing story */
.routing-story, .features, .how, .pricing, .faq { padding: 132px 0 28px; }
.story-grid { width: min(100% - 40px, 1260px); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.story-step { position: relative; grid-column: span 5; min-height: 292px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.story-step:nth-child(2), .story-step:nth-child(3) { grid-column: span 7; }
.story-step:nth-child(4) { grid-column: span 5; }
.story-primary { background: var(--route); color: #140d0a; border-color: var(--route); }
.story-primary .mono-label, .story-primary .story-num { color: rgba(20, 13, 10, .7); }
.story-step.story-primary p:not(.mono-label) { color: rgba(20, 13, 10, .78); }
.story-dark { background: var(--ink); color: var(--canvas); }
.story-dark .mono-label, .story-dark .story-num { color: #55585d; }
.story-step.story-dark p:not(.mono-label) { color: #43474e; }
.story-num { position: absolute; top: 24px; right: 26px; color: var(--muted-2); font-size: 10px; }
.story-step h3 { max-width: 13em; margin: 10px 0 12px; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.045em; }
.story-step p:not(.mono-label) { max-width: 36em; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.reset-visual { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.reset-visual span { display: grid; grid-template-columns: 44px 1fr 60px; align-items: center; gap: 12px; font-family: var(--mono); }
.reset-visual b { font-size: 11px; }
.reset-visual i { height: 7px; background: rgba(20,13,10,.18); }
.reset-visual i::after { content: ""; display: block; width: var(--w); height: 100%; background: #140d0a; }
.reset-visual em { font-size: 9px; font-style: normal; }
.micro-rail { position: relative; height: 64px; display: flex; align-items: center; margin-top: 26px; border-top: 1px solid var(--line); }
.micro-rail i { flex: 1; height: 1px; background: var(--route-line); }
.micro-rail span { width: 11px; height: 11px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 7px var(--route-soft); animation: rail-dot 2.7s ease-in-out infinite alternate; }
@keyframes rail-dot { from { transform: translateX(-160px); } to { transform: translateX(-10px); } }
.micro-rail b { min-width: 82px; padding: 8px; border: 1px solid var(--route-line); color: var(--route); font: 700 10px var(--mono); text-align: center; }
.fail-visual { display: flex; align-items: center; gap: 12px; margin-top: 26px; font: 700 10px var(--mono); }
.fail-visual span { flex: 1; padding: 14px; border: 1px solid var(--line); text-align: center; }
.fail-visual .failed { color: var(--danger); text-decoration: line-through; }
.fail-visual .ready { color: var(--live); border-color: rgba(88,214,176,.35); }
.fail-visual i { color: var(--route); font-style: normal; }
.continuity { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; margin-top: 42px; padding: 16px; border: 1px solid #d0d0ca; font: 700 10px var(--mono); }
.continuity i { grid-row: 1 / 3; width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.continuity em { color: #73767b; font-style: normal; font-weight: 500; }

/* Product surfaces */
.surface-map { width: min(100% - 40px, 1260px); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); border: 1px solid var(--line-strong); background: var(--surface-soft); }
.surface-panel { min-height: 380px; padding: 28px; border-right: 1px solid var(--line); background: var(--surface); }
.surface-panel:last-child { border-right: 0; }
.accounts-panel { grid-column: span 6; }
.groups-panel, .keys-panel { grid-column: span 3; }
.surface-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.surface-panel h3 { margin: 30px 0 10px; max-width: 13em; font-size: 25px; line-height: 1.14; letter-spacing: -0.04em; }
.surface-panel > p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.account-table { margin-top: 30px; border-top: 1px solid var(--line); }
.account-table > span { display: grid; grid-template-columns: 1.4fr .6fr .6fr .8fr; gap: 12px; align-items: center; min-height: 42px; border-bottom: 1px solid var(--line); font: 10px var(--mono); }
.account-table i, .account-table em { color: var(--muted-2); font-style: normal; }
.account-table em { color: var(--live); text-align: right; }
.account-table .table-head { min-height: 34px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.group-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.group-stack span { display: flex; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--line); font: 650 10px var(--mono); }
.group-stack span.active { border-color: var(--route-line); background: var(--route-soft); color: var(--route); }
.group-stack em { color: var(--muted-2); font-style: normal; }
.key-command { display: flex; flex-direction: column; gap: 7px; margin-top: 28px; padding: 15px; border: 1px solid var(--line); background: #090a0c; font-size: 9px; }
.key-command span { color: var(--muted-2); }
.key-command b { color: var(--route); }

/* Trust */
.trust { margin-top: 132px; padding: 118px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0f12; }
.trust-inner { width: min(100% - 40px, 1260px); margin: 0 auto; display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: center; }
.trust-copy h2 { margin: 16px 0 24px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -0.06em; }
.trust-copy > p:not(.mono-label) { max-width: 35em; margin: 0 0 20px; color: var(--muted); line-height: 1.72; }
.architecture { display: flex; flex-direction: column; }
.architecture article { display: grid; grid-template-columns: 38px 1fr auto; gap: 16px; align-items: center; min-height: 108px; padding: 18px 21px; border: 1px solid var(--line); background: var(--surface); }
.architecture article.arch-cloud { border-color: var(--route-line); background: var(--route-soft); }
.arch-index { color: var(--muted-2); font-size: 9px; }
.architecture article b { font-size: 14px; }
.architecture article p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.arch-status { padding: 5px 7px; border: 1px solid var(--line); color: var(--muted-2); font: 700 8px var(--mono); font-style: normal; }
.arch-rail { position: relative; height: 38px; margin-left: 38px; border-left: 1px solid var(--route-line); }
.arch-rail i { position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--route); animation: vertical-signal 2.4s ease-in-out infinite; }
@keyframes vertical-signal { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(27px); opacity: 0; } }
.arch-rail b { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--muted-2); font: 650 8px var(--mono); }

/* Steps */
.steps { width: min(100% - 40px, 1260px); margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.step { display: grid; grid-template-columns: 92px 1fr; min-height: 148px; border-bottom: 1px solid var(--line-strong); }
.step-num { display: flex; align-items: flex-start; justify-content: center; padding-top: 37px; border-right: 1px solid var(--line); color: var(--route); font-size: 11px; }
.step-body { display: grid; grid-template-columns: .72fr 1.05fr 1.15fr; gap: 44px; align-items: center; padding: 30px 34px; }
.step-body h3 { margin: 0; font-size: 21px; letter-spacing: -0.035em; }
.step-body > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.code-line { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px 13px 13px 16px; border: 1px solid var(--line); background: #070809; }
.code-line code { min-width: 0; flex: 1; overflow: hidden; color: var(--ink-soft); font: 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { min-width: 48px; min-height: 27px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 700 8px var(--mono); cursor: pointer; }
.copy-btn:hover, .copy-btn.copied { border-color: var(--route); color: var(--route); }

/* Pricing */
.tiers { width: min(100% - 40px, 1260px); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.tier { position: relative; min-height: 565px; display: flex; flex-direction: column; padding: 34px 30px; border-right: 1px solid var(--line); background: var(--surface); }
.tier:last-child { border-right: 0; }
.tier-pro { background: var(--ink); color: var(--canvas); }
.tier-pro .tier-label, .tier-pro .per, .tier-pro .tier-feats { color: #696c71; }
.tier-pro .tier-feats li { border-color: #d4d3cd; }
.tier-name { margin: 23px 0 0; font-size: 32px; line-height: 1; letter-spacing: -0.055em; }
.tier-price { display: flex; align-items: baseline; gap: 8px; margin: 27px 0 31px; }
.tier-price .amount { font: 740 58px/1 var(--mono); letter-spacing: -0.08em; }
.tier-price .per { color: var(--muted-2); font-size: 13px; }
.tier-feats { display: flex; flex: 1; flex-direction: column; gap: 0; margin: 0 0 30px; padding: 0; list-style: none; color: var(--muted); }
.tier-feats li { position: relative; padding: 13px 0 13px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tier-feats li::before { content: ""; position: absolute; left: 1px; top: 20px; width: 6px; height: 6px; background: var(--route); }
.tier-badge { position: absolute; top: 28px; right: 24px; padding: 5px 8px; background: var(--route); color: #130c09; font: 800 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tier-badge-trial { background: transparent; color: var(--route); border: 1px solid var(--route-line); }
.tier-pro .btn-primary { color: #130c09; }

/* FAQ + CTA + footer */
.faq-grid { width: min(100% - 40px, 1260px); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.faq-grid article { min-height: 218px; display: grid; grid-template-columns: 42px 1fr; align-content: start; column-gap: 12px; padding: 30px 30px 34px 0; border-bottom: 1px solid var(--line); }
.faq-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.faq-grid article:nth-child(even) { padding-left: 30px; }
.faq-no { grid-row: 1 / 3; color: var(--route); font-size: 9px; }
.faq-grid h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.025em; }
.faq-grid p { margin: 0; max-width: 38em; color: var(--muted); font-size: 13px; line-height: 1.75; }
.final-cta { width: min(100% - 40px, 1260px); margin: 132px auto 0; }
.cta-card { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px); border: 1px solid var(--route-line); background: var(--route); color: #140d0a; }
.cta-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 75px, rgba(20,13,10,.075) 75px 76px); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card .mono-label { color: rgba(20,13,10,.58); }
.cta-card h2 { max-width: 800px; margin: 20px 0; font-size: clamp(40px, 5.5vw, 72px); line-height: .99; letter-spacing: -0.065em; }
.cta-card > p:not(.mono-label) { max-width: 40em; color: rgba(20,13,10,.7); }
.cta-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.cta-card .btn-primary { background: var(--canvas); color: var(--ink); box-shadow: none; }
.cta-card .btn-primary:hover { background: #202226; }
.cta-card .btn-text { color: rgba(20,13,10,.78); border-color: transparent; border-bottom-color: rgba(20,13,10,.38); font-size: 12.5px; font-weight: 650; padding: 6px 0; }
.l-footer { margin-top: 92px; padding: 52px 0 30px; border-top: 1px solid var(--line); }
.footer-inner, .f-legal { width: min(100% - 40px, 1260px); margin: 0 auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 54px; }
.f-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px 11px; }
.f-brand p { grid-column: 1 / -1; max-width: 35em; margin: 7px 0 0; color: var(--muted-2); font-size: 12px; }
.f-links { display: flex; justify-content: flex-end; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.f-links a:hover { color: var(--route); }
.f-legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: #777d86; font-size: 11px; }
.copy-toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; padding: 10px 14px; border: 1px solid var(--route-line); background: var(--surface-raised); color: var(--route); font: 700 10px var(--mono); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Legal pages */
.legal a { text-decoration-color: var(--route-line); text-underline-offset: 3px; }
.legal a:hover { color: var(--route); }
.legal h1 { text-wrap: balance; }
.legal table { display: table; }
.back { display: inline-flex; align-items: center; min-height: 36px; }

/* Progressive enhancement: content stays visible when JS fails. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 680ms var(--ease-out), transform 680ms var(--ease-out); }
.js .reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 880px; }
  .routing-shell { max-width: 900px; }
  .split-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .split-head .section-sub { max-width: 44em; }
  .surface-map { grid-template-columns: repeat(2, 1fr); }
  .accounts-panel { grid-column: 1 / -1; }
  .groups-panel, .keys-panel { grid-column: span 1; border-top: 1px solid var(--line); }
  .trust-inner { grid-template-columns: 1fr; gap: 56px; }
  .step-body { grid-template-columns: 1fr 1.15fr; }
  .step-body .code-line { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .l-header-inner { width: min(100% - 28px, 1380px); }
  .l-nav, .header-github, .l-header-actions > .btn { display: none; }
  .l-menu-btn { display: block; }
  .l-mobile-nav:not(.hidden) { display: flex; flex-direction: column; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); background: rgba(10,11,13,.98); }
  .l-mobile-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
  .hero { padding-top: 62px; }
  .hero-inner, .section-head, .story-grid, .surface-map, .trust-inner, .steps, .tiers, .faq-grid, .final-cta, .footer-inner, .f-legal { width: min(100% - 28px, 1260px); }
  .hero-title { font-size: clamp(44px, 12vw, 68px); }
  .proof-inner { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(3), .proof-item:nth-child(4) { border-top: 1px solid var(--line); }
  .story-step, .story-step:nth-child(2), .story-step:nth-child(3), .story-step:nth-child(4) { grid-column: 1 / -1; }
  .story-step { min-height: 330px; }
  .tiers { grid-template-columns: 1fr; }
  .tier { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tier:last-child { border-bottom: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid article, .faq-grid article:nth-child(odd), .faq-grid article:nth-child(even) { padding: 28px 0; border-right: 0; }
  .footer-inner { flex-direction: column; }
  .f-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .hero { padding-bottom: 54px; }
  .hero-title { letter-spacing: -0.055em; }
  .hero-ctas { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hero-meta { flex-direction: column; gap: 6px; }
  .hero-meta span { border-right: 0; }
  .routing-head { align-items: flex-start; flex-direction: column; }
  .tour-tabs { grid-template-columns: 1fr; }
  .tour-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .tour-tab.active::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tour-panel { min-height: auto; padding: 14px; }
  .route-column-head { display: none; }
  .route-row { grid-template-columns: .9fr 1.1fr; gap: 13px; min-height: 78px; padding: 10px; }
  .route-decision { grid-column: 1 / -1; min-height: 22px; justify-content: flex-start; }
  .route-output { flex-wrap: wrap; }
  .route-output b { width: 100%; margin-left: 0; }
  .routing-log { grid-template-columns: auto auto; }
  .routing-log span:last-child { grid-column: 1 / -1; }
  .policy-map, .sync-flow { grid-template-columns: 1fr; gap: 8px; }
  .policy-line, .sync-rail { width: 1px; height: 22px; margin: 0 auto; }
  .policy-accounts { width: 100%; }
  .proof-inner { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(3), .proof-item:nth-child(4) { min-height: 116px; border: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .routing-story, .features, .how, .pricing, .faq { padding-top: 96px; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: clamp(36px, 11vw, 52px); }
  .story-step { padding: 24px; }
  .surface-map { grid-template-columns: 1fr; }
  .accounts-panel, .groups-panel, .keys-panel { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .surface-panel:last-child { border-bottom: 0; }
  .trust { margin-top: 96px; padding: 88px 0; }
  .architecture article { grid-template-columns: 26px 1fr; }
  .arch-status { grid-column: 2; justify-self: start; }
  .step { grid-template-columns: 48px 1fr; }
  .step-body { grid-template-columns: 1fr; gap: 16px; padding: 25px 20px; }
  .step-body .code-line { grid-column: auto; }
  .tier { padding: 30px 23px; }
  .cta-card { padding: 40px 24px; }
  .cta-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .f-legal { flex-direction: column; }
  .legal { overflow-x: hidden; }
  .legal table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Social proof (renders only when real quotes exist in i18n) */
.social-proof { margin-top: 118px; }
.social-grid { width: min(100% - 40px, 1260px); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.social-quote { margin: 0; border: 1px solid var(--line); background: var(--surface); padding: 26px 24px; }
.social-quote blockquote { margin: 0 0 16px; font-size: 17px; line-height: 1.6; letter-spacing: -0.02em; }
.social-quote figcaption { color: var(--muted-2); font-size: 10px; letter-spacing: 0.08em; }
