:root {
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #38bdf8;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0f2fe 0, #f5f7fb 55%);
  color: var(--text);
  line-height: 1.6;
}

/* Header */

.tdb-header {
  padding: 16px 16px 0;
}

.tdb-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tdb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tdb-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.tdb-logo-text {
  font-weight: 700;
  font-size: 20px;
}

.tdb-logo-dot {
  color: var(--accent);
}

.tdb-nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.tdb-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.tdb-nav a:hover {
  color: var(--primary);
}

/* Main layout */

.tdb-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.tdb-debug-banner {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* Hero */

.tdb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 16px;
  align-items: flex-start;
}

.tdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.tdb-badge span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--primary);
  font-size: 12px;
}

.tdb-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.tdb-hero-highlight {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.tdb-hero-subtitle {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 0 16px;
}

.tdb-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.tdb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.tdb-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.tdb-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1d9bf0);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.45);
}

.tdb-btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.tdb-hero-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.tdb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tdb-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 12px;
  color: var(--muted);
}

.tdb-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

/* Hero card */

.tdb-hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.tdb-hero-card-tag {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.tdb-hero-card-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.tdb-hero-card-body {
  margin: 0 0 8px;
  color: var(--muted);
}

.tdb-hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.tdb-hero-card-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.tdb-hero-card-list span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
  font-size: 11px;
}

.tdb-hero-card-footnote {
  font-size: 11px;
  color: var(--muted);
}

/* Cards & layout */

.tdb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 26px;
}

.tdb-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.tdb-card h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 17px;
}

.tdb-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.tdb-small-note {
  font-size: 11px;
  color: var(--muted);
}

/* Steps */

.tdb-steps {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
}

.tdb-steps li {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.tdb-steps strong {
  color: var(--text);
}

/* Form */

.tdb-form {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  font-size: 13px;
}

.tdb-form-full {
  grid-column: 1 / -1;
}

.tdb-form label {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.tdb-form input,
.tdb-form select,
.tdb-form textarea {
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-family: inherit;
  background: #f8fafc;
  transition: border 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.tdb-form input:focus,
.tdb-form select:focus,
.tdb-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
  background: #ffffff;
}

.tdb-form textarea {
  min-height: 70px;
  resize: vertical;
}

.tdb-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.tdb-form-footer small {
  font-size: 11px;
  color: var(--muted);
}

.tdb-form-footer a {
  color: var(--primary);
  text-decoration: none;
}

.tdb-form-footer a:hover {
  text-decoration: underline;
}

.tdb-status {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}

.tdb-status--success {
  color: #16a34a;
}

.tdb-status--error {
  color: #b91c1c;
}

/* FAQ */

.tdb-faq {
  margin-top: 26px;
}

.tdb-faq-item {
  margin-bottom: 10px;
}

.tdb-faq-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.tdb-faq-item p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}

/* Footer */

.tdb-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.tdb-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tdb-footer a {
  color: var(--muted);
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 840px) {
  .tdb-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tdb-nav {
    flex-wrap: wrap;
  }

  .tdb-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .tdb-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tdb-form {
    grid-template-columns: 1fr;
  }

  .tdb-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
