/* PasteNinja — colours from the app icon: blue 4A69D4, highlight 5778E7,
   shadow 1F3983, fold 9FB4FB, ink 191F32. */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #141726;
  --text-2: #5c6378;
  --text-3: #7e859a;
  --border: rgba(20, 23, 38, 0.1);
  --brand: #3553d4;
  --brand-soft: #e9eeff;
  --hero-from: #1f3983;
  --hero-to: #5778e7;
  --max: 960px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121626;
    --surface: #1c2238;
    --text: #eef0f7;
    --text-2: #a2a8bd;
    --text-3: #7c8298;
    --border: rgba(238, 240, 247, 0.1);
    --brand: #9fb4fb;
    --brand-soft: rgba(87, 120, 231, 0.18);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

header.site { border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; white-space: nowrap; flex-shrink: 0; }
header.site .brand img { width: 28px; height: 28px; }
header.site nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--text-2); }
header.site nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; text-align: center; padding: 72px 20px 64px; }
.hero img.icon { width: 132px; height: 132px; margin: 0 auto 20px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25)); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { font-size: clamp(17px, 2.2vw, 21px); margin: 0 auto 28px; max-width: 620px; opacity: 0.9; }
.store-badge { display: inline-block; }
.store-badge img { height: 52px; width: auto; }
.store-badge:hover { opacity: 0.92; }
.hero small { display: block; margin-top: 14px; opacity: 0.75; font-size: 14px; }

section.features { padding: 64px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

section.shots { padding: 40px 0 64px; }
.shots figure { margin: 0 0 28px; }
.shots img { border-radius: 14px; border: 1px solid var(--border); }

.pricing { padding: 0 0 64px; }
.pricing .grid .card strong { font-size: 22px; display: block; margin: 4px 0; }

main.doc { padding: 48px 0 72px; }
main.doc h1 { font-size: 36px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
main.doc .meta { color: var(--text-3); margin: 0 0 32px; font-size: 15px; }
main.doc h2 { font-size: 21px; margin: 36px 0 8px; }
main.doc p, main.doc li { color: var(--text-2); font-size: 16px; }
main.doc strong { color: var(--text); }
main.doc ul { padding-left: 20px; }
main.doc .summary { background: var(--brand-soft); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; }
main.doc .summary p { margin: 0; color: var(--text); }
main.doc details { border-bottom: 1px solid var(--border); padding: 14px 0; }
main.doc summary { cursor: pointer; font-weight: 600; color: var(--text); }
main.doc details p { margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 24px; padding-bottom: 40px; }
footer.site nav { margin-left: auto; display: flex; gap: 16px; }
footer.site a { color: var(--text-2); }

@media (max-width: 600px) {
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  header.site nav { margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; font-size: 14px; }
  footer.site nav { margin-left: 0; }
}

/* Interactive layer (animated by main.js with GSAP). */
.hero { position: relative; overflow: hidden; perspective: 900px; }
.hero > * { position: relative; }
.hero .stage { position: absolute; inset: 0; pointer-events: none; }
.hero .chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px; font-size: 13px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(10, 20, 60, 0.25);
}
.hero .chip.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.hero .chip.link::before { content: "↗"; opacity: 0.7; }
.hero .chip.color i { width: 12px; height: 12px; border-radius: 4px; background: #5778e7; border: 1px solid rgba(255, 255, 255, 0.6); }
.hero .chip:nth-child(1) { left: 7%; top: 18%; }
.hero .chip:nth-child(2) { right: 8%; top: 14%; }
.hero .chip:nth-child(3) { left: 11%; top: 58%; }
.hero .chip:nth-child(4) { right: 12%; top: 50%; }
.hero .chip:nth-child(5) { left: 4%; bottom: 10%; }
.hero .chip:nth-child(6) { right: 5%; bottom: 14%; }
.hero img.icon { transform-style: preserve-3d; }
.hero .line { display: inline-block; }
.hero .keys { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; font-size: 14px; }
.hero kbd {
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: #fff;
  padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.hero .keys span { margin-left: 6px; opacity: 0.8; }

.section-title { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.01em; margin: 0 0 20px; }
.lead { color: var(--text-2); max-width: 720px; margin: 0 0 24px; }
.fine { color: var(--text-3); font-size: 14px; }

.card { position: relative; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; will-change: transform; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(87, 120, 231, 0.16), transparent 70%);
}
.card:hover { border-color: rgba(87, 120, 231, 0.45); box-shadow: 0 14px 40px rgba(31, 57, 131, 0.14); }
.card:hover::after { opacity: 1; }
.plan.best { border-color: rgba(87, 120, 231, 0.55); }
.plan .badge {
  position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); padding: 3px 9px; border-radius: 999px;
}

.shots figure { perspective: 1200px; }
.shots img { box-shadow: 0 24px 60px rgba(20, 30, 70, 0.18); }
.shots figcaption { text-align: center; color: var(--text-2); font-size: 15px; margin-top: 12px; }

main.doc details .answer { overflow: hidden; }
main.doc summary { list-style: none; position: relative; padding-right: 28px; }
main.doc summary::-webkit-details-marker { display: none; }
main.doc summary::after { content: "+"; position: absolute; right: 4px; top: -1px; font-size: 20px; color: var(--text-3); transition: transform 0.25s; }
main.doc details[open] summary::after { transform: rotate(45deg); }

@media (max-width: 1100px) {
  .hero .chip:nth-child(3), .hero .chip:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .hero .chip:nth-child(n+3) { display: none; }
  .hero .chip:nth-child(1) { top: 5%; left: 4%; }
  .hero .chip:nth-child(2) { top: 5%; right: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card::after, main.doc summary::after { transition: none; }
}

/* About: people cards. */
main.doc .people { margin-top: 12px; }
main.doc .people .card h3 { font-size: 19px; }
main.doc .people .card p { font-size: 15px; }
main.doc .role { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 999px; margin-bottom: 10px; }
