:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-raised: #fffcf7;
  --ink: #1c1915;
  --ink-soft: #5e584f;
  --line: #e3d9cc;
  --hover: rgba(28, 25, 21, 0.05);
  --brand: #004388;
  --brand-button: #004388;
  --brand-ink: #ffffff;
  --ok: #1f6b45;
  --warn: #8a4e08;
  --danger: #8d2b2b;
  --shadow: 0 12px 32px rgba(28, 25, 21, 0.06);
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 10px;
}

html.dark {
  color-scheme: dark;
  --paper: #171512;
  --paper-raised: #221f1b;
  --ink: #f4efe7;
  --ink-soft: #c9c0b4;
  --line: #3c362e;
  --hover: rgba(244, 239, 231, 0.06);
  --brand: #9ec2ef;
  --brand-button: #004388;
  --brand-ink: #ffffff;
  --ok: #8dceb0;
  --warn: #e2b56a;
  --danger: #c4473f;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
    var(--paper);
}

h1, h2, h3, .wp-block-heading {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 0 0 10px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }

p { margin: 0 0 12px; }

a { color: var(--brand); }

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--brand-button);
  color: var(--brand-ink);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 40;
  text-decoration: none;
}

.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 4px solid var(--brand-button);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.monogram,
.custom-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex: none;
}

.monogram {
  display: grid;
  place-items: center;
  background: var(--brand-button);
  color: var(--brand-ink);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.custom-logo-link { display: inline-flex; line-height: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-tagline {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}

.nav-toggle,
.theme-toggle,
.nav-backdrop {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }

.site-nav {
  display: none;
  flex-basis: 100%;
  order: 5;
}

body.nav-open .site-nav { display: block; }

.site-nav-list,
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 4px;
}

.site-nav-list a,
.footer-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.site-nav-list a:hover,
.footer-nav-list a:hover,
.site-nav-list .current-menu-item > a,
.footer-nav-list .current-menu-item > a {
  background: color-mix(in srgb, var(--brand) 14%, var(--paper-raised));
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(28, 25, 21, 0.35);
}

body.nav-open .nav-backdrop { display: block; }

.nv-page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.nv-page > * + * { margin-top: 18px; }

.nv-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nv-lead {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 40rem;
}

.wp-block-columns.nv-hero {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}

.wp-block-column {
  margin: 0 !important;
  min-width: 0;
}

.nv-mock-card,
.nv-card,
.nv-step,
.nv-offer,
.wp-block-column.nv-card,
.wp-block-column.nv-step,
.wp-block-column.nv-offer {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.nv-mock-card h2,
.nv-card h2,
.nv-card h3,
.nv-step h3,
.nv-offer h2 { margin-top: 8px; }

.wp-block-group.nv-title-row {
  margin: 0 0 12px;
}

.wp-block-group.nv-title-row > .wp-block-group__inner-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.wp-block-group.nv-title-row > .wp-block-group__inner-container > * {
  margin: 0;
}

.wp-block-group.nv-title-row :is(h2, h3, .wp-block-heading) {
  margin: 0;
}

.nv-mock {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.nv-mock li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.nv-mock li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 18%, var(--paper-raised));
  box-shadow: inset 0 0 0 2px var(--ok);
}

.nv-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--paper-raised));
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nv-icon {
  display: block;
  color: var(--brand);
}

.wp-block-columns {
  gap: 16px;
  margin-bottom: 0;
}

.wp-block-column > *:first-child { margin-top: 0; }
.wp-block-column > *:last-child { margin-bottom: 0; }

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.wp-block-button { margin: 0; }

.wp-block-button__link,
.nv-missing .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--brand-button);
  color: var(--brand-ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.wp-block-button__link:hover {
  background: color-mix(in srgb, var(--brand-button) 88%, #000);
  color: var(--brand-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 32%, var(--line));
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--hover);
  color: var(--ink);
}

.nv-offer-cloud {
  border-color: color-mix(in srgb, var(--brand-button) 55%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--paper-raised));
}

.wp-block-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 0 16px;
  margin: 0 0 10px;
}

.wp-block-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.wp-block-details p:last-child { margin-bottom: 14px; }

.nv-section > .wp-block-heading,
.nv-section > h2 { margin-bottom: 14px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
}

.nv-missing h1 { margin-bottom: 12px; }

.nv-missing p {
  color: var(--ink-soft);
  max-width: 36rem;
}

@media (min-width: 860px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 0 28px;
  }

  .nav-toggle,
  .nav-backdrop,
  body.nav-open .nav-backdrop { display: none; }

  .site-nav {
    display: block;
    flex: none;
    flex-basis: auto;
    order: 0;
  }

  .site-nav-list {
    display: flex;
    gap: 4px;
    padding: 0;
  }

  .theme-toggle { order: 2; }

  .wp-block-columns.nv-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: center;
    gap: 40px;
    padding-top: 28px;
  }

  .nv-page { padding-top: 18px; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 999px) {
  .wp-block-columns.nv-steps {
    flex-wrap: wrap;
  }

  .wp-block-columns.nv-steps > .wp-block-column {
    flex-basis: calc(50% - 8px) !important;
  }
}

@media (max-width: 781px) {
  .wp-block-columns.nv-grid,
  .wp-block-columns.nv-offers,
  .wp-block-columns.nv-hero {
    display: flex;
    flex-direction: column;
  }

  .wp-block-columns.nv-grid > .wp-block-column,
  .wp-block-columns.nv-offers > .wp-block-column,
  .wp-block-columns.nv-hero > .wp-block-column,
  .wp-block-columns.nv-steps > .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
