:root {
  --ink: #172033;
  --muted: #5b6475;
  --line: #dfe5ec;
  --paper: #ffffff;
  --mist: #f4f7f9;
  --navy: #13315c;
  --teal: #0f766e;
  --gold: #b7791f;
  --green: #24724d;
  --rose: #8f2d56;
  --shadow: 0 24px 70px rgba(20, 35, 55, 0.16);
  color-scheme: light;
  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;
  background: var(--paper);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #9ee8df;
  outline-offset: 2px;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px max(28px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 229, 236, 0.78);
  backdrop-filter: blur(18px);
}

.header-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-logo {
  width: 126px;
  height: auto;
  flex: 0 0 auto;
}

.brand-logo-josh {
  width: 120px;
  border-radius: 8px;
}

.brand-logo-josh-dark {
  background: #050607;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.brand-affiliation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-affiliation small {
  margin: 0;
  color: #64748b;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brand-c2-logo {
  width: 110px;
  height: auto;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.hero-c2 span,
.panel-c2 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 10px;
  border-radius: 8px;
  color: #314057;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--mist);
  outline: none;
}

.site-nav .nav-cta {
  background: var(--navy);
  color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: #0c2447;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(9, 23, 44, 0.78), rgba(9, 23, 44, 0.48)),
    url("/assets/home-hero-seattle.jpg") center / cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 18, 34, 0.08), rgba(7, 18, 34, 0.72));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  padding: 168px 0 72px;
  align-items: end;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ee8df;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.6;
}

