:root {
  --bg: #070605;
  --fg: #fafaf9;
  --muted: #a8a29e;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(24, 22, 18, 0.75);
  --accent: #f59e0b;
  --accent2: #fbbf24;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(245, 158, 11, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(251, 191, 36, 0.1), transparent 50%), var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

a {
  color: #fcd34d;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.cb-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.cb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.cb-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.cb-nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

.cb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--muted);
}

.cb-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
}
.cb-pill-dot.warn {
  background: #facc15;
  box-shadow: none;
}
.cb-pill-dot.bad {
  background: #f87171;
  box-shadow: none;
}

.cb-hero {
  text-align: center;
  margin-bottom: 64px;
}

.cb-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cb-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.cb-hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cb-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cb-btn:active {
  transform: scale(0.98);
}

.cb-btn-primary {
  background: linear-gradient(135deg, #ea580c, #d97706);
  color: #fff;
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.32);
}
.cb-btn-primary:hover {
  box-shadow: 0 16px 48px rgba(217, 119, 6, 0.42);
}

.cb-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border: 1px solid var(--line);
}
.cb-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cb-section {
  margin-bottom: 72px;
}

.cb-section h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.cb-section-desc {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 640px;
}

.cb-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cb-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cb-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.cb-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.cb-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cb-price-tag {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--fg);
}

.cb-price-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.cb-steps {
  display: grid;
  gap: 12px;
}

.cb-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.cb-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(245, 158, 11, 0.22);
  color: #fef3c7;
}

.cb-trust {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: linear-gradient(145deg, rgba(41, 32, 10, 0.55), rgba(18, 16, 12, 0.88));
}

.cb-trust h2 {
  margin-top: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 820px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

.cb-form label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.cb-form input,
.cb-form textarea,
.cb-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.cb-form select {
  cursor: pointer;
}

.cb-form input:focus,
.cb-form textarea:focus,
.cb-form select:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.cb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cb-toast {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  display: none;
}

.cb-toast.ok {
  display: block;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(22, 101, 52, 0.2);
}

.cb-toast.err {
  display: block;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.2);
}

footer {
  text-align: center;
  color: #71717a;
  font-size: 0.8rem;
  margin-top: 40px;
}

.cb-drop {
  border: 2px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  margin-bottom: 16px;
}
.cb-drop:hover,
.cb-drop.is-over {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.06);
}

.cb-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cb-muted {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 16px;
}

#cb-verify-out {
  white-space: pre-wrap;
  word-break: break-all;
}

.tb-output {
  margin-top: 24px;
}

.tb-output-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .tb-output-grid {
    grid-template-columns: 1fr;
  }
}

.tb-score-card {
  text-align: center;
  padding: 24px;
}

.tb-score-number {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fef3c7, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.tb-score-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
}

.tb-list {
  margin: 10px 0 0;
  padding-left: 1.15rem;
  color: #d6d3d1;
  font-size: 0.9rem;
}

.tb-pricing-quote {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  font-size: 0.92rem;
  color: var(--muted);
}

.tb-micro {
  font-size: 0.75rem;
  color: #78716c;
  margin-top: 14px;
  line-height: 1.5;
}

.tb-hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(251, 191, 36, 0.85);
}

.tb-pullquote {
  margin: 20px 0 0;
  padding: 18px 20px;
  border-left: 3px solid rgba(245, 158, 11, 0.55);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 12px 12px 0;
  font-size: 1.02rem;
  color: #e7e5e4;
  line-height: 1.45;
}

.tb-problem-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.tb-problem-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 10px;
  color: var(--muted);
}

.tb-problem-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tb-compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.tb-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}

.tb-compare th,
.tb-compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tb-compare th {
  font-weight: 600;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.08);
}

.tb-compare tr:last-child td {
  border-bottom: none;
}

.tb-compare td:first-child {
  color: var(--muted);
}

.tb-note-upsell {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(251, 191, 36, 0.28);
  font-size: 0.9rem;
  color: var(--muted);
}

.tb-closing {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(55, 40, 8, 0.45), rgba(12, 10, 8, 0.85));
  margin-top: 32px;
}

.tb-closing h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.tb-closing .cb-hero-cta {
  margin-top: 22px;
}

.tb-processing {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 4, 3, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tb-processing[hidden] {
  display: none !important;
}

.tb-processing-card {
  max-width: 400px;
  width: 100%;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: var(--glass);
  box-shadow: var(--shadow);
  text-align: center;
}

.tb-processing-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.tb-processing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 2.8em;
}

.tb-processing-bar {
  height: 3px;
  border-radius: 3px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tb-processing-bar span {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, #ea580c, #fbbf24);
  border-radius: 3px;
  animation: tb-shimmer 1.2s ease-in-out infinite;
}

@keyframes tb-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(380%);
  }
}

.tb-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  z-index: 150;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.tb-notice[hidden] {
  display: none !important;
}

.tb-notice.err {
  background: rgba(69, 10, 10, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.tb-out-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

#problem h2 {
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 920px;
}

#tb-submit-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}
