/* Creavo Tools — light mode only. White background, dark text. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0; color: #1f2937; background: #ffffff; line-height: 1.6;
}
a { color: #0f766e; text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: #134e4a; line-height: 1.25; }

/* ---------- top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff; border-bottom: 1px solid #e5e7eb;
}
.topbar-inner {
  max-width: 960px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #134e4a; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.topnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a {
  color: #374151; font-size: 14px; font-weight: 600;
  padding: 7px 10px; border-radius: 8px;
}
.topnav a:hover { background: #f3f4f6; text-decoration: none; }
.topnav a.cta {
  background: #0f766e; color: #fff;
}
.topnav a.cta:hover { background: #0d5c56; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, #ccfbf1 0%, #ffffff 55%, #d1fae5 100%);
  text-align: center; padding: 52px 20px 40px;
}
.hero h1 { font-size: 42px; margin: 0 0 8px; }
.hero .tag { font-size: 18px; color: #44506a; margin: 0 auto 26px; max-width: 640px; }
.hero-form { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.hero-form input {
  flex: 1; min-width: 0; font-size: 16px; padding: 14px 16px;
  border: 2px solid #99f6e4; border-radius: 12px; background: #fff; color: #1f2937;
  outline: none;
}
.hero-form input:focus { border-color: #0f766e; }
.btn {
  font-size: 16px; font-weight: 700; padding: 14px 26px; border: none;
  border-radius: 12px; background: #0f766e; color: #fff; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #0d5c56; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.secondary {
  background: #fff; color: #0f766e; border: 1.5px solid #0f766e;
  font-size: 15px; padding: 10px 18px;
}
.btn.secondary:hover { background: #f0fdfa; }
.hero-note { font-size: 14px; color: #6b7280; margin: 14px 0 0; }
/* Tool mounted in the hero (top of the page) when its card is tapped. */
#heroToolSlot { max-width: 720px; margin: 0 auto; text-align: left; }
#heroToolSlot:not(:empty) { margin-top: 26px; }

/* ---------- ad placeholder ---------- */
.ad-slot {
  max-width: 728px; margin: 28px auto 0; padding: 0 20px;
}
.ad-box {
  border: 1px dashed #d1d5db; background: #f9fafb; color: #9ca3af;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: 26px 10px; border-radius: 10px;
}

