/* =========================================================
   PAGES — hero + section layouts, one clearly-labeled block
   per page. Shared component classes live in components.css.
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Shared sub-page hero (every page except Home) */
.page-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero .container {
  max-width: 780px;
}

.page-hero h1 {
  margin-bottom: 18px;
}

/* =========================================================
   HOME
   ========================================================= */

.home-hero {
  padding: 56px 0 0;
  overflow: hidden;
}

.home-hero-inner {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Same top/bottom values as before (80px/40px) — do not modify those.
     Converted from the "80px 0 40px 0" shorthand to longhand because this
     element carries class="container" directly (see index.html), and the
     shorthand's explicit 0 for left/right was fully replacing .container's
     own "padding: 0 24px" rather than merging with it, running the hero
     heading/lead text edge-to-edge on mobile. Longhand only ever touches
     top/bottom, so .container's side padding survives either way. */
  padding-top: 80px;
  padding-bottom: 40px;
}

@media (min-width: 992px) {
  .home-hero-inner {
    /* Same top/bottom values as before (140px/30px) — do not modify those. */
    padding-top: 140px;
    padding-bottom: 30px;
  }
}

.home-hero .social-proof {
  margin-bottom: 32px;
}

.home-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
}

.home-hero h1 em {
  font-style: italic;
  color: var(--accent-blue);
}

.home-hero .lead {
  max-width: 620px;
  margin: 0 auto 36px;
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.home-hero-ctas .btn {
  font-size: 1.05rem;
  padding: 15px 30px;
}

.home-phones {
  /* .home-hero-inner is a flex column with align-items:center, which
     shrink-wraps flex children to their content width instead of
     stretching them — without an explicit width this collapses to 0,
     taking the percentage-sized .phone-frame children down with it. */
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 0 0;
}

/*
  Static fanned-out offset per phone, expressed as custom properties rather
  than a hardcoded transform — .phone-frame's own base rule (components.css)
  composes these with the pointer-driven --tilt-x/--tilt-y that motion.js
  writes, so the hero tilt effect never has to fight/overwrite this layout.
*/
.home-phones .phone-frame:nth-child(1) {
  --tilt-base-rotate: -6deg;
  --tilt-base-y: 20px;
  z-index: 1;
  margin-right: -40px;
}
.home-phones .phone-frame:nth-child(2) {
  z-index: 2;
  max-width: 280px;
}
.home-phones .phone-frame:nth-child(3) {
  --tilt-base-rotate: 6deg;
  --tilt-base-y: 20px;
  z-index: 1;
  margin-left: -40px;
}

@media (max-width: 700px) {
  .home-phones .phone-frame:nth-child(1),
  .home-phones .phone-frame:nth-child(3) {
    display: none;
  }
  .home-phones .phone-frame:nth-child(2) {
    max-width: 220px;
  }
}

/*
  padding-top/padding-bottom longhand rather than the "88px 0" shorthand on
  purpose: .home-pillars and .home-proof-section carry class="container"
  directly on the same <section> element as this rule. A 2-value padding
  shorthand fully replaces .container's own "padding: 0 24px" (equal
  specificity, this file loads after base.css) rather than merging with it,
  zeroing the side padding entirely — content ran edge-to-edge on mobile.
  Longhand only ever touches top/bottom, so .container's horizontal padding
  always survives regardless of cascade order.
*/
.home-pillars,
.home-proof-section,
.home-closing {
  padding-top: 88px;
  padding-bottom: 88px;
}

.home-proof-section {
  text-align: center;
}

.home-proof-section .social-proof {
  margin: 0 auto;
}

.home-closing {
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--accent-blue-soft) 100%
  );
  border-top: 1px solid var(--border);
}

.home-closing h2 {
  max-width: 640px;
  margin: 0 auto 16px;
}

.home-closing p {
  max-width: 520px;
  margin: 0 auto 32px;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */

/* Longhand padding-top/bottom — .hiw-nerve carries class="container" on the
   same element; see the .home-pillars comment above for why shorthand here
   would zero out .container's side padding. */
.hiw-nerve {
  padding-top: 24px;
  padding-bottom: 88px;
}

.hiw-nerve-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.hiw-nerve-visual .nerve-post {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 20px;
}

.hiw-nerve-visual .nerve-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.hiw-nerve-visual .nerve-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-weight: 800;
}

