:root {
  --paper: #0B0D12;
  --surface: #12161F;
  --soft: #171C28;
  --tile: #1B2130;
  --edge: #3A4358;
  --ink: #EDF0F7;
  --muted: #9AA4B8;
  --line: #262D3E;
  --accent: #6C5CE7;
  --accent-dark: #5748D6;
  --link: #A99BFF;
  --hot: #FF2D55;
  --cyan: #38D4FF;
  --danger: #FF8A80;
  --live: #4ADE80;
  --live-bg: #13301F;
  --soon: #FBBF24;
  --soon-bg: #33290D;
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
img, canvas, svg { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.3rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.mark { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.site-head nav { display: flex; gap: 22px; font-weight: 500; }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--link); }

.site-foot { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { color: var(--muted); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }

/* Home hero */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-shot { justify-self: end; width: min(100%, 420px); }
.shot-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(70% 90% at 15% 10%, rgba(255, 45, 85, 0.55), transparent 60%), radial-gradient(70% 90% at 90% 100%, rgba(56, 212, 255, 0.45), transparent 60%), linear-gradient(135deg, #1A1633, #0E1020); box-shadow: 0 24px 60px rgba(108, 92, 231, 0.28); }
.shot-play { position: absolute; left: 50%; top: 38%; width: 0; height: 0; transform: translate(-35%, -50%); border-left: 36px solid rgba(255, 255, 255, 0.9); border-top: 22px solid transparent; border-bottom: 22px solid transparent; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; font: 700 clamp(1.4rem, 4vw, 2rem)/1 var(--display); letter-spacing: 0.02em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7); animation: pop 2.4s ease-in-out infinite; }
.shot-cap b { color: #FFE600; font-weight: 700; }
.shot-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.shot-bar i { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, var(--hot), var(--accent)); }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .shot-cap { animation: none; } }

/* Tool directory */
.directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 8px; }
.group h2 { font-size: 1.3rem; margin-bottom: 0.2em; }
.group > p { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }
.tools { list-style: none; margin: 0; padding: 0; }
.tools li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tools .name { font-weight: 600; color: var(--ink); text-decoration: none; }
a.name { color: var(--link); }
.tools .desc { grid-column: 1; font-size: 0.9rem; color: var(--muted); }
.chip { grid-row: 1; grid-column: 2; align-self: start; font-size: 0.75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; font-style: normal; }
.chip.live { background: var(--live-bg); color: var(--live); }
.chip.soon { background: var(--soon-bg); color: var(--soon); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 13px 20px; border-radius: 8px; border: 2px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--edge); }
.btn.ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Tool page */
.page-head { padding: 40px 0 24px; }
.page-head .lede { margin: 0; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.drop { border: 2px dashed var(--edge); border-radius: 12px; padding: 44px 20px; text-align: center; background: var(--soft); }
.drop.over { border-color: var(--accent); background: rgba(108, 92, 231, 0.16); }
.drop p { margin: 0 0 6px; }
.stage-wrap { display: flex; justify-content: center; }
#stage { touch-action: none; cursor: grab; border-radius: 6px; display: block; background: var(--tile); }
#stage:active { cursor: grabbing; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 0; padding: 0; border: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.field.wide { grid-column: 1 / -1; }
select, input[type='range'] { font: 400 1rem var(--body); width: 100%; }
select { padding: 10px 12px; border: 1px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); }
.note { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.status { min-height: 1.5em; margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
.status.err { color: var(--danger); }

/* Profile preview */
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 16px 12px 14px; max-width: 340px; margin: 0 auto; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2A3142, var(--edge)); }
.phone-top b { display: block; line-height: 1.2; }
.phone-top small { color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ptile { position: relative; padding: 0; border: 0; background: var(--tile); cursor: pointer; display: block; }
.ptile canvas { display: block; width: 100%; height: auto; }
.badge { position: absolute; left: 4px; top: 4px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(14, 26, 51, 0.82); color: #fff; font: 600 0.72rem/1.5 var(--body); text-align: center; }

/* Content */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.content { padding-top: 56px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Trending */
.geo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.geo-tabs button { font: 600 0.95rem var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--edge); background: var(--surface); color: var(--ink); cursor: pointer; }
.geo-tabs button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.trend-list { list-style: none; margin: 0; padding: 0; }
.trend-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.trend-list .t-title { font-weight: 600; font-size: 1.05rem; }
.trend-list .t-meta { grid-column: 1; font-size: 0.9rem; color: var(--muted); }
.trend-list .t-copy { grid-column: 2; grid-row: 1 / span 2; }
.btn.small { padding: 8px 12px; font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .hero-grid { margin-left: 0; }
  .directory { grid-template-columns: 1fr; }
  .tool { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .controls { grid-template-columns: 1fr; }
  .bar { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 0; }
  .site-head nav { gap: 6px 14px; font-size: 0.92rem; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid { animation: none; gap: 8px; }
  .hero-grid .t { animation: none; border-radius: 6px; }
}

/* ===== Added for the full toolkit ===== */
.crumbs { padding: 16px 0 0; font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--edge); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 0; }
.tool-grid.big { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-height: 150px; transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.tool-card[hidden] { display: none; }
.tool-card .ico { color: var(--accent); margin-bottom: 6px; }
.tc-name { font: 700 1.1rem/1.2 var(--display); letter-spacing: -0.01em; }
.tc-short { font-size: 0.92rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters button { font: 600 0.95rem var(--body); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--edge); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }

.content.wide { max-width: 980px; }
.home-group { margin: 28px 0 0; }
.home-group h3 { font-size: 1.4rem; }
.home-tool { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.home-tool .ico { color: var(--accent); margin-top: 2px; }
.home-tool h4 { margin: 0 0 6px; font: 700 1.15rem/1.2 var(--display); }
.home-tool p { margin: 0 0 8px; }
.home-tool ul { margin: 0 0 8px; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; }
.more-link { font-weight: 600; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; font-size: 0.95rem; }
.toc ul { margin: 6px 0 0; padding-left: 1.1em; columns: 2; column-gap: 28px; }
.toc li { margin: 2px 0; }
.steps { padding-left: 1.2em; }
.steps li { margin: 0.6em 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.feat h3 { font-size: 1rem; margin: 0 0 4px; }
.feat p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.prose h3 { margin-top: 1.4em; }
.more { margin-top: 44px; }
.pill-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.pill-list a:hover { border-color: var(--accent); }

.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
.foot-cols h3 { font: 700 0.95rem var(--display); margin: 0 0 8px; color: var(--ink); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin: 5px 0; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.site-foot .wrap { display: block; }

/* tool engines */
.filebar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 4px; font-size: 0.95rem; }
.filebar[hidden], .controls[hidden], .result[hidden], .progress[hidden] { display: none; }
.progress { margin: 16px 0 0; }
.pbar { height: 10px; background: var(--tile); border-radius: 999px; overflow: hidden; }
.pbar-fill { height: 100%; width: 2%; background: var(--accent); border-radius: 999px; transition: width .2s; }
.pbar-fill.indeterminate { animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.preview { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
img.preview { background: var(--tile); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; grid-column: 1 / -1; }
.rec-timer { font: 700 1.1rem var(--display); align-self: center; font-variant-numeric: tabular-nums; }
input[type='text'], input[type='number'], textarea { font: 400 1rem var(--body); padding: 10px 12px; border: 1px solid var(--edge); border-radius: 8px; width: 100%; color: var(--ink); background: var(--surface); }
input[type='color'] { width: 100%; height: 42px; border: 1px solid var(--edge); border-radius: 8px; padding: 2px; background: var(--surface); }

/* captions */
.cap-stage { position: relative; display: inline-block; max-width: 100%; }
.cap-stage video { max-height: 360px; }
.cap-overlay { position: absolute; left: 6%; right: 6%; bottom: 12%; text-align: center; color: #fff; font: 700 clamp(14px, 3.4vw, 22px)/1.25 var(--body); text-shadow: 0 0 4px #000, 0 0 2px #000; pointer-events: none; }
.cap-player { margin: 14px 0; text-align: center; }
.cap-editor h3, .burn h3 { margin-top: 24px; }
.cap-list { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cue { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.cue:last-child { border-bottom: 0; }
.cue input { border: 1px solid transparent; padding: 7px 8px; }
.cue input:focus { border-color: var(--edge); }
.cue-time { font: 600 0.85rem var(--body); color: var(--accent); background: none; border: 0; cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.burn { margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--line); }

/* photo tools */
.dp-stage, .bg-preview { display: block; max-width: 100%; border-radius: 10px; background: repeating-conic-gradient(#2A3142 0 25%, #1B2130 0 50%) 0 0 / 20px 20px; touch-action: none; cursor: grab; }
.bg-preview { cursor: default; touch-action: auto; max-height: 520px; width: auto; height: auto; }
.bg-preview:not(.checker) { background: none; }

/* text tools */
.tagbox { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 2; margin: 10px 0; }
.tagbox span { color: var(--accent); font-weight: 500; white-space: nowrap; margin-right: 4px; }
.tagbox.big { font-size: 1.05rem; min-height: 80px; }
.font-list { margin-top: 14px; }
.font-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.font-text { display: flex; flex-direction: column; min-width: 0; }
.font-name { font-size: 0.78rem; color: var(--muted); }
.font-out { font-size: 1.25rem; overflow-wrap: anywhere; }
.idea { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.idea p, .idea pre { margin: 0 0 8px; font: 400 1.05rem/1.5 var(--body); white-space: pre-wrap; }
.idea-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hint.warn { color: var(--danger); }

@media (max-width: 900px) {
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .toc ul { columns: 1; }
}
@media (max-width: 520px) {
  .foot-cols { grid-template-columns: 1fr; }
  .home-tool { grid-template-columns: 1fr; }
  .cue { grid-template-columns: 48px 1fr; }
  .cue .link { grid-column: 2; justify-self: end; }
}

/* ===== Team note, related searches, blog ===== */
.pill { display: inline-block; padding: 7px 14px; border: 1px dashed var(--edge); background: transparent; border-radius: 999px; font-size: 0.93rem; color: var(--muted); }
.team-note { margin: 36px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; }
.team-note h2 { margin: 0 0 8px; font-size: 1.15rem; }
.team-note p { margin: 0; color: var(--muted); }
.related-posts:empty { display: none; }
.related-posts { margin-top: 44px; }
.related-posts h2 { margin-bottom: 14px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 10px 0 0; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.post-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tile); }
.post-card .pc-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.post-card p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.post-meta { font-size: 0.85rem; color: var(--muted); }
.post-hero { display: block; width: 100%; height: auto; max-height: 460px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--tile); }
.post-fig { margin: 26px 0; }
.post-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--tile); }
.post-fig figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.92rem; color: var(--muted); margin: 6px 0 22px; }
.keytake { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 22px 0; }
.keytake strong { display: block; margin-bottom: 4px; }
.keytake ul { margin: 6px 0 0; padding-left: 1.1em; }
.cta-box { margin: 36px 0 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cta-box h2 { margin: 0 0 10px; font-size: 1.15rem; }
.pagination { display: flex; gap: 10px; align-items: center; margin: 28px 0 0; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; font-weight: 500; }
.pagination .cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.93rem; }
.admin-table form { display: inline; }
.admin-table button { font: 600 0.85rem var(--body); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--edge); background: var(--surface); cursor: pointer; }
.issue { color: var(--danger); font-size: 0.85rem; }

/* ===== Caption styles ===== */
.cap-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.cap-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.style-btn { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: 600 0.8rem var(--body); color: var(--ink); text-align: center; }
.style-btn canvas { display: block; width: 100%; height: auto; border-radius: 8px; }
.style-btn:hover { border-color: var(--edge); }
.style-btn[aria-pressed='true'] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(43, 80, 255, 0.18); }
.cap-styles h3 { margin-top: 24px; }

/* footer column titles are labels, not page headings */
.foot-h { font: 700 0.95rem var(--display); margin: 0 0 8px; color: var(--ink); }
/* headings inside tool panels sit at h2 level */
.tool-h { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; margin: 24px 0 8px; letter-spacing: -0.01em; }

/* ===== Speed or accuracy choice ===== */
.speed-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; grid-column: 1 / -1; }
.speed-choices .note { grid-column: 1 / -1; margin: 0; }
.speed-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.speed-card input { position: absolute; opacity: 0; pointer-events: none; }
.speed-card:hover { border-color: var(--edge); }
.speed-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(43, 80, 255, 0.18); }
.speed-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-top strong { font: 700 1.05rem var(--display); }
.sc-tag { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--live-bg); color: var(--live); white-space: nowrap; }
.sc-name { font-size: 0.82rem; color: var(--muted); }
.sc-wait { font: 600 0.95rem var(--body); color: var(--ink); }
.sc-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.suggest { background: #2A2412; border: 1px solid #5C4A1A; border-radius: 10px; padding: 10px 14px; }


/* ===== GrowMyTube additions ===== */
.thumb-stage { margin: 14px 0; }
.thumb-preview { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--tile); }
textarea { width: 100%; font: 400 0.95rem/1.5 var(--body); padding: 10px 12px; border: 1px solid var(--edge); border-radius: 8px; background: var(--soft); color: var(--ink); resize: vertical; }
input[type='text'], input[type='number'], textarea, select { background: var(--soft); color: var(--ink); }
.tagchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.tagchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--edge); border-radius: 999px; background: var(--soft); cursor: pointer; font-size: 0.93rem; }
.tagchip:has(input:checked) { border-color: var(--accent); background: rgba(108, 92, 231, 0.18); }
.counter { font-weight: 600; margin: 6px 0; }
.counter.over { color: var(--danger); }
.facts { border-collapse: collapse; width: 100%; margin: 12px 0; }
.facts th { text-align: left; width: 32%; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.facts td { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.verdict { font: 700 1.2rem/1.3 var(--display); padding: 14px 16px; border-radius: 12px; margin: 14px 0; }
.verdict.yes { background: var(--live-bg); color: var(--live); }
.verdict.no { background: var(--soon-bg); color: var(--soon); }
.verdicts { list-style: none; margin: 0 0 10px; padding: 0; }
.verdicts li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; }
.verdicts li::before { position: absolute; left: 4px; top: 10px; font-weight: 700; }
.v-ok::before { content: '\2713'; color: var(--live); }
.v-warn::before { content: '!'; color: var(--soon); }
.v-info::before { content: 'i'; color: var(--cyan); }
.issues { margin: 10px 0; padding-left: 20px; color: var(--soon); }
.content a, .prose a { color: var(--link); }
.prose ol { padding-left: 22px; }
.prose ol li { margin-bottom: 8px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-shot { justify-self: stretch; } }

/* ===== Theme: candy arcade (built from your uploaded CSS) ===== */
@property --border-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root {
  --void: #0b0714; --panel: #170f28; --panel-elevated: #201533; --panel-hover: #2b1c44;
  --signal-red: #ff2e6d; --signal-red-dim: rgba(255, 46, 109, 0.2);
  --signal-cyan: #2ee6c6; --signal-cyan-dim: rgba(46, 230, 198, 0.18);
  --signal-violet: #ffb020; --signal-yellow: #ffe14d; --signal-purple: #b06bff; --signal: #7cff6b;
  --text: #fbf8ff; --text-dim: #9c8fc2; --line-bright: #40305f;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --glow-red: 0 0 44px rgba(255, 46, 109, 0.4); --glow-cyan: 0 0 44px rgba(46, 230, 198, 0.35);
  --block-box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.75);
  --sticker-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55); --sticker-shadow-hover: 8px 8px 0 rgba(0, 0, 0, 0.55);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* this site's own variables, pointed at your palette */
  --paper: var(--void); --surface: var(--panel); --soft: var(--panel); --tile: var(--panel-elevated); --edge: var(--line-bright);
  --ink: var(--text); --muted: var(--text-dim); --line: #2a1f42; --accent: var(--signal-red); --accent-dark: #d81f58; --link: var(--signal-cyan); --hot: var(--signal-red);
}
html { background: var(--void); }
body { background: var(--void); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; }
* { scrollbar-width: thin; scrollbar-color: var(--line-bright) transparent; }
::selection { background: var(--signal-red); color: #fff; }
:focus-visible { outline: 2px dashed var(--signal-cyan); outline-offset: 3px; }
a { color: var(--signal-cyan); }
.lede, .prose, .prose p, .prose li, details p { color: #e6defa; }

/* ambient blobs and sparkles */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--signal-yellow);
  box-shadow: 120px 220px 0 -2px var(--signal-cyan), 260px 80px 0 -3px var(--signal-red), 420px 340px 0 -1px var(--signal-violet), 560px 140px 0 -3px var(--signal-yellow), 180px 480px 0 -2px var(--signal-cyan), 700px 260px 0 -2px var(--signal-red);
  opacity: 0.5; animation: sparkle-twinkle 3.4s ease-in-out infinite; }
.aurora::after { top: 260px; left: -80px; animation-delay: 1.1s; }
@keyframes sparkle-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.9); } 50% { opacity: 0.7; transform: scale(1.15); } }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; will-change: transform; }
.aurora__blob--red { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, var(--signal-red), transparent 70%); animation: drift-a 14s ease-in-out infinite; }
.aurora__blob--cyan { width: 620px; height: 620px; top: 40px; right: -220px; background: radial-gradient(circle, var(--signal-cyan), transparent 70%); animation: drift-b 17s ease-in-out infinite; }
.aurora__blob--violet { width: 460px; height: 460px; bottom: -220px; left: 30%; background: radial-gradient(circle, var(--signal-violet), transparent 70%); animation: drift-a 19s ease-in-out infinite reverse; }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); } 33% { transform: translate(70px, 50px) scale(1.15) rotate(8deg); } 66% { transform: translate(-40px, 30px) scale(0.92) rotate(-6deg); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(-70px, 80px) scale(0.9) rotate(-10deg); } }

