/* =========================================================
   GlowPress v2 - shared stylesheet
   Mobile-first: base styles are for phones, then we add
   rules for bigger screens with @media (min-width: ...).
   ========================================================= */

:root {
  /* Brand palette, matched to the GlowPress flame logo (assets/brand/) */
  --bg: #00070b;
  --bg-2: #021118;
  --surface: rgba(4, 24, 30, 0.74);
  --surface-solid: #06181e;
  --surface-2: rgba(8, 38, 44, 0.78);
  --border: rgba(0, 255, 214, 0.16);
  --border-strong: rgba(0, 255, 214, 0.34);
  --text: #e9fbf7;
  --muted: #a5c7c1;
  --cyan: #00ffd6;      /* primary glow aqua (name kept for compatibility) */
  --violet: #22e06b;    /* secondary: flame green */
  --pink: #00f5ff;      /* tertiary: flame top cyan */
  --green: #4ade80;
  --red: #fb7185;
  --yellow: #facc15;
  --grad: linear-gradient(120deg, #00f5ff, #00ffd6 45%, #22e06b);
  --glow-cyan: 0 0 18px rgba(0, 255, 214, 0.42);
  --glow-violet: 0 0 24px rgba(34, 224, 107, 0.38);
  --radius: 16px;
  --radius-sm: 10px;
  --tap: 44px;
  --header-h: 64px;
  --maxw: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip; /* safety net: never allow sideways scrolling */
}

/* Soft glow blobs behind everything (static, very cheap to draw) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 10% -10%, rgba(0, 255, 214, 0.16), transparent 60%),
    radial-gradient(50vmax 40vmax at 110% 10%, rgba(34, 224, 107, 0.16), transparent 60%),
    radial-gradient(60vmax 50vmax at 50% 120%, rgba(0, 245, 255, 0.10), transparent 60%),
    var(--bg);
}

/* Particle canvas (created by js/site.js) */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

img, svg, canvas, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ee8f7; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4.6vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--cyan); color: #00130f; padding: 10px 16px;
  border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
