:root {
  --bg: #f5f3ee;
  --paper: #fffdf9;
  --ink: #171714;
  --muted: #6e6b64;
  --line: #dcd8cf;
  --line-strong: #c7c0b5;
  --accent: #df5d2f;
  --accent-dark: #b9441d;
  --accent-soft: #f8e5dc;
  --green: #17745a;
  --green-soft: #e3f2ec;
  --blue: #2f5f9f;
  --yellow: #8b5b0a;
  --yellow-soft: #fff0cf;
  --red: #a43b34;
  --shadow: 0 18px 50px rgba(36, 31, 23, .08);
  --radius: 18px;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button, summary, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(223, 93, 47, .32); outline-offset: 2px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.app-shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 40; height: 74px; padding: 0 34px; display: grid; grid-template-columns: minmax(210px, 1fr) auto minmax(300px, 1fr); align-items: center; gap: 24px; background: rgba(245, 243, 238, .92); border-bottom: 1px solid rgba(199, 192, 181, .75); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; padding: 0; border: 0; background: transparent; text-align: left; }
.brand-symbol { width: 35px; height: 35px; position: relative; display: grid; align-items: center; }
.brand-symbol i { position: absolute; left: 4px; height: 3px; border-radius: 99px; background: var(--ink); transform-origin: left center; }
.brand-symbol i:nth-child(1) { width: 25px; transform: rotate(-20deg); top: 9px; }
.brand-symbol i:nth-child(2) { width: 18px; top: 17px; background: var(--accent); }
.brand-symbol i:nth-child(3) { width: 25px; transform: rotate(20deg); top: 25px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.desktop-nav { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); background: rgba(255,253,249,.72); border-radius: 999px; }
.nav-link { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav-link.is-active { background: var(--ink); color: white; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.mode-switch { display: flex; padding: 3px; background: #e9e5dd; border-radius: 10px; }
.mode-switch button { height: 31px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.mode-switch button.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.balance-button { height: 43px; min-width: 94px; padding: 5px 12px; display: grid; align-content: center; border: 1px solid var(--line); background: var(--paper); border-radius: 11px; text-align: left; }
.balance-button span { color: var(--muted); font-size: 10px; }
.balance-button strong { font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: white; font-size: 12px; font-weight: 800; }
main { width: min(1500px, 100%); margin: 0 auto; padding: 44px 48px 90px; }
.view { display: none; animation: fade-in .28s ease both; }
.view.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kicker { display: block; margin-bottom: 7px; color: var(--accent-dark); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.status-line { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; font-weight: 650; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); gap: clamp(36px, 6vw, 96px); align-items: start; padding: 42px 0 28px; }
.hero-copy h1 { margin: 0; max-width: 860px; font-size: clamp(42px, 5.1vw, 76px); line-height: 1.03; letter-spacing: -.065em; }
.hero-lead { max-width: 730px; margin: 24px 0 31px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.prompt-card { padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.prompt-card > label { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 800; }
.prompt-card textarea { width: 100%; min-height: 112px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 18px; line-height: 1.6; }
.prompt-presets { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 13px; border-top: 1px solid var(--line); }
.prompt-presets button, .chip-row button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.prompt-presets button.is-active, .chip-row button.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.simple-options { margin-top: 20px; }
.simple-options fieldset { margin: 0; padding: 0; border: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.simple-options legend { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.simple-options label { position: relative; }
.simple-options input { position: absolute; opacity: 0; }
.simple-options span { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,253,249,.55); font-size: 13px; font-weight: 700; }
.simple-options input:checked + span { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.advanced-options { margin-top: 15px; border-top: 1px solid var(--line); }
.advanced-options summary { padding: 15px 0; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.advanced-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 4px; }
.advanced-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.advanced-grid select { height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 0 10px; color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.primary-button, .secondary-button, .ghost-button, .run-button { min-height: 48px; padding: 0 19px; border-radius: 12px; font-weight: 800; }
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: white; box-shadow: 0 9px 22px rgba(223,93,47,.22); }
.primary-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.secondary-button { border: 1px solid var(--line-strong); background: var(--paper); }
.ghost-button { border: 0; background: transparent; color: var(--muted); }
.full { width: 100%; }
.route-panel { position: sticky; top: 102px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.panel-topline, .drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-topline h2, .drawer-head h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.evidence-badge { padding: 7px 9px; border-radius: 8px; background: var(--yellow-soft); color: var(--yellow); font-size: 10px; font-weight: 800; }
.route-flow { padding: 23px 0 16px; }
.flow-node { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #faf8f3; }
.flow-node > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 11px; font-weight: 800; }
.flow-node strong, .flow-node small { display: block; }
.flow-node strong { font-size: 14px; }
.flow-node small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.flow-line { width: 1px; height: 20px; margin-left: 27px; background: var(--line-strong); }
.candidate-list { display: grid; gap: 7px; }
.candidate { width: 100%; min-height: 58px; padding: 9px 10px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent; text-align: left; }
.candidate.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.candidate-mark, .model-logo { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: 12px; font-weight: 900; }
.candidate strong, .candidate small { display: block; }
.candidate strong { font-size: 13px; }
.candidate small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.candidate-tag { color: var(--accent-dark); font-size: 10px; font-weight: 850; }
.candidate-tag.muted { color: var(--muted); }
.result-node { border-color: var(--ink); background: var(--ink); color: white; }
.result-node > span { background: white; color: var(--ink); }
.result-node small { color: #c8c4bc; }
.route-flow[data-state="running"] .flow-line { background: linear-gradient(var(--accent), var(--line)); animation: flow-pulse .75s ease; }
@keyframes flow-pulse { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); } }
.cost-preview { padding: 16px; border-radius: 14px; background: #f1eee7; }
.cost-preview > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.cost-preview > div:first-child span { color: var(--muted); font-size: 12px; }
.cost-preview > div:first-child strong { font-size: 24px; letter-spacing: -.04em; }
.cost-preview > div:nth-child(2) { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; color: var(--muted); font-size: 10px; }
.cost-preview button { border: 0; padding: 0; background: transparent; color: var(--accent-dark); font-weight: 750; }
.cost-range { height: 5px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #dcd7cd; }
.cost-range i { display: block; height: 100%; background: var(--accent); }
.cost-preview p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.run-button { width: 100%; margin-top: 12px; border: 1px solid var(--ink); background: var(--ink); color: white; }
.demo-result { margin-top: 12px; padding: 15px; border: 1px solid #b9d6ca; border-radius: 13px; background: var(--green-soft); }
.demo-result > div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 8px; }
.demo-result small { color: var(--green); font-size: 10px; }
.demo-result p { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.success-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.onboarding-strip { margin-top: 52px; padding: 31px 36px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.onboarding-strip h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.onboarding-strip p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.onboarding-strip ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.onboarding-strip li { min-height: 96px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.65); }
.onboarding-strip li span { color: var(--accent-dark); font-size: 11px; font-weight: 900; }
.onboarding-strip li strong, .onboarding-strip li small { display: block; }
.onboarding-strip li strong { margin-top: 16px; }
.onboarding-strip li small { margin-top: 5px; color: var(--muted); }
.page-heading { padding: 32px 0 27px; }
.page-heading h1 { margin: 0; font-size: clamp(38px, 4vw, 58px); letter-spacing: -.055em; line-height: 1.08; }
.page-heading p { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.price-snapshot { flex: 0 0 auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.price-snapshot span, .price-snapshot strong, .price-snapshot small { display: block; }
.price-snapshot span { color: var(--muted); font-size: 10px; }
.price-snapshot strong { margin-top: 4px; }
.price-snapshot small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.model-controls { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 12px; align-items: center; margin: 10px 0 17px; }
.search-field { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.chip-row { display: flex; gap: 7px; }
.compare-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); font-weight: 800; }
.compare-button:disabled { opacity: .45; cursor: not-allowed; }
.compare-button span { margin-left: 4px; padding: 2px 6px; border-radius: 99px; background: var(--ink); color: white; font-size: 10px; }
.price-explainer { margin-bottom: 17px; padding: 14px 16px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #ebe8e1; }
.price-explainer div { display: grid; gap: 3px; }
.price-explainer strong { font-size: 12px; }
.price-explainer span { color: var(--muted); font-size: 10px; }
.price-explainer button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--ink); color: white; font-size: 11px; font-weight: 800; }
.model-table-wrap { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); }
.model-table-head, .model-price-row { display: grid; grid-template-columns: 36px minmax(180px, 1.1fr) minmax(190px, 1.25fr) minmax(100px, .7fr) minmax(100px, .7fr) minmax(115px, .8fr) minmax(135px, .9fr) 58px; gap: 14px; align-items: center; }
.model-table-head { min-height: 45px; padding: 0 15px; border-bottom: 1px solid var(--line); background: #efede7; color: var(--muted); font-size: 10px; font-weight: 800; }
.model-price-row { min-height: 96px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.model-price-row:last-child { border-bottom: 0; }
.model-price-row:hover { background: #fbfaf6; }
.compare-check { width: 22px; height: 22px; position: relative; display: inline-block; }
.compare-check input { position: absolute; opacity: 0; }
.compare-check span { width: 20px; height: 20px; display: block; border: 1px solid var(--line-strong); border-radius: 6px; background: white; }
.compare-check input:checked + span { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px white; }
.model-name { display: flex; align-items: center; gap: 10px; }
.model-name strong, .model-name small, .use-case strong, .use-case small, .unit-price strong, .unit-price small, .request-price strong, .request-price small, .source-state strong, .source-state small { display: block; }
.model-name strong { font-size: 14px; }
.model-name small, .use-case small, .unit-price small, .request-price small, .source-state small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.use-case strong { font-size: 12px; }
.unit-price strong, .request-price strong { font-size: 13px; }
.unit-price.unknown strong, .request-price.unknown strong { color: var(--yellow); }
.unit-price.free strong, .request-price.free strong { color: var(--green); }
.source-state { padding-left: 10px; border-left: 3px solid var(--line); }
.source-state strong { font-size: 10px; }
.source-state.verified { border-color: var(--green); }
.source-state.catalog { border-color: var(--blue); }
.source-state.unknown { border-color: var(--yellow); }
.source-state.configured { border-color: var(--ink); }
.row-detail { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: transparent; font-size: 11px; font-weight: 750; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }
.calculator-panel { margin-top: 22px; padding: 25px; display: grid; grid-template-columns: 1fr 1.25fr .85fr; gap: 28px; align-items: start; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--paper); }
.calculator-copy h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.calculator-copy p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.calculator-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.calculator-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.calculator-controls input, .calculator-controls select { height: 43px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #faf8f3; padding: 0 11px; color: var(--ink); }
.calculator-result { padding: 18px; border-radius: 14px; background: var(--ink); color: white; }
.calculator-result > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: #c9c5bd; font-size: 11px; }
.calculator-result > div strong { color: white; font-size: 13px; }
.calculator-result .total-cost { margin-top: 5px; padding-top: 14px; border-top: 1px solid #45443e; }
.calculator-result .total-cost strong { color: #ff9f76; font-size: 23px; }
.calculator-result > small { display: block; margin-top: 10px; color: #9d9a92; font-size: 9px; line-height: 1.5; }
.centered-heading { text-align: center; }
.centered-heading p { margin-left: auto; margin-right: auto; }
.plan-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.plan-card { min-height: 440px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--paper); }
.plan-card.is-featured { border-color: var(--accent); box-shadow: 0 18px 50px rgba(223,93,47,.12); }
.plan-label { display: inline-flex; width: max-content; padding: 5px 8px; border-radius: 7px; background: #ece9e2; color: var(--muted); font-size: 9px; font-weight: 850; }
.is-featured .plan-label { background: var(--accent-soft); color: var(--accent-dark); }
.plan-card h2 { margin: 15px 0 0; font-size: 30px; letter-spacing: -.05em; }
.plan-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.plan-price { min-height: 83px; margin: 25px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan-price strong { font-size: 28px; letter-spacing: -.04em; }
.plan-price span { margin-left: 5px; color: var(--muted); font-size: 11px; }
.plan-price small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.plan-card ul { flex: 1; margin: 0 0 22px; padding: 0; display: grid; align-content: start; gap: 12px; list-style: none; }
.plan-card li { position: relative; padding-left: 18px; font-size: 12px; }
.plan-card li::before { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.not-unlimited { margin: 18px 0 30px; padding: 15px 18px; display: flex; gap: 15px; align-items: center; border: 1px solid #ead19e; border-radius: 12px; background: var(--yellow-soft); }
.not-unlimited strong { color: var(--yellow); }
.not-unlimited p { margin: 0; color: #6b521f; font-size: 12px; }
.plan-matrix { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); }
.matrix-title { padding: 22px; border-bottom: 1px solid var(--line); }
.matrix-title h2 { margin: 0; font-size: 24px; }
.matrix-row { min-height: 51px; padding: 0 20px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 15px; align-items: center; border-bottom: 1px solid var(--line); font-size: 12px; }
.matrix-row:last-child { border-bottom: 0; }
.matrix-head { background: #efede7; color: var(--muted); font-size: 10px; }
.wallet-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.wallet-card { min-height: 170px; padding: 23px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); }
.wallet-card > span, .wallet-card > strong, .wallet-card > small { display: block; }
.wallet-card > span { color: var(--muted); font-size: 11px; }
.wallet-card > strong { margin-top: 14px; font-size: 32px; letter-spacing: -.04em; }
.wallet-card > small { margin-top: 7px; color: var(--muted); font-size: 10px; }
.main-wallet { background: var(--ink); color: white; }
.main-wallet > span, .main-wallet > small { color: #bcb8af; }
.wallet-actions { display: flex; gap: 7px; margin-top: 20px; }
.wallet-actions button { min-height: 34px; padding: 0 11px; border: 1px solid #55524b; border-radius: 8px; background: transparent; color: white; font-size: 10px; font-weight: 750; }
.budget-progress { height: 7px; margin-top: 24px; border-radius: 99px; background: #e5e1d9; overflow: hidden; }
.budget-progress i { display: block; height: 100%; background: var(--accent); }
.budget-setting { margin: 15px 0 24px; padding: 18px 20px; display: grid; grid-template-columns: 1fr minmax(300px, .7fr) auto; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #ebe8e1; }
.budget-setting strong { font-size: 13px; }
.budget-setting p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.budget-setting label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.budget-setting input { accent-color: var(--accent); }
.usage-list { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); }
.usage-list-head { height: 52px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.usage-list-head span { font-weight: 850; }
.usage-list-head button { border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.usage-list article { min-height: 70px; padding: 12px 18px; display: grid; grid-template-columns: 12px 1fr minmax(160px, .3fr) 60px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.usage-list article:last-child { border-bottom: 0; }
.request-status { width: 8px; height: 8px; border-radius: 50%; }
.request-status.success { background: var(--green); }
.request-status.local { background: var(--blue); }
.request-status.blocked { background: var(--red); }
.usage-list article strong, .usage-list article small { display: block; }
.usage-list article strong { font-size: 12px; }
.usage-list article small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.usage-list article > span:last-child { color: var(--muted); font-size: 10px; }
.developer-hero { display: grid; grid-template-columns: 1fr minmax(360px, .65fr); gap: 40px; align-items: end; padding: 45px 0 25px; }
.developer-hero h1 { margin: 0; font-size: clamp(40px, 5vw, 67px); letter-spacing: -.06em; line-height: 1.05; }
.developer-hero p { max-width: 700px; color: var(--muted); line-height: 1.65; }
.endpoint-box { padding: 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); }
.endpoint-box span, .endpoint-box code { display: block; }
.endpoint-box span { color: var(--muted); font-size: 10px; }
.endpoint-box code { margin: 9px 0 13px; font-size: 13px; word-break: break-all; }
.endpoint-box button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 10px; font-weight: 750; }
.developer-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.code-panel { position: relative; overflow: hidden; border-radius: 16px; background: #161714; color: #f6f4ef; }
.code-tabs { height: 48px; padding: 0 13px; display: flex; gap: 5px; align-items: center; border-bottom: 1px solid #373832; }
.code-tabs button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #9b9d94; font-size: 10px; font-weight: 750; }
.code-tabs button.is-active { background: #2c2e29; color: white; }
.code-panel pre { min-height: 390px; margin: 0; padding: 25px; overflow: auto; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.75; color: #d8ded0; }
.copy-code { position: absolute; right: 13px; bottom: 13px; min-height: 34px; padding: 0 11px; border: 1px solid #505149; border-radius: 8px; background: #262722; color: white; font-size: 10px; }
.developer-settings { display: grid; align-content: start; gap: 9px; }
.developer-settings article { min-height: 87px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.developer-settings strong, .developer-settings small { display: block; }
.developer-settings strong { font-size: 12px; }
.developer-settings small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.developer-settings button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 9px; font-weight: 750; }
.developer-details { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.developer-details details { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.developer-details summary { font-size: 12px; font-weight: 800; cursor: pointer; }
.developer-details p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.mobile-nav { display: none; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(17,17,15,.36); backdrop-filter: blur(3px); }
.credit-drawer { position: fixed; top: 0; right: 0; z-index: 80; width: min(430px, 100%); height: 100dvh; padding: 25px; transform: translateX(105%); transition: transform .25s ease; background: var(--paper); box-shadow: -25px 0 60px rgba(0,0,0,.15); }
.credit-drawer.is-open { transform: translateX(0); }
.drawer-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: transparent; font-size: 23px; }
.balance-summary { margin: 25px 0; padding: 19px; border-radius: 14px; background: var(--ink); color: white; }
.balance-summary span, .balance-summary strong, .balance-summary small { display: block; }
.balance-summary span, .balance-summary small { color: #bbb7af; }
.balance-summary span { font-size: 10px; }
.balance-summary strong { margin-top: 10px; font-size: 32px; }
.balance-summary small { margin-top: 7px; font-size: 9px; }
.credit-options { display: grid; gap: 8px; }
.credit-options button { min-height: 64px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: transparent; }
.credit-options button.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.credit-options strong { font-size: 16px; }
.credit-options small { color: var(--muted); font-size: 10px; }
.fee-breakdown { margin: 21px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.fee-breakdown div { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: 11px; }
.fee-breakdown div:last-child { margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 800; }
.drawer-note { color: var(--muted); font-size: 9px; text-align: center; }
.compare-dialog { width: min(720px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 35px 90px rgba(0,0,0,.25); }
.compare-dialog::backdrop { background: rgba(17,17,15,.4); backdrop-filter: blur(3px); }
.compare-dialog form { padding: 24px; }
.compare-content { display: grid; gap: 9px; margin: 22px 0; }
.compare-card { padding: 16px; display: grid; grid-template-columns: 1fr repeat(3, .7fr); gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.compare-card strong, .compare-card small { display: block; }
.compare-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; min-width: 230px; padding: 12px 16px; transform: translateX(-50%); border-radius: 10px; background: var(--ink); color: white; font-size: 12px; text-align: center; box-shadow: var(--shadow); }
[data-ui-mode="developer"] .advanced-options { border: 1px solid var(--line); border-radius: 13px; padding: 0 14px; background: rgba(255,253,249,.5); }
[data-ui-mode="developer"] .advanced-options[open] { padding-bottom: 14px; }
@media (max-width: 1180px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 20px; }
  .desktop-nav { justify-self: center; }
  .nav-link { padding: 0 11px; }
  main { padding-left: 28px; padding-right: 28px; }
  .hero-grid { grid-template-columns: 1fr 410px; gap: 35px; }
  .hero-copy h1 { font-size: 52px; }
  .model-table-head, .model-price-row { grid-template-columns: 30px minmax(155px, 1fr) minmax(155px, 1fr) 90px 90px 100px 120px 50px; gap: 9px; }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .top-actions .mode-switch { display: none; }
  main { padding: 26px 20px 110px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 25px; }
  .route-panel { position: static; }
  .onboarding-strip { grid-template-columns: 1fr; }
  .model-controls { grid-template-columns: 1fr auto; }
  .chip-row { grid-column: 1 / -1; order: 3; overflow-x: auto; padding-bottom: 3px; }
  .model-table-head { display: none; }
  .model-price-row { grid-template-columns: 26px 1fr auto; gap: 10px; }
  .model-price-row > :nth-child(3), .model-price-row > :nth-child(4), .model-price-row > :nth-child(5), .model-price-row > :nth-child(7) { grid-column: 2 / -1; }
  .row-detail { grid-column: 3; grid-row: 1; }
  .calculator-panel { grid-template-columns: 1fr; }
  .plan-rail { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
  .wallet-grid { grid-template-columns: 1fr; }
  .budget-setting { grid-template-columns: 1fr; }
  .developer-hero { grid-template-columns: 1fr; }
  .developer-grid { grid-template-columns: 1fr; }
  .developer-details { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; height: 66px; padding: 6px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255,253,249,.94); box-shadow: 0 18px 50px rgba(0,0,0,.16); backdrop-filter: blur(18px); }
  .mobile-nav button { border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; }
  .mobile-nav button span { display: block; margin-bottom: 4px; font-size: 14px; }
  .mobile-nav button.is-active { background: var(--ink); color: white; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; padding: 0 14px; }
  .brand-symbol { width: 30px; }
  .brand small, .avatar { display: none; }
  .balance-button { min-width: 82px; height: 39px; }
  main { padding: 18px 14px 100px; }
  .hero-copy h1 { font-size: 39px; line-height: 1.06; }
  .hero-lead { font-size: 15px; margin: 18px 0 23px; }
  .prompt-card { padding: 14px; }
  .prompt-card textarea { min-height: 125px; font-size: 16px; }
  .simple-options fieldset { display: grid; grid-template-columns: 1fr 1fr; }
  .simple-options span { width: 100%; justify-content: center; }
  .advanced-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .route-panel { padding: 18px; }
  .onboarding-strip { margin-top: 28px; padding: 25px 4px; }
  .onboarding-strip ol { grid-template-columns: 1fr; }
  .page-heading { padding-top: 24px; }
  .page-heading h1 { font-size: 39px; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .price-snapshot { width: 100%; }
  .model-controls { grid-template-columns: 1fr auto; }
  .price-explainer { grid-template-columns: 1fr; gap: 10px; }
  .price-explainer button { width: 100%; }
  .model-price-row { min-height: 0; padding: 14px 12px; }
  .model-price-row > :nth-child(3) { padding-top: 5px; border-top: 1px solid var(--line); }
  .unit-price, .request-price { padding: 7px 9px; border-radius: 8px; background: #f1eee7; }
  .calculator-panel { padding: 18px; }
  .calculator-controls { grid-template-columns: 1fr; }
  .plan-rail { gap: 11px; }
  .plan-card { padding: 20px; }
  .matrix-row { grid-template-columns: 1fr; gap: 6px; padding: 13px 16px; }
  .matrix-head { display: none; }
  .wallet-card { min-height: 145px; }
  .usage-list article { grid-template-columns: 10px 1fr; }
  .usage-list article > div:nth-child(3), .usage-list article > span:last-child { grid-column: 2; }
  .developer-hero h1 { font-size: 40px; }
  .code-panel pre { min-height: 340px; font-size: 10px; }
  .compare-card { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
