/* Page-specific styles for the home page, layered on top of the shared
   style.css - same pattern as apoie/style.css sitting on top of ../style.css. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The shared body rule centers a single fixed-size card and hides overflow.
   This page scrolls through several sections instead, so it needs the same
   override /apoie already uses: overflow-y: auto after overflow: hidden
   overrides only the Y axis, so the drifting bookshelf background stays
   contained horizontally instead of scrolling sideways too. */
body {
  align-items: flex-start;
  overflow-y: auto;
  padding: 0;
}

/* Smooth-scrolls when the nav links (or any #anchor) are clicked. */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* The shared body::before dims the bookshelf pattern to 55% - fine behind a
   single centered card, but body text sitting directly over the shelves (the
   non-tinted sections below) read as faded against it. */
body::before {
  background: rgba(251, 245, 234, 0.86);
}

/* ---------------------------------------------------------------------------
   Sticky nav: jumps to each section. Anchors get scroll-margin-top so the
   bar (which stays on screen) never covers the heading it just scrolled to.
   --------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--cream-soft);
  border-bottom: 3px solid var(--purple-dark);
}

.site-nav a {
  font-family: "Pixelify Sans", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-dark);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--purple-deep);
  text-decoration: underline;
}

.section[id],
.hero[id] {
  scroll-margin-top: 3.2rem;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------------------------------------------------------------------------
   Hero: the coming-soon card, now with a pitch and two calls to action
   instead of sitting there on its own.
   --------------------------------------------------------------------------- */

.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 1.25rem 2.5rem;
}

.hero .card {
  max-width: min(520px, 92vw);
}

.hero-tagline {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--purple-dark);
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.pixel-button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  font-family: "Pixelify Sans", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--cream-soft);
  background: var(--purple-dark);
  border: 3px solid var(--purple-deep);
  box-shadow: 4px 4px 0 var(--purple-deep);
  cursor: pointer;
}

.pixel-button:hover {
  background: var(--purple);
}

.pixel-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--purple-deep);
}

.pixel-button--ghost {
  color: var(--purple-dark);
  background: var(--cream-soft);
}

.pixel-button--ghost:hover {
  background: var(--cream);
}

/* The Instagram icon on the "Seguir no Instagram" button. Inline SVG rather
   than an <img>, so `fill` can inherit the button's own text colour instead
   of being baked in as a fixed image asset. */
.insta-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.3em;
  fill: var(--purple-dark);
}

/* ---------------------------------------------------------------------------
   Sections: alternating bands so the page reads in chapters while scrolling,
   each one a plain content column - no card chrome, that stays reserved for
   the hero and the roadmap steps.
   --------------------------------------------------------------------------- */

.section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3.5rem 1.25rem;
  /* Every section gets a near-solid backdrop, not just the tinted ones - text
     sitting directly over the bookshelf pattern read as washed out. */
  background: rgba(251, 245, 234, 0.9);
}

.section--tint {
  background: rgba(243, 233, 215, 0.95);
  border-top: 3px solid rgba(90, 74, 121, 0.25);
  border-bottom: 3px solid rgba(90, 74, 121, 0.25);
}

.section-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.section-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
}

.section-title {
  margin: 0;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  color: var(--purple-dark);
  text-shadow: 2px 2px 0 var(--purple);
}

.section-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--purple-dark);
  max-width: 56ch;
}

/* ---- Feature pillars ---- */

.pillars {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.pillar {
  padding: 1.4rem 1rem;
  background: var(--cream-soft);
  border: 3px solid var(--purple-dark);
  box-shadow: 4px 4px 0 var(--purple-deep);
}

.pillar-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.pillar h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--purple-deep);
}

.pillar p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--purple-dark);
  opacity: 0.95;
}

@media (max-width: 640px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---- Instagram grid ---- */

.insta-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.insta-post {
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  border: 3px solid var(--purple-dark);
  box-shadow: 4px 4px 0 var(--purple-deep);
  text-decoration: none;
  overflow: hidden;
}

.insta-post img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 3px solid var(--purple-dark);
}

.insta-post-caption {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0.7rem 0.7rem 0.2rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--purple-deep);
  text-align: left;
}

.insta-post-date {
  padding: 0 0.7rem 0.7rem;
  font-size: 0.7rem;
  color: var(--purple-dark);
  opacity: 0.7;
  text-align: left;
}

@media (max-width: 640px) {
  .insta-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Roadmap ---- */

.roadmap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}

.roadmap-step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--cream-soft);
  border: 2px solid var(--purple-dark);
}

.roadmap-step.done {
  border-color: #a8790c;
  background: #fdf3d0;
}

.roadmap-step.active {
  border-style: dashed;
}

.roadmap-marker {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--purple-dark);
}

.roadmap-step.done .roadmap-marker {
  background: #f6d860;
  border-color: #a8790c;
}

.roadmap-text {
  flex: 1;
}

.roadmap-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--purple-deep);
}

.roadmap-text span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--purple-dark);
  opacity: 0.9;
}

/* ---- Footer ---- */

.site-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1.25rem 4rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--purple-dark);
  opacity: 0.65;
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 1rem;
  }
}
