/* Pinboard Clip – same look as the App Store screenshots (AppStoreAssets/src/shots.html). */

:root {
  --accent: #2f7cf6;
  --accent-deep: #1f5fd0;
  --violet: #6d5cff;
  --coral: #ff7a59;
  --teal: #1fb5a6;
  --star: #f5b400;
  --ink: #1d1d1f;
  --ink-soft: #5f6270;
  --card: #ffffff;
  --line: #e6e7ee;
  --bg: #f5f6fb;
  --shadow: 0 12px 34px rgba(27, 31, 75, 0.12);
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f2f7;
    --ink-soft: #a9abbb;
    --card: #1c1d2e;
    --line: #2c2e44;
    --bg: #11121f;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --ink: #f2f2f7;
  --ink-soft: #a9abbb;
  --card: #1c1d2e;
  --line: #2c2e44;
  --bg: #11121f;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); font-weight: 600; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

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

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 7px 13px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--accent); }

/* Header sitting on the dark hero */
.on-dark .brand, .on-dark .nav a { color: #fff; }
.on-dark .nav a:hover, .on-dark .nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }

.foot {
  padding: 40px 0 48px; text-align: center; color: var(--ink-soft); font-size: 14px;
}
.foot nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; color: #fff; text-decoration: none;
  background: var(--accent); border: 0; border-radius: 12px; cursor: pointer;
  padding: 13px 22px;
  box-shadow: 0 6px 18px rgba(47, 124, 246, 0.35);
  transition: transform 0.08s ease, filter 0.08s ease;
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

kbd {
  font-family: var(--sans); font-weight: 600; font-size: .92em;
  display: inline-block; min-width: 1.9em; text-align: center;
  padding: 1px 7px; border-radius: 7px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line);
}

/* ---------- home: hero ---------- */

.hero-band {
  color: #fff;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(109, 92, 255, .9) 0%, transparent 60%),
    radial-gradient(700px 520px at 0% 100%, rgba(255, 122, 89, .75) 0%, transparent 55%),
    linear-gradient(135deg, #1b1f4b, #2a1846);
  padding-bottom: 64px;
}
.hero { text-align: center; padding: 40px 0 0; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 22px auto 14px; max-width: 14ch; }
.hero p.lead { font-size: clamp(18px, 2.3vw, 22px); opacity: .88; margin: 0 auto 28px; max-width: 40ch; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .req { margin-top: 16px; font-size: 14px; opacity: .7; }
.hero .shot {
  display: block; width: 100%; max-width: 960px; margin: 48px auto 0; height: auto;
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15);
}

.hero .shot.video { aspect-ratio: 16 / 9; background: #1b1f4b; object-fit: cover; }

/* ---------- home: features ---------- */

.section { padding: 64px 0 8px; }
.section > h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; margin: 0 auto 10px; max-width: 20ch; }
.section > p.sub { text-align: center; color: var(--ink-soft); font-size: 18px; margin: 0 auto 32px; max-width: 46ch; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature h3 { margin: 12px 0 4px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.dot {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
}
.dot svg { width: 22px; height: 22px; }

/* Alternating screenshot rows */
.showcase { display: grid; gap: 56px; margin-top: 8px; }
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.row.flip { grid-template-columns: 1.25fr 1fr; }
.row.flip .text { order: 2; }
.row .text h3 { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 10px; }
.row .text p { color: var(--ink-soft); font-size: 17px; margin: 0 0 12px; }
.row img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}

/* Shortcut table */
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.keys div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.keys div span:last-child { color: var(--ink-soft); text-align: right; }

/* Final CTA */
.closing { text-align: center; padding: 56px 24px; margin-top: 64px; }
.closing h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; }
.closing p { color: var(--ink-soft); margin: 0 0 22px; font-size: 17px; }

/* ---------- legal pages ---------- */

.doc { margin: 10px 0 30px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc .meta { color: var(--ink-soft); font-weight: 600; margin: 0 0 18px; }
.doc h2 { font-size: 20px; font-weight: 700; margin: 28px 0 6px; color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc code { font-family: var(--mono); font-size: .9em; background: var(--bg); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.doc .summary {
  background: linear-gradient(135deg, #eef4ff, #f2efff);
  border-radius: 16px; padding: 16px 18px; font-weight: 600; color: #1b1f4b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc .summary { background: #24264a; color: var(--ink); }
}
:root[data-theme="dark"] .doc .summary { background: #24264a; color: var(--ink); }

/* ---------- support form ---------- */

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form .hint, .hint { font-weight: 500; color: var(--ink-soft); font-size: 14px; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 13px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: 12px; padding: 13px 15px; font-weight: 600; display: none; }
.status.ok { display: block; background: #dff7f1; color: #17705f; }
.status.err { display: block; background: #ffe3e6; color: #a8263a; }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 18px; }
  .row.flip .text { order: 0; }
  .keys { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .top { flex-wrap: wrap; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .hero-band { padding-bottom: 40px; }
}
