/* ============================================================
   sshot.online — professional, responsive UI
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg2: #f4f7fb;
  --bg3: #edf0f8;
  --card: #ffffff;
  --line: #e3e8f2;
  --line2: #cdd5e8;
  --text: #0f1523;
  --text2: #2e3a56;
  --muted: #6a7490;
  --brand: #4f6bff;
  --brand2: #3f57e0;
  --brand-dim: rgba(79,107,255,.12);
  --brand-glow: rgba(79,107,255,.28);
  --ok: #17a869;
  --err: #d93a43;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 980px;
  --page-bg: #f4f6fc;
  --shadow-sm: 0 1px 2px rgba(15,21,35,.05), 0 4px 12px rgba(15,21,35,.07);
  --shadow-md: 0 2px 6px rgba(15,21,35,.07), 0 12px 32px rgba(15,21,35,.1);
  --shadow-hover: 0 4px 12px rgba(15,21,35,.09), 0 20px 48px rgba(15,21,35,.14);
  --btn-hover: #edf0f8;

  /* Header/footer "chrome" — always this fixed dark navy, matching the
     footer, regardless of any other surface color on the page. */
  --chrome-bg: rgba(8,12,24,.92);
  --chrome-border: rgba(255,255,255,.06);
  --chrome-text: rgba(200,212,240,.78);
  --chrome-link: rgba(198,210,238,.72);
  --chrome-link-hover: #ffffff;
  --chrome-highlight: rgba(108,140,255,.16);
}

/* ── Dark theme ────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg: #0b101f;
  --bg2: #121a2f;
  --bg3: #182238;
  --card: #101729;
  --line: #212c4a;
  --line2: #33406a;
  --text: #e8ecfa;
  --text2: #c3cbe6;
  --muted: #8e99bd;
  --brand: #6c8cff;
  --brand2: #4f6bff;
  --brand-dim: rgba(108,140,255,.14);
  --brand-glow: rgba(108,140,255,.32);
  --ok: #2bd48a;
  --err: #ff5c66;
  --page-bg: #0a0e1a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.35);
  --shadow-md: 0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.45), 0 20px 48px rgba(0,0,0,.55);
  --btn-hover: #1a2340;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ── Base ──────────────────────────────────────────────────── */
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}
/* Ambient brand glow behind the content — subtle in light, atmospheric in dark. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 340px at 18% -60px, var(--brand-dim), transparent 70%),
    radial-gradient(720px 400px at 85% 4%, rgba(124,146,255,.07), transparent 70%);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ── Layout ────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main.container { flex: 1 0 auto; padding-top: 40px; padding-bottom: 72px; }

/* ── Header ────────────────────────────────────────────────── */
/* Fixed dark "chrome" — matches the footer in both light and dark theme, so
   the top and bottom bands are always visually consistent. Only the main
   content area (.container) responds to the theme toggle. */
.site-header {
  border-bottom: 1px solid var(--chrome-border);
  background: var(--chrome-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { color: #e6eaf7; display: flex; align-items: center; flex-shrink: 0; }
.logo-svg { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 58px;
}
.main-nav a {
  color: var(--chrome-link);
  font-weight: 500;
  font-size: 15px;
  padding: 7px 13px;
  border-radius: 9px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--chrome-link-hover); background: var(--chrome-highlight); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--chrome-border);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  padding: 0;
  margin-right: 58px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.nav-toggle:hover { background: var(--chrome-highlight); border-color: var(--brand); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e6eaf7;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--chrome-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 45;
  padding: 16px 20px;
  border-top: 1px solid var(--chrome-border);
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  color: var(--chrome-link);
  font-weight: 600;
  font-size: 18px;
  padding: 15px 18px;
  border-radius: 13px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover { background: var(--chrome-highlight); color: var(--chrome-link-hover); text-decoration: none; }

/* Theme toggle — fixed floating, sits in the header band so it stays styled
   like the rest of the fixed dark chrome regardless of the page theme. */
.theme-toggle {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--chrome-border);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: #e6eaf7;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.theme-toggle:hover { background: var(--chrome-highlight); border-color: var(--brand); box-shadow: 0 4px 16px var(--brand-glow); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { text-align: center; padding: 56px 0 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(23,168,105,.5);
  animation: badge-pulse 2.2s ease-out infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(23,168,105,.45); }
  70% { box-shadow: 0 0 0 7px rgba(23,168,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(23,168,105,0); }
}
.hero-badge {
  background: var(--brand-dim);
  color: var(--brand);
  border: 1px solid rgba(79,107,255,.22);
  border-radius: 99px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(28px, 5.5vw, 52px);
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--brand2) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 18px; line-height: 1.65; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  transition: background-color .25s ease, border-color .25s ease;
}
/* Main uploader card gets a soft gradient halo so it reads as the page's focus. */
.card.uploader {
  position: relative;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-dim);
}
.center-card { text-align: center; }

