/*
 * Styles for the static, no-JavaScript guide pages under /resize-image/,
 * /compress-image/, /convert-image/, /remove-background/ and /upscale-image/.
 *
 * These pages exist so search engines and AI answer engines get real text
 * without executing the app bundle. They must stay dependency-free: no fonts,
 * no scripts, no images beyond the shared screenshots.
 */

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121a24;
  --panel-2: #16202c;
  --line: #24303d;
  --text: #e6eaf0;
  --muted: #9aa7b6;
  --accent: #a78bfa;
  --accent-strong: #7c3aed;
  --on-accent: #0b0f14;
  --radius: 12px;
  --wrap: 780px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: #c4b5fd;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- header ------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

/* ---- layout ------------------------------------------------------------ */

main {
  padding: 40px 0 64px;
}

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

.crumbs a {
  color: var(--muted);
}

h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 26px 0 8px;
}

p {
  margin: 0 0 14px;
}

.lede {
  font-size: 1.125rem;
  color: #cbd5e1;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

/* ---- call to action ---------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 8px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.cta:hover {
  background: #c4b5fd;
  color: var(--on-accent);
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.cta.secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---- blocks ------------------------------------------------------------ */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 44px;
  margin: 0 0 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 18px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 0.9375rem;
}

.faq {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 18px 16px;
  color: #cbd5e1;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

.related {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 18px 0 0;
}

.related a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
}

.related a:hover {
  border-color: var(--accent);
}

.related span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

figure {
  margin: 26px 0;
}

figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ---- footer ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 520px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }
}
