/* ThorRank mock-up V2 (2026-11-12, owner: "a little playful, not super playful; more professional; don't gamify";
   + light/dark theme with a toggle switch). Calm UI, thin borders, yellow only as an accent. Motion stays (feed, counters,
   ring, bars) and always runs, also with reduced motion on (owner's Mac). V1 lives at /thorrankV1/. */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root, [data-theme="dark"] {
  --bg: #0a0c14; --panel: #0f1220; --card: #131726; --hover: #181d30; --line: #20253b; --line2: #2c3350;
  --text: #eef0f8; --muted: #9ba2bf; --dim: #69708f;
  --volt: #ffd84d; --volt-hover: #ffe27a; --volt-text: #ffd84d; --volt-ink: #1b1600;
  --ok: #34d399; --blue: #8ab4ff; --top-bg: rgba(10, 12, 20, .85); --cta-end: #1a1a14; --shadow: none;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7fb; --panel: #ffffff; --card: #f1f3f8; --hover: #eef1f8; --line: #e4e7f0; --line2: #d3d8e6;
  --text: #0d1020; --muted: #4f5674; --dim: #858ba6;
  --volt: #ffd23a; --volt-hover: #ffdc5c; --volt-text: #f5c400; --volt-ink: #1b1600;
  --ok: #0f9f6e; --blue: #2f6bff; --top-bg: rgba(246, 247, 251, .85); --cta-end: #fff6d6; --shadow: 0 1px 2px rgba(13, 16, 32, .05);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.theming, body.theming * { transition: background-color .35s, border-color .35s, color .35s, fill .35s, stroke .35s !important; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn-primary { background: var(--volt); color: var(--volt-ink); }
.btn-primary:hover { background: var(--volt-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--top-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 18px/1 "Unbounded", sans-serif; letter-spacing: -.03em; }
.brand b { color: var(--volt-text); font-weight: 700; }
.brand img { transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.brand:hover img { transform: rotate(-10deg); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 13px; border-radius: 9px; color: var(--muted); font-weight: 550; font-size: 15px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--card); }
@media (max-width: 900px) { .nav { display: none; } .theme { margin-left: auto; } }

/* the light/dark switch: a track with sun and moon, the knob slides to the active side */
.theme { position: relative; display: inline-flex; align-items: center; width: 64px; height: 34px; padding: 0; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; flex: none; }
.theme svg { position: relative; z-index: 1; width: 16px; height: 16px; margin: 0 8px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; transition: stroke .3s; }
.theme .knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
[data-theme="dark"] .theme .knob { transform: translateX(30px); }
[data-theme="light"] .theme .sun, [data-theme="dark"] .theme .moon { stroke: var(--volt-text); }
.theme:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }

/* intro: one line about + submit, so the ranking starts high on the page (owner 2026-11-13: "remove all the clutter above it") */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: center; padding: 34px 0 6px; }
@media (max-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 24px; } }
h1 { font-weight: 750; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.08; letter-spacing: -.03em; }
.intro-txt p { margin-top: 8px; max-width: 40em; color: var(--muted); font-size: 16px; }
.submit { display: flex; gap: 10px; }
.field { flex: 1; display: flex; align-items: center; min-width: 0; height: 48px; padding: 0 14px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); transition: border-color .15s; }
.field:focus-within { border-color: var(--volt); }
.field span { color: var(--dim); }
.field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 500 16px "Inter Tight", sans-serif; }
.field input::placeholder { color: var(--dim); }
.submit-msg { min-height: 20px; margin-top: 6px; color: var(--ok); font-size: 14px; font-weight: 550; }
@media (max-width: 520px) { .submit { flex-direction: column; } .field { flex: none; } }
/* sections */
.sec { padding: 64px 0 8px; }
.sec-first { padding-top: 22px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
h2 { font-weight: 750; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.sec-sub { color: var(--muted); font-size: 16px; margin-top: 6px; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); }
.seg button { border: 0; background: none; height: 34px; padding: 0 13px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); }
.select { position: relative; }
.select select { appearance: none; height: 42px; padding: 0 38px 0 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--text); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* the category select matches the height of the sort buttons next to it (42px = 34 + 2×3 padding + 2×1 border) */
/* ranking table (2026-11-13: taller rows with the full about text, category line, share + upvote per row) */
.table { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.thead, .row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 76px 76px 132px 154px; gap: 18px; align-items: center; padding: 0 20px; }
.thead { height: 44px; color: var(--dim); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.rows { list-style: none; padding: 0; }
.row { min-height: 132px; padding-block: 18px; cursor: pointer; transition: background .15s; position: relative; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--card); }
.row.sel { background: var(--hover); }
.row.sel::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--volt); }
.pos { color: var(--dim); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.site { display: flex; align-items: center; gap: 18px; min-width: 0; }
.thumb { flex: none; width: 160px; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; border: 1px solid var(--line2); background: var(--card); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-txt { min-width: 0; }
.site-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.site-name img { width: 22px; height: 22px; border-radius: 6px; background: #fff; flex: none; box-shadow: 0 0 0 1px var(--line); }
.site-name b { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-name .sname { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.site-name .sname:hover { text-decoration-color: var(--volt); }
.site-name .host { color: var(--dim); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified { flex: none; width: 16px; height: 16px; fill: var(--blue); }
.site-txt p { margin-top: 5px; color: var(--muted); font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 9px; color: var(--dim); font-size: 13px; }
.tags .cat { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 650; }
.tags .cat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--volt); }
.tags .ok, .cell.ok { color: var(--ok); }
.tags span:nth-child(n+3) { display: none; }
.cell { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.score { display: flex; align-items: center; gap: 12px; }
.score b { width: 32px; font-weight: 750; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--volt); transition: width .9s cubic-bezier(.3, .9, .3, 1); }
/* share + upvote */
.acts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.share { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.share:hover { color: var(--text); border-color: var(--muted); }
.share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 56px; height: 64px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.vote svg { width: 20px; height: 20px; fill: var(--dim); transition: fill .15s, transform .2s; }
.vote b { font-weight: 750; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.vote:hover { border-color: var(--volt); }
.vote:hover svg { fill: var(--volt); transform: translateY(-2px); }
.vote.on { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.vote.on svg { fill: var(--volt-ink); }
.share:focus-visible, .vote:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
@media (max-width: 1000px) {
  .thead { display: none; }
  .row { grid-template-columns: 26px minmax(0, 1fr) 64px; grid-template-areas: "pos site acts" "pos score acts"; padding: 16px; row-gap: 10px; }
  .pos { grid-area: pos; align-self: start; padding-top: 4px; } .site { grid-area: site; } .score { grid-area: score; max-width: 260px; }
  .acts { grid-area: acts; flex-direction: column-reverse; align-self: start; } .share span { display: none; } .share { width: 56px; justify-content: center; padding: 0; }
  .cell { display: none; } .tags span:nth-child(n+3) { display: inline; }
  .thumb { width: 120px; }
  .site-name .host { display: none; }
}
@media (max-width: 560px) { .thumb { display: none; } }

/* launch record */
.record-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; }
@media (max-width: 900px) { .record-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px; }
.ring { position: relative; width: 168px; height: 168px; margin: 4px auto 22px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 11; }
.ring-fg { fill: none; stroke: var(--volt); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 439.8; stroke-dashoffset: 439.8; transition: stroke-dashoffset 1.1s cubic-bezier(.3, .9, .3, 1); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font-weight: 750; font-size: 50px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring-num span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.parts { list-style: none; padding: 0; display: grid; gap: 14px; }
.parts li { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 5px 12px; align-items: center; }
.parts .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.parts .lbl span { color: var(--dim); font-weight: 500; }
.parts .bar { grid-column: 1; }
.parts b { grid-column: 2; grid-row: 1 / 3; text-align: right; font-variant-numeric: tabular-nums; }
.score-panel { display: flex; flex-direction: column; }
.score-panel .parts { margin-bottom: 22px; }
.method-note { display: flex; gap: 10px; margin-top: auto; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.45; }
.method-note svg { flex: none; width: 18px; height: 18px; fill: var(--volt); margin-top: 1px; }
.rec-head { display: flex; align-items: center; gap: 13px; }
.rec-head img { width: 44px; height: 44px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.rec-head b { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.rec-head span { color: var(--muted); font-size: 14px; }
.rec-head a { margin-left: auto; }
.rec-shot { position: relative; margin: 20px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 16 / 9; }
.rec-shot img { width: 100%; height: 100%; object-fit: cover; }
.rec-shot span { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 7px; background: rgba(10, 12, 20, .82); color: #eef0f8; font-size: 12px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.facts div { padding: 13px 14px; background: var(--panel); }
.facts span { display: block; color: var(--dim); font-size: 12.5px; font-weight: 550; }
.facts b { font-weight: 650; font-size: 15px; }
.facts b.ok { color: var(--ok); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }

/* most improved */
.improved { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .improved { grid-template-columns: minmax(0, 1fr); } }
.icard { padding: 20px; }
.icard-top { display: flex; align-items: center; gap: 11px; }
.icard-top img { width: 34px; height: 34px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.icard-top b { display: block; font-weight: 650; }
.icard-top span { color: var(--dim); font-size: 13px; }
.icard-top .gain { margin-left: auto; color: var(--ok); font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.trend { margin-top: 14px; width: 100%; height: 64px; }
.trend .l { fill: none; stroke: var(--volt); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.trend .a { fill: var(--volt); opacity: .1; }
.icard.in .trend .l { animation: draw 1.4s cubic-bezier(.3, .8, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.icard-foot { display: flex; justify-content: space-between; margin-top: 8px; color: var(--dim); font-size: 13px; }
.icard-foot b { color: var(--text); font-weight: 650; }

/* founders */
.founders { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 32px; }
@media (max-width: 900px) { .founders { grid-template-columns: minmax(0, 1fr); padding: 22px; } }
.seg-sm { margin: 20px 0 12px; }
.code { padding: 14px 16px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); color: var(--blue); font: 13px/1.65 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; overflow-x: auto; margin-bottom: 12px; }
.badge-stage { position: relative; display: grid; place-items: center; min-height: 230px; border-radius: 14px; background: #f6f7fb; border: 1px solid var(--line2); }
[data-theme="light"] .badge-stage { background: #eef1f7; }
.badge-url { position: absolute; top: 12px; left: 16px; color: #8b90aa; font-size: 12.5px; font-weight: 600; }
.tbadge { display: inline-flex; align-items: center; gap: 11px; padding: 9px 14px 9px 10px; border-radius: 12px; background: #fff; border: 1px solid #dfe2ee; box-shadow: 0 1px 2px rgba(10, 12, 20, .06); color: #0a0c14; animation: pop .4s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.tbadge img { width: 30px; height: 30px; }
.tbadge small { display: block; color: #6b7090; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.tbadge strong { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.tbadge .sc { margin-left: 6px; padding-left: 12px; border-left: 1px solid #e3e6f0; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }

/* CTA */
.cta { padding: 64px 0 24px; }
.cta-in { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 36px; border-radius: 18px;
  border: 1px solid var(--line2); background: linear-gradient(115deg, var(--panel) 0%, var(--panel) 60%, var(--cta-end) 100%); }
.cta-in::after { content: ""; position: absolute; right: -10px; top: -40px; width: 150px; height: 260px; background: var(--volt); opacity: .12;
  clip-path: polygon(58% 0, 22% 52%, 46% 52%, 30% 100%, 82% 40%, 56% 40%, 74% 0); transform: rotate(12deg); }

.foot { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-note { color: var(--dim); font-size: 13px; }

/* link to /pricing under the submit form + in the CTA (2026-11-13) */
.intro-more { color: var(--dim); font-size: 13.5px; }
.intro-more a { color: var(--text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer (2026-11-13), same layout as blackoutmap.net / downsonar: brand + columns + base line. Shared partial: partials/footer.html */
.pfoot { margin-top: 64px; padding: 48px 0 36px; border-top: 1px solid var(--line); background: var(--panel); }
.pf-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.pf-brand { max-width: 320px; }
.pf-tag { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pf-col { display: flex; flex-direction: column; gap: 11px; }
.pf-stack { display: flex; flex-direction: column; gap: 30px; }
.pf-h { margin-bottom: 2px; color: var(--text); font-size: 13.5px; font-weight: 700; }
.pf-col a, .pf-col .soon { width: fit-content; color: var(--muted); font-size: 14.5px; transition: color .15s; }
.pf-col a:hover { color: var(--text); }
.pf-col .soon { color: var(--dim); opacity: .6; cursor: default; }
.pf-base { display: grid; gap: 6px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) { .pf-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } .pf-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 560px) { .pf-top { grid-template-columns: 1fr 1fr; gap: 26px; } }
