:root {
  --seo-paper: #fcfaf8;
  --seo-ink: #101e36;
  --seo-accent: #43b7df;
  --seo-inset: clamp(1rem, 2.5vw, 2rem);
}

body { background: var(--seo-paper); color: var(--seo-ink); }
.mast-inner { min-height: clamp(4.5rem, 6.4vw, 5.75rem); }
.brand img { width: clamp(10rem, 18vw, 13.5rem); }
.seo-page .button.primary {
  background: linear-gradient(40deg, #0849af, #0865c5 65%, #0078a9);
}
.seo-page .button.primary:hover {
  background: linear-gradient(40deg, #073e96, #095ab0 65%, #006790);
}
.seo-page .button { border-radius: 1rem; }
.seo-page { width: var(--page-content-width); margin-inline: auto; padding-bottom: 1.25rem; }

.seo-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(1.25rem, 2.7vw, 2.6rem);
  padding-block: clamp(2rem, 3.5vw, 3rem) clamp(1.35rem, 2.45vw, 2rem);
}
.seo-opening .eyebrow { letter-spacing: .025em; }
.seo-opening h1 {
  font-size: clamp(2.65rem, 4.55vw, 4.15rem);
  font-weight: 750;
}
.seo-opening h1 em { font-size: 1.1em; letter-spacing: -.045em; }
.seo-intro {
  border-inline-start: 1px solid var(--seo-accent);
  padding-inline-start: clamp(1rem, 2vw, 1.55rem);
}
.seo-intro p { font-size: clamp(1.05rem, 1.66vw, 1.35rem); line-height: 1.4; }
.seo-intro-lead { font-weight: 650; text-wrap: balance; }
.seo-intro p + p { margin-top: .6rem; color: #30465d; }
.seo-intro .button { margin-top: .8rem; }

.seo-example {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  scroll-margin-top: 1rem;
  position: relative;
  isolation: isolate;
  align-items: center;
  min-height: clamp(24rem, 35vw, 27rem);
  overflow: hidden;
  border-radius: 1.35rem;
  background: #f5ece0;
}
.seo-example-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  height: 100%;
  object-fit: cover;
  object-position: 42% 52%;
}
.seo-search {
  grid-column: 2;
  margin: clamp(1rem, 2.25vw, 1.8rem);
  margin-inline-start: 0;
  padding: clamp(1rem, 1.8vw, 1.42rem);
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 .55rem 1.75rem #33200c24;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.seo-search-brand { font-size: 1.7rem; font-weight: 750; letter-spacing: -.035em; }
.seo-search-brand span:nth-child(1), .seo-search-brand span:nth-child(4) { color: #296ac9; }
.seo-search-brand span:nth-child(2), .seo-search-brand span:nth-child(6) { color: #c5372c; }
.seo-search-brand span:nth-child(3) { color: #a56b00; }
.seo-search-brand span:nth-child(5) { color: #188038; }
.seo-query {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-block: .46rem .78rem;
  padding: .56rem .95rem;
  font-size: .94rem;
  border: 1px solid #cbd3dc;
  border-radius: 1.55rem;
  background: #f6f8fa;
}
.seo-results { list-style: none; padding: 0; }
.seo-result { padding: .64rem .65rem; }
.seo-result + .seo-result { border-top: 1px solid #e1e8ee; }
.seo-result-featured {
  border: 1px solid #b7d6ed;
  border-inline-start: 3px solid #2085cc;
  border-radius: .62rem;
  background: #eef7ff;
}
.seo-result-featured + .seo-result { border-top: 0; }
.seo-result-header { display: flex; align-items: center; justify-content: space-between; gap: .45rem; }
.seo-result-business {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .5rem;
  font-size: .87rem;
  line-height: 1.18;
}
.seo-result-business strong, .seo-result-business small { display: block; }
.seo-result-business small { margin-top: .12rem; color: #43536a; font-size: .73rem; }
.seo-result-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #2b5139;
  background: #e3efe3;
  font-weight: 750;
}
.seo-result:nth-child(2) .seo-result-icon { color: #734914; background: #f4eadc; }
.seo-result:nth-child(3) .seo-result-icon { color: #4c4272; background: #ece7f4; }
.seo-result-owner {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .28rem .58rem;
  background: #075697;
  color: #fff;
  font-size: .73rem;
  font-weight: 730;
}
.seo-result-title {
  margin: .36rem 0 .14rem;
  color: #174ea6;
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  font-weight: 700;
  line-height: 1.23;
}
.seo-result-description { color: #374962; font-size: .81rem; line-height: 1.35; }
.seo-result:last-child { padding-bottom: .12rem; }

.seo-why {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--seo-inset);
  padding: clamp(1.4rem, 2.7vw, 2.5rem) var(--seo-inset);
  font-size: clamp(1.05rem, 1.54vw, 1.375rem);
  line-height: 1.38;
  margin-top: clamp(1rem, 2vw, 1.55rem);
  border-radius: 1.15rem;
  color: white;
  background: linear-gradient(110deg, #07397f, #07529a 52%, #00709f);
}
.seo-why h2, .seo-close h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  line-height: 1.05;
  font-style: italic;
}
.seo-why h2 em { display: block; }
.seo-why p { border-inline-start: 1px solid #8dd1ed; padding-inline-start: var(--seo-inset); }

.seo-story {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  margin-top: clamp(1rem, 2vw, 1.55rem);
  border: 1px solid #cddfea;
  border-radius: 1.25rem;
  background: linear-gradient(138deg, #f6fbfe, #eaf4fa);
}
.seo-story img { height: 100%; object-fit: cover; object-position: 47% center; }
.seo-story-copy { align-self: center; padding: clamp(1.3rem, 3vw, 2.9rem); }
.seo-story h2, .seo-plan h2 { font-size: clamp(2rem, 3.55vw, 3.1rem); }
.seo-story h2 em, .seo-plan h2 em { display: block; color: #0b5386; }
.seo-story p, .seo-plan p { color: #314761; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.5; }
.seo-story p { margin-top: .75rem; }
.seo-plan { padding: clamp(1.75rem, 3vw, 2.9rem) var(--seo-inset) .3rem; }
.seo-plan-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.3rem;
}
.seo-plan-steps > div { border-top: 1px solid #70b7db; padding-top: .8rem; }
.seo-plan-steps h3 { font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.18; }
.seo-plan-steps p { margin-top: .35rem; }
.seo-plan .seo-related { margin-top: 1.25rem; font-size: 1rem; }
.seo-related a { color: #0c5398; font-weight: 650; }

.seo-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-block: clamp(1rem, 2.1vw, 1.9rem);
  padding: 1.35rem var(--seo-inset);
  border-radius: 1.15rem;
  background: linear-gradient(110deg, #e5f5fe, #d5edf9);
}
.seo-close h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
@media (max-width: 850px) {
  .seo-opening, .seo-why, .seo-story, .seo-plan-steps { grid-template-columns: minmax(0, 1fr); }
  .seo-opening { row-gap: 1.25rem; }
  .seo-opening h1 { font-size: clamp(2.65rem, 7.2vw, 4.15rem); }
  .seo-intro, .seo-why p { border-inline-start: 0; padding-inline-start: 0; }
  .seo-intro { max-width: 40rem; }
  .seo-story img { height: auto; }
  .seo-plan { padding-inline: 0; }
  .seo-example { grid-template-columns: 1fr; min-height: 0; }
  .seo-example-photo {
    position: static;
    aspect-ratio: 2.1;
    height: auto;
    object-position: center 45%;
  }
  .seo-search { grid-column: 1; margin: 0; border-radius: 0; box-shadow: none; }
}

@media (max-width: 760px) {
  .mast-inner { min-height: 0; }
  .brand img { width: min(34vw, 10rem); }
  .mast-contact { padding-inline: .7rem; font-size: .875rem; }
}
@media (max-width: 400px) {
  .seo-search { padding: .8rem; }
  .seo-result { padding-inline: .48rem; }
  .seo-result-owner { padding-inline: .44rem; }
}
