/* =====================================================
   SEBAR PROMO PAGE — FSP Editorial Style
   Referensi: agankhalid.com/fsp/ratatengah
   Design: Light, typography-first, conversational
   Mobile-first, max-width: 520px
   Fonts: Lora (display/headings) + Inter (UI/body)
   ===================================================== */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --bg:            #FFFDF7;          /* warm cream */
  --surface:       #FFFFFF;
  --ink:           #1A1208;          /* near-black warm */
  --ink-2:         #3D3120;          /* secondary text */
  --ink-3:         #7A6A52;          /* muted */
  --accent:        #D4860A;          /* amber — CTA / highlight */
  --accent-dark:   #A3650A;
  --accent-bg:     #FEF3C7;          /* soft amber fill */
  --accent-border: #FDE68A;
  --green:         #15803D;          /* success */
  --red:           #B91C1C;          /* error */
  --border:        #E8DFD0;          /* warm border */
  --border-light:  #F0E9DC;
  --line:          #D5C9B4;          /* section dividers */

  --f-display: 'Lora', Georgia, serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --page-w:    520px;
  --pad-x:     22px;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;

  --t: 160ms ease;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
em { font-style: italic; }
[hidden] { display: none !important; }


/* ── PAGE WRAPPER ────────────────────────────────── */
.page {
  max-width: var(--page-w);
  margin: 0 auto;
  background: var(--surface);
  min-height: 100dvh;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
  width: 100%;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  padding: 24px var(--pad-x) 0;
  display: flex;
  align-items: center;
}

.logo {
  height: 26px;
  width: auto;
}

/* ── SECTIONS ────────────────────────────────────── */
.section {
  padding: 36px var(--pad-x);
  border-bottom: 1px solid var(--border-light);
}

.section:last-of-type {
  border-bottom: none;
}

