/* rbterp website — brand theme from the logo: navy #0f172a, deep blue #1e3a8a, sky blue #38bdf8 / #2a9df4. */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #0f172a;
  --muted: #55657e;
  --line: #e2e6f0;
  --accent: #1f7fe0;
  --accent-2: #38bdf8;
  --accent-ink: #ffffff;
  --ok: #12925e;
  --warn-bg: #fff4e0;
  --warn: #7a4a00;
  --err: #c0262d;
  --hero-1: #0b1224;
  --hero-2: #1e3a8a;
  --hero-text: #eef0ff;
  --hero-muted: #a9c3e6;
  --shadow: 0 1px 2px rgba(14, 19, 48, .06), 0 8px 24px rgba(14, 19, 48, .08);
  --shadow-lg: 0 30px 80px -20px rgba(8, 20, 60, .55);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070d1c;
    --surface: #0e1730;
    --surface-2: #14203f;
    --text: #e9ecff;
    --muted: #a0a7cc;
    --line: #22315a;
    --accent: #4aa8ff;
    --accent-2: #38bdf8;
    --accent-ink: #06101f;
    --ok: #4cd69a;
    --warn-bg: #3a2c10;
    --warn: #f3c56b;
    --err: #ff8a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.muted, .scope, .est, .crumbs { color: var(--muted); }
