/* ============================================================
   mrooi-technical-seo.css — Page-specific styles for the
   Technical SEO (USA) landing page, layered on the
   seo-services design system.
   ============================================================ */

/* ---- Mouse glow (driven by bundle.js --mx/--my) ---- */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 124, 110, 0.16) 0%, rgba(29, 124, 110, 0.05) 40%, transparent 70%);
  transform: translate(calc(var(--mx, 50vw) - 50%), calc(var(--my, 30vh) - 50%));
  mix-blend-mode: screen;
}
@media (max-width: 900px) {
  .glow { opacity: 0.35; }
}

/* ---- Anchor scroll offset (fixed header only) ---- */
#root section[id],
#root div[id] {
  scroll-margin-top: 120px;
}

/* ---- Consistent section rhythm (override layout.css 40px margins so
       backgrounded sections abut cleanly with no gaps) ---- */
#root > section,
#root > div {
  margin-block: 0 !important;
}
#root section.py {
  padding-block: clamp(1.75rem, 3vw, 2.5rem) !important;
}
.ts-midcta {
  padding-block: 20px;
}
#root > div.cta {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* ---- Trust badges marquee strip ---- */
.ts-badges {
  padding: 22px 0;
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ts-badges .marquee-row {
  animation: marquee-scroll-ltr 34s linear infinite;
}
.ts-badges .marquee-row:hover {
  animation-play-state: paused;
}
.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 9999px;
  background: rgba(29, 124, 110, 0.08);
  border: 1px solid rgba(29, 124, 110, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.ts-badge .dot {
  width: 5px;
  height: 5px;
  background: #4ADE80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

/* ---- Impact / stats strip (5-up) ---- */
.ts-impact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.ts-impact .impact-item {
  align-items: center;
  text-align: center;
}
@media (max-width: 1024px) {
  .ts-impact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ts-impact { grid-template-columns: 1fr; }
}

/* ---- Why-it-matters: sticky heading + scroll-reveal cards ---- */
.story-stk {
  position: sticky;
  top: 120px;
  align-self: start;
}

/* ---- Pull quote ---- */
.ts-quote {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
  background: var(--bg-dark-2);
}
.ts-quote-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5%, 5%);
}
.ts-quote-text {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.ts-quote-text .hl {
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ts-quote-source {
  display: block;
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* ---- Warning signs grid ---- */
.ts-signs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ts-sign {
  background: rgba(13, 31, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px 22px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ts-sign:hover {
  border-color: rgba(204, 78, 60, 0.35);
  background: rgba(204, 78, 60, 0.04);
  transform: translateY(-3px);
}
.ts-sign h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin: 14px 0 0;
}
.ts-sign ul {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.ts-sign:hover ul {
  max-height: 340px;
  opacity: 1;
  margin-top: 16px;
}
.ts-sign li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.ts-sign li::before {
  content: '\00B7';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 700;
}
@media (max-width: 900px) {
  .ts-signs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ts-signs { grid-template-columns: 1fr; }
}

/* ---- Platforms / tools: alternating logo marquee ---- */
.ts-logo-wall {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ts-logo-wall .marquee-row:hover {
  animation-play-state: paused;
}
.ts-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 9999px;
  background: rgba(29, 124, 110, 0.08);
  border: 1px solid rgba(29, 124, 110, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Pricing ---- */
.ts-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ts-pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ts-pricing-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}
.ts-pricing-list li::before {
  content: '\2713';
  color: var(--accent-gold);
  font-weight: 800;
  flex: none;
}
@media (max-width: 900px) {
  .ts-pricing { grid-template-columns: 1fr; }
}

/* ---- Tables (pricing + case KPIs) ---- */
.ts-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(13, 31, 28, 0.4);
}
table.ts-table {
  width: 100%;
  border-collapse: collapse;
}
.ts-table th,
.ts-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}
.ts-table th {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(29, 124, 110, 0.06);
}
.ts-table td {
  color: rgba(255, 255, 255, 0.72);
}
.ts-table td:first-child {
  color: #fafafa;
  font-weight: 700;
}
.ts-table tr:last-child td {
  border-bottom: none;
}
.ts-table tbody tr:hover {
  background: rgba(29, 124, 110, 0.05);
}
.ts-table td.bad {
  color: var(--accent-red);
  font-style: italic;
}

/* ---- CWV before/after slider ---- */
.ts-cwv-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 320px;
}
.ts-cwv-half {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 32px 40px;
}
.ts-cwv-before {
  background: rgba(204, 78, 60, 0.05);
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ts-cwv-after {
  background: rgba(29, 124, 110, 0.05);
}
.ts-cwv-label {
  position: absolute;
  top: 18px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 9999px;
}
.ts-cwv-before .ts-cwv-label {
  left: 18px;
  color: var(--accent-red);
  background: rgba(204, 78, 60, 0.15);
}
.ts-cwv-after .ts-cwv-label {
  right: 18px;
  color: var(--accent);
  background: rgba(29, 124, 110, 0.15);
}
.ts-cwv-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ts-cwv-row .name {
  width: 110px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  flex: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-cwv-bar {
  flex: 1;
  height: 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ts-cwv-bar .fill {
  display: block;
  height: 100%;
  border-radius: 9999px;
}
.ts-cwv-before .ts-cwv-bar .fill {
  background: linear-gradient(90deg, #CC4E3C, #E8A33D);
}
.ts-cwv-after .ts-cwv-bar .fill {
  background: linear-gradient(90deg, #1D7C6E, #38B2A0);
}
.ts-cwv-row .val {
  width: 120px;
  text-align: right;
  font-weight: 800;
  font-size: 0.85rem;
  flex: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-cwv-before .val {
  color: var(--accent-red);
}
.ts-cwv-after .val {
  color: var(--accent);
}
.ts-cwv-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--accent-gold);
  z-index: 3;
  pointer-events: none;
}
.ts-cwv-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.ts-cwv-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}
.ts-cwv-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 720px) {
  .ts-cwv-stage { height: 380px; }
  .ts-cwv-half { padding: 26px 20px; gap: 16px; }
  .ts-cwv-row .name { width: 76px; font-size: 0.6rem; }
  .ts-cwv-row .val { width: 84px; font-size: 0.75rem; }
}

/* ---- Mid-page CTA band ---- */
.ts-midcta-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.6rem) clamp(1.5rem, 5%, 5%);
  border: 1px solid rgba(29, 124, 110, 0.3);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(29, 124, 110, 0.12), rgba(29, 124, 110, 0.03));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ts-midcta h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.ts-midcta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 6px;
}
.ts-midcta .ts-midcta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  background: var(--accent);
  color: #0D1F1C;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(29, 124, 110, 0.35);
  transition: background 0.3s, transform 0.3s;
}
.ts-midcta .ts-midcta-btn:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
}

/* ---- Case study cards (tabbed) ---- */
.ts-case-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto 28px;
}
.ts-case-tab {
  padding: 11px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(29, 124, 110, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ts-case-tab svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.ts-case-tab:hover {
  color: #fafafa;
  border-color: rgba(29, 124, 110, 0.4);
}
.ts-case-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D1F1C;
}
.ts-case-panel {
  display: none;
}
.ts-case-panel.on {
  display: block;
}
.ts-case {
  background: rgba(13, 31, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ts-case:hover {
  border-color: rgba(29, 124, 110, 0.3);
  background: rgba(29, 124, 110, 0.04);
  transform: translateY(-3px);
}
.ts-case .kicker {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.ts-case h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 12px 0 16px;
}
.ts-case p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: 18px;
}
.ts-case .ts-table-wrap {
  margin: 0 0 20px;
}
.ts-case blockquote {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
@media (max-width: 860px) {
  .ts-cases { grid-template-columns: 1fr; }
}

/* ---- Before-you-hire checklist ---- */
.ts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ts-check {
  background: rgba(13, 31, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px 22px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ts-check:hover {
  border-color: rgba(232, 200, 122, 0.35);
  background: rgba(232, 200, 122, 0.04);
  transform: translateY(-3px);
}
.ts-check h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin: 14px 0 0;
}
.ts-check ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.ts-check:hover ul {
  max-height: 340px;
  opacity: 1;
  margin-top: 16px;
}
.ts-check li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}
.ts-check li::before {
  content: '\2713';
  color: var(--accent-gold);
  font-weight: 800;
  flex: none;
}
@media (max-width: 900px) {
  .ts-grid-3 { grid-template-columns: 1fr; }
}

/* ---- Myths ---- */
.ts-myth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ts-myth-card {
  background: rgba(13, 31, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px 26px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ts-myth-card:hover {
  border-color: rgba(204, 78, 60, 0.3);
  transform: translateY(-3px);
}
.ts-myth-card .m-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}
.ts-myth-card .m-tag.myth {
  color: var(--accent-red);
  background: rgba(204, 78, 60, 0.12);
}
.ts-myth-card .m-tag.fact {
  color: var(--accent);
  background: rgba(29, 124, 110, 0.12);
}
.ts-myth-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}
.ts-myth-card p.m {
  margin-bottom: 16px;
  font-weight: 700;
  color: #fafafa;
}
.ts-myth-card p.f {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}
@media (max-width: 860px) {
  .ts-myth-grid { grid-template-columns: 1fr; }
}

/* ---- Reveal-card icons ---- */
.ts-sign-icon,
.ts-check-icon,
.ts-myth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 0;
  flex: none;
}
.ts-sign-icon {
  background: rgba(204, 78, 60, 0.1);
  color: var(--accent-red);
}
.ts-check-icon {
  background: rgba(232, 200, 122, 0.1);
  color: var(--accent-gold);
}
.ts-myth-icon {
  background: rgba(204, 78, 60, 0.08);
  color: var(--accent-red);
  margin-bottom: 14px;
}
.ts-sign-icon svg,
.ts-check-icon svg,
.ts-myth-icon svg {
  width: 18px;
  height: 18px;
}

/* ---- Reveal-on-hover helpers ---- */
.ts-sign:focus-visible,
.ts-check:focus-visible,
.ts-myth-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ts-myth-card p.f {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  border-top: none;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.ts-myth-card:hover p.f {
  max-height: 260px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.ts-sign.open ul,
.ts-check.open ul {
  max-height: 340px;
  opacity: 1;
  margin-top: 16px;
}
.ts-myth-card.open p.f {
  max-height: 260px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* ---- Flywheel: sticky pin (full-viewport, content clear of fixed header) ---- */
#fwSection .fw-sticky {
  padding: 16px 0;
}
#fwSection .fw-sticky.is-pinned {
  padding-top: 96px;
}
#fwSection .fw-full-wrap {
  max-height: calc(100vh - 112px);
}
#fwSection .fw-header .sec-hdr {
  margin-bottom: 8px;
}
#fwSection .fw-header .sec-hdr h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
}
#fwSection .fw-header .sec-hdr p {
  margin-top: 10px;
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  #fwSection .fw-sticky.is-pinned {
    padding-top: 88px;
  }
}

/* ---- Icon sizing helpers (inline SVGs replace FontAwesome) ---- */
#root .hero-ch li svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex: none;
}
#root .svc-a {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.15);
  flex: none;
}
#root .svc-r:hover .svc-a {
  color: var(--accent);
}
#root .btn svg,
#root .ts-midcta-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
#root .ba-ls li svg {
  width: 15px;
  height: 15px;
  flex: none;
}
#root .ba-bf .ba-ls li svg {
  color: var(--accent-red);
}
#root .ba-af .ba-ls li svg {
  color: #4ADE80;
}
#root .faq-q svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.4s;
  flex: none;
}
#root .faq-i.open .faq-q svg {
  transform: rotate(45deg);
}
