/* Corat-Coret — landing page. Kanvas papan tulis bertitik; satu momen animasi di hero. */
:root {
  --papan: #fbfcfe;
  --titik: #d8dee9;
  --tinta: #1d2433;
  --spidol: #ff5a36;
  --stabilo: #ffd23f;
  --biru: #2f6bff;
  --abu: #5d6677;
  --garis: #e3e7ef;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--tinta); font-family: var(--body); font-size: 17px; line-height: 1.6;
  background-color: var(--papan);
  background-image: radial-gradient(var(--titik) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0; }
kbd { font-family: var(--body); font-size: .82em; font-weight: 650; background: #fff; border: 1px solid var(--garis); border-bottom-width: 3px; border-radius: 7px; padding: 1px 7px; white-space: nowrap; }
code { font-size: .9em; background: #fff; border: 1px solid var(--garis); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--biru); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--abu); }
.center { text-align: center; }
.spacer { flex: 1; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 15px/1 var(--body); padding: 12px 18px; border-radius: 12px; text-decoration: none; border: 2px solid var(--tinta); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn.big { font-size: 17px; padding: 15px 24px; border-radius: 14px; }
.btn.ink { background: var(--tinta); color: #fff; }
.btn.marker { background: var(--spidol); border-color: var(--tinta); color: #fff; box-shadow: 4px 4px 0 var(--tinta); }
.btn.marker:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinta); }
.btn.marker:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.btn.ghost { background: #fff; color: var(--tinta); }
.btn.ghost:hover { background: #f1f4f9; }
.link { text-decoration: none; font-weight: 600; padding: 8px 10px; }

/* ---------- Navigasi ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(251, 252, 254, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--garis); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px var(--display); text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--abu); font-weight: 550; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--tinta); background: #fff; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(760px, 92vh); padding: clamp(40px, 8vh, 96px) clamp(16px, 4vw, 48px) 64px; display: flex; align-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; max-width: 560px; }
.root-node {
  display: inline-block; background: var(--tinta); color: #fff; font-size: clamp(38px, 5.6vw, 66px); font-weight: 850;
  padding: .32em .5em .38em; border-radius: .42em; line-height: 1.04; letter-spacing: -.03em;
  box-shadow: 0 1px 0 rgba(29, 36, 51, .2), 0 18px 40px -18px rgba(29, 36, 51, .55);
}
.lede { font-size: clamp(17px, 1.6vw, 20px); margin: 26px 0 28px; max-width: 46ch; color: #303a4d; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { font-size: 14px; color: var(--abu); margin-top: 16px; }

/* simpul cabang di kanvas hero */
.hn rect { fill: #fff; stroke-width: 2; }
.hn text { font: 700 15px var(--body); fill: var(--tinta); }
.hn.sub text { font-weight: 550; font-size: 14px; }
.hn { opacity: 0; transform-box: fill-box; transform-origin: left center; transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); transform: scale(.6); }
.hn.on { opacity: 1; transform: scale(1); }
.edge { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.mark { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.1s ease-in-out, opacity .4s; }
.cursor { transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.cursor text { font: 700 12px var(--body); fill: #fff; }
.toast { opacity: 0; transition: opacity .4s, transform .4s; transform: translateY(8px); }
.toast.on { opacity: 1; transform: none; }
.toast rect { fill: var(--tinta); }
.toast text { font: 650 13.5px var(--body); fill: #fff; }
.fade-out { opacity: 0 !important; transition: opacity .6s !important; }

/* ---------- Strip ---------- */
.for { border-top: 2px dashed var(--garis); border-bottom: 2px dashed var(--garis); background: #fff; padding: 22px clamp(16px, 4vw, 48px); }
.for p { max-width: 900px; margin: 0 auto; text-align: center; color: var(--abu); font-size: 16px; }

/* ---------- Seksi umum ---------- */
.section { padding: clamp(64px, 10vh, 112px) clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.section-lede { font-size: 18px; color: #3b4558; max-width: var(--measure); margin-top: 14px; }

/* ---------- Cara kerja ---------- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps-line { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; pointer-events: none; }
.steps-line path { fill: none; stroke: var(--spidol); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 1.8s ease-in-out; }
.steps.drawn .steps-line path { stroke-dashoffset: 0; }
.steps li { position: relative; }
.num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--tinta); font: 850 24px var(--display); margin-bottom: 18px; position: relative; z-index: 1; }
.steps li:nth-child(4) .num { background: var(--stabilo); }
.steps p { color: #3b4558; font-size: 16px; margin-top: 8px; }

/* ---------- AI ---------- */
.ai { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.chat { display: grid; gap: 12px; margin: 28px 0 8px; }
.msg { max-width: 44ch; padding: 12px 16px; border-radius: 18px; font-size: 16px; }
.msg.you { justify-self: end; background: var(--tinta); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { background: #fff; border: 2px solid var(--garis); border-bottom-left-radius: 6px; }
.ai-map { margin: 0; background: #fff; border: 2px solid var(--tinta); border-radius: 22px; padding: 10px; box-shadow: 8px 8px 0 var(--stabilo); }
.ai-map svg { display: block; width: 100%; height: auto; }

/* ---------- Fitur ---------- */
.feature-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.feature-list li { padding: 18px 0; border-top: 2px solid var(--garis); display: grid; gap: 4px; }
.feature-list b { font: 750 19px var(--display); }
.feature-list span { color: #3b4558; font-size: 16px; max-width: 52ch; }

/* ---------- Harga ---------- */
.period { display: inline-flex; background: #fff; border: 2px solid var(--tinta); border-radius: 12px; padding: 3px; margin-top: 28px; }
.period button { border: 0; background: none; font: 650 14px var(--body); padding: 8px 16px; border-radius: 9px; cursor: pointer; color: var(--tinta); }
.period button.on { background: var(--tinta); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; align-items: stretch; }
.plan { background: #fff; border: 2px solid var(--garis); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.plan.hl { border-color: var(--tinta); box-shadow: 6px 6px 0 var(--spidol); }
.plan h3 { font-size: 22px; }
.plan .tag { font-size: 13px; color: var(--abu); margin-top: -8px; }
.price { font: 850 34px var(--display); letter-spacing: -.02em; }
.price small { font: 500 14px var(--body); color: var(--abu); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; flex: 1; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 3px solid var(--spidol); border-bottom: 3px solid var(--spidol); transform: rotate(-45deg); border-radius: 1px; }
.plan .seat { font-size: 13px; color: var(--abu); }
.plan .btn { width: 100%; }
.badge { align-self: flex-start; font: 700 12px var(--body); background: var(--stabilo); color: var(--tinta); padding: 3px 10px; border-radius: 99px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-top: 2px solid var(--garis); padding: 6px 0; }
.faq details:last-of-type { border-bottom: 2px solid var(--garis); }
.faq summary { cursor: pointer; font: 700 18px var(--display); padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 26px; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: #3b4558; max-width: var(--measure); }

/* ---------- Penutup ---------- */
.final { text-align: center; padding: 90px 20px 110px; display: grid; gap: 28px; justify-items: center; }
.final h2 { max-width: 18ch; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 22px clamp(16px, 4vw, 48px); border-top: 1px solid var(--garis); background: #fff; font-size: 14px; color: var(--abu); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--tinta); }

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps-line { display: none; }
  .ai { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .link { display: none; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero-canvas { position: relative; inset: auto; height: 360px; order: 2; margin-top: 18px; }
  .feature-list { grid-template-columns: 1fr; }
  .plans, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hn, .edge, .mark, .cursor, .toast, .steps-line path { transition: none !important; }
}