main { flex: 1; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= Header / Nav ================= */
#site-header { min-height: var(--header-h); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 7, 11, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em;
  min-height: var(--tap);
}
.brand img { display: block; width: auto; height: 36px; filter: drop-shadow(0 0 8px rgba(0, 255, 214, 0.35)); }
.drawer-head .brand img, .footer-about .brand img { height: 32px; }
.brand span b { font-weight: 800; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

.nav-links { display: none; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(84vw, 340px);
  background: linear-gradient(180deg, #0e0e22, #07070f);
  border-left: 1px solid var(--border-strong);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column;
  padding: 12px 16px 24px;
  overflow-y: auto;
  visibility: hidden;
}
body.drawer-open .drawer { transform: translateX(0); visibility: visible; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.drawer a:hover, .drawer a[aria-current="page"] { background: var(--surface-2); color: var(--cyan); }
.drawer .drawer-label { margin: 16px 12px 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.drawer .drawer-tools a { font-weight: 500; min-height: 44px; font-size: 0.95rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav-links a {
    display: inline-flex; align-items: center; min-height: var(--tap);
    padding: 0 14px; border-radius: 12px;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  }
  .nav-links a:hover { background: var(--surface-2); color: var(--cyan); }
  .nav-links a[aria-current="page"] { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 12px 12px 4px 4px; }
  .nav-links .nav-cta a { background: var(--grad); color: #00130f; margin-left: 6px; }
  .nav-links .nav-cta a:hover { color: #00130f; box-shadow: var(--glow-violet); }
  .drawer, .drawer-backdrop { display: none; }
}

/* ================= Buttons & form controls ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--grad); color: #00130f; box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn-primary:hover { color: #00130f; box-shadow: var(--glow-violet), var(--glow-cyan); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn-small { min-height: var(--tap); padding: 8px 14px; font-size: 0.92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

label { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field small, .hint { color: var(--muted); font-weight: 400; font-size: 0.88rem; }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  font: inherit; font-size: 16px; /* 16px stops iPhone from zooming in */
  color: var(--text);
  background: rgba(1, 12, 16, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
textarea.mono, .mono { font-family: var(--mono); font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 255, 214, 0.2); outline: none; }
input[type="color"] { width: 64px; height: var(--tap); padding: 2px; border: 1px solid var(--border-strong); border-radius: 10px; background: transparent; cursor: pointer; }
input[type="range"] { width: 100%; min-height: var(--tap); accent-color: var(--cyan); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--cyan); flex: none; margin: 0; cursor: pointer; }

.check {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 4px 0;
  font-weight: 500; cursor: pointer;
}
.checks { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .checks { grid-template-columns: 1fr 1fr; } }

.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Segmented tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(1, 12, 16,0.7); border: 1px solid var(--border); margin-bottom: 18px; }
.tabs [role="tab"] {
  flex: 1 1 auto; min-height: var(--tap); padding: 8px 14px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--surface-2); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--border-strong); }
[role="tabpanel"][hidden] { display: none; }

/* ================= Cards / sections ================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (min-width: 640px) { .card { padding: 24px; } }

.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }

/* Hero */
.hero { position: relative; padding: 48px 0 80px; text-align: center; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 96px 0 130px; } }
.hero p.lead { font-size: clamp(1.05rem, 3.4vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero .btn-row { justify-content: center; }
.hero-logo { width: 66px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 0 22px rgba(0, 255, 214, 0.55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.85rem; color: var(--muted); }
.badge.sample { color: var(--yellow); border-color: rgba(250, 204, 21, 0.4); }

/* Animated SVG waves (GPU-friendly transform animation) */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 90px; pointer-events: none; overflow: hidden; }
.waves svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; max-width: none; }
.waves .w1 { animation: wave 18s linear infinite; opacity: 0.55; }
.waves .w2 { animation: wave 28s linear infinite reverse; opacity: 0.35; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Page hero (smaller, for inner pages) */
.page-hero { padding: 36px 0 20px; }
@media (min-width: 900px) { .page-hero { padding: 56px 0 28px; } }
.page-hero p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

/* Tool cards grid */
.tool-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tool-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.tool-card .ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 255, 214, 0.18), rgba(34, 224, 107, 0.22));
  border: 1px solid var(--border-strong); color: var(--cyan);
}
.tool-card .ico svg { width: 26px; height: 26px; }
.tool-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tool-card .tag { position: absolute; top: 12px; right: 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(74, 222, 128, 0.14); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.35); }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3 svg { width: 24px; height: 24px; color: var(--violet); flex: none; }
.feature p { color: var(--muted); margin: 0; }

/* ================= Tool page layout ================= */
.tool-wrap { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding-bottom: 20px; }
.panel-title { font-size: 1.05rem; margin-bottom: 12px; color: var(--text); }
.output-box {
  background: rgba(0, 8, 11, 0.85); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; min-height: 60px;
  overflow-wrap: anywhere; word-break: break-word;
}
.status { min-height: 1.6em; font-size: 0.95rem; color: var(--muted); margin: 8px 0 0; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }

/* Drop zone: it is a <label>, so tapping it opens the file picker on phones */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 170px; padding: 24px 16px; text-align: center;
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  background: rgba(10, 10, 26, 0.6);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--cyan); background: rgba(0, 255, 214, 0.06); box-shadow: var(--glow-cyan); }
.dropzone:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 255, 214, 0.3); }
.dropzone svg { width: 44px; height: 44px; color: var(--cyan); }
.dropzone strong { font-size: 1.05rem; }
.dropzone span { color: var(--muted); font-size: 0.92rem; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }

/* File result list */
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.file-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; background: rgba(1, 12, 16, 0.7); border: 1px solid var(--border);
}
.file-item img, .file-item .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #111; }
.file-item .meta { min-width: 0; }
.file-item .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .sizes { font-size: 0.88rem; color: var(--muted); }
.file-item .saved { color: var(--green); font-weight: 700; }
.file-item .worse { color: var(--yellow); font-weight: 700; }
.file-item .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 640px) {
  .file-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .file-item .actions { grid-column: auto; }
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 14px 12px; border-radius: 12px; background: rgba(1, 12, 16, 0.7); border: 1px solid var(--border); text-align: center; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--cyan); text-shadow: 0 0 12px rgba(0, 255, 214, 0.35); overflow-wrap: anywhere; }
.stat span { font-size: 0.85rem; color: var(--muted); }

