/* ═══════════════════════════════════════════════════════════
   AI Business Killer — Frontend CSS v5
   Font: Inter (UI) + JetBrains Mono (code/labels)
   ═══════════════════════════════════════════════════════════ */

:root {
  --red:      #c0392b;
  --red-soft: #fdf2f2;
  --amber:    #d35400;
  --amber-soft:#fff8f2;
  --purple:   #6c3483;
  --purple-soft:#f5eeff;
  --blue:     #1a6bcc;
  --text:     #0d1117;
  --text2:    #374151;
  --muted:    #6b7280;
  --border:   #e5e7eb;
  --bg:       #f0f2f5;
  --white:    #ffffff;
  --shadow-sm:0 1px 4px rgba(0,0,0,.06);
  --shadow:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:0 8px 40px rgba(0,0,0,.12);
  --radius:   16px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── ROOT SHELL ───────────────────────────────────────────── */
#abk-root {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
}

/* ── CANVAS + BG ──────────────────────────────────────────── */
#abk-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .28;
}
.abk-bg-char {
  position: fixed; bottom: 0; right: 0;
  width: 40vw; max-width: 580px; height: 100vh;
  background-size: contain; background-position: right bottom; background-repeat: no-repeat;
  pointer-events: none; z-index: 1;
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
  mask-image: linear-gradient(to left, black 40%, transparent 100%);
}

/* ── LAYOUT WRAP ──────────────────────────────────────────── */
.abk-view { position: relative; z-index: 2; }
.abk-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 40px;
}
.abk-wrap-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh; text-align: center;
}

/* ═══ HERO ════════════════════════════════════════════════════ */
.abk-hero-view {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 0 60px;
}
.abk-hero-view .abk-wrap { text-align: center; }

/* Badge */
.abk-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red-soft); border: 1.5px solid rgba(192,57,43,.2);
  padding: 8px 22px; border-radius: 100px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--red);
  margin-bottom: 44px;
}
.abk-badge-pulse {
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  flex-shrink: 0; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.25;transform:scale(.5)} }

/* Headline */
.abk-h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900; line-height: 1.12;
  letter-spacing: -1px; color: var(--text);
  margin-bottom: 24px;
}
.abk-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text2); line-height: 1.7;
  font-weight: 400; margin-bottom: 56px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ── CARD ─────────────────────────────────────────────────── */
.abk-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ── FORM CARD ────────────────────────────────────────────── */
.abk-form-card {
  padding: 48px 52px 44px;
  text-align: left;
  margin-bottom: 0;
}

/* ── FIELD GROUP ──────────────────────────────────────────── */
.abk-field-group { display: flex; flex-direction: column; }
.abk-label {
  font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: .3px;
  margin-bottom: 10px; display: block;
}
.req { color: var(--red); }

/* ── INPUTS ───────────────────────────────────────────────── */
.abk-input {
  width: 100%;
  height: 52px;
  background: #f9fafb;
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 0 20px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
}
.abk-input::placeholder { color: #9ca3af; }
.abk-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(192,57,43,.1);
  background: var(--white);
}
.abk-input-hero {
  height: 64px;
  font-size: 18px;
  font-family: var(--mono);
  border-color: rgba(192,57,43,.5);
  padding: 0 24px;
  border-width: 2.5px;
  animation: border-breathe 2.5s ease-in-out infinite;
}
.abk-input-hero:focus { animation: none; }
@keyframes border-breathe {
  0%,100%{border-color:rgba(192,57,43,.4);box-shadow:0 0 0 0 rgba(192,57,43,0)}
  50%{border-color:rgba(192,57,43,.9);box-shadow:0 0 0 6px rgba(192,57,43,.08)}
}
@keyframes shake {
  0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)}
  40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(4px)}
}
.shake { animation: shake .55s ease !important; }

