/* Reef deltas on top of the approved mockup stylesheet (bullshxrk.css). Only what the real flow adds:
   page-level link states, the proposal notices, the placeholder payment panel and its claim states. */

/* Touch: no double-tap zoom delay on controls, and no default grey flash on tap. */
a, button, input, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Skip link: off screen until a keyboard user tabs to it. */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 60; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--white); font-size: 14px; text-decoration: none; }
.skip:focus-visible { left: 12px; }

/* Page-level states: bad / expired / back shortly / network. One centred panel, no other chrome. */
body[data-view="state"], body[data-view="loading"] { padding-bottom: 0; }
.state { min-height: 100dvh; display: grid; place-items: center; padding: var(--gutter); }
.state-card { width: min(100%, 1024px); min-height: min(460px, calc(100dvh - 2 * var(--gutter))); display: grid; place-content: center; justify-items: center;
  gap: 18px; padding: 48px 24px; text-align: center; border: 1px solid var(--ink-10); border-radius: var(--r-lg); }
.state-card .shark { width: 44px; height: 41px; color: var(--ink); }
.state-card h1 { font-size: clamp(36px, 7vw, 56px); max-width: 6em; }
.state-card p { color: var(--ink-58); font-size: 17px; max-width: 40ch; }
.state-loading { display: grid; justify-items: center; gap: 14px; color: var(--ink-58); font-size: 15px; }
.state-loading .shark { width: 44px; height: 41px; color: var(--ink); }

/* Proposal notices: the reset banner and the "just updated" line share one look. */
.notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid rgba(20, 52, 255, .3);
  background: var(--blue-wash); font-size: 15px; }
.step > .notice { margin-bottom: 18px; }
.step-body > .notice { margin-bottom: -6px; }

/* Inline action errors sit under the failing control; the rest of the page stays. */
.line-err { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.line-err::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }

/* Pending: label kept, control stays focusable (aria-disabled, never the native disabled attribute). */
.btn-blue[aria-disabled="true"], .btn-ink[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-blue[aria-busy="true"], .btn-ink[aria-busy="true"] { opacity: .72; }

/* Placeholder payment panel. The address reads PLACEHOLDER so nobody pays it by mistake: no QR, no copy button. */
.payb { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--ink-10); border-radius: var(--r-md); background: var(--bone-warm); }
.payb .hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px dashed currentColor; color: var(--blue);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.kvp { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14.5px; }
.kvp dt { color: var(--ink-48); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding-top: 3px; }
.kvp dd { overflow-wrap: anywhere; min-width: 0; }
.kvp .addr { font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 10px 12px; border: 1px dashed var(--ink-40); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink-58); }
.confirm .actions { flex-direction: row; align-items: center; flex-wrap: wrap; }

/* Claimed and paid: status first, then the explanation, then the action. */
.stat { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.pager { font-size: 13px; color: var(--ink-58); }
.pay-state { display: flex; flex-direction: column; gap: 14px; }
.pay-state .btn-ink { align-self: flex-start; }

/* The agreement's Fee row: the first-month figure, then the recurring note under it. */
.fee-note { display: block; margin-top: 2px; color: var(--ink-58); font-size: 13px; }

/* Document pages (agreement, signed copy): the agreement text as a white sheet on a grey desk. */
.desk { background: #e9e8e6; padding-bottom: 0; }
:root:has(.desk) { background: #e9e8e6; }
.pages { padding: 20px 12px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.paper { width: min(100%, 794px); min-width: 0; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08);
  padding: clamp(24px, 6vw, 64px); font-size: 13.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.paper .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.paper .top .shark { width: 40px; height: 37px; color: var(--ink); }
.paper .ref { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-48); text-align: right; }
.paper h1 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 4px; }
.paper h2 { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin: 22px 0 6px; color: var(--ink-58); }
.paper p + p { margin-top: 8px; }
.paper .version { font-size: 12.5px; }
.brk { background: var(--blue-wash); border-bottom: 1.5px dashed var(--blue); color: var(--blue); padding: 0 4px; border-radius: 3px; }
.flag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--blue); color: var(--blue);
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }

/* Signature block: the signer's four fields on the page. Buttons while signing, plain text on the signed copy. */
.sig-block { border-top: 1px solid var(--ink-10); padding-top: 12px; margin-top: 22px; display: grid; gap: 4px; }
.sig-block .who { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-48); margin-bottom: 8px; }
.fld { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 34px; padding: 4px 10px; margin: 0; border-radius: 6px; text-align: left;
  border: 1.5px dashed rgba(20,52,255,.55); background: rgba(20,52,255,.06); color: var(--blue); font-size: 12.5px;
  transition: background-color var(--fast), border-color var(--fast), box-shadow var(--fast); }
.fld.big { min-height: 72px; }
.fld.active { border-style: solid; border-color: var(--blue); background: rgba(20,52,255,.12); box-shadow: 0 0 0 3px var(--blue-wash); }
.fld.filled { border: 1.5px solid transparent; background: transparent; color: var(--ink); padding-left: 0; cursor: default; }
.fld.filled img { height: 64px; width: auto; max-width: 100%; }
.fld.fixed { border: 0; background: none; color: var(--ink); padding-left: 0; cursor: default; }
@media (hover: hover) and (pointer: fine) { .fld:not(.filled):not(.fixed):hover { background: rgba(20,52,255,.1); } }
