/* ============================================================
   TARGPAINT — Stylesheet (Modern Startup Edition)
   Design system selaras dengan mockup redesign.
   Palette: navy/sage/sand + warm cream neutrals.
   Typography: Inter (single family).
   Mobile-first responsive.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */
:root {
  /* Brand palette */
  --ink:        #0F2E2E;   /* deep navy-teal — primary, headings, dark sections */
  --ink-2:      #1A3D3D;   /* ink hover */
  --ink-3:      #244A4A;
  --sage:       #7C9382;   /* muted green accent */
  --sage-soft:  #A8BCAE;
  --sand:       #D4B891;   /* warm beige */
  --sand-soft:  #E5D2B5;

  /* Neutrals (warm) */
  --bg:         #FAFAF7;   /* page base */
  --cream:      #F5F2EC;   /* off-white section background */
  --white:      #FFFFFF;
  --line:       #E8E4DC;   /* default border */
  --line-soft:  #F0EDE5;

  /* Text */
  --text:       #2C2C2C;   /* body */
  --text-mid:   #5A5A5A;   /* secondary text */
  --text-muted: #8A8A8A;   /* tertiary, captions */
  --text-inv:   #FAFAF7;   /* text on dark background */

  /* WhatsApp brand */
  --wa:         #25D366;
  --wa-dk:      #1da851;

  /* Status */
  --success:    #2D7A4F;
  --error:      #B23B3B;

  /* Shadows — neutral, subtle */
  --shadow-xs:  0 1px 2px rgba(15,46,46,0.04);
  --shadow-sm:  0 2px 8px rgba(15,46,46,0.05);
  --shadow-md:  0 8px 24px rgba(15,46,46,0.07);
  --shadow-lg:  0 20px 48px rgba(15,46,46,0.10);

  /* Radii */
  --r-sm:       6px;
  --r:          10px;     /* default cards/buttons */
  --r-lg:       14px;
  --r-xl:       20px;
  --r-pill:     999px;

  /* Layout */
  --container:  1200px;
  --container-narrow: 880px;
  --gutter:     20px;     /* mobile */
  --gutter-lg:  28px;     /* desktop */

  /* Motion */
  --t-fast:     0.18s cubic-bezier(0.4,0,0.2,1);
  --t:          0.24s cubic-bezier(0.4,0,0.2,1);
  --t-slow:     0.4s  cubic-bezier(0.4,0,0.2,1);

  /* Typography */
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ==========================================================
   2. RESET & BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--bg); }

/* Focus visible (accessibility) */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================
   3. TYPOGRAPHY (mobile-first)
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.75rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h3 {
  font-size: clamp(1.15rem, 3vw, 1.375rem);
  letter-spacing: -0.015em;
  font-weight: 600;
}
h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-mid);
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-mid);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--sage);
  display: inline-block;
}
.eyebrow-dark { color: var(--sand); }
.eyebrow-dark::before { background: var(--sand); }

.text-mute  { color: var(--text-muted); }
.text-mid   { color: var(--text-mid); }
.text-inv   { color: var(--text-inv); }
.text-sage  { color: var(--sage); }
.text-sand  { color: var(--sand); }

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }   /* heading line-break smarter (supported browsers) */

/* ==========================================================
   4. LAYOUT — Container, Section, Grid (mobile-first)
   ========================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section vertical rhythm — mobile-first */
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }

/* Section variants */
.section-cream { background: var(--cream); }
.section-dark  { background: var(--ink); color: var(--text-inv); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(250,250,247,0.72); }

