:root {
  --bg: #f1ebdf;
  --bg-strong: #e7dece;
  --paper: #fffdf8;
  --paper-soft: #f7f3ea;
  --ink: #132034;
  --ink-soft: #364152;
  --muted: #6a7280;
  --rule: #d7cebe;
  --navy: #162133;
  --navy-soft: #22324b;
  --blue-soft: #eef5ff;
  --blue-rule: #cadcf2;
  --emerald: #0f9f78;
  --amber: #d18011;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-strong) 0%, var(--bg) 32%, #f7f3ea 100%);
  font-family: Arial, sans-serif;
}

body.site-body {
  padding: 30px 18px;
}

a {
  color: inherit;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 26px rgba(19, 32, 52, 0.06);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 32px;
  border-bottom: 2px solid var(--rule);
}

.service-line {
  padding: 10px 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.brand-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.page-main {
  display: grid;
  gap: 24px;
  padding: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero h1,
.section-title {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1.06;
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  max-width: 18ch;
}

.hero.hero-full {
  grid-template-columns: 1fr;
}

.hero.hero-full h1 {
  max-width: none;
}

.hero.hero-full .lead {
  max-width: none;
}

.lead {
  margin: 18px 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

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

.button-primary:hover {
  background: var(--navy-soft);
}

.button-secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--rule);
}

.button-secondary:hover {
  background: var(--paper-soft);
}

.panel,
.feature-card,
.contact-card,
.detail-card,
.price-card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  padding: 20px;
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #e8e1d4;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.08) translateY(0);
  transform-origin: center center;
  animation: courthouseDrift 6s ease-in-out infinite alternate;
  will-change: transform;
}

.photo-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.panel-title {
  margin: 0 0 16px;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
}

.panel-copy,
.section-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.summary-list {
  display: grid;
  gap: 14px;
}

.summary-card {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.summary-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.summary-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-label {
  font-size: 15px;
  font-weight: 700;
}

.summary-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.summary-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.email-card {
  margin-top: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.email-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.email-row {
  display: flex;
  gap: 10px;
}

.email-row input {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.email-row input:focus {
  outline: none;
  border-color: var(--navy);
}

.helper-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.notice-band {
  border: 1px solid var(--blue-rule);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 18px 20px;
}

.notice-band strong {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.notice-band p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-title {
  font-size: 30px;
}

.section-copy {
  max-width: none;
}

.feature-grid,
.pricing-grid,
.contact-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

.feature-grid,
.pricing-grid,
.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pricing-footnote {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-footnote a {
  color: var(--ink-soft);
  text-decoration: underline;
}

.price-card--teaser {
  background: var(--paper-soft);
  border: 1px dashed var(--rule);
  opacity: 0.85;
}

.teaser-price {
  font-size: 26px !important;
  color: var(--muted) !important;
  letter-spacing: 0.02em;
}

.teaser-cta {
  margin-top: 20px;
}

.teaser-cta .button {
  display: inline-block;
  font-size: 13px;
  padding: 8px 16px;
}

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

.feature-card h3,
.contact-card h3,
.detail-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
}

.feature-card p,
.contact-card p,
.detail-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.price-card.is-highlight {
  background: #f8f3eb;
  border-color: var(--navy);
  border-width: 2px;
  color: var(--ink);
}

.price-card.is-highlight .plan-note,
.price-card.is-highlight .price-list,
.price-card.is-highlight .price-list li,
.price-card.is-highlight .plan-tag,
.price-card.is-highlight .plan-period {
  color: var(--ink-soft);
}

.plan-tag {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.plan-name {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
}

.plan-price {
  margin: 14px 0 4px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.plan-period,
.plan-note {
  color: var(--muted);
}

.plan-period {
  font-size: 14px;
}

.plan-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.plan-inquiry {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(15, 159, 120, 0.08);
  border: 1px solid rgba(15, 159, 120, 0.25);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.plan-inquiry a {
  color: var(--emerald);
  text-decoration: underline;
}

.price-card.is-highlight .plan-inquiry {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}

.price-card.is-highlight .plan-inquiry a {
  color: #fff;
}

.price-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.price-list li {
  position: relative;
  padding-left: 18px;
}

.price-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

.price-card.is-highlight .price-list li::before {
  color: var(--navy);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.mini-link,
.contact-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.mini-link:hover,
.contact-link:hover {
  text-decoration: underline;
}

.dashboard-shell {
  border: 1px solid #d7dde8;
  border-radius: 14px;
  overflow: hidden;
  background: #fbfcff;
  box-shadow: 0 10px 24px rgba(22, 33, 51, 0.06);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
}

.count-pill {
  display: grid;
  gap: 1px;
  min-width: 110px;
}

.count-pill strong {
  font-size: 29px;
  line-height: 1;
}

.count-pill span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  border: 1px solid transparent;
}

.tab-chip.is-active {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.topbar-side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
}

.topbar-chip.is-pro {
  background: rgba(15, 159, 120, 0.18);
  border-color: rgba(15, 159, 120, 0.32);
  color: #c7f3e6;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  min-height: 740px;
}

.dashboard-sidebar {
  background: #f6f7fa;
  border-right: 1px solid #dfe4eb;
  padding: 18px 16px 22px;
}

.sidebar-brand {
  padding: 12px 12px 14px;
  border-radius: 10px;
  background: #0f1a2a;
  color: #fff;
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.sidebar-brand span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-group {
  margin-top: 22px;
}

.sidebar-group h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.sidebar-item.is-active {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(20, 32, 51, 0.06);
}

.sidebar-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e8ebf1;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.dashboard-main {
  padding: 18px 18px 22px;
  background: #fff;
}

.dashboard-search {
  margin-bottom: 16px;
}

.dashboard-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  font-size: 14px;
  color: #364152;
  background: #f6f7fa;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dashboard-search-input:focus {
  border-color: #162133;
  background: #fff;
}

.dashboard-search-input::placeholder {
  color: #9aa2af;
}

.dashboard-label {
  margin-bottom: 14px;
  color: #8a92a0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.dashboard-record {
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: none;
}

.record-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4256a4;
  font-size: 12px;
  font-weight: 700;
}

.record-title {
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.record-subtitle,
.record-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.record-meta {
  margin-top: 8px;
  color: #8a92a0;
  font-size: 12px;
}

.record-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.action-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f6fa;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid #e3e8ef;
}

.dashboard-side {
  padding: 16px;
  background: #f8f9fc;
  border-left: 1px solid #dfe4eb;
}

.side-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #8a92a0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.signal-card {
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
}

.signal-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.signal-score {
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald);
}

.signal-score.is-amber {
  color: var(--amber);
}

.signal-rank {
  color: #9aa2af;
  font-size: 12px;
}

.score-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e9edf4;
  margin: 10px 0 12px;
  overflow: hidden;
}

.score-fill {
  display: block;
  height: 100%;
  width: 82%;
  background: var(--emerald);
}

.score-fill.is-amber {
  width: 67%;
  background: var(--amber);
}

.score-fill.is-amber-low {
  width: 55%;
  background: var(--amber);
}

.signal-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--navy);
}

.signal-copy,
.signal-foot {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.signal-note {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid #e4e8ef;
  color: #617088;
  font-size: 13px;
  line-height: 1.7;
  font-style: italic;
}

.signal-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8a92a0;
  font-size: 12px;
}

/* ── County selector ── */
.county-selector {
  position: relative;
  flex-shrink: 0;
}

.county-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}

