/* Public landing page — light.
   Shares the app's brand blue so the page and the signed-in system read as one
   product. Depth comes from hairlines and soft shadow rather than dark fills. */

:root {
    --paper:     #FFFFFF;
    --tint:      #F5F8FD;
    --tint-2:    #EDF3FB;
    --ink:       #0F1A2B;
    --body:      #4E5C70;
    /* Darkened from #7A8798, which measured 3.43:1 on the tinted footer —
       below the 4.5:1 minimum for text this size. */
    --soft:      #5F6D7E;
    --line:      #E3EAF4;
    --line-2:    #D3DEEC;
    --brand:     #1C4F9C;
    --brand-lit: #2E6FD4;
    --brand-pale:#EAF1FC;
    --verified:  #17805A;
    --verified-pale: #E4F4EC;
    /* The blue used for filled cards. Its pale end stops at the brand colour
       rather than the brighter --brand-lit: at #2E6FD4 even pure white reaches
       only 4.84:1, so body text on it could not meet AA at any opacity. */
    --fill:      linear-gradient(135deg, #143B75 0%, #1C4F9C 100%);
    --shadow-sm: 0 1px 2px rgba(15, 26, 43, .05);
    --shadow-md: 0 2px 4px rgba(15, 26, 43, .04), 0 10px 26px -14px rgba(15, 26, 43, .22);
    --shadow-lg: 0 4px 10px rgba(15, 26, 43, .05), 0 26px 50px -30px rgba(15, 26, 43, .3);
    --radius:    10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-lit); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }

.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- Reveal ------------------------------------------------------------ */
/* Visible by default; the hidden start state applies only once the inline head
   script confirms JS is running, so a blocked script degrades to a static page
   rather than a blank one. */

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Header ------------------------------------------------------------ */

.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-head .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 22px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* The header is white and the logo is dark blue, so it needs no chip behind it. */
.mark { display: block; }
.mark img { height: 40px; width: auto; display: block; }
.head-actions { display: flex; align-items: center; gap: 24px; }
.head-actions .navlink { color: var(--body); font-size: 14.5px; font-weight: 500; }
.head-actions .navlink:hover { color: var(--brand); text-decoration: none; }

/* ---- Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 14px; font-weight: 600; line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 6px 16px -10px rgba(28, 79, 156, .9);
}
.btn:hover {
    background: var(--brand-lit); border-color: var(--brand-lit);
    text-decoration: none; transform: translateY(-1px);
    box-shadow: 0 12px 24px -12px rgba(28, 79, 156, .85);
}
.btn:active { transform: none; }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn.ghost {
    background: #fff; color: var(--ink);
    border-color: var(--line-2); box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { background: var(--tint); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.btn.lg { padding: 14px 26px; font-size: 15px; border-radius: 8px; }

/* ---- Hero -------------------------------------------------------------- */

.hero { position: relative; padding: 104px 0 92px; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(820px 460px at 14% -6%, rgba(46, 111, 212, .13), transparent 62%),
        radial-gradient(700px 460px at 90% 12%, rgba(23, 128, 90, .08), transparent 60%);
    pointer-events: none;
}
/* Faint ledger grid — the page's one piece of texture. */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15, 26, 43, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 26, 43, .045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(720px 460px at 46% 20%, #000 18%, transparent 76%);
    -webkit-mask-image: radial-gradient(720px 460px at 46% 20%, #000 18%, transparent 76%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand);
    border: 1px solid var(--line-2);
    background: #fff;
    padding: 7px 15px;
    border-radius: 999px;
    margin: 0 0 26px;
    box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--verified);
    box-shadow: 0 0 0 3px rgba(23, 128, 90, .15);
    animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero h1 {
    font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(2.7rem, 6.6vw, 5.1rem);
    line-height: 1.03;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0 0 26px;
    max-width: 15ch;
    text-wrap: balance;
}
.hero h1 em {
    font-style: italic;
    color: transparent;
    background: linear-gradient(96deg, var(--brand-lit), var(--brand) 52%, var(--verified));
    -webkit-background-clip: text;
    background-clip: text;
}
.hero .lede {
    font-size: clamp(1.04rem, 1.9vw, 1.2rem);
    color: var(--body);
    max-width: 54ch;
    margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---- The chain --------------------------------------------------------- */

.chain-block { margin-top: 80px; }
.chain-caption {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
    color: var(--soft);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}
/* Grid, not flex: equal tracks keep all nine stages on one row at desktop
   width and wrap them evenly on narrow screens. Sizing to content left the
   ninth stage orphaned on a row of its own. */
.chain {
    display: grid;
    /* 96px is chosen so the nine stages land as one row on desktop and an
       even 3 x 3 on a phone, rather than leaving the last one on its own. */
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 9px;
    list-style: none; margin: 0; padding: 0;
}
.chain li {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    padding: 13px 14px 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color .45s ease, background .45s ease, transform .45s ease, box-shadow .45s ease;
}
.chain li .idx {
    font-family: "IBM Plex Mono", monospace;
    font-size: 9.5px; letter-spacing: .13em;
    color: var(--soft);
    display: block; margin-bottom: 5px;
    transition: color .45s ease;
}
.chain li .lbl {
    font-size: 13px; font-weight: 500;
    color: var(--body); line-height: 1.35;
    display: block;
    transition: color .45s ease;
}
.chain li.lit {
    border-color: var(--brand-lit);
    background: var(--brand-pale);
    transform: translateY(-3px);
    box-shadow: 0 12px 22px -14px rgba(28, 79, 156, .75);
}
.chain li.lit .lbl { color: var(--ink); }
.chain li.lit .idx { color: var(--brand); }
.chain li.done { border-color: rgba(23, 128, 90, .38); }
.chain li.done .idx { color: var(--verified); }
.chain li:last-child.lit {
    border-color: var(--verified);
    background: var(--verified-pale);
    box-shadow: 0 12px 22px -14px rgba(23, 128, 90, .7);
}
.chain li:last-child.lit .idx { color: var(--verified); }
.chain-note { margin: 22px 0 0; font-size: 14px; color: var(--soft); }

/* ---- Bands ------------------------------------------------------------- */

section.band { padding: 96px 0; }
section.band.sunken { background: var(--tint); border-block: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 46px; }
.kicker {
    font-family: "IBM Plex Mono", monospace;
    font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase;
    color: var(--brand); margin: 0 0 14px;
}
.section-head h2 {
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.1; letter-spacing: -.012em;
    color: var(--ink); margin: 0 0 16px;
    text-wrap: balance;
}
.section-head p { margin: 0; font-size: 16.5px; color: var(--body); }

/* ---- Stage grid -------------------------------------------------------- */

.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }

/* Same blue as the closing call to action, so the nine stages read as one
   block of the brand colour rather than nine outlined boxes. */
.stage {
    border: 1px solid transparent;
    background: var(--fill);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 24px 24px;
    box-shadow: 0 2px 4px rgba(15, 26, 43, .06), 0 12px 26px -18px rgba(28, 79, 156, .8);
    transition: transform .22s ease, box-shadow .22s ease;
}
.stage:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(15, 26, 43, .08), 0 22px 40px -22px rgba(28, 79, 156, .95);
}
.stage .n {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px; letter-spacing: .1em;
    color: rgba(255, 255, 255, .78);
    display: block; margin-bottom: 14px;
}
.stage h3 { margin: 0 0 9px; font-size: 16.5px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.stage p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .92); line-height: 1.62; }

