/* Make It Ring — shared styles for the v2 ad landing pages
   (moving-ads, cleaning-ads, restoration-ads) */

:root { --accent: #FF5A1F; }

html { -webkit-text-size-adjust: 100%; }
/* clip (not hidden) — `hidden` makes the page a scroll container and breaks position:sticky */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body { margin: 0; background: #e9e9e7; font-family: 'Archivo', Helvetica, Arial, sans-serif; color: #111; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #111; text-decoration: none; }
a:hover { color: #000; opacity: .75; }
img { max-width: 100%; }
input, button, select { font-family: inherit; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .plus { transform: rotate(45deg); }
details[open] .openhint { display: none; }
.plus { transition: transform 160ms ease; display: inline-block; }
.selectwrap { position: relative; flex: 1 1 190px; min-width: 0; display: block; }
.selectwrap select { width: 100%; height: 48px; border: 1.5px solid #d8d8d4; border-radius: 999px; background: #fff; font-size:17.5px; font-weight: 600; color: #111; outline: none; appearance: none; -webkit-appearance: none; padding: 0 44px 0 18px; cursor: pointer; }
.selectwrap select:focus { border-color: #111; }
.selectwrap .caret { position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2.5px solid #111; border-bottom: 2.5px solid #111; transform: rotate(45deg); pointer-events: none; }
.selectwrap.dark select { background: #2e2e2e; border-color: #4a4a4a; color: #fff; }
.selectwrap.dark select:focus { border-color: #fff; }
.selectwrap.dark .caret { border-right-color: #fff; border-bottom-color: #fff; }
@media (max-width: 520px) { .selectwrap { flex: 1 1 100%; } }

.shell {
  padding: calc(10px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px))
           calc(16px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px));
}
@media (min-width: 700px) {
  .shell {
    padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px))
             calc(20px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
  }
}
.card { border-radius: 28px; padding: 26px 20px; }
@media (min-width: 700px) { .card { padding: 48px 40px; } }
@media (min-width: 1000px) { .card { padding: 68px 60px; } }
.pad { border-radius: 20px; padding: 22px 20px; }
@media (min-width: 700px) { .pad { padding: 30px 26px; } }

.h2 { font-size: clamp(30px, 6.6vw, 50px); letter-spacing: -0.05em; font-weight: 900; line-height: 1.02; margin: 0 0 10px; }
.lede { font-size: clamp(17.5px, 4vw, 19.5px); color: #555; line-height: 1.55; margin: 0 0 26px; }
@media (min-width: 700px) { .lede { margin-bottom: 42px; } }
.badge { display: inline-block; border-radius: 8px; padding: 7px 13px; font-size:13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.mono { font-family: 'Archivo', Helvetica, Arial, sans-serif; font-weight: 600; }

.g2 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g3 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g4 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .split { gap: 44px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.wide { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .wide { gap: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ba { display: none; }
@media (min-width: 760px) { .ba { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bamobile { display: block; }
@media (min-width: 760px) { .bamobile { display: none; } }
.stats3 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) and (max-width: 899px) { .stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stats3 > .pad p:first-child { font-size: clamp(21.5px, 3.4vw, 35.5px); }

.hero { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .hero { gap: 52px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.herostack { position: relative; height: 330px; min-width: 0; }
@media (min-width: 560px) { .herostack { height: 440px; } }
@media (min-width: 900px) { .herostack { height: 500px; } }

.inputrow { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 8px 8px 10px; max-width: 540px; flex-wrap: wrap; }
.gobtn { border: 0; border-radius: 999px; padding: 0 24px; height: 48px; font-size:16.5px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: 0 0 auto; background: var(--accent); color: #fff; }
.gobtn:hover { opacity: .85; }
@media (max-width: 520px) { .inputrow { border-radius: 20px; padding: 10px; } .gobtn { flex: 1 1 100%; } }

.assurances { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
@media (min-width: 620px) { .assurances { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.navlinks { display: none; }
@media (min-width: 940px) { .navlinks { display: flex; align-items: center; gap: 24px; font-size:15.5px; font-weight: 500; } }
.navphone { display: none; }
@media (min-width: 620px) { .navphone { display: inline-flex; } }
.moretoggle { display: none; }
@media (max-width: 699px) { .moretoggle { display: flex; } }
@media (max-width: 560px) { button, select { min-height: 44px; } }


/* Vetted signal in the hero */
.vetted {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #666;
}
.vetted-stars {
  font-size: 15px;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
}

/* Testimonial video */
.vid {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  transition: transform 140ms ease, background 140ms ease;
}
.vid-play svg { margin-left: 3px; }
.vid-play:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.vid-play:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 3px; }
.vid.is-playing .vid-play { display: none; }

/* The comparison panels have no separate mobile markup, unlike the case-study
   .ba block which pairs with .bamobile. Hiding them left the section empty on
   phones, so stack them instead. */
@media (max-width: 759px) {
  #compare .ba { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* The four consultation cards sat two-up on phones, which squeezed each one to
   about 170px and made the headings wrap to four lines. One column, with the
   number as a marker beside the text, reads as a list instead of a grid. */
@media (max-width: 619px) {
  #consult .g4 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #consult .g4 > .pad {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 15px;
    align-items: start;
    padding: 18px 18px 20px;
  }
  #consult .g4 > .pad > .mono {
    grid-row: 1 / span 2;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    /* the markup sets colour, size and margin inline, so these have to win */
    margin: 0 !important;
    color: #fff !important;
    font-size: 13.5px !important;
  }
  #consult .g4 > .pad > h3 { margin: 4px 0 7px; font-size: 18.5px; }
  #consult .g4 > .pad > p { margin: 0; font-size: 16px; }
}

/* On a phone, forcing two equal columns left each chip about 170px, which is
   narrower than the labels; they wrapped to two lines and sat unevenly. Let
   the chips size to their own text and flow instead: two on the first row,
   one on the second, every label on a single line. */
@media (max-width: 619px) {
  .assurances { display: flex; flex-wrap: wrap; gap: 8px; }
  /* the chip sets padding, gap and label size inline, so these must win */
  .assurances > span { flex: 0 1 auto; min-width: 0; padding: 0 11px !important; gap: 6px !important; }
  .assurances > span > span { white-space: nowrap; font-size: 15px !important; }
  .assurances > span > img { width: 16px !important; height: 16px !important; }
}
