/* ============================================================
   ACHILLE & KIPI — Kickstarter Guide Stylesheet
   Shared by /guida-kickstarter/ and /en/kickstarter-guide/
   ============================================================ */

/* ── Guide hero ─────────────────────────────────────────────── */
.guide-hero {
  position: relative;
  padding: var(--s32) 0 var(--s20);
  text-align: center;
  background: #121318;
}

.guide-hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

.guide-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ks);
  padding: 6px var(--s4);
  border: 1px solid var(--ks-border);
  border-radius: 99px;
  margin-bottom: var(--s6);
}

.guide-hero__ks-logo {
  display: inline-block;
  vertical-align: -0.05em;
}

.guide-hero__title {
  font-family: var(--font-mono);
  font-size: var(--t-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto var(--s6);
}

.guide-hero__sub {
  font-size: var(--t-lg);
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Guide steps section ─────────────────────────────────────── */
.guide-steps {
  padding: var(--s16) 0 var(--s24);
}

/* ── Timeline wrapper ───────────────────────────────────────── */
.guide-timeline {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guide-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 0;
}

/* ── Single step ─────────────────────────────────────────────── */
.guide-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 var(--s8);
  padding-bottom: var(--s16);
  position: relative;
}

.guide-step:last-child {
  padding-bottom: 0;
}

/* ── Step marker (left column) ──────────────────────────────── */
.guide-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 4px;
}

.guide-step__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--text-low);
  flex-shrink: 0;
  transition: border-color var(--slow) var(--ease),
              color var(--slow) var(--ease),
              background var(--slow) var(--ease),
              box-shadow var(--slow) var(--ease);
}

.guide-step.is-active .guide-step__dot {
  border-color: var(--ks);
  color: var(--ks);
  background: var(--ks-dim);
  box-shadow: 0 0 0 6px rgba(5, 206, 120, 0.08);
}

.guide-step__progress {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.guide-step__progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 100%;
  background: var(--ks);
  transition: bottom 0.6s var(--ease);
}

.guide-step.is-active .guide-step__progress::after,
.guide-step.is-done  .guide-step__progress::after {
  bottom: 0;
}

.guide-step:last-child .guide-step__progress {
  display: none;
}

/* ── Step content (right column) ────────────────────────────── */
.guide-step__content {
  padding-top: 6px;
  padding-bottom: var(--s4);
}

.guide-step__tag {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: var(--s3);
  transition: color var(--slow) var(--ease);
}

.guide-step.is-active .guide-step__tag {
  color: var(--ks);
}

.guide-step__title {
  font-family: var(--font-mono);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--s4);
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity var(--slow) var(--ease),
              transform var(--slow) var(--ease);
}

.guide-step.is-active .guide-step__title,
.guide-step.is-done  .guide-step__title {
  opacity: 1;
  transform: none;
}

.guide-step__body {
  font-size: var(--t-base);
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 100%;
  margin-bottom: var(--s6);
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity var(--slow) var(--ease) 80ms,
              transform var(--slow) var(--ease) 80ms;
}

.guide-step.is-active .guide-step__body,
.guide-step.is-done  .guide-step__body {
  opacity: 1;
  transform: none;
}

.guide-step__body strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Screenshot placeholder (16:9) ──────────────────────────── */
.guide-step__screenshot {
  aspect-ratio: 16 / 9;
  background: #1e2026;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transform: translateY(8px);
  transition: opacity var(--slow) var(--ease) 120ms,
              transform var(--slow) var(--ease) 120ms,
              border-color var(--slow) var(--ease);
  overflow: hidden;
}

.guide-step__screenshot picture,
.guide-step__screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.guide-step__screenshot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  color: var(--text-low);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-step__screenshot-inner svg {
  opacity: 0.4;
}

.guide-step.is-active .guide-step__screenshot,
.guide-step.is-done  .guide-step__screenshot {
  opacity: 1;
  transform: none;
  border-color: var(--border-mid);
}

/* ── Note/tip box ────────────────────────────────────────────── */
.guide-step__note {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  background: var(--ks-dim);
  border: 1px solid var(--ks-border);
  border-radius: 8px;
  padding: var(--s4) var(--s5);
  font-size: var(--t-sm);
  color: var(--text-mid);
  max-width: 100%;
  margin-bottom: var(--s6);
  opacity: 0;
  transition: opacity var(--slow) var(--ease) 160ms;
}

.guide-step__note-icon {
  color: var(--ks);
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-step.is-active .guide-step__note,
.guide-step.is-done  .guide-step__note {
  opacity: 1;
}

/* ── CTA section ─────────────────────────────────────────────── */
.guide-cta {
  padding: var(--s20) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.guide-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-cta__label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ks);
  margin-bottom: var(--s4);
}

.guide-cta__title {
  font-family: var(--font-mono);
  font-size: var(--t-2xl);
  font-weight: 700;
  margin-bottom: var(--s4);
}

.guide-cta__sub {
  font-size: var(--t-base);
  color: var(--text-mid);
  margin-bottom: var(--s8);
  max-width: 480px;
}

.btn--ks {
  background: var(--ks);
  color: #0a0c12;
  border-color: var(--ks);
  font-weight: 700;
}

.btn--ks:hover {
  background: #04b569;
  border-color: #04b569;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .guide-timeline::before {
    left: 20px;
  }

  .guide-step {
    grid-template-columns: 40px 1fr;
    gap: 0 var(--s4);
  }

  .guide-step__dot {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }

  .guide-step__title {
    font-size: var(--t-lg);
  }
}