.hiw-nerve-visual .nerve-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.hiw-nerve-visual .nerve-actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Longhand — .hiw-actions/.hiw-media/.hiw-aware carry class="container" on
   the same element; see the .home-pillars comment above. */
.hiw-actions,
.hiw-media,
.hiw-banter,
.hiw-aware {
  padding-top: 64px;
  padding-bottom: 64px;
}

.hiw-banter {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.media-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.media-chip svg {
  width: 26px;
  height: 26px;
  color: var(--accent-blue);
}

/* =========================================================
   CREATORS
   ========================================================= */

/* Longhand — .coins-gems/.creator-program carry class="container" on the
   same element; see the .home-pillars comment above. */
.coins-gems,
.creator-program,
.challenge-mode {
  padding-top: 64px;
  padding-bottom: 64px;
}

.economy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .economy-cards {
    grid-template-columns: 1fr;
  }
}

.economy-card {
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.economy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px var(--shadow-color);
}

.economy-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.economy-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.economy-card li {
  padding-left: 22px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.economy-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--accent-blue));
}

.milestone-card,
.challenge-card {
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.milestone-card:hover,
.challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px var(--shadow-color);
}

.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.milestone-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
}

.milestone-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.figure-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   PREMIUM
   ========================================================= */

/* Longhand — .tick-compare/.premium-benefits carry class="container" on the
   same element; see the .home-pillars comment near the top of this file. */
.tick-compare,
.aware-circle,
.premium-benefits {
  padding-top: 64px;
  padding-bottom: 64px;
}

.tick-legend {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tick-legend-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Understated animated glow marking these out as the "premium tier" —
   opacity-only (see the hard constraint on GPU-friendly properties), a
   static blurred color fill behind the pill that slowly breathes. */
.tick-legend-item::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.2;
}

.tick-legend-item--gold::after {
  background: var(--accent-gold);
  animation: tickGlowPulse 3.2s ease-in-out infinite;
}

.tick-legend-item--blue::after {
  background: var(--accent-blue);
  animation: tickGlowPulse 3.6s ease-in-out infinite;
}

@keyframes tickGlowPulse {
  0%,
  100% {
    opacity: 0.16;
  }
  50% {
    opacity: 0.4;
  }
}

.tick-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.tick-dot.gold {
  background: var(--accent-gold);
}
.tick-dot.blue {
  background: var(--accent-blue);
}

.aware-circle {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   BUSINESS
   ========================================================= */

/* Longhand — .campaign-explainer/.dashboard-features carry class="container"
   on the same element; see the .home-pillars comment near the top of this
   file. */
.campaign-explainer,
.dashboard-features,
.business-contact {
  padding-top: 64px;
  padding-bottom: 64px;
}

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px var(--shadow-color);
}

.use-case-card .use-case-question {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.use-case-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.use-case-options span {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.business-contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-teal-soft) 100%);
}

.business-contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.business-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .business-contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DOWNLOAD
   ========================================================= */

.download-hero {
  padding: 64px 0 88px;
}

.download-hero .split {
  align-items: center;
}

.download-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.download-qr {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.download-qr-code {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  flex-shrink: 0;
}

.download-qr-code svg {
  width: 100%;
  height: 100%;
}

.download-qr-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 160px;
}

/* Longhand — .download-screens carries class="container" on the same
   element; see the .home-pillars comment near the top of this file. */
.download-screens {
  padding-bottom: 88px;
}

.download-screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}

@media (max-width: 700px) {
  .download-screens-grid {
    grid-template-columns: 1fr 1fr;
  }
  .download-screens-grid .phone-frame:nth-child(3) {
    grid-column: span 2;
    max-width: 260px;
    justify-self: center;
  }
}

@media (max-width: 460px) {
  .download-screens-grid {
    grid-template-columns: 1fr;
  }
  .download-screens-grid .phone-frame:nth-child(3) {
    grid-column: auto;
  }
}

/* =========================================================
   TRUST & SAFETY
   ========================================================= */

/* Longhand — .trust-pillars carries class="container" on the same element;
   see the .home-pillars comment near the top of this file. */
.trust-pillars,
.trust-faq {
  padding-top: 64px;
  padding-bottom: 64px;
}

.trust-faq {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.trust-faq .container {
  max-width: 820px;
}
