:root {
  --ink: #16213E;
  --muted: #4F566A;
  --coral: #FF5A3C;
  --coral-text: #D2381C;
  --sand: #F6F2EC;
  --line: #E6E1D8;
  --white: #FFFFFF;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Logo: italic coral ampersand with a diagonal "cut" through it */
.logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-size: 28px; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.amp { position: relative; display: inline-block; color: var(--coral); font-style: italic; }
.amp::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%;
  height: 3px; background: var(--cut-bg, var(--white)); transform: rotate(-30deg);
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 22px; border-radius: 10px; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-outline { border: 1px solid var(--line); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--coral-text); }
.nav .btn { padding: 11px 18px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--sand); }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.015em; line-height: 1.04; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  --cut-bg: var(--ink);
  flex: 1 1 400px; min-width: 0; aspect-ratio: 16 / 11; border-radius: 22px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-art .amp { font-family: var(--serif); font-size: clamp(160px, 22vw, 260px); line-height: 1; transform: translateY(8%); }
.hero-art .amp::after { height: 14px; left: -24px; right: -24px; }

/* Proof bar */
.proof { background: var(--sand); }
.proof .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.stat { font-family: var(--serif); font-size: 38px; line-height: 1.1; }

/* Brands I've worked on */
.brands { border-bottom: 1px solid var(--line); }
.brands .wrap { padding-top: 48px; padding-bottom: 52px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.brands .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logo-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; width: max-content;
  animation: logo-slide 40s linear infinite;
}
.marquee:hover .logo-track { animation-play-state: paused; }
.logo-track li { display: flex; align-items: center; height: 48px; padding: 0 32px; flex-shrink: 0; }
.logo-track img { height: 28px; width: auto; max-width: none; opacity: .78; transition: opacity .2s ease; }
.logo-track li.tall img { height: 44px; }
.logo-track img:hover { opacity: 1; }
@keyframes logo-slide {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (max-width: 700px) {
  .logo-track li { padding: 0 22px; }
  .logo-track img { height: 22px; }
  .logo-track li.tall img { height: 36px; }
  .logo-track { animation-duration: 30s; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-track li[aria-hidden="true"] { display: none; }
}

/* Sections */
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 40rem; margin-bottom: 40px; }
.section-head h2, .about h2, .cta h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.01em; }
.section-head p { font-size: 18px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px; background: var(--white);
  scroll-margin-top: 100px;
}
.card h3 { font-size: 28px; }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.card .more { margin-top: auto; font-weight: 600; color: var(--coral-text); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 40px; height: 40px; }

/* How it works */
.how { background: var(--ink); color: var(--white); }
.how h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step .num { font-family: var(--serif); font-size: 18px; color: var(--coral); }
.step h3 { font-size: 28px; }
.step p { opacity: .82; }

/* Results */
.results .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.result { background: var(--sand); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.result .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.result .big { font-family: var(--serif); font-size: clamp(34px, 4vw, 44px); line-height: 1.05; }

/* About */
.about { background: var(--sand); }
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about img { flex: 1 1 300px; min-width: 0; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.about-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; }
.about-copy p { font-size: 18px; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* CTA */
.cta-box {
  background: var(--coral); border-radius: 24px; padding: clamp(32px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-box > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-box p { font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.site-footer .logo { font-size: 22px; }

/* ---------- Multi-page additions ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav a[aria-current="page"] { color: var(--coral-text); }

/* Rotating hero word */
.rotator-head { display: flex; flex-direction: column; }
.rotator { display: grid; color: var(--coral-text); font-style: italic; overflow: hidden; padding-bottom: .08em; }
.rotator-word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40%);
  transition: opacity .5s ease, transform .5s ease;
}
.rotator-word.is-active { opacity: 1; transform: translateY(0); }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-40%); }
@media (prefers-reduced-motion: reduce) {
  .rotator-word { transition: opacity .3s ease; transform: none !important; }
}

/* Sub-page hero */
.page-hero { background: var(--sand); }
.page-hero .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.page-hero .pill { background: var(--white); }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -0.015em; line-height: 1.05; max-width: 15ch; }
.page-hero .lede { font-size: 19px; color: var(--muted); max-width: 40rem; }

.tinted { background: var(--sand); }
.narrow { max-width: 820px; }

/* Two-column split */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split-copy { display: flex; flex-direction: column; gap: 16px; }
.split-copy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.split-copy p { font-size: 17px; }

