/* CasePacket trust page.
   Static CSS, no JavaScript, no third-party requests.

   LAYOUT follows signnow.com, per Luis 2026-10-05: white ground, utility strip,
   centered hero with a hand-drawn underline, tinted rounded panels.

   COLOUR comes from the CasePacket logo, not from them. The logo's own navy
   #011B38 and gold #C89F54 were sampled out of the artwork, and the gold plays
   the part their green played. The logo is traced vector, recoloured per theme
   through --logo-* so it reads on dark as well as light.

   Headings are Inter, body is Open Sans, both self-hosted. See fonts/LICENSE.md. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/open-sans-latin.woff2') format('woff2');
}

:root {
  --ground:   #FFFFFF;
  --strip:    #EFF3F8;
  --ink:      #011B38;
  --quiet:    #566376;
  --navy:     #011B38;
  --gold:     #C89F54;
  --rule:     #DFE5ED;

  --p-navy:   #F0F4F9;
  --p-gold:   #FAF4E9;
  --chip-bg:  #F5F7FA;

  /* Links carry the ink colour and are marked by a gold underline, so they read
     as links without introducing a colour the logo does not have. */
  --link:       #011B38;
  --link-under: #C89F54;

  --logo-case:  #011B38;
  --logo-paper: #FFFFFF;
  --logo-tick:  #C89F54;

  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --text:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #0B1420;
    --strip:    #121E2C;
    --ink:      #EDF1F6;
    --quiet:    #9FADBE;
    --navy:     #9FC2E8;
    --gold:     #D9AE64;
    --rule:     #22303F;

    --p-navy:   #111D2B;
    --p-gold:   #1F1A12;
    --chip-bg:  #15202E;

    --link:       #EDF1F6;
    --link-under: #D9AE64;

    --logo-case:  #DCE4EE;
    --logo-paper: #0B1420;
    --logo-tick:  #D9AE64;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility strip and header -------------------------------------------- */

.strip {
  background: var(--strip);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.strip p {
  margin: 0;
  text-align: right;
  color: var(--quiet);
}

.bar {
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}
.bar-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

/* The logo is the traced artwork, not type. Its three parts are driven by
   --logo-* so the same paths serve both themes. */
.logo { display: block; line-height: 0; text-decoration: none; }
.logo svg { display: block; height: 2.125rem; width: auto; }

.by { margin: 0; font-size: 0.875rem; color: var(--quiet); }

/* Hero ----------------------------------------------------------------- */

.hero { padding: 2.75rem 0 2.25rem; text-align: center; }

h1 {
  margin: 0 auto 1.125rem;
  max-width: 19ch;
  font-family: var(--display);
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.028em;
}

/* The hand-drawn underline, in the logo's gold. A tapered stroke on a
   stretched ellipse edge, which is what reads as a marker swoosh. */
.u {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.u::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -0.235em;
  height: 0.155em;
  background: var(--gold);
  border-radius: 50%;
  clip-path: polygon(0 44%, 10% 18%, 46% 3%, 100% 0, 100% 54%, 54% 76%, 12% 93%, 0 100%);
}

.lede {
  margin: 0 auto 1.875rem;
  max-width: 44rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
}

.chip-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
}

/* The one string a worried reader is trying to match character for character,
   so it gets its own line and is never broken across two. */
.chip {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 1.125rem;
  background: var(--chip-bg);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.875rem, 1.6vw, 1.0625rem);
  line-height: 1.4;
  white-space: nowrap;
  overflow-x: auto;
}

/* Panels --------------------------------------------------------------- */

.panels { padding-bottom: 3rem; }

.grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.panel {
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 12px;
}
.panel-navy { background: var(--p-navy); --knockout: var(--p-navy); }
.panel-gold { background: var(--p-gold); --knockout: var(--p-gold); }

/* Iconography ----------------------------------------------------------
   Drawn for this page rather than taken from a set. Each one is a navy
   container holding a single gold mark, which is the logo's own grammar: the
   case is navy, the thing that matters inside it is gold. */

.icon {
  width: 2.125rem;
  height: 2.125rem;
  margin-bottom: 0.875rem;
  display: block;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .ink  { stroke: var(--navy); }
.icon .gold { stroke: var(--gold); stroke-width: 2.3; }
/* Painted under the gold warning so it separates cleanly where it crosses the
   envelope, instead of the two outlines colliding. */
.icon .knock { stroke: var(--knockout); stroke-width: 5; }

.panel h2 {
  margin: 0 0 0.625rem;
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.panel p { margin: 0 0 0.75rem; }
.panel > :last-child { margin-bottom: 0; }

/* Lists ---------------------------------------------------------------- */

.facts, .steps { margin: 0; padding: 0; list-style: none; }

.facts li, .steps li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
}
.facts li:last-child, .steps li:last-child { margin-bottom: 0; }

/* A small gold tick, the logo's mark at list scale. */
.facts li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.5em;
  width: 0.5rem;
  height: 0.3125rem;
  border: solid var(--gold);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--p-navy);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

/* Links ---------------------------------------------------------------- */

a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--link-under);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Footer --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--quiet);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer a { color: var(--quiet); font-weight: 400; text-decoration-thickness: 1px; }

/* Wide ----------------------------------------------------------------- */

@media (min-width: 60rem) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero { padding: 3.25rem 0 2.5rem; }
  .logo svg { height: 2.375rem; }

  /* The report band runs the full width under the two panels, so the short
     section does not leave a tall empty column beside the long ones. */
  .panel-gold {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 2.5rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
  }
  .panel-gold .icon { grid-column: 1; grid-row: 1 / span 2; margin: 0; align-self: center; }
  .panel-gold h2    { grid-column: 2; grid-row: 1; margin: 0 0 0.25rem; }
  .panel-gold p     { grid-column: 2; grid-row: 2; margin: 0; max-width: 54rem; }
}

@media (max-width: 30rem) {
  .hero { padding: 2.5rem 0 2rem; }
  .panel { padding: 1.375rem 1.25rem 1.25rem; }
  .strip p { text-align: left; }
  .logo svg { height: 1.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
