/* Brand websites (sherpaquote.com, trustyquote.com): one stylesheet, each site's colors in its /assets/theme.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 17px / 1.6 var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  color: var(--ink);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--link);
}
h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 800;
}
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 760;
}
h3 {
  font-size: 19px;
  font-weight: 700;
}
p {
  margin: 0 0 14px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 780px;
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---- header ---- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.logo img {
  height: 34px;
  width: auto;
}
.logo .accent {
  color: var(--brand);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover {
  color: var(--brand);
}
.nav a[aria-current="page"] {
  color: var(--brand);
}
/* The header's "Get Started" button keeps its own text color (the menu link color was overriding it). */
.nav .btn,
.nav .btn:hover,
.menu-panel .btn {
  color: var(--cta-ink);
}
.menu {
  display: none;
  margin-left: auto;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 18px;
  display: grid;
  gap: 4px;
}
.menu-panel a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.menu-panel .btn {
  margin-top: 10px;
  justify-content: center;
  border-bottom: 0;
}

/* ---- buttons + ZIP form ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 750;
  text-decoration: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover {
  filter: brightness(0.96);
}
.zip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}
.zip input {
  flex: 1 1 180px;
  min-width: 0;
  font: inherit;
  font-size: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #111;
}
.zip .btn {
  flex: 0 0 auto;
  padding: 13px 22px;
  font-size: 17px;
}
.fine {
  font-size: 14px;
  margin-top: 10px;
}

/* ---- sections ---- */
section {
  padding: 72px 0;
}
section.alt {
  background: var(--tint);
}
.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
}
.grid {
  display: grid;
  gap: 18px;
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child {
  margin-bottom: 0;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--brand);
  margin-bottom: 14px;
}
.icon svg {
  width: 24px;
  height: 24px;
}
.step-num {
  font-weight: 800;
  color: var(--brand);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.more {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
}

/* ---- hero ---- */
.hero {
  padding: 72px 0 32px;
}
/* Less air between the hero and the first section (Calvin, Oct 27). */
.hero + section {
  padding-top: 40px;
}
.hero .fine {
  color: var(--hero-muted, var(--muted));
}
.hero-split .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-photo {
  position: relative;
  color: #fff;
  background: var(--hero-bg) center / cover no-repeat;
  --hero-muted: rgba(255, 255, 255, 0.85);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 18, 38, 0.86) 0%, rgba(8, 18, 38, 0.62) 55%, rgba(8, 18, 38, 0.25) 100%);
}
.hero-photo .wrap {
  position: relative;
}
.hero-photo h1 {
  color: #fff;
}
.hero-photo .lede {
  color: rgba(255, 255, 255, 0.9);
}
.page-head {
  padding: 56px 0 24px;
}

/* ---- FAQ ---- */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
}
.faq details p {
  margin: 10px 0 0;
}

/* ---- guides ---- */
.guide {
  display: flex;
  flex-direction: column;
}
.guide .tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: auto;
}

/* ---- forms ---- */
.form {
  display: grid;
  gap: 16px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  font-size: 15px;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #111;
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.err {
  color: #b42318;
  font-weight: 600;
}
.err:empty {
  display: none;
}
.notice {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 20px 22px;
}

/* ---- legal pages ---- */
.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 8px;
}
.legal a {
  overflow-wrap: anywhere;
}

/* ---- footer ---- */
.site-footer {
  background: var(--foot-bg);
  color: var(--foot-ink);
  padding: 48px 0 40px;
  font-size: 15px;
}
.site-footer a {
  color: var(--foot-ink);
}
.site-footer .logo {
  color: var(--foot-ink);
  margin-bottom: 14px;
}
.site-footer .logo .accent {
  color: var(--foot-accent);
}
.disclosure {
  max-width: 760px;
  opacity: 0.92;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0;
}
.foot-legal {
  opacity: 0.75;
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .hero-split .wrap {
    grid-template-columns: 1fr;
  }
  /* Phones and tablets: the hero art comes first, above the headline (Calvin, Oct 27). */
  .hero-split img {
    order: -1;
  }
  .g3,
  .g4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 48px 0;
  }
  .hero {
    padding: 32px 0 16px;
  }
  .g3,
  .g4,
  .form .row {
    grid-template-columns: 1fr;
  }
  .zip .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---- guides: cards that link, and the article page ---- */
a.card.guide {
  color: inherit;
  text-decoration: none;
}
a.card.guide:hover {
  border-color: var(--brand);
}
a.card.guide h3 {
  color: var(--heading);
}
.article {
  margin-top: 28px;
}
.article h2 {
  font-size: 26px;
  margin: 34px 0 10px;
}
.article h3 {
  margin: 24px 0 8px;
}
.article ul,
.article ol {
  padding-left: 22px;
}
.article li {
  margin-bottom: 6px;
}
.article blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--tint);
  border-radius: var(--radius-sm);
}
.note {
  margin-top: 32px;
  font-size: 15px;
}

/* ---- "we need this info" (an open item shown on the page until it's filled in) ---- */
.needinfo {
  border: 3px dashed #d92d20;
  background: #fff4f2;
  color: #5a1a14;
  border-radius: var(--radius);
  padding: 20px 22px;
}
.needinfo-h {
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #b42318;
  font-size: 20px;
  margin-bottom: 8px;
}

/* Card titles that are links (e.g. "Your info, handled with care."): no underline until hovered (Calvin, Oct 27). */
.card h3 a {
  color: inherit;
  text-decoration: none;
}
.card h3 a:hover,
.card h3 a:focus-visible {
  text-decoration: underline;
}
