/* Shared styles for Grol Media service detail pages
   Mirrors the visual system used on index.html (dark editorial). */

:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --muted-foreground: 0 0% 65%;
  --hero-subtitle: 0 0% 78%;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.font-serif-i { font-family: 'Instrument Serif', ui-serif, Georgia, serif; font-style: italic; font-weight: 400; }

/* Liquid glass card edge */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.nav-divider { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }

.btn-press { transition: transform 220ms cubic-bezier(0.22,1,0.36,1); }
.btn-press:hover  { transform: scale(1.03); }
.btn-press:active { transform: scale(0.98); }

/* Card surface (mirrors .svc-card) */
.svc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 280ms cubic-bezier(0.22,1,0.36,1),
              background 280ms cubic-bezier(0.22,1,0.36,1),
              transform 280ms cubic-bezier(0.22,1,0.36,1);
}
.svc-card:hover {
  border-color: rgba(255,255,255,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
  transform: translateY(-2px);
}
.svc-num {
  font-family: 'Instrument Serif', ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.02em;
}
.svc-divider { height: 1px; background: rgba(255,255,255,0.08); }
.svc-bullet  { width: 5px; height: 5px; border-radius: 9999px; background: rgba(255,255,255,0.5); flex: none; }

/* Nav dropdown (shared by index.html + service pages) */
.nav-item { position: relative; }
.nav-dd {
  position: absolute;
  left: 50%;
  top: 100%;
  padding-top: 16px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22,1,0.36,1);
  z-index: 60;
}
.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-panel {
  width: 340px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8);
}
.nav-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  transition: background 0.18s ease;
  text-decoration: none;
  color: #fff;
}
.nav-dd-item:hover { background: rgba(255,255,255,0.06); }
.nav-dd-num {
  font-family: 'Instrument Serif', ui-serif, Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.5);
  padding-top: 2px;
  flex: none;
  width: 22px;
}
.nav-dd-title { font-size: 14px; font-weight: 500; line-height: 1.2; display: block; }
.nav-dd-sub { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 2px; line-height: 1.3; display: block; }

/* "Learn more" link on cards */
.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  width: fit-content;
}
.learn-link .lm-arrow { transition: transform 0.24s cubic-bezier(0.22,1,0.36,1); }
.learn-link:hover .lm-arrow { transform: translateX(4px); }
.learn-link .lm-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.28s cubic-bezier(0.22,1,0.36,1);
}
.learn-link:hover .lm-underline { background-size: 100% 1px; }

/* Process steps (How it works) */
.step-row { border-top: 1px solid rgba(255,255,255,0.08); }
.step-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.step-num {
  font-family: 'Instrument Serif', ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.02em;
}

/* Outcome card accent */
.outcome-card { background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.008) 100%); border: 1px solid rgba(255,255,255,0.08); }

/* Result screenshot frame */
.result-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #f7f8fb;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}
.result-frame--narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.result-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #eceef3;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.result-bar span { width: 11px; height: 11px; border-radius: 9999px; background: #cdd2db; }
.result-shot { padding: 18px 20px; }
.result-shot img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .result-shot { padding: 26px 30px; }
}

/* Funnel option chips */
.funnel-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  transition: border-color 240ms cubic-bezier(0.22,1,0.36,1), color 240ms cubic-bezier(0.22,1,0.36,1), transform 240ms cubic-bezier(0.22,1,0.36,1);
}
.funnel-chip:hover { border-color: rgba(255,255,255,0.4); color: #fff; transform: translateY(-1px); }
.funnel-chip--more { color: rgba(255,255,255,0.5); border-style: dashed; }
@media (min-width: 768px) { .funnel-chip { font-size: 14.5px; padding: 10px 18px; } }

/* Funnel-shapes diagram */
.funnel-viz { display: flex; flex-direction: column; align-items: center; }
.funnel-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 14px; max-width: 760px; margin: 0 auto;
}
.funnel-shape {
  position: relative;
  min-width: 122px; max-width: 200px;
  min-height: 80px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12px 16px 0;
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1);
}
.funnel-shape::before, .funnel-shape::after {
  content: ''; position: absolute; pointer-events: none;
  clip-path: polygon(0% 0%, 100% 0%, 100% 48%, 64% 100%, 36% 100%, 0% 48%);
}
.funnel-shape::before { inset: 0; background: rgba(255,255,255,0.16); }
.funnel-shape::after { inset: 1.3px; background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.012)); }
.funnel-shape > span {
  position: relative; z-index: 1;
  font-size: 12.5px; font-weight: 500; line-height: 1.18; text-align: center;
  color: rgba(255,255,255,0.88);
}
.funnel-shape:hover { transform: translateY(-3px); }
.funnel-shape:hover::before { background: rgba(255,255,255,0.4); }
.funnel-shape:hover > span { color: #fff; }
.funnel-shape--more::after { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005)); }
.funnel-shape--more > span { color: rgba(255,255,255,0.5); }