/* ── BADGE ───────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}

/* ── HEADLINES ───────────────────────────────────── */
.headline {
  font-family: var(--f-display);
  font-size: clamp(30px, 7.5vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.sub-headline {
  font-family: var(--f-display);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Decorative wave between headline and bullets */
.divider-wave {
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--line);
  margin-bottom: 24px;
  user-select: none;
  line-height: 1;
}

/* ── PAIN BULLETS ────────────────────────────────── */
.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pain-list li {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.65;
  padding: 14px 0 14px 28px;
  border-bottom: 1px dashed var(--border);
  position: relative;
}

.pain-list li:last-child {
  border-bottom: none;
}

.pain-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

/* ── AGITATION ───────────────────────────────────── */
.agit-section {
  background: #FFFBF3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agit-section p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

.punchline {
  font-family: var(--f-display);
  font-size: 17px !important;
  color: var(--ink) !important;
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  line-height: 1.55 !important;
}

/* ── SOLUTION ────────────────────────────────────── */
.lead-text {
  font-size: 15.5px;
  color: var(--ink-2);
  margin-bottom: 24px;
  line-height: 1.7;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.solution-list li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  align-items: flex-start;
}

.solution-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Icon: fixed width, top-aligned with line-height matching body text */
.sol-icon {
  font-size: 18px;
  line-height: 1.65; /* match body line-height so first line aligns */
  flex-shrink: 0;
  width: 26px;
  text-align: center;
  display: block;
}

/* Body block: strong flows inline with text (not block) */
.sol-body {
  flex: 1;
  min-width: 0;
}

.sol-body strong {
  font-weight: 700;
  color: var(--ink);
  display: inline; /* inline so text continues on same line */
  margin-right: 2px;
}

/* ── SOCIAL PROOF ────────────────────────────────── */
.proof-section {
  background: #F9F6F0;
}

.proof-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.proof-avatars {
  display: flex;
  flex-shrink: 0;
}

.proof-avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.proof-avatars img + img {
  margin-left: -9px;
}

.proof-count {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.proof-count strong {
  color: var(--ink);
}

.testimonial {
  border-left: 3px solid var(--accent);
  padding: 14px 0 14px 18px;
  margin-bottom: 20px;
}

.testimonial:last-of-type {
  margin-bottom: 0;
}

.testimonial p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 14px;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Circular photo thumbnail */
.testi-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.testi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testi-meta strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  display: block;
}

.testi-meta span {
  font-size: 12px;
  color: var(--ink-3);
}

/* ── PRICE ───────────────────────────────────────── */
.price-section {
  background: var(--bg);
}

.price-block {
  margin-bottom: 20px;
}

/* Harga normal (anchor) */
.price-normal {
  font-size: 20px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.strike {
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
  color: #dc2626; /* Bold red */
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 800;
  font-family: var(--f-body); /* Sans-serif */
  letter-spacing: -0.01em;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-big {
  font-family: var(--f-body); /* Sans-serif */
  font-size: clamp(20px, 5vw, 26px); /* Smaller */
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 14px;
  color: var(--ink-3);
}

.price-renewal {
  font-size: 13.5px;
  color: var(--ink-3);
}

.price-renewal strong {
  color: var(--ink-2);
}

.price-logic {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-logic p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ── FORM ELEMENTS ───────────────────────────────── */
.order-section {
  background: #FFFDF7;
  overflow-x: hidden; /* mobile safety */
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0; /* prevent flex children overflow */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.form-group label small {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12px;
}

.req {
  color: var(--red);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  max-width: 100%; /* critical: prevent overflow */
  height: 50px;
  padding: 0 14px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box; /* explicit safety */
  transition: border-color var(--t), box-shadow var(--t);
}

.form-input::placeholder {
  color: #C0B09A;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 134, 10, 0.18);
}

.form-input.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .14);
}

.field-error {
  font-size: 12.5px;
  color: var(--red);
  min-height: 14px;
  line-height: 1.3;
  font-weight: 500;
}

/* Password eye toggle */
.input-wrap {
  position: relative;
}

.input-wrap .form-input {
  padding-right: 48px;
}

.pwd-eye {
  position: absolute;
  right: 0; top: 0;
  width: 48px; height: 50px;
  border: none; background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #C0B09A;
  transition: color var(--t);
  padding: 0;
}

.pwd-eye:hover { color: var(--ink-3); }

.pwd-eye svg {
  width: 18px; height: 18px;
  pointer-events: none;
}

/* ── SUBMIT BUTTON ───────────────────────────────── */
.btn-submit {
  width: 100%;
  height: 58px;
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 3px 10px rgba(212, 134, 10, .30);
  margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 5px 18px rgba(212, 134, 10, .40);
}

.btn-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.btn-spin-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spin {
  width: 20px; height: 20px;
  animation: rot 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes rot { to { transform: rotate(360deg); } }

/* Secure note */
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: -4px;
}

.secure-note svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
}

/* Response message */
.response-msg {
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.response-msg.success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.response-msg.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.response-msg.warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

/* ── FOOTER — minimal, no drop-off nav links ────── */
.site-footer {
  padding: 24px var(--pad-x) 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-3);
}

/* ── FAQ SECTION ─────────────────────────────────── */
.faq-section {
  background: #F9F6F0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.faq-q {
  list-style: none;
  padding: 16px 18px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
  transition: transform var(--t);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 18px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  border-top: 1px dashed var(--border-light);
  margin-top: 4px;
  padding-top: 14px;
}

.faq-a a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── DESKTOP ADAPTATION ──────────────────────────── */
@media (min-width: 560px) {
  body {
    background: #F0EBE1;
  }

  .page {
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--border), 0 4px 40px rgba(0,0,0,.08);
  }
}

/* ── REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── PROMO COUNTDOWN ─────────────────────────────── */
.promo-countdown-section {
  text-align: center;
}
.countdown-wrapper {
  background: var(--accent-bg);
  border: 1px dashed var(--accent-dark);
  border-radius: var(--r-md);
  padding: 32px var(--pad-x);
  margin: 8px 0;
}
.countdown-wrapper .badge {
  margin-bottom: 16px;
}
.countdown-wrapper .sub-headline {
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.cd-box {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  min-width: 72px;
  box-shadow: 0 4px 6px -1px rgba(212, 134, 10, 0.08);
}
.cd-box span {
  display: block;
  font-family: var(--f-body);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
}
.cd-box small {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
  font-weight: 600;
}
.cd-colon {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.promo-text {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* QUOTA ANIMATION */
@keyframes quotaPulse {
  0% { transform: scale(1); color: inherit; }
  50% { transform: scale(1.3); color: #ff0000; }
  100% { transform: scale(1); color: inherit; }
}
.quota-pulse-active {
  display: inline-block;
  animation: quotaPulse 0.4s ease-out;
}

/* ── ORDER TOAST ────────────────────────────────── */
.order-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: max-content;
  max-width: 90vw;
  border: 1px solid var(--border-light);
}

.order-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.order-toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.order-toast-text {
  line-height: 1.4;
}