/* Grids — mobile-first single column */
.grid { display: grid; gap: 24px; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* Split / two-column with imagery */
.split {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}

/* Header for section: eyebrow + heading + lead */
.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head-center {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Utility spacings (use sparingly) */
.mt-sm { margin-top: 12px; }
.mt    { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb    { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }

/* ==========================================================
   5. BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
  text-decoration: none;
}

/* Primary — navy/ink (matches mockup) */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Secondary — outline */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* WhatsApp */
.btn-wa {
  background: var(--wa);
  color: var(--white);
  border-color: var(--wa);
}
.btn-wa:hover {
  background: var(--wa-dk);
  border-color: var(--wa-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Ghost — for dark backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* On dark — white button */
.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--cream);
  border-color: var(--cream);
  transform: translateY(-1px);
}

/* Link button — text-only */
.btn-link {
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 12px 4px;
  gap: 6px;
}
.btn-link::after {
  content: '→';
  transition: transform var(--t);
  font-weight: 500;
}
.btn-link:hover { color: var(--sage); }
.btn-link:hover::after { transform: translateX(3px); }

/* Built-in arrow for primary/secondary when class added */
.btn-arrow::after {
  content: '→';
  transition: transform var(--t);
  font-size: 1em;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Sizes */
.btn-lg { padding: 15px 26px; font-size: 0.98rem; }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }

/* Full width (mobile) */
.btn-block { width: 100%; }

/* Action group */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ==========================================================
   6. NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,247,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: var(--t);
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Wordmark logo (CSS-based, per mockup) */
.nav-logo {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: none;     /* mobile: hidden, shown via mobile menu */
  align-items: center;
  gap: 2px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--r-sm);
  transition: var(--t-fast);
}
.nav-links a:hover  { color: var(--ink); background: rgba(15,46,46,0.04); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.nav-cta { display: none; }   /* hidden mobile, shown desktop */

.nav-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-mobile-btn:hover { background: rgba(15,46,46,0.06); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  z-index: 999;
  background: var(--bg);
  padding: 24px var(--gutter) 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--cream); }
.mobile-menu .btn { margin-top: 16px; }

/* ==========================================================
   7. PAGE HERO (inner pages, not homepage)
   ========================================================== */
.page-hero {
  background: var(--bg);
  padding: 112px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 16px; max-width: 760px; }
.page-hero p  { max-width: 580px; font-size: 1.08rem; }

/* ==========================================================
   8. CARDS
   ========================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: var(--t);
  position: relative;
}
.card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* Card variants */
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; border-color: var(--ink); }

.card-cream { background: var(--cream); border-color: transparent; }
.card-cream:hover { background: var(--white); border-color: var(--ink); }

.card-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inv);
}
.card-dark h2, .card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: rgba(250,250,247,0.72); }
.card-dark:hover { transform: translateY(-2px); }

.card-link { cursor: pointer; text-decoration: none; display: block; }

/* Card title link arrow (segment cards in mockup) */
.card-arrow {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.card-arrow::after {
  content: '→';
  transition: transform var(--t);
}
.card-link:hover .card-arrow::after { transform: translateX(3px); }

/* Flex column to push arrow to bottom */
.card-stack {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ==========================================================
   9. SEGMENT / FEATURE BLOCKS
   ========================================================== */
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--ink); stroke-width: 1.5; }
.feature-icon-sage { background: rgba(124,147,130,0.12); border-color: rgba(124,147,130,0.25); }
.feature-icon-sage svg { color: var(--sage); }
.feature-icon-sand { background: rgba(212,184,145,0.18); border-color: rgba(212,184,145,0.4); }
.feature-icon-sand svg { color: #B89968; }

/* Dark variant for use in section-dark */
.feature-icon-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.feature-icon-dark svg { color: var(--sand); }

.feature h3 { font-size: 1.05rem; font-weight: 600; }
.feature p  { font-size: 0.92rem; line-height: 1.55; }

/* ==========================================================
   10. PILL / BADGE / CHIP
   ========================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--cream);
  color: var(--text-mid);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.pill-ink   { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-sage  { background: rgba(124,147,130,0.12); color: var(--sage); border-color: rgba(124,147,130,0.25); }
.pill-sand  { background: rgba(212,184,145,0.2); color: #8A6E3F; border-color: rgba(212,184,145,0.4); }
.pill-light { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
}
.chip-check::before {
  content: '✓';
  color: var(--sage);
  font-weight: 700;
}

/* ==========================================================
   11. STATS BAR
   ========================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 24px 16px;
  text-align: left;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(2n) { border-right: none; }
.stat:nth-last-child(-n+2) { border-bottom: none; }

.stat-num {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 8px;
  font-weight: 500;
}
.stat-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--sage);
}

/* ==========================================================
   12. TESTIMONIALS
   ========================================================== */
.testi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.testi-stars {
  color: var(--sand);
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.testi-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.testi-loc  { font-size: 0.78rem; color: var(--text-muted); }

/* Big quote variant (editorial) */
.quote-big {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.quote-big .mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--sage);
  margin-bottom: 8px;
  font-weight: 700;
}
.quote-big blockquote {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.quote-big cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.quote-big cite strong { color: var(--ink); font-weight: 600; }

/* ==========================================================
   13. FORMS
   ========================================================== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition: var(--t-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15,46,46,0.08);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.form-group .hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================
   14. FAQ ACCORDION
   ========================================================== */
.faq { margin-bottom: 8px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--t-fast);
}
.faq-question:hover { background: var(--cream); }
.faq-question .arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform var(--t);
  flex-shrink: 0;
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-slow);
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.65;
}
.faq-answer.open { max-height: 400px; padding: 0 20px 18px; }
.faq-item.active { border-color: var(--ink); }
.faq-item.active .arrow { transform: rotate(180deg); }

