/* ==========================================================================
   ObraFirma / BidCraft — Estética «Nada Plano»: Industrial Blueprint & Brass
   Drafting Desk Slate (#12161B) + Brushed Brass (#D4A14A) + Cotton Bond Paper
   ========================================================================== */

:root {
  --desk-bg: #12161b;
  --desk-panel: #191f26;
  --desk-panel-2: #202831;
  --desk-border: #2e3844;
  --brass: #d4a14a;
  --brass-bright: #eab965;
  --brass-deep: #9c6f23;
  --emerald: #22c58b;
  --amber: #f59e0b;
  --crimson: #ef4444;
  --ink-light: #f4f1ea;
  --ink-muted: #9aa5b4;
  --paper: #faf7f0;
  --paper-shade: #f1ece0;
  --paper-border: #d8d0c0;
  --paper-ink: #14181d;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--desk-bg);
  color: var(--ink-light);
  -webkit-font-smoothing: antialiased;
}

body.drafting-desk {
  background-image:
    linear-gradient(rgba(212, 161, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 161, 74, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, #1e2733 0%, #12161b 65%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px;
}

/* TOP INSTRUMENT BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 22, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--desk-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink-light);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  background: linear-gradient(145deg, #e5b664, #b3802c);
  color: #14110b;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand-txt strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-txt .slash {
  color: var(--brass);
  margin: 0 2px;
}
.brand-txt em {
  font-style: normal;
  color: var(--brass-bright);
  font-weight: 700;
}
.brand-txt small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.instrument-switches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seg-group {
  display: inline-flex;
  background: #0e1216;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--desk-border);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.seg-btn.active {
  background: linear-gradient(180deg, #2b3542, #1f2731);
  color: var(--brass-bright);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-brass-outline {
  background: rgba(212, 161, 74, 0.1);
  color: var(--brass-bright);
  border: 1px solid rgba(212, 161, 74, 0.45);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* HERO */
.hero-band {
  padding: 26px 0 18px;
  border-bottom: 1px solid rgba(46, 56, 68, 0.7);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(212, 161, 74, 0.11);
  border: 1px solid rgba(212, 161, 74, 0.35);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brass-bright);
}

.brass-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.hero-band h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  margin: 12px 0 8px;
  letter-spacing: -0.025em;
  max-width: 920px;
}

.hero-lead {
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 850px;
  margin: 0 0 18px;
}

.trade-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.trade-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: var(--desk-panel);
  border: 1px solid var(--desk-border);
  border-radius: 9px;
  color: var(--ink-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.trade-pill:hover {
  border-color: var(--brass);
  transform: translateY(-1px);
}

.trade-pill.active {
  background: linear-gradient(180deg, rgba(212, 161, 74, 0.22), rgba(212, 161, 74, 0.08));
  border-color: var(--brass);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tp-ic {
  color: var(--brass-bright);
}

/* WORKBENCH 2-COLUMN */
.workbench {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 44px;
  align-items: start;
}

@media (max-width: 1024px) {
  .workbench {
    grid-template-columns: 1fr;
  }
}

/* MARGIN SHIELD GAUGE */
.margin-shield-card {
  background: linear-gradient(165deg, #1d252e 0%, #141920 100%);
  border: 1px solid #384656;
  border-left: 4px solid var(--brass);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ms-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.ms-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--brass-bright);
}

.ms-title {
  margin: 4px 0 0;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  color: var(--emerald);
}

.ms-title small {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.ms-badge {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ms-badge.healthy { background: rgba(34, 197, 139, 0.16); color: var(--emerald); border: 1px solid rgba(34, 197, 139, 0.4); }
.ms-badge.warning { background: rgba(245, 158, 11, 0.16); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.4); }
.ms-badge.danger  { background: rgba(239, 68, 68, 0.18); color: var(--crimson); border: 1px solid rgba(239, 68, 68, 0.45); }

.vernier-track {
  position: relative;
  height: 11px;
  background: #0d1115;
  border-radius: 999px;
  margin: 14px 0;
  border: 1px solid #2b3541;
  overflow: hidden;
}

.vernier-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 38%, #22c58b 68%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.vernier-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.ms-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .ms-metrics-row { grid-template-columns: 1fr; }
}

.ms-stat {
  background: rgba(12, 16, 20, 0.65);
  border: 1px solid #28323e;
  border-radius: 9px;
  padding: 9px 11px;
}
.ms-stat span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.ms-stat strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-light);
}