/* Card grid variants */
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card h3 { font-size: 26px; }
.card .num, .feature .num { font-family: var(--serif); font-size: 18px; color: var(--coral-text); }
.card a { color: var(--coral-text); }
.card-link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(22,33,62,.08); }

/* Search chips */
.search-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.search-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 15px; box-shadow: 0 2px 8px rgba(22,33,62,.04);
}
.search-chips li::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F566A' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}

/* Numbered feature list */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { font-size: 24px; margin-bottom: 6px; }

.steps-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Toolbox tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--white); display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: 22px; }

/* Compare columns */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.compare-col { border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.compare-col h3 { font-size: 28px; }
.compare-col.is-good { background: var(--ink); color: var(--white); border-color: var(--ink); }
.check-list, .x-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li, .x-list li { position: relative; padding-left: 30px; }
.check-list li::before, .x-list li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.check-list li::before { content: "✓"; color: var(--coral); }
.x-list li::before { content: "×"; color: var(--muted); font-size: 20px; line-height: 1.2; }
.x-list li { color: var(--muted); }

/* 9:16 to 16:9 demo */
.ratio-demo { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 32px; background: var(--sand); border-radius: 20px; min-height: 320px; }
.ratio-arrow { width: 48px; color: var(--coral-text); flex-shrink: 0; }
.frame { border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--white); background: var(--ink); }
.frame-tall { width: 120px; aspect-ratio: 9 / 16; font-size: 22px; }
.frame-wide { width: 260px; aspect-ratio: 16 / 9; font-size: 26px; background: linear-gradient(90deg, #22305a 0 22%, var(--ink) 22% 78%, #22305a 78% 100%); }
@media (max-width: 520px) {
  .ratio-demo { gap: 12px; padding: 20px; }
  .frame-tall { width: 70px; font-size: 16px; }
  .frame-wide { width: 150px; font-size: 18px; }
  .ratio-arrow { width: 32px; }
}

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 24px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral-text); font-family: var(--sans); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: 17px; }

/* Footer nav */
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--coral-text); }

@media (max-width: 700px) {
  .page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .nav { gap: 14px 18px; font-size: 14px; }
  .hero .wrap { padding-top: 48px; gap: 40px; }
  .section { padding: 64px 0; }
}

/* About page */
.about-hero { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 48px !important; }
.about-hero .split-copy { flex: 999 1 420px; min-width: 0; gap: 22px; }
.about-hero img { flex: 1 1 280px; min-width: 0; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 6px; }
.prose p { font-size: 18px; color: var(--muted); }