/* ---------- sections ---------- */
section { padding: 36px 0 8px; }
section h2 { font-size: 26px; margin: 0 0 4px; text-align: center; }
section .sub { text-align: center; color: #6b7280; margin: 0 0 22px; }
.tool { padding-top: 28px; }
/* The 9 link-based tools live only in the hero now: their sections below
   the tools grid are hidden (the nodes stay in the DOM so the hero mount
   logic can move them up into #heroToolSlot). Trending, Title Generator
   and History keep their visible sections below. */
#tool-audio, #tool-channel, #tool-playlist, #tool-seo, #tool-tags,
#tool-stats, #tool-best, #tool-health { display: none; }
.tool-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.tool-ic {
  font-size: 30px; width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: #f0fdfa;
}
.tool-head h2 { text-align: left; margin: 0; font-size: 22px; }
.tool-head p { margin: 2px 0 0; color: #6b7280; font-size: 15px; }
.sec-copyright .tool-ic { background: #f0fdfa; }
.sec-seo .tool-ic { background: #eff6ff; }
.sec-smart .tool-ic { background: #f5f3ff; }
.sec-history .tool-ic { background: #f3f4f6; }

/* ---------- tool grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tool-card {
  display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 18px; color: #1f2937; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.tool-card:hover { text-decoration: none; border-color: #0f766e; box-shadow: 0 4px 14px rgba(15,118,110,.12); }
.tool-card .ic { font-size: 30px; }
.tool-card h3 { margin: 8px 0 4px; font-size: 17px; }
.tool-card p { margin: 0; color: #6b7280; font-size: 14px; }
.tool-card.copyright { border-top: 4px solid #0f766e; }
.tool-card.seo { border-top: 4px solid #2563eb; }
.tool-card.smart { border-top: 4px solid #7c3aed; }
.tool-card.history { border-top: 4px solid #6b7280; }

/* ---------- cards, inputs, results ---------- */
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); margin-bottom: 16px;
}
.card label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.card input[type="text"], .card input[type="url"] {
  width: 100%; font-size: 16px; padding: 12px 14px; border: 1.5px solid #d1d5db;
  border-radius: 10px; background: #fff; color: #1f2937; outline: none; margin-bottom: 12px;
}
.card input:focus { border-color: #0f766e; }
.card .btn { width: 100%; }
.error {
  display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 14px;
}
.loading { display: none; margin-top: 14px; }
.loading .sk {
  display: block; height: 14px; border-radius: 7px; background: #e5e7eb;
  margin-bottom: 8px; animation: pulse 1.2s ease-in-out infinite;
}
.loading .sk-short { width: 60%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.note {
  background: #fffbeb; border: 1px solid #fcd34d; color: #57534e;
  border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 12px 0 0;
}
.note.plain { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }
.result-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); margin-bottom: 16px; }
.result-head { display: flex; gap: 14px; align-items: flex-start; }
.result-head img { width: 120px; border-radius: 10px; flex: none; }
.result-head .t { font-size: 18px; font-weight: 800; color: #111827; line-height: 1.35; }
.result-head .c { color: #6b7280; font-size: 14px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.kv .k { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.kv .k b { display: block; font-size: 15px; color: #111827; }
.kv .k b.blocked { color: #dc2626; }
.gauge { text-align: center; margin: 8px 0 4px; }
.gauge svg { width: 220px; max-width: 100%; height: auto; display: block; margin: 0 auto; }
.gauge .gauge-num { font-size: 40px; font-weight: 800; color: #111827; margin-top: -58px; }
.gauge .gauge-band { font-size: 18px; font-weight: 700; margin-top: 2px; }
.gauge.safe .gauge-band { color: #16a34a; }
.gauge.medium .gauge-band { color: #d97706; }
.gauge.high .gauge-band { color: #dc2626; }
.gauge .gauge-cap { font-size: 13px; color: #6b7280; }
#rGaugeArc, #aGaugeArc { transition: stroke-dashoffset 1s ease; }
.reasons { list-style: none; padding: 0; margin: 14px 0 0; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 7px; }
.dot.safe { background: #16a34a; }
.dot.medium { background: #d97706; }
.dot.high { background: #dc2626; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.result-actions .btn { width: auto; }
.disclaimer {
  background: #fffbeb; border: 1px solid #fcd34d; color: #57534e;
  border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 16px;
}

/* ---------- video rows ---------- */
.vrow {
  display: flex; gap: 12px; align-items: center; padding: 10px 0;
  border-top: 1px solid #f3f4f6; color: #1f2937;
}
.vrow:hover { text-decoration: none; background: #f9fafb; }
.vrow img { width: 96px; border-radius: 8px; flex: none; }
.vrow .rank {
  font-size: 20px; font-weight: 800; color: #9ca3af; width: 26px; flex: none; text-align: center;
}
.vrow-main { flex: 1; min-width: 0; }
.vrow-title { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; }
.vrow-sub { display: block; color: #6b7280; font-size: 13px; margin-top: 2px; }
.badge {
  flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #f3f4f6; color: #374151;
}
.badge.safe { background: #dcfce7; color: #166534; }
.badge.medium { background: #fef3c7; color: #92400e; }
.badge.high { background: #fee2e2; color: #991b1b; }
.badge.neutral { background: #f3f4f6; color: #374151; }
.summary { font-weight: 700; font-size: 16px; margin-bottom: 6px; color: #111827; }

/* ---------- channel header ---------- */
.ch-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ch-head img { width: 56px; height: 56px; border-radius: 50%; }
.ch-name { font-size: 18px; font-weight: 800; color: #111827; }
.ch-handle { color: #6b7280; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; text-align: center; }
.stat .n { font-size: 20px; font-weight: 800; color: #0f766e; }
.stat .l { font-size: 13px; color: #6b7280; }

/* ---------- SEO ---------- */
.seo-score { text-align: center; padding: 8px 0 4px; }
.seo-score .num { font-size: 52px; font-weight: 800; color: #0f766e; line-height: 1; }
.seo-score .band { font-size: 16px; font-weight: 700; color: #374151; margin-top: 4px; }
.check-row { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #f3f4f6; align-items: flex-start; }
.check-mark { font-weight: 800; width: 22px; flex: none; text-align: center; }
.check-row.pass .check-mark { color: #16a34a; }
.check-row.fail .check-mark { color: #dc2626; }
.check-text { font-size: 15px; }
.check-text .fix { display: block; font-size: 13px; color: #92400e; margin-top: 2px; }
.suggest-box {
  margin-top: 14px; background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 14px;
}
.suggest-box.looks-good { background: #f0fdf4; border-color: #bbf7d0; color: #166534; font-weight: 600; }
.suggest-h { font-size: 14px; font-weight: 800; color: #134e4a; margin-bottom: 8px; }
.suggest-title {
  font-size: 15px; font-weight: 700; line-height: 1.4; padding: 9px 0; cursor: pointer;
}
.suggest-title + .suggest-title { border-top: 1px solid #e5e7eb; }
.suggest-title:hover { color: #0f766e; }
.suggest-title.copied { color: #16a34a; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  background: #fff; border: 1px solid #d1d5db; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; color: #374151;
}
.tip-list { margin: 0; padding-left: 20px; font-size: 15px; }
.tip-list li { padding: 3px 0; }

/* ---------- regions / chips ---------- */
.region-grid, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.region-grid button, .chip-btn {
  background: #fff; border: 1.5px solid #d1d5db; color: #374151; font-size: 14px;
  font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.region-grid button:hover, .chip-btn:hover { border-color: #0f766e; }
.region-grid button.active, .chip-btn.active { background: #0f766e; border-color: #0f766e; color: #fff; }
.chip-label { font-size: 13px; font-weight: 700; color: #6b7280; margin: 10px 0 6px; }
.toast {
  display: none; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: 14px; font-weight: 600;
}

/* ---------- best time / health ---------- */
.best-banner { text-align: center; padding: 10px 0 4px; }
.best-when { font-size: 28px; font-weight: 800; color: #0f766e; }
.best-sub { color: #6b7280; font-size: 15px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #f3f4f6; font-size: 15px; }
.row .v { color: #6b7280; white-space: nowrap; }
.health-score { text-align: center; padding: 6px 0 10px; }
.health-score .num { font-size: 52px; font-weight: 800; color: #0f766e; line-height: 1; }
.health-score .band { font-size: 16px; font-weight: 700; color: #374151; }
.health-side { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-top: 12px; }
.compare-winner {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-weight: 700;
  border-radius: 10px; padding: 12px 14px; font-size: 15px;
}

/* ---------- history ---------- */
.hrow {
  display: flex; gap: 10px; align-items: center; padding: 12px 0;
  border-top: 1px solid #f3f4f6;
}
.hmain { flex: 1; min-width: 0; cursor: pointer; }
.h-tool { font-size: 12px; font-weight: 700; color: #0f766e; text-transform: uppercase; letter-spacing: .05em; }
.h-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-sub { color: #6b7280; font-size: 13px; }
.h-again {
  background: #fff; border: 1.5px solid #0f766e; color: #0f766e; font-size: 13px;
  font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.h-del {
  background: none; border: none; color: #9ca3af; font-size: 16px; cursor: pointer; padding: 6px;
}
.empty { color: #6b7280; text-align: center; padding: 18px 0; }

/* ---------- app band / roadmap / guides / footer ---------- */
.app-band {
  background: linear-gradient(160deg, #f0fdfa, #ffffff);
  border: 1px solid #ccfbf1; border-radius: 18px; padding: 26px 22px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.app-band img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.app-band .ab-text { flex: 1; min-width: 220px; }
.app-band h2 { text-align: left; margin: 0 0 4px; font-size: 22px; }
.app-band p { margin: 0 0 6px; color: #44506a; font-size: 15px; }
.app-band .ab-note { font-size: 13px; color: #6b7280; }
.play-btn {
  display: inline-flex; align-items: center; gap: 8px; background: #111827; color: #fff;
  font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; white-space: nowrap;
}
.play-btn:hover { text-decoration: none; background: #000; }
.roadmap-list { list-style: none; padding: 0; margin: 0; }
.roadmap-list li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; }
.roadmap-list li::before { content: "✓"; position: absolute; left: 4px; color: #16a34a; font-weight: 800; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.guide-card {
  display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 18px; color: #1f2937;
}
.guide-card:hover { text-decoration: none; border-color: #0f766e; }
.guide-card h3 { margin: 0 0 4px; font-size: 17px; }
.guide-card p { margin: 0; color: #6b7280; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; }
.step b.num {
  display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center;
  border-radius: 50%; background: #0f766e; color: #fff; font-size: 16px;
}
.step h3 { margin: 10px 0 4px; font-size: 16px; }
.step p { margin: 0; color: #6b7280; font-size: 14px; }
.footer {
  border-top: 1px solid #e5e7eb; padding: 28px 20px 36px; text-align: center;
  color: #6b7280; font-size: 14px; margin-top: 40px;
}
.footer a { margin: 0 6px; }
.footer .fine { font-size: 13px; margin-top: 8px; }
.article { max-width: 760px; margin: 0 auto; padding: 36px 20px; }
.article h1 { font-size: 32px; }
.article h2 { text-align: left; font-size: 22px; margin-top: 28px; }
.article p, .article li { font-size: 16px; color: #374151; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero-form { flex-direction: column; }
  .hero-form .btn { width: 100%; }
  .topnav a:not(.cta) { display: none; }
  .result-head { flex-direction: column; }
  .result-head img { width: 100%; max-width: 320px; }
  .vrow img { width: 72px; }
  .gauge .gauge-num { margin-top: -48px; font-size: 32px; }
}
