/* Marketing home — Site Factory blocks: hero → letter → ratings (neuro-seo) → video reviews */

.page-home .header__cta {
  padding: 10px 18px;
  font-size: 14px;
}
.page-home .brand__tag {
  max-width: 22ch;
  line-height: 1.25;
  white-space: normal;
}
@media (max-width: 720px) {
  .page-home .header__cta { display: inline-flex; }
  .page-home .brand__tag { max-width: 14ch; font-size: 11px; }
}

/* Agency site modal */
.agency-modal[hidden] { display: none !important; }
.agency-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.agency-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 16, .55);
}
.agency-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #fffdf8;
  border: 1px solid var(--st-line, #ddd4c6);
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 28px 60px -28px rgba(18, 20, 16, .55);
}
.agency-modal__card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}
.agency-modal__card p { margin: 0 0 12px; line-height: 1.45; }
.agency-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.hm-hero__visual { margin: 0; position: relative; }
.hm-hero__visual img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 24px 50px -28px rgba(18, 20, 16, .45);
}
.hm-hero__caption {
  margin: 12px 4px 0;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.35;
  color: var(--st-ink, #121410);
  font-weight: 600;
}

/* ---------- 1. Hero ---------- */
.hm-hero {
  position: relative;
  padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 96px);
  overflow: clip;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255, 90, 31, .18), transparent 58%),
    radial-gradient(700px 420px at 92% 8%, rgba(30, 120, 255, .12), transparent 55%),
    linear-gradient(180deg, #f7f2ea 0%, #f3eee6 55%, #efe8dc 100%);
}
.hm-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(18, 20, 16, .04));
  pointer-events: none;
}
.hm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hm-kicker { margin: 0 0 14px; }
.hm-kicker span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--st-ink, #121410);
  padding: 6px 11px 5px;
  transform: rotate(-1deg);
}
.page-home h1 {
  font-size: clamp(22px, 3.1vw, 32px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0;
  max-width: 28ch;
}
.page-home h1 em {
  font-style: normal;
  color: var(--accent, #ff5a1f);
  white-space: nowrap;
}
.hm-benefits {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 36rem;
}
.hm-benefits li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: rgba(255, 253, 248, .78);
  border: 1px solid var(--st-line, #ddd4c6);
  border-radius: 14px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.4;
  color: var(--st-ink, #121410);
  box-shadow: 0 10px 28px -22px rgba(18, 20, 16, .35);
}
.hm-benefits li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent, #ff5a1f);
  transform: rotate(45deg);
}
.hm-hero .hero__actions { margin-top: 22px; }

.hm-hero__visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--st-line, #ddd4c6);
  box-shadow:
    0 28px 60px -28px rgba(18, 20, 16, .45),
    0 0 0 1px rgba(255, 255, 255, .35) inset;
  background: #0b1220;
}
.hm-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 2. Letter / author ---------- */
.hm-letter {
  padding-block: clamp(48px, 8vw, 100px);
  background: #fffdf8;
}
.hm-letter__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.hm-letter__photo { margin: 0; }

.author-portrait {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.author-portrait__frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #efe8dc;
  border: 1px solid var(--st-line, #ddd4c6);
  box-shadow: 0 24px 50px -28px rgba(18, 20, 16, .45);
}
.author-portrait__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.author-portrait__corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 90, 31, .85);
  pointer-events: none;
}
.author-portrait__corner--tl {
  top: 14px; left: 14px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 8px;
}
.author-portrait__corner--br {
  bottom: 14px; right: 14px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 8px;
}
.author-plaque {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--st-line, #ddd4c6);
  border-radius: 14px;
}
.author-plaque__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.author-plaque__name {
  font-weight: 700;
  font-size: 16px;
}
.author-plaque__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent, #ff5a1f);
  flex: none;
}
.author-plaque__role {
  font-size: 13px;
  color: var(--st-muted, #5c574e);
  line-height: 1.35;
}

.hm-bubble {
  background: #fff;
  border: 1px solid var(--st-line, #ddd4c6);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 22px 48px -30px rgba(18, 20, 16, .4);
}
.hm-bubble p {
  margin: 0 0 14px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--st-ink, #121410);
}
.hm-bubble .btn { margin-top: 8px; }

/* ---------- 3. Ratings (neuro-seo cards) ---------- */
.ratings-section {
  background: #fff;
  padding-block: clamp(56px, 8vw, 120px);
}
.ratings-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
}
.ratings-intro { max-width: 540px; }
.section-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}
.ratings-sub {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--st-muted, #5c574e);
  max-width: 540px;
  text-wrap: pretty;
}
.ratingsSwiper {
  width: 225px;
  height: 380px;
  margin: 0 auto;
}
.ratingsSwiper .swiper-slide {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(20, 18, 12, .28), 0 0 0 1px var(--st-line, #ddd4c6);
}
.ratingsSwiper .swiper-slide img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  background: #f1eee8;
  box-sizing: border-box;
}
.ratingsSwiper .rating-meta {
  padding: 10px 14px 14px;
  border-top: 1px solid #f1eee8;
}
.ratingsSwiper .rating-meta b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.ratingsSwiper .rating-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--st-muted, #5c574e);
  line-height: 1.35;
}

/* ---------- 4. Video testimonials ---------- */
.testimonials {
  background: #f7f2ea;
  padding-block: clamp(56px, 8vw, 110px);
}
.testimonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.testimonials__nav { display: flex; gap: 8px; flex: none; }
.adv-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--st-line, #ddd4c6);
  background: #fff;
  color: var(--st-ink, #121410);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.adv-nav:hover { border-color: var(--accent, #ff5a1f); color: var(--accent, #ff5a1f); }

.testimonials__card {
  background: #fff;
  border: 1px solid var(--st-line, #ddd4c6);
  border-radius: 18px;
  overflow: hidden;
  height: auto;
  box-shadow: 0 18px 40px -28px rgba(18, 20, 16, .35);
}
.testimonials__media {
  position: relative;
  background: #111;
  aspect-ratio: 3 / 4;
}
.testimonials__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonials__play {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.testimonials__play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 90, 31, .95);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
}
.testimonials__video-slot {
  position: absolute;
  inset: 0;
  background: #000;
}
.testimonials__video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.testimonials__media.is-playing .testimonials__play { display: none; }
.testimonials__body { padding: 16px 18px 20px; }
.testimonials__name { margin: 0 0 4px; font-weight: 600; font-size: 16px; }
.testimonials__field,
.testimonials__quote,
.testimonials__sites {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--st-muted, #5c574e);
}
.testimonials__sites a { text-decoration: underline; text-underline-offset: 2px; }
.testimonials__sites a:hover { color: var(--accent, #ff5a1f); }

@media (max-width: 900px) {
  .hm-hero__grid,
  .hm-letter__grid,
  .ratings-grid {
    grid-template-columns: 1fr;
  }
  .page-home h1 { max-width: none; font-size: clamp(24px, 7.2vw, 34px); }
  .author-portrait { max-width: 320px; }
  .ratings-intro { max-width: none; }
  .testimonials__head { align-items: center; }
}
