/* =========================================
   AThetaLife • home.css (v1.6)
   Purpose: Homepage-specific styles for /app/index.html
   Notes:
   - Header/footer are owned by base.css
   - This file styles only homepage-specific sections
   ========================================= */

/* -----------------------------------------
   1. Main layout helpers
   ----------------------------------------- */
.home-main {
  background: var(--bg);
}

.home .section-inner,
.home .hero {
  max-width: 1120px;
  margin: 0 auto;
}

.home .section-inner {
  width: min(100%, calc(100% - 2rem));
}

.home .section-header {
  text-align: center;
}

.home .section-header h2 {
  margin-bottom: var(--space-3);
}

.home .section-header p {
  max-width: 68ch;
  margin: 0 auto var(--space-3);
  color: var(--ink);   /* stronger, matches hero */
  text-align: left;
}

.home .section-header p:last-child {
  margin-bottom: 0;
}

/* -----------------------------------------
   2. Hero section
   ----------------------------------------- */
.home .hero {
  width: min(100%, calc(100% - 2rem));
  padding: clamp(1.5rem, 3.5vw, 3rem) 0 clamp(1.4rem, 2.5vw, 2.2rem);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
}

.home .hero-copy {
  text-align: left;
}

.home .hero h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.95rem, 2.35vw + 1rem, 3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.home .hero-headline-second-line {
  display: inline-block;
}

.home .hero-copy > p {
  max-width: 58ch;
  color: var(--muted);
  margin: 0 0 var(--space-3);
  font-size: var(--fs-300);
}

.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.home .hero-access-note {
    margin-top: -0.25rem;
    margin: 0;
    font-size: 0.96rem;
    color: var(--muted);
}

.home .hero-access-note a {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.home .hero-access-note a:hover,
.home .hero-access-note a:focus {
    text-decoration: underline;
}

.home .hero-note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

.home .hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .hero-visual .hero-hourglass {
  display: block;
  width: min(100%, 410px);
  max-width: 410px;
  height: auto;
}

.home .hero-hourglass-wrap {
  position: relative;
  display: inline-block;
  width: min(100%, 410px);
  max-width: 410px;
}

.home .hero-hourglass-wrap .hero-hourglass {
  width: 100%;
  max-width: 100%;
}

.home .hero-plate-link {
  position: absolute;
  left: 24%;
  top: 67%;
  width: 52%;
  height: 8%;
  display: block;
  z-index: 2;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

/* -----------------------------------------
   3. Intro / value / experience / vision blocks
   ----------------------------------------- */
.intro-block,
.value-block,
.experience-block,
.vision-block {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.intro-block {
  padding-top: clamp(1.5rem, 2.8vw, 2.25rem);
}

.value-block,
.vision-block {
  background: color-mix(in srgb, var(--surface) 70%, var(--bg) 30%);
}

/* -----------------------------------------
   4. How it works
   ----------------------------------------- */
.how-it-works {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.how-it-works .section-inner {
  max-width: 1120px;
}

.how-it-works .section-header {
  margin-bottom: var(--space-5);
}

.how-it-works .how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.how-it-works .how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-4);
  box-shadow: var(--shadow-1);
}

.how-it-works .how-step h3 {
  margin: 0 0 var(--space-2);
}

.how-it-works .how-step p {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-300);
}

@media (min-width: 768px) {
  .how-it-works .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -----------------------------------------
   5. Founding member block
   ----------------------------------------- */
.founding-block {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.founding-block .section-inner {
  max-width: 980px;
}

.founding-benefits {
  max-width: 520px;                /* tighter width = cleaner block */
  margin: var(--space-3) auto 0;   /* reduces vertical gap */
  padding-left: 0;                 /* removes left indent */
  list-style-position: inside;     /* pulls bullets inward */
  text-align: center;              /* centers text */
  display: grid;
  gap: var(--space-2);
}

.founding-benefits li {
  text-align: center;
}

.founding-benefits li {
  color: var(--ink);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

/* -----------------------------------------
   6. CTA band
   ----------------------------------------- */
.home .cta-band {
  padding: clamp(2.1rem, 4vw, 3.35rem) 0 !important;
  text-align: center !important;
  background: #ffffff !important;
  color: var(--ink) !important;
  border-top: 1px solid var(--border) !important;
}

.home .cta-band .section-inner {
  max-width: 900px;
}

.home .cta-band h2 {
  margin: 0 0 var(--space-3);
  color: var(--ink) !important;
}

.home .cta-band p {
  max-width: 60ch;
  margin: 0 auto var(--space-4);
  color: var(--ink) !important;
  font-size: var(--fs-400);
}

.home .cta-band .cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.home .cta-band .btn-primary {
  background: var(--brand) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
}

.home .cta-band .btn-secondary {
  background: var(--brand) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
}

.home .cta-band .btn-primary:hover,
.home .cta-band .btn-primary:focus {
  background: var(--brand-ink) !important;
  color: #fff !important;
}

.home .cta-band .btn-secondary:hover,
.home .cta-band .btn-secondary:focus {
  background: var(--brand-ink) !important;
  color: #fff !important;
}

/* -----------------------------------------
   7. Optional future inline SVG theme hooks
   ----------------------------------------- */
.hero-hourglass {
  --hg-brass: var(--accent-amber, #b9924a);
  --hg-brass-hi: color-mix(in srgb, var(--hg-brass) 80%, #fff 20%);
  --hg-wood: var(--wood, #5a3d2a);
  --hg-glass: color-mix(in srgb, #cfe8ff 25%, transparent);
  --hg-sand-top: var(--ivory-sand, #efe9da);
  --hg-sand-bot: var(--charcoal-sand, #2c2f33);
  --hg-ink: var(--ink, #e8e8ea);
}

.hero-hourglass #hg-frame {
  fill: none;
  stroke: var(--hg-brass);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-hourglass #hg-base {
  fill: var(--hg-wood);
}

.hero-hourglass #hg-nameplate rect {
  fill: var(--hg-brass);
}

.hero-hourglass #hg-nameplate text {
  fill: var(--hg-ink);
}

.hero-hourglass #hg-glass path {
  fill: var(--hg-glass);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.hero-hourglass #hg-sand-top {
  fill: var(--hg-sand-top);
}

.hero-hourglass #hg-sand-bot {
  fill: var(--hg-sand-bot);
}

.hero-hourglass #hg-sand-stream {
  stroke: var(--hg-sand-bot);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  fill: none;
}

.hero-clarifier {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #000; /* black */
  text-align: center;
  opacity: 0.9;
}

.hero-return-note {
  margin-top: 0.85rem;
  text-align: center;
  color: #000;
  opacity: 0.88;
  font-size: 0.98rem;
}

/* -----------------------------------------
   8. Responsive adjustments
   ----------------------------------------- */
@media (max-width: 920px) {
  .home .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--space-7);
  }

  .home .hero-copy {
    text-align: center;
  }

  .home .hero-copy > p,
  .home .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .home .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .founding-benefits {
    padding-left: 1rem;
  }
}

@media (max-width: 560px) {
  .home .hero {
    width: min(100%, calc(100% - 1.25rem));
  }

  .home .section-inner {
    width: min(100%, calc(100% - 1.25rem));
  }

  .home .hero-actions,
  .cta-band .cta-actions {
    flex-direction: column;
  }

  .home .hero-actions .btn,
  .cta-band .cta-actions .btn,
  .section-actions .btn {
    width: 100%;
  }
}