/* Pour it Forward — low-fi wireframe shared styles
   TEMPORARY brand · pending trademark clearance
   Aesthetic: grayscale + blueprint blue boxes (NOT polished UI) */

:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #999;
  --line-strong: #333;
  --fill: #f2f2f2;
  --fill-2: #e6e6e6;
  --white: #fff;
  --blue: #3a6ea5;
  --blue-lt: #d6e4f0;
  --blue-mid: #8eb4d4;
  --annot: #8a5a00;
  --annot-bg: #fff8e6;
  --danger: #8b0000;
  --ok: #1a5c1a;
  --phone-w: 390px;
  --phone-h: 844px;
  --radius: 4px;
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #c8c8c8;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
a { color: var(--blue); }
a:hover { text-decoration: underline; }

/* —— Board / page chrome —— */
.board-header {
  background: #2a2a2a;
  color: #eee;
  padding: 16px 24px;
  border-bottom: 3px solid var(--blue);
}
.board-header h1 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.board-header .meta { color: #aaa; font-size: 11px; }
.board-header .brand-note {
  margin-top: 8px;
  display: inline-block;
  background: #4a3a00;
  color: #ffd87a;
  padding: 3px 8px;
  font-size: 10px;
  border: 1px dashed #c9a227;
}
.board-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  background: #ddd;
  border-bottom: 1px solid var(--line);
}
.board-nav a {
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
}
.board-nav a.active { background: var(--blue-lt); border-color: var(--blue); }
.board-nav a:hover { background: var(--blue-lt); }

.legend {
  margin: 16px 24px;
  padding: 10px 14px;
  background: var(--annot-bg);
  border: 1px dashed var(--annot);
  color: var(--annot);
  font-size: 11px;
  max-width: 920px;
}
.legend strong { color: var(--ink); }

.flow-title {
  margin: 20px 24px 8px;
  font-size: 16px;
  border-left: 4px solid var(--blue);
  padding-left: 10px;
}
.flow-sub {
  margin: 0 24px 16px;
  color: var(--muted);
  font-size: 12px;
  max-width: 900px;
}

.frames {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 8px 24px 48px;
  align-items: flex-start;
}

.frame-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: var(--phone-w);
}
.frame-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.frame-label span {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.annot {
  font-size: 10px;
  color: var(--annot);
  background: var(--annot-bg);
  border: 1px dashed var(--annot);
  padding: 6px 8px;
  line-height: 1.4;
}
.annot code {
  background: #ffe8b0;
  padding: 0 3px;
}

/* —— Phone chrome —— */
.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}
.phone-notch {
  height: 28px;
  background: var(--fill-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--muted);
  flex-shrink: 0;
}
.phone-notch::before {
  content: "";
  width: 90px;
  height: 10px;
  background: #bbb;
  border-radius: 6px;
  margin-right: 8px;
}
.phone-body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--white);
}
.phone-home {
  height: 18px;
  border-top: 1px solid var(--line);
  background: var(--fill);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-home::after {
  content: "";
  width: 100px;
  height: 4px;
  background: #bbb;
  border-radius: 2px;
}

/* —— App chrome inside phone —— */
.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--fill);
  flex-shrink: 0;
}
.app-bar .back {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.app-bar .title {
  font-weight: 700;
  font-size: 13px;
  flex: 1;
}
.app-bar .step {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
  background: var(--white);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 4px;
}
.wordmark .mark {
  width: 28px;
  height: 28px;
  background: var(--fill-2);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--muted);
}
.wordmark .name {
  font-weight: 700;
  font-size: 14px;
}
.wordmark .tag {
  font-size: 9px;
  color: var(--annot);
  display: block;
}
.content {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand {
  margin-top: auto;
  padding: 8px 14px 12px;
  border-top: 1px dashed var(--line);
  font-size: 9px;
  color: var(--annot);
  text-align: center;
  background: var(--annot-bg);
  flex-shrink: 0;
}

/* —— Wireframe UI atoms —— */
.h1 { font-size: 18px; font-weight: 700; margin: 0; }
.h2 { font-size: 14px; font-weight: 700; margin: 0; }
.p { margin: 0; color: var(--muted); font-size: 12px; }
.box {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius);
}
.box.dashed { border-style: dashed; background: var(--fill); }
.box.blue { border-color: var(--blue); background: var(--blue-lt); }
.box.warn { border-color: var(--danger); background: #fde8e8; }
.box.ok { border-color: var(--ok); background: #e8f5e8; }
.label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.field {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  padding: 10px 12px;
  font-size: 14px;
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--muted);
}
.field.filled { color: var(--ink); }
.field.ghost { border-style: dashed; background: var(--fill); }
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
}
.checkbox-row .cb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
}
.checkbox-row.checked .cb {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.checkbox-row.checked .cb::after { content: "✓"; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1.5px solid var(--line-strong);
  padding: 10px 14px;
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  min-width: 64px;
  text-align: center;
}
.chip.selected {
  background: var(--blue-lt);
  border-color: var(--blue);
  border-width: 2px;
}
.chip.ghost { border-style: dashed; color: var(--muted); font-weight: 400; }
.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border: 2px solid var(--line-strong);
  background: var(--fill-2);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}
