/* Websites Run Gutter, marketing site v3 (WRG-154): shared shell, nav, footer, buttons, the mini-site
   used to show a house template, and the FAQ. Each page adds its own stylesheet. System fonts only,
   as every site template (D-75), so nothing is fetched from another origin. */
:root {
  --k: #111;
  --mut: #555;
  --line: #e6e6e6;
  --soft: #f6f6f4;
  --hv: #f4c21b;
  --ink2: #1b2433;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --heavy: 'Arial Black', 'Helvetica Neue', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #fff;
  color: var(--k);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
.w {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .w {
    padding: 0 16px;
  }
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 50;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.navin {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 28px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.lockup::before {
  content: 'WR';
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--hv);
  display: grid;
  place-items: center;
  font-family: var(--heavy);
  font-weight: 900;
  font-size: 12px;
  color: #111;
  flex: none;
}
.lockup .by {
  font-weight: 400;
  font-size: 13px;
  color: var(--mut);
}
.logo i {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--hv);
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--heavy);
  font-weight: 900;
  font-size: 12px;
  color: #111;
}
.links {
  display: flex;
  gap: 24px;
  font-size: 16px;
  flex-wrap: wrap;
}
.links a {
  text-decoration: none;
  padding: 8px 0;
}
.links a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
}
.right .login {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 860px) {
  .links {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }
  .right {
    margin-left: auto;
  }
}

/* buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  background: var(--k);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  min-height: 44px;
}
.pill:hover {
  background: #2a2a2a;
}
.pill.hv {
  background: var(--hv);
  color: var(--k);
  padding: 11px 26px;
}
.pill.hv:hover {
  background: #e7b40e;
}
.pill.out {
  background: #fff;
  color: var(--k);
  box-shadow: inset 0 0 0 1px var(--k);
}
.tl {
  color: var(--k);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 16px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  font-weight: 500;
  margin: 0 0 18px;
}

/* FAQ: native details, no script needed */
.faq h2 {
  margin: 0 0 36px;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.03em;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 19px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 26px;
  line-height: 1;
  width: 28px;
  text-align: center;
  flex: none;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  margin: -6px 0 24px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
}

/* closing call to action */
.closer {
  text-align: center;
  padding: 120px 16px;
  background: radial-gradient(closest-side, #fff2b8, rgba(255, 255, 255, 0));
}
.closer h2 {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.035em;
}
.closer p {
  margin: -12px 0 28px;
  font-size: 18px;
  color: #333;
}

/* footer */
.ft {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  font-size: 14px;
}
.ftg {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .ftg {
    grid-template-columns: 1fr 1fr;
  }
}
.ftg h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
}
.ftg a {
  display: block;
  margin-bottom: 10px;
  color: #333;
  text-decoration: none;
}
.ftg a:hover {
  text-decoration: underline;
}
.ftg p {
  color: #555;
  line-height: 1.5;
  max-width: 280px;
  margin: 12px 0 0;
}
.legal {
  display: flex;
  gap: 22px;
  margin-top: 56px;
  color: #555;
  font-size: 13px;
  flex-wrap: wrap;
}
.legal a {
  color: #555;
}

