:root {
  --paper: #F6F3EC;
  --card: #FFFFFF;
  --ink: #18202B;
  --ink-2: #4A5462;
  --ink-3: #7B8492;
  --line: #E4DED2;
  --green: #1F6B4A;
  --green-2: #E3EFE8;
  --amber: #F2B84B;
  --amber-2: #FCF1D9;
  --red: #C2412D;
  --red-2: #F9E4DF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 32, 43, .06), 0 8px 24px rgba(24, 32, 43, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55;
}
.app { max-width: 480px; margin: 0 auto; padding: 0 16px 48px; }
[hidden] { display: none !important; }
a { color: var(--green); }
button { font: inherit; color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 15px; }
.top-right { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pill { background: var(--green-2); color: var(--green); padding: 4px 10px; border-radius: 99px; }

.view { padding-top: 14px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 8px; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 800; text-wrap: balance; }
.h1-sm { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; text-wrap: balance; }
.h2 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -.01em; }
.h3 { font-size: 16px; margin: 28px 0 8px; }
.lead { color: var(--ink-2); margin: 0 0 20px; }
.muted { color: var(--ink-3); font-size: 13px; margin: 2px 0 0; }
.micro { font-size: 13px; color: var(--ink-3); text-align: center; margin: 8px 0 0; }
.hint { font-size: 13px; color: var(--ink-3); margin: 6px 0 14px; }
.error { color: var(--red); background: var(--red-2); padding: 10px 12px; border-radius: 10px; font-size: 14px; }

.btn { display: block; width: 100%; text-align: center; border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn.big { padding: 17px 16px; font-size: 17px; }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(31, 107, 74, .25); }
.btn.primary:disabled { opacity: .45; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); margin-top: 10px; }
.link { background: none; border: 0; color: var(--ink-3); padding: 12px 0; cursor: pointer; font-size: 14px; }

