/* ==========================================================
   ELEKTROFAMILY — SALESPAGE STYLES
   Token system:
   - Warna: navy (kepercayaan), amber (energi/elektronik), teal (garansi)
   - Font: Fraunces (display) + Plus Jakarta Sans (body)
   ========================================================== */

:root {
  --bg: #F7F5F1;
  --bg-alt: #EDE8DF;
  --navy: #16233E;
  --navy-2: #1F3358;
  --navy-3: #2A4270;
  --amber: #E08A3C;
  --amber-dark: #C06F26;
  --teal: #2F7A5C;
  --teal-light: #E4F1EB;
  --text: #22262E;
  --text-muted: #5B6270;
  --white: #FFFFFF;
  --border: #E3DED3;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 12px 32px -12px rgba(22, 35, 62, 0.16);
  --shadow-card: 0 8px 24px -10px rgba(22, 35, 62, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 700;
}

.h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}

.h2--light { color: var(--white); }

p { margin: 0 0 14px; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(47, 122, 92, 0.55);
}

.btn-primary:hover {
  background: #276a4f;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 13px 26px;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-lg {
  padding: 17px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-header {
  padding: 11px 18px;
  font-size: 0.88rem;
}

.icon-wa { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  color: var(--amber-dark);
  display: inline-flex;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 14px;
}

.eyebrow--dark { color: var(--teal); }
.eyebrow--light { color: #F2C88F; }

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 56px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(224, 138, 60, 0.14), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.lead--dark { color: var(--text-muted); }
.lead--light { color: #D9DEE8; }

.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 22px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--navy-2);
  font-weight: 600;
  background: var(--teal-light);
  padding: 7px 14px;
  border-radius: 100px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-2);
}

.trust-ico {
  color: var(--teal);
  font-weight: 800;
}

/* ---------- Hero visual: price comparison card (signature element) ---------- */
.hero-visual { display: flex; justify-content: center; }

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
}

.price-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.price-card-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 100px;
}

.price-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  grid-template-areas: "label label" "bar value";
  row-gap: 6px;
  margin-bottom: 18px;
}

.price-label {
  grid-area: label;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-label--brand { color: var(--teal); }

.price-bar {
  grid-area: bar;
  height: 10px;
  background: var(--bg-alt);
  border-radius: 100px;
  overflow: hidden;
  margin-right: 10px;
}

.price-bar-fill { height: 100%; border-radius: 100px; }
.price-bar-fill--full { width: 100%; background: #C7C1B4; }
.price-bar-fill--brand { width: 84%; background: linear-gradient(90deg, var(--teal), #3f9c76); }

.price-value {
  grid-area: value;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  text-align: right;
}

.price-value--muted { color: var(--text-muted); font-weight: 700; }
.price-value--brand { color: var(--teal); }

.price-row:last-of-type { margin-bottom: 14px; }

.price-card-foot {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

/* ---------- Section base ---------- */
.section {
  padding: 60px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Problem / Agitate ---------- */
.section--problem { background: var(--bg); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.problem-ico { font-size: 1.6rem; display: block; margin-bottom: 12px; }

.problem-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.problem-closing {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-2);
  border-left: 3px solid var(--amber);
  padding-left: 18px;
  max-width: 68ch;
}

/* ---------- Solution ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.usp-stack {
  display: grid;
  gap: 14px;
}

.usp-item {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.usp-item:nth-child(2) { background: var(--navy-2); }
.usp-item:nth-child(3) { background: var(--navy-3); }

.usp-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--amber);
  min-width: 74px;
}

.usp-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #E7EAF2;
}

/* ---------- Benefit ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}

.benefit-ico {
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: 14px;
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 22px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Social proof ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 0;
  box-shadow: var(--shadow-card);
}

.testi-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 16px;
  font-style: italic;
}

.testi-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.testi-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ---------- Offer ---------- */
.section--offer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}

.offer-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
}

.offer-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
}

.offer-check {
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}

.offer-fineprint {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 20px;
}

/* ---------- FAQ / Accordion ---------- */
.accordion {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--navy);
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  background: var(--amber);
  color: var(--white);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Final CTA ---------- */
.section--final-cta {
  background: var(--navy);
  text-align: center;
}

.final-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta-inner .btn { margin-top: 6px; }

.final-cta-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #AEB6C7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #101A2E;
  color: #A9B1C3;
  padding: 40px 0 100px;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .brand-mark { color: var(--amber); }

.footer-text {
  font-size: 0.86rem;
  max-width: 46ch;
  margin: 0 auto 14px;
}

.footer-copy {
  font-size: 0.78rem;
  margin: 0;
  color: #7C8499;
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(247, 245, 241, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -14px rgba(22,35,62,0.25);
}

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   RESPONSIVE — tablet & desktop
   ========================================================== */
@media (min-width: 720px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 56px 1fr; }
  .hero-cta-row { flex-direction: row; align-items: center; }
}

@media (min-width: 960px) {
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 40px; }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }

  .solution-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .benefit-grid { grid-template-columns: repeat(3, 1fr); }

  .section { padding: 88px 0; }
  .hero { padding: 64px 0 88px; }
}

@media (min-width: 1180px) {
  .h1 { font-size: 3.4rem; }
}
