/* ============================================================================
   Section63 — "Verdict"
   ----------------------------------------------------------------------------
   The product joins two worlds, so the palette does too: WhatsApp's own green
   for anything that came out of the conversation, judicial navy for anything
   that belongs to the court. Nothing else gets a colour. A bright white ground
   throughout — this is read by frightened people on cheap phones, and gloom
   does not help them.

   Type
     Bricolage Grotesque  display, 800 — a grotesque with enough character to
                          carry a headline without a serif's stuffiness
     Inter                body
     IBM Plex Mono        hashes and reference numbers, where digits must be
                          transcribable and unambiguous

   Deliberately single-theme. The brief was "bright"; every colour is painted
   explicitly so the page holds regardless of the visitor's OS preference.
   ========================================================================== */

:root {
  /* court */
  --navy:        #0a2540;
  --navy-2:      #14385f;
  --navy-ink:    #ffffff;

  /* conversation */
  --wa:          #25d366;
  --wa-deep:     #128c4a;
  --wa-ink:      #04321a;
  --wa-bubble:   #d9fdd3;

  /* ground */
  --white:       #ffffff;
  --mist:        #f5f8fb;
  --chat-ground: #eef3f7;
  --edge:        #e2e9f0;
  --edge-soft:   #eef2f6;

  /* text */
  --ink:         #0a2540;
  --ink-2:       #4b6379;
  --ink-3:       #7d90a3;

  /* semantic — kept apart from the two brand colours */
  --ok:          #0d6b38;
  --ok-bg:       #e7f9ee;
  --warn:        #8a5a12;
  --warn-bg:     #fef6e7;
  --warn-edge:   #f0d9a8;
  --bad:         #a3251c;
  --bad-bg:      #fdecea;

  --shadow-sm:   0 1px 2px rgba(10,37,64,.06);
  --shadow:      0 2px 4px rgba(10,37,64,.05), 0 12px 28px -14px rgba(10,37,64,.22);
  --shadow-lift: 0 3px 0 var(--wa-deep);

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body:    Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --r:  10px;
  --r-s: 7px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 15.5px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* ─── masthead ─────────────────────────────────────────────────────────── */

.masthead { background: var(--white); border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 20; }
.masthead__in { max-width: 1120px; margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; gap: 16px; }
.wordmark {
  font: 800 21px/1 var(--display); letter-spacing: -.028em;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--wa-deep); }
.masthead__rule { color: var(--ink-3); font-size: 13px; border-left: 1px solid var(--edge); padding-left: 16px; }
@media (max-width: 620px) { .masthead__rule { display: none; } }
.masthead__spacer { margin-left: auto; }

.statute-chip {
  font: 600 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--wa-deep); background: var(--ok-bg);
  border: 1px solid #bfead0; border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}

/* ─── layout ───────────────────────────────────────────────────────────── */

.sheet { max-width: 1120px; margin: 0 auto; padding: 30px 24px 100px; }

