/* Bokily home — hero + story bands (uses site.css tokens) */

.hero-bleed {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: min(86svh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--bokily-green-deep);
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  padding: 6px;
}
.hero-covers img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  filter: saturate(0.95) brightness(0.78);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(30, 63, 26, 0.55) 0%,
      rgba(26, 51, 24, 0.72) 42%,
      rgba(20, 40, 18, 0.94) 72%,
      rgba(16, 32, 14, 0.98) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--wrap-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.25rem 0 2rem;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.hero-copy {
  max-width: 28rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: #fff;
  animation: heroRise 0.55s ease-out both;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  max-width: 20ch;
  color: #fff;
  animation: heroRise 0.55s ease-out 0.08s both;
}

.hero-support {
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.45;
  opacity: 0.95;
  max-width: 32rem;
  margin-bottom: var(--space-lg);
  color: #fff;
  animation: heroRise 0.55s ease-out 0.14s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  animation: heroRise 0.55s ease-out 0.2s both;
}
.hero-cta .btn-primary {
  background: #fff;
  color: var(--bokily-green);
  border-color: #fff;
}
.hero-cta .btn-primary:hover {
  background: #f3f7f2;
  color: var(--bokily-green-deep);
}

.hero-progress {
  margin-top: var(--space-sm);
  max-width: 22rem;
  animation: heroRise 0.55s ease-out 0.24s both;
}
.hero-progress[hidden] { display: none !important; }
.hero-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.15s linear;
}
.hero-progress-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

@media (min-width: 960px) {
  .hero-bleed {
    min-height: min(70svh, 600px);
    align-items: center;
  }
  .hero-stage {
    left: 46%;
    right: 0;
    top: 0;
    bottom: 0;
  }
  .hero-covers {
    inset: 1.15rem 1.15rem 1.15rem 0;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 9px;
    padding: 0;
    animation: heroFloat 22s ease-in-out infinite alternate;
  }
  .hero-covers img {
    min-height: 100%;
    height: 100%;
    border-radius: 10px;
    filter: saturate(1) brightness(0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }
  .hero-scrim {
    background:
      linear-gradient(
        90deg,
        #1e3f1a 0%,
        #1e3f1a 40%,
        rgba(30, 63, 26, 0.9) 52%,
        rgba(30, 63, 26, 0.3) 70%,
        rgba(30, 63, 26, 0.12) 100%
      );
  }
  .hero-content {
    padding: 2.5rem 0;
  }
  .hero-copy { max-width: 26rem; }
  .hero-brand { font-size: clamp(3.1rem, 4.5vw, 4rem); }
  .hero-content h1 {
    font-size: clamp(1.5rem, 2vw, 1.85rem);
  }
}

/* Centered story / trust / faq bands */
.story {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--bokily-line);
  background: var(--bokily-surface);
}
.story:nth-child(even) { background: var(--bokily-white); }

.story-inner {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  max-width: var(--pair-max);
  margin-inline: auto;
}
@media (min-width: 860px) {
  .story-inner {
    grid-template-columns: minmax(0, 1fr) 168px;
    column-gap: 1.5rem;
    align-items: start;
  }
  .story--flip .story-inner {
    grid-template-columns: 168px minmax(0, 1fr);
  }
  .story--flip .story-copy { order: 2; }
  .story--flip .story-visual { order: 1; justify-self: start; }
}

.story-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bokily-green);
  margin-bottom: 0.3rem;
}
.story-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--bokily-green);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  max-width: 26ch;
}
.story-copy p {
  color: var(--bokily-muted);
  font-size: 0.96rem;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}