.funnel-collector {
  position: relative;
  width: 100%; max-width: 360px; height: 46px;
  margin: 2px auto 0;
}
.funnel-collector::before, .funnel-collector::after {
  content: ''; position: absolute; pointer-events: none;
  clip-path: polygon(0% 0%, 100% 0%, 60% 100%, 40% 100%);
}
.funnel-collector::before { inset: 0; background: rgba(255,255,255,0.14); }
.funnel-collector::after { inset: 1.3px 1.3px 0; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)); }

.funnel-arrow { color: rgba(255,255,255,0.45); margin: 6px 0 14px; }

.funnel-customer {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 26px; border-radius: 9999px;
  background: #fff; color: #0a0a0a;
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 30px rgba(255,255,255,0.18);
}
.funnel-customer .fc-dot {
  width: 8px; height: 8px; border-radius: 9999px; background: #0a0a0a;
}
@media (prefers-reduced-motion: no-preference) {
  .funnel-customer { animation: fcPulse 3s ease-in-out infinite; }
}
@keyframes fcPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 30px rgba(255,255,255,0.16); }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 38px rgba(255,255,255,0.34); }
}
@media (min-width: 768px) {
  .funnel-shape { min-width: 134px; min-height: 86px; }
  .funnel-shape > span { font-size: 13.5px; }
  .funnel-customer { font-size: 16px; padding: 14px 30px; }
}

/* Ad showcase slider */
.ad-slider { position: relative; max-width: 520px; margin: 0 auto; }
.ad-viewport { overflow: hidden; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); }
.ad-track { display: flex; transition: transform 450ms cubic-bezier(0.22,1,0.36,1); }
.ad-slide { min-width: 100%; }
.ad-frame { aspect-ratio: 1 / 1; width: 100%; background: #0a0a0a; display: block; }
.ad-frame img, .ad-frame .ad-slot { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 14px; }
.ad-brand { font-weight: 600; color: #fff; }
.ad-dot-sep { width: 3px; height: 3px; border-radius: 9999px; background: rgba(255,255,255,0.4); }
.ad-funnel { color: rgba(255,255,255,0.6); }
.ad-nav {
  position: absolute; top: calc(50% - 28px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  transition: background 220ms, border-color 220ms, transform 220ms;
}
.ad-nav:hover { background: rgba(0,0,0,0.8); border-color: rgba(255,255,255,0.45); }
.ad-nav:active { transform: translateY(-50%) scale(0.94); }
.ad-prev { left: -12px; }
.ad-next { right: -12px; }
.ad-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.ad-dots button {
  width: 7px; height: 7px; border-radius: 9999px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.25); border: none; transition: background 220ms, transform 220ms;
}
.ad-dots button.active { background: #fff; transform: scale(1.25); }
@media (min-width: 768px) {
  .ad-prev { left: -22px; }
  .ad-next { right: -22px; }
  .ad-cap { font-size: 15px; }
}

/* Process path / timeline */
.proc-path { position: relative; list-style: none; margin: 0; padding: 0; }
.proc-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 0 22px; padding-bottom: 44px; }
.proc-step:last-child { padding-bottom: 0; }
.proc-step::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 56px;
  bottom: -4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 100%);
}
.proc-step:last-child::before { display: none; }
.proc-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.08), rgba(255,255,255,0.015));
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.proc-body { padding-top: 9px; }
.proc-title { font-size: 1.2rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.4px; margin-bottom: 9px; }
.proc-desc { font-size: 15px; line-height: 1.6; opacity: 0.74; max-width: 44ch; }

