/* KOPI Competitor DeepDive — Clean Report */
:root {
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --gold: #f59e0b;
  --gold-light: #fffbeb;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff; color: var(--dark); line-height: 1.75; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
strong { font-weight: 700; }

/* — Progress — */
.progress-bar { position:fixed; top:0; left:0; height:3px; background:linear-gradient(90deg,var(--blue),var(--gold)); z-index:999; transition:width .1s; }

/* — Nav — */
.nav { position:fixed; top:0; width:100%; background:rgba(255,255,255,.92); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); z-index:100; padding:10px 0; transition:box-shadow .3s; }
.nav.scrolled { box-shadow:0 1px 20px rgba(0,0,0,.06); }
.nav-inner { max-width:1100px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.nav-brand { font-weight:900; font-size:17px; color:var(--blue); white-space:nowrap; margin-right:8px; }
.nav-brand span { color:var(--gold); }
.nav-links { display:flex; gap:2px; }
.nav-links a { color:var(--gray); font-size:12px; padding:5px 9px; border-radius:6px; white-space:nowrap; transition:.2s; }
.nav-links a:hover, .nav-links a.active { color:var(--blue); background:var(--blue-light); }

/* — Hero — */
.hero {
  position:relative; min-height:520px;
  display:flex; align-items:center; justify-content:center;
  padding:100px 24px 60px; overflow:hidden;
}
.hero-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-tint { position:absolute; inset:0; background:linear-gradient(160deg,rgba(15,23,42,.92) 0%,rgba(37,99,235,.78) 100%); z-index:1; }
.hero-content { position:relative; z-index:2; text-align:center; max-width:720px; }
.hero-badge { display:inline-block; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff; font-size:11px; font-weight:700; padding:4px 14px; border-radius:20px; letter-spacing:1px; margin-bottom:20px; }
.hero h1 { font-size:clamp(30px,5vw,50px); font-weight:900; color:#fff; line-height:1.15; margin-bottom:12px; }
.hero-lead { font-size:clamp(16px,2.5vw,22px); color:var(--gold); font-weight:700; margin-bottom:10px; }
.hero-desc { font-size:15px; color:rgba(255,255,255,.7); margin-bottom:36px; }
.hero-stats { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero-stat {
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  border-radius:10px; padding:14px 20px; text-align:center;
  backdrop-filter:blur(6px); min-width:110px;
}
.hero-stat span { display:block; font-size:26px; font-weight:900; color:var(--gold); }
.hero-stat { font-size:11px; color:rgba(255,255,255,.6); }

/* — TOC — */
.toc { max-width:1100px; margin:0 auto; padding:24px 20px; display:flex; gap:8px; flex-wrap:wrap; }
.toc a { display:flex; align-items:center; gap:6px; background:var(--light); border:1px solid var(--border); border-radius:8px; padding:8px 14px; font-size:13px; font-weight:600; color:var(--dark); transition:.2s; }
.toc a:hover { border-color:var(--blue); background:var(--blue-light); }
.toc i { font-style:normal; font-size:16px; }

/* — Main — */
main { max-width:1100px; margin:0 auto; padding:0 20px 60px; }

/* — Section — */
.sec { padding:48px 0; }
.sec + .sec { border-top:1px solid var(--border); }
.sec-head { display:flex; gap:16px; align-items:flex-start; margin-bottom:28px; }
.sec-icon { font-size:36px; flex-shrink:0; line-height:1; }
.sec-head h2 { font-size:24px; font-weight:900; color:var(--dark); margin-bottom:4px; }
.sec-sub { font-size:14px; color:var(--gray); }

/* — Card — */
.card { background:var(--light); border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.card h3 { font-size:17px; font-weight:800; margin-bottom:12px; }
.card-highlight { background:linear-gradient(135deg,#f0f9ff 0%,#fffbeb 100%); border-color:#bfdbfe; }

/* — Pill row — */
.pill-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-top:20px; }
.pill { background:#fff; border:1px solid var(--border); border-radius:10px; padding:12px 16px; font-size:13px; line-height:1.5; }
.pill strong { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--blue); margin-bottom:2px; }

/* — Category cards — */
.cat-grid { display:grid; gap:12px; }
.cat { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; cursor:pointer; transition:.2s; }
.cat:hover { border-color:#93c5fd; box-shadow:0 2px 12px rgba(37,99,235,.06); }
.cat-hot { border-left:3px solid var(--gold); }
.cat-head { display:flex; align-items:center; gap:12px; padding:16px 20px; }
.cat-num { font-size:13px; font-weight:900; color:var(--blue); background:var(--blue-light); width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:8px; flex-shrink:0; }
.cat-head h3 { font-size:16px; font-weight:800; flex:1; }
.cat-who { font-size:12px; color:var(--gray); margin-top:2px; }
.cat-arrow { font-size:22px; color:var(--gray); transition:.3s; flex-shrink:0; }
.cat.open .cat-arrow { transform:rotate(90deg); }
.cat-sell, .cat-overlap { padding:0 20px; font-size:13px; color:var(--gray); }
.cat-overlap { padding-bottom:12px; }
.cat-detail { display:none; padding:0 20px 20px; }
.cat.open .cat-detail { display:block; }
.col-good, .col-bad { margin-bottom:16px; }
.col-good h4 { color:#16a34a; font-size:14px; margin-bottom:6px; }
.col-bad h4 { color:#dc2626; font-size:14px; margin-bottom:6px; }
.col-good ul, .col-bad ul { list-style:none; padding:0; }
.col-good li, .col-bad li { font-size:13px; padding:3px 0 3px 16px; position:relative; }
.col-good li::before { content:'•'; position:absolute; left:0; color:#16a34a; }
.col-bad li::before { content:'•'; position:absolute; left:0; color:#dc2626; }
.cat-verdict { background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:12px 16px; font-size:13px; line-height:1.6; }

/* — Table — */
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; margin-bottom:16px; }
.matrix { width:100%; border-collapse:collapse; font-size:13px; }
.matrix th, .matrix td { padding:10px 12px; text-align:center; border-bottom:1px solid var(--border); }
.matrix th { background:var(--dark); color:#fff; font-weight:700; font-size:12px; position:sticky; top:0; }
.matrix th small { font-weight:400; opacity:.7; }
.matrix td:first-child { text-align:left; font-weight:600; white-space:nowrap; }
.matrix .kopi-col { background:var(--blue); }
.matrix .y { color:#16a34a; font-size:16px; font-weight:900; }
.matrix .p { color:#f59e0b; font-size:15px; }
.matrix .n { color:#cbd5e1; font-size:14px; }
.matrix .y small, .matrix .p small { display:block; font-size:10px; font-weight:400; }
.legend { display:flex; gap:16px; font-size:12px; color:var(--gray); margin-top:8px; }
.legend span { display:flex; align-items:center; gap:4px; }
.dot-y, .dot-p, .dot-n { width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot-y { background:#16a34a; } .dot-p { background:#f59e0b; } .dot-n { background:#cbd5e1; }
.note { font-size:12px; color:var(--gray); margin-top:12px; }

/* — Banner — */
.banner { position:relative; border-radius:var(--radius); overflow:hidden; min-height:240px; display:flex; align-items:flex-end; }
.banner-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.banner-tint { position:absolute; inset:0; background:linear-gradient(180deg,rgba(15,23,42,.2) 0%,rgba(15,23,42,.85) 100%); }
.banner-text { position:relative; z-index:2; padding:28px; }
.banner-text h2 { color:#fff; font-size:26px; font-weight:900; margin-bottom:6px; }
.banner-text p { color:rgba(255,255,255,.8); font-size:14px; max-width:600px; }

/* — Blockquote — */
.bq { border-left:4px solid var(--blue); padding:16px 20px; background:#f8fafc; border-radius:0 8px 8px 0; font-size:14px; line-height:1.7; margin:16px 0; }

/* — Layer visual — */
.layer-visual { margin-top:24px; }
.lv-label { font-size:13px; font-weight:700; color:var(--gray); margin-bottom:12px; }
.lv-grid { display:flex; gap:12px; overflow-x:auto; }
.lv-col { display:flex; flex-direction:column-reverse; gap:4px; align-items:center; min-width:120px; }
.lv-block { padding:10px 14px; border-radius:8px; font-size:12px; font-weight:600; text-align:center; width:100%; }
.lv-block.kopi { background:linear-gradient(135deg,var(--blue),#1d4ed8); color:#fff; }
.lv-block.other { background:var(--light); border:1px solid var(--border); color:var(--gray); }
.lv-name { font-size:11px; font-weight:700; color:var(--gray); margin-top:8px; text-align:center; }

/* — Strategy grid — */
.strat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:16px; }
.strat { background:var(--light); border:1px solid var(--border); border-radius:var(--radius); padding:24px; transition:.2s; }
.strat:hover { border-color:#93c5fd; box-shadow:0 4px 16px rgba(37,99,235,.06); }
.strat-n { width:32px; height:32px; background:var(--blue); color:#fff; font-size:15px; font-weight:900; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.strat h3 { font-size:16px; font-weight:800; margin-bottom:8px; }
.strat p { font-size:13px; color:#475569; }

/* — Threat grid — */
.threat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.threat { background:#fff; border:1px solid var(--border); border-left:3px solid #ef4444; border-radius:var(--radius); padding:20px; }
.threat h4 { font-size:15px; font-weight:800; margin-bottom:8px; }
.threat p { font-size:13px; color:#475569; }

/* — Twilio grid — */
.tw-grid { display:grid; gap:12px; margin-top:20px; }
.tw { background:var(--light); border:1px solid var(--border); border-radius:var(--radius); padding:18px; }
.tw h4 { font-size:15px; font-weight:800; margin-bottom:10px; }
.tw-row { display:flex; gap:8px; font-size:13px; margin-bottom:4px; align-items:baseline; }
.tw-l { font-weight:700; color:var(--blue); min-width:52px; flex-shrink:0; font-size:12px; }
.tw-v { color:#475569; }
.tw:nth-child(even) .tw-l { color:var(--gold); }

/* — Timeline — */
.timeline { position:relative; padding-left:28px; }
.timeline::before { content:''; position:absolute; left:8px; top:0; bottom:0; width:2px; background:var(--border); }
.tl { position:relative; margin-bottom:28px; }
.tl-dot { position:absolute; left:-24px; top:4px; width:14px; height:14px; border-radius:50%; background:var(--blue); border:3px solid #fff; box-shadow:0 0 0 2px var(--blue); }
.tl-phase { font-size:15px; font-weight:800; color:var(--blue); }
.tl-time { font-size:12px; color:var(--gray); margin-bottom:8px; }
.tl-body ul { list-style:none; padding:0; }
.tl-body li { font-size:13px; color:#475569; padding:4px 0 4px 16px; position:relative; }
.tl-body li::before { content:'→'; position:absolute; left:0; color:var(--blue); }

/* — Copy/Skip — */
.copy-skip { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:12px; }
.cs-col ul { list-style:none; padding:0; }
.cs-col li { padding:4px 0; font-size:13px; }
.cs-label { font-weight:700; margin-bottom:8px; }
.cs-copy .cs-label { color:#16a34a; }
.cs-skip .cs-label { color:#ef4444; }
.cs-copy li { color:#475569; }
.cs-skip li { color:#475569; }

/* — Footer — */
.footer { max-width:1100px; margin:0 auto; padding:40px 20px; text-align:center; font-size:12px; color:var(--gray); border-top:1px solid var(--border); }
.footer p + p { margin-top:4px; }

/* — Animations — */
.fade-in { opacity:0; transform:translateY(20px); transition:opacity .6s, transform .6s; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* — Responsive — */
@media (max-width:768px) {
  .hero { min-height:420px; padding:80px 16px 40px; }
  .hero-stats { gap:8px; }
  .hero-stat { min-width:80px; padding:10px 12px; }
  .toc { padding:16px; gap:6px; }
  .toc a { padding:6px 10px; font-size:12px; }
  main { padding:0 16px 40px; }
  .sec { padding:32px 0; }
  .sec-head { gap:12px; }
  .sec-icon { font-size:28px; }
  .sec-head h2 { font-size:20px; }
  .strat-grid { grid-template-columns:1fr; }
  .threat-grid { grid-template-columns:1fr; }
  .copy-skip { grid-template-columns:1fr; }
  .pill-row { grid-template-columns:1fr; }
  .banner { min-height:180px; }
  .banner-text { padding:20px; }
  .banner-text h2 { font-size:20px; }
  .lv-grid { gap:8px; }
  .lv-col { min-width:80px; }
  .lv-block { font-size:10px; padding:8px 6px; }
}
