/* ==========================================================================
   KuduDoc v6 — Sign, in the v6 language (loaded after theme.css).
   v5 CSS sits in a lower layer, so plain rules here win; !important only where theme.css uses it.

   The opening (.hero-cu + .proof-cu), accordions and the flat-blue legal panel's base are global.
   What changes here:
   · the ledgers' grey media halves (.sg-media) stop painting bands: the mock-ups sit on the
     ground as white cards
   · comparison and scenario blocks become white cards; the allowances are one flat table (no big numerals)
   · the legal panel gets the flat mark poster; its three lists are headed by plain small-caps labels
   · the seal scene: soft mark removed, the seal ring, the Sealed chip in the one orange
   · the signature ink is blue (orange is kept for the action, rules, chapter markers, the seal); the
     compare lists' marks are pale blue (the problem) and blue (KuduDoc), not orange
   · the FAQ cards: transparent triggers inside the theme's card (no seam), blue +, inner gutter
   · phone: the ledger mock-ups go full width with the caption under them
   · small display labels are Montserrat 650; wrapped eyebrows get line spacing
   · the closing is the landing's: full-bleed into the footer, the copy on the opening's edge, the mark
     poster, the eyebrow's slanted stroke, the orange primary action and a ghost pill
   ========================================================================== */

.sg-page {
  --v6-card: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 1px 2px rgba(16, 45, 73, .05), 0 16px 40px -24px rgba(16, 45, 73, .32);
  --v6-lift: inset 0 0 0 1px rgba(16, 45, 73, .08), 0 14px 32px -20px rgba(16, 45, 73, .38);
  --v6-poster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 72'%3E%3Cg transform='translate(40 36) rotate(-8) skewX(-14) translate(-31 -32)' stroke-linecap='round' stroke-width='6.5'%3E%3Cpath d='M13 14V50' stroke='%23004e99' stroke-opacity='.16'/%3E%3Cpath d='M25 9V55' stroke='%23004e99' stroke-opacity='.22'/%3E%3Cpath d='M37 13V51' stroke='%23004e99' stroke-opacity='.13'/%3E%3Cpath d='M49 18V46' stroke='%23004e99' stroke-opacity='.18'/%3E%3C/g%3E%3C/svg%3E");
  padding-bottom: 0;
}

