@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Montserrat:wght@700;800;900&display=swap');

body.page-gemas { background: #f5f5f5; }
body.page-gemas .page-wrapper { background: #f5f5f5; align-items: stretch; display: flex; flex-direction: column; padding-top: 0; }
body.page-gemas .hero { padding-top: 100px; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Background layers — proportions derived from the original 1440×1060px React design */

/* Main BG: taller than hero so the mid-ground hills fill the frame properly */
.bg-main {
  position: absolute;
  left: 0;
  width: 100%;
  height: 135.85%;   /* 1440px design: image height = 135.85% of hero */
  top: -35.85%;      /* offset up so lower portion of image is visible */
  pointer-events: none;
  z-index: 0;
}

/* Middle Ground: hill+tree overlay */
.bg-mid {
  position: absolute;
  top: 24.9%;        /* 264/1060 of original hero */
  left: 0;
  width: 100%;
  height: 75.09%;    /* 796/1060 */
  object-fit: cover;
  object-position: top left;   /* tree is top-left — don't crop it */
  pointer-events: none;
  z-index: 1;
}

/* Foreground: scene overlay with grass + hills, anchored lower in hero */
.bg-fore {
  position: absolute;
  top: 36.9%;        /* 391/1060 of original hero */
  left: 0;
  width: 100%;
  height: 87.64%;    /* 929/1060 */
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  z-index: 4;
}

/* ── STEPS ── */
.step { display: none; position: relative; z-index: 5; width: 100%; }
.step.active { display: flex; }

/* ── LANDING STEP ── */
.step-landing {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  flex: 1;
  min-height: 560px;
  padding: 0;
  overflow: visible;
}
/* Top area: title */
.landing-top {
  padding: 28px 40px 0;
  text-align: center;
}
.landing-title {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: clamp(16px, 2.8vw, 40px);
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 6px #28903b;
  paint-order: stroke fill;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
  filter:
    drop-shadow(1px 1px 0 #0a5c20)
    drop-shadow(2px 2px 0 #0a5c20)
    drop-shadow(3px 4px 5px rgba(0,0,0,.3));
}
/* GEMAS letters — inside step-landing, in normal flow between title and desc */
@keyframes letter-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-22px); }
}
.landing-letters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 0 30px;
  overflow: visible;
  pointer-events: none;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-letters img {
  flex: 1;
  min-width: 0;
  max-width: 22%;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.22));
  animation: letter-bob 2.4s ease-in-out infinite;
}
/* Wave offsets: each letter sits at a different height */
.landing-letters img:nth-child(1) { margin-bottom: 0px;  animation-delay: 0s;    } /* G */
.landing-letters img:nth-child(2) { margin-bottom: 48px; animation-delay: 0.28s; max-width: 18%; } /* E */
.landing-letters img:nth-child(3) { margin-bottom: 12px; animation-delay: 0.56s; } /* M */
.landing-letters img:nth-child(4) { margin-bottom: 52px; animation-delay: 0.84s; } /* A */
.landing-letters img:nth-child(5) { margin-bottom: 24px; animation-delay: 1.12s; max-width: 19%; } /* S */
/* Bottom area: description + button */
.landing-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px 56px;
}
.landing-desc-wrap {
  background: rgba(40,144,59,0.85);
  backdrop-filter: blur(6px);
  border-radius: 9999px;
  padding: 12px 32px;
  white-space: nowrap;
  text-align: center;
}
.landing-desc {
  font-size: 13px;
  color: #fff;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}
.btn-mulai {
  background: #fff;
  color: #28903b;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 14px 64px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.btn-mulai:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.25); }

/* ── QUIZ STEP ── */
.step-quiz {
  min-height: 560px;
  padding: 32px 40px 24px;
  flex-direction: row;
  align-items: flex-start;
  overflow: visible;
}

/* Left: letter + badge — fills full column height, letter pinned to top */
.quiz-left {
  flex-shrink: 0;
  width: clamp(300px, 34vw, 500px);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;          /* stretch to full step height */
}
/* Wrapper: letter + badge rotate together */
.quiz-letter-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  /* transform applied via inline style per letter */
}
.quiz-letter {
  width: 100%;
  max-width: clamp(120px, 18vw, 220px);
  filter: drop-shadow(0 16px 48px rgba(0,0,0,.2));
  display: block;
}
.quiz-badge {
  position: relative;
  margin-top: 32px;
  width: max-content;
  max-width: 240px;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 6;
  text-align: left;
}
.quiz-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: #28903b;
  margin-bottom: 4px;
}
.quiz-badge-sub {
  font-size: 10px;
  font-weight: 600;
  color: #28903b;
  line-height: 1.4;
}

