/* ============================================
   SIMSALACLEAN — STYLE.CSS
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a2340;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --blue: #1E6FBF;
  --blue-dark: #154e8a;
  --blue-light: #EBF4FF;
  --yellow: #F5C842;
  --yellow-dark: #e0b020;
  --cream: #FBF8F2;
  --text: #1a2340;
  --text-soft: #5a6a8a;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(30,111,191,0.10);
  --shadow-md: 0 8px 32px rgba(30,111,191,0.15);
}

/* --- Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--yellow { background: var(--yellow); color: var(--text); }
.btn--yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn--nav { padding: 10px 22px; font-size: 0.9rem; }
.btn--full { width: 100%; display: block; }
.btn--lg { padding: 18px 44px; font-size: 1.1rem; }
.link-btn { background: none; border: none; cursor: pointer; color: var(--blue); font-weight: 600; text-decoration: underline; padding: 0; font-size: inherit; }
.link-btn:hover { color: var(--blue-dark); }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,111,191,0.08);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.navbar__logo img { height: 40px; width: auto; }
.navbar__links { display: flex; align-items: center; gap: 28px; }
.navbar__links a { font-weight: 500; color: var(--text-soft); font-size: 0.95rem; transition: color 0.2s; }
.navbar__links a:hover { color: var(--blue); }
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar__hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* --- Section Base --- */
.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--blue-light { background: var(--blue-light); }
.section--blue { background: var(--blue); }
.section--cta { background: linear-gradient(135deg, var(--blue-light) 0%, #dceeff 100%); }
.section__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--text); text-align: center; }
.section__sub { font-size: 1.05rem; color: var(--text-soft); max-width: 600px; margin: 0 auto 48px; text-align: center; }
.text-center { text-align: center; }
.text-left { text-align: left !important; }
.text-white { color: #fff !important; }
.text-white-soft { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 24px; }
.highlight { color: var(--blue); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #EBF4FF 0%, #dceeff 40%, #fff 100%);
  display: flex; align-items: center;
  padding-top: 88px;
  position: relative;
  overflow: hidden;
}
/* Subtle background image overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/Simsalaclean Presentative.png') center center / cover no-repeat;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 60px 0 80px; position: relative; z-index: 1; }
.hero__badge {
  display: inline-block;
  background: var(--yellow); color: var(--text);
  padding: 8px 20px; border-radius: 50px; font-size: 0.88rem; font-weight: 700;
}
.hero__headline { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; line-height: 1.15; max-width: 700px; }
.hero__sub { font-size: 1.1rem; color: var(--text-soft); max-width: 560px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__trust span {
  background: #fff; border: 1.5px solid rgba(30,111,191,0.15);
  border-radius: 50px; padding: 8px 18px; font-size: 0.9rem; font-weight: 600; color: var(--blue);
  box-shadow: 0 2px 8px rgba(30,111,191,0.07);
}
.hero__wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,30 C300,60 900,0 1200,30 L1200,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

/* --- Form Card --- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 480px;
  border: 1.5px solid rgba(30,111,191,0.10);
}
.form-card--white { background: #fff; }
.form-card__label { font-weight: 700; color: var(--blue); margin-bottom: 20px; font-size: 1rem; }
.early-form { display: flex; flex-direction: column; gap: 14px; }
.early-form input[type="text"] {
  padding: 13px 16px;
  border: 1.5px solid #d0dde8;
  border-radius: 10px;
  font-size: 0.97rem;
  outline: none;
  transition: border 0.2s;
  background: #f8fbff;
  color: var(--text);
}
.early-form input[type="text"]:focus { border-color: var(--blue); background: #fff; }
.early-form input[type="text"].error { border-color: #e05252; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-soft); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; width: 16px; height: 16px; }

/* --- Pain Grid --- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 16px;
  justify-items: center;
}
.pain-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow); width: 100%;
}
/* Last row: if only 2 cards remain, center them */
.pain-card:nth-child(4) { grid-column: 1; }
.pain-card:nth-child(5) { grid-column: 2; }
.pain-icon { font-size: 1.8rem; flex-shrink: 0; }
.pain-card p { font-size: 0.97rem; color: var(--text-soft); font-weight: 500; }

/* --- Benefit Grid --- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 28px; text-align: center;
  border: 1.5px solid rgba(30,111,191,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-icon { font-size: 2.2rem; margin-bottom: 12px; }
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.benefit-card p { font-size: 0.92rem; color: var(--text-soft); }

/* --- Paket Cards --- */
.paket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; }
.paket-card {
  background: #fff; border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
  border: 1.5px solid rgba(30,111,191,0.10);
  position: relative; transition: transform 0.2s, box-shadow 0.2s;
}
.paket-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.paket-card--featured { border-color: var(--blue); box-shadow: 0 8px 40px rgba(30,111,191,0.20); }
.paket-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 5px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; z-index: 2;
}
.paket-badge--hemat { background: var(--cream); color: var(--blue-dark); border: 1px solid var(--blue); }
.paket-badge--recommended { background: var(--blue); color: #fff; }
.paket-img { width: 100%; height: 200px; object-fit: cover; }
.paket-body { padding: 24px; }
.paket-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.paket-desc { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 16px; }
.paket-price { margin-bottom: 20px; }
.price-orig { display: block; font-size: 0.85rem; color: #aaa; text-decoration: line-through; }
.price-main { display: block; font-size: 1.8rem; font-weight: 900; color: var(--blue); line-height: 1.1; }
.price-per { font-size: 1rem; font-weight: 500; color: var(--text-soft); }
.price-promo { display: block; font-size: 0.82rem; color: #e07020; font-weight: 600; margin-top: 4px; }
.paket-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.paket-list li { font-size: 0.92rem; color: var(--text-soft); }
.paket-cocok { font-size: 0.82rem; color: var(--text-soft); font-style: italic; margin-bottom: 20px; }

/* --- Add-on Grid --- */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px; margin-bottom: 24px;
}
.addon-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 24px; text-align: center;
  border: 1.5px solid rgba(30,111,191,0.07);
  transition: transform 0.2s;
}
.addon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.addon-icon { font-size: 2rem; margin-bottom: 10px; }
.addon-card h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 6px; }
.addon-card p { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 10px; }
.addon-price { display: inline-block; background: var(--blue); color: #fff; border-radius: 50px; padding: 4px 14px; font-size: 0.82rem; font-weight: 700; }
.addon-note { text-align: center; font-size: 0.88rem; color: var(--text-soft); font-style: italic; }

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step-card { text-align: center; }
.step-visual {
  position: relative;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
}
.step-num {
  width: 64px; height: 64px; background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900;
  box-shadow: 0 4px 16px rgba(30,111,191,0.25);
}
.step-icon {
  position: absolute;
  bottom: -8px; right: -8px;
  width: 28px; height: 28px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(30,111,191,0.15);
}
.step-icon svg { width: 15px; height: 15px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 0.88rem; color: var(--text-soft); }

/* --- Area --- */
.area__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.area__text p { color: var(--text-soft); margin-bottom: 20px; }
.area-list { display: flex; flex-direction: column; gap: 8px; }
.area-list li { font-size: 0.97rem; color: var(--text); font-weight: 500; }

/* --- Early Access Section --- */
.early-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.early-badge {
  display: inline-block; background: var(--yellow); color: var(--text);
  padding: 5px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 16px;
}
.early-promo {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.12); border-radius: 12px;
  padding: 16px; margin-top: 20px;
}
.promo-icon { font-size: 1.8rem; }
.early-promo strong { color: #fff; font-size: 1.1rem; }
.early-promo small { color: rgba(255,255,255,0.7); }

/* --- FAQ --- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius); border: 1.5px solid rgba(30,111,191,0.10); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 20px 24px; text-align: left;
  font-size: 1rem; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--blue-light); }
.faq-icon { font-size: 1.4rem; font-weight: 300; color: var(--blue); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-icon.open { transform: rotate(45deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 0.95rem; color: var(--text-soft); }
.faq-a.open { max-height: 300px; padding: 0 24px 20px; }

/* --- Final CTA --- */
.cta-note { margin-top: 12px; font-size: 0.88rem; color: var(--text-soft); }

/* --- Footer --- */
.footer { background: var(--text); color: #fff; padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer__brand img { margin-bottom: 16px; }
.footer__brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a, .footer-privacy { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover, .footer-privacy:hover { color: #fff; }
.footer-privacy { color: rgba(255,255,255,0.7) !important; }
.footer__gdpr { }
.gdpr-badge { display: inline-block; background: rgba(245,200,66,0.15); border: 1px solid var(--yellow); color: var(--yellow); border-radius: 50px; padding: 4px 14px; font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; }
.footer__gdpr p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 640px; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(16px); transition: transform 0.25s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 16px; border-bottom: 1px solid #eee;
}
.modal-header h2 { font-size: 1.2rem; font-weight: 800; }
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.8rem; color: var(--text-soft); line-height: 1;
  transition: color 0.2s; padding: 0 4px;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px 28px; overflow-y: auto; flex: 1; font-size: 0.92rem; line-height: 1.7; color: var(--text-soft); }
.modal-body h3 { color: var(--text); font-size: 1rem; font-weight: 700; margin: 20px 0 6px; }
.modal-body p { margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin-bottom: 10px; }
.modal-body ul li { list-style: disc; margin-bottom: 4px; }
.modal-body a { color: var(--blue); }
.gdpr-notice {
  background: var(--blue-light); border-left: 4px solid var(--blue);
  padding: 12px 16px; border-radius: 8px; margin-top: 20px;
  font-size: 0.88rem; color: var(--text); font-weight: 500;
}
.modal-footer { padding: 16px 28px 24px; border-top: 1px solid #eee; }

/* --- Error message --- */
.form-error { font-size: 0.82rem; color: #e05252; margin-top: -8px; }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .addon-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .area__inner { grid-template-columns: 1fr; }
  .early-inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-card:nth-child(4) { grid-column: auto; }
  .pain-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 768px) {
  .navbar__links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: #fff; padding: 24px; gap: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 99; }
  .navbar__links.open { display: flex; }
  .navbar__hamburger { display: flex; }
  .hero { padding-top: 68px; }
  .hero__inner { padding: 40px 0 60px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .paket-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__trust { gap: 8px; }
  .hero__trust span { font-size: 0.82rem; padding: 7px 14px; }
  .form-card { padding: 24px 20px; }
  .btn--lg { padding: 15px 32px; font-size: 1rem; }
}
