/* Pastebird website. No external fonts or scripts: system font stack, light/dark via prefers-color-scheme. */

:root {
  --bg: #f7fafd;
  --bg-alt: #eef4fb;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --text-muted: #526075;
  --border: rgba(15, 23, 42, 0.09);
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --sky: #38bdf8;
  --note: #fef08a;
  --beak: #f59e0b;
  --selected: rgba(37, 99, 235, 0.09);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06), 0 30px 70px rgba(37, 99, 235, 0.18);
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1a2e;
    --surface: #131f35;
    --surface-glass: rgba(24, 36, 60, 0.82);
    --text: #e8eef8;
    --text-muted: #9aa8bf;
    --border: rgba(255, 255, 255, 0.09);
    --brand: #60a5fa;
    --brand-strong: #93c5fd;
    --selected: rgba(96, 165, 250, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: 600 0.82em/1.5 var(--font);
  text-align: center;
  white-space: nowrap;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.lead.narrow { margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

section { padding: 88px 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 650 1.15rem var(--font-display); }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 1rem; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a, .lang { color: var(--text-muted); font-size: 0.95rem; }
.nav nav a:hover, .lang:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
.icon-link { display: inline-flex; color: var(--text-muted); }
.icon-link:hover { color: var(--text); }
.icon-link .icon { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-coffee { background: #29abe0; color: #0b2533; box-shadow: 0 8px 22px rgba(41, 171, 224, 0.3); }
.text-link { font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(700px 420px at 10% 90%, rgba(37, 99, 235, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid > *, .privacy-grid > * { min-width: 0; } /* the popup mock's nowrap rows must not widen the column */
.hero-logo { display: block; margin-bottom: 22px; filter: drop-shadow(0 10px 24px rgba(37, 99, 235, 0.35)); }
.hero .lead { font-size: 1.25rem; max-width: 34ch; }
.meta { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.meta.winget { margin-top: 6px; }
.meta code { font-size: 0.95em; background: var(--bg-alt); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; user-select: all; }

/* Popup mock: mirrors the real Pastebird window */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 6%;
  border-radius: 32px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  opacity: 0.9;
  transform: rotate(3deg);
}
.popup {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.popup-search { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 20px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.popup-search .icon { color: var(--text-muted); }
.caret { width: 1.5px; height: 1.2em; background: var(--text); margin-left: -12px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.popup-list { list-style: none; margin: 0; padding: 6px; }
.popup-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  margin: 1px 0;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.popup-list li span { overflow: hidden; text-overflow: ellipsis; }
.popup-list li .icon { color: var(--text-muted); }
.popup-list li.selected { background: var(--selected); }
.popup-list li.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- how it works ---------- */
.how { background: var(--bg-alt); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step p { color: var(--text-muted); margin: 0; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  font-weight: 700;
}

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature { padding: 26px; }
.feature p { color: var(--text-muted); margin: 0; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--selected);
  color: var(--brand);
}
.feature-icon .icon { width: 22px; height: 22px; }

/* ---------- screenshots ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.gallery-item { display: block; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item { cursor: zoom-in; }

/* Overlay for a screenshot (assets/site.js): fills the window, a click around the image closes it. */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px 72px; border: 0; background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 12, 24, 0.85); backdrop-filter: blur(4px); }
.lightbox img { max-width: min(1280px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff;
  font: 400 28px/1 var(--font); cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev, .lightbox-next { top: 50%; margin-top: -22px; font-size: 34px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
html:has(.lightbox[open]) { overflow: hidden; }
@media (max-width: 560px) {
  .lightbox { padding: 64px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; margin-top: 0; }
}

/* ---------- shortcuts ---------- */
.shortcuts { background: var(--bg-alt); }
.shortcut-card { margin-top: 32px; padding: 8px 28px; }
.shortcut-card dl { margin: 0; }
.shortcut { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.shortcut:last-child { border-bottom: 0; }
.shortcut dt { display: flex; gap: 6px; flex-wrap: wrap; }
.shortcut dd { margin: 0; color: var(--text-muted); text-align: right; }

/* ---------- privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
}
.badge .icon { width: 26px; height: 26px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.checklist .icon { color: #16a34a; margin-top: 3px; }

/* ---------- faq ---------- */
.faq details { margin-top: 12px; padding: 0 22px; }
.faq details:first-of-type { margin-top: 32px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); padding-bottom: 6px; }

/* ---------- support & cta ---------- */
.support { background: var(--bg-alt); }
.cta { padding: 96px 0; }
.cta img { margin-bottom: 18px; filter: drop-shadow(0 10px 24px rgba(37, 99, 235, 0.3)); }
.cta p { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- privacy policy page ---------- */
.prose { padding: 56px 0 88px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 16px; }
.prose h2 { font-size: 1.4rem; margin-top: 40px; }
.prose li { margin-bottom: 10px; }
.prose code { font-size: 0.9em; background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; }
.changelog .release { padding: 0; border-top: 1px solid var(--border); margin-top: 40px; }
.changelog .release h2 { display: flex; align-items: center; gap: 10px; margin: 32px 0 2px; }
.changelog .release h3 { font-size: 1rem; margin: 20px 0 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.changelog .release-date { margin: 0; font-size: 0.95rem; }
.pill { font: 600 0.75rem var(--font); padding: 3px 9px; border-radius: 999px; background: var(--selected); color: var(--brand); }

/* ---------- contact page ---------- */
.contact-github, .contact-done { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin: 28px 0; }
.contact-github > .icon, .contact-done > .icon { width: 28px; height: 28px; margin-top: 2px; color: var(--brand); }
.contact-done > .icon { color: #16a34a; }
.contact-github h2, .contact-done h2 { font-size: 1.15rem; margin: 0 0 6px; }
.contact-github p { color: var(--text-muted); }
.contact-done p { margin: 0; color: var(--text-muted); }
.contact-form { padding: 28px 24px; display: grid; gap: 18px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .small-print { margin: 0; font-size: 0.88rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #dc2626; }
.field-error, .form-error { margin: 0; color: #dc2626; font-size: 0.92rem; }
.form-error { padding: 12px 14px; border-radius: 10px; background: rgba(220, 38, 38, 0.08); }
/* The honeypot of the contact form: out of sight for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-color-scheme: dark) {
  .field-error, .form-error { color: #f87171; }
  .field [aria-invalid="true"] { border-color: #f87171; }
}

/* ---------- compare page ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare .lead { max-width: 62ch; }
.table-scroll { overflow-x: auto; margin-top: 28px; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font: 650 1rem var(--font-display); }
.compare-table tbody th { width: 22%; font-weight: 600; color: var(--text-muted); }
.compare-table .ours { background: var(--selected); }
.cmp-yes { display: inline-flex; margin-right: 6px; vertical-align: -3px; color: #16a34a; }
.cmp-no { margin-right: 6px; color: var(--text-muted); }
.small-note { margin-top: 10px; font-size: 0.85rem; }
.choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.choose-grid.two { grid-template-columns: repeat(2, 1fr); }
.choose { padding: 24px; }
.choose p { margin: 0; color: var(--text-muted); }
.choose.ours { border-color: var(--brand); }
.compare-cta { margin-top: 64px; }
.compare-cta h2 { margin-top: 0; }
.features .text-link { display: inline-block; margin-top: 28px; }

/* ---------- phones (assets/site.js) and 404 ---------- */
.is-phone .download-actions, .is-phone .meta.winget { display: none; }
.phone-note:not([hidden]) {
  margin: 28px 0 14px; padding: 18px 20px; display: grid; gap: 12px; justify-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.center .phone-note { justify-items: center; text-align: center; }
.phone-note p { margin: 0; }
.phone-note button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.phone-copied { font-size: 0.9rem; }
.not-found img { margin-bottom: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; }
.footer-grid { display: grid; gap: 10px; justify-items: center; text-align: center; }
.site-footer p { margin: 0; font-size: 0.92rem; }
.small-print { font-size: 0.82rem !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .choose-grid, .choose-grid.two { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .feature-grid, .gallery-grid { grid-template-columns: 1fr; }
  .shortcut { flex-direction: column; align-items: flex-start; gap: 6px; }
  .shortcut dd { text-align: left; }
  .btn { width: 100%; justify-content: center; }
  .nav { gap: 12px; }
  .nav-actions { gap: 10px; }
  .hero-visual::before { inset: 8% 0 -6% 6%; } /* keep the decorative card inside the screen */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn, .gallery-item { transition: none; }
}
