/*
 * The Ai Biz Box office.
 *
 * ITS OWN PLATFORM, NOT A SKIN ON THE MEMBER ROOM. Somebody who joined through the Biz
 * Box funnel bought four products to sell for $25 a month. They have never been told
 * about a matrix, a rank, a team or twelve levels, and dropping them into a room built
 * around those is dropping them into somebody else's business.
 *
 * THE TOKENS ARE THE FUNNEL'S OWN, read off bizbox.e1ulife.com rather than guessed at,
 * so the page somebody bought from and the page they land in are the same brand.
 *
 * THE FONTS ARE SELF HOSTED AND THAT IS NOT A PREFERENCE. The funnel is a static page
 * Caddy serves, so it links Google Fonts and they load. This is served through the
 * application, whose policy is font-src 'self' -- a linked stylesheet is refused, the
 * page falls back to a system face, and NOTHING SAYS SO. The shop was shipped in Arial
 * Black for exactly this reason and nobody could see why from looking at it.
 */

@font-face {
    font-family: Unbounded;
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url(/assets/fonts/unbounded.woff2) format("woff2");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/assets/fonts/dm-sans.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;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/assets/fonts/dm-sans-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+1AB0-1ACE, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: dark;

    /* The funnel's palette, unchanged. */
    --ink:   #0B1640;
    --deep:  #0F1E52;
    --royal: #1D3A9C;
    --brand: #223573;
    --tileb: #2F63E0;
    --orange:#FF4800;
    --gold:  #FFA43A;
    --glow:  #FFC46B;

    --text: #E8EDFB;
    --mute: #C3CCEA;
    --line: rgba(255, 255, 255, .14);
    --panel: rgba(255, 255, 255, .045);

    --head: Unbounded, "Arial Black", system-ui, sans-serif;
    --body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --r:  16px;
    --r-lg: 26px;
    --sp: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(47, 99, 224, .22), transparent 60%),
        var(--ink);
    color: var(--text);
    font: 400 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ─────────────────────────── the bar ─────────────────────────── */

.bar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: var(--sp);
    padding: 11px clamp(16px, 4vw, 34px);
    background: rgba(11, 22, 64, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

/*
 * THE LOCKUP IS TWO LINES AND AN ILLUSTRATION, so it needs height to be readable at
 * all. At 30px it was a smudge: "Ai" over "Biz Box" plus the box itself, inside a
 * 60px box. 46 is the smallest it can be and still be read as the brand somebody
 * just bought from.
 */
.bar__logo { height: 46px; width: auto; display: block; }
.bar__spacer { flex: 1; }

.bar__who { font-size: 13px; color: var(--mute); text-align: right; line-height: 1.3; }
.bar__who b { display: block; color: var(--text); font-weight: 700; }

/* ─────────────────────────── the menu ─────────────────────────── */

.nav {
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
    padding: 0 clamp(16px, 4vw, 34px);
    border-bottom: 1px solid var(--line);
    background: rgba(15, 30, 82, .5);
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
    position: relative;
    padding: 15px 16px;
    font: 600 14.5px var(--body);
    color: var(--mute);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--orange); }

/* ─────────────────────────── the page ─────────────────────────── */

.wrap { max-width: 1080px; margin: 0 auto; padding: clamp(26px, 5vw, 46px) clamp(16px, 4vw, 34px) 80px; }

h1 { font: 800 clamp(26px, 4.4vw, 40px)/1.1 var(--head); letter-spacing: -.01em; text-wrap: balance; }
h2 { font: 700 clamp(18px, 2.6vw, 23px)/1.2 var(--head); margin: 44px 0 14px; }
.lede { color: var(--mute); margin-top: 10px; max-width: 62ch; }

/* ─────────────────────────── numbers ─────────────────────────── */

.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }

.num {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 18px;
}
.num k { display: block; font-size: 12.5px; color: var(--mute); letter-spacing: .02em; }
.num b { display: block; font: 800 clamp(22px, 3vw, 30px)/1.1 var(--head); margin-top: 6px; }

.note { font-size: 13.5px; color: var(--mute); margin-top: 12px; max-width: 70ch; }

/* ─────────────────────────── products ─────────────────────────── */

/*
 * TWO UP, SO FOUR PRODUCTS ARE A SQUARE. auto-fit at 260px gave three across and left
 * the fourth alone on its own row, which reads as one product having been added as an
 * afterthought rather than as a box with four things in it.
 */
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; margin-top: 18px; }

