:root {
  --bg: #f6f1e7;
  --ink: #1f2a24;
  --green: #14513c;
  --green-dark: #0f3f2e;
  --brass: #9a7434;
  --brass-ink: #7a5a24;
  --surface: #fffdf8;
  --line: rgba(31, 42, 36, 0.16);
  --muted: #4a5a52;
  --radius: 10px;
  --jarak-section: clamp(44px, 7vw, 72px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a {
  color: var(--green);
}

a[href],
button,
input,
select,
textarea {
  min-height: 44px;
}

a[href] {
  display: inline-flex;
  align-items: center;
}

.brand,
.brand-name,
.brand-tag {
  border: 0;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--brass-ink);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(16px, calc((100% - 1100px) / 2 + 48px));
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 600;
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.site-nav {
  margin-left: auto;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(20, 81, 60, 0.08);
}

@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
    gap: 2px 12px;
    padding: 1px 16px;
  }

  .brand-name {
    font-size: 15px;
    line-height: 1;
  }

  .brand-tag {
    font-size: 10px;
    line-height: 1;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 0;
    padding-inline: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: normal;
  }

  .site-nav a {
    font-size: 14px;
    padding: 0 7px;
    white-space: nowrap;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: min(90vw, 760px);
  height: min(90vw, 760px);
  background: repeating-radial-gradient(circle at 60% 40%, transparent 0 28px, rgba(20, 81, 60, 0.08) 29px 30px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 48px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--brass-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 64px);
}

.hero-sub {
  max-width: 60ch;
  margin: 0 0 26px;
  font-size: clamp(17px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-ghost {
  border-color: var(--green);
  background: transparent;
  color: var(--green);
}

.btn-ghost:hover {
  background: rgba(20, 81, 60, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--green);
  font-weight: 500;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--jarak-section) clamp(16px, 4vw, 48px);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--brass);
}

.section-num {
  color: var(--brass-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.section-note {
  max-width: 60ch;
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  min-height: 2.3em;
  margin: 0 0 12px;
  font-size: 22px;
}

.price {
  margin: 0 0 4px;
  font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 600;
}

.tag {
  padding: 1px 7px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  color: var(--brass-ink);
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.duration {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card ul {
  flex: 1 1 auto;
  margin: 16px 0 22px;
  padding-left: 18px;
}

.card li {
  margin: 0 0 8px;
}

.card .btn {
  margin-top: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

th,
td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: rgba(154, 116, 52, 0.06);
  color: var(--brass-ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  caption {
    display: block;
    width: 100%;
    max-width: 60ch;
    padding: 0;
    margin: 0 0 16px;
    font-size: 15px;
    text-align: left;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  tbody tr:last-child {
    margin-bottom: 0;
  }

  tbody td {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border: 0;
  }

  tbody td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--brass-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

.doc-list {
  max-width: 70ch;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.doc-list li {
  position: relative;
  padding: 12px 0 12px 34px;
}

.doc-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brass);
  border-radius: 50%;
}

.doc-note {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.chat {
  max-width: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f0e8d8;
}

.chat-name {
  display: block;
  font-weight: 600;
}

.chat-status {
  color: #4a3a17;
  font-size: 12px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 360px;
  overflow-y: auto;
  padding: 18px;
}

.chat-log:empty::before {
  content: "Pilih pertanyaan di bawah untuk melihat cara balasan bekerja.";
  color: var(--muted);
  font-size: 14px;
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--green);
  color: var(--surface);
}

.bubble.admin {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #eee5d3;
  color: var(--ink);
}

.typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 5px;
  padding: 14px;
  background: #eee5d3;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-ink);
  animation: blink 1s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing span {
    animation: none;
  }
}

.chat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.chips {
  display: flex;
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.chip:hover {
  background: #f3ead8;
}

.form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field select {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.field [aria-invalid="true"] {
  border-color: #a33a2a;
}

.err {
  min-height: 0;
  margin: 0;
  color: #8f2d1f;
  font-size: 14px;
}

.err:not(:empty) {
  min-height: 1.2em;
}

.wa-result {
  margin: 12px 0 0;
  font-size: 14px;
  word-break: break-word;
}

.wa-result a {
  color: var(--green);
}

.site-footer {
  padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--brass);
  background: #f0e8d8;
}

.site-footer p {
  max-width: 80ch;
  margin: 0 auto 10px;
}

.footer-small {
  color: var(--muted);
  font-size: 13px;
}

.chat-form {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.chat-form .btn {
  flex: 0 0 auto;
}

.ringkas {
  max-width: 640px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f0e8d8;
}

.ringkas-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.ringkas-teks {
  margin: 0 0 10px;
  word-break: break-word;
}

.copy-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lead-box {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.lead-box > label {
  font-size: 15px;
  font-weight: 600;
}

.lead-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-row input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.lead-row .btn {
  flex: 0 0 auto;
}

.lead-hasil {
  margin-top: 8px;
}

.lead-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  max-width: 640px;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.lead-card dt {
  font-weight: 600;
}

.lead-card dd {
  margin: 0;
  word-break: break-word;
}

.reminders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 820px;
}

.reminder {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reminder-label {
  margin: 0 0 8px;
  color: var(--brass-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reminder-text {
  margin: 0;
}

.sim-note {
  max-width: 70ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
