/* On-chain parts of the new homepage and pricing page (index-new.html, pricing-new.html). */
:root { --oc-sun: #f5a524; --oc-fare: #0d9488; --oc-rail: #a855f7; }

/* Hero: the four pillars */
/* The two-line hero headline ("Uncensored AI. / Owned by the people."): each Chinese line and the English first line
   stay whole on phones, so the type shrinks a little more than the original hero did. */
@media (max-width: 400px) { .hero.hero-v2 .display { font-size: 11.5vw; } }
@media (max-width: 440px) { html[lang^="zh"] .hero-v2 .display { font-size: min(46px, 10.8vw); } }
/* "Owned by the people who use it" stays on one line wherever it fits (owner's request); phones wrap it. */
#people .h2 { text-wrap: balance; }
/* the closing "no one can change the core ratios" sentence: its own line, in bold (owner's request) */
#people .oc-lock { font-weight: 600; text-wrap: balance; }
@media (min-width: 700px) {
  #people .section-head { max-width: 1120px; }
  #people .h2 { white-space: nowrap; }
  #people .section-head .lead { max-width: 960px; margin-left: auto; margin-right: auto; }
}
/* index-new.html: the black no-salary bar right under the hero lead (links to the fair-launch block) */
.oc-hero-pay { display: flex; align-items: baseline; justify-content: center; gap: 12px; max-width: 880px; margin: 26px auto 0; padding: 12px 18px;
  border-radius: 14px; background: #f5f3ff; border: 1px solid rgba(108, 92, 255, .22); color: var(--ink-2); font-size: 14px; line-height: 1.5; text-align: left; }
.oc-hero-pay:hover { color: var(--ink); border-color: rgba(108, 92, 255, .4); }
.oc-hero-pay b { flex: none; font: 600 15px/1.4 var(--font-display); color: #4a3bd6; }
@media (max-width: 760px) { .oc-hero-pay { flex-direction: column; align-items: center; gap: 2px; text-align: center; } }

/* "Users can verify everything": the first line of the hero, linking the canary and the public ledger. */
.oc-verify { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; max-width: 1040px; margin: 0 auto 26px; }
.oc-verify b { margin-right: 2px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.oc-verify a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 14px; border-radius: 999px; background: var(--live-soft); color: #15803d; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.oc-verify a:hover { background: #d8f2e2; }
.oc-verify svg { width: 14px; height: 14px; flex: none; }
.oc-pillars { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.oc-pillar { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8); font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color .15s, background .15s; }
.oc-pillar:hover { border-color: #cfcfca; background: #fff; }
.oc-pillar i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.oc-pillar-unc i { background: var(--accent); } .oc-pillar-log i { background: var(--ink); }
.oc-pillar-gov i { background: var(--oc-sun); } .oc-pillar-back i { background: var(--oc-fare); }

/* Metrics strip: one row of on-chain rules under the speed numbers */
.oc-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; margin: 0 0 40px; padding: 18px 24px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14.5px; color: var(--muted); }
.oc-chain-i { white-space: nowrap; }
.oc-chain b { color: var(--ink); font-weight: 600; }
.oc-chain-l { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--oc-sun); white-space: nowrap; }
.oc-chain-more { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* The people's AI */
/* Homepage money flow (replaces the four step cards): SVG drawn by onchain.js renderFlow; coins run along the rules */
.oc-mflow { margin: 0 0 44px; padding: 30px 26px 22px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.oc-mflow svg { display: block; width: 100%; height: auto; margin: 0 auto; font-family: inherit; }
.oc-mflow[data-mode="tall"] svg { max-width: 420px; }
.oc-mflow .fl-edge { stroke: #e3e3dd; stroke-width: 1.5; }
.oc-mflow .fl-box { fill: #fff; stroke: #e6e6e0; stroke-width: 1; }
.oc-mflow .fn-pay .fl-box, .oc-mflow .fn-gpu .fl-box { fill: #f7f7f4; }
.oc-mflow .fn-seat .fl-box { fill: #fff8ea; stroke: #f6dfae; }
.oc-mflow .fn-cats .fl-box { fill: #f4f1ff; stroke: #ddd5ff; }
.oc-mflow .fn-fare .fl-box { fill: #e9f7f3; stroke: #bfe5da; }
.oc-mflow .fl-ring { fill: none; stroke: #f5a524; stroke-width: 1.5; }
.oc-mflow .fl-t { font: 600 15px var(--font-display); fill: var(--ink); }
.oc-mflow .fl-s { font-size: 12.5px; fill: var(--muted); }
.oc-mflow .fn-fare .fl-t { fill: #0f766e; }
.oc-mflow .fl-pill rect { fill: #fff; stroke: #e3e3dd; }
.oc-mflow .fl-pill text { font: 600 12.5px var(--font-display); fill: var(--ink); }
.oc-mflow .fp-seat text { fill: #b7791f; } .oc-mflow .fp-cats text { fill: #6d4fe8; } .oc-mflow .fp-fare text { fill: #0f766e; } .oc-mflow .fp-gpu text { fill: var(--muted); }
.oc-mflow .fl-coin { filter: drop-shadow(0 0 4px currentColor); }
.oc-mflow .c-seat { fill: #f5a524; color: #f5a524; } .oc-mflow .c-gpu { fill: #a3a39c; color: #a3a39c; }
.oc-mflow .c-cats { fill: #7c5cff; color: #7c5cff; } .oc-mflow .c-fare { fill: #0d9488; color: #0d9488; }
.oc-mflow-more { display: table; margin: 8px auto 0; font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid currentColor; }
@media (max-width: 640px) { .oc-mflow { padding: 20px 12px 16px; border-radius: 20px; } }
/* hard-coded parts: ink border + a small lock badge on the corner; the key under the chart explains it */
.oc-mflow .is-locked .fl-box { stroke: var(--ink); stroke-width: 1.6; }
.oc-mflow .fl-pill.is-locked rect { stroke: var(--ink); stroke-width: 1.4; }
.oc-mflow .fl-lock circle { fill: var(--ink); }
.oc-mflow .fl-lock path { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.oc-mflow .fl-lock rect { fill: #fff; }
.oc-mflow-key { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px auto 0; max-width: 760px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.oc-mflow-key svg { flex: none; width: 34px; height: 24px; overflow: visible; }
.oc-mflow-key .fl-box { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
@media (prefers-reduced-motion: reduce) { .oc-mflow .fl-coin { display: none; } }
.oc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.oc-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); container-type: inline-size; }
.oc-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; line-height: 24px; text-align: center; }
.oc-step-n { font: 600 12px var(--mono); color: var(--muted-2); }
.oc-step-t { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-step-v { margin-top: 6px; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 11.5cqi, 32px); line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.oc-step-c { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-steps li:nth-child(2) .oc-step-v { color: #4a3bd6; } .oc-steps li:nth-child(4) .oc-step-v { color: #0f766e; }
.oc-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.oc-rail, .oc-board { padding: 32px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.oc-rail p, .oc-board p { margin: 0; color: var(--muted); font-size: 15.5px; }
.oc-tag { align-self: flex-start; font: 600 12.5px/1 var(--mono); padding: 7px 11px; border-radius: 999px; }
.oc-tag-fair { background: #e6f6f2; color: #0f766e; }
/* Fair launch: who holds Rail (users 100%; founder, team and investors 0%). */
.oc-fair { margin: 0 0 44px; padding: 30px 28px 24px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.oc-fair-head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.oc-fair-head .oc-tag { display: inline-block; }
.oc-fair .nb { white-space: nowrap; }
.oc-fair-h { margin: 14px 0 8px; font: 600 clamp(22px, 2.4vw, 30px)/1.25 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.oc-fair-head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.oc-fair-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.oc-fair-grid li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--bg-alt); }
.oc-fair-grid span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.oc-fair-grid b { font: 600 clamp(30px, 3vw, 40px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.oc-fair-grid em { font-style: normal; font-size: 13px; line-height: 1.45; color: var(--muted); }
.oc-fair-grid li.is-users { background: #e6f6f2; }
.oc-fair-grid li.is-users b { color: #0f766e; }
.oc-fair-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }   /* $0 salaries · 100% voluntary donations */
.oc-fair-grid b i { margin-left: 8px; font-style: normal; font-size: .42em; font-weight: 600; letter-spacing: 0; }
.oc-fair-note { margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.oc-fair-pay { display: flex; align-items: baseline; gap: 16px; margin: 14px 0 0; padding: 18px 22px; border-radius: 18px; background: #f5f3ff; border: 1px solid rgba(108, 92, 255, .22); }
.oc-fair-pay b { flex: none; font: 600 19px/1.4 var(--font-display); color: #4a3bd6; }
.oc-fair-pay p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.oc-fair-pay p b { font: inherit; font-weight: 600; color: var(--ink); }   /* the donation sentence (owner asked for bold) */
@media (max-width: 900px) { .oc-fair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .oc-fair-pay { flex-direction: column; gap: 6px; padding: 16px 18px; } }
@media (max-width: 380px) { .oc-fair-grid { grid-template-columns: minmax(0, 1fr); } }   /* one tile per row: no uneven notes */
@media (max-width: 640px) { .oc-fair { padding: 22px 16px 18px; } .oc-fair-grid li { padding: 14px 14px; } }
.oc-tag-rail { background: #f5edff; color: #7e22ce; } .oc-tag-board { background: #fff6e0; color: #9a5b00; }
.oc-big { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.02em; margin-top: 6px; }
.oc-rail .oc-per { color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.oc-board h3 { margin: 4px 0 0; }
.oc-seats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.oc-seat { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--mono); color: var(--muted-2);
  border: 1.5px dashed var(--line); background: #fff; }
.oc-seat.on { border: 0; background: var(--accent); color: #fff; }
.oc-seat.sun.on { background: radial-gradient(circle at 35% 30%, #ffd978, var(--oc-sun)); }
.oc-live { font-size: 13.5px !important; color: var(--muted-2) !important; min-height: 1.5em; }
.oc-more { margin-top: auto; padding-top: 8px; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.oc-links { margin-top: 36px; }

/* Pricing: the hero line and where the money goes */
.oc-hero-pill { margin: 26px auto 0; }
.oc-back .section-head .lead { color: var(--muted); }
.oc-dollar { padding: 32px; }
.oc-dollar .h4 { margin-bottom: 18px; }
.oc-bar { display: flex; gap: 3px; height: 18px; border-radius: 999px; overflow: hidden; }
.oc-bar i { display: block; height: 100%; min-width: 10px; }
.oc-bar i.b { background: linear-gradient(90deg, var(--accent), #a855f7); } .oc-bar i.v { background: var(--accent-2); }
.oc-bar-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.oc-bar-key span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.oc-bar-key i { width: 10px; height: 10px; border-radius: 3px; } .oc-bar-key .b i { background: #a855f7; } .oc-bar-key .v i { background: var(--accent-2); }
.oc-flow { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; counter-reset: ocf; }
.oc-flow li { counter-increment: ocf; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.oc-flow li::before { content: counter(ocf); width: 26px; height: 26px; border-radius: 50%; background: #efedff; color: #4a3bd6; font: 600 12px/26px var(--mono); text-align: center; }
.oc-flow li b { color: var(--ink); font-weight: 600; }
.oc-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.oc-check a { color: var(--ink); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.oc-rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.oc-rw { padding: 26px; display: flex; flex-direction: column; gap: 6px; min-width: 0; container-type: inline-size; }
.oc-rw-v { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 12cqi, 40px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.oc-rw-l { font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-rw-c { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-card .pay-ico.oc-fare-ico { background: var(--oc-fare); font-family: var(--font-display); }

@media (max-width: 1100px) {
  .oc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 980px) {
  .oc-duo, .oc-rewards, .oc-flow { grid-template-columns: minmax(0, 1fr); }
  .oc-chain { border-radius: var(--r-md); }
}
@media (max-width: 640px) {
  .oc-steps { grid-template-columns: minmax(0, 1fr); }
  .oc-steps li::after { display: none; }
  .oc-chain { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px; }
  .oc-rail, .oc-board, .oc-dollar { padding: 24px; }
  .oc-pillar { height: 34px; padding: 0 13px; font-size: 13.5px; }
  .oc-pillars { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 8px; }
  .oc-verify b { flex-basis: 100%; margin: 0; text-align: center; }
  .oc-verify a { font-size: 12.5px; }
}
@media (max-width: 380px) {
  .oc-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-pillar { height: auto; min-height: 34px; padding: 6px 10px; gap: 7px; font-size: 12.5px; line-height: 1.25; }
}
/* pricing.html's own .pay-card rule comes later in the page, so these need the extra class to win */
.pay-card.oc-pay-fare { margin-top: 16px; flex-direction: row; align-items: center; gap: 20px; }
.pay-card.oc-pay-fare .pay-ico { margin-bottom: 0; flex: none; }
.pay-card.oc-pay-fare .h4 { margin: 0 0 4px; }