/* animated brand title and waveform on the home page */
.brand-title { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(100deg, var(--signal-red), var(--signal-violet) 30%, var(--signal-yellow) 50%, var(--signal-cyan) 75%, var(--signal-red) 100%); background-size: 340% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: title-flow 4.5s linear infinite; filter: drop-shadow(0 0 30px rgba(255, 46, 109, 0.25)); width: fit-content; }
.app__tally { display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: var(--signal-red); box-shadow: 0 0 8px var(--signal-red), var(--glow-red); animation: tally-pulse 1.1s ease-in-out infinite; flex-shrink: 0; }
@keyframes title-flow { 0% { background-position: 0% 0%; } 100% { background-position: 340% 0%; } }
@keyframes tally-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.waveform { display: flex; align-items: flex-end; justify-content: flex-start; gap: 5px; height: 30px; margin: 4px 0 18px; }
.waveform span { display: inline-block; width: 6px; border-radius: 3px; animation: wave 0.9s var(--bounce) infinite; }
.waveform span:nth-child(1) { height: 40%; background: var(--signal-red); }
.waveform span:nth-child(2) { height: 95%; background: var(--signal-violet); animation-delay: 0.09s; }
.waveform span:nth-child(3) { height: 60%; background: var(--signal-yellow); animation-delay: 0.18s; }
.waveform span:nth-child(4) { height: 100%; background: var(--signal-cyan); animation-delay: 0.27s; }
.waveform span:nth-child(5) { height: 50%; background: var(--signal-purple); animation-delay: 0.36s; }
.waveform span:nth-child(6) { height: 85%; background: var(--signal-red); animation-delay: 0.45s; }
.waveform span:nth-child(7) { height: 35%; background: var(--signal-cyan); animation-delay: 0.54s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.35); opacity: 0.75; } 50% { transform: scaleY(1); opacity: 1; } }

