/* =====================================================================
   MultiClipboard — shared styles
   Visual system: keyboard keycaps on a desk mat.
   Palette: keycap plastic neutrals + one cobalt accent.
   Type: IBM Plex Sans (display/body) + IBM Plex Mono (keys, slots, data).
   ===================================================================== */

:root {
  --desk: #e8e9e2;        /* desk-mat background */
  --panel: #f4f4ef;       /* raised panels */
  --key-top: #fcfcf9;     /* keycap face */
  --key-edge: #b9bab0;    /* keycap rim */
  --ink: #1a1c1f;         /* legends / text */
  --muted: #5d6167;
  --line: #cfd0c7;
  --accent: #2149d6;      /* cobalt — the "slot" color */
  --accent-soft: #dfe5fb;
  --good: #14713d;

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- keycaps: the site's core visual unit ---------- */

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  padding: 0.18em 0.55em 0.28em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--key-top), #efefe8);
  border: 1px solid var(--key-edge);
  border-bottom-width: 4px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  user-select: none;
  vertical-align: baseline;
  transition: transform 90ms ease, border-bottom-width 90ms ease;
}

.key--accent {
  color: #fff;
  background: linear-gradient(180deg, #3a5ee6, var(--accent));
  border-color: #16339c;
}

.key.is-pressed {
  transform: translateY(3px);
  border-bottom-width: 1px;
}

.combo {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}

.combo .plus { color: var(--muted); font-family: var(--font-mono); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--desk) 88%, white);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

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

.brand img { width: 26px; height: 26px; display: block; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #3a5ee6, var(--accent));
  border: 1px solid #16339c;
  border-bottom-width: 4px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 90ms ease, border-bottom-width 90ms ease;
}

.btn:active { transform: translateY(3px); border-bottom-width: 1px; }

.btn--ghost {
  color: var(--ink);
  background: linear-gradient(180deg, var(--key-top), #efefe8);
  border-color: var(--key-edge);
}

.btn--small { padding: 7px 14px 9px; font-size: 14px; }

/* ---------- shared section chrome ---------- */

section { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 14px; }

.lede { color: var(--muted); max-width: 62ch; margin: 0; }

.meta {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero { padding: 84px 0 64px; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: center;
}

.demo { max-width: 620px; justify-self: stretch; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 700;
  margin: 0 0 18px;
}

.hero h1 .accent { color: var(--accent); }

.hero p.pitch {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 50ch;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.hero .meta { margin-top: 14px; }

/* the live demo card */

.demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 24px;
  box-shadow: 0 18px 40px -28px rgba(26, 28, 31, 0.45);
}

.demo-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  min-height: 1.4em;
  margin: 0 0 16px;
}

.demo-keys {
  display: flex;
  gap: 12px;
  font-size: 26px;
  margin-bottom: 26px;
}

.demo-keys .key { min-width: 2.3em; padding-top: 0.3em; padding-bottom: 0.4em; }

.slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.slot {
  background: var(--key-top);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px 8px;
  min-height: 58px;
  min-width: 0;
  overflow: hidden;
}

.slot .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.slot .val {
  font-family: var(--font-mono);
  font-size: 12px;
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.slot.is-hot {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.slot.is-hot .n { color: var(--accent); font-weight: 600; }

/* ---------- problem strip ---------- */

.problem {
  padding: 0;
}

.problem .wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 34px;
  padding-bottom: 34px;
  text-align: center;
}

.problem p {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 600;
}

.problem p span { color: var(--muted); font-weight: 400; }

/* ---------- how it works ---------- */

.how-table {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.how-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.how-row:last-child { border-bottom: none; }

.how-row.head {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 60%, var(--desk));
  padding-top: 12px;
  padding-bottom: 12px;
}

.how-row .what { font-weight: 600; }

.how-row .result { color: var(--muted); font-size: 15.5px; }

.controls-note {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-size: 15px;
  color: var(--muted);
}

.controls-note .combo { font-size: 14px; }

/* ---------- features ---------- */

.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
}

.card .k {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.card h3 { font-size: 18px; margin: 0 0 8px; }

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

/* ---------- value props ---------- */

.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 36px; }

.prop h3 { font-size: 20px; margin: 0 0 8px; }

.prop h3 .combo { font-size: 15px; margin-left: 6px; }

.prop p { margin: 0; color: var(--muted); }

/* ---------- download ---------- */

.download-box {
  margin-top: 36px;
  background: var(--ink);
  color: #f2f2ee;
  border-radius: 18px;
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.download-box .info { flex: 1 1 320px; }

.download-box h3 { margin: 0 0 6px; font-size: 24px; }

.download-box .meta { color: #b9bcc2; }

.download-box .btn { font-size: 17px; padding: 14px 26px 17px; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  flex-shrink: 0;
}

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

.faq details p { margin: 0 0 16px; color: var(--muted); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  font-size: 14.5px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
}

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

.site-footer .spacer { margin-left: auto; }

/* ---------- donate page ---------- */

.donate-hero { padding: 84px 0 24px; }

.donate-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 16px; }

.wallets { margin-top: 20px; display: grid; gap: 16px; max-width: 820px; }

.wallet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
}

.wallet .sym {
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}

.wallet .name { font-weight: 600; }

.wallet .addr {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
  background: var(--key-top);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  word-break: break-all;
  user-select: all;
}

.wallet .copy-btn { justify-self: end; }

.copy-btn.is-done {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 40%, var(--key-edge));
}

/* ---------- responsive & motion ---------- */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .how-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .how-row.head { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a.hide-sm { display: none; }
}

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