/* Public keyword tool (/keyword-tool). Marketing tokens from marketing.css: --ink, --text, --muted, --line, --hair,
   --band, --indigo, --indigo-soft, --green, --green-soft. */
.kt-page { padding-bottom: 72px; }
.kt-hero { text-align: center; padding: 56px 16px 20px; }
.kt-title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 0 auto 12px; max-width: 900px; }
.kt-sub { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 auto 28px; line-height: 1.5; }

/* One-row search bar: mode | keyword | country | language | search */
.kt-bar { display: flex; align-items: stretch; max-width: 1040px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(10, 12, 21, .18); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.kt-bar:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px var(--indigo-soft), 0 10px 30px -12px rgba(10, 12, 21, .18); }
.kt-cell { display: flex; align-items: center; border-right: 1px solid var(--hair); min-width: 0; }
.kt-cell select, .kt-cell input { border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); height: 58px; padding: 0 18px; outline: none; width: 100%; min-width: 0; }
.kt-cell select { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6175' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.kt-mode { flex: 0 0 160px; }
.kt-input { flex: 1 1 auto; }
.kt-input input { font-size: 17px; }
.kt-market { flex: 0 0 190px; }
.kt-lang { flex: 0 0 130px; border-right: 0; }
.kt-go { flex: 0 0 84px; display: grid; place-items: center; border: 0; background: var(--ink); color: #fff; cursor: pointer; transition: background .15s; }
.kt-go:hover { background: var(--indigo); }
.kt-go svg { width: 22px; height: 22px; }
.kt-try { margin: 18px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.kt-try button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.kt-try button:hover { border-color: var(--indigo); color: var(--indigo); }
.kt-error { color: var(--down); margin-top: 14px; }

/* Results */
.kt-results { padding: 8px 16px 0; }
.kt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.kt-head h2 { font-size: 22px; margin: 0; color: var(--ink); }
.kt-head small { color: var(--muted); }
.kt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.kt-tabs::-webkit-scrollbar { display: none; }
.kt-tab { border: 0; background: none; font: inherit; font-size: 15px; padding: 12px 16px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.kt-tab[aria-selected="true"] { color: var(--indigo); border-color: var(--indigo); font-weight: 600; }
.kt-tab em { font-style: normal; font-size: 12px; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--hair); color: var(--muted); }

.kt-stats { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--band); padding: 22px 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kt-stat span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.kt-stat b { font-size: 28px; color: var(--ink); letter-spacing: -0.01em; }
.kt-blur { filter: blur(7px); user-select: none; pointer-events: none; color: var(--ink); }
.kt-unlock { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 8px 24px -14px rgba(10, 12, 21, .25); }
.kt-unlock p { margin: 0; color: var(--text); font-weight: 600; }
.kt-unlock p small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.kt-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; white-space: nowrap; }
.kt-cta:hover { filter: brightness(.94); }

.kt-table-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; background: #fff; }
.kt-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.kt-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: var(--band); border-bottom: 1px solid var(--line); }
.kt-table td { padding: 11px 16px; border-bottom: 1px solid var(--hair); color: var(--text); }
.kt-table tr:last-child td { border-bottom: 0; }
.kt-table tbody tr:hover td { background: #fafafe; }
.kt-table .num { text-align: right; }
.kt-kw b { color: var(--ink); }
.kt-kw a { color: inherit; text-decoration: none; }
.kt-kw a:hover { color: var(--indigo); }
.kt-more { display: flex; justify-content: center; gap: 12px; padding: 18px; }
.kt-more button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 18px; font: inherit; cursor: pointer; }
.kt-empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.kt-loading { text-align: center; color: var(--muted); padding: 36px 16px; }
.kt-loading i { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--indigo); border-radius: 50%; animation: kt-spin .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes kt-spin { to { transform: rotate(360deg); } }

.kt-how { padding: 56px 16px 8px; }
.kt-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kt-how article { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.kt-how b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font-size: 14px; }
.kt-how h2 { font-size: 18px; margin: 12px 0 6px; color: var(--ink); }
.kt-how p { margin: 0; color: var(--muted); line-height: 1.5; }
.kt-faq { padding: 40px 16px 0; max-width: 820px; }
.kt-faq h2 { font-size: 24px; color: var(--ink); }
.kt-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.kt-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.kt-faq p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

@media (max-width: 860px) {
  .kt-hero { padding-top: 32px; }
  .kt-bar { flex-wrap: wrap; border-radius: 18px; }
  .kt-mode, .kt-market, .kt-lang { flex: 1 1 33%; border-top: 1px solid var(--hair); order: 2; }
  .kt-input { flex: 1 1 calc(100% - 64px); order: 1; }
  .kt-go { flex: 0 0 64px; order: 1; }
  .kt-cell select, .kt-cell input { height: 52px; padding: 0 12px; font-size: 15px; }
  .kt-cell select { padding-right: 28px; }
  .kt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
  .kt-how-grid { grid-template-columns: 1fr; }
}

/* Free preview rows: real numbers for the top keywords */
.kt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; }
.kt-dot.is-easy { background: #16a34a; } .kt-dot.is-medium { background: #f59e0b; } .kt-dot.is-hard { background: #f97316; } .kt-dot.is-very-hard { background: #dc2626; }
.kt-stat b small.kt-dot { width: 10px; height: 10px; vertical-align: 4px; }
.kt-intent { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--hair); color: var(--text); }
.kt-intent.is-informational { background: #e0f2fe; color: #075985; } .kt-intent.is-commercial { background: #fef3c7; color: #92400e; }
.kt-intent.is-transactional { background: #dcfce7; color: #166534; } .kt-intent.is-navigational { background: #ede9fe; color: #5b21b6; } .kt-intent.is-local { background: #fee2e2; color: #991b1b; }
.kt-table tr.is-open td { background: #fcfffd; }
.kt-table tr.is-open + tr:not(.is-open) td { border-top: 2px solid var(--line); }