/* lander */
.sample { background: var(--card); border-radius: var(--radius); padding: 18px; margin: 28px 0 0; box-shadow: var(--shadow); position: relative; }
.sample-tag { position: absolute; top: -10px; left: 16px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.sample-q { font-weight: 700; margin: 4px 0 12px; }
.sample-row { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.sample-verdict { font-weight: 700; margin: 0; }
.steps { padding-left: 20px; margin: 0; color: var(--ink-2); }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps b { color: var(--ink); }
.founder { background: var(--green-2); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }
.founder-badge { font-size: 12px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.founder p { margin: 0; color: var(--ink-2); }
.foot { margin-top: 28px; text-align: center; font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.foot a { color: var(--ink-3); }

/* score ring */
.ring { --p: 0; --c: var(--green); flex: none; width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #ECE7DC 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; background: var(--card); border-radius: 50%; }
.ring span { position: relative; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.ring.small { width: 58px; height: 58px; }
.ring.small::before { inset: 6px; }
.ring.small span { font-size: 19px; }
.ring.mid { --c: var(--amber); }
.ring.low { --c: var(--red); }

/* quiz */
.progress { height: 6px; background: #E8E2D6; border-radius: 99px; overflow: hidden; margin: 4px 0 20px; }
.progress .bar { height: 100%; width: 25%; background: var(--green); border-radius: 99px; transition: width .3s; }
.qtitle { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 16px; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips button { border: 1.5px solid var(--line); background: var(--card); padding: 9px 13px; border-radius: 99px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chips button.on, .options button.on { border-color: var(--green); background: var(--green-2); color: var(--green); }
.options { display: grid; gap: 10px; }
.options button { text-align: left; border: 1.5px solid var(--line); background: var(--card); padding: 15px 16px; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); color: var(--ink); outline: none; }
input:focus, textarea:focus { border-color: var(--green); }
.jd { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.jd summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }

/* plan */
.plan { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: q; }
.plan li { counter-increment: q; display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: default; }
.plan li::before { content: counter(q); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); font-size: 12px; font-weight: 800; display: grid; place-items: center; color: var(--ink-2); }
.plan li.first::before { background: var(--green); color: #fff; }
.plan li.clickable { cursor: pointer; }
.plan .pq { flex: 1; font-size: 15px; font-weight: 600; }
.plan .pl { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.plan .pscore { font-size: 13px; font-weight: 800; color: var(--green); }
.plan li.locked .pq { color: var(--ink-3); }

/* answer */
.question { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 6px; text-wrap: balance; }
.why { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.answer-box { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.answer-box:focus-within { border-color: var(--green); }
.answer-box textarea { border: 0; border-radius: 0; resize: vertical; min-height: 190px; }
.answer-tools { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-top: 1px solid var(--line); }
.mic { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 0; padding: 8px 12px; border-radius: 99px; font-size: 14px; font-weight: 700; cursor: pointer; }
.mic .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.mic.rec { background: var(--red-2); color: var(--red); }
.mic.rec .dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.loading { text-align: center; padding: 28px 0; color: var(--ink-2); }
.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* result */
.res-q { font-weight: 700; margin: 0 0 14px; }
.score-card { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.score-card > div:last-child { flex: 1; min-width: 0; }
.verdict { font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.bars { display: grid; gap: 5px; }
.barrow { display: grid; grid-template-columns: 74px 1fr 22px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.barrow .track { height: 6px; background: #ECE7DC; border-radius: 99px; overflow: hidden; }
.barrow .fill { height: 100%; background: var(--green); border-radius: 99px; }
.barrow .fill.mid { background: var(--amber); }
.barrow .fill.low { background: var(--red); }
.barrow b { text-align: right; color: var(--ink); }
.heard, .fix, .good, .followup, .rewrite { border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.heard b, .fix b, .good b, .followup b, .rewrite > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.heard { background: #EEF0F4; } .heard b { color: var(--ink-2); }
.heard span, .sample .heard { font-style: italic; }
.fix { background: var(--amber-2); } .fix b { color: #8A5B00; }
.good { background: var(--green-2); } .good b { color: var(--green); }
.good ul { margin: 0; padding-left: 18px; }
.followup { background: var(--card); border: 1.5px dashed var(--line); } .followup b { color: var(--ink-2); }
.rewrite { background: var(--card); box-shadow: var(--shadow); position: relative; overflow: hidden; } .rewrite > b { color: var(--green); }
.rewrite p { margin: 0; white-space: pre-wrap; }
.rewrite.locked #resRewrite::after { content: " Saya percaya pengalaman ini relevan karena [alasan], dan hasilnya [angka] dalam [waktu]. Itu yang ingin saya bawa ke tim ini, terutama untuk [tanggung jawab utama posisi]."; filter: blur(5px); color: var(--ink-2); }
.lock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--paper); text-align: center; }
.lock-icon { font-size: 20px; }
.lock p { margin: 0; font-weight: 700; font-size: 14px; }

.paywall { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 18px; margin-top: 22px; }
.paywall h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; color: #D7DCE3; font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 800; }
.ticks b { color: #fff; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.plan-card { position: relative; display: flex; flex-direction: column; border: 2px solid #3A4553; border-radius: 14px; padding: 16px 12px 12px; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card.selected { border-color: var(--amber); background: rgba(242, 184, 75, .08); }
.pc-badge { position: absolute; top: -10px; left: 10px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.pc-name { font-weight: 700; color: #D7DCE3; font-size: 14px; }
.pc-price { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pc-per { font-size: 12px; color: #9AA4B2; }
.anchor { font-size: 13px; color: #9AA4B2; margin: 0 0 14px; }
.paywall .field span { color: #D7DCE3; }
.paywall input { background: #232C38; border-color: #3A4553; color: #fff; }
.paywall .btn.primary { background: var(--amber); color: var(--ink); box-shadow: none; }
.paywall .micro { color: #9AA4B2; }
.after { margin-top: 18px; }

/* success + home */
.success-hero { text-align: center; padding: 16px 0 8px; }
.check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; display: grid; place-items: center; font-weight: 800; }
.code-box { background: var(--card); border: 2px dashed var(--green); border-radius: 14px; padding: 14px; text-align: center; margin: 8px 0 16px; }
.code-box span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.code-box b { display: block; font-size: 28px; letter-spacing: .14em; margin: 4px 0; font-family: ui-monospace, Menlo, monospace; }
.code-box small { color: var(--ink-3); }
.code-box.small b { font-size: 20px; }
.upsell { margin-top: 24px; background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.upsell p { color: var(--ink-2); margin: 4px 0 4px; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stats div { background: var(--card); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.countdown { font-size: 14px; color: var(--ink-2); margin: 6px 0 14px; }
.today { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.today .question { margin-bottom: 14px; }
.more summary { cursor: pointer; font-weight: 700; margin: 12px 0; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.history li b { color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); }
