/* ============================================================
   ClaimCircle — homepage-only styles + animations
   Uses the same CSS custom properties as styles.css
   ============================================================ */

/* ---- scroll reveal ---------------------------------------- */
/* Keep visibility outside the animation contract. Some privacy and wallet
   extensions pause document animations; reveal motion must never be able to
   leave the page transparent when that happens. */
[data-animate] {
  animation: cc-reveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-animate="from-left"]  { --cc-from: translateX(-36px); }
[data-animate="from-right"] { --cc-from: translateX(36px); }
[data-animate="scale-up"]   { --cc-from: scale(0.93) translateY(14px); }

[data-delay="1"] { animation-delay: 80ms; }
[data-delay="2"] { animation-delay: 160ms; }
[data-delay="3"] { animation-delay: 240ms; }
[data-delay="4"] { animation-delay: 320ms; }
[data-delay="5"] { animation-delay: 400ms; }

@keyframes cc-reveal {
  from { transform: var(--cc-from, translateY(28px)); }
  to   { transform: none; }
}

/* ---- hero ------------------------------------------------- */
.home-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(380px, 1.12fr);
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 60px) clamp(48px, 6vw, 72px);
  gap: clamp(32px, 5vw, 72px);
  overflow: hidden;
}

.home-hero-content {
  max-width: 580px;
}

.home-hero-eyebrow {
  font-size: 11px;
}

.home-hero-content h1 {
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.home-hero-actions .button {
  font-size: 15px;
  padding: 13px 24px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-actions .button:not(.secondary):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(14, 51, 40, 0.24);
}

.home-hero-actions .button.secondary:hover {
  background: var(--soft);
}

.home-trust-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.home-hero-media {
  position: relative;
}

.home-hero-img {
  width: 100%;
  border-radius: 14px;
  box-shadow:
    0 2px 4px rgba(14, 51, 40, 0.06),
    0 8px 24px rgba(14, 51, 40, 0.12),
    0 32px 80px rgba(14, 51, 40, 0.2);
  animation: hero-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-float {
  0%,  100% { transform: translateY(0px) rotate(0deg); }
  35%        { transform: translateY(-10px) rotate(0.4deg); }
  68%        { transform: translateY(-5px) rotate(-0.25deg); }
}

/* ---- platforms strip -------------------------------------- */
.home-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 8px;
  padding: 16px clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  font-size: 13px;
  color: var(--muted);
}

.home-platforms strong {
  color: var(--ink);
  font-weight: 800;
  margin-right: 2px;
}

.platform-chip {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 0.18s, background 0.18s;
}

.platform-chip:hover {
  border-color: var(--copper);
  background: #fbf4ec;
}

/* ---- shared section layout -------------------------------- */
.home-section {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 4vw, 60px);
}

.home-section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.home-section-head h2 {
  margin-top: 10px;
}

.home-section-head p {
  margin: 14px 0 0;
  color: #3b4a43;
  font-size: 18px;
  line-height: 1.55;
  max-width: 580px;
}

.home-section-head a {
  color: var(--copper);
  text-decoration: none;
  font-weight: 700;
}

.home-section-head a:hover { text-decoration: underline; }

/* ---- steps ------------------------------------------------ */
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-step {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s;
}

.home-step:hover {
  box-shadow: 0 10px 32px rgba(14, 51, 40, 0.12);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--copper) 40%, var(--line));
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-step h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.1;
}

.home-step p {
  margin: 0;
  color: #3b4a43;
  font-size: 15px;
  line-height: 1.58;
}

/* ---- showcase (dark) -------------------------------------- */
.home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  grid-template-areas: "media copy";
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  background: var(--forest);
  color: var(--paper);
}

.home-showcase .home-section-head {
  grid-area: copy;
  max-width: 460px;
  margin: 0;
}