/* ── TWO-COL ROW ──────────────────────────────────────────── */
.abk-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── FIELD SPACING in forms ───────────────────────────────── */
.abk-form-card .abk-field-group { margin-bottom: 28px; }
.abk-form-card .abk-row2 { margin-bottom: 28px; }
.abk-form-card .abk-row2 .abk-field-group { margin-bottom: 0; }
.abk-cf .abk-field-group { margin-bottom: 24px; }
.abk-cf .abk-row2 { margin-bottom: 24px; }
.abk-cf .abk-row2 .abk-field-group { margin-bottom: 0; }

/* ── PRIMARY BUTTON ───────────────────────────────────────── */
.abk-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 58px;
  background: var(--red); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.abk-btn-primary:hover {
  background: #a93226;
  box-shadow: 0 6px 28px rgba(192,57,43,.3);
  transform: translateY(-2px);
}
.abk-btn-primary:active { transform: scale(.99); }
.abk-btn-primary:disabled { background: #adb5bd; cursor: not-allowed; transform: none; box-shadow: none; }
.abk-btn-primary svg { flex-shrink: 0; transition: transform .2s; }
.abk-btn-primary:hover svg { transform: translateX(4px); }

/* ── STATS ROW ────────────────────────────────────────────── */
.abk-stats {
  display: flex; align-items: center; gap: 32px;
  padding-top: 28px;
  border-top: 1.5px solid var(--border);
  margin-top: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.abk-stat { text-align: center; }
.abk-stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; }
.abk-stat-num { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.abk-stat-label { font-size: 13px; color: var(--muted); }
.abk-stat-sep { width: 1px; height: 52px; background: var(--border); }

/* ═══ LOADING ══════════════════════════════════════════════════ */
.abk-loading-view {
  min-height: 100vh;
  display: flex; align-items: center;
  justify-content: center; padding: 60px 0;
}
.abk-spinner {
  position: relative; width: 120px; height: 120px; margin: 0 auto 52px;
}
.sp-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid transparent; animation: spin linear infinite;
}
.sp-r1 { border-top-color: var(--red);   animation-duration: 1.1s; }
.sp-r2 { inset: 16px; border-right-color: var(--amber); animation-duration: 1.7s; animation-direction: reverse; }
.sp-r3 { inset: 32px; border-bottom-color: rgba(192,57,43,.2); animation-duration: 2.4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.sp-core {
  position: absolute; inset: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: 50%;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  letter-spacing: 2px; color: var(--red);
  box-shadow: var(--shadow-sm);
}
.abk-steps {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 400px; margin: 0 auto 36px; text-align: left;
}
.abk-step {
  font-family: var(--mono); font-size: 14px; color: #d1d5db;
  transition: color .4s, transform .3s; line-height: 1.5;
}
.abk-step.active { color: var(--red); font-weight: 700; transform: translateX(6px); }
.abk-step.done   { color: var(--muted); }
.abk-loading-note {
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1px;
}

/* ═══ RESULTS ══════════════════════════════════════════════════ */
.abk-results-view { padding: 64px 0 100px; }

/* Report header */
.abk-report-header {
  text-align: center;
  padding: 0 0 48px;
  margin-bottom: 8px;
}
.abk-report-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.abk-report-label::before,
.abk-report-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border); max-width: 80px;
}
.abk-report-company {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -0.5px; color: var(--text);
  margin-bottom: 16px;
}
.abk-report-summary {
  font-size: 18px; color: var(--text2); line-height: 1.7; max-width: 580px; margin: 0 auto;
}

