/* SEO search optimisation landing — light open family (GEO / brand / social). */

body.seoh-standalone-landing {
  --seoh-ink: #111216;
  --seoh-navy: #163a5f;
  --seoh-blue: #2b6cb0;
  --seoh-paper: #ffffff;
  --seoh-soft: #f3f7fb;
  --seoh-lime: #c6f135;
  --seoh-lime-dim: rgba(198, 241, 53, 0.22);
  --seoh-muted: #5a616c;
  --seoh-line: rgba(17, 18, 22, 0.1);
  --seoh-radius: 16px;
  --seoh-max: min(1120px, 100%);
  --page-gutter: clamp(1.25rem, 3.75vw, 3.25rem);
  background: var(--seoh-paper);
  color: var(--seoh-ink);
}

body.seoh-standalone-landing .site-wrap::before {
  display: none;
}

body.seoh-standalone-landing .site-main {
  padding-top: var(--site-header-offset, 5rem);
  background: var(--seoh-paper);
}

.seoh-land-root {
  --seoh-ink: #111216;
  --seoh-navy: #163a5f;
  --seoh-blue: #2b6cb0;
  --seoh-paper: #ffffff;
  --seoh-soft: #f3f7fb;
  --seoh-lime: #c6f135;
  --seoh-lime-dim: rgba(198, 241, 53, 0.22);
  --seoh-muted: #5a616c;
  --seoh-line: rgba(17, 18, 22, 0.1);
  --seoh-radius: 16px;
  --seoh-max: min(1120px, 100%);
  color: var(--seoh-ink);
  background: var(--seoh-paper);
}

.seoh-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seoh-muted);
  margin: 0 0 0.65rem;
}

.seoh-section-inner {
  width: var(--seoh-max);
  margin-inline: auto;
}

.seoh-land-root h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  margin-top: 0.35rem;
  color: var(--seoh-ink);
  max-width: 24em;
}

.seoh-lead {
  max-width: 42rem;
  color: var(--seoh-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 0.75rem;
}

.seoh-n {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--seoh-blue);
  margin-bottom: 0.45rem;
}

.seoh-callout {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--seoh-lime);
  background: var(--seoh-paper);
  border-radius: 0 var(--seoh-radius) var(--seoh-radius) 0;
  color: var(--seoh-navy);
  font-weight: 600;
  line-height: 1.65;
  max-width: 42rem;
}