.btn.primary {
  background: var(--blue);
  border-color: var(--line-strong);
  color: var(--white);
}
.btn.ghost {
  background: var(--white);
  border-style: dashed;
}
.btn.disabled {
  opacity: 0.45;
  background: var(--fill);
}
.btn.sm { padding: 8px 12px; font-size: 12px; width: auto; display: inline-block; }
.row { display: flex; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.divider {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 4px 0;
}
.fee-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fee-table td { padding: 6px 0; border-bottom: 1px solid var(--fill-2); }
.fee-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fee-table tr.total td {
  border-top: 2px solid var(--line-strong);
  border-bottom: none;
  font-weight: 700;
  font-size: 15px;
  padding-top: 10px;
}
.progress {
  display: flex;
  gap: 4px;
  padding: 0 14px 8px;
}
.progress .dot {
  flex: 1;
  height: 4px;
  background: var(--fill-2);
  border: 1px solid var(--line);
}
.progress .dot.on { background: var(--blue); border-color: var(--blue); }
.tabs {
  display: flex;
  border: 1.5px solid var(--line-strong);
}
.tabs .tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--fill);
  border-right: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
}
.tabs .tab:last-child { border-right: none; }
.tabs .tab.active { background: var(--blue-lt); color: var(--blue); }
.status-pill {
  display: inline-block;
  border: 1.5px solid var(--line-strong);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--fill);
}
.status-pill.paid { background: #e8f0ff; border-color: var(--blue); color: var(--blue); }
.status-pill.claimed { background: #e8f5e8; border-color: var(--ok); color: var(--ok); }
.status-pill.active { background: #e8f5e8; border-color: var(--ok); color: var(--ok); }
.status-pill.expired { background: #fde8e8; border-color: var(--danger); color: var(--danger); }
.status-pill.refunded { background: var(--fill-2); }
.list-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  align-items: center;
}
.list-item .thumb {
  width: 44px;
  height: 44px;
  background: var(--fill-2);
  border: 1px dashed var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--muted);
}
.list-item .meta { flex: 1; min-width: 0; }
.list-item .meta .name { font-weight: 700; font-size: 13px; }
.list-item .meta .sub { font-size: 11px; color: var(--muted); }
.list-item .chev { color: var(--muted); font-size: 16px; }
.howto-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.howto-step .n {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line-strong);
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 12px;
}
.shot {
  height: 120px;
  border: 1.5px dashed var(--line-strong);
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}
.otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.otp-boxes .obox {
  width: 42px;
  height: 48px;
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.big-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sms-bubble {
  background: var(--fill);
  border: 1.5px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: 12px;
  font-size: 12px;
  max-width: 100%;
}
.sms-bubble a { word-break: break-all; }
.badge {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 2px 5px;
  background: var(--white);
  color: var(--muted);
}
.spacer { height: 8px; }
.err-x {
  width: 48px;
  height: 48px;
  border: 2px solid var(--danger);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--danger);
  font-weight: 700;
}
.check-big {
  width: 56px;
  height: 56px;
  border: 2px solid var(--ok);
  background: #e8f5e8;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--ok);
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px 24px 48px;
}
.index-card {
  background: var(--white);
  border: 2px solid var(--line-strong);
  padding: 14px;
}
.index-card h3 { margin: 0 0 6px; font-size: 14px; }
.index-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 11px; color: var(--muted); }
.index-card a.file {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--blue);
  padding: 6px 10px;
  background: var(--blue-lt);
  color: var(--ink);
}