/* header and footer */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(11, 7, 20, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px dashed var(--line-bright); }
.site-head .bar { padding-left: 20px; padding-right: 20px; }
.brand > span:last-child { background: linear-gradient(100deg, var(--signal-red), var(--signal-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--signal-red), var(--signal-cyan)); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }
.site-head nav a { position: relative; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; padding-bottom: 3px; transition: color 0.2s, transform 0.2s var(--bounce); }
.site-head nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--signal-red), var(--signal-cyan)); transition: right 0.25s ease; }
.site-head nav a:hover, .site-head nav a[aria-current='page'] { color: var(--signal-cyan); }
.site-head nav a:hover { transform: translateY(-2px); }
.site-head nav a:hover::after, .site-head nav a[aria-current='page']::after { right: 0; }
@media (max-width: 640px) { .site-head .bar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; } .site-head nav { display: flex; flex-wrap: wrap; gap: 8px 16px; } }
.site-foot { background: transparent; border-top: 1px dashed var(--line-bright); }
.foot-h { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-cyan); }

/* labels and chips */
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--void); background: linear-gradient(100deg, var(--signal-yellow), var(--signal-cyan)); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; font-weight: 700; transform: rotate(-1.5deg); border: 0; }
.fchips li { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 2px dashed var(--line-bright); color: var(--text); }
.filters button, .pill-list a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--panel); border: 2px solid var(--line-bright); border-radius: 999px; color: var(--text-dim); padding: 8px 14px; transition: border-color 0.2s, color 0.2s, transform 0.2s var(--bounce); }
.filters button:hover, .pill-list a:hover { border-color: var(--signal-cyan); color: var(--signal-cyan); transform: translateY(-2px); }
.filters button[aria-pressed='true'] { background: linear-gradient(100deg, var(--signal-yellow), var(--signal-cyan)); color: var(--void); border-color: transparent; font-weight: 700; }

