/* =========================================================
   TAKASHEET — Shared stylesheet
   Used by every page (etalase + tiap landing page produk)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* --- Warna (brand earthy, dari Lynk.id) --- */
  --ink:        #4A2E1F;   /* teks utama */
  --ink-soft:   #6B5744;   /* teks sekunder */
  --cream:      #F4E9D8;   /* background halaman */
  --paper:      #FBF6EC;   /* permukaan kartu, sedikit lebih terang dari cream */
  --clay:       #C1652F;   /* aksen, badge, highlight */
  --clay-deep:  #8C4A24;   /* tombol utama */
  --gold:       #D9A441;   /* motif matahari, ikon, garis dekoratif */
  --moss:       #5F6B3E;   /* aksen sekunder / status positif */
  --border:     rgba(74, 46, 31, 0.14);
  --shadow:     rgba(74, 46, 31, 0.10);

  /* --- Tipografi --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Skala spasi --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 var(--space-2);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 var(--space-2); color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   SIGNATURE ELEMENT — motif radiasi matahari
   Dipakai berulang: watermark hero, footer, pemisah section
   ========================================================= */

.sun-mark {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
}

.sun-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sun-rays svg {
  position: absolute;
  opacity: 0.35;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.15s ease;
}

/* Header pembeli — aksen emas di atas, menandakan "sudah masuk" */
.site-header--customer {
  border-top: 3px solid var(--gold);
}

/* Header admin — gelap total, jelas beda konteks dari halaman publik/pembeli */
.site-header--admin {
  background: var(--ink);
  border-bottom-color: rgba(244, 233, 216, 0.15);
}

.site-header--admin .wordmark,
.site-header--admin .site-nav a:not(.btn-akses) {
  color: var(--cream);
}

.site-header--admin .site-nav a:hover { color: var(--gold); }

.nav-badge {
  background: var(--clay);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .sun-mark { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-nav a:hover { color: var(--clay-deep); }

.btn-akses {
  border: 1.5px solid var(--clay-deep);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700 !important;
  color: var(--clay-deep) !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-akses:hover { background: var(--clay-deep); color: var(--paper) !important; }

/* =========================================================
   MOBILE — sebagian besar pengunjung diperkirakan lewat HP
   ========================================================= */

@media (max-width: 640px) {
  :root {
    --space-5: 2.75rem;
    --space-6: 3.5rem;
  }

  .site-header .container { padding-top: var(--space-1); padding-bottom: var(--space-1); }

  .wordmark { font-size: 1.15rem; }
  .wordmark .sun-mark { width: 1.2em; height: 1.2em; }

  .site-nav { gap: 0.6rem; }
  .site-nav > a:not(.btn-akses) { display: none; } /* wordmark sudah link ke beranda */

  .btn-akses { padding: 0.6rem 0.9rem; font-size: 0.85rem; }

  .hero-etalase, .hero-produk { padding-top: var(--space-5); padding-bottom: var(--space-3); }

  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { min-height: 48px; }

  .pricing-block { flex-direction: column; align-items: stretch; text-align: left; }
  .pricing-block .btn { width: 100%; justify-content: center; }

  .footer-grid { flex-direction: column; gap: var(--space-3); }
  .footer-cols { gap: var(--space-3); }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--clay-deep);
  color: var(--paper);
  box-shadow: 0 6px 0 0 #6e3a1b;
}

.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 0 #6e3a1b; }

.btn-ghost {
  background: transparent;
  color: var(--clay-deep);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--clay-deep); }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
  padding: var(--space-5) 0 var(--space-4);
  background: var(--paper);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.footer-brand { max-width: 320px; }

.footer-brand .wordmark { margin-bottom: var(--space-1); }

.footer-cols { display: flex; gap: var(--space-5); flex-wrap: wrap; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--clay-deep); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
}

/* =========================================================
   ETALASE (index)
   ========================================================= */

.hero-etalase {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
  background: var(--ink);
}

.hero-etalase .eyebrow { color: var(--gold); }
.hero-etalase .eyebrow::before { background: var(--gold); }
.hero-etalase h1 { color: var(--cream); }
.hero-etalase .lede { color: rgba(244, 233, 216, 0.82); }

.hero-etalase .container { position: relative; z-index: 1; }

.hero-etalase h1 { max-width: 14ch; }

.hero-etalase .lede {
  max-width: 46ch;
  font-size: 1.15rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  padding-bottom: var(--space-6);
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-top-color 0.15s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px var(--shadow);
  border-top-color: var(--gold);
}

.product-card .thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.22), transparent 55%),
    linear-gradient(135deg, var(--clay-deep) 0%, var(--clay) 50%, var(--gold) 100%);
  overflow: hidden;
}