.dials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 680px) {
  .dials-grid { grid-template-columns: repeat(2, 1fr); }
}

.dial-box span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 5px;
  font-weight: 600;
}

.dial-input-wrap {
  display: flex;
  align-items: center;
  background: #0d1116;
  border: 1px solid #354252;
  border-radius: 8px;
  padding-right: 8px;
}

.dial-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--brass-bright);
  font-weight: 800;
  font-size: 15px;
  padding: 8px 10px;
  font-variant-numeric: tabular-nums;
}

.unit-tag {
  color: var(--ink-muted);
  font-size: 12px;
}

/* CONTROL BLOCKS */
.control-block {
  background: var(--desk-panel);
  border: 1px solid var(--desk-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.superpower-box {
  border-color: rgba(212, 161, 74, 0.5);
  background: linear-gradient(180deg, rgba(212, 161, 74, 0.08), var(--desk-panel));
}

.cb-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.cb-head-split {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.cb-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cb-step {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  color: #14110b;
  background: var(--brass);
  padding: 4px 7px;
  border-radius: 6px;
}

.cb-head h3 {
  margin: 0;
  font-size: 16px;
}
.cb-head p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.doclang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .doclang-grid { grid-template-columns: 1fr; }
}

.doclang-btn {
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  background: #11161b;
  border: 1px solid #323e4c;
  color: var(--ink-light);
  cursor: pointer;
}
.doclang-btn strong { display: block; font-size: 13.5px; }
.doclang-btn small { color: var(--ink-muted); font-size: 11.5px; }
.doclang-btn.active {
  border-color: var(--brass);
  background: rgba(212, 161, 74, 0.16);
  box-shadow: 0 0 0 1px var(--brass);
}

.fields-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fields-grid-2 .span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .fields-grid-2 { grid-template-columns: 1fr; }
  .fields-grid-2 .span-2 { grid-column: span 1; }
}

.field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.field input, .field textarea, .field select {
  width: 100%;
  background: #0f1318;
  border: 1px solid #323e4c;
  border-radius: 9px;
  color: var(--ink-light);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--brass);
  border-color: transparent;
}

