/* OSS Account Guide infographic — extends tokens/components from styles.css.
   No new colors/fonts/radius are introduced; only layout for this page's
   journey-path infographic, mini-mockups, accordion, and progress bar. */

/* ===== Scroll progress bar ===== */
.ga-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.ga-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  .ga-progress-fill {
    transition: width 100ms linear;
  }
}

/* ===== Hero extras (badge, CTA, journey strip) ===== */
.ga-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.ga-hero-actions {
  margin: 32px 0 40px;
}

.ga-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.ga-strip-sep {
  color: var(--gold);
}

/* ===== Hero promo carousel =====
   Panel height is measured once on load (see infografis-akun-oss.js) to
   match the tallest slide's natural content — a JS-computed px height,
   not a hand-picked min-height, so it stays correct across breakpoints
   and languages. Each slide is a flex column so its content distributes
   across that full height instead of collapsing to the top. */
.ga-promo {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ga-promo-viewport {
  position: relative;
  min-height: 400px; /* safety net until JS sets the real height */
}

.ga-promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ga-promo-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .ga-promo-slide {
    transition: opacity 300ms ease;
  }
}

.ga-promo-statement {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.ga-promo-statement em {
  font-style: italic;
  color: var(--gold-light);
}

/* Slide 1 — numbered vertical timeline, self-playing walkthrough */
.ga-promo-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ga-promo-timeline::before {
  content: '';
  position: absolute;
  left: 13.5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(201, 162, 92, 0.3);
}

.ga-promo-timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ga-promo-timeline-marker {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  z-index: 1;
  transition: background-color 200ms ease, color 200ms ease;
}

.ga-promo-timeline-label {
  font-size: 16px;
  color: var(--text-on-navy-muted);
  transition: color 200ms ease, font-weight 200ms ease;
}

.ga-promo-timeline-item--active .ga-promo-timeline-marker {
  background: var(--gold-light);
  color: var(--navy);
}

.ga-promo-timeline-item--active .ga-promo-timeline-label {
  color: var(--text-on-navy);
  font-weight: 600;
}

/* Slide 2 — document-stack cards + gold hairline callout */
.ga-promo-cards {
  display: flex;
  gap: 16px;
}

.ga-promo-card {
  flex: 1 1 0;
  background: var(--ivory);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.ga-promo-card-icon {
  color: var(--navy);
  margin-bottom: 10px;
}

.ga-promo-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 10px;
}

.ga-promo-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ga-promo-card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.ga-promo-check {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.ga-promo-hairbox {
  border: 1px solid rgba(201, 162, 92, 0.4);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.ga-promo-hairbox p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gold-light);
}

/* Slide 3 — big serif figures with icon + thin rule */
.ga-promo-stats {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ga-promo-stat-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ga-promo-stat-icon {
  align-self: center;
  color: var(--gold-light);
  flex: 0 0 auto;
}

.ga-promo-stat-figure {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  color: var(--gold-light);
}

.ga-promo-stat-rule {
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.5;
  margin: 10px 0 8px;
}

.ga-promo-stat-label {
  font-size: 16px;
  color: var(--text-on-navy-muted);
}

/* Slide 4 — anti-calo, official-site mockup + contact row */
.ga-promo-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--navy);
}

.ga-promo-browser-lock {
  flex: 0 0 auto;
  color: var(--muted);
}

.ga-promo-browser-url {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 600;
}

.ga-promo-browser-badge {
  flex: 0 0 auto;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius);
}

.ga-promo-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-navy-muted);
}

.ga-promo-contact {
  border: 1px solid rgba(247, 244, 238, 0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--gold-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ga-promo-contact-sep {
  color: rgba(247, 244, 238, 0.3);
}

/* Dots */
.ga-promo-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ga-promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(201, 162, 92, 0.35);
  transition: background-color 150ms ease;
}

.ga-promo-dot.is-active {
  background: var(--gold-light);
}

.ga-promo-dot:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ===== Path toggle (segmented control, sticky through prep + journey) ===== */
.ga-path-toggle-sticky {
  position: sticky;
  top: 3px;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
  padding: 24px var(--gutter) 20px;
}

.ga-path-toggle-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ga-path-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.ga-path-tab {
  background: var(--ivory);
  color: var(--navy);
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  padding: 18px 22px;
  text-align: left;
  font: inherit;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.ga-path-tab + .ga-path-tab {
  border-left: 1px solid var(--hairline);
}

.ga-path-tab-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 4px;
}

.ga-path-tab-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 150ms ease;
}

.ga-path-tab:hover {
  border-bottom-color: var(--gold);
}

.ga-path-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.ga-path-tab.is-active {
  background: var(--navy);
  color: var(--ivory);
}

.ga-path-tab.is-active .ga-path-tab-desc {
  color: var(--text-on-navy-muted);
}

.ga-path-tab.is-active:hover {
  border-bottom-color: transparent;
}

.ga-path-toggle-helper {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
}

/* Cross-fade between path panels */
.ga-path-panel {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .ga-path-panel {
    transition: opacity 200ms ease;
  }

  .ga-path-panel.is-fading {
    opacity: 0;
  }
}

/* Path B navy accent — step markers + connector line take on the navy
   path identity; step 6's gold celebration accent is kept on both paths. */
.ga-journey--navy .ga-journey-line {
  background: linear-gradient(to bottom, var(--navy), var(--muted));
}

.ga-journey--navy .ga-step-marker {
  border-color: var(--navy);
  color: var(--navy);
}