.product-card .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(from 0deg at 80% 30%, rgba(255,255,255,0.10) 0deg 2.5deg, transparent 2.5deg 16deg);
}

.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.product-card .body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }

.product-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay-deep);
  background: var(--cream);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  align-self: flex-start;
}

.product-card h3 { margin-bottom: 0.4rem; }

.product-card p { font-size: 0.92rem; flex: 1; }

.product-card .cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-weight: 700;
  color: var(--clay-deep);
}

.product-card .cta-row span[aria-hidden="true"] {
  transition: transform 0.15s ease;
  display: inline-block;
}

.product-card:hover .cta-row span[aria-hidden="true"] {
  transform: translateX(4px);
}

.product-card.coming-soon {
  opacity: 0.55;
  pointer-events: none;
}

/* =========================================================
   LANDING PAGE PRODUK
   ========================================================= */

.hero-produk {
  position: relative;
  padding: var(--space-5) 0 var(--space-4);
  overflow: hidden;
  background: var(--ink);
}

.hero-produk .eyebrow { color: var(--gold); }
.hero-produk .eyebrow::before { background: var(--gold); }
.hero-produk h1 { color: var(--cream); }
.hero-produk .lede { color: rgba(244, 233, 216, 0.82); }

.hero-produk .btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 0 0 #a97a2b;
}

.hero-produk .btn-ghost {
  color: var(--cream);
  border-color: rgba(244, 233, 216, 0.35);
}

.hero-produk .btn-ghost:hover { border-color: var(--cream); }

.hero-produk .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (max-width: 800px) {
  .hero-produk .container { grid-template-columns: 1fr; }
}

.hero-produk .lede { font-size: 1.1rem; max-width: 50ch; }

.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

.hero-visual {
  background: linear-gradient(155deg, var(--paper) 0%, var(--cream) 100%);
  border: 1px solid rgba(244, 233, 216, 0.15);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.12;
  top: -60%;
  right: -60%;
  z-index: 0;
}

.hero-visual code,
.hero-visual > * {
  position: relative;
  z-index: 1;
}

/* Transisi halus dari hero gelap ke section sesudahnya — elemen fade ditaruh
   di section BERIKUTNYA (bukan di hero), dan dipaksa full-lebar layar
   (nggak kepatok ke max-width .container) pakai trik 100vw break-out. */
.hero-etalase + *,
.hero-produk + * {
  position: relative;
}

.hero-etalase + *::before,
.hero-produk + *::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 130px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  pointer-events: none;
}

.hero-etalase + * > *,
.hero-produk + * > * {
  position: relative;
  z-index: 1;
}

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

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

.section h2 { max-width: 18ch; margin-bottom: var(--space-3); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  border-top: 3px solid var(--gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.feature-list h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature-list p { font-size: 0.92rem; margin-bottom: 0; }

.trust-grid li {
  background: var(--paper);
  border-color: var(--border);
  border-top: 1px solid var(--border);
  position: relative;
  padding-left: calc(var(--space-3) + 1.6rem);
}

.trust-grid li::before {
  content: "✓";
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  width: 1.6rem;
  height: 1.6rem;
  background: var(--moss);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2);
}

.gallery-strip .shot {
  aspect-ratio: 9/16;
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-2);
}

.pricing-block {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.pricing-block .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--cream); }
.pricing-block .price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; opacity: 0.7; display: block; }
.pricing-block p { color: rgba(244,233,216,0.75); margin-bottom: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 0.4rem 2rem 0.4rem 0;
  list-style: none;
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--clay-deep);
  transition: transform 0.15s ease;
}

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

.faq-item p { margin-top: 0.6rem; }

.already-bought {
  text-align: center;
  padding: var(--space-4) 0 0;
  font-size: 0.95rem;
}

.already-bought a {
  font-weight: 700;
  color: var(--clay-deep);
  text-decoration: underline;
}

/* =========================================================
   BADGE METODE PEMBAYARAN (ikon generik, bukan logo brand asli)
   ========================================================= */

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
}

.payment-methods-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 0.2rem;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.payment-badge svg { width: 16px; height: 16px; color: var(--clay-deep); flex-shrink: 0; }

/* Skip link — tersembunyi sampai difokus pakai keyboard (Tab) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
}

/* =========================================================
   DASHBOARD ADMIN
   ========================================================= */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.admin-stat {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-stat-highlight { background: var(--ink); border-color: var(--ink); }
.admin-stat-highlight .admin-stat-label { color: rgba(244, 233, 216, 0.7); }
.admin-stat-highlight .admin-stat-value { color: var(--cream); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tbody tr:hover { background: var(--paper); }

/* =========================================================
   KALKULATOR INTERAKTIF (dashboard produk)
   ========================================================= */

.calc-toolbar { margin-bottom: var(--space-3); }

.calc-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-3);
  overflow-x: auto;
}