/* LINE ITEMS EDITOR */
.btn-add-line {
  background: #252f3b;
  color: var(--brass-bright);
  border: 1px solid rgba(212, 161, 74, 0.45);
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.item-editor-card {
  background: #12171d;
  border: 1px solid #2b3542;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.iec-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.iec-top input {
  flex: 1;
  background: #0b0e12;
  border: 1px solid #2d3846;
  color: var(--ink-light);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.iec-en-row input {
  width: 100%;
  background: rgba(212, 161, 74, 0.05);
  border: 1px dashed rgba(212, 161, 74, 0.35);
  color: #d9cbb3;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.iec-nums {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
@media (max-width: 680px) {
  .iec-nums { grid-template-columns: 1fr 1fr; }
}

.iec-nums label span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.iec-nums input, .iec-nums select {
  width: 100%;
  background: #0b0e12;
  border: 1px solid #2d3846;
  color: var(--ink-light);
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.iec-sell-pill {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--emerald);
  padding: 7px 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.btn-del-item {
  background: transparent;
  border: 1px solid #3c2929;
  color: #e07070;
  border-radius: 6px;
  padding: 6px 9px;
  cursor: pointer;
}

/* RIGHT PREVIEW: BOND PAPER */
.sticky-sheet-wrap {
  position: sticky;
  top: 74px;
}

.action-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 520px) {
  .action-dock { grid-template-columns: 1fr; }
}

.btn-primary-brass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #f2c97d;
  background: linear-gradient(180deg, #e7b864 0%, #c48e34 100%);
  color: #16120b;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 161, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-secondary-slate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #455468;
  background: linear-gradient(180deg, #28323e 0%, #1c232c 100%);
  color: var(--ink-light);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.share-drawer {
  background: #17231f;
  border: 1px solid rgba(34, 197, 139, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.sd-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}
.sd-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(212, 161, 74, 0.2);
  color: var(--brass-bright);
}
.sd-url-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.sd-url-row input {
  flex: 1;
  background: #0d1512;
  border: 1px solid #2b443b;
  color: #d9f3e8;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
}
.btn-mini {
  padding: 7px 11px;
  border-radius: 7px;
  border: 1px solid #3c4d5e;
  background: #232d38;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-mini-gold {
  background: var(--brass);
  color: #16120b;
  border-color: var(--brass-bright);
}
.sd-quick-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-wa {
  flex: 1;
  text-align: center;
  background: #15803d;
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.btn-unlock-inline {
  background: rgba(212, 161, 74, 0.16);
  color: var(--brass-bright);
  border: 1px solid rgba(212, 161, 74, 0.5);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* PHYSICAL PAPER SHEET */
.bond-paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  border: 1px solid var(--paper-border);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 2px 0 #e6dfd1,
    0 5px 0 #dcd3c2;
  overflow: hidden;
  position: relative;
}

.paper-punch-holes {
  display: flex;
  justify-content: space-around;
  padding: 7px 60px 0;
  background: #14181d;
}
.paper-punch-holes span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27303a;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.paper-header {
  background: #14181d;
  color: #faf7f0;
  padding: 16px 22px 18px;
  border-bottom: 4px solid var(--brass);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ph-biz {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ph-meta {
  font-size: 11.5px;
  color: #b7bec8;
  margin-top: 3px;
}
.ph-folio {
  text-align: right;
}
.ph-tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--brass-bright);
  letter-spacing: 0.08em;
}
.ph-folio strong {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}
.ph-folio small {
  font-size: 11px;
  color: #b7bec8;
}

.paper-client-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  background: var(--paper-shade);
  padding: 12px 22px;
  border-bottom: 1px solid var(--paper-border);
  font-size: 13px;
}
.pc-lbl {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #6c6456;
  letter-spacing: 0.06em;
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.paper-table thead th {
  background: #222830;
  color: #faf7f0;
  text-align: left;
  padding: 8px 14px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.paper-table th.num, .paper-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.paper-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e6dfd2;
  vertical-align: top;
}
.bi-sub {
  color: #4f5660;
  font-size: 11.5px;
  margin-top: 2px;
}
.p-item-desc {
  color: #686257;
  font-size: 11px;
  margin-top: 3px;
}

.paper-addons {
  padding: 10px 22px;
  background: #f5efe2;
  border-bottom: 1px solid var(--paper-border);
  font-size: 12px;
}
.paper-addons:empty { display: none; }

.paper-totals-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding: 16px 22px;
}
@media (max-width: 560px) {
  .paper-totals-band { grid-template-columns: 1fr; }
}

.pt-terms {
  font-size: 11.5px;
  color: #454b54;
  line-height: 1.45;
}
.pt-terms strong {
  color: var(--paper-ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.pt-note {
  font-style: italic;
  color: #2d333b;
}

.pt-numbers {
  background: var(--paper-shade);
  border: 1px solid #d4ab63;
  border-radius: 6px;
  padding: 11px 13px;
  font-variant-numeric: tabular-nums;
}
.pt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.pt-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #14181d;
  color: #faf7f0;
  padding: 8px 10px;
  border-radius: 4px;
  margin: 8px 0 6px;
}
.pt-grand span { color: var(--brass-bright); font-weight: 800; font-size: 11.5px; }
.pt-grand strong { font-size: 16px; }
.pt-deposit {
  text-align: right;
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
}

.paper-perforation {
  border-top: 2px dashed #cdc4b3;
  margin: 0 16px;
}

.paper-sign-preview {
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #575147;
  background: #f4efe4;
}
.btn-go-pro-mini {
  background: #14181d;
  color: var(--brass-bright);
  border: 1px solid var(--brass);
  padding: 6px 11px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}

/* PRICING SECTION */
.pricing-section {
  padding: 36px 18px 48px;
  border-top: 1px solid var(--desk-border);
}
.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.sec-eyebrow {
  color: var(--brass-bright);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sec-head h2 { margin: 8px 0; font-size: 28px; }
.sec-head p { color: var(--ink-muted); margin: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--desk-panel);
  border: 1px solid var(--desk-border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--brass);
  background: linear-gradient(180deg, #222a34 0%, #181e25 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.pc-ribbon {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--brass);
  color: #14110a;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 99px;
}
.pc-tier { font-size: 16px; font-weight: 800; color: var(--brass-bright); }
.pc-price { font-size: 38px; font-weight: 900; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.pc-price small { font-size: 14px; color: var(--ink-muted); font-weight: 600; }
.pc-once { font-size: 12.5px; color: var(--emerald); font-weight: 600; margin-bottom: 16px; }
.pc-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.75;
  color: #d6dde6;
}
.btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid var(--brass);
  background: rgba(212, 161, 74, 0.12);
  color: var(--brass-bright);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.btn-plan-gold {
  background: linear-gradient(180deg, #e7b864, #c48e34);
  color: #14110b;
}

/* SEO GUIDE */
.seo-guide {
  padding: 32px 18px 48px;
  border-top: 1px solid var(--desk-border);
}
.seo-guide h2 { font-size: 22px; margin-bottom: 16px; }
.seo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.seo-cols h3 { color: var(--ink-light); font-size: 16px; margin-top: 0; }
@media (max-width: 760px) { .seo-cols { grid-template-columns: 1fr; } }

/* CLIENT PORTAL */
.portal-wrap {
  max-width: 820px;
  margin: 26px auto 60px;
  padding: 0 14px;
}
.demo-banner {
  background: #3b2a10;
  border-bottom: 1px solid var(--brass);
  color: #f8e7c7;
  padding: 10px 18px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.portal-addons-box {
  margin: 14px 22px 0;
  padding: 14px;
  background: #f3ede0;
  border: 1px solid #d6ccb8;
  border-radius: 8px;
}
.portal-addons-box h3 { margin: 0 0 4px; font-size: 14px; }
.pa-hint { margin: 0 0 10px; font-size: 12px; color: #5b5448; }
.pa-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #e3dac8;
  font-size: 13px;
  cursor: pointer;
}
.pa-name { flex: 1; }
.portal-sign-box { padding: 20px 22px 26px; background: #f6f2e8; }
.sig-pad-wrap {
  position: relative;
  background: #fff;
  border: 2px solid #9d9484;
  border-radius: 8px;
  overflow: hidden;
  touch-action: none;
}
#sig-canvas {
  display: block;
  width: 100%;
  height: 150px;
  cursor: crosshair;
}
.sig-clear-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #eee7d8;
  border: 1px solid #bfb6a5;
  color: #333;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.signed-seal-box {
  border: 2px solid #15803d;
  background: #ecfdf5;
  border-radius: 10px;
  padding: 16px;
  color: #064e3b;
}
.ss-head { font-weight: 900; font-size: 14px; margin-bottom: 8px; }
.ss-svg { background: #fff; border: 1px solid #a7f3d0; border-radius: 6px; padding: 6px; margin-bottom: 8px; }
.ss-meta { font-size: 12px; }

/* MODALS & FOOTER */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.hidden { display: none !important; }
.modal-card {
  background: var(--desk-panel);
  border: 1px solid var(--brass);
  border-radius: 14px;
  max-width: 460px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 18px;
  cursor: pointer;
}
.cm-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--brass-bright);
  letter-spacing: 0.06em;
}
.modal-card h3 { margin: 6px 0 8px; font-size: 20px; }
.modal-card p { color: var(--ink-muted); font-size: 13.5px; margin: 0 0 16px; }
.full-w { width: 100%; }
.cm-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(212, 161, 74, 0.14);
  border: 1px solid var(--brass);
  color: var(--ink-light);
}

.site-footer {
  border-top: 1px solid var(--desk-border);
  padding: 26px 0 40px;
  color: var(--ink-muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--brass-bright);
  text-decoration: none;
}
