:root {
  --bg: #e6edf5;
  --bg-alt: #f4f8fc;
  --surface: #ffffff;
  --border: #c2d0de;
  --text: #152535;
  --text-muted: #5a6f82;
  --primary: #1a5f8a;
  --primary-hover: #154a6d;
  --primary-soft: #d4e8f5;
  --accent: #2a7ab0;
  --success: #0f7a45;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(21, 37, 53, 0.12);
  --container: 1120px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 640px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 4rem;
  width: auto;
  max-width: min(440px, 92vw);
  object-fit: contain;
  object-position: left center;
}

.brand-logo--footer {
  height: 3.7rem;
  max-width: min(400px, 85vw);
  margin-bottom: 0.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:not(.btn):hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
}

.btn--ghost:hover {
  background: var(--primary-soft);
}

.btn--inverse {
  background: #fff;
  color: var(--primary);
}

.btn--inverse:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, rgba(26, 95, 138, 0.1) 0%, var(--bg) 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-trust li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure--dashboard {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
}

.hero-figure--phone {
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  width: 38%;
  max-width: 200px;
  z-index: 2;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(21, 37, 53, 0.25);
}

.hero-figure--phone img {
  aspect-ratio: 3 / 4;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(21, 37, 53, 0.06);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card--media {
  padding: 0;
  overflow: hidden;
}

.card--media h3,
.card--media p {
  padding-inline: 1.5rem;
}

.card--media h3 {
  padding-top: 1rem;
  margin-top: 0;
}

.card--media p {
  padding-bottom: 1.5rem;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.check-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.note {
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin: 0;
}

.app-showcase {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.app-showcase img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #154a6d 100%);
  color: #fff;
  padding: 3rem 0;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.cta-band p {
  margin: 0;
  opacity: 0.92;
  max-width: 32em;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.faq {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item dt {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.faq-item dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-alt {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Legal pages */
.page-legal {
  padding: 3rem 0 4rem;
}

.legal-back {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.legal-back a {
  text-decoration: none;
  color: var(--text-muted);
}

.legal-back a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.legal-prose h1 {
  font-size: 1.75rem;
  margin-top: 0;
}

.legal-prose h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}

.legal-prose h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-prose p,
.legal-prose ul {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.legal-prose ul {
  padding-left: 1.25rem;
}

.legal-prose a {
  color: var(--primary);
}

.legal-prose__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-prose__box {
  padding: 1rem 1.15rem;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--border);
  background: var(--surface-alt, #f4f8fb);
}

.legal-prose__notice {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--primary);
  padding-left: 0.85rem;
}

.compliance-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.compliance-disclaimer {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-figure--phone {
    width: 44%;
    max-width: 160px;
    right: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }
}