.apply-context {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.hero-trust-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-trust-card img {
  width: 94px;
  max-height: 128px;
  object-fit: contain;
  object-position: bottom center;
}

.hero-trust-card strong,
.hero-trust-card span {
  display: block;
}

.hero-trust-card strong {
  margin-bottom: 7px;
  font-size: 18px;
}

.hero-trust-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.hero-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(36, 114, 77, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #1d6040;
}

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

.button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.button.small {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-c2 {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.hero-c2 span,
.panel-c2 span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-c2 img {
  width: 188px;
  height: auto;
}

.trust-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-panel {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.panel-label {
  margin-bottom: 6px;
  color: #9ee8df;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 24px;
}

.hero-panel ul {
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
}

.hero-panel li {
  color: rgba(255, 255, 255, 0.86);
}

.panel-c2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.panel-c2 img {
  width: 146px;
  height: auto;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding-top: 72px;
}

.section.band,
.admin-section {
  background: var(--mist);
}

.apply-band {
  padding: 34px 0;
  background: #101a2b;
  color: #fff;
}

.apply-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.apply-panel h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.apply-panel p {
  max-width: 780px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.mini-disclosure {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow),
.lead-form p,
.contact-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.value-grid,
.question-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
}

.value-grid,
.testimonial-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.value-grid article,
.testimonial-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.value-grid p,
.testimonial-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.question-grid a {
  display: flex;
  align-items: center;
  min-height: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.question-grid a:hover,
.question-grid a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 18px 42px rgba(20, 35, 55, 0.1);
  outline: none;
}

.tool-grid,
.option-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.insight-grid a {
  color: inherit;
}

.tool-card,
.option-grid article,
.insight-grid article,
.partner-list article,
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.tool-card {
  display: block;
  min-height: 245px;
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible,
.insight-grid a:hover article,
.insight-grid a:focus-visible article {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 18px 42px rgba(20, 35, 55, 0.1);
  outline: none;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: #e7f4f2;
  color: var(--teal);
  font-weight: 900;
}

.tool-card p,
.option-grid p,
.insight-grid p,
.partner-list span {
  color: var(--muted);
  line-height: 1.58;
}

.section-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.section-cta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.section-cta p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.split {
  overflow: hidden;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
}

.note {
  margin-top: 22px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: #67450d;
  line-height: 1.55;
}

.calculator-shell,
.lead-form,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.second-look-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.review-stack {
  display: grid;
  gap: 14px;
}

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

.review-stack article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.review-stack span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.review-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.second-look-feature {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(19, 49, 92, 0.06)),
    #fff;
}

.landing-page {
  padding-top: 84px;
}

.landing-hero {
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(16, 26, 43, 0.92), rgba(16, 26, 43, 0.7)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: #fff;
}

.landing-hero.realtor-hero {
  background:
    linear-gradient(90deg, rgba(16, 26, 43, 0.92), rgba(16, 26, 43, 0.64)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.landing-copy {
  max-width: 780px;
}

.landing-copy .eyebrow {
  color: #9ee8df;
}

.landing-copy h1 {
  font-size: clamp(44px, 6vw, 76px);
}

.landing-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.6;
}

.landing-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.landing-card h2 {
  font-size: 30px;
}

.landing-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.landing-card li {
  color: rgba(255, 255, 255, 0.82);
}

.landing-card .mini-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-card .mini-list span {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.landing-card .mini-list strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.process-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article,
.audience-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.process-grid span,
.audience-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 900;
}

.process-grid p,
.audience-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.lead-form-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.lead-form-panel > div:first-child {
  position: sticky;
  top: 110px;
}

.lead-form-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.form-success {
  max-width: 920px;
  margin: 18px auto 0;
  padding: 24px;
  border: 1px solid rgba(36, 114, 77, 0.28);
  border-radius: 8px;
  background: #eef8f2;
  color: var(--ink);
}

.form-error {
  max-width: 920px;
  margin: 18px auto 0;
  padding: 24px;
  border: 1px solid rgba(172, 65, 65, 0.28);
  border-radius: 8px;
  background: #fff4f2;
  color: var(--ink);
}

.lead-form.tight + .form-success,
.lead-form.tight + .form-error {
  max-width: none;
}

.form-success span,
.form-error span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-error span {
  color: #a23b2d;
}

.form-success h3,
.form-error h3 {
  margin-top: 8px;
}

.form-success p,
.form-error p {
  color: #41506a;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.calculator-shell {
  padding: 22px;
}

.calculator,
.lead-form {
  display: grid;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form {
  max-width: 920px;
  margin: 0 auto;
  padding: 26px;
}

.lead-form.tight {
  max-width: none;
  margin: 0;
  box-shadow: none;
}

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

.form-wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #27364c;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad4df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  outline: none;
}

.payment-result {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 8px;
  background: #eef7f5;
  text-align: center;
}

.payment-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-result strong {
  color: var(--teal);
  font-size: 44px;
}

.consent {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.consent a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.affordability-section {
  background:
    linear-gradient(180deg, #f6f9fb 0%, #ffffff 44%),
    var(--paper);
}

.affordability-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.affordability-inputs,
.results-grid {
  display: grid;
  gap: 18px;
}

.tool-panel,
.affordability-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(20, 35, 55, 0.1);
}

.tool-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.panel-heading span,
.results-card span,
.next-step-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 7px 0 0;
  font-size: 24px;
}

.affordability-results {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.results-card,
.next-step-card {
  border: 1px solid rgba(202, 212, 223, 0.85);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
}

.primary-result {
  background: #eef7f5;
  border-color: rgba(15, 118, 110, 0.22);
}

.primary-result strong,
.results-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.primary-result strong {
  color: var(--teal);
  font-size: 42px;
}

.primary-result p,
.next-step-card p,
.mini-disclosure {
  color: var(--muted);
  line-height: 1.55;
}

.primary-result p {
  margin-bottom: 0;
}

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

.results-card.wide {
  grid-column: 1 / -1;
}

.next-step-card p {
  margin-bottom: 0;
  font-weight: 750;
}

.mini-disclosure {
  margin: 0;
  font-size: 12px;
}

.affordability-note {
  max-width: 980px;
  margin: 24px auto 0;
}

@media (max-width: 1320px) {
  .site-header {
    gap: 32px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 118px;
  }

  .brand-logo-josh {
    width: 112px;
  }

  .brand-c2-logo {
    width: 108px;
  }

  .site-nav {
    gap: 8px;
    font-size: 13px;
  }

  .site-nav a {
    padding: 9px 8px;
  }
}

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

.option-grid article,
.insight-grid article {
  padding: 24px;
}

.visual-card {
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.partner-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

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

.partner-list article {
  display: grid;
  gap: 7px;
  padding: 20px;
}

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

.insight-grid span {
  display: block;
  margin-bottom: 30px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.meet-josh {
  background:
    linear-gradient(135deg, rgba(19, 49, 92, 0.06), rgba(15, 118, 110, 0.08)),
    #fff;
  overflow: hidden;
}

.meet-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.meet-photo-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, #e7f4f2, #edf2f7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.meet-photo-card::after {
  content: "";
  position: absolute;
  inset: auto 28px 28px;
  height: 28%;
  border-radius: 999px;
  background: rgba(19, 49, 92, 0.16);
  filter: blur(28px);
}

.meet-photo-card img {
  position: absolute;
  left: 50%;
  bottom: -10px;
  z-index: 1;
  width: auto;
  height: min(94%, 500px);
  max-width: 88%;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
}

.meet-copy {
  max-width: 680px;
}

.meet-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.meet-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.meet-credentials span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.meet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.testimonial-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-reviews {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
}

.social-proof.premium-reviews,
.platform-reviews {
  padding: 84px 0 90px;
}

.social-proof .section-heading,
.platform-reviews .section-heading {
  margin-bottom: 34px;
}

.review-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.review-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.review-platform-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
    #fff;
  box-shadow: 0 20px 48px rgba(20, 35, 55, 0.09);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.review-platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 118, 101, 0.28);
  box-shadow: 0 26px 58px rgba(20, 35, 55, 0.13);
}

.review-platform-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
}

.review-platform-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-platform-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
}

.review-platform-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.review-platform-card .text-link {
  margin-top: auto;
}

.growth-page .lead-form-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.growth-hero > div:first-child {
  position: static;
}

.strategy-card {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(202, 212, 223, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(19, 49, 92, 0.94), rgba(15, 118, 110, 0.82)),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.strategy-card span {
  color: #9ee8df;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
}

.strategy-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 24px;
  color: #41506a;
  font-weight: 750;
  line-height: 1.5;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.campaign-form {
  border: 1px solid rgba(202, 212, 223, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 35, 55, 0.12);
}

.compact-platform-grid .review-platform-card {
  min-height: 170px;
}

.source-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 30px;
  max-width: 1120px;
}

.source-review-grid-expanded {
  margin-bottom: 56px;
}

.review-platform-heading {
  margin-top: 10px;
}

.review-card {
  display: grid;
  gap: 18px;
  min-height: 290px;
  padding: 22px;
  border: 1px solid rgba(202, 212, 223, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 251, 0.94)),
    var(--paper);
  box-shadow: 0 18px 46px rgba(20, 35, 55, 0.09);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.review-card:hover,
.review-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 24px 60px rgba(20, 35, 55, 0.13);
}

.review-card.compact {
  min-height: 0;
}

.source-review-card,
.source-review-grid .review-card.compact {
  gap: 10px;
  min-height: 0;
  padding: 16px;
}

.source-review-card .review-avatar {
  display: none;
}

.source-review-card .review-card-top {
  grid-template-columns: 1fr;
  gap: 8px;
}

.source-review-card .review-card-top strong {
  margin-top: 6px;
  font-size: 16px;
}

.source-review-card .review-card p {
  font-size: 15px;
}

.source-review-card p {
  color: #253855;
  font-size: 15px;
  line-height: 1.45;
}

.review-stars {
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.source-review-card .review-meta {
  gap: 7px 10px;
  font-size: 12px;
}

.review-card-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #e7f4f2;
  color: var(--teal);
  font-weight: 900;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.review-card-top strong,
.review-card-top span {
  display: block;
}

.review-card-top strong {
  margin-top: 8px;
  font-size: 17px;
}

.review-card-top > div > span:last-child,
.review-link-placeholder,
.review-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-card p {
  margin: 0;
  color: #41506a;
  font-size: 16px;
  line-height: 1.62;
}

.review-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.review-source-badge span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
}

.review-source-google span {
  background: #1a73e8;
}

.review-source-zillow span {
  background: #006aff;
}

.review-source-yelp span {
  background: #d32323;
}

.review-source-facebook span {
  background: #1877f2;
}

.review-source-realtor span {
  background: var(--teal);
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: auto;
}

.review-rating {
  color: var(--gold);
  font-weight: 900;
}

.review-rating.muted {
  color: var(--muted);
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.trust-metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-metrics span,
.trust-metrics strong {
  display: block;
}

.trust-metrics span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-metrics strong {
  color: var(--ink);
  font-size: 18px;
}

.reviews-hero {
  background:
    linear-gradient(90deg, rgba(16, 26, 43, 0.94), rgba(16, 26, 43, 0.66)),
    url("/assets/home-hero-seattle.jpg") center / cover;
}

.schedule-hero {
  background:
    linear-gradient(90deg, rgba(16, 26, 43, 0.94), rgba(16, 26, 43, 0.58)),
    url("/assets/home-hero-seattle.jpg") center / cover;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.booking-layout h2 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.booking-layout > div:first-child {
  position: sticky;
  top: 104px;
}

.booking-panel,
.booking-button-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(20, 35, 55, 0.08);
}

.booking-frame-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.booking-frame-shell iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
}

.booking-button-panel {
  display: grid;
  gap: 12px;
  place-items: start;
}

.booking-button-panel p,
.booking-fallback-link {
  color: var(--muted);
  line-height: 1.55;
}

.booking-fallback-link {
  margin: 14px 0 0;
  font-size: 14px;
}

.platform-stack {
  display: grid;
  gap: 22px;
}

.platform-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(20, 35, 55, 0.08);
}

.platform-panel h3 {
  font-size: 28px;
}

.platform-panel p {
  color: var(--muted);
  line-height: 1.62;
}

.yelp-embed-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 850;
}

