:root {
  --ink: #24243f;
  --muted: #676878;
  --line: #e8e5e1;
  --surface: #ffffff;
  --soft: #f7f5f1;
  --soft-blue: #edf6f8;
  --soft-green: #edf5ef;
  --brand-deep: #963400;
  --brand: rgb(200, 70, 0);
  --focus: #2b6f7c;
  --shadow: 0 24px 70px rgba(36, 36, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: inter-18pt, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

h1,
h2 {
  font-family: gelica-light-italic, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: 5.8rem;
}

h2 {
  max-width: 760px;
  font-size: 4.4rem;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(36, 36, 63, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-shell,
.footer-shell,
.final-cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-shell {
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--brand-deep);
}

.brand img {
  width: 132px;
  height: auto;
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid rgba(150, 52, 0, 0.28);
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 11px 16px;
  border: 1px solid rgba(36, 36, 63, 0.16);
  border-radius: 8px;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--brand);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

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

.button-secondary {
  border-color: rgba(36, 36, 63, 0.18);
  background: rgba(255, 255, 255, 0.76);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 56px;
  background: #fff;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

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

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.hero-media {
  justify-self: end;
  width: min(100%, 460px);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.lede {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.38rem;
  line-height: 1.48;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 72px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 36, 63, 0.1);
  border-radius: 8px;
  background: rgba(36, 36, 63, 0.1);
  box-shadow: var(--shadow);
}

.hero-proof div {
  min-height: 140px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-proof dt {
  margin-bottom: 8px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(76px, 9vw, 120px) 0;
}

.intro-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.intro-band .split-layout {
  position: relative;
  z-index: 1;
}

.paper-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: end;
}

.section-lede {
  color: var(--muted);
  font-size: 1.12rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
}

.markets-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.markets-heading p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.line-card,
.quote-card,
.step-row article {
  border: 1px solid rgba(36, 36, 63, 0.12);
  border-radius: 8px;
  background: var(--surface);
}

.line-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 26px;
}

.line-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.line-code {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--focus);
  font-weight: 900;
}

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

.context-list span {
  border: 1px solid rgba(36, 36, 63, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.line-card a {
  margin-top: auto;
  padding-top: 28px;
  color: var(--brand-deep);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.carrier-band {
  padding: 76px 0;
  background: var(--ink);
  color: #fff;
}

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

.carrier-band .eyebrow {
  color: #ffcfb5;
}

.carrier-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
  border: 4px solid rgb(36, 36, 63);
  border-radius: 8px;
  background: rgb(36, 36, 63);
}

.carrier-logo-field {
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 22px;
  background: #fff;
}

.carrier-logo-field img {
  width: auto;
  max-width: min(78%, 240px);
  max-height: 68px;
  object-fit: contain;
}

.carrier-logo-field img[src*="first"] {
  max-height: 84px;
}

.visual-band {
  background: linear-gradient(90deg, var(--soft-blue), #fff 58%, var(--soft-green));
}

.visual-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 96px);
  align-items: center;
}

.tracking-image {
  overflow: visible;
}

.tracking-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.feature-list div {
  padding-left: 12px;
  border-left: 6px solid #c94600;
}

.feature-list p {
  margin-top: 6px;
  color: var(--muted);
}

.step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(36, 36, 63, 0.12);
  border-radius: 8px;
  background: #fff;
}

.step-row article {
  border: 0;
  border-right: 1px solid rgba(36, 36, 63, 0.12);
  border-radius: 0;
  padding: 24px;
  background: #fff;
}

.step-row article:last-child {
  border-right: 0;
}

.step-row span {
  display: block;
  margin-bottom: 34px;
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.step-row p {
  margin-top: 10px;
  color: var(--muted);
}

.proof-section {
  background: var(--soft);
}

.proof-section .section-heading {
  display: block;
  max-width: 760px;
}

.quote-grid {
  display: grid;
  max-width: 720px;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.quote-card {
  margin: 0;
  padding: clamp(26px, 4vw, 42px);
}

.quote-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.68;
}

.quote-card figcaption {
  display: grid;
  gap: 3px;
  margin-top: 28px;
  color: var(--muted);
}

.quote-card strong {
  color: var(--ink);
}

.final-cta {
  padding: 72px 0;
  background: var(--ink);
  color: #fff;
}

.final-cta .eyebrow {
  color: #ffcfb5;
}

.final-cta .button-primary {
  background: #fff;
  color: var(--ink);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.footer-shell p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand-deep);
}

.appointment-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 11vw, 136px) 0 clamp(70px, 9vw, 112px);
  background: #fff;
}