/* —— Hero —— */
.seoh-hero {
  padding: clamp(1.25rem, 3vw, 2rem) var(--page-gutter) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 55% at 88% 12%, rgba(43, 108, 176, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 80%, rgba(198, 241, 53, 0.14), transparent 50%),
    linear-gradient(180deg, #f5f9fc 0%, var(--seoh-paper) 72%);
  color: var(--seoh-ink);
}

.seoh-hero-grid {
  max-width: min(1200px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.seoh-hero-copy h1 {
  font-family: var(--font-heading, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif);
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--seoh-navy);
  max-width: 14em;
  margin: 0;
}

.seoh-hero-thesis {
  margin-top: 0.85rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--seoh-ink);
  max-width: 30rem;
}

.seoh-hero-thesis mark {
  background: var(--seoh-lime);
  color: var(--seoh-ink);
  padding: 0.08em 0.28em;
  border-radius: 4px;
}

.seoh-hero-lead {
  margin-top: 1.1rem;
  max-width: 38rem;
  color: var(--seoh-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.seoh-hero-pillars {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.seoh-hero-pillars li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--seoh-ink);
  background: rgba(43, 108, 176, 0.1);
  border: 1px solid rgba(43, 108, 176, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.seoh-kpi-strip {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.seoh-kpi-strip li {
  background: var(--seoh-paper);
  border: 1px solid var(--seoh-line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

.seoh-kpi-strip strong {
  display: block;
  font-size: 1.2rem;
  color: var(--seoh-navy);
  line-height: 1.2;
}

.seoh-kpi-strip span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--seoh-muted);
  line-height: 1.4;
}

.seoh-kpi-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--seoh-muted);
  line-height: 1.6;
  max-width: 40rem;
}

.seoh-kpi-note a {
  color: var(--seoh-navy);
  font-weight: 600;
  text-underline-offset: 2px;
}

.seoh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.seoh-hero-visual {
  margin: 0;
  border-radius: calc(var(--seoh-radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--seoh-line);
  box-shadow: 0 28px 72px rgba(22, 58, 95, 0.12);
}

.seoh-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* —— Advantages —— */
.seoh-why {
  padding: clamp(2.4rem, 5vw, 3.75rem) var(--page-gutter);
  background: var(--seoh-soft);
}

.seoh-why-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.seoh-why-grid li {
  background: var(--seoh-paper);
  border: 1px solid var(--seoh-line);
  border-radius: var(--seoh-radius);
  padding: 1.35rem 1.2rem;
  box-shadow: 0 10px 28px rgba(22, 58, 95, 0.05);
}

.seoh-why-grid strong {
  display: block;
  font-size: 1.08rem;
  color: var(--seoh-ink);
  margin-bottom: 0.45rem;
}

.seoh-why-grid p {
  margin: 0;
  color: var(--seoh-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* —— Carousel —— */
.seoh-carousel {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) var(--page-gutter);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(43, 108, 176, 0.1), transparent 60%),
    var(--seoh-paper);
  color: var(--seoh-ink);
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

.seoh-carousel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
  margin-top: 1.75rem;
  overflow: visible;
}

.seoh-carousel-card {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  transition: z-index 0s linear 0.35s;
}

.seoh-carousel-card.is-seoh-armed {
  z-index: 8;
  transition: z-index 0s;
}

.seoh-carousel-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(22, 58, 95, 0.1);
  border: 1px solid var(--seoh-line);
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.seoh-carousel-open:focus-visible {
  outline: 2px solid var(--seoh-blue);
  outline-offset: 3px;
}

.seoh-carousel-open img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.seoh-carousel-card.is-seoh-armed .seoh-carousel-open img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .seoh-carousel-open,
  .seoh-carousel-open img {
    transition: none;
  }

  .seoh-carousel-card.is-seoh-armed .seoh-carousel-open img {
    transform: none;
  }
}

.seoh-carousel-card figcaption {
  padding: 0.7rem 0.15rem 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--seoh-ink);
}

/* * { margin:0 } kills UA dialog centering — force viewport center */
.seoh-lightbox {
  position: fixed;
  inset: 0;
  width: min(520px, 92vw);
  height: fit-content;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.seoh-lightbox::backdrop {
  background: rgba(17, 18, 22, 0.72);
}

.seoh-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.seoh-lightbox p {
  margin: 0.65rem 0 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.seoh-lightbox-close {
  position: absolute;
  top: -0.2rem;
  right: 0;
  transform: translateY(-120%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Six services —— */
.seoh-services {
  padding: clamp(2.4rem, 5vw, 3.75rem) var(--page-gutter);
  background: var(--seoh-soft);
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

.seoh-service-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.seoh-service-grid li {
  background: var(--seoh-paper);
  border: 1px solid var(--seoh-line);
  border-radius: var(--seoh-radius);
  padding: 1.25rem 1.15rem 1.35rem;
}

.seoh-service-n {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--seoh-blue);
  margin-bottom: 0.5rem;
}

.seoh-service-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--seoh-ink);
}

.seoh-service-grid p {
  margin: 0;
  color: var(--seoh-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* —— Portfolio proof —— */
.seoh-proof {
  padding: clamp(2.4rem, 5vw, 3.75rem) var(--page-gutter);
  background: var(--seoh-paper);
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

.seoh-proof-block {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 1.75rem;
  background: var(--seoh-soft);
  border: 1px solid var(--seoh-line);
  border-radius: var(--seoh-radius);
}

.seoh-proof-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: var(--seoh-navy);
}

.seoh-proof-block > p {
  margin: 0 0 1.1rem;
  color: var(--seoh-muted);
  line-height: 1.7;
  max-width: 48rem;
}

.seoh-proof-block .th-dash-evidence,
.seoh-proof-block .geo-shot--frame {
  margin: 0 0 1.1rem;
  max-width: 100%;
}

.seoh-proof-block .th-dash-evidence img,
.seoh-proof-block .geo-shot--frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.seoh-proof-block figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--seoh-muted);
  line-height: 1.55;
}

.seoh-proof-takeaway {
  margin: 0.75rem 0 0.85rem !important;
  font-weight: 600;
  color: var(--seoh-ink) !important;
}

.seoh-proof-link {
  color: var(--seoh-navy);
  font-weight: 600;
  text-underline-offset: 2px;
}

.seoh-proof-metrics {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.seoh-proof-metrics li {
  background: var(--seoh-paper);
  border: 1px solid var(--seoh-line);
  border-radius: 12px;
  padding: 0.95rem 0.85rem;
}

.seoh-proof-metrics strong {
  display: block;
  font-size: 1.25rem;
  color: var(--seoh-navy);
}

.seoh-proof-metrics span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--seoh-ink);
}

.seoh-proof-metrics small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--seoh-muted);
}

.seoh-disclaimer {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--seoh-muted);
  line-height: 1.65;
}