.scope, .est, .crumbs { font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .01em; color: var(--text); text-decoration: none; }
.brand-logo { width: 34px; height: 34px; display: block; flex: none; }
.brand-word { font-weight: 800; font-size: 23px; letter-spacing: -.02em; text-transform: lowercase; }
.foot-lockup { display: grid; gap: 8px; }
.foot-lockup .bar { width: 52px; height: 4px; border-radius: 2px; background: #2a9df4; }
.foot-lockup .tagline { letter-spacing: .28em; font-size: 11.5px; color: var(--hero-muted); }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.top nav a:hover { color: var(--text); background: var(--surface-2); }
.top nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.top nav a.nav-cta { background: var(--accent); color: var(--accent-ink); }
.top nav a.nav-cta:hover { filter: brightness(1.08); background: var(--accent); color: var(--accent-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; padding: 12px 22px; border-radius: 12px; text-decoration: none; font-weight: 650; font-size: 15px; cursor: pointer; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: none; }
.btn-light { background: rgba(255, 255, 255, .08); color: var(--hero-text); border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Type */
h1 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; font-weight: 780; }
h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
h3 a { color: var(--text); text-decoration: none; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 720px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 750; color: var(--accent); margin: 0 0 14px; }
.grad { background: linear-gradient(90deg, #7dd3fc, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--hero-text); background: radial-gradient(1200px 600px at 85% -10%, rgba(42, 157, 244, .45), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(56, 189, 248, .22), transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); padding: 72px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .eyebrow { color: #7dd3fc; }
.hero .lead { color: var(--hero-muted); }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-copy .lead { margin: 0 auto; }
.hero-copy .btn-row { justify-content: center; }
.pills { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills li { font-size: 14px; color: var(--hero-text); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 999px; }
.hero-shot { margin: 56px auto 0; max-width: 1100px; transform: translateY(2px); }
.hero-sub { padding: 56px 0 48px; }
.hero-sub .lead { max-width: 760px; }

/* Screenshot frame */
.frame { border-radius: 14px; overflow: hidden; background: #0b0f26; border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #121736; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: #8a90b8; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 2px 10px; flex: 1; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame a { display: block; }
.frame img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.caption { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--surface-2); }
.band { padding-top: 40px; padding-bottom: 40px; }
.section-head { max-width: 760px; margin: 0 0 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -1px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--surface); padding: 24px; }
.stats strong { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 14px; }

/* Module grid */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.mod { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mod:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 18px 40px -16px rgba(30, 58, 138, .35); }
.mod-thumb { background: #0b0f26; aspect-ratio: 16 / 10; overflow: hidden; }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.mod:hover .mod-thumb img { transform: scale(1.04); }
.mod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mod-body p { margin: 0; color: var(--muted); font-size: 15px; }
.mod-head { display: flex; align-items: center; gap: 10px; }
.mod-more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 650; font-size: 14px; }
.icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; }

/* Feature rows */
.feature { display: grid; gap: 36px; align-items: center; padding: 40px 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1.25fr; gap: 64px; } .feature.flip > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312925e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Why tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.tile p { margin: 8px 0 0; color: var(--muted); }
.tile .icon { margin-bottom: 14px; }

/* Services cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); box-shadow: var(--shadow); }
.card p { margin: 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.price-row { display: flex; flex-direction: column; margin: 10px 0 14px; }
.price { font-weight: 800; font-size: 22px; }
.price.quote { font-size: 17px; }

/* CTA band */
.cta { border-radius: 24px; padding: clamp(32px, 6vw, 64px); color: var(--hero-text); background: radial-gradient(700px 300px at 100% 0, rgba(56, 189, 248, .35), transparent 60%), linear-gradient(135deg, #1e3a8a, #0b1224); text-align: center; }
.cta h2 { color: #fff; }
.cta .lead { color: var(--hero-muted); margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* Module detail */
.crumbs { margin: 0 0 18px; }
.hero .crumbs, .hero .crumbs a { color: var(--hero-muted); }
.detail-shot { margin-top: -96px; position: relative; z-index: 2; }
.hero-sub.with-shot { padding-bottom: 140px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.related a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 550; font-size: 14px; }
.related .icon { width: 28px; height: 28px; border-radius: 50%; }
.related .icon svg { width: 15px; height: 15px; }

/* Facts, FAQ, forms */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; display: flex; flex-direction: column; }
.faq { max-width: 820px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 32px); box-shadow: var(--shadow); }
.form label { font-weight: 600; margin-top: 10px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form .check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.form .check input { width: auto; margin-top: 5px; }
.form button { margin-top: 18px; align-self: flex-start; }
.err { color: var(--err); font-size: 14px; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.alert { background: var(--warn-bg); color: var(--warn); padding: 12px 16px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.page-head { padding: 56px 0 8px; }

/* Footer */
.foot { margin-top: 96px; background: var(--hero-1); color: var(--hero-muted); padding: 56px 0 32px; font-size: 14px; }
.foot a { color: var(--hero-text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .brand { color: #fff; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot p { margin: 6px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Phones: one compact header row that scrolls with the page instead of covering it. */
@media (max-width: 640px) {
  .top { position: static; }
  .top-in { flex-wrap: nowrap; gap: 10px; min-height: 56px; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-right: -16px; padding-right: 16px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .top nav a[href="/"] { display: none; }
  .brand-word { font-size: 21px; }
  .hero { padding-top: 48px; }
  .section { padding: 64px 0; }
}

/* Subscription plans (Pricing page and home). */
.plan .price-row { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.plan .per { color: var(--muted); }
.plan .ticks { margin: .75rem 0; }
.plan-featured { border: 2px solid var(--accent); }

/* Website assistant (static edition, public/assistant.js) */
.asst-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 13px 20px; font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); }
.asst-panel { position: fixed; right: 16px; bottom: 16px; z-index: 61; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .5); overflow: hidden; }
.asst-panel[hidden], .asst-toggle[hidden], .asst-chips[hidden] { display: none; }
.asst-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.asst-close { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.asst-log { flex: 1; min-height: 160px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.asst-msg { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
.asst-assistant { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; }
.asst-user { background: var(--accent); color: var(--accent-ink); align-self: flex-end; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.asst-chip { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.asst-chip:hover { border-color: var(--accent); }
.asst-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.asst-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.asst-form .btn { padding: 10px 16px; box-shadow: none; }
.asst-note { margin: 0; padding: 0 16px 12px; font-size: 12.5px; color: var(--muted); }
