:root {
  --ink: #10243f;
  --ink-2: #1d4054;
  --muted: #607282;
  --line: #d8e1e7;
  --paper: #f7f9f7;
  --white: #ffffff;
  --gold: #f3c64d;
  --green: #2f8a6b;
  --blue: #235d86;
  --shadow: 0 18px 40px rgba(16, 36, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 249, 247, 0.92);
  border-bottom: 1px solid rgba(216, 225, 231, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 700;
}

.header-action,
.primary-button,
.secondary-button,
.quote-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
}

.header-action,
.primary-button,
.quote-form button {
  background: var(--gold);
  color: #231d09;
  box-shadow: 0 10px 24px rgba(243, 198, 77, 0.26);
}

.header-action {
  padding: 0 18px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 6vw, 72px);
  place-items: center start;
}

.landing-hero {
  min-height: min(760px, calc(100vh - 76px));
}

.compact-hero {
  min-height: 620px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 22, 35, 0.93) 0%, rgba(10, 31, 47, 0.86) 38%, rgba(10, 31, 47, 0.34) 72%, rgba(10, 31, 47, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 22, 35, 0.18), rgba(7, 22, 35, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(740px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 8vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
}

.hero-offer {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 28px;
  border: 1px solid rgba(243, 198, 77, 0.62);
  border-radius: 6px;
  padding: 10px 14px;
  background: rgba(243, 198, 77, 0.14);
  color: #fff2c6;
  font-size: 0.98rem;
  font-weight: 800;
}

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

.primary-button,
.secondary-button {
  padding: 0 22px;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.hero-proof {
  position: absolute;
  right: clamp(18px, 5vw, 56px);
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(560px, calc(100% - 36px));
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  padding: 26px clamp(18px, 4vw, 48px);
  background: var(--white);
}

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

.trust-band strong {
  margin-bottom: 5px;
  font-size: 1rem;
}

.trust-band span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.coverage-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(16, 36, 63, 0.04);
}

.coverage-card.featured {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.coverage-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.coverage-card.featured span,
.coverage-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.coverage-card h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

.coverage-card p,
.instant-copy p,
.request-copy p {
  color: var(--muted);
}

.coverage-card .text-link,
.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
}

.landing-section {
  background: var(--paper);
}

.seo-links {
  background: #eef5f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.article-main { min-width: 0; }
.article-main h1 { max-width: 900px; font-size: clamp(2.5rem, 6vw, 5rem); }
.article-main h2 { margin-top: 48px; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.article-main h3 { margin: 28px 0 8px; font-size: 1.22rem; }
.article-main p,
.article-main li { color: #344e5f; font-size: 1.04rem; }
.article-main li + li { margin-top: 8px; }

.article-meta {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.answer-box,
.fact-box,
.author-card,
.source-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.answer-box,
.fact-box,
.source-box { padding: 22px; }
.answer-box { border-left: 5px solid var(--gold); font-size: 1.13rem; }
.fact-box { margin: 28px 0; border-left: 5px solid var(--green); }

.article-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.author-card { padding: 22px; }
.author-card strong,
.author-card span { display: block; }
.author-card span { margin: 5px 0 16px; color: var(--muted); }
.source-box ul,
.industry-list { margin: 12px 0 0; padding-left: 20px; }
.source-box a,
.article-main a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.industry-list a { font-weight: 700; }

.article-cta {
  margin-top: 48px;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.article-cta p { color: rgba(255,255,255,.8); }
.article-cta .primary-button { text-decoration: none; }

.coverage-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.instant {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.instant-copy {
  position: sticky;
  top: 104px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 118px;
  padding: 24px 24px 24px 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.steps li::before {
  position: absolute;
  left: 22px;
  top: 24px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  content: counter(step);
  counter-increment: step;
  font-weight: 800;
}

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

.steps strong {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.steps span {
  color: var(--muted);
}

.request-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.gl-shell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  padding-top: 72px;
}

.gl-shell-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gl-shell-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.gl-shell-panel p {
  margin: 0;
  color: var(--muted);
}

.quote-shell-section {
  padding-top: 20px;
}

.quote-shell-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.quote-shell-heading h2 {
  margin-bottom: 0;
}

.quote-shell-frame {
  width: 100%;
  min-height: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quote-form {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

label,
legend {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 800;
}

.required-field {
  color: #153a56;
}

.required-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  border: 1px solid rgba(156, 40, 54, 0.28);
  border-radius: 999px;
  padding: 1px 8px;
  background: #fff2f3;
  color: #9c2836;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd6dd;
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

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

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

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(35, 93, 134, 0.16);
}

.wc-application-form.was-validated input:invalid,
.wc-application-form.was-validated textarea:invalid,
.wc-application-form.was-validated select:invalid,
input.touched:invalid,
textarea.touched:invalid,
select.touched:invalid,
.field-invalid input {
  border-color: #b42332;
  background: #fff8f8;
}

.wc-application-form.was-validated input:invalid:focus,
.wc-application-form.was-validated textarea:invalid:focus,
.wc-application-form.was-validated select:invalid:focus,
input.touched:invalid:focus,
textarea.touched:invalid:focus,
select.touched:invalid:focus,
.field-invalid input:focus {
  outline-color: rgba(180, 35, 50, 0.18);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  font-weight: 700;
}

.checkbox-grid input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.quote-form button {
  border: 0;
  padding: 0 22px;
  cursor: pointer;
  font: inherit;
}

#formStatus {
  margin: 0;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}

.footer-identity {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-identity a,
.footer-links a,
.footer-links button,
.legal-document a {
  color: var(--blue);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 800;
}

.footer-links button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.application-body {
  background: #eef3f1;
}

.legal-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 80px;
}

.legal-document {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(16, 36, 63, 0.08);
}

.legal-document h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.legal-document h2 {
  margin-top: 32px;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.legal-document p {
  color: var(--ink-2);
}

.legal-updated {
  color: var(--muted);
  font-weight: 800;
}

.application-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 80px;
}

.application-intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.application-intro h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.application-intro p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
}

.proposal-intro h1 {
  max-width: 720px;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
}

.wc-application-form {
  display: grid;
  gap: 18px;
}

.app-panel {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(16, 36, 63, 0.08);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-heading span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.dynamic-list {
  display: grid;
  gap: 12px;
}

.dynamic-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(110px, 0.6fr)) 40px;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.dynamic-row.row-invalid {
  border-color: rgba(180, 35, 50, 0.62);
  background: #fffafa;
}

.owner-row {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(135px, 0.7fr) 40px;
}

.autocomplete-field {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 8;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #b9c7d0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.autocomplete-results button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.autocomplete-results button:hover {
  background: #eef6f3;
}

.autocomplete-results span {
  color: var(--muted);
  font-size: 0.84rem;
}

.selected-description {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cslb-lookup-actions {
  display: flex;
  align-items: end;
  gap: 12px;
  min-width: 0;
}

.cslb-lookup-actions .secondary-control {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.cslb-lookup-actions p {
  min-width: 0;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.icon-control {
  width: 38px;
  height: 38px;
  margin-top: 28px;
  border: 1px solid #d4dde3;
  border-radius: 6px;
  background: #fff;
  color: #9c2836;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.secondary-control {
  width: fit-content;
  min-height: 42px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 0 16px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.total-strip {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
  color: var(--ink-2);
  font-weight: 700;
}

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

.question-grid label,
.toggle-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  font-weight: 700;
}

.question-grid input,
.toggle-label input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 6px 0 0;
}

.application-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: var(--gold);
  color: #231d09;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(243, 198, 77, 0.26);
}

#wcStatus {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

#wcStatus a,
#formStatus a {
  color: var(--blue);
  text-decoration: underline;
}

.proposal-panel {
  gap: 18px;
}

.proposal-status {
  padding: 14px 16px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink-2);
  font-weight: 800;
}

.market-loader {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(35, 93, 134, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 138, 107, 0.08), rgba(243, 198, 77, 0.12)),
    #ffffff;
}

.market-loader[hidden] {
  display: none;
}

.market-loader strong,
.market-loader p {
  margin: 0;
}

.market-loader strong {
  color: var(--ink);
  font-size: 1rem;
}

.market-loader p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.market-spinner {
  position: relative;
  width: 52px;
  height: 52px;
  border: 4px solid rgba(35, 93, 134, 0.16);
  border-top-color: var(--green);
  border-right-color: var(--gold);
  border-radius: 50%;
  animation: market-spin 0.9s linear infinite;
}

.market-spinner::after {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.market-progress {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.market-progress span {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(35, 93, 134, 0.18);
  animation: market-pulse 1.2s ease-in-out infinite;
}

.market-progress span:nth-child(2) {
  animation-delay: 0.15s;
}

.market-progress span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes market-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes market-pulse {
  0%,
  100% {
    background: rgba(35, 93, 134, 0.18);
    transform: scaleX(0.72);
  }

  50% {
    background: var(--green);
    transform: scaleX(1);
  }
}

.proposal-options {
  display: grid;
  gap: 12px;
}

.proposal-option {
  display: grid;
  grid-template-columns: 22px minmax(180px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.proposal-option.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 138, 107, 0.12);
}

.proposal-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.proposal-option span {
  display: grid;
  gap: 2px;
}

.proposal-option strong {
  color: var(--ink);
}

.option-badge {
  display: inline-flex;
  margin-left: 6px;
  border: 1px solid rgba(47, 138, 107, 0.28);
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef8f2;
  color: var(--green);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.proposal-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.proposal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.fee-disclosure {
  padding: 12px 14px;
  border: 1px solid rgba(243, 198, 77, 0.7);
  border-radius: 8px;
  background: rgba(243, 198, 77, 0.14);
  color: var(--ink-2);
  font-weight: 700;
}

.fee-disclosure p {
  margin: 0;
}

.pay-later-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(47, 138, 107, 0.28);
  border-radius: 8px;
  background: #f4fbf7;
  color: var(--ink);
  font-weight: 800;
}

.pay-later-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.signature-mode-option {
  align-items: center;
  justify-content: space-between;
}

.signature-mode-option select {
  min-width: 220px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 8px 10px;
}

.proposal-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: var(--gold);
  color: #231d09;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.proposal-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#paymentStatus {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.portal-invite-panel[hidden] {
  display: none;
}

.portal-invite-panel > p {
  margin: 0;
  color: var(--ink-2);
  font-weight: 700;
}

.portal-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.portal-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 0 20px;
  background: var(--gold);
  color: #231d09;
  font-weight: 800;
  text-decoration: none;
}

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

.portal-button[hidden] {
  display: none;
}

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

.next-steps li {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.next-steps span {
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(760px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner strong,
.cookie-banner p,
.cookie-modal p {
  margin: 0;
}

.cookie-banner p,
.cookie-modal p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cookie-actions button,
.cookie-modal-heading button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-actions button:last-child {
  border-color: var(--gold);
  background: var(--gold);
  color: #231d09;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(16, 36, 63, 0.46);
}

.cookie-modal-panel {
  display: grid;
  gap: 16px;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-modal-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cookie-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--green);
}

.cookie-toggle span,
.cookie-toggle strong {
  display: block;
}

.cookie-toggle span {
  color: var(--muted);
  font-weight: 600;
}

.cookie-toggle strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

  .trust-band,
  .coverage-grid,
  .instant,
  .request-section,
  .gl-shell-hero,
  .dynamic-row,
  .owner-row,
  .question-grid,
  .proposal-option {
    grid-template-columns: 1fr;
  }

  .instant-copy {
    position: static;
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .site-header {
    min-height: 70px;
  }

  .hero {
    min-height: 680px;
    padding-right: clamp(24px, 5vw, 48px);
    padding-left: clamp(24px, 5vw, 48px);
  }

  .hero-content {
    width: min(660px, 78vw);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 22, 35, 0.94) 0%, rgba(10, 31, 47, 0.84) 54%, rgba(10, 31, 47, 0.32) 100%),
      linear-gradient(0deg, rgba(7, 22, 35, 0.18), rgba(7, 22, 35, 0.18));
  }

  .trust-band {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .request-section {
    grid-template-columns: 1fr;
  }

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

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

  .dynamic-row .autocomplete-field,
  .owner-row .toggle-label {
    grid-column: 1 / -1;
  }

  .icon-control {
    margin-top: 0;
  }

  .proposal-option {
    grid-template-columns: 22px minmax(180px, 1fr) repeat(2, minmax(120px, 0.6fr));
  }
}

@media (max-width: 640px) {
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    min-height: 66px;
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    gap: 9px;
  }

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

  .brand strong {
    font-size: 0.94rem;
    line-height: 1.05;
    white-space: normal;
  }

  .brand small {
    display: none;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding: 44px 18px 148px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 22, 35, 0.95) 0%, rgba(7, 22, 35, 0.88) 58%, rgba(7, 22, 35, 0.42) 100%);
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-offer {
    display: block;
    font-size: 0.92rem;
  }

  .hero-actions,
  .form-footer,
  .quote-shell-heading,
  .application-actions,
  .proposal-actions,
  .portal-invite-actions,
  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .quote-form button,
  .quote-shell-heading .primary-button,
  .application-actions button,
  .proposal-actions button,
  .portal-button,
  .header-action {
    width: 100%;
  }

  .site-header .header-action {
    width: auto;
    flex: 0 0 auto;
  }

  .hero-proof {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-proof span {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .section {
    padding: 48px 18px;
  }

  .quote-shell-frame {
    min-height: 720px;
  }

  .coverage-card {
    min-height: auto;
    padding: 20px;
  }

  .coverage-card span {
    margin-bottom: 22px;
  }

  .steps li {
    min-height: auto;
    padding: 20px 18px 20px 72px;
  }

  .steps li::before {
    left: 18px;
    top: 20px;
  }

  .quote-form,
  .app-panel,
  .legal-document {
    padding: 18px;
  }

  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-grid label,
  .question-grid label,
  .toggle-label {
    align-items: flex-start;
    min-height: 48px;
  }

  input,
  select {
    min-height: 48px;
  }

  textarea {
    min-height: 116px;
  }

  .application-shell,
  .legal-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 28px;
  }

  .application-intro h1,
  .legal-document h1 {
    font-size: 2.25rem;
  }

  .panel-heading {
    align-items: flex-start;
  }

  .panel-heading span {
    width: 34px;
    height: 34px;
  }

  .dynamic-row,
  .owner-row {
    padding: 14px;
  }

  .secondary-control,
  .icon-control {
    width: 100%;
  }

  .cslb-lookup-actions {
    display: grid;
    gap: 8px;
  }

  .cslb-lookup-actions p {
    margin: 0;
  }

  .total-strip {
    justify-content: flex-start;
  }

  .market-loader {
    grid-template-columns: 1fr;
  }

  .proposal-option {
    align-items: start;
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .proposal-option > span {
    grid-column: 2;
  }

  .option-badge {
    margin: 6px 0 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .icon-control {
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .brand strong {
    max-width: 120px;
  }

  .header-action {
    padding: 0 10px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.35rem;
  }
}