.ga-journey--navy .ga-step--accent .ga-step-marker {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.ga-journey--navy .ga-step--accent .ga-step-card {
  border-color: var(--gold);
}

/* Note panel — navy panel with gold-light serif title (Path B "Penting"),
   deliberately not the gold-tinted info-box style used by .ga-prep-note */
.ga-note-panel {
  background: var(--navy);
  color: var(--text-on-navy);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.ga-note-panel-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.ga-note-panel-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-on-navy-muted);
}

.ga-note-panel-footnote {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-on-navy-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(247, 244, 238, 0.12);
}

/* 4-card prep grid variant (Path B) — compound selector so it reliably
   beats .ga-prep-grid's 3-column rule regardless of source order */
.ga-prep-grid.ga-prep-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Company-profile mockup (Path B, step 7 — AHU-synced data) */
.ga-mockup-profile-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.ga-mockup-profile-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.ga-mockup-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ga-mockup-profile-row:first-of-type {
  margin-top: 0;
}

.ga-mockup-profile-row label {
  flex: 0 0 70px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ga-mockup-profile-line {
  flex: 1 1 auto;
  height: 10px;
  border-radius: var(--radius);
  background: var(--hairline);
}

/* ===== Section shell ===== */
.ga-section {
  border-top: 1px solid var(--hairline);
  padding: 64px var(--gutter);
}

.ga-section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}

.ga-section-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 32px;
}

.ga-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Prep ("siapkan 3 hal") cards ===== */
.ga-prep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.ga-prep-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}

.ga-prep-icon {
  color: var(--navy);
  margin-bottom: 16px;
}

.ga-prep-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
}

.ga-prep-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(168, 134, 47, 0.08);
  border: 1px solid rgba(168, 134, 47, 0.25);
  border-radius: var(--radius);
  padding: 16px 18px;
}

/* ===== Journey path ===== */
.ga-journey {
  position: relative;
}

.ga-journey-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  transform: translateX(-50%);
}

.ga-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
}

.ga-step-marker {
  grid-column: 2;
  justify-self: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  z-index: 1;
}

.ga-step--accent .ga-step-marker {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.ga-step-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--ivory);
}

.ga-step--left .ga-step-card {
  grid-column: 1;
}

.ga-step--right .ga-step-card {
  grid-column: 3;
}

.ga-step--accent .ga-step-card {
  border-color: var(--gold);
}

.ga-step-icon {
  color: var(--navy);
  margin-bottom: 12px;
}

.ga-step-icon .ga-icon-accent {
  color: var(--gold);
}

.ga-step-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.ga-step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== Mini-mockups ===== */
.ga-mockup {
  margin-top: 16px;
  padding: 14px;
  background: rgba(28, 36, 51, 0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.ga-mockup-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
}

.ga-mockup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ga-mockup-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 100px;
}

.ga-mockup-field label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ga-mockup-input {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  padding: 7px 9px;
  font-size: 12px;
  color: var(--navy);
  min-height: 30px;
}

.ga-mockup-code {
  display: flex;
  gap: 6px;
}

.ga-mockup-code-box {
  width: 30px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--navy);
}

.ga-mockup-strength-bar {
  height: 4px;
  border-radius: var(--radius);
  background: var(--hairline);
  margin-top: 8px;
  overflow: hidden;
}

.ga-mockup-strength-fill {
  height: 100%;
  width: 100%;
  background: var(--gold);
}

.ga-mockup-strength-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 4px;
}

.ga-mockup-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--navy);
}

.ga-mockup-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex: 0 0 auto;
}

/* ===== Finish card ===== */
.ga-finish {
  background: var(--navy);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 48px var(--gutter);
  text-align: center;
  margin-top: 16px;
}

.ga-finish-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.ga-finish-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-navy-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== FAQ accordion ===== */
.ga-faq-list {
  border-top: 1px solid var(--hairline);
}

.ga-faq-item {
  border-bottom: 1px solid var(--hairline);
}

.ga-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy);
}

.ga-faq-question-icon {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  transition: transform 150ms ease;
}

.ga-faq-question[aria-expanded="true"] .ga-faq-question-icon {
  transform: rotate(45deg);
}

.ga-faq-answer {
  overflow: hidden;
  max-height: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .ga-faq-answer {
    transition: max-height 250ms ease;
  }
}

.ga-faq-answer-inner {
  padding: 0 4px 20px;
}

/* ===== Help / contact section ===== */
.ga-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.ga-help-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
}

.ga-help-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.ga-help-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.ga-help-warning {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

/* ===== Footer disclaimer ===== */
.ga-footer-disclaimer {
  border-top: 1px solid var(--hairline);
  padding: 24px var(--gutter);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.ga-footer-disclaimer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
}

.ga-footer-disclaimer a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ===== Scroll reveal ===== */
@media (prefers-reduced-motion: no-preference) {
  .ga-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
  }

  .ga-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .ga-prep-grid,
  .ga-prep-grid--4,
  .ga-help-grid {
    grid-template-columns: 1fr;
  }

  /* Zigzag collapses to a single-column vertical timeline */
  .ga-journey-line {
    left: 27px;
  }

  .ga-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .ga-step-marker {
    grid-column: 1;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .ga-step--left .ga-step-card,
  .ga-step--right .ga-step-card {
    grid-column: 2;
  }

  .ga-finish {
    padding: 40px 24px;
  }
}

@media (max-width: 640px) {
  .ga-section {
    padding: 48px 24px;
  }

  .ga-mockup-field {
    flex: 1 1 100%;
  }

  .ga-path-toggle-sticky {
    padding: 20px 24px 16px;
  }

  .ga-path-toggle {
    grid-template-columns: 1fr;
  }

  .ga-path-tab + .ga-path-tab {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .ga-promo-cards {
    flex-direction: column;
  }
}