.review-link-grid,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.review-share-cta {
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(232, 245, 243, 0.9), rgba(255, 255, 255, 0.96)),
    #fff;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  padding: 28px;
}

.admin-toolbar {
  margin-bottom: 20px;
}

.admin-key {
  min-width: 230px;
}

.admin-filter {
  min-width: 160px;
}

.admin-key input,
.admin-filter select {
  height: 40px;
}

.stat {
  min-width: 150px;
  padding: 14px 16px;
}

.stat span,
.stat strong {
  display: block;
}

.stat span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.stat strong {
  font-size: 22px;
}

.lead-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  font-size: 14px;
}

.lead-table th,
.lead-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  background: #fbfcfd;
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
}

.lead-table td {
  color: #29364a;
}

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

.admin-inline-label {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-inline-label select,
.admin-inline-label input,
.lead-table textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-inline-label select,
.admin-inline-label input {
  min-width: 135px;
  height: 36px;
  padding: 0 10px;
}

.lead-table textarea {
  min-width: 220px;
  resize: vertical;
  padding: 10px;
}

.policy-page {
  padding-top: 84px;
}

.policy-nav {
  margin-left: auto;
}

.policy-content {
  max-width: 860px;
}

.policy-content h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 68px);
}

.policy-content h2 {
  margin-top: 34px;
  font-size: clamp(25px, 3vw, 34px);
}

