/* ==========================================================================
   Acik GERAK! — Design System
   Hand-authored CSS (no Tailwind build step) — keeps payload small and fully
   portable for cPanel / Netlify / WordPress custom-HTML deployment.
   ========================================================================== */

:root {
  --color-black: #0A0A0A;
  --color-yellow: #FACC15;
  --color-yellow-dark: #EAB308;
  --color-white: #FFFFFF;
  --color-off-white: #FAFAFA;
  --color-text-dark: #171717;
  --color-text-muted: #525252;
  --color-border: #E5E5E5;
  --color-green: #16A34A;
  --color-red: #DC2626;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 12px;

  --space-section-mobile: 4rem;
  --space-section-desktop: 6rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.01em; }

/* Focus visibility (accessibility requirement) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.section {
  padding-block: var(--space-section-mobile);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-section-desktop); }
}

.section--black { background: var(--color-black); color: var(--color-white); }
.section--yellow { background: var(--color-yellow); color: var(--color-black); }
.section--off-white { background: var(--color-off-white); color: var(--color-text-dark); }
.section--white { background: var(--color-white); color: var(--color-text-dark); }

/* Bold black divider bar between sections */
.divider-bar {
  height: 10px;
  background: var(--color-black);
}
.divider-bar--yellow { background: var(--color-yellow); }

/* ---- Typography scale ---- */
.h1-hero {
  font-size: 2.5rem;
  line-height: 1.08;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .h1-hero { font-size: 4rem; }
}

.h2-section {
  font-size: 2rem;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .h2-section { font-size: 3rem; }
}

.h3-sub {
  font-size: 1.375rem;
  line-height: 1.25;
  font-family: var(--font-body);
  font-weight: 800;
}
@media (min-width: 768px) {
  .h3-sub { font-size: 1.75rem; }
}

.body-lg { font-size: 1.0625rem; }
@media (min-width: 768px) {
  .body-lg { font-size: 1.125rem; }
}

.text-muted { color: var(--color-text-muted); }
.text-muted-on-black { color: #A3A3A3; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-yellow);
}
.eyebrow--dark { color: var(--color-text-dark); }

/* Yellow highlight underline on key phrases */
.highlight {
  background-image: linear-gradient(var(--color-yellow), var(--color-yellow));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.4em;
  padding-inline: 0.05em;
}
.highlight--on-yellow {
  background-image: none;
  text-decoration: underline;
  text-decoration-color: var(--color-black);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.0625rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  transition: background-color 0.15s ease;
  line-height: 1.2;
  text-align: center;
}
.btn--primary {
  background: var(--color-yellow);
  color: var(--color-black);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-yellow-dark);
}
.btn--block { width: 100%; }
.btn--lg { padding: 1.25rem 2rem; font-size: 1.25rem; }

/* ---- Cards ---- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ---- Checkmark list ---- */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 900;
  margin-top: 0.1rem;
}

/* ---- Ebook 3D mockup ---- */
.book-mockup {
  perspective: 1600px;
  display: inline-block;
  position: relative;
}
/* Solid yellow backdrop card so the cover pops off dark/black section backgrounds
   instead of blending into them (flat mockup treatment, no gradients). */
.book-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-yellow);
  border-radius: 4px 10px 10px 4px;
  transform: rotate(-5deg) translate(-16px, 20px);
  z-index: 0;
}
.book-mockup__cover {
  width: 260px;
  aspect-ratio: 3 / 4;
  transform: rotateY(-22deg) rotateX(2deg);
  transform-style: preserve-3d;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 22px 26px 50px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .book-mockup__cover { width: 320px; }
}
.book-mockup__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
}
.book-mockup__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: rgba(0,0,0,0.35);
  transform: rotateY(90deg) translateX(-7px);
  transform-origin: left;
  border-radius: 4px 0 0 4px;
}

/* ---- Utility ---- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.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;
}

/* [x-cloak] hides Alpine-bound elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* ==========================================================================
   Component-specific styles
   ========================================================================== */

/* --- Header / hero --- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--color-yellow);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.hero__visual { display: flex; justify-content: center; }
.trust-line {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.trust-line--on-black { color: #A3A3A3; }

/* --- Checklist section --- */
.checklist-col {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.checklist-col__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checklist-tick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text-dark);
}
.checklist-tick:hover { background: var(--color-off-white); }
.checklist-tick__box {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid var(--color-text-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease, border-color 0.1s ease;
}
.checklist-tick[aria-pressed="true"] .checklist-tick__box {
  background: var(--color-yellow);
  border-color: var(--color-black);
}
.checklist-tick[aria-pressed="true"] { text-decoration: line-through; color: var(--color-text-muted); }

.checklist-result {
  border: 2px dashed var(--color-black);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-weight: 700;
}

/* --- Reframe callout --- */
.callout-quote {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.3;
  text-transform: none;
}
@media (min-width: 768px) {
  .callout-quote { font-size: 2.5rem; }
}

/* --- Solution split --- */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse { direction: rtl; }
  .split--reverse > * { direction: ltr; }
}