/* Right: questions + nav */
.quiz-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 32px;
  padding-top: 48px;
}

/* Question card */
.q-block { display: flex; flex-direction: column; gap: 12px; }

.q-text {
  background: #f5f5f5;
  border-radius: 40px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 700;
  color: #28903b;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  line-height: 1.4;
  display: inline-block;
  align-self: flex-start;
}

/* Answers row */
.q-answers {
  background: linear-gradient(to top, #28903b, #00b667);
  border-radius: 40px;
  padding: 14px 24px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  align-self: flex-start;   /* don't stretch to full column width */
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.q-opt {
  background: #f5f5f5;
  color: #28903b;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  line-height: 1.5;
}
.q-opt:hover { background: #e8f5e9; }
.q-opt.selected { background: #e8c84a; color: #fff; border-color: #cca800; }

/* Date inside green pill */
.q-date-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(to top, #28903b, #00b667);
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.q-date-label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.q-date-input {
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #1b1c18;
  outline: none;
  cursor: pointer;
}

/* Slider — pill with green border, value above track */
.q-slider-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 3px solid #28903b;
  border-radius: 9999px;
  padding: 6px 18px 8px;
  min-width: 220px;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  gap: 2px;
}
.q-slider-val {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-align: center;
  pointer-events: none;
}
.q-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #d4d4d4;
  outline: none;
  cursor: pointer;
  margin: 6px 0 4px;
}
.q-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #28903b;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.q-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #28903b;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

/* Input fields (legacy, kept for other steps) */
.q-answers.input-row {
  background: transparent;
  box-shadow: none;
  padding: 0;
  flex-wrap: wrap;
  gap: 16px;
}
.q-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.q-field label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.q-field input {
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1b1c18;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  outline: none;
  width: 100%;
  transition: box-shadow .2s;
}
.q-field input:focus { box-shadow: 0 4px 16px rgba(40,144,59,.35); }

/* 2-column question grid (Milestones step) */
.quiz-right.q-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-left: 32px;
  padding-top: 16px;
  align-content: start;
}
.quiz-right.q-grid-2 .q-block { gap: 10px; }
/* Nav inside q-grid-2 must span both columns */
.quiz-right.q-grid-2 .quiz-nav { grid-column: 1 / -1; }

/* Navigation buttons — inside quiz-right, sits right below questions */
.quiz-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 0;
  z-index: 6;
}
.btn-kembali {
  background: #f5f5f5;
  color: #28903b;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 12px 40px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: background .2s;
}
.btn-kembali:hover { background: #e8f5e9; }
.btn-berikutnya {
  background: linear-gradient(to top, #28903b, #00b667);
  color: #f5f5f5;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 12px 40px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: opacity .2s;
}
.btn-berikutnya:hover { opacity: .9; }

/* ── REGISTER STEP ── */
.step-register {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 48px 24px 56px;
  text-align: center;
  min-height: 0;
}
.reg-title {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 6px #28903b;
  paint-order: stroke fill;
  margin-bottom: 12px;
  line-height: 1.1;
  filter:
    drop-shadow(1px 1px 0 #0a5c20)
    drop-shadow(2px 2px 0 #0a5c20)
    drop-shadow(3px 4px 5px rgba(0,0,0,.3));
}
.reg-subtitle {
  background: linear-gradient(to right, #28903b, #00b667);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 10px 28px;
  margin-bottom: 32px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.reg-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 40px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
}
.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field.full { grid-column: 1 / -1; }
.reg-label { font-size: 13px; font-weight: 600; color: #333; text-align: left; }
.reg-input {
  border: 1.5px solid #e4e4e7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1b1c18;
  outline: none;
  transition: border-color .2s;
}
.reg-input:focus { border-color: #28903b; }
.reg-input::placeholder { color: #aaa; }
.reg-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #666;
  text-align: left;
  margin: 16px 0 24px;
  line-height: 1.5;
}
.reg-consent input { margin-top: 2px; accent-color: #28903b; flex-shrink: 0; }
.reg-consent a { color: #28903b; }
.btn-submit {
  background: #fff;
  color: #28903b;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 14px 56px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  margin-top: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.25); }
.btn-signin-out {
  background: rgba(40,144,59,0.85);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  padding: 10px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: opacity .2s;
}
.btn-signin-out em { font-style: italic; color: #fff; font-weight: 700; }
.btn-signin-out:hover { opacity: .85; }

/* ── RESULT STEP ── */
.step-result {
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 120px;
  min-height: 0;
  gap: 14px;
}
.result-header {
  background: linear-gradient(to right, #28903b, #00b667);
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  align-self: flex-start;
  margin-left: 0;
}
.result-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}
.result-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.result-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #28903b;
  margin-bottom: 12px;
  border-bottom: 2px solid #e8f5e9;
  padding-bottom: 8px;
}
.result-analysis {
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}
.result-good-title {
  background: #28903b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 10px;
}
.result-good-item {
  font-size: 12px;
  color: #333;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
}
.result-good-item em { color: #28903b; font-style: normal; font-weight: 600; }
.result-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.result-product img {
  width: 120px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.result-product-name {
  font-size: 13px;
  font-weight: 700;
  color: #28903b;
  text-align: center;
}
.btn-beli {
  display: block;
  width: 70%;
  margin: 4px auto 0;
  background: #c8c8c8;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  align-self: center;
}
.result-tips { font-size: 12px; color: #444; line-height: 1.7; }
.result-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  color: #333;
}
.result-tip-item::before { content: '✦'; color: #28903b; flex-shrink: 0; font-size: 10px; margin-top: 2px; }
.result-note {
  background: linear-gradient(to right, #28903b, #00b667);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  text-align: center;
  max-width: 1100px;
  width: 100%;
}
.btn-download {
  background: #fff;
  color: #28903b;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #28903b;
  border-radius: 9999px;
  padding: 14px 56px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-download:hover { background: #28903b; color: #fff; }

/* ── RESULT STEP — dashboard-style components ── */

/* Registration error */
.reg-error-msg {
  background: #fff5f5; border: 1.5px solid #e05252; border-radius: 10px;
  color: #c0392b; font-size: 13px; font-weight: 600;
  padding: 10px 14px; margin-bottom: 14px; text-align: left;
}

/* Date pills */
.gemas-date-row { display: flex; gap: 10px; margin-bottom: 0; align-items: center; flex-wrap: wrap; }
.pill-label {
  appearance: none; -webkit-appearance: none;
  background: #5cac6e; color: #fff; font-size: 11px; font-weight: 600;
  border: none; border-radius: 9999px; padding: 9px 22px; cursor: default;
}
.pill-date {
  appearance: none; -webkit-appearance: none;
  background: #1a5e28; color: #fff; font-size: 13px; font-weight: 600;
  border: none; border-radius: 9999px; padding: 8px 20px; cursor: default;
}

/* 3-col content grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 14px;
  margin-bottom: 0;
}

/* Analysis text card — spans col 1+2 */
.analysis-text-card {
  grid-column: 1 / 3;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.06);
  border-radius: 16px; padding: 20px 22px;
}
.analysis-text-primary {
  font-size: 13px; font-weight: 400; color: #28903b; line-height: 1.72; margin-bottom: 10px;
}
.analysis-text-secondary { font-size: 12px; color: #666; line-height: 1.65; }

/* Section button header */
.section-btn {
  display: block; width: 100%; text-align: center;
  font-size: 13px; font-weight: 700;
  color: #fff; background: #28903b;
  border: none; border-radius: 16px 16px 0 0; padding: 14px 16px;
  cursor: default; letter-spacing: .1px;
}
.section-btn.warn  { background: #28903b; }
.section-btn.round { border-radius: 9999px; }

/* Indicator section */
.indicator-section { display: flex; flex-direction: column; gap: 0; }
.indicator-items   { display: flex; flex-direction: column; }
.indicator-item {
  background: #F1FFF1; border: 1px solid #28903b; border-top: none;
  padding: 13px 14px; font-size: 12px; color: #28903b;
  line-height: 1.5; text-align: center;
}
.indicator-item:first-child { border-top: 1px solid #28903b; border-radius: 0; }
.indicator-item:last-child  { border-radius: 0 0 16px 16px; }
.indicator-item:only-child  { border-radius: 0 0 16px 16px; }
.indicator-item strong      { color: #28903b; font-weight: 700; }
.indicator-item.warn        { background: #F1FFF1; border-color: #28903b; color: #28903b; }
.indicator-item.warn:first-child { border-top: 1px solid #28903b; }
.indicator-item.warn:last-child  { border-radius: 0 0 16px 16px; }
.indicator-item.warn strong { color: #28903b; font-weight: 700; }

/* Articles col */
.col-articles { display: flex; flex-direction: column; gap: 10px; }
.article-list  { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card  { background: #f0f0f0; border: 1.5px solid rgba(0,0,0,.05); border-radius: 12px; padding: 12px 14px; }
.article-cat   { font-size: 10px; font-weight: 600; color: #5a5a6a; margin-bottom: 3px; }
.article-title { font-size: 15px !important; font-weight: 400 !important; color: #5a5a6a; margin-bottom: 4px; text-align: left; line-height: 1.4 !important; letter-spacing: 0 !important; }
.article-teaser {
  font-size: 12px; color: #5a5a6a; line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.article-link  { font-size: 11px; font-weight: 700; color: #28903b; text-decoration: none; }

/* Product card */
.product-card       { background: transparent; border: none; padding: 0; display: flex; flex-direction: column; gap: 0; }
.product-card-title { font-size: 13px; font-weight: 700; color: #fff; background: #28903b; border-radius: 16px 16px 0 0; padding: 14px 16px; width: 100%; text-align: center; }
.product-body       { display: flex; flex-direction: column; gap: 10px; flex: 1; background: #f0f0f0; border-radius: 0 0 16px 16px; padding: 12px; }
.product-body-top   { display: flex; gap: 10px; align-items: center; }
.product-img        { width: 146px; flex-shrink: 0; margin-right: 6px; }
.product-info       { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name       { font-size: 15px; font-weight: 700; color: #28903b; line-height: 1.4; }
.product-markets    { display: flex; gap: 14px; align-items: center; }
.market-logo        { display: block; width: 28px; height: 28px; object-fit: cover; border-radius: 4px; }
.market-logo.shopee { object-position: center top; }
.market-logo.lazada { width: 40px; object-position: left center; }

/* Ulangi Tes button */
.btn-reset-gemas {
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 9999px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-reset-gemas:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.8); }

/* Download result button */
.btn-download-result {
  background: #fff;
  color: #28903b;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 9999px;
  padding: 14px 56px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-download-result:hover { background: rgba(255,255,255,.85); }

/* Insight banner */
.insight-banner {
  background: linear-gradient(180deg, #e8c84a 0%, #cca800 100%);
  border: 1px solid #b89200; border-radius: 9999px; padding: 13px 20px;
  font-size: 13px; color: #fff; font-weight: 600;
  margin-bottom: 20px; line-height: 1.6; text-align: center;
}

/* Result nav */
.result-nav { display: flex; gap: 12px; justify-content: center; }
.btn-hasil {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1.5px solid rgba(255,255,255,.5);
  color: #fff; font-size: 14px; font-weight: 700;
  border-radius: 9999px; padding: 12px 24px;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-hasil:hover { background: rgba(255,255,255,.15); }

/* Progress bar */
.progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.2);
  z-index: 10;
}
.progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 9999px;
  transition: width .4s ease;
}

@media (max-width: 900px) {
  .quiz-left { width: 240px; }
  .quiz-letter { width: 130px; }
  .result-grid { grid-template-columns: 1fr; }
  .quiz-right.q-grid-2 { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .analysis-text-card { grid-column: 1; }
}
@media (max-width: 640px) {
  .step-quiz {
    flex-direction: column;
    padding: 20px 16px 24px;
  }
  .quiz-left { width: 100%; justify-content: center; }
  .quiz-letter { width: 150px; }
  .quiz-badge { display: none; }
  .quiz-right { padding-left: 0; }
  .quiz-right.q-grid-2 { grid-template-columns: 1fr; padding-left: 0; }
  .q-text { font-size: 15px; }
  .q-opt { font-size: 13px; padding: 7px 14px; }

  /* Landing */
  .landing-top { padding: 20px 16px 0; }
  .landing-title { font-size: 18px; white-space: normal; line-height: 1.3; }
  /* Per-letter widths — explicit vw so sizes are always predictable */
  .landing-letters { gap: 1vw; justify-content: center; padding: 28px 0 20px; }
  .landing-letters img              { flex: none; width: 17vw; max-width: none; }
  .landing-letters img:nth-child(1) { margin-bottom: 0;    } /* G */
  .landing-letters img:nth-child(2) { width: 13.5vw; margin-bottom: 26px; } /* E */
  .landing-letters img:nth-child(3) { margin-bottom: 7px;  } /* M */
  .landing-letters img:nth-child(4) { margin-bottom: 28px; } /* A */
  .landing-letters img:nth-child(5) { width: 14.5vw; margin-bottom: 13px; } /* S */
  .landing-desc-wrap { white-space: normal; border-radius: 16px; padding: 10px 18px; }
  .landing-desc { white-space: normal; font-size: 12px; }
  .landing-bottom { padding: 0 16px 36px; gap: 14px; }
  .btn-mulai { padding: 13px 48px; font-size: 16px; }

  /* Register step */
  .step-register { padding: 28px 16px 48px; gap: 14px; }
  .reg-title { font-size: clamp(28px, 8vw, 52px); }
  .reg-subtitle { font-size: 13px; padding: 8px 18px; border-radius: 16px; margin-bottom: 16px; }
  .reg-card { padding: 24px 18px; border-radius: 18px; }
  .btn-submit { padding: 13px 36px; font-size: 16px; }

  /* Result step */
  .step-result { padding: 24px 14px 80px; gap: 16px; }
  .pill-label, .pill-date { font-size: 12px; padding: 7px 14px; }
  .content-grid { gap: 10px; }
  .insight-banner { border-radius: 16px; font-size: 12px; padding: 12px 16px; }
  .btn-download-result { padding: 13px 36px; font-size: 14px; }

  /* Nav buttons */
  .btn-kembali, .btn-berikutnya { font-size: 15px; padding: 11px 28px; }
}

/* Ensure hero fills viewport height correctly within .page-wrapper */
body.page-gemas .page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
body.page-gemas .hero { flex: 1; }