/* buttons (the sticker style from your download button) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
  background: linear-gradient(120deg, var(--signal-red), var(--signal-violet) 50%, var(--signal-cyan)); background-size: 220% 100%; background-position: 0% 0%; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.02em;
  cursor: pointer; overflow: hidden; white-space: nowrap; text-decoration: none; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); box-shadow: var(--sticker-shadow), 0 0 22px rgba(255, 46, 109, 0.35);
  transition: transform 0.15s var(--bounce), box-shadow 0.15s ease, background-position 0.4s; }
.btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.6s ease; }
.btn:hover { transform: translate(-2px, -5px) rotate(-1deg) scale(1.03); background-position: 100% 0%; box-shadow: var(--sticker-shadow-hover), var(--glow-cyan); color: #fff; border-color: rgba(255, 255, 255, 0.12); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translate(2px, 2px) scale(0.97); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: var(--panel-elevated); border: 2px solid var(--line-bright); box-shadow: var(--sticker-shadow); text-shadow: none; color: var(--text); }
.btn.ghost:hover { border-color: var(--signal-cyan); background: var(--panel-hover); color: var(--text); }

/* form fields (from your URL input) */
select, input[type='text'], input[type='number'], input[type='url'], input[type='search'], textarea { padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background-color: var(--panel); color: var(--text); font-family: var(--body); font-size: 0.95em; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s; }
select:hover, input:hover, textarea:hover { border-color: var(--line-bright); }
select:focus, input:focus, textarea:focus { border-color: var(--signal-cyan); background-color: var(--panel-hover); box-shadow: 0 0 0 4px var(--signal-cyan-dim); outline: none; }
select option { background: var(--panel-elevated); color: var(--text); }