/* Score card */
.abk-score-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 48px;
}
.abk-score-inner { flex-shrink: 0; text-align: center; min-width: 160px; }
.abk-score-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.abk-score-big {
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 900; line-height: 1;
  letter-spacing: -3px; margin-bottom: 4px;
}
.abk-score-big sup { font-size: .38em; vertical-align: super; letter-spacing: 0; }
.abk-score-risk {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.abk-score-bar-wrap { flex: 1; }
.abk-score-track {
  height: 8px; background: #f3f4f6; border-radius: 4px;
  margin-bottom: 20px; overflow: hidden;
}
.abk-score-fill {
  height: 100%; border-radius: 4px;
  transition: width 1.6s cubic-bezier(.25,.46,.45,.94);
}
.abk-score-tags { display: flex; flex-direction: column; gap: 10px; }
.abk-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 700;
  padding: 8px 16px; border-radius: 6px; display: inline-block;
}
.abk-tag-org { background: var(--amber-soft); color: var(--amber); border: 1.5px solid rgba(211,84,0,.2); }
.abk-tag-red { background: var(--red-soft); color: var(--red); border: 1.5px solid rgba(192,57,43,.2); }

/* Section cards */
.abk-section-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.abk-card-amber { border-left: 5px solid var(--amber); background: var(--amber-soft); }
.abk-card-purple { border-left: 5px solid var(--purple); background: var(--purple-soft); }

.abk-section-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}

/* Risk items */
.abk-risk-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.abk-risk-item:last-child { border-bottom: none; padding-bottom: 0; }
.abk-risk-num {
  font-family: var(--mono); font-size: 28px; font-weight: 900;
  color: var(--red); opacity: .3; line-height: 1; flex-shrink: 0;
  min-width: 44px;
}
.abk-risk-title {
  font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.abk-risk-desc {
  font-size: 16px; color: var(--text2); line-height: 1.75;
}
.abk-scenario-text,
.abk-competitor-text {
  font-size: 17px; color: var(--text2); line-height: 1.8;
}

/* ── UNLOCK CARD ──────────────────────────────────────────── */
.abk-unlock-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 52px 56px 48px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}
.abk-unlock-title {
  font-size: clamp(22px, 3vw, 34px); font-weight: 900;
  color: var(--text); margin-bottom: 14px; line-height: 1.2;
}
.abk-unlock-desc {
  font-size: 17px; color: var(--text2); margin-bottom: 40px; line-height: 1.7;
}

/* ── CONTACT FORM ─────────────────────────────────────────── */
.abk-cf { display: flex; flex-direction: column; }