/* the mini-site: a house template drawn at any width (container units scale it) */
.ms {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--bf);
}
.ms-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ms-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ov);
}
.ms-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 2.4cqw 3.6cqw;
  font-size: 1.6cqw;
  color: var(--navInk);
}
.ms-nav b {
  font-size: 2.1cqw;
  margin-right: auto;
  font-weight: 700;
}
.ms-nav em,
.ms-copy em {
  font-style: normal;
  background: var(--acc);
  color: var(--accInk);
  font-weight: 700;
  border-radius: var(--rad);
}
.ms-nav em {
  padding: 1cqw 1.8cqw;
}
.ms-copy {
  position: absolute;
  z-index: 1;
  color: var(--heroInk);
}
.ms-copy h4 {
  margin: 0;
  font-family: var(--hf);
  font-weight: var(--hw);
  font-size: 6.4cqw;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.ms-copy p {
  margin: 1.6cqw 0 0;
  font-size: 1.9cqw;
  opacity: 0.92;
}
.ms-copy em {
  display: inline-block;
  margin-top: 2.6cqw;
  font-size: 1.8cqw;
  padding: 1.3cqw 2.4cqw;
}
.ms.center .ms-copy {
  left: 10%;
  right: 10%;
  top: 52%;
  transform: translateY(-45%);
  text-align: center;
}
.ms.left .ms-copy {
  left: 5.5%;
  bottom: 10%;
  max-width: 56%;
}
.ms.split .ms-img {
  left: 46%;
}
.ms.split .ms-img::after {
  display: none;
}
.ms.split .ms-copy {
  left: 5.5%;
  top: 27%;
  width: 37%;
}
.ms.block .ms-copy {
  left: 5.5%;
  bottom: 8%;
  max-width: 50%;
  background: var(--bg);
  padding: 3.6cqw;
  border-radius: var(--rad);
}

/* phone mock of a house template */
.mp {
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--bf);
  text-align: left;
}
.mp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-size: 12px;
}
.mp-nav i {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow:
    0 5px 0 currentColor,
    0 -5px 0 currentColor;
}
.mp-img {
  height: 42%;
  background-size: cover;
  background-position: center;
}
.mp-copy {
  padding: 14px;
}
.mp-copy h4 {
  margin: 0;
  font-family: var(--hf);
  font-weight: var(--hw);
  font-size: 22px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.mp-copy p {
  margin: 6px 0 12px;
  font-size: 11px;
  opacity: 0.75;
}
.mp-copy em {
  display: block;
  text-align: center;
  font-style: normal;
  background: var(--acc);
  color: var(--accInk);
  padding: 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.mp-svc {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-svc span {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  color: #111;
}

/* The pause button for anything that plays on its own (WCAG 2.2.2): the template reel and the
   Instant Quote showcase. site.js shows it, sets its label and adds .is-play once the visitor has
   paused, so the icon always matches what the button will do. */
.pausebtn,
.qsx-pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--k);
  color: var(--k);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pausebtn::before,
.qsx-pause::before {
  content: '';
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  box-sizing: border-box;
}
.pausebtn.is-play::before,
.qsx-pause.is-play::before {
  width: 0;
  height: 0;
  border: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.pausebtn[hidden],
.qsx-pause[hidden] {
  display: none;
}
.pausebtn:focus-visible,
.qsx-pause:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* narrow phones: keep the logo, Log in and Start now on one row above the links */
@media (max-width: 520px) {
  .navin {
    gap: 12px;
  }
  .logo,
  .lockup {
    font-size: 15px;
    gap: 8px;
  }
  .right {
    gap: 12px;
    font-size: 15px;
  }
  .right .pill.hv {
    padding: 9px 16px;
    font-size: 15px;
  }
}
@media (max-width: 520px) {
  /* the endorsement goes under the name instead of beside it */
  .lockup {
    display: grid;
    grid-template-columns: 30px auto;
    column-gap: 8px;
    line-height: 1.1;
  }
  .lockup::before {
    grid-row: span 2;
  }
  .lockup .by {
    font-size: 11px;
  }
}
@media (max-width: 400px) {
  /* room for the lockup and Start now on one row; Log in stays in the footer */
  .right .login {
    display: none;
  }
}

/* Tap targets (WRG-185): every link and control is at least 44px tall, Apple's minimum touch target
   and WCAG 2.5.5's. Height only: widths are already wide enough, and the look is unchanged. The footer's
   stacked links grow only where fingers are likely; on a desktop their 10px gaps already clear WCAG
   2.5.8's 24px spacing. */
.skip:focus {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.lockup {
  min-height: 44px;
}
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
.tl {
  min-height: 44px;
}
@media (max-width: 900px), (pointer: coarse) {
  .ftg a:not(.logo) {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }
  .legal {
    align-items: center;
  }
  .legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