.county-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.county-chevron {
  font-size: 10px;
  opacity: 0.65;
  margin-left: 2px;
}

.county-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.15);
  z-index: 200;
  overflow: hidden;
  padding: 6px 0;
}

.county-dropdown-label {
  padding: 7px 16px 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9aa2af;
}

.county-divider {
  height: 1px;
  background: #e8ebf1;
  margin: 4px 0;
}

.county-option {
  padding: 9px 16px;
  font-size: 13px;
  color: #364152;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: background 0.1s ease;
}

.county-option:hover {
  background: #f3f6fa;
}

.county-option.is-active {
  color: #162133;
  font-weight: 700;
  background: #eef5ff;
}

.callout-stack {
  display: grid;
  gap: 12px;
}

.sample-note {
  font-size: 12px;
  color: #8a92a0;
  text-align: center;
  margin: 0 0 4px;
  font-style: italic;
}

.signal-upgrade {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #0f1a2a;
  color: #fff;
}

.signal-upgrade-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.signal-upgrade p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.signal-upgrade-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: #0f9f78;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.signal-upgrade-btn:hover {
  background: #0d8f6c;
}

.footer {
  padding: 0 32px 28px;
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer-copy,
.footer-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.footer-note {
  font-size: 12px;
}

@keyframes courthouseDrift {
  0% {
    transform: scale(1.08) translateY(0);
  }
  100% {
    transform: scale(1.16) translateY(-24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-frame img {
    animation: none;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .pricing-grid,
  .contact-grid,
  .detail-grid,
  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dfe4eb;
  }

  .dashboard-side {
    border-left: 0;
    border-top: 1px solid #dfe4eb;
  }
}

@media (max-width: 760px) {
  body.site-body {
    padding: 14px 10px;
  }

  .service-line,
  .site-header,
  .page-main,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header,
  .section-heading,
  .footer-top,
  .dashboard-topbar {
    flex-direction: column;
    align-items: start;
  }

  .site-nav,
  .hero-actions,
  .email-row {
    width: 100%;
  }

  .nav-link,
  .button,
  .email-row input,
  .email-row button {
    width: 100%;
  }

  .email-row {
    flex-direction: column;
  }

  .topbar-side {
    margin-left: 0;
    justify-content: start;
  }
}