.policy-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.policy-content a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-date {
  color: #334155;
  font-weight: 800;
}

.site-footer {
  padding: 46px 0;
  background: #101a2b;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 1.1fr) minmax(230px, 0.9fr);
  gap: 32px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.footer-brand-logo {
  width: 190px;
  height: auto;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.footer-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.footer-lockup {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-brand {
  display: grid;
  gap: 10px;
  color: #fff;
  width: fit-content;
}

.footer-josh-logo {
  width: 210px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.footer-c2-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.footer-c2-lockup span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-logo {
  width: 190px;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.66);
  max-width: 260px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #101a2b;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .header-branding {
    flex: 1;
  }

  .brand-logo {
    width: 116px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 71px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .landing-grid,
  .split-grid,
  .partner-layout,
  .contact-panel,
  .booking-layout,
  .growth-page .lead-form-panel,
  .two-column,
  .meet-grid,
  .apply-panel,
  .second-look-layout,
  .lead-form-panel,
  .affordability-tool,
  .section-cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 150px 0 54px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .tool-grid,
  .option-grid,
  .insight-grid,
  .value-grid,
  .question-grid,
  .source-review-grid,
  .review-platform-grid,
  .review-stack.horizontal,
  .process-grid,
  .audience-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-rail {
    display: flex;
    gap: 14px;
    margin-inline: -20px;
    padding: 4px 20px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .review-card {
    flex: 0 0 min(84vw, 420px);
    scroll-snap-align: start;
  }

  .trust-metrics,
  .platform-panel {
    grid-template-columns: 1fr;
  }

  .lead-form-panel > div:first-child {
    position: static;
  }

  .booking-layout > div:first-child {
    position: static;
  }

  .affordability-results {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .header-branding {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-logo {
    width: 92px;
  }

  .brand-logo-josh {
    width: 104px;
  }

  .brand-affiliation {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-trust-card {
    max-width: 440px;
  }

  .apply-panel .button {
    width: 100%;
  }

  .hero-c2 {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-c2 img {
    width: 170px;
  }

  .section {
    padding: 66px 0;
  }

  .tool-grid,
  .option-grid,
  .insight-grid,
  .value-grid,
  .question-grid,
  .source-review-grid,
  .review-platform-grid,
  .review-stack.horizontal,
  .process-grid,
  .audience-grid,
  .testimonial-grid,
  .form-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .review-rail {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .review-card {
    flex-basis: min(88vw, 360px);
  }

  .trust-metrics {
    grid-template-columns: 1fr;
  }

  .footer-socials {
    flex-wrap: wrap;
    width: min(100%, 316px);
  }

  .review-link-grid .button,
  .cta-row .button {
    width: 100%;
  }

  .sticky-mobile-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 28;
    display: flex;
    justify-content: center;
    min-height: 48px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 14px 34px rgba(20, 35, 55, 0.26);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .sticky-mobile-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-footer {
    padding-bottom: 92px;
  }

  .meet-photo-card {
    min-height: 420px;
  }

  .meet-actions,
  .meet-actions .button {
    width: 100%;
  }

  .tool-card {
    min-height: auto;
  }

  .lead-form,
  .contact-panel,
  .calculator-shell {
    padding: 18px;
  }

  .payment-result strong {
    font-size: 36px;
  }

  .primary-result strong {
    font-size: 34px;
  }
}

.admin-body {
  background: #eef3f3;
  color: var(--ink);
}

.admin-login-page,
.admin-dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-login-card,
.admin-panel,
.admin-summary-grid article,
.admin-lead-card,
.admin-issue-card {
  background: #fff;
  border: 1px solid rgba(15, 30, 48, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(15, 30, 48, 0.08);
}

.admin-login-card {
  width: min(460px, 100%);
  padding: 30px;
}

.admin-login-card form {
  display: grid;
  gap: 16px;
}

.admin-login-card label,
.admin-filter-grid label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: var(--ink);
}

.admin-login-card input,
.admin-filter-grid input,
.admin-filter-grid select {
  width: 100%;
  border: 1px solid rgba(15, 30, 48, 0.16);
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.admin-dashboard-header,
.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-dashboard-header {
  margin-bottom: 22px;
}

.admin-dashboard-header h1,
.admin-panel h2 {
  margin: 0;
}

.admin-dashboard-header p,
.admin-panel-header p,
.muted {
  color: var(--muted);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-summary-grid article {
  padding: 18px;
}

.admin-summary-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.admin-summary-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-panel {
  padding: 20px;
  margin-top: 18px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.admin-lead-list,
.admin-issue-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-lead-card {
  overflow: hidden;
}

.admin-lead-summary {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr auto;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-lead-summary span,
.admin-event span {
  display: grid;
  gap: 3px;
}

.admin-lead-summary small {
  color: var(--muted);
}

.pill {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e6f4f1;
  color: #087468;
  font-size: 0.82rem;
}

.admin-lead-detail {
  border-top: 1px solid rgba(15, 30, 48, 0.09);
  padding: 18px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.admin-lead-detail h3 {
  margin: 0 0 10px;
}

.admin-lead-detail dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 0 0 18px;
}

.admin-lead-detail dt {
  color: var(--muted);
  font-weight: 700;
}

.admin-lead-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-lead-detail pre {
  max-height: 320px;
  overflow: auto;
  background: #0d1b2d;
  color: #eaf3f2;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.86rem;
}

.admin-contact-links,
.admin-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-event-list {
  display: grid;
  gap: 8px;
}

.admin-event,
.admin-issue-card {
  border: 1px solid rgba(15, 30, 48, 0.1);
  border-radius: 10px;
  padding: 12px;
  background: #f7faf9;
}

.admin-event.is-failed,
.admin-issue-card {
  border-color: rgba(180, 48, 48, 0.22);
  background: #fff7f6;
}

.admin-issue-card span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 820px) {
  .admin-login-page,
  .admin-dashboard {
    width: min(100% - 20px, 1180px);
    padding: 24px 0;
  }

  .admin-dashboard-header,
  .admin-panel-header {
    display: grid;
  }

  .admin-summary-grid,
  .admin-filter-grid,
  .admin-detail-grid,
  .admin-lead-summary {
    grid-template-columns: 1fr;
  }

  .admin-lead-detail dl {
    grid-template-columns: 1fr;
  }
}
