/* ═══════════════════════════════════════════
   Codemi — Product Page Styles
   Shared across Learn&Co, Kapabel, Ops&Co, Chat&Co.
   Each page sets --accent and --accent-pale via inline style.
   ═══════════════════════════════════════════ */

.sec { padding: 88px 0; border-bottom: 1px solid var(--border-soft); }
.sec--alt { background: var(--bg-alt); }
.sec--dark { background: var(--navy); color: var(--white); border-bottom: none; }
.sec--dark em { color: #FFFFFF; } /* white — always readable on navy, neutral across all product pages */

.label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

h1 { font-size: clamp(40px, 5.5vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 20px; color: var(--navy); }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 16px; color: var(--navy); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; color: var(--navy); }
p { font-size: 17px; color: var(--text-secondary); line-height: 1.7; }
em { font-style: normal; color: var(--accent); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 20px; color: var(--text-secondary); line-height: 1.65; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--outline { border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn--white { background: var(--white); color: var(--navy); }
.hero-trust { margin-top: 32px; font-size: 14px; color: var(--text-tertiary); }
.hero-logos { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.hero-logo { font-size: 13px; font-weight: 800; color: var(--text-tertiary); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-visual { background: var(--bg-soft); border: 2px dashed var(--border); border-radius: 20px; min-height: 360px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-tertiary); font-size: 14px; font-weight: 600; padding: 40px; }
.hero-visual.sc-photo { background: transparent; border: none; padding: 8px; align-items: flex-start; }
.hero-visual.sc-photo img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 16px; display: block; }
.hero-note { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; font-style: italic; }

/* Feature section */
.feat-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat-section--reverse { direction: rtl; }
.feat-section--reverse > * { direction: ltr; }
.feat-visual { background: var(--bg-soft); border: 2px dashed var(--border); border-radius: 16px; min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 13px; font-weight: 600; padding: 32px; text-align: center; }
.feat-visual.sc-photo { background: transparent; border: none; padding: 8px; align-items: flex-start; }
.feat-visual.sc-photo img { width: 100%; max-height: 380px; object-fit: contain; border-radius: 12px; display: block; }

/* ── Floating screenshot — sama treatment dengan hero ── */
.feat-visual.feat-float {
  background: transparent;
  border: none;
  padding: 24px 8px;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.feat-visual.feat-float::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(32,48,144,0.10) 0%, transparent 68%);
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
}
.feat-visual.feat-float img {
  position: relative; z-index: 1;
  max-height: 380px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(26,38,84,0.22));
}

/* Phone device frame inside feat-float */
.feat-visual.feat-float .phone-device {
  position: relative; z-index: 1;
  background: #1C1C1E;
  border-radius: 40px;
  padding: 14px 11px;
  width: 210px;
  box-shadow: 0 28px 52px rgba(26,38,84,0.32), inset 0 0 0 1px rgba(255,255,255,0.07);
}
.feat-visual.feat-float .phone-device-notch { width: 70px; height: 5px; background: #2C2C2E; border-radius: 3px; margin: 0 auto 8px; }
.feat-visual.feat-float .phone-device-screen { border-radius: 26px; overflow: hidden; max-height: 340px; }
.feat-visual.feat-float .phone-device-screen img { width: 100%; display: block; max-height: none; filter: none; object-fit: cover; object-position: top; }
.feat-visual.feat-float .phone-device-bar { width: 80px; height: 4px; background: #2C2C2E; border-radius: 2px; margin: 8px auto 0; }
.feat-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.feat-item { display: flex; gap: 14px; align-items: flex-start; }
.feat-ico { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--accent-pale); }
.feat-item h3 { font-size: 16px; margin-bottom: 2px; color: var(--navy); }
.feat-item p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

/* Stakeholders */
.stake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stake-card { border: 1.5px solid var(--border); border-radius: 16px; padding: 32px; background: var(--bg-pure); }
.stake-role { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.stake-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--navy); }
.stake-card p { font-size: 15px; line-height: 1.65; }

/* Proof */
.proof-card { background: var(--navy); border-radius: 20px; padding: 52px; color: var(--white); display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; align-items: center; }
.quote { font-size: 20px; font-style: italic; line-height: 1.65; color: rgba(255,255,255,0.9); margin-bottom: 24px; padding-left: 20px; border-left: 3px solid var(--accent); }
.author { font-size: 15px; font-weight: 700; }
.author-title { font-size: 13px; color: rgba(255,255,255,0.5); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 24px; text-align: center; }
.stat-n { font-size: 36px; font-weight: 800; color: var(--white); line-height: 1; }
.stat-l { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 6px; }
.proof-logos { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.proof-logo { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 6px; }

/* Next step */
.next-box { background: var(--green-pale); border: 1.5px solid #86EFAC; border-radius: 16px; padding: 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.next-ico { width: 56px; height: 56px; background: var(--green); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 24px; font-weight: 800; }
.next-box p { font-size: 17px; color: var(--text-secondary); margin: 0; }

/* Feature grid (all features section) */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feat-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 20px; background: var(--bg-pure); }
.feat-card-ico { font-size: 22px; margin-bottom: 10px; }
.feat-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feat-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.feat-category { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin: 36px 0 16px; grid-column: 1 / -1; }

/* CTA */
.cta-feats { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.cta-feat { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.cta-feat::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* Responsive */
/* ── Kapabel: System Flow ── */
.system-flow { display: flex; align-items: center; gap: 8px; margin: 40px 0 24px; flex-wrap: wrap; justify-content: center; }
.sys-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sys-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sys-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.sys-sub { font-size: 12px; color: var(--text-tertiary); }
.sys-arrow { font-size: 20px; color: var(--gray-300); margin: 0 4px; }
.sys-tagline { text-align: center; font-size: 18px; font-weight: 700; color: var(--navy); margin-top: 8px; }

/* ── Kapabel: Readiness Dashboard Stack ── */
.dash-stack { position: relative; min-height: 360px; }
.dash-small { position: absolute; top: 0; left: 0; width: 220px; background: var(--bg-pure); border: 1.5px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-md); z-index: 1; }
.dash-small-title { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.dash-small-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dash-small-name { font-size: 12px; font-weight: 600; color: var(--navy); min-width: 70px; }
.dash-small-bar { flex: 1; height: 6px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; }
.dash-small-bar span { display: block; height: 100%; border-radius: 3px; }
.dash-small-pct { font-size: 12px; font-weight: 700; min-width: 32px; text-align: right; }
.dash-large { position: absolute; top: 40px; right: 0; width: calc(100% - 60px); background: var(--bg-pure); border: 1.5px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-lg); z-index: 2; }
.dash-large-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-large-person { display: flex; align-items: center; gap: 12px; }
.dash-large-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.dash-large-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.dash-large-role { font-size: 12px; color: var(--text-tertiary); }
.dash-large-overall-label { font-size: 11px; color: var(--text-tertiary); text-align: right; }
.dash-large-overall-score { font-size: 24px; font-weight: 800; color: var(--accent); }
.dash-skill { margin-bottom: 14px; }
.dash-skill-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.dash-skill-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.dash-skill-pct { font-size: 13px; font-weight: 700; }
.dash-skill-bar { height: 6px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.dash-skill-bar div { height: 100%; border-radius: 3px; }
.dash-skill-chain { display: flex; gap: 8px; }
.sc-done { font-size: 11px; color: var(--green); font-weight: 600; }
.sc-wait { font-size: 11px; color: var(--text-tertiary); font-weight: 600; }

/* ── Kapabel: Differentiator box ── */
.diff { display: flex; gap: 16px; align-items: flex-start; background: var(--accent-pale); border: 1.5px solid var(--accent); border-radius: 14px; padding: 24px; }
.diff-badge { width: 36px; height: 36px; min-width: 36px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }

@media (max-width: 768px) {
  .hero-grid, .feat-section, .feat-section--reverse, .proof-card, .next-box { grid-template-columns: 1fr; gap: 36px; }
  .feat-section--reverse { direction: ltr; }
  .stake-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .dash-large { position: static; width: 100%; }
  .dash-small { position: static; width: 100%; margin-bottom: 16px; }
  .dash-stack { min-height: auto; }
  .system-flow { gap: 6px; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
}
