:root {
  color-scheme: light;
  --ink: #171c1f;
  --muted: #687174;
  --line: #e1e4df;
  --paper: #ffffff;
  --canvas: #f7f6f1;
  --cream: #fbfaf6;
  --black: #1f211d;
  --night: #1b1f1d;
  --blue: #1f6f8b;
  --blue-dark: #12465d;
  --green: #287b62;
  --green-soft: #eaf4ef;
  --gold: #d4a642;
  --gold-soft: #fff5da;
  --amber: #9b6a17;
  --amber-soft: #fff4dc;
  --red-soft: #fdebea;
  --shadow: 0 18px 50px rgba(33, 38, 35, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(225, 228, 223, 0.88);
  background: rgba(251, 250, 246, 0.93);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--night);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 33, 29, 0.16);
}

.brand h1 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--green-soft);
  color: var(--green);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 52px;
}

.workspace,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.matching-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 18px;
}

.profile-card,
.match-preview,
.contact-card {
  border: 1px solid #d6e0eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(23, 33, 43, 0.06);
}

.profile-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 24px);
}

.profile-heading {
  display: flex;
  gap: 12px;
  align-items: start;
  margin-bottom: 4px;
}

.profile-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.profile-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.search-badge,
.preview-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #e9f2ff;
}

.search-badge::before,
.preview-icon::before {
  width: 15px;
  height: 15px;
  border: 3px solid var(--black);
  border-radius: 999px;
  content: "";
}

.search-badge::after,
.preview-icon::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--black);
  transform: rotate(45deg);
  content: "";
}

.match-preview {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: clamp(22px, 4vw, 42px);
  border-style: dashed;
  text-align: center;
}