/* ==========================================================
   15. PROCESS STEPS
   ========================================================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-body h3 { margin-bottom: 4px; font-size: 1rem; font-weight: 600; }
.step-body p  { font-size: 0.9rem; }

/* Horizontal variant for desktop */
.steps-h {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

/* ==========================================================
   16. HIGHLIGHT / CTA BLOCK
   ========================================================== */
.cta-block {
  background: var(--ink);
  color: var(--text-inv);
  border-radius: var(--r-lg);
  padding: 48px 28px;
  text-align: center;
}
.cta-block h2 {
  color: var(--white);
  margin-bottom: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block p {
  color: rgba(250,250,247,0.72);
  max-width: 520px;
  margin: 0 auto 28px;
}
.cta-block .actions { justify-content: center; }

/* ==========================================================
   17. PRODUCT CARD (catalog/segment)
   ========================================================== */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.product-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body {
  padding: 18px 20px 22px;
}
.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* Catalog category tabs */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cat-tab {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: var(--t-fast);
}
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ==========================================================
   18. COMPARE TABLE
   ========================================================== */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
}
.compare th {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.compare th:first-child {
  background: var(--ink);
  color: var(--white);
}
.compare td { border-bottom: 1px solid var(--line-soft); color: var(--text); }
.compare tr:last-child td { border-bottom: none; }
.check { color: var(--sage); font-weight: 700; }
.cross { color: var(--error); }

/* ==========================================================
   19. FOOTER
   ========================================================== */
.footer {
  background: var(--ink);
  color: rgba(250,250,247,0.65);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: rgba(250,250,247,0.55);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 320px;
  margin-top: 16px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-col h4 {
  color: rgba(250,250,247,0.5);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(250,250,247,0.65);
  transition: var(--t-fast);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.footer-contact-item .fc-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-item .fc-icon svg {
  width: 14px;
  height: 14px;
  color: rgba(250,250,247,0.7);
}
.footer-contact-item span { font-size: 0.88rem; line-height: 1.55; }
.footer-contact-item a { color: rgba(250,250,247,0.85); }
.footer-contact-item a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,250,247,0.65);
  transition: var(--t-fast);
}
.social-btn svg { width: 15px; height: 15px; }
.social-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(250,250,247,0.4); }
.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(250,250,247,0.5);
  transition: var(--t-fast);
}
.footer-legal a:hover { color: var(--white); }

