/* ============================================================
   The Slow Bleed — shared styles
   Warm near-black, ember red, Spectral + IBM Plex
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0e0c0a;
  --panel: #16130f;
  --panel-2: #14110d;
  --line: rgba(242,237,226,0.10);
  --line-strong: rgba(242,237,226,0.16);
  --ink: #f2ede2;
  --ink-soft: #c9c0b2;
  --muted: #a99f8f;
  --faint: #6f665a;
  --ember: #b8402e;
  --ember-bright: #d4553f;
  --green: #97c459;
  --amber: #ef9f27;
  --red: #f09595;
  --violet: #8a82e0;
  --serif: 'Spectral', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: var(--ember); color: #fff; }
a { color: var(--ember-bright); text-decoration: none; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- layout ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 0 40px; }
.rise { animation: riseIn 0.4s ease; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(14,12,10,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand .tick { width: 9px; height: 26px; background: var(--ember); border-radius: 1px; }
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: 0.13em; white-space: nowrap; }
.brand .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin-top: 2px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ember); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 14px; flex-shrink: 0; }
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(151,196,89,0.4); border-radius: 2px; color: var(--green); white-space: nowrap; }

/* ---------- type ---------- */
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--ember); text-transform: uppercase; }
h1.display { font-family: var(--serif); font-weight: 700; font-size: clamp(34px,5vw,56px); line-height: 1.05; letter-spacing: -0.015em; margin: 22px 0; }
h2.section { font-family: var(--serif); font-weight: 700; font-size: clamp(28px,3.5vw,40px); line-height: 1.08; margin: 0 0 14px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.divider .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.divider .rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 24px; text-align: center; font-size: 15px; border-radius: 3px; cursor: pointer; border: none; font-family: var(--sans); transition: all 0.2s; }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-bright); }
.btn-primary:disabled { background: #2a231c; color: var(--faint); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: rgba(242,237,226,0.35); }
.btn-block { display: block; width: 100%; }

/* ---------- inputs ---------- */
.field { font-family: var(--sans); font-size: 15px; background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 3px; padding: 13px 15px; width: 100%; }
.field:focus { outline: none; border-color: var(--ember); }
.field::placeholder { color: var(--faint); }

/* ---------- cards ---------- */
.card { padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-tools { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 14px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

/* pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(184,64,46,0.4); }
.price-kick { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.price-name { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.price-fig { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 18px; }
.price-fig .amt { font-family: var(--serif); font-size: 30px; }
.price-fig .per { font-size: 13px; color: var(--muted); }
.feat { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); margin-bottom: 10px; }
.feat .m { flex-shrink: 0; }

/* tool tiles */
.tool { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.tool:hover { border-color: rgba(184,64,46,0.5); transform: translateY(-3px); }
.tool.locked { opacity: 0.6; cursor: default; }
.tool.locked:hover { transform: none; border-color: var(--line); }
.tool .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tool .t { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.2; margin: 16px 0 6px; }
.tool .s { font-size: 12.5px; color: var(--muted); }
.pill { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 2px; }
.pill.open { background: rgba(151,196,89,0.15); color: var(--green); }
.pill.lock { background: rgba(242,237,226,0.06); color: var(--violet); }

/* notice strip */
.notice { background: rgba(184,64,46,0.08); border-bottom: 1px solid rgba(184,64,46,0.2); padding: 9px 40px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: #d4a99c; text-align: center; text-transform: uppercase; }

/* otp cells */
.otp-row { display: flex; gap: 10px; margin: 20px 0; }
.otp-cell { flex: 1; height: 60px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 26px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 4px; }
.otp-cell.filled { border-color: var(--ember); }
.otp-cell.active { border-color: rgba(184,64,46,0.5); }
.otp-cell.error { border-color: var(--red); }
.caret { display: inline-block; width: 2px; height: 22px; background: var(--ember); animation: caret 1s step-end infinite; vertical-align: middle; }

.hidden { display: none !important; }
.msg-error { font-size: 13px; color: var(--red); margin-top: 12px; }
.msg-ok { font-size: 13px; color: var(--green); margin-top: 12px; }
footer.site { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0; color: var(--faint); font-size: 13px; }