.match-preview h2 {
  margin-top: 16px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.match-preview p {
  max-width: 480px;
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.preview-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.preview-icon.active {
  background: var(--green-soft);
}

.match-summary {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #d6e0eb;
  border-radius: 12px;
  background: #fff;
}

.match-summary strong {
  font-size: 2rem;
  line-height: 1;
}

.match-summary span {
  color: var(--muted);
  font-weight: 800;
}

.mini-match-list {
  display: grid;
  width: 100%;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.mini-match-list li {
  padding: 12px;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  background: #fff;
}

.mini-match-list span {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
}

.wide-btn {
  width: 100%;
}

.results-section {
  margin-top: 26px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: flex-end;
}

.result-actions label {
  min-width: 160px;
}

.search-panel,
.insight-panel,
.tool-section,
.directory-panel,
.town-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: clamp(18px, 3vw, 28px);
}

.panel-heading,
.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

h2 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

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

.hero,
.page-hero {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 7vw, 82px);
  align-items: center;
  min-height: 520px;
  margin-inline: calc(50% - 50vw);
  padding: clamp(52px, 8vw, 108px) max(24px, calc((100vw - 1200px) / 2)) clamp(48px, 7vw, 86px);
  border-radius: 0;
  background: var(--night);
  color: #f7f6f1;
}

.hero-copy h2,
.page-hero h2 {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 5.7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy h2 {
  color: #faf8f1;
}

.hero-copy h2 span {
  display: block;
  color: #d8ede6;
  font-style: italic;
  font-weight: 500;
}

.hero-copy p,
.page-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
}

.hero-copy p {
  color: rgba(250, 248, 241, 0.82);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f3eb;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: none;
}

.hero-pill span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.hero .eyebrow {
  margin-top: 26px;
  color: #9ed6c6;
}

.hero .button-row {
  margin-top: 26px;
}

.hero-checks {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-checks li {
  position: relative;
  padding-left: 28px;
  color: rgba(250, 248, 241, 0.9);
  font-weight: 650;
}

.hero-checks li::before,
.match-list article > span {
  position: absolute;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  content: "";
}

.hero-checks li::after,
.match-list article > span::after {
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(40deg);
  content: "";
}

.demo-btn {
  min-width: 210px;
  border-width: 1px;
  border-radius: 999px;
}

.play-dot {
  width: 0;
  height: 0;
  margin-right: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  text-decoration: none;
}

.trust-row {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 24px;
}

.trust-row span {
  position: relative;
  padding-left: 22px;
  color: #55677a;
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-row span::before {
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  content: "";
}

.hero-visual {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #30332d;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.visual-top {
  display: flex;
  gap: 6px;
}

.visual-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8534f;
}

.visual-top span:nth-child(2) {
  background: #d5a13a;
}

.visual-top span:nth-child(3) {
  background: #eac66f;
}

.visual-search,
.visual-card,
.visual-grid div,
.visual-success {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.visual-search {
  padding: 12px;
  color: #f5f3eb;
  font-weight: 750;
}

.visual-card {
  padding: 14px;
}

.visual-card p {
  margin: 6px 0 0;
  color: rgba(250, 248, 241, 0.72);
  line-height: 1.45;
}

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

.visual-grid div {
  padding: 12px;
}

.visual-grid span {
  display: block;
  margin-top: 5px;
  color: #9ed6c6;
  font-weight: 800;
}

.visual-success {
  padding: 13px 14px;
  border-color: rgba(212, 166, 66, 0.45);
  background: rgba(212, 166, 66, 0.18);
  color: #ffe6a3;
  font-weight: 800;
}

.page-hero {
  margin-top: 34px;
  padding: clamp(24px, 5vw, 54px) 0;
  background: transparent;
  border-color: transparent;
}

.page-hero h2 {
  max-width: 860px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.stats-section,
.card-grid,
.proof-strip,
.plans,
.story-grid,
.faq-list,
.steps-strip,
.explain-section {
  margin-top: 22px;
}

.home-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-metric {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
}

.feature-metric strong {
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  font-weight: 900;
  color: var(--black);
}

.feature-metric p {
  display: none;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 30px clamp(20px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.steps-strip article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.steps-strip article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.steps-strip h3 {
  font-size: 1.05rem;
}

.steps-strip p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.card-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.feature-card,
.story-card,
.plan-card,
.form-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(23, 33, 43, 0.06);
}

.feature-card,
.story-card {
  padding: 20px;
}

.feature-card {
  color: inherit;
  text-decoration: none;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 111, 139, 0.38);
}

.feature-card h3,
.story-card h3 {
  margin-top: 12px;
  font-size: 1.12rem;
}

.feature-card p,
.story-card p,
.plan-card li,
.faq-item p,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.proof-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid #c9ded4;
  border-radius: 8px;
  background: #eaf4ef;
}

.proof-strip h2 {
  margin-top: 4px;
}

.proof-strip p {
  margin: 0;
  color: #255846;
  line-height: 1.55;
}

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

.contact-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.contact-card,
.team-card {
  padding: clamp(20px, 3vw, 28px);
}

.contact-card h3,
.team-card h3 {
  margin-top: 14px;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.contact-card p,
.contact-note p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-card a,
.contact-note a {
  overflow-wrap: anywhere;
  text-decoration: none;
}

.team-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.team-copy {
  display: grid;
  gap: 4px;
}

.team-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  overflow: hidden;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-photo span {
  color: var(--muted);
  font-weight: 800;
}

.team-email {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.team-email:hover {
  border-color: rgba(31, 111, 139, 0.38);
  transform: translateY(-1px);
}

.contact-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid #c9ded4;
  border-radius: 8px;
  background: #eaf4ef;
}

.contact-note h2 {
  margin-top: 4px;
}

.contact-note p {
  margin: 0;
  color: #255846;
}

.plan-card {
  padding: 22px;
}

.featured-plan {
  border-color: #9db7f5;
  background: #f7fbff;
}

.price {
  margin: 14px 0;
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 900;
}

.price-panel h2 {
  margin-top: 14px;
}

.price-line {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d6e0eb;
  border-radius: 12px;
  background: #fff;
}

.explain-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 82px) 0;
}

.explain-section h2 {
  max-width: 560px;
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 0.96;
}

.explain-section > div > p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.match-list {
  display: grid;
  gap: 12px;
  max-width: 580px;
  margin-top: 26px;
}

.match-list article {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.match-list article > span {
  position: relative;
  margin-top: 2px;
  color: var(--gold);
}

.match-list h3 {
  font-size: 1rem;
}

.match-list p {
  margin: 5px 0 0;
  color: var(--muted);
}

.score-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.score-head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3bd52;
  color: #3b2a09;
  font-size: 0.82rem;
  font-weight: 850;
}

.score-card dl {
  display: grid;
  gap: 15px;
  margin: 0;
}

.score-card dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.score-card dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.score-card dd {
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--score), #e8e5dc var(--score));
}

.price-line strong {
  color: var(--blue-dark);
  font-size: 2.5rem;
  line-height: 1;
}

.price-line span {
  color: var(--muted);
  font-weight: 800;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.plan-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.form-card,
.waitlist-form {
  display: grid;
  gap: 14px;
}

.form-card {
  padding: clamp(18px, 3vw, 24px);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.small-list {
  max-height: 330px;
}

.answer-subhead {
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 16px;
  text-align: left;
  font-weight: 900;
}

.faq-item button::after {
  content: "+";
  float: right;
  color: var(--green);
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-item div {
  padding: 0 16px 16px;
}

.floating-consultant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: var(--night);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(31, 33, 29, 0.24);
}

.floating-consultant:hover {
  transform: translateY(-2px);
}

.agent-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
}

.agent-icon::before {
  position: absolute;
  left: 7px;
  top: 2px;
  width: 20px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 10px 10px 8px 8px;
  content: "";
}

.agent-icon::after {
  position: absolute;
  left: 4px;
  bottom: 1px;
  width: 26px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 14px 14px 7px 7px;
  content: "";
}

.agent-icon span,
.floating-consultant .agent-icon {
  pointer-events: none;
}

.floating-consultant .agent-icon {
  background:
    radial-gradient(circle at 13px 12px, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 22px 12px, #fff 0 2px, transparent 2.5px),
    linear-gradient(#fff, #fff) 27px 17px / 8px 2px no-repeat,
    linear-gradient(#fff, #fff) 17px 0 / 2px 5px no-repeat;
}

.ask-form {
  margin-top: 22px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  display: block;
  min-height: 118px;
  resize: vertical;
  padding: 14px;
  line-height: 1.5;
}

input,
select {
  min-height: 42px;
  padding: 9px 10px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 84, 198, 0.12);
}

.button-row,
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row {
  margin-top: 12px;
}

button {
  cursor: pointer;
}

.primary-btn,
.secondary-btn,
.prompt-chips button,
.text-btn {
  border-radius: 8px;
  font-weight: 800;
}

.primary-btn {
  border: 1px solid var(--night);
  background: var(--night);
  color: #fff;
  padding: 12px 20px;
  box-shadow: 0 12px 26px rgba(31, 33, 29, 0.18);
}

.secondary-btn,
.prompt-chips button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 6px 0;
}

.primary-btn:hover,
.secondary-btn:hover,
.prompt-chips button:hover,
.text-btn:hover {
  transform: translateY(-1px);
}

.prompt-chips {
  margin-top: 14px;
}

.prompt-chips button {
  color: var(--blue-dark);
  font-size: 0.9rem;
}

.answer-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cbded8;
  border-radius: 8px;
  background: #f6fbf8;
}

.answer-box p {
  color: var(--muted);
}

.answer-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.answer-box li + li {
  margin-top: 9px;
}

.answer-box .citation {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.insight-panel,
.town-panel {
  padding: 18px;
}

.insight-panel p,
footer p {
  color: var(--muted);
  line-height: 1.55;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--amber);
}

.status-strip span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.tool-section,
.split-section {
  margin-top: 18px;
}

.tool-section,
.directory-panel {
  padding: clamp(18px, 3vw, 24px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 0.7fr)) minmax(120px, 0.45fr);
  gap: 12px;
  margin-top: 18px;
}

.toolbar.compact {
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1.2fr);
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checkbox-control {
  display: flex;
  align-items: end;
  gap: 9px;
  min-height: 66px;
  padding-bottom: 7px;
}

.checkbox-control input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.checkbox-control span {
  margin: 0;
  color: var(--ink);
  text-transform: none;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
}

.results-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.rule-card,
.source-item,
.check-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rule-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 15px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6e4b10;
  font-size: 0.75rem;
  font-weight: 800;
}