/* cards and panels */
.panel, .tool-card, .home-tool, .feat, details, .check, .result, .group, .ptile, .phone { background-color: var(--panel); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--block-box-shadow); }
.tool-card, .home-tool, .feat { transition: border-color 0.25s, transform 0.3s var(--bounce), box-shadow 0.3s; }
.tool-card:nth-child(even):hover, .feat:nth-child(even):hover { transform: translateY(-6px) rotate(-1.5deg) scale(1.02); }
.tool-card:nth-child(odd):hover, .feat:nth-child(odd):hover { transform: translateY(-6px) rotate(1.5deg) scale(1.02); }
.tool-card:hover, .home-tool:hover, .feat:hover { border-color: var(--signal-cyan); box-shadow: var(--sticker-shadow), var(--glow-cyan); }
.tool-card svg, .home-tool svg { color: var(--signal-cyan); transition: color 0.25s, transform 0.3s var(--bounce); }
.tool-card:hover svg { color: var(--signal-red); transform: scale(1.2) rotate(-10deg); }
.panel, .shot-frame { border: 3px solid transparent; background: linear-gradient(var(--panel-elevated), var(--panel-elevated)) padding-box, conic-gradient(from var(--border-angle), var(--signal-red), var(--signal-violet), var(--signal-yellow), var(--signal-cyan), var(--signal-red)) border-box; animation: spin-border 3.2s linear infinite; box-shadow: var(--block-box-shadow), 0 0 44px -10px rgba(46, 230, 198, 0.18); }
.shot-frame { border-radius: 22px; }
@keyframes spin-border { to { --border-angle: 360deg; } }
.drop { border: 2px dashed var(--line-bright); background: var(--panel); border-radius: 18px; }
.drop.over { border-color: var(--signal-cyan); background: var(--panel-hover); box-shadow: 0 0 0 4px var(--signal-cyan-dim); }
.pbar-fill { background: linear-gradient(90deg, var(--signal-red), var(--signal-violet), var(--signal-cyan)); }

