/* ==========================================================================
   reportwithecho.com — section styles (v3 — animated, simplified)

   Five surfaces: Hero (drenched violet) → Agency (light) → Steps (elevated)
   → Trust (violet-soft) → FAQ (canvas). Scroll-triggered reveals via
   .reveal on shipped elements + reveal.js. prefers-reduced-motion is
   honored globally (base.css clamps + reveal.js falls through to
   .is-visible immediately).
   ========================================================================== */

/* ==========================================================================
   REVEAL SYSTEM — IntersectionObserver-driven entrance animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease-out-quart),
    transform 700ms var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   HERO — drenched violet, asymmetric, editorial
   ========================================================================== */

.hero {
  background: var(--accent-violet-deep);
  background-image:
    radial-gradient(
      ellipse at top right,
      var(--accent-violet) 0%,
      var(--accent-violet-deep) 50%,
      var(--accent-violet-deeper) 100%
    );
  color: var(--text-inverse);
  padding: var(--space-3xl) 0 var(--space-4xl);
  --focus-ring: var(--text-inverse);
  overflow: hidden;
  position: relative;
}

.hero__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  gap: var(--space-3xl);
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero brand: orb (PNG) + wordmark (inline SVG, currentColor for white-on-violet).
   Sized via the link's height so both elements stay proportional. */
.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  height: 36px;
  margin-bottom: var(--space-2xl);
  color: var(--text-inverse);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}
.hero__brand:hover { transform: translateY(-1px); text-decoration: none; }

.hero__brand-orb {
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hero__brand-wordmark {
  height: 100%;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .hero__brand { height: 44px; gap: var(--space-md); }
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--text-inverse);
  margin: 0 0 var(--space-xl);
  text-wrap: balance;
}

.hero__headline-line {
  display: block;
}

.hero__subhead {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-inverse);
  margin: 0 0 var(--space-lg);
  max-width: 28em;
}

.hero__coverage {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-violet-on-deep);
  margin: 0 0 var(--space-2xl);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--text-inverse);
  color: var(--accent-violet-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 4px 0 oklch(20% 0.05 300 / 0.5);
}

.hero__cta:hover {
  color: var(--accent-violet-deep);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 oklch(20% 0.05 300 / 0.5);
  text-decoration: none;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateY(2px);
}

.hero__cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 oklch(20% 0.05 300 / 0.5);
}

.hero__cta-arrow {
  display: inline-block;
  transition: transform var(--transition-normal);
}

.hero__motif {
  display: none;
}

@media (min-width: 768px) {
  .hero { padding: var(--space-5xl) 0; }
  .hero__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-5xl);
  }
  .hero__brand { margin-bottom: var(--space-3xl); }
  .hero__motif {
    display: block;
    justify-self: end;
    width: min(280px, 100%);
    aspect-ratio: 1;
    transform: rotate(6deg);
    filter: drop-shadow(0 16px 32px oklch(20% 0.05 300 / 0.35));
  }
  .hero__motif svg { width: 100%; height: auto; }
}

@media (min-width: 1024px) {
  .hero__motif { width: 320px; }
}

/* Hero entrance choreography. One orchestrated load moment.
   Headline lines reveal in sequence; brand fades; motif rotates in;
   subhead/coverage/CTA fade together. */
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hero-line-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-motif-rotate-in {
  from { opacity: 0; transform: rotate(-12deg) scale(0.92); }
  to   { opacity: 1; transform: rotate(6deg) scale(1); }
}
@keyframes hero-cta-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Logo entrance choreography:
   1. Orb slides in from -100px while rotating 540deg, settles to center
   2. Wordmark fades in from the left after the orb settles */
@keyframes hero-orb-in {
  from { opacity: 0; transform: translateX(-160px) rotate(-540deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-wordmark-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

.hero__brand-orb {
  transform-origin: center;
  animation: hero-orb-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__brand-wordmark {
  animation: hero-wordmark-in 600ms var(--ease-out-quart) 600ms both;
}
.hero__headline-line:nth-child(1) {
  animation: hero-line-rise 700ms var(--ease-out-quart) 700ms both;
}
.hero__headline-line:nth-child(2) {
  animation: hero-line-rise 700ms var(--ease-out-quart) 820ms both;
}
.hero__subhead {
  animation: hero-fade-in 600ms var(--ease-out-quart) 1000ms both;
}
.hero__coverage {
  animation: hero-fade-in 600ms var(--ease-out-quart) 1100ms both;
}
.hero__cta {
  animation: hero-cta-rise 600ms var(--ease-out-quart) 1200ms both;
}
.hero__motif {
  animation: hero-motif-rotate-in 1200ms var(--ease-out-quart) 200ms both;
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand-orb,
  .hero__brand-wordmark,
  .hero__headline-line,
  .hero__subhead,
  .hero__coverage,
  .hero__cta,
  .hero__motif { animation: none; }
}

/* Subtle ambient orb behind the hero motif for depth */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle at center,
    oklch(70% 0.18 300 / 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   SECTIONS — shared shell
   ========================================================================== */

.section {
  padding: var(--space-4xl) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-5xl) 0; }
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 var(--space-2xl);
  text-wrap: balance;
  max-width: 18em;
}

/* ==========================================================================
   AGENCY — light canvas, single-paragraph lede
   ========================================================================== */

.section--agency { background: var(--bg-canvas); }

.agency__lede {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 36em;
  margin: 0;
}

/* ==========================================================================
   STEPS — How it works. Big numerals, civic muni-signage style.
   ========================================================================== */

.section--steps { background: var(--bg-elevated); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2xl);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-xl);
  row-gap: var(--space-sm);
  align-items: start;
}

.step__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 0.85;
  color: var(--accent-violet);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.05;
  margin: 0;
  color: var(--text-primary);
  align-self: end;
  letter-spacing: -0.01em;
}

.step p {
  grid-column: 2;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 36em;
}

@media (min-width: 768px) {
  .steps { gap: var(--space-3xl); }
}

/* ==========================================================================
   TRUST — violet-soft, four promise chips, honest about telemetry
   ========================================================================== */

.section--trust { background: var(--accent-violet-soft); }

.trust__lede {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0 0 var(--space-2xl);
  max-width: 36em;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--accent-violet-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent-violet);
  box-shadow: 0 8px 24px oklch(48% 0.14 300 / 0.12);
}

.chip__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  color: var(--accent-violet-ink);
}

.chip__detail {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-primary);
}

@media (min-width: 540px) {
  .chips { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .chips { gap: var(--space-lg); }
}

/* ==========================================================================
   FAQ — flat list, scannable, four questions
   ========================================================================== */

.section--faq { background: var(--bg-canvas); }

.faq {
  display: grid;
  gap: var(--space-2xl);
  max-width: 40em;
}

.qa { margin: 0; }

.qa__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

.qa__a {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: var(--space-3xl) 0;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-soft);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
  }
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  height: 28px;
  color: var(--accent-violet);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.site-footer__brand:hover {
  transform: translateY(-1px);
  color: var(--accent-violet-hover);
  text-decoration: none;
}

.site-footer__orb {
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.site-footer__wordmark {
  height: 100%;
  width: auto;
  display: block;
}

.site-footer__copy {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}