.bookmark-btn {
  display: grid;
  min-width: 62px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.bookmark-btn.is-saved {
  border-color: #f0c34d;
  background: var(--amber-soft);
  color: var(--amber);
}

.rule-card h3 {
  margin-top: 14px;
  line-height: 1.3;
}

.rule-card p {
  color: var(--muted);
  line-height: 1.5;
}

.rule-card footer {
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

mark {
  border-radius: 4px;
  background: #fff0a8;
  color: inherit;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 650px;
  overflow: auto;
  padding-right: 4px;
}

.source-item {
  padding: 13px;
}

.source-item a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-item p,
.town-result p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.town-result {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.town-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
}

.check-item input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.check-item strong {
  display: block;
  line-height: 1.3;
}

.check-item span {
  margin-top: 5px;
  text-transform: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 38px;
}

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

@media (max-width: 900px) {
  .app-header,
  .workspace,
  .split-section,
  .section-head,
  .results-head {
    align-items: stretch;
  }

  .app-header {
    position: static;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .workspace,
  .hero,
  .split-section,
  .matching-layout,
  .toolbar,
  .toolbar.compact,
  .rule-grid,
  .checklist,
  .home-metrics,
  .card-grid,
  .story-grid,
  .plans,
  .contact-grid,
  .team-grid,
  .proof-strip,
  .contact-note,
  .steps-strip,
  .explain-section {
    grid-template-columns: 1fr;
  }

  .section-head,
  .results-head,
  .result-actions {
    flex-direction: column;
  }

  .result-actions {
    align-items: stretch;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .steps-strip {
    gap: 18px;
  }
}

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .top-nav a {
    flex: 1 1 30%;
    text-align: center;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: clamp(2.55rem, 15vw, 4.1rem);
  }

  .page-hero h2,
  .explain-section h2 {
    font-size: clamp(2.1rem, 13vw, 3.2rem);
  }

  .trust-row {
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
  }

  .steps-strip article {
    grid-template-columns: 44px 1fr;
  }

  .steps-strip article > span {
    width: 40px;
    height: 40px;
  }

  .score-card dl div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media print {
  .app-header,
  #ask,
  .insight-panel,
  #sources,
  #checklist,
  footer,
  .toolbar,
  .results-head button,
  .bookmark-btn {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main,
  footer {
    width: 100%;
  }

  .tool-section,
  .rule-card {
    box-shadow: none;
    border-color: #aaa;
  }
}
