/* ORA Intelligence brand: logo pack v2. Midnight Navy + Signal Gold, Sora for display, Inter for text. */
:root {
  --navy: #0D1B2A;
  --navy-2: #1A2D45;
  --gold: #C9A84C;
  --gold-ink: #7A5F17; /* gold darkened for small text on white or paper */
  --paper: #F5F4F0;
  --sheet: #FFFFFF;
  --ink: #0D1B2A;
  --ink-mid: #4A5563;
  --ink-dim: #6B7480;
  --rule: #DDD9CE;
  --danger: #A32A2A;
  --danger-bg: #FBECEC;
  --ok: #1F6B45;
  --ok-bg: #E6F3EC;
  --warn: #8A5A0B;
  --warn-bg: #FBF1DC;
  --display: Sora, "Segoe UI", system-ui, sans-serif;
  --text: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.6; }

.masthead { background: var(--navy); border-bottom: 2px solid var(--gold); }
.masthead-inner { max-width: 1120px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup svg { width: 40px; height: 40px; color: var(--paper); flex-shrink: 0; }
.lockup-words { display: grid; }
.lockup-ora { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; line-height: 1; color: var(--paper); }
.lockup-rule { height: 1.5px; background: var(--gold); margin: 5px 0 4px; }
.lockup-int { font-family: var(--text); font-weight: 500; font-size: 9.5px; letter-spacing: 0.2em; line-height: 1; color: rgba(245, 244, 240, 0.62); }
.masthead-tag { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); text-align: right; }

.wrap { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }
.wrap-wide { max-width: 1120px; }

.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 28px 22px; box-shadow: 0 2px 14px rgba(13, 27, 42, 0.06); }
@media (min-width: 640px) { .sheet { padding: 44px 48px; } }
.sheet + .sheet, .stack > * + * { margin-top: 20px; }

.eyebrow { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
h1 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; margin: 8px 0 0; color: var(--ink); }
@media (min-width: 640px) { h1 { font-size: 34px; } }
h2 { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
.lede { margin-top: 14px; color: var(--ink-mid); }
.letter section { margin-top: 22px; }
.letter section p { margin-top: 8px; color: var(--ink-mid); }
.fineprint { margin-top: 22px; font-size: 12px; color: var(--ink-dim); }
.callout { margin-top: 18px; border: 1px solid var(--gold); border-left: 5px solid var(--gold); background: #FBF6E6; border-radius: 6px; padding: 14px 16px; }
.callout-title { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout li { margin-top: 4px; font-weight: 600; color: var(--ink); }
.gold-rule { height: 2px; width: 56px; background: var(--gold); margin: 16px 0 0; border: 0; }

.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hint { margin-top: 4px; font-size: 13.5px; color: var(--ink-mid); }

label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
label.field .opt { font-weight: 400; color: var(--ink-dim); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #C4C0B4; border-radius: 6px; padding: 10px 12px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
fieldset { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px 16px; margin: 14px 0 0; min-width: 0; }
legend { font-family: var(--display); font-size: 13px; font-weight: 600; padding: 0 6px; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--navy); }

.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-family: var(--display); font-size: 14px; font-weight: 600;
  border-radius: 6px; padding: 11px 18px; border: 1px solid var(--navy); background: var(--navy); color: var(--paper); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--navy); border-color: #C4C0B4; }
.btn-quiet:hover { background: rgba(13, 27, 42, 0.05); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.alert { border-radius: 6px; padding: 11px 14px; font-size: 14px; margin-top: 16px; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #E8BDBD; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #B9DBC8; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #EBD49C; }

canvas.sig { display: block; width: 100%; max-width: 460px; height: auto; background: #fff; border: 1px solid #C4C0B4; border-radius: 6px; touch-action: none; cursor: crosshair; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--danger); cursor: pointer; text-decoration: underline; margin-top: 6px; }

.record { margin-top: 12px; }
.record-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
@media (min-width: 640px) { .record-row { grid-template-columns: 170px 1fr; gap: 12px; } }
.record-row dt { color: var(--ink-dim); }
.record-row dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.record-row img { display: block; max-width: 320px; width: 100%; height: auto; }

.big { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 999px; background: #E6E2D6; overflow: hidden; margin-top: 12px; }
.bar > div { height: 100%; background: var(--gold); border-radius: 999px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; background: var(--paper); }
.stat-label { font-size: 12px; color: var(--ink-dim); }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 12px; color: var(--ink-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { border: 1px solid var(--rule); border-radius: 6px; padding: 5px 10px; font-size: 13px; background: #fff; }

.table-scroll { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--ink-dim); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid #ECE9DF; vertical-align: top; }
td .sub { font-size: 12px; color: var(--ink-dim); }
tr.voided td { opacity: 0.5; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 600; }
.badge-yes { background: var(--ok-bg); color: var(--ok); }
.badge-maybe { background: var(--warn-bg); color: var(--warn); }
.badge-no { background: #ECE9DF; color: var(--ink-mid); }
.badge-off { background: var(--danger-bg); color: var(--danger); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .callout, .masthead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { padding: 16px 0 0; max-width: none; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
}
