:root {
  --bg: #f3efe7;
  --bg-deep: #e7ddd0;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: rgba(244, 238, 229, 0.92);
  --ink: #19263a;
  --ink-soft: #31435b;
  --muted: #607086;
  --line: rgba(25, 38, 58, 0.12);
  --line-strong: rgba(25, 38, 58, 0.2);
  --brand: #1f3f75;
  --brand-deep: #13284f;
  --accent: #c8a26a;
  --accent-soft: #efe2cb;
  --success: #2a6c5a;
  --danger: #9d4d42;
  --shadow: 0 22px 60px rgba(18, 31, 51, 0.12);
  --shadow-soft: 0 14px 32px rgba(18, 31, 51, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-offset: 92px;
  --fast: 180ms ease;
  --slow: 360ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(200, 162, 106, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(31, 63, 117, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 70%);
  opacity: 0.3;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  line-height: 1.08;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.9rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-deep);
  color: #fff;
  text-decoration: none;
  transition: top var(--fast);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(248, 245, 238, 0.95), rgba(248, 245, 238, 0.86));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(25, 38, 58, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.7rem 0.2rem 0.2rem;
  flex: 0 1 600px;
  max-width: min(100%, 600px);
  min-width: 0;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand-mark {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0.22rem;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: inset 0 0 0 1px rgba(25, 38, 58, 0.08);
}

.brand-copy {
  display: grid;
  gap: 0.04rem;
  align-content: center;
  min-width: 0;
}

.brand-copy strong {
  font-size: clamp(0.74rem, 0.18vw + 0.7rem, 0.84rem);
  letter-spacing: 0.05em;
  line-height: 1.02;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: break-word;
}

.brand-copy span {
  font-size: clamp(0.5rem, 0.12vw + 0.48rem, 0.6rem);
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.04;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: break-word;
}

.header-spacer {
  flex: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-deep);
  box-shadow: var(--shadow-soft);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav a {
  position: relative;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  transform: translateY(-1px);
}

.header-cta {
  margin-left: 0.35rem;
}

.page-main {
  padding: 2rem 0 4rem;
}

.page-hero {
  padding: 1.3rem 0 2.1rem;
}

.hero-shell,
.section-shell,
.contact-panel,
.form-panel,
.faq-item,
.legal-panel,
.review-card,
.statute-guidance,
.empty-state,
.redirect-shell {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-shell::before,
.section-shell::before,
.contact-panel::before,
.form-panel::before,
.faq-item::before,
.legal-panel::before,
.review-card::before,
.statute-guidance::before,
.empty-state::before,
.redirect-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(200, 162, 106, 0.18), transparent 72%);
  pointer-events: none;
}

.hero-shell {
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.hero-grid,
.two-column,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 63, 117, 0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 64ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-actions,
.button-row,
.inline-links,
.footer-link-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions,
.button-row {
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.trust-strip,
.feature-list,
.number-list,
.detail-list,
.faq-meta {
  display: grid;
  gap: 0.75rem;
}

.trust-strip {
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-strip li,
.mini-card,
.feature-card,
.timeline-card,
.stat-tile {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(25, 38, 58, 0.08);
  box-shadow: var(--shadow-soft);
}

.trust-strip strong,
.stat-tile strong {
  display: block;
  font-size: 1.25rem;
  color: var(--brand-deep);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.brand-plate {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 238, 229, 0.92));
  border: 1px solid rgba(25, 38, 58, 0.08);
}

.brand-plate::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 63, 117, 0.16), transparent 68%);
}

.hero-logo {
  width: min(100%, 380px);
  margin: 0 auto 1rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(25, 38, 58, 0.08);
}

.panel-note {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
}

.section-shell,
.contact-panel,
.form-panel,
.legal-panel,
.statute-guidance,
.empty-state,
.redirect-shell {
  padding: 1.6rem;
}

.page-section {
  padding: 1rem 0;
}

.section-intro {
  margin-bottom: 1.2rem;
}

.section-intro p,
.detail-list li,
.feature-card p,
.timeline-card p,
.legal-panel p,
.review-meta,
.small-note,
.support-copy {
  color: var(--ink-soft);
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.timeline-card,
.review-card {
  height: 100%;
  padding: 1.4rem;
}

.feature-card h3,
.timeline-card h3 {
  margin-bottom: 0.6rem;
}

.number-list {
  counter-reset: item;
  padding: 0;
  list-style: none;
}

.number-list li {
  position: relative;
  padding-left: 3rem;
}

.number-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 63, 117, 0.12);
  color: var(--brand-deep);
  font-weight: 700;
}

.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-tile span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-list,
.contact-steps {
  display: grid;
  gap: 0.95rem;
  padding: 0;
  list-style: none;
}

.contact-list li,
.contact-steps li {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(25, 38, 58, 0.08);
}