.appointment-hero h1 {
  max-width: 780px;
}

.appointment-hero h1 span {
  color: var(--brand-deep);
}

.signup-band {
  padding: clamp(62px, 8vw, 104px) 0;
  background: #fff;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
}

.signup-context {
  position: sticky;
  top: 108px;
}

.context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.signup-form {
  border: 1px solid rgba(36, 36, 63, 0.12);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-header {
  margin-bottom: 28px;
}

.form-header h2 {
  font-size: 3.2rem;
}

.form-header p,
.form-note,
.form-success {
  color: var(--muted);
}

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

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

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

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(36, 36, 63, 0.14);
  border-radius: 8px;
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(43, 111, 124, 0.32);
  outline-offset: 3px;
}

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

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

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

.other-line-options {
  margin-top: 12px;
}

.other-line-options[hidden] {
  display: none;
}

.checkbox-grid label {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(36, 36, 63, 0.14);
  border-radius: 8px;
  background: #fbfaf8;
}

.checkbox-grid input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.form-actions button {
  border: 0;
}

.form-note {
  max-width: 340px;
  font-size: 0.92rem;
}

.form-success {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 111, 124, 0.22);
  border-radius: 8px;
  background: var(--soft-blue);
  font-weight: 800;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready [data-reveal="scale"] {
  transform: translate3d(0, 18px, 0) scale(0.985);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready [data-reveal="scale"].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.legal-hero {
  padding: 78px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.legal-hero h1 {
  max-width: 820px;
  font-size: 4.4rem;
}

.legal-shell {
  width: min(820px, calc(100% - 40px));
}

.legal-body {
  padding: 58px 0 88px;
}

.legal-content {
  color: var(--ink);
}

.legal-content p,
.legal-content h4 {
  margin: 0;
  font-family: inter-18pt, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0;
}

.legal-content p + p {
  margin-top: 18px;
}

.legal-content h4 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-weight: 900;
}

.legal-content a {
  color: var(--brand-deep);
  font-weight: 800;
  text-underline-offset: 4px;
}

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

  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 3.4rem;
  }

  .legal-hero h1 {
    font-size: 3.4rem;
  }

  .hero {
    min-height: auto;
  }

  .section-heading,
  .split-layout,
  .visual-layout,
  .carrier-shell,
  .hero-layout,
  .signup-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-self: center;
    width: min(100%, 460px);
  }

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

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

  .step-row article:nth-child(2) {
    border-right: 0;
  }

  .step-row article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(36, 36, 63, 0.12);
  }

  .signup-context {
    position: static;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 3rem;
  }

  h2,
  .form-header h2 {
    font-size: 2.32rem;
  }

  .lede {
    font-size: 1.1rem;
  }

  .legal-hero h1 {
    font-size: 2.55rem;
  }

  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-shell {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .brand img {
    width: 116px;
  }

  .hero {
    padding: 54px 0 36px;
  }

  .hero-layout {
    gap: 34px;
  }

  .hero-media {
    width: min(100%, 380px);
  }

  .hero-proof,
  .line-grid,
  .quote-grid,
  .step-row,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    margin-top: 40px;
  }

  .hero-proof div {
    min-height: auto;
  }

  .carrier-logo-grid,
  .checkbox-grid-wide {
    grid-template-columns: 1fr;
  }

  .step-row article {
    border-right: 0;
    border-bottom: 1px solid rgba(36, 36, 63, 0.12);
  }

  .step-row article:last-child {
    border-bottom: 0;
  }

  .visual-layout {
    gap: 34px;
  }

  .appointment-hero {
    padding: 58px 0 64px;
  }

  .footer-shell,
  .final-cta-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
