/* ============================================================
   notary.mu — Secure electronic signing & accounts additions
   Load AFTER styles.css. Every colour references the site's
   existing tokens with a fallback, so these pages also render
   correctly if previewed standalone.
   ============================================================ */

:root {
  --n: var(--navy, #0f253f);
  --nd: var(--navy-deep, #0a1a2e);
  --g: var(--gold, #c19a3d);
  --gs: var(--gold-soft, #f5eddc);
  --cr: var(--cream, #faf7f0);
  --pp: var(--paper, #ffffff);
  --ln: var(--line, #e5decf);
  --mu: var(--muted, #5b6b7c);
}

/* ---- Shared page chrome for new pages (visually matches the
   pack header; swap in the index.html header markup for exact
   parity if preferred — see DEPLOY-SIGNING.md) ---- */
.sg-header {
  background: var(--pp);
  border-bottom: 1px solid var(--ln);
  position: sticky; top: 0; z-index: 40;
}
.sg-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 26px;
}
.sg-brand {
  font-family: "Playfair Display", serif;
  font-size: 22px; color: var(--n); text-decoration: none; font-weight: 700;
}
.sg-brand span { color: var(--g); }
.sg-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.sg-nav a { color: var(--n); text-decoration: none; font-size: 14.5px; }
.sg-nav a:hover { text-decoration: underline; text-decoration-color: var(--g); }
.sg-nav .sg-cta {
  background: var(--n); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.sg-nav .sg-cta:hover { text-decoration: none; background: var(--nd); }

.sg-footer {
  background: var(--nd); color: #cfd8e3; margin-top: 70px;
  padding: 34px 22px; font-size: 13.5px;
}
.sg-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.sg-footer a { color: var(--gs); text-decoration: none; }
.sg-footer a:hover { text-decoration: underline; }

.sg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.sg-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ---- Page hero ---- */
.sg-hero { background: var(--cr); border-bottom: 1px solid var(--ln); padding: 58px 0 46px; }
.sg-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--n); background: var(--gs);
  border: 1px solid var(--g); border-radius: 999px; padding: 4px 14px; margin-bottom: 16px;
}
.sg-hero h1 {
  font-family: "Playfair Display", serif; color: var(--n);
  font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 14px; line-height: 1.15;
}
.sg-hero p.lead { color: var(--mu); font-size: 17px; max-width: 640px; margin: 0; line-height: 1.6; }

/* ---- Sections ---- */
.sg-section { padding: 52px 0 8px; }
.sg-section h2 { font-family: "Playfair Display", serif; color: var(--n); font-size: 28px; margin: 0 0 8px; }
.sg-section .sub { color: var(--mu); font-size: 15px; margin: 0 0 26px; max-width: 640px; line-height: 1.6; }

/* ---- Eligibility checker ---- */
.sg-checker {
  background: var(--pp); border: 1px solid var(--ln); border-radius: 16px;
  padding: 26px; box-shadow: 0 8px 26px rgba(15,37,63,.06);
}
.sg-checker label { display: block; font-size: 13.5px; font-weight: 600; color: var(--n); margin: 0 0 6px; }
.sg-checker select, .sg-field input, .sg-field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--ln); border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--n); background: var(--pp);
}
.sg-checker select:focus, .sg-field input:focus, .sg-field select:focus {
  outline: 2px solid var(--g); outline-offset: 1px; border-color: var(--g);
}
.sg-checker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .sg-checker-row { grid-template-columns: 1fr; } }

.sg-result { margin-top: 20px; border-radius: 12px; padding: 18px 20px; display: none; border: 1px solid; }
.sg-result.show { display: block; }
.sg-result h3 { margin: 0 0 6px; font-size: 16px; }
.sg-result p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; }
.sg-result .sg-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 12px; margin-bottom: 10px;
}
.sg-result.ok    { background: #f2f8f2; border-color: #bcd9bc; }
.sg-result.ok    .sg-badge { background: #e0efe0; color: #1e5c2a; }
.sg-result.ok    h3 { color: #1e5c2a; }
.sg-result.rev   { background: var(--gs); border-color: var(--g); }
.sg-result.rev   .sg-badge { background: #efe2bd; color: #6b5310; }
.sg-result.rev   h3 { color: var(--n); }
.sg-result.phys  { background: #f6f4f9; border-color: #c9c2dd; }
.sg-result.phys  .sg-badge { background: #e6e0f2; color: #3d3070; }
.sg-result.phys  h3 { color: var(--n); }

/* ---- Steps ---- */
.sg-steps { counter-reset: step; display: grid; gap: 0; margin-top: 8px; }
.sg-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--ln);
}
.sg-step:first-child { border-top: 0; }
.sg-step::before {
  counter-increment: step; content: counter(step);
  font-family: "Playfair Display", serif; font-size: 26px; color: var(--g);
  border: 1px solid var(--ln); border-radius: 50%; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; background: var(--pp);
}
.sg-step h3 { margin: 4px 0 6px; color: var(--n); font-size: 16.5px; }
.sg-step p { margin: 0; color: var(--mu); font-size: 14.5px; line-height: 1.6; max-width: 620px; }

/* ---- Category table ---- */
.sg-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 860px) { .sg-cats { grid-template-columns: 1fr; } }
.sg-cat {
  background: var(--pp); border: 1px solid var(--ln); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.sg-cat h3 { margin: 0; font-size: 15.5px; color: var(--n); }
.sg-cat ul { margin: 0; padding-left: 18px; color: var(--mu); font-size: 13.8px; line-height: 1.65; }
.sg-cat .sg-badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; padding: 3px 12px; }
.sg-cat.a .sg-badge { background: #e0efe0; color: #1e5c2a; }
.sg-cat.b .sg-badge { background: var(--gs); color: #6b5310; }
.sg-cat.c .sg-badge { background: #e6e0f2; color: #3d3070; }

/* ---- Evidence list ---- */
.sg-evidence { columns: 2; column-gap: 40px; margin: 18px 0 0; padding-left: 20px; color: var(--mu); font-size: 14.5px; line-height: 1.9; }
@media (max-width: 700px) { .sg-evidence { columns: 1; } }

/* ---- Account / auth forms ---- */
.sg-card {
  background: var(--pp); border: 1px solid var(--ln); border-radius: 16px;
  padding: 30px; box-shadow: 0 8px 26px rgba(15,37,63,.06); max-width: 480px; margin: 44px auto 0;
}
.sg-card h1 { font-family: "Playfair Display", serif; color: var(--n); font-size: 28px; margin: 0 0 6px; }
.sg-card .sub { color: var(--mu); font-size: 14.5px; margin: 0 0 22px; line-height: 1.55; }
.sg-field { margin-bottom: 16px; }
.sg-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--n); margin-bottom: 6px; }
.sg-field .hint { font-size: 12.5px; color: var(--mu); margin-top: 5px; }
.sg-btn {
  display: inline-block; width: 100%; text-align: center; background: var(--n); color: #fff;
  border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer;
}
.sg-btn:hover { background: var(--nd); }
.sg-btn.secondary { background: var(--pp); color: var(--n); border: 1px solid var(--n); }
.sg-btn:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.sg-alt { text-align: center; font-size: 13.5px; color: var(--mu); margin-top: 16px; }
.sg-alt a { color: var(--n); text-decoration: underline; text-decoration-color: var(--g); }
.sg-msg { border-radius: 10px; padding: 12px 14px; font-size: 13.8px; margin-bottom: 16px; display: none; line-height: 1.5; }
.sg-msg.show { display: block; }
.sg-msg.info { background: var(--gs); color: var(--n); border: 1px solid var(--g); }
.sg-msg.err  { background: #faf0f0; color: #7a2323; border: 1px solid #dcb3b3; }
.sg-msg.ok   { background: #f2f8f2; color: #1e5c2a; border: 1px solid #bcd9bc; }

/* ---- Account dashboard ---- */
.sg-tiers { display: grid; gap: 14px; margin-top: 22px; }
.sg-tier {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center;
  background: var(--pp); border: 1px solid var(--ln); border-radius: 12px; padding: 16px 18px;
}
.sg-tier .dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sg-tier.done .dot { background: #e0efe0; color: #1e5c2a; }
.sg-tier.todo .dot { background: var(--gs); color: #6b5310; }
.sg-tier h3 { margin: 0; font-size: 15px; color: var(--n); }
.sg-tier p { margin: 3px 0 0; font-size: 13.5px; color: var(--mu); }
.sg-tier a { font-size: 13.5px; color: var(--n); text-decoration: underline; text-decoration-color: var(--g); white-space: nowrap; }

/* ---- Legal note ---- */
.sg-note {
  background: var(--cr); border: 1px solid var(--ln); border-left: 3px solid var(--g);
  border-radius: 12px; padding: 18px 20px; margin-top: 30px; font-size: 14px;
  color: var(--mu); line-height: 1.65; max-width: 760px;
}
.sg-note strong { color: var(--n); }

@media (prefers-reduced-motion: no-preference) {
  .sg-result.show { animation: sgfade .25s ease; }
  @keyframes sgfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* ---- crest brand mark (v4.19) ---- */
.brand-mark-img { height:38px; width:auto; display:block; }
.sg-brand .brand-mark-img { height:30px; margin-right:9px; }
.sg-brand { display:flex; align-items:center; }
.footer-brand .brand-mark-img { height:44px; }
@media (max-width:600px){ .brand-mark-img { height:32px; } }