/* ==========================================================
   20. WHATSAPP FLOAT
   ========================================================== */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--wa);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.32);
  transition: var(--t);
  animation: wa-enter 0.5s 0.8s both;
}
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-float .wa-text { display: none; }   /* hidden mobile, shown desktop */
.wa-float:hover {
  background: var(--wa-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.4);
  color: var(--white);
}
@keyframes wa-enter {
  from { opacity: 0; transform: scale(0.7) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================
   21. HOMEPAGE-SPECIFIC HERO (light, editorial)
   ========================================================== */
.hero {
  padding: 96px 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-content h1 {
  margin-bottom: 18px;
}
.hero-content h1 .accent { color: var(--sage); }
.hero-content .lead {
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 16 / 10;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust strip below hero */
.trust-strip {
  padding: 28px 0;
  background: var(--bg);
}
.trust-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.trust-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  opacity: 0.85;
}

/* ==========================================================
   22. SEGMENT CARDS (Untuk Keluarga / Bisnis / Mitra)
   ========================================================== */
.segments {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.segment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--t);
  text-decoration: none;
  min-height: 200px;
}
.segment-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.segment-card h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.segment-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.segment-card .seg-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream);
  margin-top: auto;
}
.segment-card .seg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   22B. PAGE COMPONENTS — Untuk Keluarga & Halaman Lain
   ========================================================== */

/* Feature in a row (icon-left layout for promise strips) */
.feature-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}
.feature-row .feature-icon {
  margin-bottom: 0;
}
.feature-row h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}
.feature-row p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Color swatch grid (used in color inspiration sections) */
.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.color-swatch {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: var(--t);
  position: relative;
}
.color-swatch:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.color-swatch[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

/* Inspiration stack (main image + thumbnail) */
.inspiration-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inspiration-main,
.inspiration-thumb {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
}
.inspiration-main {
  aspect-ratio: 4 / 3;
}
.inspiration-thumb {
  aspect-ratio: 16 / 9;
}
.inspiration-main img,
.inspiration-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Calculator card (inside dark CTA block) */
.calc-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 28px;
}
.calc-card-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--white);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.calc-row:last-child {
  border-bottom: none;
}
.calc-row strong {
  color: var(--sand);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================
   23. SCROLL ANIMATIONS
   ========================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safety fallback: when JS is slow/disabled or observer doesn't fire,
   elements still reveal after page idle. */
.fade-up.fade-ready {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ==========================================================
   24. RESPONSIVE — TABLET (min-width: 640px)
   ========================================================== */
@media (min-width: 640px) {
  :root { --gutter: 24px; }

  .grid-2 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat  {
    padding: 28px 20px;
    border-bottom: none;
  }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child    { border-right: none; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }

  .cta-block { padding: 56px 40px; }

  .segments { grid-template-columns: repeat(2, 1fr); }

  .wa-float {
    padding: 13px 20px;
  }
  .wa-float .wa-text { display: inline; }
}

/* ==========================================================
   25. RESPONSIVE — DESKTOP (min-width: 1024px)
   ========================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 28px; }

  /* Section rhythm scales up */
  .section    { padding: 112px 0; }
  .section-sm { padding: 64px 0; }
  .section-lg { padding: 140px 0; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  /* Split layouts side-by-side */
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .split-wide {
    grid-template-columns: 1.1fr 1fr;
  }

  /* Navbar — show desktop nav */
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-mobile-btn { display: none; }
  .mobile-menu, .mobile-menu.open { display: none; }

  /* Page hero more vertical room */
  .page-hero { padding: 144px 0 80px; }

  /* Hero — desktop split */
  .hero {
    padding: 144px 0 96px;
  }
  .hero-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }
  .hero-visual { aspect-ratio: 5 / 4; }

  /* Footer expand to 4 columns */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 48px;
  }
  .footer-brand { grid-column: auto; }

  /* Steps horizontal on desktop */
  .steps-h { grid-template-columns: repeat(4, 1fr); }

  /* Section head can be wider */
  .section-head { margin-bottom: 56px; }
  .section-head-center { margin-bottom: 56px; }

  /* Segments — 3 cards row */
  .segments { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .segment-card { padding: 28px; min-height: 240px; }

  /* Color grid — wider on desktop */
  .color-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  /* Inspiration stack — side images larger */
  .inspiration-stack { gap: 16px; }

  /* CTA block padding desktop */
  .cta-block { padding: 72px 48px; }

  /* Footer bottom — horizontal layout */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Trust row — more breathing room */
  .trust-row { gap: 48px; }
}

/* ==========================================================
   26. RESPONSIVE — LARGE DESKTOP (min-width: 1280px)
   ========================================================== */
@media (min-width: 1280px) {
  .hero-content h1 { font-size: 3.75rem; }
}
