/* Snippet Vault site - mirrors the local web UI's look:
   same dark palette, pane structure, gold accent and type stack. */
:root {
  --bg: #0b0f17;        /* app background */
  --card: #131c2b;      /* app cards/panes */
  --line: #1f2a3d;      /* app borders */
  --ink: #e7edf7;
  --muted: #93a1b8;
  --gold: #f5b642;      /* app gold */
  --accent: #6ea8fe;    /* app blue */
  --code-bg: #0a0e15;   /* app code blocks */
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--code-bg); padding: 1px 6px; border: 1px solid var(--line); }

/* ---- topbar, like the app's ---- */
nav { border-bottom: 1px solid var(--line); background: rgba(11, 15, 23, 0.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); }
.nav-links a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

/* ---- hero ---- */
.intro { padding: 68px 0 52px; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: 32px; line-height: 1.25; font-weight: 700; margin-bottom: 20px; }
.intro h1 em, .intro h1 .hl { color: var(--accent); font-style: normal; }
.lead { max-width: 640px; margin-bottom: 12px; color: var(--muted); font-size: 16.5px; }
.lead strong { color: var(--ink); font-weight: 600; }
.fineprint { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.cta-row { display: flex; gap: 14px; margin-top: 26px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); background: var(--card); text-decoration: none;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.plain { background: none; border-color: transparent; color: var(--muted); font-weight: 400; }
.btn.plain:hover { color: var(--ink); text-decoration: underline; }
.btn.tiny { padding: 4px 12px; font-size: 12.5px; }

section { padding: 52px 0; border-bottom: 1px solid var(--line); }
h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.sub { color: var(--muted); font-size: 14.5px; max-width: 660px; margin-bottom: 22px; }

/* ---- "what it is" as the app's three panes ---- */
.panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.col { padding: 20px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.col:last-child { border-right: none; }
.col h3 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.col p { font-size: 14.5px; color: var(--muted); }
.col p strong { color: var(--ink); font-weight: 600; }

.card { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 20px 24px; }
.card p { margin-bottom: 12px; font-size: 15px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card a, a.ln { color: var(--accent); }

/* ---- command blocks, like the app's code-block ---- */
.cmd { border: 1px solid var(--line); background: var(--code-bg); border-radius: 10px; padding: 13px 16px; margin-bottom: 14px; overflow-x: auto; }
.cmd .os { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.cmd code { background: none; border: none; padding: 0; font-size: 13.5px; display: block; white-space: nowrap; color: var(--ink); }
.cmd .line { padding: 1px 0; }

/* ---- pricing cards, like app rows ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price { font-size: 26px; font-weight: 700; }
.price .per { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; flex: 1; }
.plan li { font-size: 14px; padding: 4px 0 4px 20px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
.plan .btn { text-align: center; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
footer a { color: var(--muted); }

/* ---- editorial: hero grid, figures, section numbers ---- */
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
.hero-fig { margin: 0; text-align: center; }
.hero-fig svg { width: 100%; max-width: 290px; height: auto; }
.hero-fig figcaption, .flow-fig figcaption, .shot figcaption {
  font-size: 13px; color: var(--muted); margin-top: 10px;
}
.flow-fig { margin: 30px 0 0; }
.flow-fig svg { width: 100%; height: auto; }
.shot { margin: 6px 0 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 12px; }
h2 .no {
  display: inline-block; font-size: 12.5px; color: #1a1305; background: var(--gold);
  min-width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 6px;
  margin-right: 12px; vertical-align: 2px; font-family: var(--mono); font-weight: 700;
}

/* ---- update box ---- */
.update-box { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 20px 22px; margin-top: 26px; }
.update-box h3 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.upd-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upd-out { font-size: 14.5px; color: var(--muted); }
.upd-out[data-tone="ok"] { color: var(--gold); }
.upd-out[data-tone="warn"] { color: var(--ink); }
.upd-commands { margin-top: 14px; }
.upd-cmd { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.upd-cmd code { background: var(--code-bg); border: 1px solid var(--line); padding: 6px 10px; flex: 1; }
.upd-cmd.muted-cmd code { opacity: 0.55; }

@media (max-width: 780px) {
  .intro-grid { grid-template-columns: 1fr; }
  .hero-fig { max-width: 230px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .intro h1 { font-size: 25px; }
  .nav-links a { margin-left: 13px; }
}

/* ---- paypal checkout ---- */
.pay-button { min-height: 52px; display: flex; flex-direction: column; }
.pay-result {
  margin-top: 22px; background: var(--card); border: 1px solid var(--gold);
  border-radius: 12px; padding: 24px;
}
.pay-head { font-size: 16.5px; font-weight: 700; margin-bottom: 14px; }
.key-box {
  display: flex; align-items: center; gap: 12px; background: var(--code-bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.key-box code { color: var(--gold); font-size: 14.5px; word-break: break-all; border: none; background: none; }
.pay-sub { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pay-result .cmd { margin: 10px 0 12px; }

/* ---- key ownership: save warning + recovery ---- */
.save-warn { color: var(--gold); margin-top: 10px; }
.recover-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--code-bg); }
.recover-box summary { color: var(--muted); font-size: 14px; cursor: pointer; }
.recover-form { display: flex; gap: 10px; flex-wrap: wrap; }
.recover-form input {
  flex: 1; min-width: 200px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font-family: var(--mono); font-size: 13px;
}
#recover-out { margin-top: 10px; }

/* custom buy button + revealed paypal buttons */
.custom-buy { width: 100%; text-align: center; }
.custom-buy.muted-buy { opacity: 0.55; font-weight: 400; font-size: 13px; padding: 6px 16px; }
.pp-hidden { margin-top: 10px; min-height: 48px; }

/* ---- checkout modal layer + guide steps ---- */
.pp-overlay {
  position: fixed; inset: 0; background: rgba(5, 8, 14, 0.78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
/* White "receipt" theme: PayPal requires its buttons to sit unaltered on a
   plain light background with clear space around them, so the whole checkout
   card is a clean bill-style white page regardless of the site's dark look. */
.pp-modal {
  background: #ffffff; border: 1px solid #d9dee8; border-radius: 14px;
  padding: 28px; width: 100%; max-width: 420px; position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); color: #10151f;
}
.pp-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  color: #8a93a5; font-size: 22px; cursor: pointer;
}
.pp-close:hover { color: #10151f; }
.pp-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: #10151f; }
.pp-price { font-size: 26px; font-weight: 700; color: #10151f; margin-bottom: 6px; }
.pp-price span { font-size: 13px; color: #5b6472; font-weight: 400; }
.pp-btns {
  min-height: 52px; margin: 16px 0 12px; padding: 16px 12px 10px;
  border-top: 1px solid #e6e9ef; background: #ffffff;
  overflow: hidden; border-radius: 8px;
}
.pp-note { font-size: 13px; color: #5b6472; }
/* the key-delivery panel rides inside the modal while it is open - keep it
   light too; scoped so it reverts to the dark section styles when closed */
.pp-modal .pay-result { margin-top: 14px; background: #f6f8fb; border: 1px solid #e3e7ee; }
.pp-modal .pay-head { color: #10151f; }
.pp-modal .pay-sub { color: #5b6472; }
.pp-modal .save-warn { color: #8a5a00; }
.pp-modal .key-box { background: #ffffff; border-color: #d9dee8; }
.pp-modal .key-box code { color: #0b57d0; }
.pp-modal .cmd { background: #eef1f6; border-color: #e3e7ee; }
.pp-modal .cmd code { color: #10151f; }

.guide-step { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 20px 24px; margin-bottom: 18px; }
.guide-step h3 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.guide-step p { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.guide-step p code { color: var(--accent); }

.guide-list {
  margin: 10px 0 0;
  padding-left: 20px;
}
.guide-list li {
  margin-bottom: 8px;
}

.stat-band {
  margin: 26px 0 0;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.stat-card {
  background: var(--panel, #131c2b);
  border: 1px solid var(--border, #1f2a3d);
  border-radius: 10px;
  padding: 16px 18px;
}
.stat-num {
  font-family: Georgia, serif;
  font-size: 30px;
  color: #f5b642;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted, #9fb0c8);
}
.stat-note {
  font-size: 12px;
  color: var(--muted-dim, #6b7c95);
  margin-top: 12px;
}
