/* UI-07 (founder 2026-11-23): the homepage's design (UI-04, founder-approved 2026-11-19) for EVERY public page
   (body.site). The colour scheme is only the --hw-* tokens below: violet by default, teal and coral by the
   "Your colour" dots (<html data-site-colour>, assets/js/site-colour.js). site.css's own tokens are pointed at
   them here, so the header, footer, buttons, cards and FAQ of every page follow the scheme. Load after site.css. */

/* ---------- 1. schemes (contrast-checked: white on --hw-brand and --hw-ink-2 on --hw-bg are 4.5:1 or more) ---------- */
:root {
    --hw-bg: #F8F5EF; --hw-bg-alt: #EEE9DF; --hw-ink: #18202D; --hw-ink-2: #4B5563;
    --hw-brand: #5B3EC8; --hw-brand-deep: #4A31A8; --hw-accent: #A1421D; --hw-ok: #17613B; --hw-dark: #202439;
}
:root[data-site-colour="teal"] {
    --hw-bg: #F4F8F7; --hw-bg-alt: #E3EFEC; --hw-ink: #122C2A; --hw-ink-2: #46605D;
    --hw-brand: #006D62; --hw-brand-deep: #005A51; --hw-accent: #9B451A; --hw-ok: #17613B; --hw-dark: #123E3A;
}
:root[data-site-colour="coral"] {
    --hw-bg: #FDFBF7; --hw-bg-alt: #F3EFE6; --hw-ink: #18181B; --hw-ink-2: #52525B;
    --hw-brand: #C8321A; --hw-brand-deep: #A62914; --hw-accent: #B45309; --hw-ok: #17613B; --hw-dark: #18181B;
}

