/* ===========================================================================
   The public site: "Level Up" (December 2026)
   ---------------------------------------------------------------------------
   The front page v3 look on every public page. Owner's call, 2 Dec 2026, the
   day v3 went live: "all public pages adjust to the new design".

   Loaded by layouts/default.php and layouts/auth.php, after theme.css, and
   scoped to `.layout--night`, which both layouts put on <body>. Nothing in
   the signed-in areas, the wall, the locker or the OfferPay checkout loads
   it.

   How it works: theme.css draws the public site light (the "Console" block)
   from tokens. This file puts the ink tokens back, swaps the display face to
   Unbounded, and then overrides, one by one, every public rule that typed a
   light colour instead of a token: a white input, ink text on a gold band,
   white text on a `var(--text)` fill (which is now light). The `routes`
   suite's contrast sweep is what finds the next one.

   The signature pieces:
   - the masthead is ink with green and gold glows, and the mark drawn huge
     and cropped at the right edge, as on the front page
   - section bands are a step darker than the page, not white
   - the closing call is dark, with the mark beside it, not a gold band
   - cards are rounder, and gold is a FILL or an accent on ink

   Decoration moves by transform or opacity only; nothing here animates.
   =========================================================================== */

/* -- The display face, self-hosted like the other two ----------------------
   Unbounded is a free Google Font; loading it from Google would send every
   visitor's IP there (see the fonts note at the top of theme.css). Variable
   file, used at 600–800. */
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("fonts/unbounded-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("fonts/unbounded-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -- Tokens ------------------------------------------------------------------
   Declared on the body class, after theme.css, so they win over the light
   `.layout--default` / `.layout--auth` block (same specificity, later file).
   The wall preview keeps its own light tokens: `.layout--default .preview` is
   declared on the element itself. */
.layout--night {
    --bg:              #0B0D0C;
    --bg-alt:          #121513;
    --surface:         #171B19;
    --surface-2:       #1F2421;
    --surface-3:       #2B312D;

    --line:            rgb(255 255 255 / .09);
    --line-soft:       rgb(255 255 255 / .05);
    --line-strong:     rgb(255 255 255 / .18);

    --text:            #EEF1EE;
    --text-dim:        #A3ACA5;
    --text-faint:      #7F8882;

    --accent-soft:     #F3D269;
    --accent-ghost:    rgb(239 197 63 / .16);
    --accent-2:        #3BAE6E;
    --accent-2-ghost:  rgb(59 174 110 / .16);
    --gold:            #EFC53F;
    --green:           #5FD18F;

    --ok:              #6BD197;
    --ok-bg:           rgb(59 174 110 / .16);
    --warn:            #F5B95B;
    --warn-bg:         rgb(245 185 91 / .14);
    --danger:          #F38B7E;
    --danger-bg:       rgb(243 139 126 / .14);
    --info:            #8DB8FF;
    --info-bg:         rgb(141 184 255 / .14);

    --radius-lg:       20px;
    --shadow:          0 1px 2px rgb(0 0 0 / .4), 0 10px 28px rgb(0 0 0 / .35);
    --shadow-lg:       0 24px 60px rgb(0 0 0 / .55);

    --display:         "Unbounded", "Archivo Black", system-ui, sans-serif;
    --night-display:   var(--display);

    /* The page column. Wider than the old 1180px, and wider again on a big
       screen; the bar and the footer follow it so their edges line up. The
       front page sets its own, wider still (home-v3.css). */
    --site-max:        1240px;
    --night-pad:       max(16px, 4vw);
    --night-max:       1240px;

    color-scheme: dark;
    background: var(--bg);
    color: var(--text);
}
@media (min-width: 1600px) {
    .layout--night { --site-max: 1400px; --night-max: 1400px; }
}

/* -- Bar and footer ---------------------------------------------------------- */
.layout--night .site-header { background: rgb(11 13 12 / .84); border-bottom-color: var(--line); }
.layout--night .nav,
.layout--night .site-footer__inner,
.layout--night .site-footer__bar { max-width: var(--night-max); }
.layout--night .site-footer { background: #070908; border-top: 1px solid var(--line); }
.layout--night .site-footer__list a:hover,
.layout--night .site-footer a:hover { color: var(--text); }

/* The page column follows --site-max. */
.layout--night .layout__main { --site-pad: max(var(--gap-lg), calc((100% - var(--site-max)) / 2)); }

/* -- Type --------------------------------------------------------------------
   Unbounded is wide, so every size here is a step below what Archivo Black
   took for the same line. */
.layout--night .display,
.layout--night .hero__title,
.layout--night .page__title,
.layout--night .article__title,
.layout--night .section__head h2,
.layout--night .reach__copy h2,
.layout--night .brandfit__copy h2,
.layout--night .integrate__copy h2,
.layout--night .section > h2.display,
.layout--night .section .display,
.layout--night .callout h2,
.layout--night .page--error__code {
    font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
}
.layout--night .hero__title { font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 1.04; }
.layout--night .hero__title--page { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.06; }
.layout--night .section__head h2,
.layout--night .reach__copy h2,
.layout--night .brandfit__copy h2,
.layout--night .integrate__copy h2,
.layout--night .section > h2.display { font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.1; }
.layout--night .page__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; }
.layout--night .article__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; max-width: 24ch; }
.layout--night .hero__gradient { color: var(--gold); }

