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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 92px;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* ---------- Layout ---------- */
.header-inner,
.section-inner,
.hero-inner,
.final-cta-inner,
.footer-inner {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--color-border);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 26px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.header-nav a,
.footer-nav a {
  transition: color 160ms ease;
}

.header-nav a:hover,
.footer-nav a:hover {
  color: var(--color-primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.language-current {
  color: var(--color-ink);
  font-weight: 700;
}

.language-separator {
  color: var(--color-line);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(31, 158, 54, 0.24);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 14px 30px rgba(21, 121, 42, 0.28);
  transform: translateY(-1px);
}

.button-small {
  min-width: 120px;
  padding: 9px 18px;
  font-size: 0.82rem;
}

.button-large {
  width: 100%;
  padding: 15px 26px;
  font-size: 1.02rem;
}

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--color-primary);
  content: "";
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(31, 158, 54, 0.10), transparent 55%),
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-bg) 78%);
}

.hero-inner {
  display: grid;
  gap: 32px;
  padding: 44px 0 56px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  max-width: 640px;
}

.hero h1 {
  max-width: 13em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}

.hero-lead {
  color: var(--color-muted);
  font-size: 1.02rem;
  font-weight: 500;
  max-width: 34em;
}

.hero-checks,
.checklist {
  display: grid;
  gap: 12px;
}

.hero-checks li,
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--color-text);
}

.hero-checks li::before,
.checklist li::before {
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
}

.hero-checks li::after,
.checklist li::after {
  position: absolute;
  left: 5.5px;
  top: 0.86em;
  width: 6px;
  height: 3px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

.cta-group {
  display: grid;
  gap: 10px;
  align-items: start;
  margin-top: 4px;
}

.cta-note {
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* Hero fact panel */
.hero-facts {
  align-self: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 10px 30px;
}

.hero-facts dl {
  margin: 0;
  display: grid;
}

.hero-facts dl > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-facts dl > div:last-child {
  border-bottom: 0;
}

.hero-facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.hero-facts dd {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-ink);
}

/* Fallback hero media (image / placeholder) */
.hero-media {
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-md);
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
}

.hero-inner-solo {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 820px;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

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

.section-band {
  background: linear-gradient(180deg, var(--color-band) 0%, var(--color-bg) 100%);
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2,
.final-cta h2,
.notice h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}

.section-heading h2 {
  position: relative;
  padding-bottom: 16px;
}

.section-heading h2::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary);
  content: "";
}

.section-heading p,
.section-note,
.trust-item p,
.card p,
.steps p,
.notice li,
.faq-list p,
.final-cta p {
  color: var(--color-muted);
}

/* ---------- Cards ---------- */
.card-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.card,
.trust-item {
  min-height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d6d0c1;
}

.card h3,
.trust-item h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-ink);
}

.card p,
.trust-item p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Notes ---------- */
.section-note {
  margin-top: 22px;
  font-size: 0.92rem;
}

.strong-note,
.role-note {
  border-left: 3px solid var(--color-primary);
  padding: 4px 0 4px 16px;
  background: transparent;
}

.split-section {
  display: grid;
  gap: 12px;
}

/* ---------- Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.96rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table thead th {
  background: var(--color-cream);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(31, 158, 54, 0.03);
}

.data-table td:first-child {
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .data-table td:first-child {
    white-space: normal;
  }
}

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

.steps li {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 24px 24px 24px 74px;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(31, 158, 54, 0.28);
}

.steps h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-ink);
}

/* ---------- Notice ---------- */
.notice {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
}

.notice h2 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.notice ul {
  display: grid;
  gap: 12px;
}

.notice li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.notice li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-line);
  content: "";
}

/* ---------- FAQ ---------- */
.faq-inner {
  max-width: 880px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  transition: box-shadow 160ms ease;
}

.faq-list details[open] {
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding-right: 34px;
  font-weight: 700;
  color: var(--color-ink);
}

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