.docket { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.docket__step {
  padding: 11px 14px; border: 1px solid var(--edge); border-radius: var(--r-s);
  background: var(--white); font-size: 12.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 9px;
}
.docket__step b { font-weight: 600; }
.docket__n {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--edge-soft); color: var(--ink-3);
  font: 600 11px/1 var(--mono);
}
.docket__step.is-active { border-color: var(--navy); color: var(--navy); background: var(--mist); }
.docket__step.is-active .docket__n { background: var(--navy); color: var(--navy-ink); }
.docket__step.is-done { border-color: #bfead0; color: var(--wa-deep); background: var(--ok-bg); }
.docket__step.is-done .docket__n { background: var(--wa); color: var(--wa-ink); }
@media (max-width: 800px) { .docket { grid-template-columns: repeat(2, 1fr); } }

.panel {
  background: var(--white); border: 1px solid var(--edge); border-radius: var(--r);
  padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.panel--hero { background: linear-gradient(180deg, var(--mist), var(--white)); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; margin: 0; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.012em; }
.lede { color: var(--ink-2); font-size: 16px; margin: 10px 0 0; max-width: 60ch; }
.eyebrow { font: 700 10.5px/1 var(--body); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.hr { border: 0; border-top: 1px solid var(--edge-soft); margin: 24px 0; }

/* ─── hero visual: chat → exhibit ──────────────────────────────────────── */

.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 24px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo__arrow { transform: rotate(90deg); justify-self: center; } }

.chatpane {
  background: var(--chat-ground); border: 1px solid var(--edge); border-radius: var(--r);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.bubble {
  max-width: 84%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.bubble time { display: block; font-size: 10px; color: var(--ink-3); margin-top: 4px; text-align: right; }
.bubble--them { background: var(--white); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble--me { background: var(--wa-bubble); color: var(--wa-ink); align-self: flex-end; border-bottom-right-radius: 3px; }
.bubble--me time { color: #3f7a55; }

.duo__arrow { color: var(--wa-deep); flex: none; }

.exhibit {
  background: var(--white); border: 1px solid var(--edge); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.exhibit__head { display: flex; align-items: center; gap: 10px; }
.exhibit__head b { font: 600 13.5px/1.2 var(--display); color: var(--navy); }
.exhibit__rule { height: 6px; border-radius: 3px; background: var(--edge-soft); }
.exhibit__rule--s { width: 58%; } .exhibit__rule--m { width: 84%; }

/* ─── dropzone ─────────────────────────────────────────────────────────── */

.dropzone {
  border: 2px dashed var(--edge); border-radius: var(--r); background: var(--mist);
  padding: 46px 24px; text-align: center; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--wa); background: var(--ok-bg); }
.dropzone:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.dropzone h3 { margin: 12px 0 5px; font-size: 18px; font-weight: 800; }
.dropzone p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.dropzone code { font-family: var(--mono); font-size: 12.5px; background: var(--white); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--edge); }

/* ─── figures / ledger / hash ──────────────────────────────────────────── */

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 10px; }
.figure { background: var(--mist); border: 1px solid var(--edge-soft); border-radius: var(--r-s); padding: 13px 15px; }
.figure__k { font: 700 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.figure__v { font: 800 23px/1.1 var(--display); color: var(--navy); margin-top: 5px; font-variant-numeric: tabular-nums; }

.fingerprint {
  font: 400 12px/1.8 var(--mono); word-break: break-all; color: var(--ink-2);
  background: var(--mist); border: 1px solid var(--edge-soft);
  border-left: 4px solid var(--wa); border-radius: var(--r-s); padding: 12px 14px;
}

/* ─── notices ──────────────────────────────────────────────────────────── */

.notice { border: 1px solid; border-left-width: 4px; border-radius: var(--r-s); padding: 12px 15px; font-size: 14px; margin-bottom: 10px; }
.notice--ok   { border-color: #bfead0; background: var(--ok-bg);  color: var(--ok); }
.notice--warn { border-color: var(--warn-edge); background: var(--warn-bg); color: var(--warn); }
.notice--info { border-color: var(--edge); background: var(--mist); color: var(--ink-2); }
.notice--bad  { border-color: #f3c3bf; background: var(--bad-bg); color: var(--bad); }

/* ─── forms ────────────────────────────────────────────────────────────── */

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font: 700 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--wa-deep); padding: 0 0 13px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .col-2 { grid-column: span 2; }
@media (max-width: 660px) { .fields { grid-template-columns: 1fr; } .fields .col-2 { grid-column: span 1; } }

label { display: block; font: 600 12px/1.4 var(--body); color: var(--ink-2); margin-bottom: 6px; }
label .opt { color: var(--ink-3); font-weight: 400; }

input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; font: 14.5px/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 1px solid var(--edge); border-radius: var(--r-s);
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--wa); box-shadow: 0 0 0 3px var(--ok-bg);
}
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ─── buttons ──────────────────────────────────────────────────────────── */

.btn {
  font: 600 15px/1 var(--body); padding: 13px 24px; border-radius: var(--r-s); cursor: pointer;
  border: 1px solid var(--wa-deep); background: var(--wa); color: var(--wa-ink);
  box-shadow: var(--shadow-lift); transition: transform .1s, filter .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--wa-deep); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--edge); box-shadow: none; }
.btn--ghost:hover:not(:disabled) { border-color: var(--navy); filter: none; }
.btn--ghost:active:not(:disabled) { transform: none; box-shadow: none; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ─── tariff ───────────────────────────────────────────────────────────── */

.tariff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .tariff { grid-template-columns: 1fr; } }
.tier {
  border: 1.5px solid var(--edge); border-radius: var(--r); background: var(--white);
  padding: 22px; cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s;
}
.tier:hover { border-color: #bfead0; }
.tier.is-picked { border-color: var(--wa); box-shadow: 0 0 0 3px var(--ok-bg); }
.tier.is-blocked { opacity: .5; cursor: not-allowed; }
.tier__name { font: 600 16px/1.2 var(--display); color: var(--navy); }
.tier__price { font: 800 34px/1 var(--display); color: var(--navy); margin: 8px 0 3px; font-variant-numeric: tabular-nums; }
.tier__note { font-size: 13px; color: var(--ink-3); min-height: 36px; }
.tier__list { list-style: none; margin: 15px 0 0; padding: 15px 0 0; border-top: 1px solid var(--edge-soft); font-size: 13.5px; color: var(--ink-2); }
.tier__list li { padding-left: 20px; position: relative; margin-bottom: 7px; }
.tier__list li::before { content: "✓"; position: absolute; left: 0; color: var(--wa-deep); font-weight: 700; }
.tier__flag {
  position: absolute; top: -11px; right: 14px; background: var(--navy); color: var(--navy-ink);
  font: 700 10px/1 var(--body); letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

/* ─── preview ──────────────────────────────────────────────────────────── */

.proof { border: 1px solid var(--edge); border-radius: var(--r); background: var(--mist); padding: 15px; }
.proof__pages {
  height: 620px; overflow-y: auto; overflow-x: hidden;
  border: 1px solid var(--edge); border-radius: var(--r-s);
  background: var(--chat-ground); padding: 14px;
  display: flex; flex-direction: column; gap: 14px;
  /* The pages are images of a document, not the document. Discourage the
     casual right-click save; the real protection is that no PDF is here. */
  user-select: none; -webkit-user-select: none;
}
.proof__pages:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.pageview__page {
  position: relative; background: #fff; border: 1px solid var(--edge);
  box-shadow: var(--shadow-sm); width: 100%;
}
.pageview__page canvas { display: block; width: 100%; height: auto; pointer-events: none; }
.pageview__n {
  position: absolute; right: 6px; bottom: 6px; z-index: 1;
  font: 600 10px/1 var(--mono); color: var(--ink-3);
  background: rgba(255,255,255,.9); border: 1px solid var(--edge);
  border-radius: 3px; padding: 2px 5px;
}
.pageview__page:not(.is-painted)::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, var(--mist) 0 18px, var(--white) 18px 36px);
  opacity: .55;
}
.pageview__err { padding: 20px; font-size: 12.5px; color: var(--warn); }
.proof__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 13px; font-size: 12.5px; color: var(--ink-3); }
.seal {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--warn-edge); background: var(--warn-bg); color: var(--warn);
  padding: 7px 13px; border-radius: 999px; font: 600 12px/1 var(--body);
}

/* ─── footer ───────────────────────────────────────────────────────────── */

.colophon { border-top: 1px solid var(--edge); background: var(--mist); margin-top: 44px; }
.colophon__in { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.colophon a { color: var(--ink-2); text-decoration: none; }
.colophon a:hover { color: var(--wa-deep); }
.colophon__legal { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

.is-hidden { display: none !important; }

/* ─── prose (legal pages) ──────────────────────────────────────────────── */

.prose { max-width: 72ch; }
.prose h2 { margin: 32px 0 10px; font-size: 21px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--wa-deep); }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--mist); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--edge-soft); }