/* ── Dropzone ──────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--line2);
  border-radius: 14px;
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.dropzone:hover, .dropzone:focus, .dropzone.drag {
  border-color: var(--brand);
  background: var(--brand-dim);
  box-shadow: inset 0 0 0 1px var(--brand-dim), 0 0 24px var(--brand-dim);
  outline: none;
}
.dropzone:hover .dz-icon, .dropzone.drag .dz-icon { transform: translateY(-4px); }
.dz-icon { color: var(--brand); margin-bottom: 14px; transition: transform .2s ease; }
.dz-title { font-size: 20px; font-weight: 700; margin: 8px 0 6px; }
.dz-sub { color: var(--muted); margin: 4px 0; }
.dz-limit { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ── Progress ──────────────────────────────────────────────── */
.progress { height: 5px; background: var(--bg3); border-radius: 99px; margin-top: 18px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand2), var(--brand)); transition: width .2s; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .07s, background .15s, box-shadow .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
}
.btn.primary:hover { box-shadow: 0 6px 22px var(--brand-glow); filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.copied { background: var(--ok); color: #fff; border-color: transparent; }

/* ── Result / copy rows ────────────────────────────────────── */
.result { margin-top: 22px; }
.result-links label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.copy-row { display: flex; gap: 8px; margin-top: 6px; }
.copy-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.copy-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.preview { max-width: 100%; max-height: 380px; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 0 auto 22px; box-shadow: var(--shadow-sm); }
.error { color: var(--err); margin-top: 14px; font-weight: 600; font-size: 14px; }

/* ── Shortener ─────────────────────────────────────────────── */
.shortener { margin-top: 0; }
.shortener h2 { margin: 0 0 18px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.shortener .copy-row input { font-size: 16px; padding: 13px 16px; }
.shortener .btn.primary { padding: 13px 24px; font-size: 16px; }

/* ── Features ──────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.feature:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
}
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── Image view ────────────────────────────────────────────── */
.iv-toolbar { display: flex; justify-content: center; margin-bottom: 14px; }
.iv-stage { text-align: center; overflow: auto; max-height: 72vh; border-radius: 12px; }
.iv-stage img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 0 auto; box-shadow: var(--shadow-sm); }
.iv-zoom-bar { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; box-shadow: var(--shadow-sm); }
.iv-zoom-btn { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s; }
.iv-zoom-btn:hover:not(:disabled) { background: var(--btn-hover); border-color: var(--brand); }
.iv-zoom-btn:disabled { opacity: .45; cursor: default; }
#ivZoomLevel { min-width: 48px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.iv-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; justify-content: center; }
.iv-meta span { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* ── Ads ───────────────────────────────────────────────────── */
.ad-slot { margin: 20px 0; min-height: 90px; text-align: center; }

/* ── Prose / blog ──────────────────────────────────────────── */
.prose { line-height: 1.8; }
.prose h1 { margin-top: 0; font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.prose h2 { margin-top: 2em; margin-bottom: .5em; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose p:last-child { margin-bottom: 0; }
.prose a { font-weight: 500; }
.post-list { display: grid; gap: 16px; }
.post-card { transition: box-shadow .22s, transform .22s; }
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.post-card h2 a { color: var(--text); transition: color .15s; }
.post-card h2 a:hover { color: var(--brand); text-decoration: none; }
.post-date { color: var(--muted); font-size: 13px; margin: 0 0 10px; font-weight: 500; }
.read-more { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.post-body h2 { margin-top: 1.75em; }
.post-body ol, .post-body ul { padding-left: 24px; }
.post-body li { margin: 6px 0; line-height: 1.7; }
.prose code, .post-body code { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: .87em; font-family: ui-monospace, Menlo, Consolas, monospace; }
kbd { display: inline-block; background: var(--bg2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 8px; font: 600 12px/1.65 ui-monospace, Menlo, Consolas, monospace; color: var(--text); }

/* ── Install steps ─────────────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 18px 0; }
.steps > li { position: relative; padding: 4px 0 18px 54px; margin: 0; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--brand-glow);
}
.steps ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.steps ul li { color: var(--muted); margin: 4px 0; }

/* ── 404 ───────────────────────────────────────────────────── */
.center-card { text-align: center; padding: 56px 28px; }
.center-card h1 { font-size: 48px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.03em; }
.center-card p { color: var(--muted); margin: 0 0 24px; }

/* ── Footer — always dark ──────────────────────────────────── */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #080c18;
  padding: 52px 0 28px;
  margin-top: auto;
  color: rgba(200,212,240,.78);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand p { color: rgba(150,162,196,.58); font-size: 14px; max-width: 290px; margin: 12px 0 0; line-height: 1.7; }
.footer-col h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: rgba(150,162,196,.44); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; color: rgba(198,210,238,.62); margin-bottom: 10px; font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); color: rgba(150,162,196,.38); font-size: 13px; }
.footer-bottom a { color: rgba(108,140,255,.8); transition: color .15s; }
.footer-bottom a:hover { color: #fff; }

/* ── Hero visual (decorative browser mockup) ─────────────────── */
.hero-visual { display: flex; justify-content: center; margin: 8px 0 40px; }
.hero-visual svg { display: block; filter: drop-shadow(0 20px 40px rgba(15,21,35,.12)); animation: hero-float 5s ease-in-out infinite; }
:root[data-theme="dark"] .hero-visual svg { filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── How it works ──────────────────────────────────────────── */
.section-heading { text-align: center; margin: 56px 0 28px; }
.section-heading h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.section-heading p { color: var(--muted); margin: 0; font-size: 16px; }
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.how-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.how-step-num {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px var(--brand-glow);
}
.how-step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.how-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── FAQ accordion ─────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ── Card grid (contact page) ─────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.card-grid .feature { text-align: left; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .how-it-works { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  main.container { padding-top: 28px; padding-bottom: 52px; }
  .header-inner { height: 62px; }
  .theme-toggle { top: 11px; right: 14px; }
  .mobile-nav { top: 62px; }
  .nav-toggle { margin-right: 62px; }
  .hero { padding: 36px 0 16px; }
  .hero-badge { font-size: 12px; padding: 4px 12px; margin-bottom: 16px; }
  .lead { font-size: 16px; }
  .card { padding: 20px 18px; border-radius: 14px; }
  .features { grid-template-columns: 1fr; gap: 12px; margin: 20px 0; }
  .shortener h2 { font-size: 19px; }
  .copy-row { flex-direction: column; }
  .copy-row .btn { width: 100%; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { justify-content: center; }
  .dropzone { padding: 36px 16px; }
  .prose h1 { font-size: 24px; }
  .prose h2 { font-size: 18px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-visual { margin: 0 0 28px; }
  .hero-visual svg { width: 100%; max-width: 320px; }
  .section-heading { margin: 40px 0 20px; }
  .section-heading h2 { font-size: 22px; }
  .how-step { padding: 20px 18px; }
  .faq-item summary { padding: 14px 26px 14px 0; font-size: 15px; }
}

/* ── Image view links ──────────────────────────────────────── */
.iv-links { max-width: 640px; margin: 6px auto 0; text-align: left; }
.iv-links .result-actions { justify-content: center; margin-top: 16px; }

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Code share: paste form ────────────────────────────────── */
.paste-fields { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.paste-fields label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.pf-title { flex: 1 1 260px; }
.pf-lang { flex: 0 0 200px; }
.pf-opt { color: var(--muted); font-weight: 400; }
.paste-fields input, .paste-fields select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg2); color: var(--text);
}
.paste-fields input:focus, .paste-fields select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim);
}
.paste-input {
  width: 100%; min-height: 320px; resize: vertical; box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.55; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg2); color: var(--text); tab-size: 4; white-space: pre; overflow: auto;
}
.paste-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.paste-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.paste-limit { color: var(--muted); font-size: .85rem; }

/* ── Code share: snippet view ──────────────────────────────── */
.cv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cv-title h1 { font-size: 1.25rem; margin: 0 0 8px; word-break: break-word; }
.cv-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.cv-lang { color: var(--brand); font-weight: 700; }
.cv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-code {
  display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg2); overflow: hidden;
}
.cv-gutter, .cv-body {
  margin: 0; padding-top: 14px; padding-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.55; tab-size: 4;
}
.cv-gutter {
  flex: 0 0 auto; padding-left: 14px; padding-right: 14px; text-align: right;
  color: var(--muted); border-right: 1px solid var(--line);
  user-select: none; white-space: pre;
}
.cv-body { flex: 1 1 auto; min-width: 0; padding-left: 16px; padding-right: 16px; overflow-x: auto; color: var(--text); white-space: pre; }
.cv-body code { font: inherit; white-space: pre; background: none; padding: 0; }
.cv-share { margin-top: 18px; max-width: 640px; }
.cv-share label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }

/* ── Motion preferences ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual svg { animation: none; }
  .hero-badge::before { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