.calc-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.calc-tab[aria-selected="true"] { color: var(--clay-deep); border-bottom-color: var(--clay-deep); }
.calc-tab:hover { color: var(--clay-deep); }

.calc-panel { padding-top: var(--space-2); }

.calc-form { display: flex; flex-direction: column; gap: var(--space-2); max-width: 480px; }

.calc-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.calc-optional { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--ink-soft); opacity: 0.8; }

.calc-form input,
.calc-form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
  min-height: 44px;
}

.calc-daterange { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

.calc-form button[type="submit"] { align-self: flex-start; }

.calc-result { margin-top: var(--space-4); }

.calc-error {
  background: #FCEBEB;
  color: #791F1F;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.weton-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.weton-result-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.weton-result-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.weton-result-neptu { font-size: 0.85rem; color: var(--clay-deep); margin-bottom: 0.6rem; font-weight: 700; }

.weton-result-card p { font-size: 0.88rem; margin-bottom: 0.4rem; }

.kecocokan-result-card {
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  border-left: 4px solid var(--moss);
  background: var(--paper);
}

.kecocokan-result-card.kurang { border-left-color: #A32D2D; }
.kecocokan-result-card.netral { border-left-color: var(--gold); }

.calc-formula-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.kecocokan-result-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.kecocokan-result-arti { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--ink-soft); }

.calc-result-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.calc-result-table th {
  background: var(--ink);
  color: var(--cream);
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.calc-result-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
.calc-result-table tr:nth-child(even) td { background: var(--paper); }
.calc-result-table .weton-name { font-weight: 700; color: var(--ink); }

@media (max-width: 480px) {
  .calc-daterange { grid-template-columns: 1fr; }
  .calc-form button[type="submit"] { width: 100%; }
}

/* =========================================================
   HALAMAN 404
   ========================================================= */

.error-page {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.error-page .container { position: relative; z-index: 1; max-width: 560px; }

.error-sun {
  width: 64px;
  height: 64px;
  color: var(--gold);
  margin: 0 auto var(--space-3);
}

.error-page h1 { max-width: none; }

.error-page .lede { max-width: none; margin-left: auto; margin-right: auto; }

/* =========================================================
   BAR CTA MELAYANG (sticky, cuma di halaman produk)
   ========================================================= */

.has-sticky-cta { padding-bottom: 84px; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(74, 46, 31, 0.08);
  padding: 0.75rem var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.sticky-cta-info { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-cta-info strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.sticky-cta-info span { font-size: 0.75rem; color: var(--ink-soft); }
.sticky-cta .btn { padding: 0.65rem 1.4rem; font-size: 0.95rem; white-space: nowrap; }

@media (max-width: 480px) {
  .sticky-cta-info span { display: none; } /* biar muat, cuma tampilin harga */
}

/* =========================================================
   WIDGET CHAT MELAYANG (FAQ + kirim pesan)
   ========================================================= */

.chat-widget {
  position: fixed;
  right: var(--space-2);
  bottom: 84px;
  z-index: 45;
  font-family: var(--font-body);
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clay-deep);
  color: var(--paper);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(74, 46, 31, 0.25);
  transition: transform 0.15s ease;
}

.chat-toggle:hover { transform: translateY(-2px); }
.chat-toggle svg { width: 26px; height: 26px; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(340px, calc(100vw - 2 * var(--space-2)));
  max-height: 70vh;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(74, 46, 31, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[hidden] { display: none; }

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.chat-tabs { display: flex; gap: 0.4rem; }

.chat-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-body);
}

.chat-tab.active { background: var(--clay-deep); color: var(--paper); border-color: var(--clay-deep); }

.chat-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0 0.3rem;
}

.chat-tab-content { padding: 0.8rem; overflow-y: auto; }
.chat-tab-content[hidden] { display: none; }
.chat-tab-content .faq-item { padding: 0.5rem 0; }
.chat-tab-content .faq-item summary { font-size: 0.86rem; }
.chat-tab-content .faq-item p { font-size: 0.82rem; }

.chat-contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.chat-contact-form input,
.chat-contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--paper);
  color: var(--ink);
}

.chat-contact-form textarea { resize: vertical; }
.chat-submit { width: 100%; justify-content: center; }

.chat-form-status {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: center;
}

.chat-form-status.success { color: var(--moss); }
.chat-form-status.error { color: #b3261e; }

@media (max-width: 480px) {
  .chat-widget { right: var(--space-1); bottom: 78px; }
  .chat-panel { width: calc(100vw - 2 * var(--space-1)); }
}