.kit__item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    display: flex; flex-direction: column; gap: 10px;
}
.kit__item h3 { font: 700 18px var(--head); }
.kit__item p { font-size: 14.5px; color: var(--mute); flex: 1; }
.kit__from { font-size: 13.5px; color: var(--mute); }
.kit__from b { color: var(--text); }
.kit__pay { font-size: 13.5px; color: var(--glow); font-weight: 700; }

/* ─────────────────────────── the link ─────────────────────────── */

.linkbox {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 16px;
    margin-top: 16px;
}
.linkbox code { font: 500 14.5px "SF Mono", ui-monospace, Menlo, monospace; word-break: break-all; flex: 1; min-width: 0; }

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 0; cursor: pointer;
    font: 800 15px var(--body);
    border-radius: 14px;
    padding: 13px 22px;
    text-decoration: none;
    transition: transform .14s ease;
}
.btn-o { background: linear-gradient(180deg, #FF6A1F, var(--orange)); color: #fff;
         box-shadow: 0 14px 32px -14px rgba(255, 72, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-o:hover { transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-line:hover { border-color: rgba(255, 255, 255, .34); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }

/* ─────────────────────────── tables ─────────────────────────── */

.tbl { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.tbl th {
    text-align: left; font: 700 12px var(--body); letter-spacing: .07em; text-transform: uppercase;
    color: var(--mute); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); color: var(--mute); vertical-align: middle; }
.tbl td:first-child { color: var(--text); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }

.wrapscroll { overflow-x: auto; }

/* ─────────────────────────── empty ─────────────────────────── */

.empty {
    background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r-lg);
    padding: 30px; text-align: center; color: var(--mute); margin-top: 18px;
}
.empty b { display: block; color: var(--text); font: 700 17px var(--head); margin-bottom: 8px; }

/* ─────────────────────────── the way out ─────────────────────────── */

/*
 * SUBTLE, WHICH IS THE INSTRUCTION. This office is about selling the four products. Go
 * E1U is a door somebody can take when they are ready, not a second offer competing
 * with the one they just bought.
 */
.onward {
    margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.onward p { font-size: 13.5px; color: var(--mute); flex: 1; min-width: 240px; }
.onward p b { color: var(--text); display: block; font-weight: 700; margin-bottom: 2px; }

@media (max-width: 560px) {
    .nums { grid-template-columns: repeat(2, 1fr); }
    .bar__who { display: none; }
}

/* ─────────────────────────── the opt-in screen ─────────────────────────── */

/*
 * ONE PANEL, A PLAIN HAIRLINE, AND THE COLOUR ON THE BUTTON. No tinted left edge and no
 * coloured ticks beside the three documents: a gold or orange stripe down a card is the
 * thing David reads as generated, every time.
 */
.optin {
    margin-top: 24px; padding: 24px;
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--panel);
    max-width: 68ch;
}

.optin p { font-size: 14.5px; color: var(--mute); margin: 0 0 18px; }
.optin p b { color: var(--text); display: block; font-weight: 700; margin-bottom: 3px; }
.optin p:last-of-type { margin-bottom: 22px; }

/* The three documents, as three plain links that wrap rather than a list. */
.optin__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.optin__docs a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.optin__docs a:hover { color: #fff; }

/*
 * THE WHOLE ROW IS THE LABEL, so the tick target is the sentence and not a 13px square.
 * align-items: flex-start keeps the box on the first line when the sentence wraps on a
 * phone instead of floating to the middle of two lines.
 */
.optin__tick {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 16px 0; border-top: 1px solid var(--line);
    font-size: 14.5px; color: var(--text); cursor: pointer;
}

.optin__tick input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--orange); flex: none; }

.optin__go { display: flex; gap: 12px; flex-wrap: wrap; }

/* A refusal to proceed, said plainly rather than in red panels. */
.note--bad { color: var(--text); }

@media (max-width: 560px) {
    .optin { padding: 18px; }
    .optin__go .btn { width: 100%; }
}

/* ─────────────────────────── who a lead is ─────────────────────────── */

/*
 * TWO LINES, QUIET ONES. The identity is not the point of this table -- how far somebody
 * got is -- so it sits at the same weight as everything else rather than leading it.
 */
.who b { display: block; font-weight: 700; }
.who span { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* Somebody who has bought is a customer, not a lead, and reads as one. */
.who--real span { color: var(--text); }
