:root {
  --bg: #f4f6f9;
  --bg-rgb: 244, 246, 249;
  --surface: #fff;
  --text: #172b4d;
  --muted: #5e6c84;
  --accent: #0052cc;
  --accent-rgb: 0, 82, 204;
  --accent-soft: #deebff;
  --accent-soft-rgb: 222, 235, 255;
  --border: #dfe1e6;
  --max: 720px;
  --max-wide: 1080px;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  flex-shrink: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.05), 0 4px 14px rgba(9, 30, 66, 0.06);
  padding: 0.2rem 1.25rem;
  padding-top: max(0.2rem, env(safe-area-inset-top, 0px));
}

.site-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
}

.site-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav-toggle:hover {
  background: var(--accent-soft);
  border-color: #b3d4ff;
}

.site-nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.125rem;
}

.site-nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle[aria-expanded='true'] .site-nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav-toggle[aria-expanded='true'] .site-nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded='true'] .site-nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: var(--text);
}

.logo-link img {
  display: block;
  width: auto;
  height: 54px;
  max-width: min(250px, 74vw);
}

@media (min-width: 768px) {
  .logo-link img {
    height: 62px;
    max-width: 270px;
  }
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a[aria-current='page'] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.site-nav a:nth-child(n + 4) {
  padding: 0.3rem 0.55rem;
  color: #7a869a;
  font-size: 0.8125rem;
}

.site-nav a:nth-child(n + 4):hover,
.site-nav a:nth-child(n + 4)[aria-current='page'] {
  color: var(--accent);
}

.site-search {
  position: relative;
  flex: 0 1 16rem;
  max-width: 16rem;
  min-width: 0;
}

.site-search-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-search-field:focus-within,
.site-search.is-open .site-search-field {
  border-color: #b3d4ff;
  box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.12);
}

.site-search-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.site-search-icon svg {
  width: 100%;
  height: 100%;
}

.site-search-input {
  flex: 1;
  min-width: 0;
  width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
  text-overflow: ellipsis;
}

.site-search-input:focus {
  outline: none;
}

.site-search-input::placeholder {
  color: #97a0af;
}

.site-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: min(20rem, 60vh);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(9, 30, 66, 0.14);
}

.site-search.is-open .site-search-results {
  display: block;
}

.site-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.site-search-result:hover,
.site-search-result.is-active {
  background: var(--accent-soft);
}

.site-search-result-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.site-search-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

.site-search-result-type {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-search-result-parent,
.site-search-result-desc {
  min-width: 0;
}

.site-search-empty {
  padding: 0.75rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-header-inner {
    justify-content: flex-start;
    min-width: 0;
  }

  .site-header-inner .logo-link {
    flex-shrink: 0;
  }

  .site-header-inner .site-nav {
    margin-left: auto;
    flex-shrink: 0;
  }

  .site-header-inner .site-search {
    flex: 0 1 16rem;
    min-width: 2.75rem;
    max-width: 16rem;
    margin-left: 0.5rem;
  }

  .site-search-results {
    left: auto;
    right: 0;
    min-width: 18rem;
  }
}

@media (min-width: 768px) {
  .site-nav a:nth-child(4) {
    margin-left: 0.75rem;
    position: relative;
  }

  .site-nav a:nth-child(4)::before {
    content: '';
    position: absolute;
    left: -0.45rem;
    top: 50%;
    width: 1px;
    height: 1.1rem;
    background: var(--border);
    transform: translateY(-50%);
    pointer-events: none;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

main.main-wide {
  max-width: var(--max-wide);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background: url('assets/hero-pattern.svg') center / cover no-repeat;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    gap: 2rem;
  }
}

.hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4.5vw + 0.65rem, 2.125rem);
  line-height: 1.15;
}

.hero-lead,
.hero-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.0625rem;
  }
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.benefit-row {
  display: grid;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .benefit-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.78fr);
  }

  .benefit-row--reverse {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr);
  }

  .benefit-row--reverse .benefit-media {
    order: 2;
  }

  .benefit-row--reverse .benefit-copy {
    order: 1;
  }
}

.benefit-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
}

@media (min-width: 768px) {
  .benefit-copy {
    padding: 1.35rem 1.65rem;
  }
}