/* ---------------------------------------------------------------- rhythm & type */
/* v5 stacked a margin on top of the shared section padding; the padding alone keeps the rhythm */
.sg-page .sg-section { margin-top: 0; }
.sg-page h1, .sg-page h2, .sg-page h3, .sg-page h4 { font-weight: 650; }
.sg-page h2 { letter-spacing: -.032em; }
.sg-page .sg-title h2 { text-wrap: balance; }
.sg-page p { color: #3f5470; }
/* small display labels: Montserrat 650, never 700 */
.sg-page .kd-step b, .sg-page .kd-seal-result b { font-weight: 650; }
/* eyebrows that wrap on a phone need line spacing (the theme sets them at line-height 1) */
.sg-page section:not(.hero-cu) .eyebrow { line-height: 1.35; }

/* ---------------------------------------------------------------- 1 · compare: two cards */
.sg-compare article { border: 0; border-radius: 22px; background: #fff; box-shadow: var(--v6-card); }
.sg-compare article + article { border-top: 0; box-shadow: inset 0 3px 0 #006bcb, var(--v6-card); }
.sg-compare li { color: #3f5470; }
/* the theme marks every list orange; the problem list stays quiet, the KuduDoc list takes the blue
   (orange is for the action, the rules, chapter markers and the seal) */
.sg-compare article:first-child .kd-marks li::before { background: #bcd8f2; }
.sg-compare article + article .kd-marks li::before { background: #006bcb; }

/* ---------------------------------------------------------------- 2 · the ledgers: no grey half-bands */
.sg-media { background: transparent; }
.sg-spine b { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .1), 0 6px 14px -8px rgba(16, 45, 73, .3); }
/* the mock-ups are cards on the ground */
.sg-paper { border: 0; border-radius: 6px; box-shadow: var(--v6-lift); }
.sg-invite, .sg-template, .sg-remind { border: 0; border-radius: 20px; box-shadow: var(--v6-card); }
.sg-mock .kd-who-signs, .sg-mock .kd-activity { border: 0; border-radius: 20px; box-shadow: var(--v6-card); }
.sg-palette span { border-color: #dfe6ee; border-radius: 999px; }
.sg-palette span:first-child { border-color: #006bcb; }
.sg-phone { box-shadow: 0 2px 4px rgba(16, 45, 73, .08), 0 22px 44px -22px rgba(16, 45, 73, .45); }
.sg-ink { color: #006bcb; }                             /* signature ink: blue, not orange */
.sg-faux-btn { border-radius: 999px; }
.sg-envelope { border: 0; border-radius: 12px; box-shadow: var(--v6-lift); }
.sg-quiet { background: #f3f7fb; border-radius: 12px; }
.sg-circle { background: #eef5fc; }

/* ---------------------------------------------------------------- 3 · the legal panel (flat blue) */
html body .sg-dark.surface-dawn {
  background: var(--v6-poster) right -90px top -60px / auto 105% no-repeat, #2a64a0;
  border-radius: 24px; padding: 56px;
}
.sg-dark .sg-legal-summary, .sg-dark .fence { color: rgba(236, 244, 252, .9); }
.sg-dark .fence::before { background: rgba(191, 227, 255, .6); }
/* v5 took the summary's indent away but kept its rule, so the rule sat on the text: give it room,
   like the two fences below it */
.sg-dark .sg-legal-summary { padding-left: 14px; }
.sg-dark .text-sky { color: #a9dcff; }
.sg-dark .sg-legal-summary + .sg-legal-summary { margin-top: 14px; }
/* the three list heads are small-caps labels at every width — v5's phone h3 size (26px) overrode them;
   the theme's negative h3 tracking does not suit uppercase */
.sg-page .sg-rule-group h3 {
  display: block; margin: 36px 0 12px; color: #d6eeff;
  font: 600 12.5px/1.45 var(--font-sans); letter-spacing: .1em; text-transform: uppercase;
}
.sg-rules { margin-top: 8px; }
.sg-rule-group li { border-top-color: rgba(191, 227, 255, .22); }
.sg-rule-group li small { color: rgba(236, 244, 252, .82); }
.sg-rule-group + article { border-left-color: rgba(191, 227, 255, .22); }
/* the headline in its narrow column: "Some documents / still need ink. / We say which." — three lines,
   not a lone "Some" on the first */
#ink .sg-dark h2.kd-h2 { font-size: clamp(29px, 3vw, 44px); }

/* ---------------------------------------------------------------- 4 · templates and the allowances table
   One flat table (rows: allowance, columns: plan) — no display numerals, no chart glyphs. */
.sg-plan-chip { border-radius: 999px; }
.sg-allow-wrap { margin-top: 40px; overflow-x: auto; }
.sg-allow {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border-radius: 20px; box-shadow: var(--v6-card); font: 400 15px/1.4 var(--font-sans); color: var(--navy);
}
.sg-allow caption {
  caption-side: top; text-align: left; padding: 0 0 14px; color: #3f5470;
  font: 600 12.5px/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
}
.sg-allow th, .sg-allow td { padding: 15px 20px; text-align: left; border-top: 1px solid #e6ecf2; }
.sg-allow thead th {
  border-top: 0; padding-top: 18px; padding-bottom: 12px; color: #56697f;
  font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
}
.sg-allow tbody th { font-weight: 600; color: var(--navy); }
.sg-allow td { font-variant-numeric: tabular-nums; color: #3f5470; }
.sg-allow th:first-child { padding-left: 26px; width: 30%; }
.sg-allow-note { margin: 14px 0 0; font-size: 14px; color: #3f5470; }

/* ---------------------------------------------------------------- 5 · work and home scenarios */
.sg-scenarios article { border: 0; border-radius: 22px; background: #fff; box-shadow: var(--v6-card); }

/* ---------------------------------------------------------------- 6 · the seal scene */
.sg-seal-art .kd-mark--behind { display: none; }       /* decorative soft mark: flat language */
.sg-seal-svg { color: var(--orange); --kd-blue: var(--orange); --kd-blue-200: #ffd3b8; }
.sg-seal-art .paper-record { border: 0; box-shadow: var(--v6-lift); }
.sg-seal-art .folio-back { background: #dcebf8; }
span.kd-chip-sealed {                                   /* the landing's Sealed chip: the one orange on peach */
  align-self: flex-start; background: var(--peach); color: var(--orange); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 118, 43, .4);
}
/* the stamp shows the ring and mark only: its viewBox stops above the tiny "date and time" line */
.sg-seal-svg { overflow: hidden; height: 115px; }
.sg-seal-art .kd-seal-result { border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(0, 107, 203, .18); }

/* ---------------------------------------------------------------- 7 · questions: the accordion cards
   v5's trigger painted white with an 8px radius over the card's hairline and 16px corners (a seam on the
   open card); the wrapper's top rule sat above the first card. The card itself is the theme's. */
.sg-page .accordion.sg-faq { border-top: 0; }
.sg-page .sg-faq .accordion-trigger,
.sg-page .sg-faq .accordion-trigger:hover,
.sg-page .sg-faq .accordion-trigger[aria-expanded="true"] { background: transparent; border-radius: 16px; padding: 22px 24px; color: var(--navy); }
.sg-page .sg-faq .accordion-body { padding: 0 24px 22px; }
.sg-page .sg-faq .accordion-icon { color: #006bcb; }
html body .sg-page .sg-faq .accordion-item:has(.accordion-trigger[aria-expanded="true"]) { box-shadow: inset 0 0 0 1.5px rgba(0, 107, 203, .3); }

/* ---------------------------------------------------------------- 8 · closing: as on the landing
   Full-bleed blue into the footer (global); here: one column on the opening's 1160 edge, the mark
   poster, the eyebrow's slanted stroke, the orange primary action and a ghost pill. */
html body main .sg-page > #closing.sg-section { padding: 0 !important; margin: 0 !important; max-width: none; width: auto; background: #2a64a0; }
html body #closing > .cta-gradient-kd {
  display: block;
  background: var(--v6-poster) right -6vw top -170px / auto 720px no-repeat, #2a64a0;
}
html body #closing > .cta-gradient-kd::after { content: none; }
html body #closing > .cta-gradient-kd > .cta-gradient-inner { width: 100%; max-width: 1160px; margin: 0 auto; }
#closing .eyebrow { display: flex; align-items: flex-start; color: #d6eeff; line-height: 1.25; }
#closing .eyebrow::before {
  content: ""; flex: none; width: 3px; height: 13px; margin-right: 10px; border-radius: 2px;
  background: var(--orange); transform: skewX(-14deg) rotate(-8deg) translateY(1px);
}
#closing h2.kd-h2 { padding-left: 0; }
#closing h2.kd-h2::before { content: none; }
.sg-page #closing p { color: rgba(236, 244, 252, .86); }
#closing .btn-row { gap: 12px; }
html body #closing .btn-onblue {
  color: #fff; border: 0; background: linear-gradient(180deg, #ff8f45 0%, #ff6a30 55%, #ff5528 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(160,40,10,.25), 0 1px 2px rgba(120,30,0,.25), 0 8px 22px -6px rgba(255,90,40,.55);
}
html body #closing .btn-onblue:hover { background: linear-gradient(180deg, #ff9a55 0%, #ff7036 55%, #ff5a2c 100%); color: #fff; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 1100px) {
  html body .sg-dark.surface-dawn { padding: 40px; }
}
@media (max-width: 700px) {
  .sg-media, .sg-reverse .sg-media { background: transparent; padding: 12px 0 24px; }
  /* the mock-up takes the full width; its caption sits under it, not squeezed into a column beside it */
  .sg-page .sg-media { flex-direction: column; align-items: stretch; gap: 10px; }
  .sg-page .sg-media > .sg-mock { width: 100%; }
  .sg-page .sg-media > .kd-caption { width: auto; max-width: none; }
  /* the questions keep the cards' inner gutter */
  .sg-page .sg-faq .accordion-trigger,
  .sg-page .sg-faq .accordion-trigger:hover,
  .sg-page .sg-faq .accordion-trigger[aria-expanded="true"] { padding: 20px 18px; }
  .sg-page .sg-faq .accordion-body { padding: 0 18px 20px; }
  html body .sg-dark.surface-dawn { padding: 30px 22px; border-radius: 22px; background-size: auto 40%; background-position: right -80px top -10px; }
  /* phone: each allowance takes its own line, the four plan values in full-width columns under it */
  .sg-allow, .sg-allow thead, .sg-allow tbody, .sg-allow caption { display: block; }
  .sg-allow tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-allow caption { padding: 18px 16px 2px; }
  .sg-allow thead th:first-child { display: none; }
  .sg-allow thead th { padding: 16px 6px 10px; font-size: 11px; letter-spacing: 0; text-transform: none; }
  .sg-allow thead th:nth-child(2) { padding-left: 16px; }
  .sg-allow tbody th, .sg-allow tbody th:first-child { grid-column: 1 / -1; width: auto; padding: 12px 16px 2px; font-size: 14px; }
  .sg-allow td { border-top: 0; padding: 2px 6px 12px; font-size: 14px; }
  .sg-allow tbody th + td { padding-left: 16px; }
  /* the closing keeps the opening's 20px gutter */
  html body #closing > .cta-gradient-kd {
    padding: 88px 20px 72px !important;
    background-size: auto 480px; background-position: right -130px top -60px;
  }
}

/* ---------------------------------------------------------------- 9 · words pass (27 Sep 2026)
   The opening's second link, the signing editor drawn as the product (the old capture carried sample
   labels inside the image), mock-up titles that are not page headings, and the legal panel's links. */
.sg-hero-links { display: flex; flex-wrap: wrap; gap: 0 28px; }

.sg-page .sg-ed { display: block; background: #fff; color: var(--navy); font: 400 13px/1.45 var(--font-sans); text-align: left; }
.sg-ed small { display: block; font: 600 11px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: #56697f; }
.sg-ed-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #e6ecf2; }
.sg-ed-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 650 15px/1.3 var(--font-display); letter-spacing: -.01em; }
.sg-ed-pages { margin-right: 6px; font-size: 12.5px; color: #56697f; white-space: nowrap; }
.sg-ed-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .16); font-weight: 600; font-size: 13px; white-space: nowrap; }
.sg-ed-btn.is-send { background: #006bcb; color: #fff; box-shadow: none; }
.sg-ed-body { display: grid; grid-template-columns: 168px minmax(0, 1fr) 272px; }
.sg-ed-tools { display: flex; flex-direction: column; gap: 7px; padding: 18px 14px; border-right: 1px solid #e6ecf2; }
.sg-ed-tools small { margin-bottom: 4px; }
.sg-ed-tools span { display: flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #dfe6ee; font-weight: 600; font-size: 13px; }
.sg-ed-tools span.is-on { background: #eef5fc; box-shadow: inset 0 0 0 1.5px #006bcb; color: #004e99; }
.sg-ed-tools .sg-ed-detect { margin-top: 10px; color: #006bcb; }
.sg-ed-canvas { padding: 28px 36px; background: #f3f7fb; }
.sg-ed-paper { max-width: 580px; margin: 0 auto; padding: 30px 38px 34px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(16, 45, 73, .06), 0 10px 26px -16px rgba(16, 45, 73, .3); }
.sg-ed-title { display: block; margin: 6px 0 16px; padding-bottom: 14px; border-bottom: 2px solid #2a64a0; font: 650 19px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--navy); }
.sg-page .sg-ed-paper p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.55; color: #3f5470; }
.sg-ed-paper p b { font-weight: 600; color: var(--navy); }
.sg-ed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.sg-ed-slot { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 6px 8px; }
.sg-ed-slot small { grid-column: 1 / -1; letter-spacing: .08em; }
.sg-ed-field { position: relative; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 6px; font-weight: 600; font-size: 12.5px; }
.sg-ed-field.is-one { border: 1.5px dashed #006bcb; background: #eef5fc; color: #004e99; }
.sg-ed-field.is-two { border: 1.5px dashed #8a9bb0; background: #f5f7fa; color: #3f5470; }
.sg-ed-field.is-picked { border-style: solid; }
.sg-ed-field.is-picked::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; border-radius: 2px; background: #006bcb; }
.sg-ed-side { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-left: 1px solid #e6ecf2; }
.sg-ed-side > small + .sg-ed-signer { margin-top: 2px; }
.sg-ed-side > .sg-ed-signer + small { margin-top: 14px; }
.sg-ed-signer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #e6ecf2; }
.sg-ed-signer.is-one { box-shadow: inset 0 0 0 1.5px #006bcb; }
.sg-ed-signer i { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef5fc; color: #006bcb; font: 600 12px/1 var(--font-sans); font-style: normal; }
.sg-ed-signer.is-two i { background: #f1f5f9; color: #56697f; }
.sg-ed-signer b { display: block; font-weight: 600; font-size: 13.5px; }
.sg-ed-signer span { display: block; font-size: 12px; color: #56697f; }
.sg-ed-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0 0; border-top: 1px solid #eef2f6; font-size: 13px; color: #3f5470; }
.sg-ed-opt b { font-weight: 600; color: var(--navy); text-align: right; }
.sg-ed-toggle { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #006bcb; }
.sg-ed-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* mock-up titles: the look of the v5 h4 they replace, without a place in the page outline */
.sg-page .sg-mt { font: 650 22px/1.12 var(--font-display); letter-spacing: -.035em; }
.sg-paper .sg-mt { font-size: 19px; margin-top: 15px; }
.sg-invite .sg-mt { margin: 12px 0; }
.sg-phone .sg-mt { font-size: 20px; margin-top: 12px; }
.sg-remind .sg-mt { font-size: 21px; }
.sg-template .sg-mt { margin-top: 12px; }
.sg-seal-art .sg-mt-record { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; color: var(--c-text-main, #102d49); }

/* the legal panel's links: the SAAA list in its heading, the next step under two lists, the check under all three */
.sg-page .sg-rule-group h3 a { color: inherit; text-decoration: underline; text-decoration-color: rgba(214, 238, 255, .55); text-underline-offset: 3px; }
.sg-rule-group .sg-note { margin: 14px 0 0; }
.sg-dark a.sg-rule-link { color: #fff; font-weight: 600; text-decoration: none; }
.sg-dark a.sg-rule-link:hover { text-decoration: underline; }
.sg-page .sg-dark .sg-rule-next { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid rgba(191, 227, 255, .22); font-size: 15px; color: rgba(236, 244, 252, .9); }

@media (max-width: 1000px) {
  .sg-ed-body { grid-template-columns: minmax(0, 1fr) 240px; }
  .sg-ed-tools { display: none; }
}
@media (max-width: 700px) {
  .sg-ed-body { grid-template-columns: minmax(0, 1fr); }
  .sg-ed-bar { padding: 10px 12px; }
  .sg-ed-name { font-size: 13px; }
  .sg-ed-pages, .sg-ed-btn:not(.is-send) { display: none; }
  .sg-ed-btn { height: 28px; padding: 0 12px; font-size: 12px; }
  .sg-ed-canvas { padding: 14px; }
  .sg-ed-paper { padding: 18px 16px 20px; }
  .sg-ed-title { font-size: 15px; margin-bottom: 12px; padding-bottom: 10px; }
  .sg-page .sg-ed-paper p { font-size: 11.5px; }
  .sg-ed-fields { gap: 12px; margin-top: 16px; }
  .sg-ed-slot { grid-template-columns: minmax(0, 1fr) 56px; }
  .sg-ed-field { height: 34px; font-size: 11px; }
  .sg-ed-side { display: none; }
  .sg-page .sg-dark .sg-rule-next { font-size: 14.5px; }
}
/* links inside a sentence (the scenario cards, the templates copy): inline, not the block link rows */
.sg-page a.sg-inline { display: inline; color: #006bcb; font-weight: 600; text-decoration: none; }
.sg-page a.sg-inline:hover { text-decoration: underline; }
/* the opening's two links: the arrow stays with the last word when a link wraps */
.sg-hero-links .hero-link { display: block; }
.sg-hero-links .hero-link > span { margin-left: 6px; }
@media (max-width: 700px) {
  .sg-hero-links .hero-link { margin-top: 14px; }
  /* the FAQ heading flows as one line of thought on a phone */
  #faq .sg-title h2 br { display: none; }
}
