/* ── Index: Under Construction ── */
#construction-screen {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: #111210;
  font-family: var(--serif);
  align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: 2rem;
}
#construction-screen.visible { display: flex; }
.uc-logo { font-size: 1.5rem; color: #fff; margin-bottom: 3rem; letter-spacing: -0.01em; }
.uc-logo em { color: #e8a09a; font-style: normal; }
.uc-title { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.uc-title em { color: #e8a09a; font-style: italic; }
.uc-sub { font-family: var(--font); font-size: 1rem; color: rgba(255,255,255,0.5); font-weight: 300; max-width: 420px; line-height: 1.75; margin-bottom: 2.5rem; }
.uc-date { font-family: var(--font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 2.5rem; }
.uc-email { font-family: var(--font); font-size: 0.875rem; color: #e8a09a; text-decoration: none; }
.uc-email:hover { text-decoration: underline; }
.uc-divider { width: 40px; height: 1px; background: rgba(255,255,255,0.15); margin: 2.5rem auto; }
.uc-langs { display: flex; gap: 0.5rem; }
.uc-lang { background: none; border: 1px solid rgba(255,255,255,0.15); font-family: var(--font); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.4); cursor: pointer; padding: 0.3rem 0.6rem; border-radius: 3px; transition: all 0.15s; }
.uc-lang.active, .uc-lang:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); }

/* ── Override base styles for index (uses direct font names) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #111210;
  --paper: #f8f6f1;
  --card: #ffffff;
  --accent: #b5351f;
  --accent2: #2c5f8a;
  --muted: #7a7870;
  --border: #e2dfd8;
  --radius: 3px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --ts: 1;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

.nav-user {
  display: flex; align-items: center; gap: 0.75rem;
}
.nav-user-type { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; background: var(--border); color: var(--muted); padding: 0.1rem 0.4rem; border-radius: 3px; margin-left: 0.3rem; vertical-align: middle; }
.nav-user-name {
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
}
.btn-logout {
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 1.2rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.18s;
  border: 1px solid var(--border); color: var(--muted); background: none;
}
.btn-logout:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo em { color: var(--accent); font-style: normal; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.font-size-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  color: var(--muted); cursor: pointer; padding: 0.3rem 0.5rem;
  letter-spacing: 0.04em; transition: all 0.15s; white-space: nowrap;
}
.font-size-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-switcher { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang-btn {
  background: none; border: none;
  font-family: var(--font);
  font-size: 0.72rem; font-weight: 500;
  color: var(--muted); cursor: pointer;
  padding: 0.3rem 0.55rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.15s;
  border-right: 1px solid var(--border);
}
.lang-btn:last-child { border-right: none; }
.lang-btn.active { background: var(--ink); color: #fff; }
.nav-actions { display: flex; gap: 0.6rem; }
.btn {
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 1.2rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.18s; text-decoration: none; border: 1px solid transparent;
}
.btn-ghost { border-color: var(--border); color: var(--ink); background: none; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dashboard { border-color: var(--accent2); color: var(--accent2); background: none; font-family: var(--font); font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1.2rem; border-radius: var(--radius); cursor: pointer; transition: all 0.18s; text-decoration: none; border: 1px solid; }
.btn-dashboard:hover { background: var(--accent2); color: #fff; }
.btn-admin { background: var(--ink); color: #fff; font-family: var(--font); font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1.2rem; border-radius: var(--radius); cursor: pointer; transition: all 0.18s; text-decoration: none; border: 1px solid var(--ink); }
.btn-admin:hover { background: #333; }
.btn-contact { border-color: var(--muted); color: var(--muted); background: none; text-decoration: none; }
.btn-contact:hover { border-color: var(--accent2); color: var(--accent2); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #962b18; }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem,5vw,3rem) clamp(1rem,4vw,3rem) clamp(2.5rem,5vw,3.5rem);
  align-items: center;
}
.hero-left {}
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: calc(0.72rem * var(--ts)); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: #fdf0ed; border: 1px solid #f5cdc6;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  margin-bottom: 1rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1.25rem;
}
h1 em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: calc(1rem * var(--ts)); color: var(--muted);
  font-weight: 300; line-height: 1.75;
  max-width: 440px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-lg {
  font-family: var(--font); font-size: 0.9rem; font-weight: 500;
  padding: 0.8rem 1.8rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.18s; text-decoration: none;
  border: 1px solid transparent; display: inline-block;
}
.btn-lg.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-lg.primary:hover { background: #962b18; }
.btn-lg.ghost { border-color: var(--border); color: var(--ink); background: none; }
.btn-lg.ghost:hover { border-color: var(--ink); }

/* Hero right: user type cards */
.hero-violations { display: flex; flex-direction: column; gap: 0.75rem; }

/* ── FREE CASE BANNER ── */
.free-banner {
  background: linear-gradient(135deg, #1a3a2a 0%, #0f2b1c 100%);
  padding: 0 clamp(1rem,4vw,3rem);
}
.free-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: clamp(1rem,2vw,2rem);
  padding: 1.5rem 0;
}
.free-banner-icon {
  font-size: 2.2rem; flex-shrink: 0;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.free-banner-text { flex: 1; min-width: 0; }
.free-banner-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: #fff; line-height: 1.3; margin-bottom: 0.25rem;
}
.free-banner-title em { color: #6ee7a0; font-style: italic; }
.free-banner-sub {
  font-size: calc(0.88rem * var(--ts)); color: rgba(255,255,255,0.65);
  font-weight: 300; line-height: 1.5;
}
.free-banner-btn {
  flex-shrink: 0;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  background: #6ee7a0; color: #0f2b1c;
  padding: 0.75rem 1.8rem; border-radius: var(--radius);
  text-decoration: none; transition: all 0.18s;
  letter-spacing: 0.02em; white-space: nowrap;
}
.free-banner-btn:hover { background: #5dd68f; transform: translateY(-1px); }
@media (max-width: 600px) {
  .free-banner-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
  .free-banner-btn { width: 100%; text-align: center; }
}

/* ── HOW IT WORKS ── */
.steps-section {
  border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto; padding: clamp(2rem,5vw,3rem) clamp(1rem,4vw,3rem);
}
.section-eyebrow {
  font-size: calc(0.72rem * var(--ts)); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.75rem;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem 3rem; }
.step { position: relative; padding-left: 0; }
.step-num {
  font-family: var(--serif);
  font-size: calc(3rem * var(--ts)); color: var(--border); line-height: 1;
  margin-bottom: 0.75rem;
}
.step-title { font-weight: 600; font-size: calc(0.9rem * var(--ts)); margin-bottom: 0.4rem; }
.step-desc { font-size: calc(0.825rem * var(--ts)); color: var(--muted); font-weight: 300; line-height: 1.65; }
.step-connector {
  position: absolute; top: 1.5rem; right: -1rem;
  width: 2rem; height: 1px; background: var(--border);
}
.step:last-child .step-connector { display: none; }

/* ── PRICING ── */
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: 2rem; box-shadow: var(--shadow);
  position: relative; transition: border-color 0.2s;
}
.pricing-card.featured { border-color: var(--accent2); }
.pricing-card.featured::before {
  content: attr(data-badge);
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--accent2); color: #fff;
  font-size: calc(0.65rem * var(--ts)); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.2rem 0.6rem;
  border-radius: 0 0 3px 3px;
}
.pricing-amount sup { font-size: calc(1rem * var(--ts)); vertical-align: super; font-family: var(--font); font-weight: 500; }
.pricing-features li { font-size: calc(0.825rem * var(--ts)); color: var(--muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.pricing-features li::before { content: '\2014'; color: var(--accent); flex-shrink: 0; }
.btn-pricing:hover { border-color: var(--ink); }
.pricing-card.featured
.pricing-card.featured .btn-pricing:hover { background: #234e73; }

/* ── UPLOAD ── */
.upload-box {
  border: 1.5px dashed var(--border); border-radius: 4px;
  padding: 4rem 2rem; text-align: center; cursor: pointer;
  background: var(--card); position: relative;
  transition: all 0.2s; box-shadow: var(--shadow);
}
.upload-box:hover, .upload-box.dragover { border-color: var(--accent); background: #fdf9f8; }
.upload-icon { width: 44px; height: 44px; margin: 0 auto 1.25rem; color: var(--muted); }
.upload-meta strong { color: var(--ink); }
.package-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 4px;
  padding: 1.5rem 1.25rem; text-align: center; cursor: pointer; transition: all 0.18s; position: relative; }
.package-card:hover { border-color: var(--accent2); box-shadow: var(--shadow); }
.package-card.best-value { border-color: var(--accent2); }
.package-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent2); color: #fff; font-size: calc(0.65rem * var(--ts)); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.package-qty { font-family: var(--serif); font-size: calc(2rem * var(--ts)); font-weight: 600; line-height: 1; }
.package-qty-label { font-size: calc(0.72rem * var(--ts)); color: var(--muted); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; margin-top: 0.2rem; }
.package-price { font-size: calc(1.25rem * var(--ts)); font-weight: 600; color: var(--ink); }
.package-per { font-size: calc(0.75rem * var(--ts)); color: var(--muted); margin-top: 0.2rem; }
.package-btn { margin-top: 1.25rem; width: 100%; padding: 0.6rem; background: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.18s; color: var(--ink); }
.package-card:hover .package-btn, .package-card.best-value .package-btn { background: var(--accent2); color: #fff; border-color: var(--accent2); }
@media (max-width: 600px) { }
    .file-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.file-item { display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.85rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: calc(0.82rem * var(--ts)); }
.file-item-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.file-item-name span.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item-size { color: var(--muted); font-size: calc(0.75rem * var(--ts)); flex-shrink: 0; margin-left: 0.4rem; }
.file-remove { background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0 0.25rem; transition: color 0.15s; flex-shrink: 0; }
.file-remove:hover { color: var(--accent); }
#uploadActions { margin-top: 1rem; }
.btn-upload-submit:hover { background: #9a2c19; }
.btn-upload-submit:disabled { background: var(--muted); cursor: not-allowed; }

/* ── MODAL ── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(17,18,16,0.55); z-index: 200;
  align-items: flex-start; justify-content: center;
  backdrop-filter: blur(3px);
  overflow-y: auto; padding: 2rem 1rem;
}
.overlay.open { display: flex; }
.modal {
  background: var(--card); padding: 2.5rem;
  width: 100%; max-width: 460px; border-radius: 4px;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: rise 0.22s ease; margin: auto;
}
@keyframes rise {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close { position:absolute; top:1rem; right:1.25rem; background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--muted); line-height:1 }
.modal-close:hover { color:var(--ink); }
.modal h2 {
  font-family: var(--serif); font-size: calc(1.6rem * var(--ts));
  margin-bottom: 0.25rem; letter-spacing: -0.01em;
}
.modal-sub { font-size: calc(0.85rem * var(--ts)); color: var(--muted); margin-bottom: 2rem; font-weight: 300; }

.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: var(--font); font-size: calc(0.875rem * var(--ts)); font-weight: 500;
  padding: 0.5rem 1rem; cursor: pointer; color: var(--muted);
  margin-bottom: -1px; transition: all 0.18s;
}
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }

.form-panel { display: none; }
.form-panel.active { display: block; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.4rem; color: var(--ink); text-transform: uppercase; }
.field input, .field select {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.9rem;
  color: var(--ink); background: var(--paper);
  outline: none; transition: border-color 0.18s;
}
.field input:focus, .field select:focus { border-color: var(--ink); background: #fff; }
.field select { cursor: pointer; }

/* User type selector */
.type-option { display: none; }
.type-label {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem; padding: 0.75rem 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: center; transition: all 0.15s;
  font-size: 0.78rem; font-weight: 500; color: var(--muted);
}
.type-label .type-icon { font-size: 1.25rem; }
.type-option:checked + .type-label { border-color: var(--accent2); color: var(--accent2); background: #f0f5fa; }

/* Company fields (shown for fleet) */

.btn-submit {
  width: 100%; padding: 0.8rem; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; margin-top: 0.5rem; transition: background 0.18s;
}
.btn-submit:hover { background: #962b18; }
.reg-autocomplete {
  position:absolute; top:100%; left:0; right:0; background:#fff;
  border:1px solid var(--border); border-top:none;
  border-radius:0 0 4px 4px; z-index:300;
  max-height:180px; overflow-y:auto; box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.reg-autocomplete-item {
  padding:.45rem .75rem; cursor:pointer; border-bottom:1px solid #f0f0f0; font-size: calc(.82rem * var(--ts)); color:var(--ink);
}
.reg-autocomplete-item:last-child { border-bottom:none; }
.reg-autocomplete-item:hover { background:#f7f7f7; }
.reg-autocomplete-item small { color:var(--muted); font-size: calc(.72rem * var(--ts)); display:block; }
.reg-btn-sm:hover { background:var(--accent); color:#fff; border-color:var(--accent); }

/* ── INVOICE PREVIEW ── */
.invoice-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(17,18,16,0.7); z-index: 300;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.invoice-overlay.open { display: flex; }
.invoice-modal {
  background: #fff; width: 100%; max-width: 560px;
  border-radius: 4px; box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  animation: rise 0.25s ease; overflow: hidden;
}
.invoice-header {
  background: var(--ink); color: #fff;
  padding: 1.75rem 2rem; display: flex; justify-content: space-between; align-items: flex-start;
}
.invoice-header h3 { font-family: var(--serif); font-size: calc(1.4rem * var(--ts)); font-weight: 400; }
.invoice-header .inv-num { font-size: calc(0.8rem * var(--ts)); opacity: 0.6; margin-top: 0.2rem; }
.invoice-logo { font-family: var(--serif); font-size: calc(1rem * var(--ts)); }
.invoice-logo em { color: #e8a09a; font-style: normal; }
.invoice-body { padding: 2rem; }
.inv-parties { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.5rem; margin-bottom: 2rem; }
.inv-party-label { font-size: calc(0.7rem * var(--ts)); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.inv-party-name { font-weight: 600; font-size: calc(0.9rem * var(--ts)); margin-bottom: 0.15rem; }
.inv-party-detail { font-size: calc(0.8rem * var(--ts)); color: var(--muted); line-height: 1.6; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.inv-table th { font-size: calc(0.7rem * var(--ts)); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 0 0.5rem; border-bottom: 1px solid var(--border); }
.inv-table th:last-child, .inv-table td:last-child { text-align: right; }
.inv-table td { font-size: calc(0.85rem * var(--ts)); padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.inv-totals { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; margin-bottom: 2rem; }
.inv-total-row { display: flex; gap: 3rem; font-size: calc(0.85rem * var(--ts)); }
.inv-total-row.total { font-weight: 600; font-size: calc(1rem * var(--ts)); padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.15rem; }
.inv-total-label { color: var(--muted); }
.inv-footer-note { font-size: calc(0.75rem * var(--ts)); color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; }
.inv-actions { display: flex; gap: 0.75rem; padding: 0 2rem 2rem; }
.inv-btn {
  flex: 1; padding: 0.7rem; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.18s; border: 1px solid var(--border);
}
.inv-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.inv-btn.primary:hover { background: #962b18; }
.inv-btn.ghost { background: none; color: var(--ink); }
.inv-btn.ghost:hover { border-color: var(--ink); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(64px);
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; z-index: 400;
  transition: transform 0.28s ease; white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--accent); }
.toast.success { background: #1e7a3e; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
  padding: 2rem clamp(1rem,4vw,3rem);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; text-align: center;
  font-size: calc(0.78rem * var(--ts)); color: var(--muted);
}
.footer-note { font-size: calc(0.78rem * var(--ts)); color: var(--muted); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: calc(0.78rem * var(--ts)); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: calc(0.75rem * var(--ts)); color: var(--muted); opacity: 0.7; }

/* ── Terms acceptance modal ── */
.terms-overlay{display:none;position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.55);align-items:center;justify-content:center}
.terms-overlay.open{display:flex}
.terms-modal{background:var(--surface,#f0ede6);border-radius:10px;max-width:700px;width:95%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 8px 32px rgba(0,0,0,.2)}
.terms-modal-header{padding:1.5rem 1.5rem 1rem;border-bottom:1px solid var(--border,#e2dfd8)}
.terms-modal-header h2{margin:0 0 .4rem;font-family:var(--font);font-size:1.3rem;color:var(--text,#111)}
.terms-modal-header p{margin:0;font-size:.85rem;color:var(--muted,#7a7870);line-height:1.5}
.terms-lang-bar{display:flex;gap:.3rem;margin-top:.8rem}
.terms-lang-btn{border:1px solid var(--border2,#d4d0c8);background:none;font-family:var(--font-mono);font-size:.7rem;font-weight:600;padding:.25rem .6rem;border-radius:3px;cursor:pointer;color:var(--muted2,#5a5850)}
.terms-lang-btn.active{background:var(--accent,#b5351f);color:#fff;border-color:var(--accent,#b5351f)}
.terms-version-badge{display:inline-block;font-family:var(--font-mono);font-size:.7rem;font-weight:600;background:rgba(181,53,31,.1);color:var(--accent,#b5351f);padding:.15rem .5rem;border-radius:3px;margin-left:.5rem}
.terms-diff-box{flex:1;overflow-y:auto;padding:1rem 1.5rem;font-family:var(--font-mono);font-size:.78rem;line-height:1.7}
.diff-added{background:rgba(40,180,80,.12);color:#1e6e36;padding:.1rem .4rem;border-radius:2px;margin:.1rem 0}
.diff-removed{background:rgba(220,60,40,.1);color:#a52a1a;padding:.1rem .4rem;border-radius:2px;margin:.1rem 0;text-decoration:line-through}
.diff-same{color:var(--muted,#7a7870);padding:.1rem .4rem}
.terms-modal-footer{padding:1rem 1.5rem 1.5rem;border-top:1px solid var(--border,#e2dfd8);display:flex;flex-direction:column;gap:.8rem}
.terms-cb-row{display:flex;align-items:flex-start;gap:.5rem;font-size:.82rem;color:var(--text,#111);cursor:pointer}
.terms-cb-row input{margin-top:.2rem;accent-color:var(--accent,#b5351f)}
.terms-btn-row{display:flex;gap:.6rem;justify-content:flex-end}
.terms-btn-accept{background:var(--accent,#b5351f);color:#fff;border:none;font-family:var(--font-mono);font-size:.78rem;font-weight:600;padding:.5rem 1.2rem;border-radius:4px;cursor:pointer;transition:opacity .12s}
.terms-btn-accept:hover:not(:disabled){opacity:.85}
.terms-btn-accept:disabled{opacity:.45;cursor:not-allowed}
.terms-btn-logout{background:none;border:1px solid var(--border2,#d4d0c8);color:var(--muted2,#5a5850);font-family:var(--font-mono);font-size:.78rem;font-weight:500;padding:.5rem 1.2rem;border-radius:4px;cursor:pointer;transition:all .12s}
.terms-btn-logout:hover{border-color:var(--muted,#7a7870);color:var(--text,#111)}

/* ── Cookie consent banner ── */
.ck-bar{display:none;position:fixed;bottom:0;left:0;right:0;z-index:9999;background:var(--surface,#f0ede6);border-top:1px solid var(--border,#e2dfd8);padding:.7rem clamp(1rem,4vw,3rem);align-items:center;gap:.75rem;flex-wrap:wrap;font-family:var(--font);font-size:.82rem;color:var(--text,#111);box-shadow:0 -2px 8px rgba(0,0,0,.06)}
.ck-bar .ck-text{flex:1;min-width:200px;line-height:1.5}
.ck-bar .ck-btns{display:flex;gap:.5rem;flex-shrink:0}
.ck-bar .ck-accept{background:var(--accent,#b5351f);color:#fff;border:none;font-family:var(--font-mono);font-size:.72rem;font-weight:600;padding:.4rem .85rem;border-radius:3px;cursor:pointer;transition:opacity .12s}
.ck-bar .ck-accept:hover{opacity:.85}
.ck-bar .ck-necessary{background:none;border:1px solid var(--border2,#d4d0c8);color:var(--muted2,#5a5850);font-family:var(--font-mono);font-size:.72rem;font-weight:500;padding:.4rem .85rem;border-radius:3px;cursor:pointer;transition:all .12s}
.ck-bar .ck-necessary:hover{border-color:var(--muted,#7a7870);color:var(--text,#111)}

/* ── VIOLATION TYPE LINKS ── */
.violation-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card,#fff); border: 1px solid var(--border);
  border-radius: var(--radius,6px); padding: 1rem 1.25rem;
  box-shadow: var(--shadow,0 1px 3px rgba(0,0,0,.06));
  transition: border-color .2s, box-shadow .2s;
}
.violation-card:hover {
  border-color: var(--accent,#b5351f);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  text-decoration: none;
}
.violation-header { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.violation-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.violation-title { font-weight: 600; font-size: calc(0.9rem * var(--ts)); color: var(--ink); }
.violation-desc { font-size: calc(0.78rem * var(--ts)); color: var(--muted); font-weight: 300; line-height: 1.55; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 1.25rem; }
  .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem 2.5rem; gap: 2rem; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step-connector { display: none; }
  .steps-section, .pricing-section,
  footer { padding: 1.25rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 600px) {
  .hero-auth-btn { display: none; }
  nav { padding: 0 1rem; }
  .hero { grid-template-columns: 1fr; padding: 2.5rem 1rem 2rem; gap: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-section, .pricing-section,
  .inv-parties { grid-template-columns: 1fr; }
  footer { padding: 1rem; }
}
@media (max-width: 400px) {
  nav { padding: 0 .75rem; }
  .hero { padding: 2rem .75rem 1.75rem; }
  .steps-section, .pricing-section,
}
/* ── inline-style migration ── */
#uc-preview-wrap { margin-top: 2rem; }
#ucPreviewToggle { background: none; border: none; color: rgba(255,255,255,.15); font-size: 1rem; cursor: pointer; letter-spacing: .15em; }
#uc-preview-input { margin-top: .75rem; }
.uc-input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.uc-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff; }
#uc-preview-err { font-family: var(--font); font-size: .75rem; color: #e8a09a; margin-top: .4rem; }
.login-forgot { text-align: center; margin-top: .6rem; }
#forgotPwLink { font-size: .78rem; color: var(--primary); text-decoration: none; font-family: var(--font); }
.login-register-cta { text-align: center; margin-top: .8rem; font-size: .82rem; font-family: var(--font); }
.login-register-cta a { color: var(--primary); font-weight: 600; text-decoration: none; }
.passkey-hint { font-size: .85rem; color: var(--muted); text-align: center; margin-bottom: 1rem; }
.btn-passkey { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.auth-divider { display:flex; align-items:center; gap:.6rem; margin:.8rem 0; color:var(--muted); font-size:.78rem; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:var(--border,#ddd); }
.btn-itsme { display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; padding:.7rem; background:#000; color:#fff; border:none; border-radius:var(--radius,3px); font-size:.93rem; font-weight:600; font-family:var(--font); text-decoration:none; cursor:pointer; transition:background .15s; }
.btn-itsme:hover { background:#222; }
.btn-itsme img { flex-shrink:0; }
.itsme-error-msg { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c6c6; border-radius: var(--radius, 3px); padding: .6rem .8rem; font-size: .85rem; margin-bottom: .8rem; }
.recovery-form { margin-top: .8rem; }
.recovery-form.hidden { display: none; }
.btn-secondary { background: var(--surface, #f4f4f4); color: var(--ink, #111); border: 1px solid var(--border, #ddd); width: 100%; padding: .6rem; font-size: .88rem; font-weight: 500; border-radius: var(--radius, 3px); cursor: pointer; transition: all .15s; font-family: var(--font); }
.btn-secondary:hover { border-color: var(--ink, #111); }
.cookie-info-link { color: var(--accent); text-decoration: underline; }
.idx-diff-empty { color: var(--muted); padding: 1rem; }
.idx-pkg-detail { font-size: .7rem; color: var(--muted); margin: .4rem 0 .1rem; line-height: 1.5; text-align: center; }

/* Hamburger, collapsed nav, and mobile rules are all in global-nav.css */
.nav-row{display:contents}