/* --- Chapter cards --- */
.chapter-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}
.chapter-card__num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-yellow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chapter-card__title { font-size: 1.0625rem; font-weight: 800; margin-bottom: 0.35rem; }
.bonus-strip {
  border: 2px solid var(--color-black);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* --- Coach section --- */
.coach-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--color-black);
  object-fit: cover;
  object-position: top center;
  overflow: hidden;
  margin-inline: auto;
}
.credential-list { display: flex; flex-direction: column; gap: 1rem; }
.credential-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.coach-quote {
  border-left: 4px solid var(--color-yellow);
  padding-left: 1.25rem;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* --- Testimonials --- */
.testi-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 -1.25rem;
  padding-inline: 1.25rem;
}
@media (min-width: 900px) {
  .testi-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding-inline: 0;
  }
}
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 82%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 900px) {
  .testi-card { flex: none; }
}
.testi-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-yellow);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.avatar-initials {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- For who / not for who --- */
.who-col {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.who-col--yes { background: #F0FDF4; border: 2px solid var(--color-green); }
.who-col--no { background: #FEF2F2; border: 2px solid var(--color-red); }
.who-item { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.85rem; }
.who-icon { flex-shrink: 0; font-weight: 900; }
.who-icon--yes { color: var(--color-green); }
.who-icon--no { color: var(--color-red); }

/* --- Price section --- */
.value-stack {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.value-row:last-child { border-bottom: none; }
.value-row__total {
  background: var(--color-off-white);
  font-weight: 800;
}
.price-box {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 3px solid var(--color-black);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}
.price-old {
  font-size: 1.5rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-weight: 700;
}
.price-new {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 9vw, 3.5rem);
  white-space: nowrap;
  background: var(--color-yellow);
  display: inline-block;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  line-height: 1.1;
}

/* --- Guarantee --- */
.guarantee-badge {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 0.5rem;
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 4px var(--color-yellow);
}

/* --- FAQ accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  text-align: left;
  padding: 1.25rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-dark);
}
.faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform 0.2s ease;
}
.faq-answer {
  overflow: hidden;
  color: var(--color-text-muted);
  padding-right: 2.5rem;
}
.faq-answer__inner { padding-bottom: 1.25rem; }

/* --- Sticky mobile CTA --- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--color-yellow);
  border-top: 2px solid var(--color-black);
  padding: 0.75rem 1rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
.sticky-cta__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sticky-cta__price { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; }

/* --- Footer --- */
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-links a { color: #D4D4D4; font-size: 0.875rem; }
.footer-links a:hover { color: var(--color-yellow); }
.footer-disclaimer { font-size: 0.8125rem; color: #A3A3A3; line-height: 1.7; }

/* --- Scroll-reveal (progressive enhancement, no-JS safe) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Checkout page
   ========================================================================== */
.checkout-page { background: var(--color-off-white); min-height: 100vh; }
.checkout-topbar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  padding-block: 1rem;
}
.checkout-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; }
.checkout-logo .highlight { background-size: 100% 0.35em; }

.checkout-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-block: 2rem;
}
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 1.2fr 1fr; gap: 2rem; padding-block: 3rem; }
}

.checkout-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .checkout-card { padding: 2.5rem; }
}

.checkout-error-banner {
  background: #FEF2F2;
  border: 1px solid var(--color-red);
  color: #991B1B;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}
.form-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-off-white);
  color: var(--color-text-dark);
}
.form-field input::placeholder { color: #A3A3A3; }
.form-field input:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 1px;
  background: var(--color-white);
}

.addon-box {
  border: 2px dashed var(--color-black);
  border-radius: var(--radius-lg);
  background: #FFFDF0;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.addon-box input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  accent-color: var(--color-yellow);
}
.addon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-black);
  color: var(--color-yellow);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.addon-box__title { font-weight: 800; font-size: 1.0625rem; margin-bottom: 0.35rem; }
.addon-box__desc { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.addon-box__price { font-weight: 800; font-size: 1.0625rem; }

.pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-yellow);
  color: var(--color-black);
  font-weight: 800;
  font-size: 1.125rem;
  padding: 1.1rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.pay-btn:hover, .pay-btn:focus-visible { background: var(--color-yellow-dark); }

.payment-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.25rem; }
.payment-badge {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-off-white);
}
.checkout-security-note {
  text-align: center;
  color: #A3A3A3;
  font-size: 0.8125rem;
  margin-top: 1rem;
}

.order-summary {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .order-summary { padding: 2.25rem; }
}
.order-summary__title { font-size: 1.25rem; font-weight: 800; margin-top: 0.5rem; line-height: 1.3; }
.order-summary__divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 1.25rem 0; }
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  padding-block: 0.5rem;
  color: #D4D4D4;
}
.order-line strong { color: var(--color-white); }
.order-line .check { color: var(--color-yellow); font-weight: 800; }
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 1rem;
}
.order-total__amount { font-family: var(--font-heading); font-size: 1.75rem; color: var(--color-yellow); }
.order-guarantee {
  border: 1px solid rgba(250,204,21,0.4);
  background: rgba(250,204,21,0.08);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #E5E5E5;
}
.order-guarantee strong { color: var(--color-yellow); display: block; margin-bottom: 0.25rem; }