.benefit-media {
  overflow: hidden;
  background: #e8edf4;
}

.benefit-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 768px) {
  .benefit-media img {
    aspect-ratio: auto;
    min-height: 280px;
  }
}

.benefit-copy h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.0625rem, 2.5vw + 0.5rem, 1.25rem);
  line-height: 1.25;
}

.benefit-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.vision {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
}

.vision .hero-pattern {
  opacity: 0.05;
}

.vision-inner {
  position: relative;
}

.vision h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.125rem, 3vw + 0.5rem, 1.375rem);
  line-height: 1.25;
}

.vision p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border: 1px solid #b3d4ff;
  border-radius: 12px;
}

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

.home-cta a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.home-cta a:hover {
  text-decoration: underline;
}

.hero-carousel {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-carousel-viewport {
    min-height: 280px;
  }
}

.hero-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #e8edf4;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(9, 30, 66, 0.1);
}

.hero-carousel-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.hero-carousel-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.15);
}

.hero-carousel-arrow:hover {
  background: #fff;
}

.hero-carousel-arrow-prev {
  left: 0.5rem;
}

.hero-carousel-arrow-next {
  right: 0.5rem;
}

.hero-carousel-controls {
  margin-top: 0.75rem;
  text-align: center;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}

.hero-carousel-dots button {
  width: 0.625rem;
  height: 0.625rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #c1c7d0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-dots button.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.hero-carousel-dots button:focus-visible,
.hero-carousel-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 66, 0.82);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 3.5rem 3.75rem;
  box-sizing: border-box;
}

.lightbox-image {
  display: block;
  max-width: min(1200px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-arrow-prev {
  left: 1rem;
}

.lightbox-arrow-next {
  right: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transition: none;
  }
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.card-accent {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: 5rem;
  height: 5rem;
  opacity: 0.06;
  pointer-events: none;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

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

.card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

h1.page-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 4.5vw + 0.5rem, 1.75rem);
  line-height: 1.25;
}

.page-lead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.page-lead img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin: 0 0 0.75rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

a.link-external {
  color: var(--accent);
}

a.link-external::after {
  content: '';
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.22em;
  vertical-align: -0.06em;
  background-color: currentColor;
  opacity: 0.92;
  -webkit-mask: url('/assets/icons/external-link.svg') center / contain no-repeat;
  mask: url('/assets/icons/external-link.svg') center / contain no-repeat;
}

a.link-external:hover::after {
  opacity: 1;
}

.prose-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  max-width: 100%;
}

.prose table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0;
}

.prose > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
}

.site-footer {
  position: relative;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  padding: 1.75rem 1.25rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.site-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.site-footer-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 1.25rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer-contact {
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-footer-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(23, 43, 77, 0.1);
  transition: box-shadow 0.15s ease;
}

.site-footer-x:hover {
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.14);
  text-decoration: none;
}

.site-footer-x-logo {
  display: block;
  width: 0.9375rem;
  height: 0.9375rem;
}

@media (min-width: 640px) {
  .site-footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
  }

  .site-footer-group:not(:first-child) {
    padding-left: 2rem;
    border-left: 1px solid var(--border);
  }

  .site-footer-contact {
    gap: 0.375rem 1rem;
  }

  .site-footer-x {
    width: 2rem;
    height: 2rem;
  }

  .site-footer-x-logo {
    width: 0.875rem;
    height: 0.875rem;
  }
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.contact-box a {
  font-weight: 600;
}

.prose code {
  word-break: break-word;
  font-size: 0.875em;
}

/* Legal / Support / Privacy / Terms */
.legal-page {
  max-width: var(--max-wide);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-hero .hero-pattern {
  opacity: 0.06;
}

.legal-hero-inner {
  position: relative;
}

.legal-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 4.5vw + 0.5rem, 1.875rem);
  line-height: 1.2;
}

.legal-hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 40rem;
  line-height: 1.55;
}