.form-panel form,
.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.control {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(25, 38, 58, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(25, 38, 58, 0.04);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.control:focus {
  outline: none;
  border-color: rgba(31, 63, 117, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 63, 117, 0.12);
  background: #fff;
}

textarea.control {
  min-height: 170px;
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  color: var(--ink-soft);
}

.consent-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.35rem;
}

.consent-row label {
  margin-bottom: 0;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.7rem;
}

.legal-panel ul {
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
}

.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card blockquote {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.review-meta strong {
  display: block;
  color: var(--brand-deep);
}

.status-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.empty-state {
  display: grid;
  gap: 0.85rem;
  place-items: start;
}

.empty-state.is-hidden,
.reviews-grid.is-hidden {
  display: none;
}

.table-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
}

.table-controls {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr) auto;
  margin-bottom: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.result-count {
  color: var(--ink-soft);
}

.result-count strong {
  color: var(--brand-deep);
}

.table-wrap {
  overflow: auto;
}

.statutes-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.statutes-table th,
.statutes-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(25, 38, 58, 0.08);
  vertical-align: top;
}

.statutes-table thead th {
  background: rgba(244, 238, 229, 0.96);
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.sort-button::after {
  content: "↕";
  color: var(--accent);
}

.sort-button[aria-sort="ascending"]::after {
  content: "↑";
}

.sort-button[aria-sort="descending"]::after {
  content: "↓";
}

.state-name {
  font-weight: 700;
  color: var(--brand-deep);
}

.statute-link,
.statute-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
}

.statute-link {
  text-decoration: none;
  background: rgba(31, 63, 117, 0.1);
  color: var(--brand-deep);
}

.statute-link:hover,
.statute-link:focus-visible {
  background: rgba(31, 63, 117, 0.18);
}

.statute-missing {
  background: rgba(25, 38, 58, 0.05);
  color: var(--muted);
}

.empty-row td {
  text-align: center;
  padding: 1.4rem;
  color: var(--ink-soft);
}

.site-footer {
  position: relative;
  margin-top: 2rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(25, 38, 58, 0.08);
  background:
    radial-gradient(circle at bottom right, rgba(31, 63, 117, 0.12), transparent 34%),
    rgba(249, 246, 241, 0.92);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 66px;
  height: 66px;
  padding: 0.45rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(25, 38, 58, 0.08);
}

.footer-nav,
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-nav a,
.legal-nav a,
.inline-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-nav a:hover,
.legal-nav a:hover,
.inline-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(25, 38, 58, 0.08);
}

.redirect-page .page-main {
  min-height: calc(100vh - var(--header-offset));
  display: grid;
  align-items: center;
}

.centered-copy {
  max-width: 48rem;
  text-align: center;
  margin: 0 auto;
}

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

.load-in {
  animation: rise-in 700ms var(--slow) both;
}

.load-in.delay-1 {
  animation-delay: 100ms;
}

.load-in.delay-2 {
  animation-delay: 180ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .brand {
    flex-basis: 540px;
    max-width: min(100%, 540px);
  }

  .hero-grid,
  .contact-grid,
  .footer-grid,
  .three-column,
  .reviews-grid,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .three-column .feature-card:last-child,
  .reviews-grid .review-card:last-child,
  .stat-grid .stat-tile:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding: 0.8rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-spacer {
    display: none;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 72px);
    gap: 0.45rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
  }

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

  .primary-nav a,
  .header-cta {
    width: 100%;
  }

  .hero-grid,
  .two-column,
  .contact-grid,
  .footer-grid,
  .three-column,
  .stat-grid,
  .reviews-grid,
  .form-grid,
  .table-controls,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .brand-copy strong {
    font-size: 0.72rem;
  }

  .brand-copy span {
    font-size: 0.5rem;
  }

  .hero-shell,
  .section-shell,
  .contact-panel,
  .form-panel,
  .legal-panel,
  .statute-guidance,
  .empty-state,
  .redirect-shell {
    border-radius: 26px;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.3rem, 10vw, 3.7rem);
  }

  .page-main {
    padding-top: 1.2rem;
  }

  .result-row {
    display: grid;
    justify-content: stretch;
  }

  .table-wrap {
    overflow: visible;
  }

  .statutes-table,
  .statutes-table thead,
  .statutes-table tbody,
  .statutes-table tr,
  .statutes-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .statutes-table {
    min-width: 0;
  }

  .statutes-table thead {
    display: none;
  }

  .statutes-table tbody {
    display: grid;
    gap: 0.95rem;
    padding: 0.95rem;
  }

  .statutes-table tr {
    padding: 0.25rem 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(25, 38, 58, 0.08);
    box-shadow: var(--shadow-soft);
  }

  .statutes-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(25, 38, 58, 0.08);
  }

  .statutes-table td:last-child {
    border-bottom: 0;
  }

  .statutes-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .empty-row td::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