/* Zig-zag scroll path (desktop only) */
.proc-layout { display: block; }
.proc-zig { display: none; }
@media (min-width: 768px) {
  .proc-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 30%, 320px); gap: 0 56px; align-items: start; }
  /* hide the per-step vertical connector on desktop; the zig-zag is the connector */
  .proc-step::before { display: none; }
  .proc-step { padding-bottom: clamp(60px, 14vh, 130px); }
  .proc-step:last-child { padding-bottom: 0; }
  .proc-node { width: 60px; height: 60px; font-size: 19px; transition: border-color 320ms cubic-bezier(0.22,1,0.36,1), background 320ms cubic-bezier(0.22,1,0.36,1), box-shadow 320ms cubic-bezier(0.22,1,0.36,1); }
  .proc-step.is-reached .proc-node {
    border-color: rgba(255,255,255,0.65);
    background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.22), 0 0 20px rgba(255,255,255,0.28);
  }
  .proc-title { font-size: 1.5rem; }
  .proc-desc { font-size: 15.5px; }
  .proc-zig { display: block; position: sticky; top: 96px; height: calc(100vh - 160px); }
  .proc-zig svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .zig-track { stroke: rgba(255,255,255,0.12); }
  .zig-fill {
    stroke: #fff;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
    transition: stroke-dashoffset 90ms linear;
  }
  .zig-dot {
    fill: #000;
    stroke: rgba(255,255,255,0.22);
    stroke-width: 2;
    transition: fill 320ms ease, stroke 320ms ease, filter 320ms ease;
  }
  .zig-dot.lit {
    fill: #fff;
    stroke: #fff;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
  }
}
@media (prefers-reduced-motion: reduce) {
  .proc-node, .zig-fill, .zig-dot { transition: none; }
}

/* Myth / objection card */
.myth-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.022) 0%, rgba(255,255,255,0.006) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 280ms cubic-bezier(0.22,1,0.36,1), background 280ms cubic-bezier(0.22,1,0.36,1);
}
.myth-card:hover { border-color: rgba(255,255,255,0.18); background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%); }
.myth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(0.22,1,0.36,1), transform 700ms cubic-bezier(0.22,1,0.36,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
/* Hard fallback: if JS adds this (failsafe timer) content is forced visible with
   no transition — covers in-app browsers / throttled tabs where transitions stall. */
html.reveal-fallback .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Skip-to-content link (a11y) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 9999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }
:focus-visible { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 3px; border-radius: 4px; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-top: 1px solid rgba(255,255,255,0.10); }
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.10); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.2px; color: #fff;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: rgba(255,255,255,0.82); }
.faq-q { flex: 1; line-height: 1.4; }
.faq-ico {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; position: relative;
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1);
}
.faq-ico::before, .faq-ico::after {
  content: ''; position: absolute; background: rgba(255,255,255,0.7);
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-ico::before { width: 14px; height: 1.5px; }
.faq-ico::after { width: 1.5px; height: 14px; transition: opacity 240ms ease, transform 280ms ease; }
.faq-item[open] .faq-ico { transform: rotate(90deg); }
.faq-item[open] .faq-ico::after { opacity: 0; }
.faq-a {
  padding: 0 4px 24px; max-width: 60ch;
  font-size: 15.5px; line-height: 1.62; color: hsl(var(--muted-foreground));
}
.faq-a a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }
.faq-a a:hover { text-decoration-color: rgba(255,255,255,0.8); }
@media (min-width: 768px) {
  .faq-item > summary { padding: 26px 6px; font-size: 19px; }
  .faq-a { padding: 0 6px 28px; font-size: 16px; }
}

/* Pricing */
.price-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.008) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  transition: border-color 280ms cubic-bezier(0.22,1,0.36,1), transform 280ms cubic-bezier(0.22,1,0.36,1), box-shadow 280ms cubic-bezier(0.22,1,0.36,1);
}
.price-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.price-card--featured {
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 30px 70px -32px rgba(255,255,255,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.012) 100%);
}
.price-card--featured:hover { border-color: rgba(255,255,255,0.7); }
.price-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #000; background: #fff; padding: 5px 11px; border-radius: 9999px;
}
.price-kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.price-amount { font-size: 2.75rem; font-weight: 500; letter-spacing: -1.5px; line-height: 1; }
.price-unit { font-size: 13.5px; color: rgba(255,255,255,0.55); }
.price-divider { height: 1px; background: rgba(255,255,255,0.09); }
.price-inherit { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 500; }
.price-li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.price-li .pl-ico { flex: none; margin-top: 2px; color: #fff; }
.price-note {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 14px; padding: 16px 16px;
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.72);
}
.price-note b { color: #fff; font-weight: 600; }
.price-btn {
  width: 100%; text-align: center; border-radius: 9999px; padding: 13px 20px;
  font-size: 15px; font-weight: 500; transition: transform 220ms cubic-bezier(0.22,1,0.36,1), background 200ms, border-color 200ms;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.price-btn:active { transform: scale(0.98); }
.price-btn--solid { background: #fff; color: #000; border: 1px solid #fff; }
.price-btn--solid:hover { transform: scale(1.02); }
.price-btn--ghost { background: transparent; color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.18); }
.price-btn--ghost:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.05); }

