/* ============ Reviv landing ============ */

:root {
  --ink: #212121;
  --ink-soft: #55554f;
  --muted: #6f6f6a;
  --bg: #ffffff;
  --surface: #f5f5f2;
  --line: #e7e7e2;
  --cta: #1a1a1a;
  --cta-hover: #000000;
  --accent: #ff5c00;
  --grad: linear-gradient(135deg, #ff9a1f 0%, #ff5c00 55%, #ff4d00 100%);
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 45px -18px rgba(33, 33, 33, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(33, 33, 33, 0.18);
  --header-h: 72px;
}

::selection {
  background: #ff5c00;
  color: #fff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}

h1 { font-size: clamp(38px, 4.6vw, 58px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }

p { margin: 0; }

.section-surface {
  background: var(--surface);
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(255, 92, 0, 0.55);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: saturate(1.15) brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(255, 92, 0, 0.65);
}

.btn:active { transform: translateY(0); }

.btn .apple { width: 17px; height: 17px; fill: #fff; flex: none; }

.btn-sm { padding: 11px 22px; font-size: 14.5px; }
.btn-lg { padding: 17px 32px; font-size: 16.5px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; }
.logo svg { fill: currentColor; }
.logo-dark { color: var(--ink); }
.logo-light { color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

.nav-link:hover { opacity: 0.65; }

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 96px;
  overflow: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  margin: 8px 0 18px;
}

.hero-strong {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-media {
  display: grid;
}

/* layered transformation story: damaged, restored, animated */

.hero-stack {
  position: relative;
  width: min(100%, 590px);
  min-height: clamp(390px, 39vw, 510px);
  margin-inline: auto;
  isolation: isolate;
}

.hero-stack::before {
  content: '';
  position: absolute;
  inset: 15% 10% 7% 8%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 92, 0, 0.14);
  filter: blur(42px);
}

.hero-stack-card {
  position: absolute;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eceae6;
  border: 5px solid #fff;
  box-shadow: 0 24px 52px -22px rgba(33, 33, 33, 0.42);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s ease;
  cursor: pointer;
  outline: none;
}

.hero-stack-card img,
.hero-stack-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stack-before {
  z-index: 1;
  right: 9%;
  bottom: -4%;
  width: 43%;
  border-radius: 34px 18px 30px 22px;
  transform: rotate(-5deg);
}

.hero-stack-after {
  z-index: 2;
  left: 2%;
  top: 10%;
  width: 56%;
  border-radius: 22px 34px 18px 30px;
  transform: rotate(1.5deg);
}

.hero-stack-motion {
  z-index: 3;
  right: 2%;
  top: 2%;
  width: 56%;
  border-radius: 18px 30px 34px 20px;
  transform: rotate(5deg);
}

.hero-stack:hover .hero-stack-before {
  transform: translate(-5px, 3px) rotate(-6deg);
}

.hero-stack:hover .hero-stack-after {
  transform: translateY(-7px) rotate(0deg);
  box-shadow: 0 30px 62px -22px rgba(33, 33, 33, 0.48);
}

.hero-stack:hover .hero-stack-motion {
  transform: translate(5px, 3px) rotate(6deg);
}

.hero-stack:hover .hero-stack-card:hover,
.hero-stack-card:focus-visible {
  z-index: 5;
  transform: translateY(-8px) rotate(0deg) scale(1.045);
  box-shadow: 0 34px 70px -24px rgba(33, 33, 33, 0.56);
}

.hero-stack-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.media-card,
.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eceae6;
  box-shadow: var(--shadow-card);
}

.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(26, 26, 26, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 15px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.pill-right { left: auto; right: 14px; }

.pill-accent {
  background: var(--grad);
  box-shadow: 0 6px 16px -6px rgba(255, 92, 0, 0.6);
}

/* gradient text accent */

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* before / after slider */

.ba {
  aspect-ratio: 1 / 1;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pos, 50%);
  overflow: hidden;
}

.ba-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 0;
  z-index: 3;
  outline: none;
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ba-handle:focus-visible .ba-knob {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.ba .pill { z-index: 4; }

/* floating video chips inside the slider */

.ba-chips {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.ba-chip {
  margin: 0;
  position: relative;
  width: 118px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.ba-chip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-chip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 6px 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- features ---------- */

.features {
  padding: 96px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(33, 33, 33, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* motion strip under the feature cards */

.motion-block {
  margin-top: 64px;
}

.motion-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 32px;
}

.motion-head h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.motion-head p {
  color: var(--muted);
  font-size: 15.5px;
}

.motion-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.motion-tile {
  margin: 0;
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eceae6;
  box-shadow: var(--shadow-card);
}

.motion-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- full revival ---------- */

.revival {
  padding: 96px 0;
}

.revival-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: clamp(12px, 2.4vw, 26px);
  align-items: center;
}

.chain-step {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eceae6;
  box-shadow: var(--shadow-card);
}

.chain-step img,
.chain-step video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chain-arrow {
  color: #c9c9c2;
  display: grid;
  place-items: center;
}

/* ---------- how it works ---------- */

.how {
  padding: 96px 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step {
  text-align: center;
}

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 18px -6px rgba(255, 92, 0, 0.55);
}

.step h3 { font-size: 17px; }

.step p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}

.how-trust {
  margin: 56px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.how-trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------- final cta ---------- */

.final-cta {
  padding: 104px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 65% at 50% 42%, rgba(255, 92, 0, 0.09), transparent 72%),
    var(--bg);
}

.final-cta-inner {
  max-width: 640px;
}

.final-cta .section-sub {
  margin: 4px 0 36px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: #fff; }

.copyright {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
}

/* ---------- legal pages ---------- */

.legal-wrap {
  padding: 56px 0 96px;
}

.legal {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 22px;
}

.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 36px;
}

.legal-center-head h1,
.legal-center-head .legal-meta {
  text-align: center;
}

.legal h2 {
  font-size: 22px;
  margin: 44px 0 14px;
}

.legal p {
  color: #3d3d3a;
  font-size: 15.5px;
  line-height: 1.75;
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.legal li {
  color: #3d3d3a;
  font-size: 15.5px;
  line-height: 1.7;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(33, 33, 33, 0.35);
}

.legal a:hover { text-decoration-color: var(--accent); }

.legal strong { color: var(--ink); }

mark.ph {
  background: #fff1e6;
  color: #a03e00;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* ---------- anchor offset under sticky header ---------- */

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; max-width: 620px; margin-inline: auto; }
  .hero-media { width: min(580px, 100%); margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(1140px, 100% - 32px); }
  .header-inner { gap: 14px; }
  .site-nav { gap: 16px; }
  .nav-link { display: none; }
  .btn-sm { padding: 10px 16px; font-size: 13.5px; }
  .hero-media { gap: 12px; }
  .hero-stack { min-height: clamp(300px, 74vw, 460px); }
  .hero-stack-card { border-width: 4px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features, .revival { padding: 72px 0; }
  .how { padding: 72px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .motion-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .motion-block { margin-top: 48px; }

  .revival-chain {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .chain-arrow { transform: rotate(90deg); padding: 2px 0; }
}

@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 56px; }
  h1 br { display: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .pill {
    top: 10px;
    left: 10px;
    font-size: 11.5px;
    padding: 5px 11px;
    white-space: nowrap;
  }
  .pill-right { left: auto; right: 10px; }
  .ba-chips { left: 10px; bottom: 10px; gap: 7px; }
  .ba-chip { width: 76px; border-width: 2px; border-radius: 11px; }
  .ba-chip figcaption { font-size: 9px; padding: 10px 4px 4px; }
}