.seoh-disclaimer a {
  color: var(--seoh-navy);
  font-weight: 600;
}

/* —— Related / FAQ / CTA —— */
.seoh-related {
  padding: clamp(2.2rem, 4.5vw, 3.25rem) var(--page-gutter);
  background: var(--seoh-soft);
}

.seoh-related-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.seoh-related-list a {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--seoh-paper);
  border: 1px solid var(--seoh-line);
  color: var(--seoh-ink);
  text-decoration: none;
}

.seoh-related-list a:hover,
.seoh-related-list a:focus-visible {
  border-color: rgba(198, 241, 53, 0.7);
  background: var(--seoh-lime-dim);
}

.seoh-faq {
  padding: clamp(2.4rem, 5vw, 3.75rem) var(--page-gutter);
  background: var(--seoh-paper);
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

.seoh-faq-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.seoh-faq-item {
  background: var(--seoh-soft);
  border: 1px solid var(--seoh-line);
  border-radius: var(--seoh-radius);
  padding: 0.15rem 1rem;
}

.seoh-faq-item summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.95rem 0;
  color: var(--seoh-ink);
  list-style: none;
}

.seoh-faq-item summary::-webkit-details-marker {
  display: none;
}

.seoh-faq-item p {
  margin: 0 0 1rem;
  color: var(--seoh-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.seoh-faq-cta {
  margin-top: 1.5rem;
}

.seoh-final-cta {
  padding: clamp(2.5rem, 5vw, 4rem) var(--page-gutter);
  background:
    linear-gradient(135deg, rgba(22, 58, 95, 0.08) 0%, rgba(198, 241, 53, 0.24) 55%, #f4f8fb 100%);
}

.seoh-final-cta-inner {
  width: var(--seoh-max);
  margin-inline: auto;
  text-align: left;
}

.seoh-final-cta .seoh-lead {
  max-width: 40rem;
}

.seoh-final-cta .page-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sister-brand showcases stay readable */
.seoh-land-root .revampable-seo-geo-showcase,
.seoh-land-root .aiacademyhk-seo-geo-showcase,
.seoh-land-root [class*="revampable"],
.seoh-land-root [class*="aiacademy"] {
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

@media (max-width: 960px) {
  .seoh-hero-grid {
    grid-template-columns: 1fr;
  }

  .seoh-hero-visual {
    max-width: 28rem;
    margin-inline: auto;
  }

  .seoh-kpi-strip,
  .seoh-why-grid,
  .seoh-service-grid,
  .seoh-proof-metrics {
    grid-template-columns: 1fr;
  }

  .seoh-carousel-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (min-width: 640px) and (max-width: 960px) {
  .seoh-kpi-strip,
  .seoh-proof-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