.pw-out { display: flex; gap: 8px; align-items: stretch; }
.pw-out input { font-family: var(--mono); font-size: 16px; }
.meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 10px; }
.meter > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--red); transition: width 0.25s, background 0.25s; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 4px 12px; border-radius: 999px; background: rgba(34, 224, 107, 0.12); border: 1px solid rgba(34, 224, 107, 0.35); color: var(--text); font-size: 0.95rem; cursor: pointer; font: inherit; }
.tag-chip[aria-pressed="false"] { opacity: 0.45; text-decoration: line-through; }

.qr-preview { display: grid; place-items: center; min-height: 240px; padding: 16px; border-radius: var(--radius); background: rgba(0, 8, 11, 0.7); border: 1px solid var(--border); }
.qr-preview canvas, .qr-preview img { width: min(100%, 320px); height: auto; image-rendering: pixelated; border-radius: 8px; }

.preview-img { max-height: 320px; width: auto; margin: 10px auto 0; border-radius: 10px; border: 1px solid var(--border); }

.sortable-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.sortable-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(1, 12, 16, 0.7); border: 1px solid var(--border); }
.sortable-list li img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.sortable-list .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }
.icon-btns { display: flex; gap: 4px; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.05rem; }
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; }

.kw-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.kw-table th, .kw-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.kw-table td:last-child, .kw-table th:last-child { text-align: right; }

/* Content (how-to, FAQ, legal pages, blog posts) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--violet); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: 0.92em; background: rgba(34, 224, 107, 0.12); padding: 2px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; background: rgba(0, 8, 11, 0.9); border: 1px solid var(--border); padding: 14px; border-radius: 10px; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 12px; margin: 1em 0; }

details.acc {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  margin-bottom: 10px; overflow: hidden;
}
details.acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 16px; font-weight: 700;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cyan); transition: transform 0.2s; flex: none; }
details.acc[open] > summary::after { transform: rotate(45deg); }
details.acc > summary:hover { color: var(--cyan); }
details.acc .acc-body { padding: 0 16px 14px; }
details.acc .acc-body > :last-child { margin-bottom: 0; }

/* Blog */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.chip { flex: none; min-height: var(--tap); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--grad); color: #00130f; border-color: transparent; }
.cat-group { margin-top: 26px; }
.cat-group > h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.cat-group > h2 .count { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.post-meta { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.post-summary-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-summary-title .t { overflow-wrap: anywhere; }
.post-summary-title .post-meta { font-weight: 500; }
.related-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.related-tools a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 6px 12px; border-radius: 10px; background: rgba(0, 255, 214, 0.1); border: 1px solid rgba(0, 255, 214, 0.35); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.article-head { margin-bottom: 18px; }
.sample-note { border: 1px solid rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.07); color: #fde68a; border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; font-size: 0.95rem; }

/* ---------- Money features (scripts/monetize.py + js/money.js, see MONEY.md) ----------
   Ad units only exist in the built pages when AdSense is switched on, and stay hidden
   until consent is given (never for Pro). Reserved heights stop the page from jumping. */
.gp-ad { display: none; }
.gp-ad[hidden] { display: none !important; }
html.gp-ads-live .gp-ad { display: block; position: relative; margin: 36px auto; padding-top: 20px; text-align: center; min-height: 270px; max-width: 100%; }
html.gp-ads-live .gp-ad-multiplex { min-height: 520px; }
html.gp-ads-live .gp-ad-infeed { min-height: 240px; margin: 4px 0; grid-column: 1 / -1; }
@media (min-width: 768px) {
  html.gp-ads-live .gp-ad { min-height: 300px; }
  html.gp-ads-live .gp-ad-multiplex { min-height: 420px; }
  html.gp-ads-live .gp-ad-infeed { min-height: 220px; }
}
.gp-ad-label { position: absolute; top: 0; left: 0; right: 0; font-size: 0.72rem; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: left; }
.gp-ad ins.adsbygoogle { margin: 0 auto; }
.gp-rail { position: absolute; z-index: 5; pointer-events: none; }
.gp-rail .gp-rail-in { pointer-events: auto; position: sticky; top: calc(var(--header-h) + 16px); margin: 0; min-height: 0; padding-top: 20px; }
html.gp-ads-live .gp-rail .gp-ad { position: sticky; top: calc(var(--header-h) + 16px); margin: 0; min-height: 620px; }
.gp-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface-solid); border-top: 1px solid var(--border-strong);
  padding: 0 0 env(safe-area-inset-bottom); text-align: center; max-height: 30vh; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45); }
