/* Robot Builder pages on polymaria.net: same calm look as the shop (Inter, one blue accent). */
@font-face { font-family: AbuInter; src: url('/assets/fonts/Inter-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f7f7f8; --surface: #fff; --text: #1f2026; --muted: #62656f; --line: #e5e5ea;
  --accent: #0068d6; --accent-ink: #fff; --accent-soft: #eaf3ff; --ok: #1a7f4b; --ok-soft: #e7f6ee; --bad: #b42318; --bad-soft: #fdecea;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --surface: #1a1d23; --text: #e8eaee; --muted: #9aa0ab; --line: #2a2e36;
    --accent: #4d9bff; --accent-ink: #0b1220; --accent-soft: #16263d; --ok: #4cc38a; --ok-soft: #13291f; --bad: #ff8a80; --bad-soft: #341a19;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: AbuInter, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 750; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 12px; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.by { color: var(--muted); font-size: 13px; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.top-nav .who { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.small { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero { padding: 56px 0 36px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; }
.lane { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.lane b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.lane span { color: var(--muted); margin-left: auto; font-size: 12px; }

section.block { padding: 36px 0; border-top: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price { font-size: 32px; font-weight: 750; margin: 6px 0 2px; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 12px 0 16px; flex: 1; }
.plan li { margin-bottom: 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.page { padding: 32px 0 48px; }
.panel { max-width: 560px; margin: 24px auto; }
.panel .card { padding: 24px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.code-input { font: 700 26px/1 ui-monospace, Consolas, monospace; letter-spacing: .3em; text-transform: uppercase; width: 200px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-align: center; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 26px; font-weight: 800; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-grid .wide { grid-column: 1 / -1; }
.buy-list { display: grid; gap: 8px; }
.buy-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.buy-item div { flex: 1; }
.foot { border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; color: var(--muted); background: var(--surface); }
.loading { padding: 60px 0; text-align: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .grid3, .plans, .account-grid { grid-template-columns: 1fr; }
  .by { display: none; }
}
.account-title { font-size: 30px; margin: 0; }
.price.flat { margin: 0; }
.center { text-align: center; }
.center .done-mark { margin: 0 auto; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; width: 100%; }
@media (max-width: 600px) { .top-nav .who { display: none; } .brand span { font-size: 15px; } }
.center-row { justify-content: center; }