.home-showcase .home-section-head h2 { color: var(--paper); }
.home-showcase .eyebrow { color: #d8a06b; }
.home-showcase .home-section-head p { color: #bdd0c8; }

/* ---- slideshow -------------------------------------------- */
.home-slideshow {
  grid-area: media;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45);
  aspect-ratio: 8 / 5;
  background: #071f18;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: cc-slide 15s ease-in-out infinite;
}
.home-slide:nth-child(1) {
  opacity: 1;
  animation-name: cc-slide-first;
}
.home-slide:nth-child(2) { animation-delay: 3s; }
.home-slide:nth-child(3) { animation-delay: 6s; }
.home-slide:nth-child(4) { animation-delay: 9s; }
.home-slide:nth-child(5) { animation-delay: 12s; }

.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-slide-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes cc-slide {
  0%   { opacity: 0; transform: translateX(18px); }
  3%   { opacity: 1; transform: translateX(0); }
  20%  { opacity: 1; transform: translateX(0); }
  23%  { opacity: 0; transform: translateX(-18px); }
  100% { opacity: 0; }
}

@keyframes cc-slide-first {
  0%, 20% { opacity: 1; transform: translateX(0); }
  23%     { opacity: 0; transform: translateX(-18px); }
  100%    { opacity: 0; }
}

/* ---- verdicts --------------------------------------------- */
.home-verdicts-section {
  border-bottom: 1px solid var(--line);
}

.home-verdicts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.verdict-chip {
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s;
}

.verdict-chip:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.verdict-supported    { background: #d2f0e3; color: #0b4226; border: 1px solid #a8dfc2; }
.verdict-misleading   { background: #fff2d6; color: #7a4a00; border: 1px solid #f0d48a; }
.verdict-contradicted { background: #fde4e1; color: #7a1e1a; border: 1px solid #f0b0ac; }
.verdict-limited      { background: #e6ecf0; color: #2c4658; border: 1px solid #b8ccda; }
.verdict-unclear      { background: #f0ede6; color: #4a3e2c; border: 1px solid #d8d0c0; }

/* ---- privacy ---------------------------------------------- */
.home-privacy {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-privacy-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.home-policy-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--copper);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.18s;
}

.home-policy-link:hover { opacity: 0.72; }

.home-privacy-list {
  display: grid;
  gap: 0;
}

.home-privacy-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}

.home-privacy-item:first-child { border-top: 1px solid var(--line); }

.privacy-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-top: 2px;
}

.home-privacy-item strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.home-privacy-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---- pricing ---------------------------------------------- */
.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-tier {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s;
}

.home-tier:hover {
  box-shadow: 0 10px 30px rgba(14, 51, 40, 0.12);
  transform: translateY(-4px);
  border-color: var(--copper);
}

.home-tier-featured {
  border-color: var(--copper);
  background: #fdf8f0;
}

.home-tier-featured:hover {
  box-shadow: 0 12px 36px rgba(166, 100, 52, 0.2);
}

.tier-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tier-name {
  display: block;
  margin-top: 8px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650;
  line-height: 1;
}

.tier-price {
  display: block;
  margin-top: 6px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
}

.tier-quota {
  display: block;
  margin-top: 18px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 650;
  line-height: 1;
}

.tier-unit {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-pricing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 30px;
}

.home-pricing-cta .button {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s;
}

.home-pricing-cta .button:not(.secondary):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(14, 51, 40, 0.2);
}

.home-pricing-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---- final CTA -------------------------------------------- */
.home-final-cta {
  padding: clamp(72px, 9vw, 112px) clamp(20px, 4vw, 60px);
  background: var(--forest);
  color: var(--paper);
}

.home-final-cta .eyebrow { color: #d8a06b; }

.home-final-cta h2 {
  max-width: 820px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 0.94;
  color: var(--paper);
}

.home-final-cta > p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 20px;
  color: #bdd0c8;
  font-size: 18px;
  line-height: 1.55;
}

.home-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-final-actions .button {
  background: var(--paper);
  color: var(--forest);
  font-size: 15px;
  padding: 13px 24px;
  transition: background 0.2s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-final-actions .button:hover {
  background: #fff8f0;
  transform: translateY(-3px);
}

.home-cta-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: var(--paper) !important;
}

.home-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

.home-footer-links {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

.home-footer-links a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.18s;
}

.home-footer-links a:hover { color: rgba(255, 255, 255, 0.82); }

/* ---- responsive ------------------------------------------- */
@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
  }

  .home-hero-media { order: -1; max-width: 680px; margin: 0 auto; }
  .home-hero-img   { animation: none; }

  .home-steps-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .home-privacy-grid {
    grid-template-columns: 1fr;
  }

  .home-pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-showcase {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
    gap: 32px;
  }

  .home-showcase .home-section-head {
    max-width: 720px;
  }
}

@media (max-width: 600px) {
  .home-pricing-grid { grid-template-columns: 1fr 1fr; }
  .home-slideshow { aspect-ratio: 8 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  .home-hero-img,
  .home-slide {
    animation: none !important;
    transform: none !important;
  }

  .home-slide { opacity: 0; }
  .home-slide:first-child { opacity: 1; }
}

@media (max-width: 420px) {
  .home-pricing-grid { grid-template-columns: 1fr; }
  .home-final-actions { flex-direction: column; }
  .home-final-actions .button { width: 100%; text-align: center; justify-content: center; }
}