/* FAQ rows */
details { padding: 2px 16px; }
details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 600; font-family: var(--display); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-family: var(--mono); background: linear-gradient(100deg, var(--signal-red), var(--signal-yellow), var(--signal-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.4em; line-height: 1; margin-left: 16px; flex-shrink: 0; transition: transform 0.4s var(--bounce); }
details[open] summary::after { transform: rotate(225deg) scale(1.15); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } }

/* feature chips under the home hero */
.fchips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* language picker and language links */
.lang-menu { position: relative; margin-left: 16px; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); background: var(--panel); border: 2px solid var(--line-bright); border-radius: 999px; padding: 6px 12px; user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--signal-cyan); color: var(--signal-cyan); }
.lang-menu__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 230px; max-height: 70vh; overflow: auto; padding: 8px; border-radius: 16px; border: 2px solid var(--line-bright); background: var(--panel-elevated); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); display: grid; gap: 2px; }
.lang-menu__panel a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.lang-menu__panel a:hover, .lang-menu__panel a[aria-current] { background: var(--panel-hover); color: var(--signal-cyan); }
@media (max-width: 640px) { .lang-menu { margin-left: 0; } .lang-menu__panel { right: auto; left: 0; } }
.foot-langs { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin: 20px 0 0; line-height: 1.9; }
.foot-langs a { color: var(--text-dim); text-decoration: none; }
.foot-langs a:hover { color: var(--signal-cyan); }
.lang-note { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-dim); margin: 14px 0 8px; }

/* the language picker is a <details> too: keep it from picking up the FAQ-row look */
.lang-menu { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.lang-menu > summary { font-weight: 600; }
.lang-menu > summary::after { content: none; display: none; }