.gp-anchor[hidden] { display: none; }
.gp-anchor-bar { position: relative; height: 22px; max-width: 760px; margin: 0 auto; }
.gp-anchor-bar .gp-ad-label { left: 10px; line-height: 22px; }
.gp-anchor-close { position: absolute; right: 4px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-solid); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
html.gp-ads-live .gp-anchor .gp-ad { margin: 0 auto; padding: 0; min-height: 0; }
.consent-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; max-width: 720px; margin: 0 auto;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.consent-bar p { margin: 0 0 10px; font-size: 0.95rem; }
.consent-bar .btn-row { margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.aff-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin: 28px 0; }
.aff-card .aff-title { font-size: 1.1rem; margin: 0 0 8px; }
.aff-list { list-style: none; margin: 0; padding: 0; }
.aff-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.aff-list li:last-child { border-bottom: 0; }
.aff-list a { font-weight: 700; }
.aff-list span { color: var(--muted); font-size: 0.95rem; }
.aff-note { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.after-dl { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); padding: 14px 48px 14px 16px; margin: 0 0 18px; }
.after-dl p { margin: 0 0 6px; }
.after-dl .after-dl-done { font-weight: 700; color: var(--green); }
.after-dl .adl-h { font-weight: 700; margin-top: 6px; }
.after-dl .aff-list li { padding: 4px 0; border: 0; }
.after-dl-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.dl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface-solid); border-top: 1px solid var(--border-strong); }
.dl-bar[hidden] { display: none; }
.dl-bar .btn { width: 100%; }
body.dl-bar-on { padding-bottom: 72px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; max-width: calc(100vw - 32px);
  background: #141432; border: 1px solid var(--cyan); color: var(--text); box-shadow: var(--glow-cyan);
  transition: opacity 0.2s, transform 0.2s; font-weight: 600; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: rgba(0, 7, 11, 0.82); padding: 36px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); text-decoration: none; }
.footer-grid li a:hover { color: var(--cyan); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer-about p { color: var(--muted); font-size: 0.95rem; }

/* ================= v2b additions ================= */
.check > span { min-width: 0; overflow-wrap: anywhere; }
.check:has(> span strong) { align-items: flex-start; padding: 8px 0; }
.check:has(> span strong) input { margin-top: 2px; }
.tool-card { position: relative; }

/* Progress bar */
.progress { margin-top: 14px; }
.progress[hidden] { display: none; }
.progress-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: var(--glow-cyan); transition: width 0.2s; }
.progress.indeterminate .progress-bar > i { animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.progress-label { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
.warn-note { border: 1px solid rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.07); color: #fde68a; border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; }
.warn-note[hidden] { display: none; }

/* Chaining: "Send to" buttons */
.chain { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(0, 255, 214, 0.35); background: linear-gradient(120deg, rgba(0, 255, 214, 0.08), rgba(34, 224, 107, 0.08)); }
.chain[hidden] { display: none; }
.chain-title { margin: 0 0 10px; font-weight: 700; color: var(--cyan); }

/* Recent tools */
.recent-tools:empty, .recent-tools[hidden] { display: none; }
.recent-tools { margin: 0 0 22px; }
.recent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.recent-title { margin: 0; font-size: 1rem; color: var(--muted); font-weight: 700; }
.recent-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.chip-link:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }

/* Install button in nav */
.nav-install[hidden], .js-install[hidden] { display: none !important; }
@media (min-width: 900px) { .nav-links .nav-install button { min-height: var(--tap); margin-left: 4px; } }

/* Tool index search + category sections */
.tool-search { max-width: 520px; margin: 0 auto 22px; }
.cat-section { margin-top: 30px; }
.cat-section:first-of-type { margin-top: 0; }
.cat-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 12px; }
.cat-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: var(--glow-cyan); flex: none; }
.cat-title a { text-decoration: none; }
.no-results[hidden] { display: none; }