/* Contact page */
.contact-wrap { flex-direction: row !important; flex-wrap: wrap; align-items: flex-start !important; gap: 48px !important; }
.contact-intro { flex: 1 1 360px; min-width: 0; gap: 22px; }
.contact-intro .check-list { font-size: 17px; }
.lead-form {
  flex: 1 1 460px; min-width: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 12px 40px rgba(22,33,62,.06);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form select, .lead-form textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #CFC8BC; border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 48px;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.lead-form [aria-invalid="true"] { border-color: var(--coral-text); }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lead-form .choice {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 12px 14px; min-height: 48px;
  border: 1px solid #CFC8BC; border-radius: 12px; background: var(--white);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.lead-form .choice:hover { border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-box {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #A9A194; background: var(--white);
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease;
}
.choice-box::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.lead-form .choice:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.choice input:checked + .choice-box { background: var(--ink); border-color: var(--ink); }
.choice input:checked + .choice-box::after { opacity: 1; }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--coral); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; text-align: center; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 16px 22px; }
.form-note { font-size: 14px; text-align: center; }
.form-note a { color: var(--coral-text); }
.form-error { background: #FDECE8; color: #8A2412; border-radius: 10px; padding: 12px 14px; font-size: 15px; }

/* How it works: illustrative charts */
.step-viz {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 18px 18px 12px; margin-bottom: 14px;
}
.viz { width: 100%; height: auto; display: block; overflow: visible; }
.viz text { font-family: var(--sans); font-size: 12px; fill: rgba(255,255,255,.72); }
.viz-track rect { fill: rgba(255,255,255,.1); }
.viz-bar { fill: rgba(255,255,255,.85); transform-box: fill-box; transform-origin: left center; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.viz-bar.is-flag, .viz-frame.is-hook { fill: var(--coral); }
.viz-frame { fill: rgba(255,255,255,.14); }
.viz-play { fill: var(--ink); }
.viz-cut { stroke: var(--coral); stroke-width: 2; }
.viz-cut-head { fill: var(--coral); }
.viz-wave { fill: rgba(255,255,255,.55); transform-box: fill-box; transform-origin: center; transition: transform .6s ease; }
.viz-grid line { stroke: rgba(255,255,255,.08); }
.viz-axis { stroke: rgba(255,255,255,.3); }
.viz-area { fill: rgba(255,90,60,.16); transition: opacity 1s ease .6s; }
.viz-line { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease; }
.viz-line.is-control { stroke: rgba(255,255,255,.55); stroke-width: 2; stroke-dasharray: 5 6; transition: none; }
.viz-dot { fill: var(--coral); stroke: var(--ink); stroke-width: 2; transition: opacity .4s ease 1.4s; }
.viz-key { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 8px; flex-wrap: wrap; }
.key-dot { width: 10px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.85); margin-left: 6px; }
.key-dot:first-child { margin-left: 0; }
.key-dot.is-flag { background: var(--coral); }
.key-line { width: 18px; border-top: 2px dashed rgba(255,255,255,.55); margin-left: 6px; }

/* Animate in when scrolled into view (only when JS is running) */
.viz-anim .how-viz:not(.in-view) .viz-bar { transform: scaleX(0); }
.viz-anim .how-viz:not(.in-view) .viz-wave { transform: scaleY(.15); }
.viz-anim .how-viz:not(.in-view) .viz-line:not(.is-control) { stroke-dashoffset: 400; }
.viz-anim .how-viz:not(.in-view) .viz-area,
.viz-anim .how-viz:not(.in-view) .viz-dot { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .viz-bar, .viz-wave, .viz-line, .viz-area, .viz-dot { transition: none !important; }
}

/* Big closing CTA */
.cta-big { border-top: 1px solid var(--line); background: var(--white); }
.cta-big .wrap { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.cta-big h2 { font-size: clamp(42px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.cta-big h2 em { color: var(--coral-text); }
.cta-big p { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 38rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.btn-lg { padding: 18px 32px; border-radius: 999px; font-size: 16px; }
.btn-outline.btn-lg { border-color: var(--ink); }

/* Local: ads + map pack illustration */
.serp-section .split { align-items: flex-start; }
.serp-legend { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.serp-legend-item { display: flex; gap: 14px; align-items: flex-start; }
.serp-legend-item h3 { font-size: 24px; margin-bottom: 4px; }
.serp-tag {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px; background: var(--coral); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--sans);
}
.serp-tag-float { position: absolute; top: -12px; left: -12px; box-shadow: 0 0 0 4px var(--sand); }
.serp {
  margin: 0; background: var(--sand); border-radius: 22px; padding: clamp(18px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 16px; font-family: Arial, Helvetica, sans-serif; color: #202124;
}
.serp p { margin: 0; }
.serp-search {
  display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 999px;
  padding: 12px 18px; box-shadow: 0 2px 10px rgba(22,33,62,.08); font-size: 15px; color: #3c4043;
}
.serp-search svg { color: #5f6368; }
.serp-ad, .serp-pack { position: relative; background: var(--white); border-radius: 14px; box-shadow: 0 2px 12px rgba(22,33,62,.06); }
.serp-ad { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; outline: 2px solid var(--coral); outline-offset: -2px; }
.serp-sponsored { font-size: 12px; font-weight: 700; color: #202124; }
.serp-url { font-size: 13px; color: #4d5156; }
.serp-title { font-size: 18px; color: #1a0dab; }
.serp-desc { font-size: 13px; color: #4d5156; line-height: 1.5; }
.serp-ad-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 13px; color: #1a0dab; }
.serp-pack { overflow: visible; }
.serp-map { display: block; width: 100%; height: 130px; border-radius: 14px 14px 0 0; }
.serp-pin path { fill: #8A93A6; }
.serp-pin.is-you path { fill: var(--coral-text); }
.serp-listings { list-style: none; margin: 0; padding: 0; }
.serp-listings li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #ECEAE5; }
.serp-listings li.is-you { background: #FFF4F1; }
.serp-listings li:last-child { border-radius: 0 0 14px 14px; }
.serp-name { font-size: 15px; color: #1a0dab; font-weight: 600; }
.serp-meta { font-size: 13px; color: #4d5156; }
.serp-stars { color: #E7711B; letter-spacing: 1px; }
.serp-stars.is-dim { color: #E7A15F; }
.serp-open { font-size: 12px; color: #188038; }
.serp-open.is-closed { color: #B3261E; }
.serp-actions { display: flex; gap: 6px; flex-shrink: 0; }
.serp-actions span { font-size: 12px; border: 1px solid #DADCE0; border-radius: 999px; padding: 5px 10px; color: #1a73e8; }
.serp-caption { font-family: var(--sans); font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 480px) {
  .serp-actions span:last-child { display: none; }
}

/* Sub-page hero with background photo */
.page-hero.has-photo { position: relative; overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.page-hero.has-photo h1, .page-hero.has-photo .lede { text-shadow: 0 1px 18px rgba(22,33,62,.45); }
.page-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22,33,62,.9) 0%, rgba(22,33,62,.72) 38%, rgba(22,33,62,.25) 70%, rgba(22,33,62,.05) 100%);
}
.page-hero.has-photo .wrap { padding-top: clamp(96px, 12vw, 150px); padding-bottom: clamp(96px, 12vw, 150px); }
.page-hero.has-photo .lede { color: rgba(255,255,255,.86); }
.page-hero.has-photo .pill { background: rgba(255,255,255,.14); color: var(--white); backdrop-filter: blur(6px); }
.page-hero.has-photo .btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
@media (max-width: 700px) {
  .page-hero.has-photo::before { background: linear-gradient(180deg, rgba(22,33,62,.62) 0%, rgba(22,33,62,.78) 45%, rgba(22,33,62,.86) 100%); }
}

/* Keep inner panels visible on sand sections */
.tinted .serp, .tinted .ratio-demo { background: var(--white); }
.tinted .serp-tag-float { box-shadow: 0 0 0 4px var(--white); }
.cta-big.tinted { background: var(--sand); border-top: 0; }
.tinted .compare-col:not(.is-good), .tinted .tile, .tinted .result { background: var(--white); }

/* Homepage hero: moving Shopping ads */
.hero-ads {
  flex: 1 1 440px; min-width: 0; position: relative; overflow: hidden;
  background: var(--ink); border-radius: 22px; padding: 18px 0 14px;
  display: flex; flex-direction: column; gap: 14px;
}
.ad-search {
  display: flex; align-items: center; gap: 8px; margin: 0 18px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  border-radius: 999px; padding: 9px 14px; font-size: 13px;
}
.ad-row {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content;
  animation: ad-slide 45s linear infinite;
}
.ad-row-b { animation-direction: reverse; animation-duration: 38s; }
.hero-ads:hover .ad-row { animation-play-state: paused; }
@keyframes ad-slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
.ad-card {
  width: 172px; flex-shrink: 0; background: var(--white); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; font-family: Arial, Helvetica, sans-serif; color: #202124;
}
.ad-img { aspect-ratio: 1; background: #F4F4F2; display: flex; align-items: center; justify-content: center; }
.ad-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ad-body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 2px; }
.ad-body p { margin: 0; }
.ad-spon { font-size: 10px; font-weight: 700; color: #5f6368; }
.ad-title { font-size: 13px; line-height: 1.3; color: #1a0dab; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ad-price { font-size: 14px; font-weight: 700; }
.ad-was { font-weight: 400; color: #70757a; font-size: 12px; margin-left: 4px; }
.ad-store { font-size: 12px; color: #4d5156; }
.ad-caption { margin: 0 18px; font-size: 12px; color: rgba(255,255,255,.6); }
@media (max-width: 700px) {
  .ad-card { width: 148px; }
  .ad-title { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-row { animation: none; overflow-x: auto; width: auto; padding: 0 18px; }
  .ad-row li[aria-hidden="true"] { display: none; }
}

/* Display ads row */
.ad-row-a { animation-duration: 60s; }
.disp-row { animation-duration: 55s; }
.disp-card {
  width: 268px; flex-shrink: 0; background: var(--white); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; font-family: Arial, Helvetica, sans-serif; color: #202124;
}
.disp-img { aspect-ratio: 1.91 / 1; background: #E8E6E1; overflow: hidden; }
.disp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.disp-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 12px 12px; }
.disp-body p { margin: 0; }
.disp-head { font-size: 14px; font-weight: 700; line-height: 1.25; }
.disp-desc { font-size: 12px; color: #4d5156; margin-top: 2px !important; }
.disp-meta { font-size: 11px; color: #70757a; margin-top: 4px !important; }
.disp-cta { flex-shrink: 0; background: #1a73e8; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 8px 12px; }
@media (max-width: 700px) { .disp-card { width: 230px; } }