/* -- The masthead -------------------------------------------------------------
   Ink with two soft glows (the band theme.css already lays out edge to edge in
   ::after), and the mark drawn large and cropped at the right edge in its own
   layer (::before, which theme.css used for the aurora). The layer fades into
   the words in front of it, so the mark is a picture of the brand rather than
   a texture under a headline. Static: nothing here repaints. The front page
   draws its own (home-v3.css). */
.layout--night .hero { isolation: isolate; }
.layout--night .hero > * { position: relative; z-index: 1; }
.layout--night .hero::after {
    background:
        radial-gradient(34% 70% at 76% 38%, rgb(59 174 110 / .14), transparent 70%),
        radial-gradient(26% 50% at 66% 0%, rgb(239 197 63 / .10), transparent 70%),
        linear-gradient(to bottom, transparent 70%, var(--bg) 100%),
        #0B0D0C;
}
.layout--night .hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -40px calc(-1 * var(--site-pad) - 6vw) 0 auto;
    width: min(52vw, 760px); height: auto;
    background: url("img/logo/mark.svg") no-repeat 100% 50% / contain;
    opacity: .34; filter: none; animation: none; will-change: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
    mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.layout--night .hero .btn--ghost { border-color: var(--line-strong); color: var(--text); }
.layout--night .hero .btn--ghost:hover { background: rgb(255 255 255 / .05); border-color: var(--text); }
.layout--night .hero .eyebrow--plain { color: var(--green); }

/* -- Links, buttons, fields -------------------------------------------------- */
.layout--night a:hover { color: var(--text); }
.layout--night .btn--primary { box-shadow: 0 10px 26px -10px rgb(239 197 63 / .55); }
.layout--night .btn--primary:hover { background: #F3D269; border-color: #F3D269; color: #0E100F; }
.layout--night .btn--ghost { border-color: var(--line-strong); color: var(--text); }
.layout--night .btn--ghost:hover { border-color: var(--text); background: rgb(255 255 255 / .04); color: var(--text); }
.layout--night .btn--outline { border-color: var(--line-strong); color: var(--text); }
.layout--night .btn--outline:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.layout--night .btn--ink,
.layout--night .btn--ink:hover { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }
.layout--night .btn--ink:hover { border-color: var(--text); }

.layout--night .input,
.layout--night .select,
.layout--night .textarea { background-color: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.layout--night .input::placeholder,
.layout--night .textarea::placeholder { color: var(--text-faint); }
.layout--night .select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23EEF1EE' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}

/* -- Bands and sections ------------------------------------------------------ */
.layout--night .section--band::before { background: var(--bg-alt); border-color: var(--line); }
.layout--night .reach::before { background: var(--bg-alt); }
.layout--night .eyebrow--plain { color: var(--green); }

/* -- Cards ---------------------------------------------------------------------
   theme.css gave every light card a hairline shadow; on ink a card is set off
   by its own surface and a hairline border. */
.layout--night .card,
.layout--night .segments,
.layout--night .platforms,
.layout--night .faq,
.layout--night .help-topic,
.layout--night .postcard,
.layout--night .audience__card,
.layout--night .paystrip,
.layout--night .paystrip--links,
.layout--night .payout-figures { box-shadow: none; }
.layout--night a.card:hover,
.layout--night .card--link:hover,
.layout--night .help-topic:hover,
.layout--night .help-list__link:hover,
.layout--night .postcard:hover,
.layout--night .payout-card:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-2); }

