:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F9;
  --border: #E1E7F0;
  --ink: #10162A;
  --ink-dim: #5B6472;
  --ink-faint: #8B93A3;
  --brand: #06B6D4;
  --brand-deep: #0E7490;
  --brand-light: #22D3EE;
  --brand-tint: rgba(6,182,212,0.09);
  --good: #12946F;
  --bad: #CF3A3A;
  --warn: #B4750B;
  --shadow-sm: 0 1px 2px rgba(16,22,42,0.05);
  --shadow-md: 0 10px 30px -12px rgba(16,22,42,0.16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: inherit; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 480px; }

.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; max-width: 1100px; margin: 0 auto 10px; padding-left: 32px; padding-right: 32px;
}
.topnav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topnav .brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.topnav .seal { width: 28px; height: 28px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-tagline { font-size: 10.5px; font-weight: 500; color: var(--ink-faint); margin-top: 1px; white-space: nowrap; }
@media (max-width: 640px) { .brand-tagline { display: none; } }
.topnav nav { display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.topnav nav a { text-decoration: none; color: var(--ink-dim); font-weight: 500; }
.topnav nav a.button {
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 700;
}

h1.page-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px; color: var(--ink); margin: 10px 0 6px; letter-spacing: -0.01em; }
p.page-sub { color: var(--ink-dim); font-size: 14px; margin: 0 0 24px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }

label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); margin: 14px 0 5px; }
label:first-child { margin-top: 0; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--surface-2);
  outline: none;
}
input:focus { border-color: var(--brand); }

button.primary {
  width: 100%; margin-top: 20px; background: var(--brand); color: #fff; border: none;
  border-radius: 8px; padding: 12px; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
button.primary:hover { filter: brightness(1.08); }
button.primary:disabled { opacity: 0.6; cursor: default; }

button.secondary {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}

.form-footer { text-align: center; font-size: 13px; color: var(--ink-dim); margin-top: 16px; }
.form-footer a { color: var(--brand-deep); font-weight: 600; text-decoration: none; }

.error-box { background: rgba(207,58,58,0.08); border: 1px solid var(--bad); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; color: var(--bad); margin-bottom: 14px; }
.success-box { background: rgba(18,148,111,0.08); border: 1px solid var(--good); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; color: var(--good); margin-bottom: 14px; }

.check-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.check-row:last-child { border-bottom: none; }
.check-row .reg {
  font-family: "DM Mono", monospace; font-weight: 600; font-size: 15px;
  background: var(--brand); color: #fff; padding: 3px 8px; border-radius: 5px; letter-spacing: 1px;
}
.check-row .meta { font-size: 12.5px; color: var(--ink-dim); margin-top: 3px; }
.check-row .type-pill {
  font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.check-row .type-pill.free,
.check-row .type-pill.basic { background: rgba(180,117,11,0.12); color: var(--warn); }
.check-row .type-pill.advanced { background: rgba(6,182,212,0.12); color: var(--brand-deep); }
.check-row .type-pill.full { background: rgba(18,148,111,0.12); color: var(--good); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-faint); font-family: "Space Grotesk", sans-serif; font-style: normal; }

/* ============ Reg plate badge (read-only, e.g. on the pricing page) ============ */
.reg-badge {
  display: inline-flex; align-items: stretch; height: 40px; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-sm); font-family: "DM Mono", monospace;
}
.reg-badge .gb {
  background: #10357A; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
  padding: 0 10px; display: flex; align-items: center; justify-content: center;
}
.reg-badge .plate {
  background: linear-gradient(180deg, #FFE066, #F4C81E); color: #14110A; font-weight: 600; font-size: 18px;
  letter-spacing: 0.06em; padding: 0 14px; display: flex; align-items: center;
}

/* ============ Pricing cards ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1150px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--brand); border-width: 1.5px; box-shadow: var(--shadow-md);
}
.pricing-card .tier-name { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.pricing-card .tier-tagline { font-size: 13px; color: var(--ink-dim); margin: 0 0 18px; line-height: 1.5; min-height: 40px; }
.pricing-card .tier-price { font-family: "Space Grotesk", sans-serif; font-size: 34px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.pricing-card .tier-price span { font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.pricing-card .tier-includes { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-deep); margin: 18px 0 10px; }
.pricing-card ul.tier-features { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.pricing-card ul.tier-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink); padding: 6px 0; line-height: 1.45; }
.pricing-card ul.tier-features li svg { flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; }
.pricing-card .tier-cta {
  width: 100%; background: var(--brand); color: #fff; border: none; border-radius: 10px;
  padding: 13px; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: filter 0.15s ease;
}
.pricing-card .tier-cta:hover { filter: brightness(1.08); }
.pricing-card .tier-cta:disabled { opacity: 0.6; cursor: default; }
.pricing-card .tier-badge {
  position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 999px;
}
.pricing-card .tier-message { font-size: 12.5px; color: var(--ink-dim); margin-top: 10px; min-height: 16px; text-align: center; }
