:root {
  --bg: #031422;
  --panel: #0b1420;
  --surface: #0f1b2b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f6fb;
  --muted: #9fb3c6;
  --accent: #4f8bff;
  --accent-strong: #3ea5ff;
  --success: #4ade80;
  --warn: #fbbf24;
  font-family: "Inter", "SF Pro Display", -apple-system, system-ui, sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--family, "Inter", "SF Pro Display", -apple-system, system-ui, sans-serif);
}
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: rgba(9, 15, 25, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site-header > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
header.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 48px;
  flex-wrap: wrap;
}
header.site-header img {
  height: 70px;
  width: auto;
}
header.site-header img[src*="company-logo.png"] {
  height: 210px;
  border: 3px solid #ac2027;
}
nav a {
  margin-left: 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
main.content {
  padding: 40px clamp(20px, 4vw, 60px) 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 55px rgba(3, 6, 12, 0.65);
  margin-bottom: 32px;
}
.hero strong {
  color: var(--accent);
}
.hero-card img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.app-icon-card {
  width: 100%;
  min-height: 270px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(4, 10, 18, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  gap: 10px;
}
.app-icon {
  width: min(220px, 80%);
  max-width: 220px;
  border-radius: 22%;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(2, 5, 10, 0.6);
}
.card {
  background: var(--panel);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  box-shadow: 0 20px 35px rgba(2, 4, 10, 0.65);
}
.card h2,
.card h3 {
  margin-top: 0;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.grid li a {
  color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #031422;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.store-badge {
  display: inline-flex;
  margin-top: 16px;
}
.store-badge img {
  width: 246px;
  height: 82px;
  object-fit: contain;
  vertical-align: middle;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.store-row.center {
  justify-content: center;
}
.store-center {
  text-align: center;
}
.qr-badge {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c1522;
  padding: 6px;
  object-fit: contain;
}
footer.site-footer {
  padding: 30px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(3, 7, 14, 0.8);
  color: var(--muted);
}
footer.site-footer a {
  color: var(--accent);
}
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
code {
  background: #0a0f18;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text);
}
.explain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.layout-stack {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.product-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.product-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.product-icon {
  width: 54px;
  height: 54px;
  border-radius: 22%;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(2, 5, 10, 0.45);
}
.product-entry h3 {
  margin: 0;
}
.product-entry p {
  margin: 0;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.product-actions .btn {
  font-size: 0.75rem;
  padding: 10px 14px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.zip-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.zip-table th,
.zip-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.zip-table th {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.zip-table tbody tr:hover {
  background: rgba(79, 139, 255, 0.09);
}
.zip-table a {
  color: var(--accent);
}
.county-court-inline {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 600;
}
.court-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 10px 0 16px;
}
.court-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.court-card h3 {
  margin: 0 0 10px;
}
.court-card p {
  margin: 0 0 8px;
}
.court-card p:last-child {
  margin-bottom: 0;
}
.court-card a {
  color: var(--accent);
  word-break: break-word;
}
.contact-form-card {
  background: linear-gradient(180deg, rgba(79, 139, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-form-field {
  display: grid;
  gap: 6px;
}
.contact-form-field.full {
  grid-column: 1 / -1;
}
.contact-form-field label {
  font-weight: 600;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(3, 8, 16, 0.9);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}
.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.form-status {
  min-height: 1.2em;
  margin: 0;
  font-weight: 600;
}
.form-status.success {
  color: var(--success);
}
.form-status.error {
  color: #fca5a5;
}
.contact-form-note {
  margin: 0;
}
.hp-field {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.service-host-nav-logo {
  height: 92px !important;
  width: auto;
  max-width: min(460px, 62vw);
  border: 0 !important;
  border-radius: 8px;
  object-fit: contain;
}
.zip-section {
  scroll-margin-top: 92px;
}
.zip-section .back-link-row {
  margin-top: 16px;
}
.app-emblem {
  width: 100%;
  min-height: 270px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  gap: 8px;
}
.app-emblem.b4u {
  background: linear-gradient(135deg, #0d2238 0%, #1f4d75 60%, #2f87b8 100%);
}
.app-emblem.smime {
  background: linear-gradient(135deg, #102718 0%, #1b4930 55%, #24784d 100%);
}
.app-mark {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.app-sub {
  margin: 0;
  color: rgba(245, 246, 251, 0.85);
  font-weight: 600;
}
.back-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 1024px) {
  header.site-header {
    padding: 18px 24px;
  }
  header.site-header nav {
    gap: 22px;
  }
  header.site-header img[src*="company-logo.png"] {
    height: 150px;
  }
  main.content {
    padding: 28px 20px 56px;
  }
}

@media (max-width: 768px) {
  header.site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 14px;
    position: static;
  }
  header.site-header nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
  }
  header.site-header img[src*="company-logo.png"] {
    height: 108px;
    border-width: 2px;
  }
  header.site-header img:not([src*="company-logo.png"]) {
    height: 58px;
  }
  nav a {
    font-size: 1rem;
  }
  main.content {
    padding: 20px 14px 42px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 22px;
  }
  .hero-card img {
    border-radius: 16px;
  }
  .app-icon-card {
    min-height: 190px;
    padding: 16px;
    border-radius: 16px;
  }
  .app-icon {
    width: min(170px, 70vw);
    max-width: 170px;
  }
  .card {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .grid,
  .explain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .store-row {
    gap: 10px;
  }
  .store-badge img {
    width: min(220px, 78vw);
    height: auto;
  }
  .qr-badge {
    width: 72px;
    height: 72px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-entry {
    padding: 14px;
  }
  .zip-table {
    min-width: 520px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-form-actions .btn {
    width: 100%;
  }
  .service-host-nav-logo {
    height: 68px !important;
    max-width: min(86vw, 360px);
  }
  .product-actions,
  .back-link-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-actions .btn,
  .back-link-row .btn,
  .store-row .btn {
    width: 100%;
  }
  .layout-stack {
    gap: 10px;
  }
  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
  }
  footer.site-footer {
    padding: 22px 14px;
  }
}

@media (min-width: 1200px) {
  main.content {
    max-width: 1220px;
    padding: 48px 56px 90px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.result { font-weight: 700; margin-top: 12px; }