/* How-to steps */
.howto-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.howto-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 56px; border-radius: 12px; background: rgba(1, 12, 16, 0.6); border: 1px solid var(--border); }
.howto-steps li::before { content: counter(step); position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #00130f; background: var(--grad); }

/* Before / after image area with see-through checkerboard */
.compare { margin-top: 16px; min-height: 180px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--border); background: rgba(0, 8, 11, 0.7); overflow: hidden; }
.compare:empty::after { content: "Your result appears here"; color: var(--muted); }
.compare.checker { background-color: #d9d9e3; background-image: linear-gradient(45deg, #b9b9c9 25%, transparent 25%), linear-gradient(-45deg, #b9b9c9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #b9b9c9 75%), linear-gradient(-45deg, transparent 75%, #b9b9c9 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.compare img { max-width: 100%; max-height: 60vh; width: auto; height: auto; }

/* PDF page grid */
.page-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.page-card { border-radius: 12px; border: 1px solid var(--border); background: rgba(1, 12, 16, 0.7); padding: 8px; }
.page-card.changed { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.page-thumb { height: 170px; display: grid; place-items: center; overflow: hidden; }
.page-thumb canvas { max-width: 100%; max-height: 160px; background: #fff; border-radius: 4px; transition: transform 0.25s; }
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 6px; }
.page-num { font-size: 0.82rem; color: var(--muted); text-align: center; flex: 1; min-width: 0; }

/* Video */
.video-preview { display: block; width: 100%; max-height: 55vh; margin-top: 14px; border-radius: 12px; background: #000; border: 1px solid var(--border); }
.video-preview[hidden] { display: none; }
.inline-input { display: flex; gap: 8px; }
.inline-input input { flex: 1; min-width: 0; }
.inline-input .btn { flex: none; }
.gif-out:empty { display: none; }
.gif-out { margin-top: 14px; display: grid; place-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 8, 11, 0.7); }
.gif-out img { max-width: 100%; height: auto; border-radius: 8px; }

/* Social cropper */
.cropper-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .cropper-layout { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; } }
.crop-stage { width: 100%; min-height: 200px; display: grid; place-items: center; padding: 4px 0; }
.crop-stage canvas { display: block; max-width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px var(--border-strong), 0 10px 30px rgba(0, 0, 0, 0.45); touch-action: none; cursor: grab; background: #0b0b18; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-stage canvas:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.panel-title small { font-weight: 400; }

/* Thumbnail previewer */
.title-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: -6px 0 4px; }
.title-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width 0.2s, background 0.2s; }
.title-meter i.warn { background: var(--yellow); }
.title-meter i.err { background: var(--red); }
.cut-report { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.cut-report li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(1, 12, 16, 0.6); overflow-wrap: anywhere; }
.cut-report li.ok { border-color: rgba(74, 222, 128, 0.45); }
.cut-report li.ok strong { color: var(--green); }
.cut-report li.cut { border-color: rgba(250, 204, 21, 0.45); }
.cut-report li.cut strong { color: var(--yellow); }
.cut-report li.tip { color: var(--muted); }
.cut-shown { font-style: italic; }
.mock-area { margin-top: 18px; }
.mock { --m-bg: #0f0f0f; --m-text: #f1f1f1; --m-muted: #aaaaaa; --m-chip: #272727; --m-line: #303030; }
.mock-light .mock { --m-bg: #ffffff; --m-text: #0f0f0f; --m-muted: #606060; --m-chip: #f2f2f2; --m-line: #e5e5e5; }
.mock-scale { overflow: hidden; width: 100%; }
.mock-inner { transform-origin: top left; background: var(--m-bg); color: var(--m-text); font-family: Roboto, "Segoe UI", Arial, sans-serif; border-radius: 12px; padding: 0 0 16px; border: 1px solid var(--m-line); }
.mock-w-desk { width: 1040px; }
.mock-w-phone { width: 360px; }
.mock-phone { display: flex; justify-content: center; }
.mock-phone .mock { width: 100%; max-width: 384px; padding: 12px; border-radius: 36px; background: #07181c; box-shadow: 0 0 0 2px #333, var(--glow-violet); }
.mock-phone .mock-inner { border-radius: 26px; min-height: 560px; }
.mock p { margin: 0; }
.mock-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--m-line); }
.mock-top.phone { padding: 12px 14px; }
.mock-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.mock-brand i { width: 26px; height: 18px; border-radius: 6px; background: var(--grad); }
.mock-searchbar { flex: 1; max-width: 520px; margin: 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--m-line); color: var(--m-muted); font-size: 15px; }
.mock-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background: #555; }
.mock-avatar.small { width: 32px; height: 32px; background: var(--grad); }
.mock-chips { display: flex; gap: 10px; padding: 12px 18px; }
.mock-chips span { padding: 6px 12px; border-radius: 8px; background: var(--m-chip); font-size: 14px; font-weight: 500; }
.mock-chips span.on { background: var(--m-text); color: var(--m-bg); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 320px); gap: 24px 16px; padding: 4px 18px; }
.mock-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #333; display: grid; place-items: center; }
.mock-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock-ph { color: #fff; font-weight: 800; font-size: 20px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.mock-dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 12px; font-weight: 600; }
.mock-row { display: flex; gap: 12px; margin-top: 12px; }
.mock-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mock-card .mock-title { width: 272px; font-weight: 600; font-size: 16px; line-height: 22px; margin-bottom: 4px; }
.mock-meta { color: var(--m-muted); font-size: 14px; line-height: 20px; }
.mock-card.mine .mock-thumb, .mock-srow.mine .mock-thumb, .mock-mcard.mine .mock-thumb { box-shadow: 0 0 0 3px var(--cyan); }
.mock-srow { display: flex; gap: 16px; padding: 16px 18px 0; }
.mock-srow .mock-thumb { width: 360px; flex: none; }
.mock-sinfo { width: 600px; }
.mock-srow .mock-title { width: 560px; font-size: 18px; line-height: 26px; font-weight: 400; }
.mock-ch { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.mock-ch .mock-avatar { width: 24px; height: 24px; font-size: 11px; }
.mock-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.mock-mcard { margin-bottom: 18px; }
.mock-mcard .mock-thumb { border-radius: 0; }
.mock-mcard .mock-row { padding: 0 12px; }
.mock-mcard .mock-title { width: 288px; font-size: 15px; line-height: 21px; font-weight: 500; margin-bottom: 2px; }
.mock-mcard .mock-meta { font-size: 12px; line-height: 17px; }

/* Caption generator */
.caption-list { display: grid; gap: 12px; }
.caption-card { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(1, 12, 16, 0.7); }
.caption-text { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.caption-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.caption-count { color: var(--muted); }
.caption-count.over { color: var(--red); font-weight: 700; }

/* Share page / creators */
.share-files { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.share-files li { padding: 10px 12px; border-radius: 12px; background: rgba(1, 12, 16, 0.7); border: 1px solid var(--border); overflow-wrap: anywhere; }
.target-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.target-grid .btn { width: 100%; justify-content: flex-start; }
.creator-steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: cs; }
@media (min-width: 720px) { .creator-steps { grid-template-columns: repeat(3, 1fr); } }
.data-actions { margin-top: 12px; }

/* ================= v2c: accounts, Pro, batch tools, guides ================= */
.nav-account[hidden], .drawer-account[hidden] { display: none; }
.pro-badge { font-weight: 800; }
.nav-links .pro-badge, .drawer .pro-badge { background: linear-gradient(120deg, rgba(0, 255, 214,.18), rgba(0, 245, 255,.2)); border: 1px solid rgba(0, 245, 255,.55); color: #b8fff0 !important; }
.nav-links .account-link { border: 1px solid var(--border-strong); margin-left: 6px; }
.drawer-account a { margin-top: 4px; }
.limit-note { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(0, 245, 255,.45); background: linear-gradient(120deg, rgba(34, 224, 107,.1), rgba(0, 245, 255,.1)); }
.limit-note p { margin: 0 0 10px; }
.limit-note .hint { margin: 10px 0 0; overflow-wrap: anywhere; }
.limit-note[hidden] { display: none; }

.billing-toggle { display: flex; justify-content: center; gap: 8px; margin: 6px 0 22px; flex-wrap: wrap; }
.billing-toggle .chip { min-height: var(--tap); padding: 8px 18px; font-size: 1rem; }
.save-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(74,222,128,.16); color: var(--green); font-size: .8rem; font-weight: 700; }
.plans { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan h2 { margin: 0 0 6px; font-size: 1.35rem; }
.plan-pro { border-color: rgba(0, 255, 214,.6); box-shadow: 0 0 0 1px rgba(0, 255, 214,.25), var(--glow-cyan); }
.plan-life { border-color: rgba(0, 245, 255,.55); }
.plan-flag { position: absolute; top: -12px; right: 18px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #00130f; font-size: .78rem; font-weight: 800; }
.plan-flag.flag-pink { background: linear-gradient(120deg, var(--pink), var(--violet)); }
.price { margin: 4px 0 2px; }
.price b { font-size: 2.4rem; line-height: 1.1; }
.price span { color: var(--muted); }
.plan-sub { color: var(--muted); margin: 0 0 12px; min-height: 1.5em; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.plan-feats svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }
.plan-btn { width: 100%; }
.deal-meter { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 245, 255,.1); color: #b8fff0; font-weight: 700; font-size: .92rem; }
.plan.sold-out { opacity: .75; }
.plans-note { text-align: center; margin-top: 16px; }
.pro-soon { text-align: center; margin: 0 auto 18px; max-width: 760px; }
.plan-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 800; margin: 4px 0 8px; }
.plan-pill.is-pro { border-color: rgba(0, 245, 255,.6); background: linear-gradient(120deg, rgba(0, 255, 214,.15), rgba(0, 245, 255,.18)); color: #b8fff0; }
.acc-email { overflow-wrap: anywhere; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 16px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-btn { width: 100%; max-width: 360px; }
.google-btn svg { width: 20px; height: 20px; }

.wm-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .wm-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } .wm-layout > section:last-child { position: sticky; top: calc(var(--header-h) + 12px); } }
.wm-preview { border-radius: 12px; border: 1px solid var(--border); background: repeating-conic-gradient(#1a1a2e 0% 25%, #121224 0% 50%) 50% / 20px 20px; padding: 8px; display: grid; place-items: center; }
.wm-preview canvas { max-width: 100%; height: auto; border-radius: 8px; }
.token-row { margin: -4px 0 14px; gap: 8px; }
.token-row .btn { font-family: var(--mono); }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; }
.table-wrap table { margin: 0; }
.rename-table td, .rename-table th { text-align: left !important; overflow-wrap: anywhere; }
.rename-table td.new { color: var(--cyan); font-weight: 600; }
.rename-table td:first-child, .rename-table th:first-child { width: 3em; color: var(--muted); }

.guide-tool { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: 18px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(0, 255, 214,.45); background: linear-gradient(120deg, rgba(0, 255, 214,.1), rgba(34, 224, 107,.1)); }
@media (min-width: 760px) { .guide-tool { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.guide-tool h2 { margin: 0 0 6px; font-size: 1.2rem; }
.guide-tool p { margin: 0 0 10px; color: var(--muted); }
.guide-tool .dropzone { min-height: 150px; padding: 18px; }
.guide-quick { font-weight: 600; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table thead th { color: var(--cyan); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.guide-toc { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin: 18px 0; }
.guide-toc ol { margin: 6px 0 0; padding-left: 1.3em; }
.guide-toc a { display: inline-block; padding: 4px 0; }
.tip { padding: 12px 14px; border-left: 3px solid var(--violet); background: rgba(34, 224, 107,.08); border-radius: 0 10px 10px 0; margin: 12px 0; }
.guide-meta { color: var(--muted); font-size: .9rem; }
.guide-cta { margin: 26px 0; }
.guide-list { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Reduced motion: stop animations for people who ask for it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  #bg-canvas { opacity: 0.5; }
}

/* ---------- Auto blog posts and podcast ---------- */
.post-hero { margin: 0 0 18px; }
.post-hero img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.prose .sources li { overflow-wrap: anywhere; }
.ai-note { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.static-post-list { list-style: none; padding: 0; margin: 0; }
.static-post-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.static-post-list a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.episode-player { margin-top: 18px; }
.episode-player audio, .episode-card audio { display: block; width: 100%; margin: 6px 0 8px; }
.episode-player .hint a { display: inline-flex; align-items: center; min-height: var(--tap); }
.episode-list { display: grid; gap: 16px; }
.episode-card h2 { font-size: 1.2rem; margin: 0 0 6px; }
.episode-card h2 a { display: inline-flex; min-height: var(--tap); align-items: center; }
