/* THE PUBLIC WEBSITE (ADR 0293).
 *
 * Layout only. Every colour, radius, font and spacing value here reads a token from app.css, which
 * is loaded first - there is not one hex literal in this file on purpose. The site and the product
 * therefore cannot drift: restyling the app restyles its front door in the same pass, which is the
 * design framework's first rule and the reason this is not a separate static site.
 *
 * Classes are prefixed .st- so nothing here can collide with an app class of the same name. The
 * public pages load both stylesheets and the app's chrome is absent, so a bare .wrap or .band would
 * be a name claimed twice.
 */

.st-body { background: var(--bg); color: var(--text); font-family: var(--font); margin: 0; line-height: 1.55; }

/* A band spans the width; its inner wrapper carries the gutter, so a tinted band reaches both
   edges while the text inside it never touches them. */
.st-band { width: 100% }
.st-band.alt { background: var(--bg-2); border-block: 1px solid var(--divider) }
.st-wrap {
  max-width: 1040px;
  margin-inline: auto;
  /* max() rather than a flat 16px: on a phone held sideways the system bar sits in the gutter. */
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 64px;
}
.st-narrow { max-width: 62ch }
.st-stack { display: flex; flex-direction: column; gap: 18px }
.st-stack-lg { display: flex; flex-direction: column; gap: 40px }

.st-body h1, .st-body h2, .st-body h3 { text-wrap: balance; margin: 0; letter-spacing: -.02em; line-height: 1.15 }
.st-body h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em }
.st-body h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700 }
.st-body h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em }
.st-body p { margin: 0 }
.st-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .11em; color: var(--mute) }
.st-lede { font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: var(--soft) }
.st-note { font-size: .88rem; color: var(--mute) }

/* Header */
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
          padding-block: 18px; border-bottom: 1px solid var(--divider) }
.st-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em }
.st-mark .st-dot { width: 26px; height: 26px; border-radius: var(--r); background: var(--grad); flex: none }
.st-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem }
.st-nav a { color: var(--soft); text-decoration: none }
.st-nav a:hover { color: var(--text) }

/* Actions. One primary per view (framework section 11); everything else is ghost. */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
          padding: 0 20px; border-radius: var(--r-pill); font: inherit; font-weight: 600; font-size: .95rem;
          text-decoration: none; border: 1px solid transparent; cursor: pointer }
.st-btn.primary { background: var(--brand); color: #fff }
.st-btn.primary:hover { background: var(--brand-hover) }
.st-btn.ghost { background: transparent; color: var(--text); border-color: var(--border) }
.st-btn.ghost:hover { background: var(--panel) }
.st-btn[disabled] { opacity: .55; cursor: not-allowed }
.st-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center }
.st-body a:focus-visible, .st-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px }

.st-hero { padding-block: 76px 56px }
.st-hero .st-stack { gap: 22px; max-width: 40ch }

/* The figure strip. Real numbers, tabular, so the columns line up the way they do in the app. */
.st-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 1px;
            background: var(--divider); border: 1px solid var(--border); border-radius: var(--r-xl);
            overflow: hidden; margin-top: 8px }
.st-strip > div { background: var(--bg); padding: 16px 18px; min-width: 0 }
.st-strip span { display: block; font-size: .76rem; color: var(--mute); margin-bottom: 5px }
.st-strip strong { display: block; font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em;
                   font-variant-numeric: tabular-nums }

/* Area cards */
.st-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px }
.st-area { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--panel);
           padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 10px }
.st-area h3 { display: flex; align-items: center; gap: 9px }
.st-pip { width: 9px; height: 9px; border-radius: var(--r-pill); flex: none }
.st-area p { color: var(--soft); font-size: .94rem }
.st-area ul { margin: 4px 0 0; padding-inline-start: 18px; color: var(--mute); font-size: .9rem;
              display: flex; flex-direction: column; gap: 5px }

/* Label-and-prose rows. Stacks to one column on a phone. */
.st-rows { display: flex; flex-direction: column; gap: 30px }
.st-row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 10px 34px;
          padding-top: 26px; border-top: 1px solid var(--divider) }
.st-row:first-child { padding-top: 0; border-top: 0 }
.st-row p { color: var(--soft) }
.st-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 24px; align-items: start }
/* A label-and-prose row stacks on its CONTAINER, not on the window. Beside the document card the
   rows column is about 400px wide, where a 13rem label left ~160px of prose reading three words to
   the line - at a window width the media query below calls "wide". */
.st-rows { container-type: inline-size }
@container (max-width: 460px) {
  .st-row { grid-template-columns: 1fr; gap: 8px }
}

/* A sample of a real document, rendered rather than screenshotted - a PNG goes stale the week
   after a redesign and nobody notices. */
.st-doc { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel);
          padding: 18px; font-size: .88rem; min-width: 0 }
/* app.css gives every table min-width:760px so a page table never crushes its columns. This one is
   two short columns inside a half-width card, so that minimum pushed it 370px past the window and
   the whole page scrolled sideways. Overridden here exactly as app.css already overrides it for a
   table inside a modal - the table genuinely fits, so it needs no scroll container. */
.st-doc table { width: 100%; min-width: 0; border-collapse: collapse; font-variant-numeric: tabular-nums }
.st-doc th, .st-doc td { text-align: start; padding: 7px 4px; border-bottom: 1px solid var(--divider) }
.st-doc th { font-size: .72rem; font-weight: 600; color: var(--mute) }
.st-doc .num { text-align: end }
.st-doc tfoot td { border-bottom: 0; font-weight: 700; border-top: 1px solid var(--border) }
.st-doc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
               margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--divider) }
.st-doc-head span { color: var(--mute); font-size: .82rem }

/* The request form */
.st-card { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--panel); padding: 26px }
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.st-field label { font-size: .86rem; color: var(--soft) }
/* A field label sits on ONE line, app-wide rule (framework section 5). */
.st-field label > span:first-child { white-space: nowrap }
.st-field input, .st-field select, .st-field textarea {
  font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border);
  border-radius: var(--r); padding: 11px 12px; min-height: var(--tap); min-width: 0; width: 100% }
.st-field textarea { min-height: 88px; resize: vertical }
.st-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px }
/* The honeypot. Off-screen rather than display:none - some bots skip hidden fields but fill
   positioned ones, and a screen reader is told to leave it alone. */
.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

.st-foot .st-wrap { padding-block: 34px; display: flex; gap: 14px 28px; flex-wrap: wrap;
                    justify-content: space-between; align-items: center; color: var(--mute); font-size: .88rem }

@media (max-width: 640px) {
  .st-row { grid-template-columns: 1fr; gap: 8px }
  .st-wrap { padding-block: 44px }
  .st-hero { padding-block: 52px 40px }
}
@media (prefers-reduced-motion: reduce) {
  .st-body *, .st-body *::before, .st-body *::after { animation: none !important; transition: none !important }
}