/* ---- Controls ---------------------------------------------------------- */

.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px 40px; }
.control { display: flex; gap: 17px; align-items: flex-start; }
.control .ic {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    display: grid; place-items: center;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}
.control .ic svg { width: 19px; height: 19px; display: block; }
.control h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.control p { margin: 0; font-size: 14.5px; color: var(--body); }

/* ---- Figures ----------------------------------------------------------- */

.figures {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.figures div { background: #fff; padding: 30px 26px; }
.figures .v {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2.8rem; line-height: 1; color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.figures .k {
    font-family: "IBM Plex Mono", monospace;
    font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
    color: var(--soft); margin-top: 11px;
}

/* ---- Roles ------------------------------------------------------------- */

.roles { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.roles li {
    font-size: 14px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    color: var(--body);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, color .2s ease;
}
.roles li:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Closing CTA ------------------------------------------------------- */
/* The one saturated block on the page — colour as punctuation, not weight. */

.cta {
    border-radius: 16px;
    background: var(--fill);
    padding: 60px 52px;
    display: flex; flex-wrap: wrap; gap: 32px;
    align-items: center; justify-content: space-between;
    box-shadow: var(--shadow-lg);
}
.cta h2 {
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    color: #fff; margin: 0 0 12px; letter-spacing: -.012em;
}
.cta p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 46ch; font-size: 15.5px; }
.cta .btn {
    background: #fff; color: var(--brand);
    border-color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5);
}
.cta .btn:hover { background: #fff; color: var(--brand); transform: translateY(-1px); }

/* ---- Footer ------------------------------------------------------------ */

.site-foot { border-top: 1px solid var(--line); padding: 38px 0; background: var(--tint); }
.site-foot .wrap {
    display: flex; flex-wrap: wrap; gap: 14px 28px;
    justify-content: space-between; align-items: center;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11.5px; letter-spacing: .06em;
    color: var(--soft);
}

@media (max-width: 700px) {
    .hero { padding: 66px 0 62px; }
    section.band { padding: 66px 0; }
    .cta { padding: 40px 28px; }
    .head-actions .navlink { display: none; }
}

/* ---- Public form (vendor registration) --------------------------------- */

.form-panel {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 44px 42px 40px;
    box-shadow: var(--shadow-md);
}
.form-title {
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0 0 14px;
    text-wrap: balance;
}
.form-lede { margin: 0 0 30px; color: var(--body); font-size: 16px; max-width: 60ch; }

.form-section {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--soft);
    margin: 32px 0 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}
.form-section:first-of-type { margin-top: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fld { display: flex; flex-direction: column; }
.fld.span-2 { grid-column: 1 / -1; }
.fld label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.fld input, .fld select, .fld textarea {
    width: 100%;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.fld textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.fld .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.fld .upper { text-transform: uppercase; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: #B9C8DD; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
    outline: none;
    border-color: var(--brand-lit);
    box-shadow: 0 0 0 3px rgba(46, 111, 212, .16);
}
.fld .hint { font-size: 12.5px; color: var(--soft); margin-top: 6px; line-height: 1.45; }

.form-note {
    margin: 30px 0 26px;
    padding: 15px 17px;
    background: var(--tint);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 8px;
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}
.form-note strong { color: var(--ink); }

.form-errors {
    margin-bottom: 26px;
    padding: 15px 17px;
    background: #FDECEA;
    border: 1px solid #F3C6C1;
    border-left: 3px solid #B3261E;
    border-radius: 8px;
    font-size: 14px;
    color: #7A1E18;
}
.form-errors strong { display: block; margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 18px; line-height: 1.6; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
    .form-panel { padding: 30px 24px 28px; border-radius: 12px; }
    .form-grid { grid-template-columns: 1fr; }
}
