/* ===================================================
   CheckCraft — Global Styles
   =================================================== */
:root {
  --bg:        #0e0e0e;
  --bg-card:   #161616;
  --bg-hover:  #1e1e1e;
  --border:    #2a2a2a;
  --accent:    #f77b00;
  --accent-h:  #ff9a2e;
  --text:      #f0f0f0;
  --text-muted:#8a8a8a;
  --text-dim:  #555;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 32px rgba(0,0,0,.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-h); }

img { max-width: 100%; display: block; }

/* ===== Typography ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ===== Layout ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-h); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(247,123,0,.35); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius); }

/* ===== Badge ===== */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 100px; font-size: .78rem; font-weight: 600;
  background: rgba(247,123,0,.12); color: var(--accent);
  border: 1px solid rgba(247,123,0,.25); margin-bottom: 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,14,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.nav-logo img { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; cursor: pointer; background: none; border: none; color: var(--text); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border);
  padding: 9px 18px; font-size: .88rem; border-radius: var(--radius-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO ===== */
.hero {
  padding: 120px 0 96px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(247,123,0,.08) 0%, transparent 70%);
}
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { max-width: 820px; margin: 0 auto 24px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  max-width: 580px; margin: 0 auto 48px;
  color: var(--text-muted); font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-meta {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  color: var(--text-muted); font-size: .85rem;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ===================================================
   DEMO SLIDER
   =================================================== */
.demo-slider {
  margin-top: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  box-shadow: 0 24px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.03);
  background: #131313;
  text-align: left;
  user-select: none;
}

/* ── Top chrome bar ── */
.demo-topbar {
  display: flex; align-items: center;
  background: #0d0d0d;
  border-bottom: 1px solid #1f1f1f;
  height: 46px;
}
.demo-arrow {
  flex-shrink: 0; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: #444; transition: color .15s, background .15s;
}
.demo-arrow:hover { color: var(--accent); background: rgba(247,123,0,.06); }
.demo-arrow:active { color: var(--accent-h); }
.demo-url-bar {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-left: 1px solid #1f1f1f; border-right: 1px solid #1f1f1f;
  height: 100%; min-width: 0;
}
.demo-method {
  flex-shrink: 0;
  font-family: 'JetBrains Mono','Fira Code',ui-monospace,monospace;
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 5px;
}
.demo-method.post   { background: rgba(247,123,0,.14); color: #f77b00; }
.demo-method.get    { background: rgba(63,185,80,.14);  color: #3fb950; }
.demo-method.delete { background: rgba(229,57,53,.13);  color: #ff6b6b; }
.demo-method.put    { background: rgba(88,166,255,.13); color: #58a6ff; }
.demo-url-text {
  font-family: 'JetBrains Mono','Fira Code',ui-monospace,monospace;
  font-size: .82rem; color: #aaa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Title bar ── */
.demo-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 8px 18px;
  background: #0d0d0d; border-bottom: 1px solid #1f1f1f;
}
.demo-title { font-size: .8rem; font-weight: 500; color: #666; }
.demo-dots  { display: flex; gap: 7px; align-items: center; }
.demo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #333; transition: background .2s, transform .2s;
  cursor: pointer;
}
.demo-dot.active { background: var(--accent); transform: scale(1.25); }
.demo-dot:hover  { background: #555; }

/* ── Main two-column body ── */
.demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 360px;
}

/* ── Left pane: Request ── */
.demo-pane-left {
  display: flex; flex-direction: column;
  padding: 14px 18px;
  gap: 8px;
  overflow: hidden;
}

/* ── Right pane: Checks + Response ── */
.demo-pane-right {
  display: grid;
  /* label(32) | checks(grow) | summary(36) | resp-label(28) | resp-code(88) */
  grid-template-rows: 32px 1fr 36px 28px 88px;
  border-left: 1px solid #1f1f1f;
  overflow: hidden;
}
.demo-pane-right .demo-label { padding: 10px 16px 0; }
.demo-pane-right .demo-section-checks {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 16px 4px;
  overflow: hidden;           /* no scrollbar — all checks must fit */
}
.demo-pane-right .demo-section-response {
  border-top: 1px solid #1f1f1f;
  overflow: hidden;
  display: flex; flex-direction: column;
  grid-row: 4 / 6;            /* spans response-label + response-code rows */
}
.demo-section-response .demo-label { padding: 6px 16px 2px; }
.demo-section-response .demo-code {
  flex: 1; border-radius: 0; border: none;
  padding: 8px 16px;
  overflow-y: auto;
  background: #0d0d0d;
  font-size: .74rem; line-height: 1.65;
  scrollbar-width: none;
}
.demo-section-response .demo-code::-webkit-scrollbar { display: none; }

/* Section labels */
.demo-label {
  font-size: .63rem; font-weight: 700; letter-spacing: .11em;
  color: #3d3d3d; text-transform: uppercase;
  padding: 10px 18px 4px;
}

/* ── Request code block ── */
.demo-code {
  flex: 1;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono','Fira Code',ui-monospace,monospace;
  font-size: .76rem; line-height: 1.75;
  color: #bbb;
  white-space: pre;
  overflow: auto;
}
/* Syntax tokens */
.demo-code .kw  { color: #f47067; }   /* method keyword */
.demo-code .url { color: #dcbdfb; }   /* path */
.demo-code .str { color: #96d0ff; }   /* string value */
.demo-code .num { color: #6cb6ff; }   /* number */
.demo-code .hdr { color: #636e7b; }   /* header name */
.demo-code .cmt { color: #3d4450; font-style: italic; } /* comment */
.demo-code .key { color: #768390; }   /* JSON key */

/* ── Check items ── */
.demo-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; line-height: 1.35;
}
.demo-check-icon {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800;
}
.demo-check.ok   .demo-check-icon { background: rgba(63,185,80,.15); color: #3fb950; }
.demo-check.fail .demo-check-icon { background: rgba(248,81,73,.14); color: #f85149; }
.demo-check.ok   .demo-check-text { color: #8a8a8a; }
.demo-check.fail .demo-check-text { color: #f0a0a0; }
.demo-check-text b  { color: #ccc; font-weight: 600; }
.demo-check-text em { font-style: normal; color: #f85149; font-size: .74rem; }

/* ── Summary bar ── */
.demo-summary-row {
  padding: 4px 16px;
  display: flex; align-items: center;
}
.demo-summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: .73rem; font-weight: 600;
}
.demo-summary.all-ok  {
  background: rgba(63,185,80,.1); color: #3fb950;
  border: 1px solid rgba(63,185,80,.2);
}
.demo-summary.has-fail {
  background: rgba(248,81,73,.08); color: #f85149;
  border: 1px solid rgba(248,81,73,.2);
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .demo-body { grid-template-columns: 1fr; height: auto; }
  .demo-pane-left  { height: 240px; }
  .demo-pane-right { border-left: none; border-top: 1px solid #1f1f1f; height: 300px; }
  .demo-url-text   { font-size: .72rem; }
}

/* ===== STATS ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 80px;
}
.stat-cell {
  background: var(--bg-card); padding: 32px 24px; text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.feature-card {
  background: var(--bg-card); padding: 36px 32px;
  transition: background .2s;
}
.feature-card:hover { background: var(--bg-hover); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(247,123,0,.12); border: 1px solid rgba(247,123,0,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.3rem; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .93rem; }

/* ===== HOW IT WORKS ===== */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px;
  padding: 32px 0;
}
.step:not(:last-child) { border-bottom: 1px solid var(--border); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(247,123,0,.12); border: 1px solid rgba(247,123,0,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 8px; }
.step-content p { color: var(--text-muted); font-size: .93rem; }

/* ===== PRICING ===== */
.pricing-toggle {
  display: flex; align-items: center; gap: 14px;
  justify-content: center; margin-bottom: 48px;
}
.pricing-toggle span { font-size: .9rem; color: var(--text-muted); }
.toggle-switch {
  width: 48px; height: 26px; border-radius: 13px;
  background: var(--border); cursor: pointer; position: relative;
  transition: background .2s;
}
.toggle-switch.active { background: var(--accent); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.toggle-switch.active .toggle-knob { transform: translateX(22px); }
.save-badge {
  background: rgba(247,123,0,.15); color: var(--accent);
  padding: 2px 8px; border-radius: 100px; font-size: .75rem; font-weight: 600;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
.pricing-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.pricing-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(247,123,0,.07) 0%, var(--bg-card) 50%);
}
.popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 16px; border-radius: 100px; font-size: .78rem; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.pricing-price { margin-bottom: 8px; }
.pricing-amount {
  font-size: 2.5rem; font-weight: 800; color: var(--text);
}
.pricing-currency { font-size: 1.1rem; font-weight: 600; vertical-align: top; margin-top: 10px; display: inline-block; }
.pricing-period { color: var(--text-muted); font-size: .88rem; margin-top: 2px; }
.pricing-annual { color: var(--text-dim); font-size: .8rem; margin-top: 4px; }
.pricing-desc { color: var(--text-muted); font-size: .88rem; margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.pricing-features { flex: 1; list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-muted); }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.muted::before { content: '—'; color: var(--text-dim); }
.pricing-features li.muted { color: var(--text-dim); }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== DOWNLOAD ===== */
.download-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.download-info { max-width: 500px; }
.download-info h2 { margin-bottom: 16px; }
.download-info p { color: var(--text-muted); margin-bottom: 28px; }
.download-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.dl-tag { font-size: .8rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.download-side { text-align: center; }
.app-icon-placeholder {
  width: 96px; height: 96px; border-radius: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 2.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section { text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(247,123,0,.07) 0%, transparent 70%); }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 36px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--text-muted);
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px;
}
.footer-brand p { font-size: .88rem; margin-top: 12px; max-width: 220px; line-height: 1.7; }
.footer-col h4 { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: var(--text-dim);
}

/* ===== OFFER PAGE ===== */
.legal-page { padding: 80px 0 120px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-size: 1.15rem; margin: 40px 0 16px; color: var(--text); }
.legal-content h3 { font-size: 1rem; margin: 28px 0 12px; color: var(--text-muted); font-weight: 600; }
.legal-content p { color: var(--text-muted); font-size: .93rem; line-height: 1.8; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 14px; }
.legal-content li { color: var(--text-muted); font-size: .93rem; line-height: 1.8; margin-bottom: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: .88rem; }
.legal-table th { background: var(--bg-hover); color: var(--text); padding: 10px 14px; text-align: left; border: 1px solid var(--border); font-weight: 600; }
.legal-table td { padding: 10px 14px; border: 1px solid var(--border); color: var(--text-muted); }
.legal-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* ===== NOTIFICATION BAR ===== */
.topbar {
  background: var(--accent); color: #fff;
  text-align: center; padding: 10px 24px;
  font-size: .85rem; font-weight: 500;
}
.topbar a { color: #fff; text-decoration: underline; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--bg); padding: 24px; gap: 20px; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .download-inner { flex-direction: column; text-align: center; }
  .step { grid-template-columns: 48px 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