body.site {
    --ink: var(--hw-ink); --text: var(--hw-ink); --text-2: var(--hw-ink-2); --muted: var(--hw-ink-2);
    --bg: var(--hw-bg); --wash: var(--hw-bg-alt); --primary: var(--hw-brand); --primary-hover: var(--hw-brand-deep);
    --line: rgba(24, 32, 45, .12);
    /* review r1: app.css's other shades (link hover, alerts, light washes) follow the brand too */
    --primary-dark: var(--hw-brand-deep); --primary-light: color-mix(in srgb, var(--hw-brand) 75%, #FFFFFF);
    --primary-50: color-mix(in srgb, var(--hw-brand) 6%, #FFFFFF); --primary-100: color-mix(in srgb, var(--hw-brand) 12%, #FFFFFF);
    --blue-ink: var(--hw-brand-deep); --blue-bg: color-mix(in srgb, var(--hw-brand) 12%, #FFFFFF);
    --hw-panel: #FFFFFF;
    --hw-tint: color-mix(in srgb, var(--hw-brand) 10%, transparent);
    background: var(--hw-bg);
    color: var(--hw-ink);
    transition: background-color .3s ease;
}
.site .site-footer { background: var(--hw-dark); }
.site .btn-primary { box-shadow: 0 10px 24px -14px var(--hw-brand); }
/* review r1: buttons, inputs and summaries too (site.css's faint 45% ring measured ~2.1:1, under the 3:1 needed) */
.site a:focus-visible, .site button:focus-visible, .site .btn:focus-visible, .site input:focus-visible, .site summary:focus-visible { outline: 3px solid var(--hw-accent); outline-offset: 3px; }
/* Codex r9: on the dark footer and the dark control band the ring is white (3:1 or more) */
.site .site-footer a:focus-visible, .site .hw-control a:focus-visible { outline-color: #FFFFFF; }

/* ---------- 2. "Your colour" dots in the top bar ---------- */
.site .site-dots { display: flex; align-items: center; gap: 8px; margin: 0 16px 0 auto; order: 2; }
.site .site-nav .navbar-toggler { order: 3; }
.site .site-nav .navbar-collapse { order: 4; }
.site .site-dots-label { font-size: 13px; font-weight: 500; color: var(--hw-ink-2); margin-right: 2px; white-space: nowrap; }
.site .site-dot {
    width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    box-shadow: 0 0 0 2px var(--hw-panel), 0 0 0 3px rgba(0, 0, 0, .16); transition: box-shadow .15s ease;
}
.site .site-dot-violet { background: #5B3EC8; }
.site .site-dot-teal { background: #006D62; }
.site .site-dot-coral { background: #C8321A; }
.site .site-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--hw-panel), 0 0 0 4px var(--hw-ink); }
.site .site-dot:focus-visible { outline: 2px solid var(--hw-ink); outline-offset: 4px; }
@media (min-width: 992px) {
    .site .site-dots { order: 3; margin: 0 0 0 20px; }
    .site .site-nav .navbar-collapse { order: 2; flex-grow: 0; margin-left: auto; }
}
@media (max-width: 575.98px) { .site .site-dots-label { display: none; } .site .site-dots { margin-right: 8px; } }


/* ---------- 3. headers without the menu (sign-in, sign-up and the other account pages) ---------- */
/* The link sits on the right, then the dots, as on the homepage (the dots' own order and margin are for the menu). */
.site .site-nav-auth .site-nav-auth-link { order: 2; margin-left: auto; }
.site .site-nav-auth .site-dots { order: 3; margin: 0 0 0 20px; }
@media (max-width: 575.98px) { .site .site-nav-auth .site-dots { margin-left: 12px; } }

/* ---------- 4. review r1 ---------- */
/* The homepage keeps its cream page (site.css's body.site.home { background: var(--surface) } is more specific). */
body.site.home { background: var(--hw-bg); }
/* Inputs and tick boxes outside the sign-in card (reset password, accept invite, sign-up's terms box) use the brand. */
.site .form-control:focus, .site .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.site .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.site .form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
/* An agency's client report prints on white, as before (its own print rule loses to body.site). */
@media print { body.site { background: #FFFFFF; } }

/* ---------- 5. review r2 ---------- */
/* The landing pages (bl-hero / pp-hero) get the homepage's cream page too; site.css's :has() rules set white. */
body.site:has(.bl-hero), body.site:has(.pp-hero) { background: var(--hw-bg); }
/* Text fields show focus by the brand border and glow (3:1 or more), so no second accent outline on them. */
.site .form-control:focus-visible, .site .form-select:focus-visible { outline: none; }

/* ---------- 6. review r3: the landing pages' sections on the cream page ---------- */
/* Bands stand out with the wash (as the homepage's alternate bands do), and heroes and tints fade into the page. */
.site .pp-band, .site .bl-band, .site:has(.pp-hero) .section-alt { background: var(--wash); }
.site .pp-hero, .site .bl-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 3%, var(--bg)) 0%, var(--bg) 70%); }
.site .bl-tint { background: linear-gradient(180deg, var(--wash) 0%, var(--bg) 100%); }

/* ---------- 7. UI-07 phase 2: sign-in and sign-up in the homepage's style ---------- */
/* The homepage's soft brand glow behind the page, top right. */
.site .site-auth { position: relative; overflow: hidden; }
.site .site-auth::before {
    content: ""; position: absolute; right: -200px; top: -180px; width: 680px; height: 680px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--hw-brand) 18%, transparent), transparent 66%); pointer-events: none;
}
.site .site-auth > .container { position: relative; }
/* The side panel: a white card like the homepage's "Your marketing this week", each line with a tinted icon tile. */
.site .auth-pitch {
    background: var(--hw-panel, #FFFFFF); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
    box-shadow: 0 1px 2px rgba(24, 32, 45, .05), 0 24px 48px -32px rgba(24, 32, 45, .25);
}
.site .auth-pillars { gap: 18px; }
/* The icon sits on the left and the line wraps beside it (a grid would put the plain text in the icon column). */
.site .auth-pillars li { position: relative; padding-left: 54px; padding-top: 8px; min-height: 40px; font-size: 16px; line-height: 1.5; }
.site .auth-pillars li::before, .site .auth-pillars li::after { content: none; }
.site .auth-ico {
    position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--hw-tint); color: var(--hw-brand); font-size: 18px;
}
/* The check pinned left (flex would split the sentence and its bold word into separate pieces). */
.site .auth-approve { position: relative; padding-left: 32px; border-top-color: var(--line); }
.site .auth-approve i { position: absolute; left: 0; top: 24px; font-size: 20px; line-height: 1.4; color: var(--hw-ok); }
/* The form card: the homepage card's rounding and brand shadow. */
.site .auth-card {
    border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 1px 2px rgba(24, 32, 45, .05), 0 24px 48px -28px color-mix(in srgb, var(--hw-brand) 45%, transparent);
}
/* review: phones keep site.css's padding and the plain wash panel (2026-10-26 design review) */
@media (max-width: 767.98px) { .site .auth-pitch { padding: 24px; background: var(--wash); box-shadow: none; } }
@media (max-width: 575.98px) { .site .auth-pitch { padding: 16px; } .site .site-auth::before { width: 420px; height: 420px; right: -180px; top: -160px; } }
