:root {
  --bg: #0f1115;
  --card: #171a21;
  --card-2: #1e222b;
  --line: #2a2f3a;
  --text: #e8ebf0;
  --muted: #9aa3b2;
  --accent: #e1306c;      /* Instagram-ish */
  --accent-2: #f77737;
  --ok: #3ddc97;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero {
  padding: 48px 20px 24px;
  text-align: center;
  background: radial-gradient(1200px 400px at 50% -120px, rgba(225,48,108,.22), transparent 70%);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 auto 14px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 3.5vw, 18px);
}

.privacy {
  display: inline-block;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(61,220,151,.08);
  color: var(--ok);
  font-size: 14px;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.site-header, .site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-header nav, .site-footer { gap: 16px; }
.site-header a, .site-footer a { color: var(--muted); text-decoration: none; }
.site-header .brand { color: var(--text); font-weight: 700; letter-spacing: .02em; }
.article-shell { max-width: 760px; }
.article-shell article { padding: 34px 0 16px; }
.article-shell h1 { margin: 8px 0 18px; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -.025em; }
.article-shell h2 { margin-top: 34px; line-height: 1.2; }
.article-shell h3 { margin-top: 24px; }
.article-shell p, .article-shell li { color: #cbd1db; }
.article-shell li { margin: 8px 0; }
.eyebrow { color: var(--accent-2) !important; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.answer { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; }
.tool-card > h1 { max-width: 680px; margin-bottom: 10px; }
.tool-card > .answer { margin-bottom: 22px; }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.proof-strip span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 13px; }
.proof-strip strong { display: block; color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.article-shell figure { margin: 28px 0; }
.article-shell figure img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.article-shell figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

#dropzone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--card-2);
}

#dropzone:hover, #dropzone.drag {
  border-color: var(--accent);
  background: rgba(225,48,108,.06);
}

.dz-icon { font-size: 26px; color: var(--accent); }
.dz-title { margin-top: 6px; font-weight: 600; }
.dz-sub { margin-top: 6px; color: var(--muted); font-size: 13px; }

.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.ctl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

select {
  width: 100%;
  padding: 10px 12px;
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  appearance: none;
}

select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  font: inherit;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
}

button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }

button.primary {
  width: 100%;
  margin-top: 4px;
  border: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
}

.status { margin-top: 14px; color: var(--muted); font-size: 14px; min-height: 20px; }

.bar { height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }

.out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.out-head h2 { margin: 0; font-size: 18px; }
.out-actions { display: flex; gap: 8px; }

#output {
  width: 100%;
  min-height: 240px;
  margin-top: 12px;
  padding: 14px;
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
}

.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.prose h2 { font-size: 17px; margin: 18px 0 6px; }
.prose p { color: var(--muted); margin: 6px 0; }
.prose .test-case { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.prose .test-case audio { display: block; max-width: 100%; margin: 10px 0; }
.prose pre { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); color: var(--text); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.prose .article-video { display: block; width: 100%; max-width: 520px; margin: 12px auto 20px; border-radius: 14px; background: #0b1220; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 48px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 10px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer::after { content: "Some links on this site may be affiliate links."; display: block; margin-top: 10px; }
a { color: #ff8aa9; }

@media (max-width: 620px) {
  .proof-strip { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .out-head { flex-direction: column; align-items: stretch; }
  .out-actions button { flex: 1; }
  button.primary { padding: 14px; font-size: 17px; }
}
figure.article-visual{margin:1.25rem 0 1.5rem}figure.article-visual img{display:block;width:100%;height:auto;border-radius:16px}figure.article-visual figcaption{margin-top:.5rem;color:var(--muted,#9da7bb);font-size:.9rem}
