/* ================================================================
   ToolCheck — Design System (aligned with Toolflow)
   ================================================================ */

/* ---------- Page Layout ---------- */
.check-page { padding: 0 0 48px; }

/* ---------- Compact Header ---------- */
.logo-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-compact:hover { text-decoration: none; }
.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-text small {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* ---------- Hero V2 with Tech Background ---------- */
.check-hero-v2 {
  position: relative;
  margin: 0 -3vw 32px;
  padding: 48px 3vw 40px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8f5ff 50%, #fff 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.check-hero-v2 h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Hero Benefits */
.hero-benefits {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.benefit-icon {
  font-size: 20px;
}
.benefit-text {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.4;
}
.benefit-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero Why Section */
.hero-why {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.why-label {
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.why-item {
  color: var(--text-secondary);
}

/* ---------- Section Title ---------- */
.check-section-title {
  text-align: center;
  margin-bottom: 20px;
}
.check-section-title h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.check-section-title p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- Tool Grid V2: 4 columns ---------- */
.check-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.check-card-v2 {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.check-card-v2:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

/* Card visual area — gradient with icon */
.check-card-visual {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.check-card-visual.tone-blue   { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.check-card-visual.tone-teal   { background: linear-gradient(145deg, #14b8a6, #0f766e); }
.check-card-visual.tone-purple { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.check-card-visual.tone-orange { background: linear-gradient(145deg, #fb923c, #ea580c); }
.check-card-visual.tone-indigo { background: linear-gradient(145deg, #818cf8, #4f46e5); }
.check-card-visual.tone-pink   { background: linear-gradient(145deg, #f472b6, #db2777); }
.check-card-visual.tone-green  { background: linear-gradient(145deg, #4ade80, #16a34a); }
.check-card-visual.tone-slate  { background: linear-gradient(145deg, #64748b, #475569); }

.check-card-visual .check-card-icon {
  font-size: 36px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.check-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  z-index: 2;
}

/* Card body */
.check-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.check-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.check-card-body p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  line-height: 1.45;
  flex: 1;
}
.check-card-meta {
  margin-top: auto;
  font-size: 10px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.check-tag-sm {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.check-tag-sm.tag-blue { background: var(--accent-soft); color: var(--accent); }
.check-tag-sm.tag-green { background: var(--green-soft); color: var(--green); }
.check-tag-sm.tag-purple { background: var(--purple-soft); color: var(--purple); }
.check-tag-sm.tag-orange { background: #fff7ed; color: var(--orange); }

/* ---------- Note Box ---------- */
.check-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 14px;
  line-height: 1.55;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ---------- Navigation Pills (for sub pages) ---------- */
.check-nav {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 24px;
  justify-content: flex-start;
  padding-bottom: 4px;
}
.check-nav::-webkit-scrollbar { display: none; }
.check-nav a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.check-nav a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.check-nav a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Panel (Tool Detail Pages) ---------- */
.check-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.15s;
}
.check-panel:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.check-panel h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-panel h2 .panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.check-panel h2 .panel-icon.blue { background: var(--accent-soft); color: var(--accent); }
.check-panel h2 .panel-icon.green { background: var(--green-soft); color: var(--green); }
.check-panel h2 .panel-icon.orange { background: #fff7ed; color: var(--orange); }
.check-panel h2 .panel-icon.purple { background: var(--purple-soft); color: var(--purple); }

/* ---------- Status Badges ---------- */
.check-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.check-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.check-status.ok { background: var(--green-soft); color: var(--green); }
.check-status.ok::before { background: var(--green); }
.check-status.warn { background: #fef3c7; color: #b45309; }
.check-status.warn::before { background: #f59e0b; }
.check-status.bad { background: #fee2e2; color: #dc2626; }
.check-status.bad::before { background: #dc2626; }
.check-status.pending { background: var(--border-light); color: var(--text-tertiary); }
.check-status.pending::before { background: var(--text-tertiary); animation: pulse 1.5s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Definition List ---------- */
.check-dl {
  display: grid;
  grid-template-columns: minmax(130px, 36%) 1fr;
  gap: 8px 16px;
  font-size: 13px;
  margin: 0;
}
.check-dl dt { color: var(--text-tertiary); font-weight: 500; }
.check-dl dd { color: var(--text); margin: 0; word-break: break-all; }

/* ---------- Lists ---------- */
.check-list {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 20px;
  margin: 8px 0 0;
}
.check-list li { margin-bottom: 8px; line-height: 1.5; }

/* ---------- Actions ---------- */
.check-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- IP Display ---------- */
.check-ip-big {
  font-size: 32px;
  font-weight: 800;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.03em;
  margin: 6px 0 14px;
  word-break: break-all;
}

/* ---------- Tags ---------- */
.check-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.check-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.check-tag.danger { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.check-tag.safe { background: var(--green-soft); border-color: #bbf7d0; color: var(--green); }

/* ---------- Progress ---------- */
.check-progress { font-size: 13px; color: var(--text-secondary); }

/* ---------- Section Label ---------- */
.check-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 28px 0 12px;
}

/* ---------- Tool Detail Hero (sub pages) ---------- */
.check-tool-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.check-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.check-tool-icon.blue { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.check-tool-icon.teal { background: linear-gradient(145deg, #14b8a6, #0f766e); }
.check-tool-icon.purple { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.check-tool-icon.orange { background: linear-gradient(145deg, #fb923c, #ea580c); }
.check-tool-icon.indigo { background: linear-gradient(145deg, #818cf8, #4f46e5); }
.check-tool-icon.pink { background: linear-gradient(145deg, #f472b6, #db2777); }
.check-tool-icon.green { background: linear-gradient(145deg, #4ade80, #16a34a); }
.check-tool-icon.slate { background: linear-gradient(145deg, #64748b, #475569); }

.check-tool-title h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.check-tool-title p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Form Elements ---------- */
.check-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.check-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  background: var(--bg);
}
.check-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.check-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.check-btn:hover { background: var(--accent-hover); }
.check-btn:disabled {
  background: var(--border);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

/* ---------- Result Box ---------- */
.check-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.check-result h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .check-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .check-hero-v2 { padding: 32px 16px 28px; margin: 0 -16px 24px; }
  .check-hero-v2 h1 { font-size: 26px; }
  .hero-benefits { gap: 10px; }
  .hero-benefit { padding: 10px 12px; }
  .check-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .check-card-visual { height: 90px; }
  .check-card-visual .check-card-icon { font-size: 30px; }
  .hero-why { flex-direction: column; gap: 6px; }
}
/* ---------- Contact Header Button ---------- */
.btn-contact-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-contact-header:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}

/* ---------- Contact Modal ---------- */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.contact-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}
.contact-overlay.active .contact-modal {
  transform: translateY(0);
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--text-tertiary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s, color 0.12s;
}
.contact-close:hover { background: var(--bg); color: var(--text); }

.contact-header {
  text-align: center;
  margin-bottom: 20px;
}
.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.contact-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-header p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ---------- Contact Form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.contact-field input,
.contact-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-field textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 0;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 2px;
}
.contact-submit:hover { background: var(--accent-hover); }
.contact-submit:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.cf-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cf-spinner {
  animation: cf-spin 0.8s linear infinite;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* ---------- Success State ---------- */
.contact-success {
  text-align: center;
  padding: 20px 0 0;
}
.contact-success h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 4px;
}
.contact-success p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.contact-done-btn {
  width: auto !important;
  padding: 9px 32px !important;
  margin: 18px auto 0;
}

.contact-privacy {
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

/* ---------- Screen Reader Only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .check-grid-v2 { grid-template-columns: 1fr; }
  .check-dl { grid-template-columns: 1fr; }
  .check-dl dt { margin-top: 8px; }
  .check-panel { padding: 16px; }
  .check-ip-big { font-size: 24px; }
  .check-tool-hero { flex-direction: column; text-align: center; }
  .check-input-group { flex-direction: column; }
  .btn-contact-header { padding: 8px 14px; font-size: 13px; border-radius: 7px; }
  .btn-contact-header span { display: inline; }
  .contact-modal { padding: 24px 18px 20px; }
  .hero-benefits { flex-direction: column; gap: 8px; }
  .hero-benefit { justify-content: flex-start; }
}