.legal-meta {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.legal-meta a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.legal-meta a:hover {
  text-decoration: underline;
}

.legal-card code {
  font-size: 0.875em;
  word-break: break-word;
}

.legal-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.legal-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.legal-card h2 + h3 {
  margin-top: 0.75rem;
}

.legal-card p {
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul,
.legal-card ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.legal-card li {
  margin-bottom: 0.35rem;
}

.legal-card li:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-card--accent {
  background: var(--accent-soft);
  border-color: #b3d4ff;
}

.legal-email {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.legal-email:hover {
  text-decoration: underline;
}

.support-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.support-banner--success {
  background: #e3fcef;
  border: 1px solid #abf5d1;
  color: #006644;
}

.support-banner--error {
  background: #ffebe6;
  border: 1px solid #ffbdad;
  color: #bf2600;
}

.support-banner--error a {
  color: inherit;
  font-weight: 600;
}

.support-form {
  margin-top: 1rem;
}

.support-form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .support-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.support-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.support-field--full {
  grid-column: 1 / -1;
}

.support-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.support-required {
  color: var(--accent);
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.support-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.support-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.support-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.support-file-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.support-file-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.support-file-status {
  font-size: 0.8125rem;
  color: var(--muted);
}

.support-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.support-file-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--text);
}

.support-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.support-form-note {
  margin: 0.85rem 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.support-form-note a {
  color: var(--accent);
}

.support-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.support-submit:hover {
  background: #0747a6;
}

.support-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legal-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.legal-dl-item dt {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-dl-item dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* —— Mobile & small screens —— */
@media (max-width: 767px) {
  .site-header {
    padding: 0.2rem 1rem;
    padding-top: max(0.2rem, env(safe-area-inset-top, 0px));
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }

  .logo-link {
    justify-content: flex-start;
    grid-column: 1;
    grid-row: 1;
  }

  .logo-link img {
    height: 56px;
    max-width: min(250px, 88vw);
  }

  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    width: 100%;
    margin-left: 0;
    flex: none;
  }

  .site-nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
    padding: 0.35rem 0 0.15rem;
    margin-top: 0.15rem;
    border-top: 1px solid var(--border);
  }

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

  body.site-nav-open .site-content {
    overflow: hidden;
  }

  .site-nav a {
    flex: none;
    justify-content: flex-start;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: transparent;
    font-size: 0.9375rem;
  }

  .site-nav a:nth-child(-n + 3) {
    font-size: 0.9375rem;
  }

  .site-nav a:nth-child(n + 4) {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .site-nav a:nth-child(4) {
    margin-left: 0;
    margin-top: 0.25rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
  }

  .site-nav a:nth-child(4)::before {
    display: none;
  }

  main,
  main.main-wide {
    padding: 1.25rem 1rem 2.5rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .hero {
    padding: 1.15rem 0.85rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
  }

  .hero-inner {
    gap: 1.15rem;
  }

  .hero-copy p,
  .hero-lead {
    font-size: 0.9375rem;
  }

  .benefit-copy {
    padding: 1rem 1.1rem;
  }

  .benefit-media img {
    min-height: 200px;
  }

  .benefit-copy h2 {
    font-size: 1.0625rem;
  }

  .vision {
    padding: 1.15rem 1rem;
  }

  .home-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .hero-carousel {
    max-width: none;
  }

  .hero-carousel-viewport {
    min-height: 0;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
  }

  .hero-carousel-slide {
    object-fit: contain;
    object-position: center center;
  }

  .hero-carousel-arrow {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(23, 43, 77, 0.65);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    opacity: 0.9;
    touch-action: manipulation;
  }

  .hero-carousel-arrow-prev {
    left: 0.2rem;
  }

  .hero-carousel-arrow-next {
    right: 0.2rem;
  }

  .hero-carousel-dots button {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border-radius: 999px;
  }

  .hero-carousel-dots button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #c1c7d0;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .hero-carousel-dots button.is-active {
    transform: none;
  }

  .hero-carousel-dots button.is-active::after {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.25);
  }

  .feature-list {
    gap: 0.4rem;
  }

  .feature-list li {
    font-size: 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .site-footer {
    padding: 1.5rem 1rem max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .site-footer-group {
    gap: 0.5rem 1rem;
  }

  .meta {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .contact-box {
    padding: 1rem;
  }

  .page-lead {
    flex-wrap: wrap;
  }

  .legal-hero {
    padding: 1.15rem 1rem;
    border-radius: 10px;
  }

  .legal-card {
    padding: 1rem;
  }

  .prose h2 {
    font-size: 1.0625rem;
  }

  .prose > table {
    font-size: 0.8125rem;
  }

  .prose th,
  .prose td {
    padding: 0.45rem 0.5rem;
  }

  .lightbox-panel {
    padding: max(3.5rem, calc(env(safe-area-inset-top, 0px) + 2.75rem)) 0.5rem
      max(4.75rem, calc(env(safe-area-inset-bottom, 0px) + 3.75rem));
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
  }

  .lightbox-close {
    top: max(0.65rem, env(safe-area-inset-top, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .lightbox-arrow {
    top: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    transform: none;
    width: 3rem;
    height: 3rem;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .lightbox-arrow-prev {
    left: max(0.5rem, env(safe-area-inset-left, 0px));
  }

  .lightbox-arrow-next {
    right: max(0.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 380px) {
  .site-nav a {
    font-size: 0.8125rem;
    padding: 0.45rem 0.2rem;
  }
}

/* Feature & guide content pages */
.content-page {
  max-width: var(--max-wide);
}

.content-bluf {
  margin: 1.25rem 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border: 1px solid #b3d4ff;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.content-breadcrumb {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.content-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.content-breadcrumb a:hover {
  text-decoration: underline;
}

.content-toc {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.content-toc-label {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.content-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-toc-list li {
  margin: 0;
}

.content-toc-list a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.content-toc-list a:hover {
  background: var(--accent-soft);
  border-color: #b3d4ff;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  min-width: 0;
}

.content-sidebar-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
}

.content-sidebar-header {
  margin-bottom: 0.75rem;
}

.content-sidebar-hub {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.content-sidebar-hub:hover {
  text-decoration: underline;
}

.content-sidebar-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.content-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-sidebar-list li {
  margin: 0 0 0.35rem;
}

.content-sidebar-list li:last-child {
  margin-bottom: 0;
}

.content-sidebar-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.content-sidebar-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.content-sidebar-list .is-current .content-sidebar-link {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px #b3d4ff;
}

.content-sidebar-tag {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.content-sidebar-list .is-current .content-sidebar-tag {
  color: var(--accent);
}

@media (min-width: 960px) {
  .content-layout {
    grid-template-columns: 13.75rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .content-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

.content-media {
  margin: 0 0 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.content-media img {
  display: block;
  width: 100%;
  height: auto;
}

.content-media figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.content-media--compact {
  margin-top: 1rem;
}

.content-media--spaced-top {
  margin-top: 1.5rem;
}

.steps-list {
  margin: 0;
  padding-left: 1.25rem;
}

.steps-list li {
  margin: 0 0 0.85rem;
  padding-left: 0.25rem;
  line-height: 1.55;
}

.steps-list li:last-child {
  margin-bottom: 0;
}

.faq-list {
  margin: 0;
}

.faq-list-item {
  margin: 0 0 1.25rem;
}

.faq-list-item:last-child {
  margin-bottom: 0;
}

.faq-list dt {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.features-page {
  max-width: 1140px;
}

.feature-bluf {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border: 1px solid #b3d4ff;
  border-radius: 12px;
}

.feature-bluf-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
}

.feature-bluf-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-bluf p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.feature-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature-section-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent);
}

.feature-section-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.feature-intro-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .feature-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-panel-title {
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--accent-soft);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

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

.feature-workflow-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-workflow-step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 0.5rem;
  text-align: center;
}

.feature-workflow-step:not(:last-child)::after {
  content: '›';
  position: absolute;
  top: 1.4rem;
  right: -0.2rem;
  font-size: 1.35rem;
  line-height: 1;
  color: #c1c7d0;
  font-weight: 300;
  pointer-events: none;
}

.feature-workflow-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.45rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-app-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
}

.feature-workflow-step-icon .feature-app-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-workflow-step-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.feature-workflow-step-desc {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 520px) {
  .feature-workflow-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.5rem;
  }

  .feature-workflow-step {
    padding: 0;
  }

  .feature-workflow-step::after {
    display: none;
  }
}

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

.feature-audience-list {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-audience-list li {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.feature-audience-list li:last-child {
  margin-bottom: 0;
}

.feature-audience-list strong {
  color: var(--text);
}

.feature-catalog {
  margin-bottom: 0.25rem;
}

.feature-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-guide-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem 0.65rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-guide-item:hover {
  border-color: #b3d4ff;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.06);
}

.feature-guide-thumb-wrap {
  flex-shrink: 0;
  width: 5.75rem;
  height: 3.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.feature-guide-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-guide-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.feature-guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.feature-guide-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.feature-guide-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.feature-guide-arrow {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 600;
}

.feature-card-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-cta.content-cta {
  margin-top: 1.5rem;
}

.content-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.content-cta-actions a:not(.btn-primary) {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.content-cta-actions a:not(.btn-primary):hover {
  text-decoration: underline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0747a6;
  text-decoration: none !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid #b3d4ff;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.home-page {
  max-width: 1140px;
}

.home-hero--fullbleed {
  width: 100%;
  margin-bottom: 2.5rem;
}

.home-hero-inner--overlay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: clamp(24rem, 44vw, 36rem);
  padding: clamp(2.75rem, 6.5vw, 4.5rem) 1.5rem;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: var(--bg);
}

.home-hero-inner--overlay .home-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: var(--bg);
}

.home-hero-inner--overlay .home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.88;
  transform: scale(1.02);
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 18%,
      rgba(var(--accent-rgb), 0.1) 0%,
      rgba(var(--accent-rgb), 0) 68%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(var(--accent-soft-rgb), 0.38) 18%,
      rgba(var(--bg-rgb), 0.48) 38%,
      rgba(var(--bg-rgb), 0.22) 62%,
      rgb(var(--bg-rgb)) 100%
    );
}

.home-hero-inner--overlay .home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 40rem;
  padding: 1.5rem 2rem;
  border: none;
  box-shadow: none;
  background: transparent;
  isolation: isolate;
}

.home-hero-inner--overlay .home-hero-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(58rem, calc(100% + 14rem));
  height: calc(100% + 4rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(18px);
  background: radial-gradient(
    ellipse 94% 96% at 50% 50%,
    #fff 0%,
    #fff 28%,
    rgba(255, 255, 255, 0.97) 38%,
    rgba(255, 255, 255, 0.82) 52%,
    rgba(255, 255, 255, 0.48) 66%,
    rgba(255, 255, 255, 0.14) 78%,
    rgba(255, 255, 255, 0) 90%
  );
}

.home-hero-inner--overlay .home-hero-lead {
  max-width: 36rem;
}

.home-hero-inner--overlay .home-hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.home-hero-inner--overlay .home-hero-actions {
  justify-content: center;
}

.home-hero-badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.1);
}

.home-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw + 0.5rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.home-hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: #85b8ff;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
}

.home-hero-lead {
  margin: 0 0 1.4rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.62;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-hero-actions .btn-primary {
  padding: 0.68rem 1.4rem;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.28);
}

.home-hero-actions .btn-outline {
  padding: 0.62rem 1.15rem;
  font-size: 0.9375rem;
}

.home-hero-visual {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(9, 30, 66, 0.12);
  overflow: hidden;
  background: var(--surface);
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.home-features {
  margin-bottom: 2rem;
}

.home-feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.home-feature-card-head {
  padding: 1.15rem 1.15rem 0.85rem;
}

.home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.65rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.home-feature-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.home-feature-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
}

.home-feature-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.home-feature-media {
  margin-top: auto;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.home-feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.home-trust {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.home-trust-grid {
  display: grid;
  gap: 1.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .home-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.home-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.home-trust-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.home-trust-item strong {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text);
}

.home-trust-item strong a:not(.link-external) {
  color: inherit;
  text-decoration: none;
}

.home-trust-item strong a:not(.link-external):hover {
  color: var(--accent);
}

.home-trust-item a.link-external {
  color: var(--accent);
  text-decoration: none;
}

.home-trust-item a.link-external:hover {
  text-decoration: underline;
}

.home-trust-item > span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 599px) {
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-actions .btn-primary,
  .home-hero-actions .btn-outline {
    width: 100%;
  }
}

/* Blog */
.blog-index {
  padding-bottom: 2rem;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.blog-card {
  margin: 0;
}

.blog-card-link {
  display: block;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-card-link:hover {
  border-color: #b3d4ff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.blog-card-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-card-link h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text);
}

.blog-card-link p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.blog-card-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
