:root {
  --paper: #fbf7f0;
  --paper-2: #f6f0e4;
  --surface: #ffffff;
  --ink: #10231f;
  --ink-soft: #2c3f3a;
  --muted: #5f716b;
  --line: #e7dfd2;
  --line-strong: #d8cdb9;
  --brand: #14624e;
  --brand-dark: #0e4a3b;
  --brand-soft: #e8f2ee;
  --accent: #f4a62a;
  --accent-soft: #fdf0d8;
  --danger: #b42318;
  --ok: #067647;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 35 31 / 6%);
  --shadow: 0 1px 2px rgb(16 35 31 / 6%), 0 12px 32px rgb(16 35 31 / 6%);
  --shadow-lg: 0 2px 4px rgb(16 35 31 / 5%), 0 24px 64px rgb(16 35 31 / 9%);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 520px at 10% -10%, #e6f1ec 0%, transparent 62%),
    radial-gradient(760px 420px at 96% 2%, #fdeccd 0%, transparent 55%),
    radial-gradient(1px 1px at 1px 1px, #e6ddcc 1px, transparent 0);
  background-size: auto, auto, 24px 24px;
  background-attachment: fixed;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.022em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 750; }
h2 { font-size: 1.22rem; font-weight: 680; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1rem; }
small, .muted { color: var(--muted); }

.eyebrow {
  display: inline-block; font: 600 .78rem/1 var(--font); letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .75rem;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; letter-spacing: -0.025em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand span { font-size: 1.06rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 620; cursor: pointer; text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .06s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #1a7360 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 18%) inset, 0 8px 20px rgb(20 98 78 / 22%);
}
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: rgb(255 255 255 / 70%); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: var(--brand); text-decoration: none; }
.btn-danger { background: transparent; border-color: #f0c9c4; color: var(--danger); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: .38rem; margin-bottom: 1.05rem; }
.field label { font-size: .9rem; font-weight: 620; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field input:hover { border-color: #c9bda6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(20 98 78 / 12%);
}
.field .hint { font-size: .83rem; color: var(--muted); }

/* ---------- alerts ---------- */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.1rem; font-size: .93rem; }
.alert-error { background: #fdf1ef; border: 1px solid #f3cdc7; color: var(--danger); }
.alert-info { background: var(--brand-soft); border: 1px solid #cfe4db; color: var(--brand-dark); }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.45rem; box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card h2 { margin: 0; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-card { width: min(440px, 100%); }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head p { color: var(--muted); margin: .5rem 0 0; font-size: .95rem; }
.auth-foot { text-align: center; margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }

/* ---------- landing ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; }
.site-nav { display: flex; align-items: center; gap: .6rem; }
.site-nav .muted:hover { color: var(--ink); text-decoration: none; }

.hero {
  position: relative; padding: clamp(2.75rem, 7vw, 5.5rem) 0 3.5rem;
  display: grid; gap: 3rem; grid-template-columns: 1.05fr .95fr; align-items: center;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -5% auto -5%; height: 70%;
  background: radial-gradient(60% 70% at 30% 30%, rgb(232 242 238 / 80%), transparent 70%);
  filter: blur(20px);
}
.hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.3rem); margin-bottom: 1rem; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.trust { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .86rem; color: var(--muted); }
.trust span::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: .35rem; }

.hero-art {
  background: linear-gradient(180deg, #fff, #fffaef);
  border: 1px solid var(--line); border-radius: 22px; padding: 1.1rem;
  box-shadow: var(--shadow-lg);
}
.chat-demo { display: grid; gap: .6rem; }
.bubble { max-width: 86%; padding: .68rem .9rem; border-radius: 15px; font-size: .93rem; box-shadow: var(--shadow-sm); }
.bubble.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.out { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.chat-note { margin: .8rem 0 0; font-size: .78rem; color: var(--muted); text-align: center; }

.features { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); padding: .5rem 0 3.5rem; }
.feature { padding: 1.25rem; border-radius: var(--radius); background: rgb(255 255 255 / 65%); border: 1px solid var(--line); }
.feature h3 { margin: .75rem 0 .35rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.icon-badge {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 750;
}
.icon-badge.amber { background: var(--accent-soft); color: #8a5a06; }

.pricing { padding: .5rem 0 4rem; }
.price-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.6rem; }
.price .amount { font-size: 1.6rem; font-weight: 760; margin: .25rem 0 .7rem; letter-spacing: -.02em; }
.price ul { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: .93rem; }
.price ul li { margin-bottom: .3rem; }
.price.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.price .tag { float: right; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); padding: .18rem .5rem; border-radius: 999px; }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.6rem 0 2.75rem; color: var(--muted); font-size: .88rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
  border-right: 1px solid var(--line); padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: 1.4rem;
}
.side-nav { display: grid; gap: .18rem; }
.side-nav a { padding: .58rem .75rem; border-radius: 10px; color: var(--ink-soft); font-size: .94rem; font-weight: 520; }
.side-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.side-nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; box-shadow: inset 3px 0 0 var(--brand); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .87rem; }
.side-foot .who { margin: 0 0 .6rem; word-break: break-all; }

.main { padding: 1.9rem clamp(1rem, 3vw, 2.4rem) 3.5rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.stat .label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .value { font-size: 1.7rem; font-weight: 760; margin-top: .3rem; letter-spacing: -.02em; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 650; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fffdf8; }

.pill { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--brand-soft); color: var(--brand-dark); }

.empty { padding: 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 2rem; }
  .features, .price-grid, .stat-grid { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; justify-content: space-between; padding: .8rem 1rem; }
  .side-nav { display: flex; gap: .15rem; overflow-x: auto; }
  .side-nav a { white-space: nowrap; font-size: .88rem; }
  .side-foot { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: .5rem; }
  .side-foot .who { display: none; }
  .main { padding-top: 1.25rem; }
}

/* ---------- settings ---------- */
.settings-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.link-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .06s ease; }
.link-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.link-card h2 { margin-bottom: .35rem; }
.link-card p { margin: 0; font-size: .92rem; }
.danger-zone { border-color: #f0c9c4; background: #fffaf9; }
.switch { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- landing lanjutan ---------- */
.section-head { max-width: 640px; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); margin: .4rem 0 0; }

.steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .num { font: 700 .8rem/1 var(--mono); color: var(--brand); background: var(--brand-soft); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; margin-bottom: .9rem; }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

.split { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center; }
.split ul.clean { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.split ul.clean li { padding-left: 1.7rem; position: relative; color: var(--ink-soft); }
.split ul.clean li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }

.faq { display: grid; gap: .6rem; max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 620; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: .7rem 0 0; color: var(--muted); font-size: .94rem; }

.cta-band {
  margin: 3rem 0 1rem; padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #14624e 0%, #0e4a3b 60%, #123f34 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.cta-band p { margin: 0; color: #cfe4db; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f4fbf8; }

/* ---------- dashboard lanjutan ---------- */
.banner { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; border: 1px solid #f3d9a4; background: #fffaf0; }
.banner strong { display: block; margin-bottom: .15rem; }
.banner p { margin: 0; color: var(--muted); font-size: .92rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf8; }
.checklist .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: .8rem; color: transparent; }
.checklist li.done .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.checklist li.done .title { text-decoration: line-through; color: var(--muted); }
.checklist .title { font-weight: 600; }
.checklist .desc { color: var(--muted); font-size: .9rem; }

.quick { display: flex; gap: .5rem; flex-wrap: wrap; }

.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mini-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .when { color: var(--muted); }

@media (max-width: 900px) {
  .steps, .split { grid-template-columns: 1fr; }
}