/* OR DIVIDER ─────────────────────────────────────────────── */
.abk-or-line {
  display: flex; align-items: center; gap: 16px; margin: 32px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
.abk-or-line::before, .abk-or-line::after {
  content: ''; flex: 1; height: 1.5px; background: var(--border);
}

/* SHARE BUTTONS ──────────────────────────────────────────── */
.abk-share-row { display: flex; gap: 14px; flex-wrap: wrap; }
.abk-btn-fb, .abk-btn-li {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: none; border-radius: 8px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700; flex: 1; min-width: 180px;
  transition: opacity .2s, transform .15s;
}
.abk-btn-fb { background: #1877f2; color: #fff; }
.abk-btn-li { background: #0a66c2; color: #fff; }
.abk-btn-fb:hover, .abk-btn-li:hover { opacity: .88; transform: translateY(-2px); }

/* ═══ FULL REPORT ══════════════════════════════════════════════ */
.abk-report-body {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 64px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  line-height: 1;
}

/* Report typography — ONE consistent font system */
.abk-report-body h2 {
  font-family: var(--font);
  font-weight: 800; font-size: 22px;
  color: var(--text); line-height: 1.3;
  margin: 52px 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.abk-report-body h2:first-child { margin-top: 0; }

.abk-report-body h3 {
  font-family: var(--font);
  font-weight: 700; font-size: 17px;
  color: var(--text); line-height: 1.4;
  margin: 32px 0 10px;
}

.abk-report-body p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px; line-height: 1.9;
  color: var(--text2);
  margin-bottom: 20px;
}
.abk-report-body p:last-child { margin-bottom: 0; }

.abk-report-body strong {
  font-weight: 700; color: var(--text);
  font-family: var(--font);
}

.abk-report-body ul, .abk-report-body ol {
  padding-left: 28px; margin-bottom: 20px;
}
.abk-report-body li {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px; line-height: 1.8;
  color: var(--text2); margin-bottom: 8px;
}

/* ═══ CTA BLOCK ════════════════════════════════════════════════ */
.abk-cta-block {
  background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 100%);
  border-radius: var(--radius);
  padding: 56px 60px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.abk-cta-icon { font-size: 40px; margin-bottom: 20px; }
.abk-cta-title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  color: #fff; margin-bottom: 14px; line-height: 1.2;
}
.abk-cta-desc { font-size: 17px; color: #9ca3af; margin-bottom: 10px; line-height: 1.7; }
.abk-cta-note {
  font-family: var(--mono); font-size: 11px; color: #6b7280;
  letter-spacing: 1px; margin-bottom: 28px; line-height: 1.6;
}
.abk-cta-block .abk-share-row { justify-content: center; margin-bottom: 0; }

/* CTA lead form section */
.abk-cta-form-sep {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: left;
}
.abk-cta-form-sep .abk-or-line { color: #6b7280; }
.abk-cta-form-sep .abk-or-line::before,
.abk-cta-form-sep .abk-or-line::after { background: rgba(255,255,255,.1); }
.abk-cta-form-sep .abk-label { color: #d1d5db; }
.abk-cta-form-sep .abk-input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.abk-cta-form-sep .abk-input::placeholder { color: #6b7280; }
.abk-cta-form-sep .abk-input:focus { border-color: var(--red); background: rgba(255,255,255,.12); }

.abk-success {
  font-size: 17px; color: #4ade80; font-weight: 600;
  padding: 20px; text-align: center;
}

/* ═══ ERROR ════════════════════════════════════════════════════ */
.abk-error-view {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.abk-error-icon { font-size: 52px; margin-bottom: 24px; opacity: .6; }
.abk-error-msg  { font-size: 18px; color: var(--text2); margin-bottom: 32px; line-height: 1.6; }

/* ═══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 700px) {
  .abk-wrap { padding: 0 20px; }
  .abk-form-card { padding: 32px 24px 28px; }
  .abk-unlock-card { padding: 36px 24px 32px; }
  .abk-score-card { flex-direction: column; gap: 28px; padding: 36px 24px; text-align: center; }
  .abk-score-tags { align-items: center; }
  .abk-section-card { padding: 28px 24px; }
  .abk-report-body { padding: 32px 24px; }
  .abk-cta-block { padding: 36px 24px; }
  .abk-row2 { grid-template-columns: 1fr; }
  .abk-bg-char { display: none; }
  .abk-hero-view { padding: 60px 0 40px; }
  .abk-results-view { padding: 48px 0 60px; }
  .abk-share-row { flex-direction: column; }
  .abk-btn-fb, .abk-btn-li { min-width: unset; }
}

/* ═══ CITATION LINKS ════════════════════════════════════════════ */
.abk-report-body .abk-cite-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--blue);
  font-size: .92em;
  font-family: var(--font);
  transition: color .15s, border-color .15s;
}
.abk-report-body .abk-cite-link:hover {
  color: #0a4a99;
  border-bottom-style: solid;
}

/* ═══ LOGO BAR ══════════════════════════════════════════════════ */
.abk-logo-bar {
  position: sticky;
  top: 0;
  z-index: 9990;
  padding: 14px 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
  display: flex;
  justify-content: center;
  align-items: center;
}
.abk-logo-link { display: inline-block; line-height: 0; }
.abk-logo-img {
  width: auto; display: block;
  object-fit: contain;
}

/* ═══ FOOTER ════════════════════════════════════════════════════ */
.abk-footer {
  position: relative; z-index: 10;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}
.abk-footer p {
  font-family: var(--font) !important;
  font-size: 14px !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.abk-footer a {
  color: var(--red);
  text-decoration: none;
  transition: opacity .15s;
}
.abk-footer a:hover { opacity: .75; }

@media (max-width: 700px) {
  .abk-logo-bar { padding: 16px 20px; }
  .abk-footer { padding: 20px 0; }
}