.faq-list summary::after {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-list p {
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 96px 0;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, #1c3a26 0%, var(--color-ink) 100%);
  color: #fff;
}

.final-cta-inner {
  display: grid;
  gap: 20px;
  text-align: left;
}

.final-cta h2 {
  color: #fff;
  font-size: 2.1rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 1.02rem;
}

.final-cta .button {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.final-cta .button:hover {
  background: #f2f7f3;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: grid;
  gap: 18px;
  padding: 40px 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-company {
  color: var(--color-ink);
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

/* ---------- Sticky WhatsApp (mobile) ---------- */
.sticky-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 32px rgba(20, 120, 50, 0.32);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
    font-size: 17px;
  }

  .header-inner,
  .section-inner,
  .hero-inner,
  .final-cta-inner,
  .footer-inner {
    width: min(100% - 64px, var(--content-width));
  }

  .header-nav {
    display: flex;
  }

  .button-large {
    width: auto;
    min-width: 300px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
    align-items: center;
    gap: 60px;
    min-height: calc(96vh - 68px);
    padding: 72px 0 88px;
  }

  .hero h1 {
    font-size: 3.4rem;
    line-height: 1.18;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .section {
    padding: var(--section-gap) 0;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2,
  .final-cta h2,
  .notice h2 {
    font-size: 2.5rem;
  }

  .notice h2 {
    font-size: 1.7rem;
  }

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

  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 0.78fr 1fr;
    align-items: start;
    gap: 64px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .final-cta {
    padding: 128px 0;
  }

  .final-cta-inner {
    max-width: 780px;
    text-align: center;
    justify-items: center;
  }

  .final-cta h2 {
    font-size: 2.6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 52px 0;
  }

  .copyright {
    grid-column: 1 / -1;
  }

  .sticky-whatsapp {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3.9rem;
  }

  .hero-inner {
    width: min(100% - 112px, 1240px);
  }
}

/* ===== iteration 2: JP typography & polish ===== */
.hero h1,
.section-heading h2,
.final-cta h2,
.notice h2 {
  text-wrap: balance;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

.hero-lead,
.section-heading p,
.card p,
.trust-item p,
.steps p,
.faq-list p,
.final-cta p {
  text-wrap: pretty;
}

.section-heading {
  max-width: 900px;
}

.hero-facts {
  border-top: 3px solid var(--color-primary);
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* ===== iteration 3: rhythm & split balance ===== */
@media (min-width: 768px) {
  .hero-inner {
    min-height: min(82vh, 720px);
    padding: 64px 0 80px;
  }
  .split-section {
    grid-template-columns: 0.92fr 1fr;
    gap: 72px;
  }
  .split-section .section-heading h2 {
    font-size: 2.15rem;
  }
}

/* ===== iteration 4: mobile header & hero ===== */
@media (max-width: 767px) {
  .logo {
    font-size: 1.02rem;
    white-space: nowrap;
    letter-spacing: 0;
  }
  /* header CTA is redundant with the fixed bottom WhatsApp bar on mobile */
  .header-actions .button-small {
    display: none;
  }
  .language-switcher {
    font-size: 0.74rem;
    gap: 5px;
  }
  .header-inner {
    min-height: 60px;
    gap: 10px;
  }
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.28;
  }
  .hero-inner {
    padding: 32px 0 44px;
  }
  .final-cta .button {
    width: 100%;
  }
}

/* ===== iteration 5-7: detail polish ===== */
/* anchor offset so sticky header doesn't hide section tops */
:where(section[id]) {
  scroll-margin-top: 80px;
}

/* trust item: small accent mark before title */
.trust-item h3 {
  position: relative;
  padding-top: 14px;
}
.trust-item h3::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary);
  content: "";
}

/* price/comparison table: gently emphasize the top (premium) row grouping */
.data-table tbody tr:hover td {
  background: rgba(31, 158, 54, 0.045);
}
.data-table td {
  line-height: 1.7;
}

/* card grid: keep 5-item grids visually balanced by centering the last row */
.card-grid {
  justify-content: center;
}

/* refine eyebrow spacing above headline */
.hero .eyebrow {
  margin-bottom: 2px;
}

/* ===== iteration: single-column editorial hero (no summary panel) ===== */
@media (min-width: 768px) {
  .hero-inner-solo {
    max-width: 960px;
    min-height: min(68vh, 580px);
  }
  .hero-inner-solo .hero-copy {
    max-width: none;
  }
  .hero-inner-solo .hero-lead {
    max-width: 40em;
  }
  .hero-inner-solo .hero-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 36px;
    max-width: 760px;
  }
}

/* solo hero: keep CTA natural width (not full-bleed) */
@media (min-width: 768px) {
  .hero-inner-solo .cta-group {
    justify-items: start;
  }
  .hero-inner-solo .button-large {
    min-width: 320px;
  }
}

/* logo must never wrap (EN/ID nav is wider) */
.logo { white-space: nowrap; }
@media (max-width: 900px) and (min-width: 768px) {
  .header-nav { gap: 16px; font-size: 0.82rem; }
}

/* header nav: keep each label on one line (EN/ID labels are longer) */
.header-nav a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1100px) {
  .header-nav { gap: 18px; font-size: 0.84rem; }
  .header-actions { gap: 10px; }
}