.story-copy p:last-of-type { margin-bottom: 0; }
.story-list {
  margin: 0.45rem 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--bokily-muted);
  font-size: 0.93rem;
}
.story-list li { margin-bottom: 0.2rem; }
.story-cta {
  display: inline-flex;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--bokily-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-visual {
  display: block;
  width: min(168px, 46vw);
  margin-inline: auto;
}
@media (min-width: 860px) {
  .story-visual {
    width: 168px;
    margin-inline: 0;
    justify-self: end;
  }
  .story--flip .story-visual { justify-self: start; }
}
.story-visual-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--bokily-green-soft);
  border-radius: 10px;
  border: 1px solid var(--bokily-line);
  overflow: hidden;
  box-shadow: var(--bokily-shadow);
}
.story-visual-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f3f7f2;
}
.story-fade .story-visual-media img {
  animation: coverCross 8s ease-in-out infinite;
}
.story-fade .story-visual-media img:nth-child(2) {
  animation-delay: -4s;
  opacity: 0;
}
.story-meta-panel {
  margin-top: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--bokily-white);
  border: 1px solid var(--bokily-line);
}
.story-meta-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--bokily-ink);
  margin-bottom: 0.1rem;
}
.story-meta-panel span {
  color: var(--bokily-muted);
  font-size: 0.8rem;
}

.distance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-input);
  background: var(--bokily-green-soft);
  color: var(--bokily-green);
  font-weight: 600;
  font-size: 0.84rem;
}

.trust {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--bokily-line);
  background: var(--bokily-white);
}
.trust .wrap {
  max-width: var(--wrap-max);
}
.trust-grid {
  display: grid;
  gap: 1.15rem;
  max-width: var(--pair-max);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    max-width: none;
  }
}
.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--bokily-green);
  margin-bottom: 0.25rem;
}
.trust-item p {
  color: var(--bokily-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.trust-item a { color: var(--bokily-green); text-decoration: underline; }

.faq {
  padding: var(--section-y-lg) 0;
  background: var(--bokily-white);
}
.faq .section-intro {
  max-width: var(--content-max);
  margin: 0 auto 1.1rem;
  text-align: left;
}
.faq .section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--bokily-green);
  margin-bottom: 0.35rem;
}
.faq .section-intro p {
  color: var(--bokily-muted);
  font-size: 0.95rem;
}
.faq .wrap > details,
.faq details {
  max-width: var(--content-max);
  margin-inline: auto;
  border-top: 1px solid var(--bokily-line);
  padding: 0.7rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--bokily-line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bokily-ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin-top: 0.45rem;
  color: var(--bokily-muted);
  font-size: 0.93rem;
}
.faq details a {
  color: var(--bokily-green);
  text-decoration: underline;
}

.about-seo {
  padding: var(--section-y-lg) 0;
  border-top: 1px solid var(--bokily-line);
  background: var(--bokily-surface);
}
.about-seo .wrap > * {
  max-width: var(--content-max);
  margin-inline: auto;
}
.about-seo h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  color: var(--bokily-green);
  margin-bottom: 0.55rem;
}
.about-seo p {
  color: var(--bokily-muted);
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.about-seo a {
  color: var(--bokily-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-close {
  padding: var(--section-y) 0 var(--section-y-lg);
  background: var(--bokily-surface);
}
.cta-close .wrap {
  max-width: var(--wrap-max);
}
.cta-close-band {
  max-width: var(--pair-max);
  margin-inline: auto;
  background: var(--bokily-green);
  color: #fff;
  border-radius: var(--radius-sheet);
  padding: 1.15rem 1.2rem;
}
@media (min-width: 700px) {
  .cta-close-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}
.cta-close-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 0.2rem;
}
.cta-close-band p {
  opacity: 0.92;
  max-width: 34rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}
@media (min-width: 700px) {
  .cta-close-band p { margin-bottom: 0; }
}

@keyframes heroFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -10px, 0); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes coverCross {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-covers,
  .hero-brand,
  .hero-content h1,
  .hero-support,
  .hero-cta,
  .hero-progress,
  .story-fade .story-visual-media img {
    animation: none !important;
  }
  .story-fade .story-visual-media img:nth-child(2) { opacity: 0; }
}
