/* =========================================================
   Upstage Media — Reputation landing page
   Palette taken from the logo's "U" gradient.
   ========================================================= */
:root {
  --ink: #13111d;          /* dark sections, body text */
  --ink-2: #1d1a2b;        /* cards on dark */
  --ink-line: #2e2a41;
  --paper: #ffffff;
  --tint: #f5f4fa;         /* light lavender sections */
  --line: #e4e1ee;
  --muted: #5e5a72;
  --muted-light: #aaa5c0;

  --orange: #f7931e;
  --red: #e8262a;
  --magenta: #c2187a;
  --purple: #6a2c91;
  --blue: #2f6fdb;
  --grad: linear-gradient(100deg, var(--orange) 0%, var(--red) 28%, var(--magenta) 55%, var(--purple) 78%, var(--blue) 100%);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}
.eyebrow--light { color: #ff8fbf; }
.lead { font-size: 1.2rem; color: #d6d2e6; max-width: 34ch; margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn--grad { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: 0 8px 24px -8px rgba(194, 24, 122, .6); }
.btn--grad:hover { background-position: 100% 0; box-shadow: 0 12px 30px -8px rgba(194, 24, 122, .75); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.ico { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(19,17,29,.35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
.main-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 84px 0 96px;
}
.hero-glow {
  position: absolute; inset: auto -20% -55% 30%; height: 120%;
  background: radial-gradient(closest-side, rgba(194,24,122,.45), transparent 70%),
              radial-gradient(closest-side at 70% 30%, rgba(47,111,219,.35), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted-light); font-size: .95rem; }
.hero-facts strong { color: #fff; font-weight: 700; }

/* ---------- Signature: SERP ---------- */
.serp {
  position: relative;
  color: #202124;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border-radius: var(--radius-lg);
  padding: 22px 24px 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  font-family: Arial, Helvetica, sans-serif;
}
.serp-top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #ececf1; }
.serp-g { font: 700 1.6rem/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serp-search {
  flex: 1; display: flex; align-items: center; min-height: 42px;
  border: 1px solid #dfe1e5; border-radius: 999px; padding: 0 18px; font-size: 15px;
  box-shadow: 0 1px 6px rgba(32,33,36,.12);
}
.serp-caret { width: 1.5px; height: 18px; background: #202124; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.serp-list { list-style: none; margin: 0; padding: 0; }
.serp-item {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f4;
  max-height: 120px; overflow: hidden;
  transition: max-height .6s cubic-bezier(.6,0,.3,1), padding .6s cubic-bezier(.6,0,.3,1), opacity .4s ease, border-color .4s;
}
.serp-item:last-child { border-bottom: 0; }
.serp-url { font-size: 12.5px; color: #4d5156; }
.serp-title { font-size: 17px; color: #1a0dab; line-height: 1.3; margin: 2px 0; }
.serp-snip { font-size: 13.5px; color: #4d5156; }
.stars { color: #e8a317; letter-spacing: 1px; }
.stars span { color: #d5d5dc; }
.is-neg .serp-title { color: #b3261e; }

/* the "eraser" sweep */
.serp-item.is-neg::after {
  content: ""; position: absolute; inset: 6px 0;
  background: var(--grad); border-radius: 10px;
  transform: scaleX(0); transform-origin: left center;
  opacity: .14;
}
.serp-item.is-erasing::after { animation: sweep .7s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes sweep { to { transform: scaleX(1); } }
.serp-item.is-erasing .serp-title,
.serp-item.is-erasing .serp-snip,
.serp-item.is-erasing .serp-url { text-decoration: line-through; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; opacity: .55; transition: opacity .4s; }

.removed-tag {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%) scale(.6);
  font: 700 11px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 8px 12px; border-radius: 999px;
  opacity: 0; transition: opacity .3s, transform .3s cubic-bezier(.3,1.6,.5,1);
  z-index: 1;
}
.serp-item.is-erasing .removed-tag { opacity: 1; transform: translateY(-50%) scale(1); }
.serp-item.is-gone { max-height: 0; padding: 0; opacity: 0; border-color: transparent; }

.serp-item.is-pos { transition: background-color .6s, max-height .6s, padding .6s; }
.serp.is-clean .serp-item.is-pos { animation: rise .6s ease both; }
.serp.is-clean .serp-item.is-pos + .serp-item.is-pos { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(10px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Platforms marquee ---------- */
.platforms { background: var(--paper); border-bottom: 1px solid var(--line); padding: 30px 0 32px; overflow: hidden; }
.platforms-label { text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; padding: 0 16px; }
.marquee { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-track { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 6px; }
.marquee-track li {
  white-space: nowrap; font-weight: 700; font-size: 1rem; color: var(--ink);
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--light { background: var(--paper); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }
.section--dark .section-sub { color: var(--muted-light); }

.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 48px; }
.cta-note { color: var(--muted-light); }

/* Problem */
.cost-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cost-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; }
.cost-card::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; background: var(--grad); border-radius: 0 0 3px 3px; }
.cost-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.cost-card p { color: var(--muted); font-size: .98rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: border-color .25s, transform .25s;
}
.service-card:hover { border-color: rgba(194,24,122,.6); transform: translateY(-3px); }
.service-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 22px;
}
.service-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted-light); font-size: .98rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; position: relative; }
.steps::before { /* connecting line */
  content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--magenta), var(--blue)); opacity: .35;
}
.step { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font: 700 1.1rem/1 var(--font-display); color: #fff; background: var(--grad); margin-bottom: 22px;
  box-shadow: 0 0 0 6px var(--paper);
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* Results */
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.result-card { margin: 0; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.result-shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: #000;
  height: 420px; overflow: hidden; position: relative;
}
.result-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.result-shot:hover img { transform: scale(1.03); }
.result-shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, var(--ink-2)); }
.result-card figcaption { padding: 22px 26px 28px; }
.result-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #ff8fbf; margin-bottom: 14px; }
.result-card blockquote { margin: 0; font-size: 1.1rem; line-height: 1.5; color: #fff; }

/* Guarantee */
.guarantee { background: var(--grad); color: #fff; padding: 64px 0; }
.guarantee-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.guarantee p { font-size: 1.15rem; margin-top: 10px; opacity: .95; max-width: 52ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.about-grid .h2 { margin-bottom: 24px; }
.about-grid p { color: var(--muted); font-size: 1.05rem; }
.about-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-facts li { background: var(--tint); border-radius: var(--radius); padding: 26px 22px; }
.about-facts strong { display: block; font: 700 1.9rem/1.1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.about-facts span { color: var(--muted); font-size: .95rem; font-weight: 600; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 500 1.5rem/1 var(--font-body); color: var(--magenta); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Contact */
.contact { position: relative; overflow: hidden; }
.hero-glow--contact { inset: -40% 40% auto -30%; }
.contact-grid { position: relative; display: grid; gap: 48px; }
.contact-copy { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 56px; align-items: end; }
.contact-copy .section-head { margin-bottom: 0; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: block; text-decoration: none; padding: 20px 22px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--ink-line); transition: border-color .2s;
}
.contact-card:hover { border-color: var(--magenta); }
.contact-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px; }
.contact-value { font-size: 1.15rem; font-weight: 700; word-break: break-word; }
.calendly-wrap {
  position: relative; background: #fff;
  border-radius: var(--radius-lg); overflow: hidden;
}
.calendly-inline-widget { position: relative; z-index: 1; min-width: 280px; height: 660px; transition: height .3s ease; }
.calendly-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; color: var(--muted); padding: 24px;
}
.calendly-loading a { color: var(--magenta); font-weight: 600; }
.calendly-inline-widget .calendly-spinner { display: none; } /* we show our own loader */
.cal-spinner {
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px;
  border: 3px solid var(--line); border-top-color: var(--magenta);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.calendly-wrap.is-loaded .calendly-loading { display: none; }

/* Footer */
.site-footer { background: #0c0b13; color: var(--muted-light); padding: 64px 0 28px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-line); }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { text-decoration: none; color: #e6e3f0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { padding-top: 24px; font-size: .88rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: auto; }
.lightbox::backdrop { background: rgba(10,9,16,.85); }
.lightbox img { width: 100%; border-radius: 12px; }
.lightbox-close {
  position: sticky; top: 8px; float: right; margin: 8px 8px -48px 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1;
}

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: #3b3850; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 600; color: var(--magenta); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lead { max-width: 46ch; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .faq-wrap, .contact-copy { grid-template-columns: 1fr; gap: 32px; }
  .guarantee-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand img { height: 38px; }
  .btn--sm { padding: 0 14px; font-size: .85rem; min-height: 40px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .serp { padding: 16px 16px 12px; }
  .serp-title { font-size: 15.5px; }
  .removed-tag { font-size: 10px; padding: 7px 10px; }
  .cost-grid, .service-grid, .steps { grid-template-columns: 1fr; }
  .result-shot { height: 360px; }
  .about-facts strong { font-size: 1.5rem; }
  .guarantee { padding: 52px 0; }
  .guarantee .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
}
