/* Public leak-report page. Same material as rift.html (paper + gilt), kept in
   its own file because the app's CSP forbids inline styles. Plain hyphens only. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #FAF9F5; --paper-2: #F3F1EA; --paper-3: #ECE9DF;
  --ink: #1A2433; --ink-2: #57534E; --ink-3: #8B857A;
  --line: #E4E1D6; --line-strong: #CFC9BA;
  --blue: #1D4ED8; --blue-deep: #1639A8; --blue-line: rgba(29, 78, 216, 0.32);
  --gilt: #a67c00; --gilt-bright: #e8c04a; --gilt-mid: #c99b14;
  --gilt-line: rgba(166, 124, 0, 0.35); --gilt-wash: rgba(166, 124, 0, 0.06);
  --gilt-grad: linear-gradient(100deg, #e8c04a, #c99b14 55%, #a67c00);
  --cover: #15171c; --recovered: #0b7f66;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

body { font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gilt); color: var(--paper); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.88); }
/* canonical RIS lockup - matches the homepage header exactly */
.nav-logo { display: inline-flex; flex-direction: column; line-height: 1.1; gap: 3px;
  text-decoration: none; color: var(--ink); font-family: 'Syne', sans-serif;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo .lockup-top em { font-style: normal; color: var(--blue); }
.nav-logo .lockup-rule { display: flex; align-items: center; gap: 6px; }
.nav-logo .lockup-rule::before,
.nav-logo .lockup-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.nav-logo .lockup-sub { font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 0.52em; letter-spacing: 0.1em; color: var(--ink-3); }
.back-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.back-link:hover { color: var(--ink); }
.rift { font-family: 'Syne', sans-serif; font-weight: 700; font-style: normal;
  background: var(--gilt-grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

.wrap { max-width: 760px; margin: 0 auto; padding: 56px 28px 80px; }

.mono-label { font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.12; letter-spacing: -0.01em; margin: 8px 0 0; }
h1 em { font-style: normal; color: var(--gilt); }
h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.lede { font-size: 1.02rem; color: var(--ink-2); margin-top: 14px; max-width: 58ch; }

.steps { margin: 34px 0 10px; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.step-n { font-family: var(--mono); font-weight: 500; color: var(--gilt);
  border: 1px solid var(--gilt-line); border-radius: 99px; width: 26px; height: 26px;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; font-size: 0.8rem; }
.step p { font-size: 0.88rem; color: var(--ink-2); margin-top: 2px; }
.mono { font-family: var(--mono); font-size: 0.82em; background: var(--paper-2);
  padding: 1px 6px; border-radius: 4px; }

form { margin-top: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: 14px; }
form input[type="text"], form input[type="email"] { display: block; width: 100%;
  margin-top: 5px; padding: 11px 13px; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line-strong); border-radius: 7px; background: #fff;
  color: var(--ink); }
form input:focus { border-color: var(--gilt); outline: none;
  box-shadow: 0 0 0 3px var(--gilt-wash); }

/* honeypot: physically removed from view, still in the form for bots */
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px;
  overflow: hidden; }

.dropzone { position: relative; border: 1.5px dashed var(--line-strong);
  border-radius: 12px; background: #fff; padding: 30px 20px; text-align: center;
  transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.dropzone.drag { border-color: var(--gilt); background: var(--gilt-wash); }
.dropzone.has-file { border-style: solid; border-color: var(--gilt); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%; }
.dz-title { font-size: 0.98rem; font-weight: 600; }
.dz-browse { color: var(--blue); text-decoration: underline; }
.dz-hint { font-size: 0.82rem; color: var(--ink-3); margin-top: 3px; }
.dz-file { font-family: var(--mono); font-size: 0.85rem; color: var(--gilt);
  margin-top: 8px; word-break: break-all; }

.agree-row { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0 22px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper-2); }
.agree-row input { margin-top: 3px; accent-color: var(--gilt); width: 15px;
  height: 15px; flex-shrink: 0; }
.agree-row label { font-size: 0.84rem; font-weight: 400; color: var(--ink-2);
  line-height: 1.55; margin: 0; }
.agree-row a { color: var(--blue); }

.form-error { color: #b42318; font-size: 0.9rem; margin: 0 0 14px; }

.btn-rift { display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; background: var(--cover);
  color: var(--gilt-bright); transition: background 0.2s, transform 0.15s; }
.btn-rift:hover { background: #23262d; transform: translateY(-1px); }
.btn-rift:disabled { opacity: 0.6; cursor: default; transform: none; }
.quiet-link { display: inline-block; font-size: 0.92rem; font-weight: 600;
  color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--blue-line);
  padding-bottom: 1px; margin-left: 18px; }
.quiet-link:hover { color: var(--blue-deep); border-color: var(--blue-deep); }

.busy-card { text-align: center; padding: 70px 20px; }
.busy-card .lede { margin-left: auto; margin-right: auto; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line);
  border-top-color: var(--gilt); border-radius: 50%; margin: 0 auto 22px;
  animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* report */
.rep-section { margin-top: 34px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; overflow: hidden; }
.rep-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rep-head.firm { background: var(--cover); border-bottom-color: transparent; }
.rep-head.firm .rep-title, .rep-head.firm .rep-amount { color: var(--gilt-bright); }
.rep-head.firm .rep-note { color: rgba(250, 249, 245, 0.75); }
.rep-title { font-family: var(--serif); font-size: 1.2rem; }
.rep-note { font-size: 0.82rem; color: var(--ink-3); flex: 1 1 240px; }
.rep-amount { font-family: var(--mono); font-size: 1.25rem; font-weight: 500;
  white-space: nowrap; }
.rep-row { display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 20px; border-top: 1px solid var(--line); font-size: 0.94rem; }
.rep-row:first-of-type { border-top: none; }
.rep-row .n { color: var(--ink-3); font-size: 0.85rem; margin-left: 7px; }
.rep-row .amt { font-family: var(--mono); font-weight: 500; white-space: nowrap; }

.hedge { margin-top: 38px; border-top: 1px solid var(--line-strong); padding-top: 22px;
  color: var(--ink-2); font-size: 0.95rem; }
.hedge p { margin-bottom: 12px; max-width: 62ch; }
.hedge-ctas { margin-top: 20px; }

/* Zanda / Cliniko toggle */
.pms-toggle { display: inline-flex; margin-top: 30px; border: 1px solid var(--line-strong);
  border-radius: 99px; padding: 3px; background: #fff; gap: 2px; }
.pms-toggle button { font: inherit; font-size: 0.92rem; font-weight: 600;
  padding: 8px 26px; border: none; border-radius: 99px; background: transparent;
  color: var(--ink-2); cursor: pointer; transition: background 0.15s, color 0.15s; }
.pms-toggle button.active { background: var(--cover); color: var(--gilt-bright); }
.pms-toggle button:not(.active):hover { color: var(--ink); }

/* sample report expander */
.sample { margin-top: 26px; border: 1px solid var(--gilt-line); border-radius: 10px;
  background: var(--gilt-wash); padding: 0; overflow: hidden; }
.sample summary { cursor: pointer; list-style: none; padding: 14px 18px;
  font-size: 0.95rem; font-weight: 600; color: var(--ink); position: relative; }
.sample summary::-webkit-details-marker { display: none; }
.sample summary::after { content: "+"; position: absolute; right: 18px;
  font-family: var(--mono); color: var(--gilt); }
.sample[open] summary::after { content: "-"; }
.sample summary:hover { color: var(--gilt); }
.sample-note { font-size: 0.85rem; color: var(--ink-2); padding: 0 18px 4px; }
#sample-box { padding: 0 18px 18px; }
#sample-box .rep-section { margin-top: 14px; }

/* Cliniko panel */
.key-input { font-family: var(--mono); font-size: 0.86rem !important; }
.panel-alt { margin-top: 24px; font-size: 0.88rem; color: var(--ink-2); }

/* "email me the steps" capture */
.capture-card { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper-2); }
.capture-card strong { font-size: 0.95rem; }
.capture-card p { font-size: 0.87rem; color: var(--ink-2); margin: 4px 0 12px; }
.capture-row { display: flex; gap: 10px; }
.capture-row input { flex: 1; padding: 11px 13px; font: inherit; font-size: 0.93rem;
  border: 1px solid var(--line-strong); border-radius: 7px; background: #fff;
  color: var(--ink); min-width: 0; }
.capture-row input:focus { border-color: var(--gilt); outline: none;
  box-shadow: 0 0 0 3px var(--gilt-wash); }
.capture-row .btn-rift { padding: 11px 18px; font-size: 0.88rem; white-space: nowrap; }
.capture-done { color: var(--recovered); font-size: 0.9rem; font-weight: 600;
  margin-top: 10px; }
#capture-error { margin-top: 10px; margin-bottom: 0; }

/* trust strip */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
  padding: 18px 28px; border-top: 1px solid var(--line); background: var(--paper-2);
  font-size: 0.8rem; color: var(--ink-2); text-align: center; }
.trust-strip a { color: var(--blue); text-decoration: none;
  border-bottom: 1px solid var(--blue-line); }
.trust-strip a:hover { color: var(--blue-deep); }

.foot { border-top: 1px solid var(--line); padding: 22px 28px; text-align: center;
  font-size: 0.82rem; color: var(--ink-3); }
.foot a { color: var(--ink-2); }

@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .topbar { padding: 14px 20px; }
  .quiet-link { margin-left: 0; margin-top: 12px; display: block; width: fit-content; }
  .capture-row { flex-direction: column; }
  .pms-toggle { width: 100%; }
  .pms-toggle button { flex: 1; }
}