.layout--night .feature__icon--gold { background: rgb(239 197 63 / .14); color: #F3D269; }
.layout--night .feature__icon--green,
.layout--night .earn-way__icon { background: rgb(59 174 110 / .16); color: #6BD197; }
.layout--night .earn-way { border-top-color: var(--line-strong); }
.layout--night .audience__card--gold .audience__tag { color: #F3D269; }
.layout--night .audience__card--green .audience__tag { color: #6BD197; }
.layout--night .audience__card--green::before { background: #3BAE6E; }
.layout--night .ticks li::before { background: rgb(59 174 110 / .18); color: #6BD197; }
.layout--night .step__num,
.layout--night .guide .step__n { background: var(--gold); color: #0E100F; }
.layout--night .paystrip--links .paystrip__method:hover,
.layout--night .section--band .paystrip--links .paystrip__method:hover { background: var(--surface-2); }
.layout--night .faq__item[open] .faq__question::after { background: var(--gold); color: #0E100F; }
.layout--night .chip--active { background: var(--text); border-color: var(--text); color: var(--bg); }
.layout--night .help-aside__link--active { background: var(--surface-3); color: var(--text); box-shadow: inset 3px 0 0 var(--gold); }
.layout--night .help-aside__link--active .help-aside__count { color: var(--text-dim); }
.layout--night .blogpager__link--active { background: var(--gold); border-color: var(--gold); color: #0E100F; }
.layout--night .landing-compare__ours,
.layout--night .landing-compare td.landing-compare__ours { color: #6BD197; }
.layout--night .landing-compare th.landing-compare__ours { background: rgb(59 174 110 / .18); color: var(--text); }
.layout--night .card--cta { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.layout--night .card--cta h2,
.layout--night .card--cta h3 { color: var(--text); }
.layout--night .card--cta .muted,
.layout--night .card--cta p { color: var(--text-dim); }
.layout--night .setswitch__tab--on { background: var(--surface-2); }
.layout--night .codeblock { border: 1px solid var(--line); }
.layout--night pre { border: 1px solid var(--line); }
.layout--night .prose a { color: var(--green); }
.layout--night .redoc-shell,
.layout--night .swagger-shell { background: #FFFFFF; }

/* -- The closing call: dark, the mark beside it ------------------------------
   The gold band asked for something on a light page; on an ink page the same
   ask is the gold button, and the band is a green glow with the mark in it. */
.layout--night .callout { color: var(--text); padding: clamp(64px, 8vw, 120px) 0; }
.layout--night .callout::before {
    background:
        radial-gradient(50% 80% at 50% 100%, rgb(59 174 110 / .22), transparent 70%),
        var(--bg-alt);
    border-top: 1px solid var(--line);
}
/* The mark, small and mostly past the right edge, faded behind the buttons. */
.layout--night .callout::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: 12%; bottom: 12%; right: calc(-1 * var(--site-pad) - 9vw);
    width: min(24vw, 320px);
    background: url("img/logo/mark.svg") no-repeat 100% 50% / contain;
    opacity: .28;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%);
    mask-image: linear-gradient(to right, transparent 0%, #000 60%);
}
.layout--night .callout h2 {
    color: var(--text); text-transform: none;
    font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em;
}
.layout--night .callout p { color: var(--text-dim); }
.layout--night .callout .btn--primary { background: var(--gold); border-color: var(--gold); color: #0E100F; }
.layout--night .callout .btn--primary:hover { background: #F3D269; border-color: #F3D269; color: #0E100F; }
.layout--night .callout .btn--ghost,
.layout--night .callout .btn--outline { border-color: var(--line-strong); color: var(--text); }
.layout--night .callout .btn--ghost:hover,
.layout--night .callout .btn--outline:hover { border-color: var(--text); background: rgb(255 255 255 / .04); color: var(--text); }

/* The error page's big code: gold, the one figure on the page. */
.layout--night .page--error__code { color: var(--gold); }

/* -- The auth pages: the form side is ink too -------------------------------- */
.layout--night.layout--auth { background: var(--bg); }
.layout--night .auth__side,
.layout--night .auth__strip { background-color: #070908; }
.layout--night .auth__top-switch a,
.layout--night .auth-note a { color: var(--green); }

@media (max-width: 1000px) {
    .layout--night .hero::before { width: 70vw; opacity: .2; }
    .layout--night .callout::after { display: none; }
}
@media (max-width: 700px) {
    .layout--night .hero::before { display: none; }
}
