/* ==========================================================================
   Sign-in / sign-up v3 — PLATINUM (boards A1–A4 · T1–T2 · P1–P4 of the locked
   canvas AiFPNm4fpSaWyY93V72w9e, founder 21 Oct 2026). Same markup and JS hooks
   as rev 3 (14 Oct); only the look changed: white + platinum, graphite actions,
   the light platinum panel beside the form, Bricolage titles with a sheen word.
   Loaded ONLY by the v3 templates, which render only while SIGNUP_FLOW_V3 is
   on (or in preview) — so nothing here can touch today's pages.

   12px functional floor (UI_STANDARDS Part 3). Fields 52px / 16px text (no
   iOS focus zoom). One layout from 992px: form left, panel right (iPad
   landscape included); below it a single column with the offer as a strip.
   ========================================================================== */

.av3 {
    --av-brand: #15171C;          /* graphite — actions, ticks, current step */
    --av-brand-deep: #0E1116;
    --av-brand-wash: #F5F6F8;     /* platinum */
    --av-brand-line: #D9DDE3;
    --av-ring: 0 0 0 4px rgba(14, 17, 22, .08);
    --av-ink: #0E1116;
    --av-ink-2: #4B5261;
    --av-ink-3: #6B7280;          /* muted — on white only (4.8:1) */
    --av-body: #2F3440;
    --av-line: #D9DDE3;
    --av-hair: #E6E8EC;
    --av-page: #F5F6F8;
    --av-good: #047857;
    --av-good-wash: #E7F5EF;
    --av-risk: #B4321F;
    --av-risk-wash: #FDEDEA;
    --av-on-deep: #4B5261;
    --av-sheen: linear-gradient(100deg, #111318 0%, #5E6673 55%, #111318 100%);
    --av-display: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;   /* headings: Geist 600 (founder 21 Oct) */
    --av-mono: "JetBrains Mono", ui-monospace, monospace;
    --av-field-h: 44px;     /* density pass, founder 21 Oct */
    --av-btn-h: 44px;
    --av-field-fs: 16px;
    margin: 0;
    background: #fff;
    color: var(--av-ink);
    font-family: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
.av3 *, .av3 *::before, .av3 *::after { box-sizing: border-box; }
.av3 a { color: var(--av-brand); text-decoration: none; font-weight: 700; }
.av3 a:hover { color: var(--av-ink-2); }
.av3 :focus-visible { outline: 3px solid #AEB5C1; outline-offset: 2px; }

/* ---- Shell ------------------------------------------------------------- */
.av-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.av-main { display: flex; flex-direction: column; min-width: 0; }
.av-top { min-height: 64px; padding: 12px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.av-top__l { display: flex; align-items: center; }
.av-top__r { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 15px; color: var(--av-ink-2); white-space: nowrap; }
/* P5c (founder 11 Nov 2026, "make it consistent"): the same wordmark as the site's navbar (.lk-nav__brand) — Inter 600,
   16 px, the 26 px mark — on every sign-in, sign-up, partner, client and password page. */
.av-brand { display: inline-flex; align-items: center; gap: 10px; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--av-ink) !important; }
.av-brand img { width: 26px; height: 26px; }
.av3 .av-brand { font-weight: 600; }   /* .av3 a (700) would otherwise win over the wordmark */
.av-top--plain { grid-template-columns: 1fr auto; }
.av-back { height: 40px; padding: 0 4px; border: 0; background: transparent; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--av-ink-2) !important; }
.av-pill-link { height: 40px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; font-weight: 700; color: var(--av-ink) !important; border: 1px solid var(--av-line); background: #fff; }
.av-body { flex: 1; display: flex; justify-content: center; padding: 8px 16px 24px; }
.av-col { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.av-foot { padding: 12px 16px 20px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--av-ink-3); }
.av-foot a { color: var(--av-ink-3); font-weight: 500; }
.av-side { display: none; }
.av-strip { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 6px 16px; background: #F1F2F5; border-bottom: 1px solid #ECEEF1; font-size: 13px; color: var(--av-body); }
.av-strip b { font-family: var(--av-mono); font-size: 13px; color: var(--av-ink); }

@media (min-width: 992px) {
    .av-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .av-strip { display: none; }
    .av-top { min-height: 0; padding: 28px clamp(28px, 4.4vw, 64px) 0; grid-template-columns: 1fr auto; }
    .av-top__c { display: none; }
    .av-body { align-items: center; padding: 24px clamp(28px, 4.4vw, 64px); }
    .av-foot { padding: 0 clamp(28px, 4.4vw, 64px) 24px; }
    .av-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 18px;
        padding: 56px clamp(32px, 5vw, 72px); background: linear-gradient(160deg, #FFFFFF 0%, #F3F4F6 55%, #E7E9ED 100%); border-left: 1px solid var(--av-hair); color: var(--av-ink); }
    .av-side--shot { justify-content: flex-start; padding-right: 0; padding-top: 64px; }
}

/* ---- Type --------------------------------------------------------------- */
.av-h1 { margin: 0; font-family: var(--av-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; }
.av-sheen { background: var(--av-sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.av-sub { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--av-ink-2); }
.av-sub b { color: var(--av-ink); }
.av-head { display: flex; flex-direction: column; gap: 10px; }
.av-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--av-ink-3); }
.av-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 14.5px; color: var(--av-ink-2); }
.av-ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.av-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--av-body); }
.av-tick i { color: var(--av-brand); }
.av-ok { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--av-good-wash); color: var(--av-good); font-size: 13px; font-weight: 600; }

/* ---- Steps: numbered dots joined by bars --------------------------------- */
.av-steps { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.av-steps li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--av-ink-3); white-space: nowrap; }
.av-steps li + li::before { content: ""; width: clamp(16px, 3vw, 44px); height: 3px; margin: 0 12px 0 3px; border-radius: 2px; background: var(--av-hair); }
.av-steps li.is-done + li::before { background: var(--av-brand); }
.av-steps__n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 1.5px solid var(--av-line); background: #fff; color: var(--av-ink-3); }
.av-steps li.is-cur { color: var(--av-ink); }
.av-steps li.is-cur .av-steps__n { background: var(--av-brand); border-color: var(--av-brand); color: #fff; box-shadow: 0 0 0 5px rgba(14, 17, 22, .08); }
.av-steps li.is-done { color: var(--av-body); }
.av-steps li.is-done .av-steps__n { background: var(--av-brand); border-color: var(--av-brand); color: #fff; }

/* ---- Fields ------------------------------------------------------------- */
.av-group { display: flex; flex-direction: column; gap: 7px; }
.av-label { font-size: 13px; font-weight: 600; color: var(--av-body); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.av-label a { font-size: 13.5px; }
.av-field { display: flex; align-items: center; gap: 10px; height: var(--av-field-h); padding: 0 6px 0 14px; border: 1px solid var(--av-line); border-radius: 12px; background: #fff; }
.av-field:focus-within { border-color: var(--av-brand); box-shadow: var(--av-ring); }
.av-field.is-invalid { border-color: var(--av-risk); }
.av-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; font: inherit; font-size: var(--av-field-fs); color: var(--av-ink); }
.av-field input::placeholder { color: var(--av-ink-3); }
.av-cc { font-weight: 700; padding-right: 12px; border-right: 1px solid var(--av-hair); font-size: var(--av-field-fs); }
.av-eye { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--av-ink-2); cursor: pointer; position: relative; }
.av-err { font-size: 13px; font-weight: 500; color: var(--av-risk); }
.av-alert { padding: 10px 14px; border-radius: 12px; background: var(--av-risk-wash); color: var(--av-risk); font-size: 14px; font-weight: 500; }
/* WF-5 (board r68): the join page — first + last name side by side (each may shrink at 390), and the note colours. */
.av-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.av-two .av-group, .av-two input { min-width: 0; }
.av-note .av-good { color: var(--av-good); }
.av-note.av-risk { color: var(--av-risk); }
/* Walk-fix 1 (P2): a success note ("Your email has been verified") in the good colours, not the error's. */
.av-alert--ok { background: var(--av-good-wash); color: var(--av-good); }
.av-check { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; color: var(--av-body); cursor: pointer; }
.av-check input { width: 19px; height: 19px; margin: 0; accent-color: var(--av-brand); }
.av-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 576px) { .av-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* ---- Buttons ------------------------------------------------------------ */
.av-btn { position: relative; width: 100%; min-height: var(--av-btn-h); padding: 0 20px; border: 0; border-radius: 10px; background: var(--av-brand); color: #fff !important; font: inherit; font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
    box-shadow: 0 14px 28px -12px rgba(14, 17, 22, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.av-btn:hover { background: #2A2E36; }
.av-btn:disabled { opacity: .7; cursor: default; }
.av-btn--ghost { min-height: 44px; background: #fff; color: var(--av-ink) !important; border: 1px solid var(--av-line); font-size: 15.5px; font-weight: 600; box-shadow: none; gap: 12px; }
.av-btn--ghost:hover { background: var(--av-page); }
.av-btn--sm { width: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
.av-linkbtn { align-self: center; min-height: 40px; display: inline-flex; align-items: center; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--av-ink-2) !important; cursor: pointer; }
.av-linkbtn--brand { color: var(--av-ink) !important; font-weight: 700; }
.av-linkbtn:disabled { color: var(--av-ink-3) !important; cursor: default; }
.av-or { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--av-ink-3); }
.av-or::before, .av-or::after { content: ""; flex: 1; height: 1px; background: var(--av-hair); }
.av-pair { display: flex; gap: 10px; flex-wrap: wrap; }
.av-pair .av-btn { flex: 0 0 auto; width: auto; min-height: 48px; padding: 0 18px; font-size: 15px; }

/* ---- Code boxes: two groups of three ------------------------------------ */
.av-otp { display: flex; align-items: center; gap: clamp(6px, 1.6vw, 12px); }
.av-otp input { flex: 1 1 0; min-width: 0; max-width: 60px; height: clamp(52px, 12vw, 68px); padding: 0; text-align: center; border: 1.5px solid var(--av-line); border-radius: clamp(12px, 2vw, 16px); background: #fff;
    font-family: var(--av-mono); font-size: clamp(22px, 5vw, 30px); font-weight: 700; color: var(--av-ink); }
.av-otp input:focus { outline: 0; border-color: var(--av-brand); box-shadow: 0 0 0 5px rgba(14, 17, 22, .09); }
.av-otp input.is-filled { border-color: #C7CCD4; background: #F3F4F6; }
.av-otp.is-invalid input { border-color: var(--av-risk); background: var(--av-risk-wash); }
.av-otp__dash { flex: none; width: 16px; height: 3px; border-radius: 2px; background: var(--av-line); }
.av-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Side panel (≥992px) — light platinum ------------------------------- */
.av-side__k { position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--av-brand); }
.av-side__h { position: relative; margin: 0; font-family: var(--av-display); font-weight: 600; font-size: clamp(1.5rem, 1rem + 1vw, 2rem); line-height: 1.12; letter-spacing: -.03em; max-width: 560px; }
.av-side__p { position: relative; margin: 0; font-size: 15px; line-height: 1.5; color: var(--av-ink-2); }
.av-side__p b { color: var(--av-ink); }
.av-side a { color: var(--av-ink); font-weight: 700; }
.av-new { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); border: 1px solid var(--av-hair); }
.av-new__ic { width: 38px; height: 38px; flex: none; border-radius: 14px; background: var(--av-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.av-new b { display: block; font-size: 15.5px; color: var(--av-ink); }
.av-new span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--av-ink-2); }
.av-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-left: 8px; border-radius: 999px; background: var(--av-brand); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.av-offer { position: relative; align-self: flex-start; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); border: 1px solid var(--av-line); }
.av-offer__k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--av-body); }
.av-cd { display: flex; gap: 6px; }
.av-cd > div { display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 7px 4px; border-radius: 12px; background: #fff; border: 1px solid var(--av-hair); }
.av-cd b { font-family: var(--av-mono); font-size: 20px; line-height: 1; }
.av-cd small { font-size: 12px; color: var(--av-ink-3); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.av-shot { position: relative; margin: 18px 0 0; }
.av-fc-row { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding-right: clamp(32px, 5vw, 72px); }
.av-fc { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--av-hair); font-size: 14px; color: var(--av-body); white-space: nowrap; }
.av-fc b { color: var(--av-brand); }
.av-tl { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.av-tl li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; position: relative; }
.av-tl li:last-child { padding-bottom: 0; }
.av-tl li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; border-left: 2px dashed var(--av-line); }
.av-tl__dot { width: 36px; height: 36px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #fff; border: 1px solid var(--av-line); color: var(--av-brand); }
.av-tl__dot.is-on { background: var(--av-brand); border-color: var(--av-brand); color: #fff; }
.av-tl b { display: block; font-size: 16px; color: var(--av-ink); }
.av-tl span { font-size: 14px; line-height: 1.5; color: var(--av-ink-2); }
.av-card { position: relative; max-width: 560px; background: #fff; color: var(--av-ink); border-radius: 18px; overflow: hidden; border: 1px solid var(--av-hair); box-shadow: 0 30px 60px -30px rgba(14, 17, 22, .3); }
.av-card__h { padding: 12px 16px; border-bottom: 1px solid var(--av-hair); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.av-card__b { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.av-card__f { height: 40px; border-top: 1px solid var(--av-hair); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--av-ink); }
.av-mail { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #F0F1F4; font-size: 14px; color: var(--av-ink-2); }
.av-mail:last-child { border-bottom: 0; }
.av-mail b { color: var(--av-ink); }
.av-mail span:first-child { width: 80px; flex: none; }
.av-mail span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-mock { background: var(--av-page); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; color: var(--av-ink); max-width: 420px; }
.av-mock__row { background: #fff; border: 1px solid var(--av-hair); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.av-mock__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.av-mock__kpi { background: #fff; border: 1px solid var(--av-hair); border-radius: 10px; padding: 6px 8px; font-size: 12px; color: var(--av-ink-2); }
.av-mock__kpi b { display: block; font-size: 14px; color: var(--av-ink); }

/* The screenshot frame (same as the landing kit's `.sk3-pf`). */
.av-pf { padding: 5px; border-radius: 12px 0 0 12px; background: linear-gradient(180deg, #FFFFFF 0%, #EDEFF2 100%); border: 1px solid #DCE0E6; border-right: 0;
    box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(14, 17, 22, .04), 0 24px 48px -24px rgba(14, 17, 22, .26), 0 70px 120px -60px rgba(14, 17, 22, .28); }
.av-pf__win { border: 1px solid #E1E4E9; border-right: 0; border-radius: 8px 0 0 2px; overflow: hidden; background: #fff; }
.av-pf__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 18px; padding: 2px 9px; line-height: 1; background: linear-gradient(180deg, #FAFBFC, #F1F2F5); border-bottom: 1px solid var(--av-hair); }
.av-pf__dots { display: flex; gap: 4px; }
.av-pf__dots i { width: 6px; height: 6px; border-radius: 50%; background: #D3D7DD; }
.av-pf__url { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 4px; background: #fff; border: 1px solid var(--av-hair); font-family: var(--av-mono); font-size: 10px; line-height: 1; color: var(--av-ink-3); white-space: nowrap; }
.av-pf img { display: block; width: 100%; height: auto; }

/* ---- "You're in" (board P4) --------------------------------------------- */
.av-ready { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(ellipse 75% 55% at 50% 0%, #EEF0F3 0%, #FFFFFF 70%); color: var(--av-ink); }
.av-ready__in { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.av-ready__check { width: 52px; height: 52px; border-radius: 50%; background: var(--av-good-wash); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(4, 120, 87, .06); }
.av-ready__list { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--av-hair); color: var(--av-body); }
.av-ready__list i { color: var(--av-brand); }
.av-ready__list span { display: flex; align-items: center; gap: 8px; }
.av-ready__bar { flex: 1; max-width: 200px; height: 3px; border-radius: 2px; background: var(--av-hair); overflow: hidden; }
.av-ready__bar i { display: block; height: 100%; width: 0; background: var(--av-brand); animation: av-fill 1.6s var(--easing-standard, ease) forwards; }
@keyframes av-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .av-ready__bar i { animation: none; width: 100%; } }
.av-ready a { color: var(--av-ink); }

/* ---- One-tap goal (boards P5 / D4 / T4) ---------------------------------- */
.av-goal-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--av-page); }
.av-goal-top { height: 48px; flex: none; padding: 0 8px 0 16px; background: #fff; border-bottom: 1px solid var(--av-hair); display: flex; align-items: center; justify-content: space-between; }
.av-goal { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.av-goal__head { display: flex; flex-direction: column; gap: 10px; }
.av-chips { display: flex; align-items: center; gap: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.av-chips::-webkit-scrollbar { display: none; }
.av-chips__k { flex: none; font-size: var(--fs-xs, .75rem); font-weight: 600; color: var(--av-ink-2); margin-right: 2px; }
.av-chip { flex: none; position: relative; }
.av-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.av-chip span { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--av-line); background: #fff; display: inline-flex; align-items: center; font-weight: 500; white-space: nowrap; }
.av-chip input:checked + span { border-color: var(--av-brand); background: var(--av-brand-wash); color: var(--av-brand-deep); font-weight: 600; }
.av-chip input:focus-visible + span { box-shadow: var(--av-ring); }
.av-goals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.av-gcard { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--av-hair); border-radius: 8px; background: #fff; color: var(--av-ink); font: inherit; text-align: left; cursor: pointer; }
.av-gcard:hover, .av-gcard:focus-visible { border-color: var(--av-brand); box-shadow: var(--av-ring); outline: 0; }
.av-gcard__pv { flex: none; width: 56px; height: 44px; border-radius: var(--radius-sm, 6px); background: #F7F6FB; border: 1px solid #EFEDF6; overflow: hidden; }
.av-gcard__pv .av-mini { transform: scale(.22); transform-origin: top left; width: 255px; pointer-events: none; }
.av-gcard__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.av-gcard__t b { font-size: var(--fs-sm, .875rem); font-weight: 600; }
.av-gcard__t small { font-size: var(--fs-xs, .75rem); color: var(--av-ink-2); }
.av-gcard__win { font-size: var(--fs-xs, .75rem); font-weight: 600; color: var(--av-brand); white-space: nowrap; }
.av-gcard__win .av-gcard__long { display: none; }
.av-gcard__go { display: none; }
.av-mini { background: #fff; border: 1px solid var(--av-hair); border-radius: var(--radius-sm, 6px); box-shadow: 0 8px 20px -12px rgba(20, 17, 31, .25); font-size: var(--fs-xs, .75rem); }
.av-mini__h { padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; }
.av-mini__r { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid #F0EEF6; }
.av-mini__tag { padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.av-kan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 280px; font-size: var(--fs-xs, .75rem); }
.av-kan > div { display: flex; flex-direction: column; gap: 6px; }
.av-kan .av-mini { padding: 8px; }
.av-goal__foot { margin: 0; font-size: var(--fs-xs, .75rem); color: var(--av-ink-2); }

@media (min-width: 992px) {
    .av-goal-top { height: 52px; padding: 0 clamp(24px, 2.4vw, 32px); }
    .av-goal { padding: 24px clamp(24px, 2.4vw, 32px); gap: 16px; }
    .av-goal__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
    .av-chips { margin: 0; padding: 0; overflow-x: auto; }
    .av-chip span { height: 30px; }
    .av-goals { flex: 1; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .av-gcard { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
    .av-gcard__pv { width: auto; height: auto; flex: 1; min-height: 160px; border: 0; border-bottom: 1px solid #EFEDF6; border-radius: 0; padding: clamp(12px, 1.4vw, 20px); display: flex; align-items: center; justify-content: center; }
    .av-gcard__pv .av-mini { transform: none; width: 100%; max-width: 260px; }
    .av-gcard__t { flex: none; padding: 14px 16px; gap: 3px; }
    .av-gcard__t b { font-size: 15px; }
    .av-gcard__t small { font-size: var(--fs-13); }
    .av-gcard__win { margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; white-space: normal; }
    .av-gcard__win .av-gcard__long { display: inline; }
    .av-gcard__win .av-gcard__short { display: none; }
    .av-gcard__go { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--radius-sm, 6px); background: var(--av-brand); color: #fff; font-weight: 600; }
}

@media (max-width: 575.98px) { .av-hide-sm { display: none; } }
.av-mini { display: block; }
.av-gcard__t, .av-gcard__pv, .av-gcard__win { display: flex; }
.av-gcard__t { flex-direction: column; }
@media (max-width: 991.98px) { .av-gcard__win { display: inline; } }

/* MC-3: every tap target ≥44px on a coarse pointer. Small inline links keep
   their look; an invisible overlay carries the reach (they sit ≥16px apart, so
   overlays never steal a neighbour's tap). */
@media (pointer: coarse) {
    .av-label a, .av-foot a, .av-brand, .av-sub a, .av-note a, .av-err a, .av-row .av-linkbtn { position: relative; }
    .av-label a::after, .av-foot a::after, .av-brand::after, .av-sub a::after, .av-note a::after, .av-err a::after,
    .av-row .av-linkbtn::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
    .av-check { min-height: 44px; }
    .av-eye::after { inset: -6px; }
}
.av-note:empty { display: none; }
/* Phone goal cards: a clean icon; the live preview needs desktop/iPad room. */
.av-gcard__ic { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 18px; color: var(--av-brand); background: var(--av-brand-wash); }
@media (max-width: 991.98px) { .av-gcard__pv .av-mini { display: none; } }
@media (min-width: 992px) { .av-gcard__ic { display: none; } }

/* Goal previews, rev 2 (founder 14 Oct: "all the info fits in one line"):
   four identical mini tables — label left, value/tag right, never wrapping. */
.av-mini { width: 100%; }
.av-mini__h, .av-mini__r { white-space: nowrap; }
.av-mini__h > *, .av-mini__r > * { min-width: 0; }
.av-mini__r > span:first-child, .av-mini__h > b { overflow: hidden; text-overflow: ellipsis; }
.av-mini__r > :last-child, .av-mini__h > :last-child { flex: none; }
.av-mini__h { align-items: center; border-bottom: 0; }
.av-mini__tag { line-height: 18px; }
.av-tag--good { background: var(--av-good-wash); color: var(--av-good); }
.av-tag--warn { background: #FDF3E2; color: #8A5605; }
.av-tag--brand { background: var(--av-brand-wash); color: var(--av-brand-deep); }
.av-tag--new { background: #EEF2F7; color: var(--av-ink-2); }
@media (min-width: 992px) {
    .av-gcard__pv .av-mini { max-width: 300px; font-size: var(--fs-13, .8125rem); }
    .av-gcard__pv .av-mini__h, .av-gcard__pv .av-mini__r { padding: 8px 12px; }
}
/* 992–1399 (iPad landscape, laptops): the short first-win line keeps it to one row. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .av-gcard__win { flex-wrap: nowrap; }
    .av-gcard__win .av-gcard__long { display: none; }
    .av-gcard__win .av-gcard__short { display: inline; }
    .av-gcard__pv { padding: 10px; }
    .av-gcard__pv .av-mini__h, .av-gcard__pv .av-mini__r { padding: 7px 10px; }
}
@media (max-width: 991.98px) { .av-gcard__win .av-gcard__short { display: inline; } }

/* Sign-up S2 — WhatsApp code (boards P3 / P3b / P3g / D3 / T3). */
.av-sent { flex: none; height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: var(--radius-sm, 6px); background: var(--av-good-wash); color: var(--av-good); font-size: var(--fs-xs, .75rem); font-weight: 600; }
.av-help { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 8px; background: var(--av-page); border: 1px solid var(--av-hair); font-size: var(--fs-xs, .75rem); line-height: 1.45; color: var(--av-ink-2); }
.av-help b { font-size: var(--fs-13, .8125rem); color: var(--av-ink); }
.av-skip { display: flex; justify-content: center; margin: 0; }
.av-only-phone { gap: 8px; }
@media (min-width: 992px) { .av-only-phone { display: none !important; } }
@media (max-width: 991.98px) { .av-only-desk { display: none; } }
.av-wa-msg { max-width: 360px; background: #fff; color: var(--av-ink); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.av-wa-msg__h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #ECEAE3; font-size: var(--fs-13, .8125rem); }
.av-wa-msg__b { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; font-size: var(--fs-13, .8125rem); line-height: 1.45; }
.av-wa-msg__b small { font-size: var(--fs-xs, .75rem); color: var(--av-ink-2); }
.av-wa-msg__btn { height: 34px; display: flex; align-items: center; justify-content: center; border-top: 1px solid #ECEAE3; font-size: var(--fs-13, .8125rem); font-weight: 600; color: #0B6E8F; }
@media (pointer: coarse) { .av-skip .av-linkbtn { min-height: 44px; } }

/* Long / short labels — the phone boards say the same thing in fewer words. */
.av-short { display: none; }
@media (max-width: 575.98px) {
    .av-long { display: none; }
    .av-short { display: inline; }
    .av-steps li { font-size: 13px; gap: 7px; }
    .av-steps li + li::before { margin: 0 8px 0 2px; }
    .av-steps__n { width: 24px; height: 24px; font-size: 12px; }
}
/* Two columns on an iPad (992–1279, board T1): the last step says "Workspace", the sub keeps its first
   sentence and the column tightens, so the step bar fits the form and the page fits a 768px screen. */
.av-steps--four .av-long { display: none; }
.av-steps--four .av-short { display: inline; }
@media (min-width: 992px) and (max-width: 1279.98px) {
    .av-long--wide { display: none; }
    .av-short--wide { display: inline; }
    .av-sub .av-long { display: none; }
    .av-steps li { font-size: 13px; gap: 7px; }
    .av-steps__n { width: 26px; height: 26px; font-size: 12px; }
    .av-steps li + li::before { width: 16px; margin: 0 8px 0 2px; }
    .av-top { padding-top: 20px; }
    .av-body { padding-top: 12px; padding-bottom: 12px; }
    .av-col { gap: 14px; }
}
@media (min-width: 992px) and (max-height: 820px) {
    .av-col { gap: 14px; }
    .av-body { padding-top: 8px; padding-bottom: 8px; }
}

/* First screen, Platinum (board A4): steps in the top bar, the business chips and what Skylor will set up
   in one white card, platinum previews in the goal cards. */
.av-goal-page { background: var(--av-page); }
.av-goal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.av-goal-top__steps { display: none; }
.av-goal .av-tick { color: var(--av-good); font-weight: 600; }
.av-goal .av-tick i { color: var(--av-good); font-style: normal; }
.av-goal__head { flex-direction: column; align-items: stretch; }
.av-goal__pick { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--av-hair); }
.av-goal__pick .av-chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; row-gap: 8px; }
.av-goal__pick .av-promise { margin: 0; padding: 9px 14px; border-radius: 10px; background: #F1F2F5; color: var(--av-body); font-size: 13px; }
.av-goal__pick .av-promise b { color: var(--av-ink); }
.av-chip span { border-radius: 999px; }
.av-chip input:checked + span { border-color: var(--av-brand); background: var(--av-page); color: var(--av-ink); box-shadow: 0 0 0 3px rgba(14, 17, 22, .08); }
.av-gcard { border-radius: 18px; }
.av-gcard:hover, .av-gcard:focus-visible { border-color: var(--av-brand); box-shadow: 0 18px 36px -20px rgba(14, 17, 22, .3); }
.av-gcard__win { color: var(--av-body); }
@media (max-width: 991.98px) {
    .av-goal__pick .av-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
    .av-goal-top .av-btn--sm { min-height: 36px; font-size: 13px; padding: 0 12px; }
}
/* MP-5 (PROPOSAL §4, friction F6): on a phone the ten business chips wrap into rows — a sideways strip hid half of them
   with no sign they were there. Below 768 only; a tablet keeps its strip. */
@media (max-width: 767px) {
    .av-goal__pick .av-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; row-gap: 8px; }
}
/* MP-5 (F1): the in-app browser note in place of the Google button (shown by auth/js/inapp.js only there) */
.av-inapp[hidden] { display: none; }
.av-inapp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #F1F2F5; color: var(--av-body); font-weight: 400; }
@media (min-width: 992px) {
    .av-goal-top { min-height: 72px; }
    .av-goal-top__steps { display: block; }
    .av-gcard__pv { background: var(--av-page); border-bottom-color: var(--av-hair); }
    .av-gcard__go { min-height: 36px; padding: 0 14px; border-radius: 10px; }
}
.av-linkbtn { padding: 0; }
/* Four steps (WhatsApp on) on a phone or iPad: only the current step keeps its label; the others are their dots. */
@media (max-width: 1279.98px) {
    .av-steps--four li:not(.is-cur) > span:not(.av-steps__n) { display: none; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
    .av-goal { padding-top: 16px; gap: 12px; }
    .av-gcard__pv { min-height: 130px; }
}

/* ── Sign-up panel (site audit step 6, founder 21 Oct): what happens next, what the trial opens with, the catch. ── */
.av-side__k--sub { margin-top: 4px; }
.av-next { position: relative; list-style: none; margin: 0; padding: 0; max-width: 560px; display: flex; flex-direction: column; }
.av-next li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--av-hair); }
.av-next li:last-child { border-bottom: 0; }
.av-next__n { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--av-line); background: #fff; color: var(--av-ink-2); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.av-next li.is-cur .av-next__n { background: var(--av-brand); border-color: var(--av-brand); color: #fff; }
.av-next b { display: block; font-size: 15px; color: var(--av-ink); }
.av-next li > div > span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--av-ink-2); }
.av-apps { position: relative; list-style: none; margin: 0; padding: 0; max-width: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.av-apps li { display: flex; align-items: center; gap: 9px; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .9); border: 1px solid var(--av-hair); font-size: 13.5px; font-weight: 600; color: var(--av-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-apps i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--av-brand); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.av-facts { position: relative; max-width: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.av-facts div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .9); border: 1px solid var(--av-hair); }
.av-facts b { display: block; font-size: 14px; color: var(--av-ink); }
.av-facts span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--av-ink-2); }
/* The phone has no panel (it shows from 992 px): one quiet line under the button says what follows; hidden there. */
.av-note--next { margin-bottom: -6px; font-weight: 600; color: var(--av-ink-2); }
@media (min-width: 992px) { .av-note--next { display: none; } }

/* ── Two-step sign-in for god mode (board SE-1, approved 23 Oct 2026 · task 1.2) ── */
.av-block { display: flex; flex-direction: column; gap: 10px; }
.av-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.av-setup__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 180px; }
.av-qr { flex: 0 0 auto; padding: 12px; border: 1px solid var(--av-hair); border-radius: 12px; background: #fff; line-height: 0; }
.av-qr svg { display: block; width: 148px; height: 148px; }
.av-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }
.av-key { font-size: 14px; line-height: 1.6; color: var(--av-ink); max-width: 20ch; }
.av-codes { margin: 0; padding: 14px 18px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px;
    border-radius: 12px; background: var(--av-page); border: 1px solid var(--av-hair); }
.av-codes li { padding: 6px 0; font-size: 15px; color: var(--av-ink); }
.av-totp { font-size: 34px; letter-spacing: .08em; color: var(--av-ink); }
.av-card__f--quiet { font-weight: 500; font-size: 13px; color: var(--av-ink-3); }
/* .av-block sets display after .av-only-desk does; keep the computer-only set-up block hidden on a phone. */
@media (max-width: 991.98px) { .av-block.av-only-desk { display: none; } }
.av-field input.av-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; letter-spacing: .04em; }

/* PA-16 · Apply to become a partner (board PA16, founder approved 7 Nov 2026) */
.av-col--wide { max-width: 560px; }
.av-field--select { padding: 0 10px 0 14px; }
.av-field--select select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--av-field-fs); color: var(--av-ink); appearance: auto; }
.av-field--area { height: auto; padding: 10px 14px; align-items: stretch; }
.av-field--area textarea { flex: 1; min-height: 72px; border: 0; outline: 0; resize: vertical; background: transparent; font: inherit; font-size: var(--av-field-fs); color: var(--av-ink); }
.av-opt { font-weight: 400; color: var(--av-ink-3); font-size: 13px; }
.av-check--top { align-items: flex-start; min-height: 0; font-size: 14px; }
.av-check--top input { margin-top: 2px; flex: none; }
.av-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.av-new__s { display: block; font-weight: 400; font-size: 14px; color: var(--av-body); margin-top: 2px; }
.av-new__ic { font-weight: 600; }

/* L14 (founder, 9 Nov 2026: "whenever we are typing, the active text field is becoming like this — we do not want this").
   The heavy look was two rules stacking: the field's dark border + ring, and `.av3 :focus-visible` drawing a 3 px grey
   outline inside it on the input itself. Now one calm state, the design system's own field focus (kit.css
   --k-focus-field): the edge darkens to ink and a faint 3 px ring sits outside — no second box. Hover darkens the edge
   one step. The same on sign-in, sign-up, password reset, codes, partner sign-in and partner apply. */
.av3 .av-field :is(input, select, textarea):focus-visible { outline: 0; }
.av-field:hover:not(:focus-within) { border-color: #B8BEC8; }
.av-field:focus-within { border-color: #3F444D; box-shadow: 0 0 0 3px rgba(21, 23, 28, .08); }
.av-field.is-invalid:focus-within { border-color: var(--av-risk); box-shadow: 0 0 0 3px rgba(180, 35, 24, .10); }
.av-otp input:focus { outline: 0; border-color: #3F444D; box-shadow: 0 0 0 3px rgba(21, 23, 28, .08); }

/* SA-6: a fifth goal card (People) at SINGLE_APP_RELEASE=public — five across on a computer, the same rows on a phone. */
@media (min-width: 992px) { .av-goals.av-goals--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .av-goals.av-goals--5 .av-gcard__t small { min-height: 2.9em; } }
@media (min-width: 992px) and (max-width: 1279.98px) {
    .av-goals.av-goals--5 .av-gcard__t { padding: 12px; }
    .av-goals.av-goals--5 .av-gcard__t b { min-height: 2.6em; }
    .av-goals.av-goals--5 .av-gcard__win { flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
    .av-goals.av-goals--5 .av-gcard__go { padding: 0 8px; }
}
/* SA-6b: a focused trial sees one goal card — its own app — at a readable width, never a lone narrow column. */
/* Redrawn (founder, 15 Nov: "we must make this better"): one compact full-width row — icon, what it is, the first win
   and Start — never a tall empty card. The flex:1 the five-card grid needs is undone here. */
@media (min-width: 992px) { .av-goals.av-goals--1 { flex: none; grid-template-columns: minmax(0, 1fr); }
    .av-goals.av-goals--1 .av-gcard { flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; overflow: visible; }
    .av-goals.av-goals--1 .av-gcard__pv { flex: none; width: 56px; height: 56px; min-height: 0; padding: 0; border: 1px solid #EFEDF6; border-radius: 8px; }
    .av-goals.av-goals--1 .av-gcard__pv .av-mini { display: none; }
    .av-goals.av-goals--1 .av-gcard__ic { display: flex; font-size: 22px; }
    .av-goals.av-goals--1 .av-gcard__t { flex: 1; padding: 0; }
    .av-goals.av-goals--1 .av-gcard__win { margin-top: 2px; } }

/* SA-7 B8 (Board M, founder 16 Nov 2026): the goal cards carry each app's own kit icon (the sidebar's), on a neutral tile —
   ink line icon, page-grey ground and a hairline, no brand wash. The sprite is the kit's (`_kit/_icons.html`). */
.av3 .k-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.av-gcard__ic { color: var(--av-ink); background: var(--av-page); box-shadow: inset 0 0 0 1px var(--av-line); }
.av-gcard__ic .k-ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* SA-7 w (S3-25): a focused trial's one app card keeps its Start button on a phone, as on a computer — the first win
   on the left, Start at the right of the same line (the card stays one tap target). Phone band only. */
@media (max-width: 767.98px) { .av-goals.av-goals--1 .av-gcard__win { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
    .av-goals.av-goals--1 .av-gcard__go { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--av-brand); color: #fff; font-weight: 600; } }

/* ══ AU-1 (board AU-1, founder 18 Nov 2026: W (b), C1, E · F · R approved; PRIVATE_DOCS/v3/AUTH-PAGES-2026/DECISIONS.md) ══
   One rule for the shared frame, so all 22 pages on auth_v3/base.html follow: the top row, the form column and the bottom
   line share the same two edges, centred in the form half — min(640, the half less its gutters) from 992 px (563 at 1366,
   640 from about 1440), the 480 column on a tablet, the full width on a phone. Short fields keep their size. */
.av3 [hidden] { display: none !important; }
@media (min-width: 992px) {
    .av3 { --av-pad: clamp(28px, 4.4vw, 64px); --av-colw: min(640px, calc(50vw - 2 * var(--av-pad))); }
    .av-top { width: var(--av-colw); margin: 0 auto; padding: 28px 0 0; }
    .av-body { padding: 24px 0; }
    .av-body > .av-col { max-width: none; width: var(--av-colw); }
    .av-foot { width: var(--av-colw); margin: 0 auto; padding: 0 0 24px; }
    /* R: the right side's content fills its half, on the form half's gutter */
    .av-side { padding: 56px var(--av-pad); gap: 16px; }
    .av-side--shot { padding-top: 64px; padding-right: 0; }   /* AU1_REVIEW A7: keeps its own top padding */
    .av-side__h { max-width: 20em; }
    .av-next, .av-apps, .av-facts { max-width: none; }
}
@media (min-width: 992px) and (max-width: 1279.98px) { .av-top { padding-top: 20px; } .av-body { padding: 12px 0; } }
@media (min-width: 992px) and (max-height: 820px) { .av-body { padding: 8px 0; } }
@media (max-width: 991.98px) { .av-top, .av-foot { width: 100%; max-width: calc(480px + 32px); margin-left: auto; margin-right: auto; } }
/* F: the bottom line centred under the form, at every size */
.av-foot { justify-content: center; text-align: center; }
/* Short fields sized to what goes in them (a phone number, a code) from 576 px; on a phone every field is full width,
   like its neighbours (founder, 18 Nov 2026, the walk pictures: "should follow exactly like how others"). */
@media (min-width: 576px) {
    .av-field--short { width: 100%; max-width: 15rem; }
    .av-two--short { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
}
/* C1: what a field is for, beside its label */
.av-label__hint { font-weight: 400; color: var(--av-ink-3); }

/* E: "Start with" — the /pricing/ page's switch and app picker (landing kit sk3-seg: platinum track, white thumb) */
.av-pick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.av-pick legend { padding: 0; margin: 0 0 8px; }
.av-seg { display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: #ECEEF1; }
.av-seg label { flex: 1 1 0; min-width: 0; position: relative; }
.av-seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.av-seg span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 10px; border-radius: 9px;
    font-size: 14.5px; font-weight: 600; color: var(--av-ink-2); white-space: nowrap; }
.av-seg input:checked + span { background: #fff; color: var(--av-ink); box-shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 0 0 1px var(--av-hair); }
.av-seg input:focus-visible + span { outline: 2px solid var(--av-ink); outline-offset: 1px; }
.av-seg--apps span { font-size: 14px; }
.av-pick__say b { color: var(--av-ink); }
/* AU1_REVIEW A5/A6: when the column is narrow (992–1199 on a computer, a phone) the five apps sit three to a row, so a
   name never touches its box edges; the row keeps the column's edges (the 16 px gutter on a phone). */
.av-pick { container-type: inline-size; }
@container (max-width: 470px) {
    .av-seg--apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* "Your name" keeps its room beside the WhatsApp field in the narrow computer band */
/* AU1_REVIEW B1: 13.5rem (216) holds "WhatsApp number · for trial updates" (210 px measured) on one line, so the two
   fields sit level as at 1200 and up; "Your name" keeps ≥179 at 992. */
@media (min-width: 992px) and (max-width: 1199.98px) { .av-two--short { grid-template-columns: minmax(0, 1fr) minmax(0, 13.5rem); } }
@media (pointer: coarse) { .av-seg span { min-height: 44px; } }

/* R: kit icons in the auth kit (the sprite is the kit's, _kit/_icons.html); the neutral app tile (SA-7 goal-card tile) */
:where(.av3) .k-ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.av-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--av-page); box-shadow: inset 0 0 0 1px var(--av-line);
    color: var(--av-ink); display: inline-flex; align-items: center; justify-content: center; }
.av3 .av-ic .k-ico { width: 20px; height: 20px; }
.av-synq { width: 10px; height: 10px; border-radius: 50%; background: #D946EF; }
/* R: one card of rows (the kit's ListCard look) — icon tile, title, one line, meta on the right; a link as its last row */
.av-list { position: relative; background: #fff; border: 1px solid var(--av-hair); border-radius: 16px; overflow: hidden; }
.av-list__r { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--av-hair); }
.av-list__r:first-child { border-top: 0; }
.av-list__r b { display: block; font-size: 15px; color: var(--av-ink); }
.av-list__r > div > span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--av-ink-2); }
.av-list__r small { font-size: 12.5px; color: var(--av-ink-3); white-space: nowrap; padding-top: 2px; }
.av3 .av-list__f { display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-top: 1px solid var(--av-hair); font-size: 14px; font-weight: 600; color: #4F46E5; }
.av3 .av-list__f:hover, .av3 .av-list__f:focus-visible { text-decoration: underline; }
/* R: "In your trial" tiles, filling the panel */
.av-tiles { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.av-tiles > div { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .9); border: 1px solid var(--av-hair); }
.av-tiles .av-ic { width: 30px; height: 30px; border-radius: 8px; }
.av3 .av-tiles .av-ic .k-ico { width: 17px; height: 17px; }
.av-tiles b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-tiles--one { grid-template-columns: minmax(0, 1fr); }
.av-tiles--one > div { align-items: flex-start; padding: 14px 16px; }
.av-tiles--one > div > div > b { display: block; font-size: 15px; white-space: normal; }
.av-tiles--one > div > div > span { display: block; font-size: 13.5px; color: var(--av-ink-2); margin-top: 2px; }
/* R: the client door — who this page is for, who it is not */
.av-door { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid var(--av-hair); font-size: 13.5px; color: var(--av-ink-2); }
.av-door p { margin: 0; }
.av-door b { color: var(--av-ink); }
.av3 .av-door a { color: #4F46E5; font-weight: 600; }

/* ══ AU-1b COMPACT (founder 18 Nov 2026: "make these pages more compact … match the Big SaaS design for compactness in all
   4 pages, based on our design system"). Big SaaS sign-ins measured in RESEARCH §3: 36–40 px fields, 14 px text, a
   24–28 px heading (Stripe, Linear, Notion, Slack, HubSpot). Skylor Platinum: dense by default, one 8 px band, 12 px
   floor. From 768 px only: a phone keeps its 44 px targets and 16 px field text (no iOS zoom). ══ */
@media (min-width: 768px) {
    .av3 { --av-field-h: 40px; --av-btn-h: 40px; --av-field-fs: 14.5px; font-size: 14px; }
    .av-h1 { font-size: clamp(1.5rem, 1.1rem + .6vw, 1.75rem); letter-spacing: -.025em; }
    .av-sub { font-size: 14px; }
    .av-head { gap: 6px; }
    .av-col { gap: 12px; }
    .av-body form > .av-col { gap: 12px !important; }
    .av-group { gap: 5px; }
    .av-label { font-size: 12.5px; }
    .av-field { border-radius: 10px; }
    .av-btn { font-size: 14px; border-radius: 9px; box-shadow: 0 8px 18px -10px rgba(14, 17, 22, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
    .av-btn--ghost { min-height: 40px; font-size: 14px; box-shadow: none; }
    .av-or { font-size: 12.5px; }
    .av-check { font-size: 14px; min-height: 28px; }
    .av-check input { width: 16px; height: 16px; }
    .av-top__r { font-size: 14px; }
    .av-steps li { font-size: 13px; gap: 7px; }
    .av-steps__n { width: 24px; height: 24px; font-size: 12px; }
    .av-steps li.is-cur .av-steps__n { box-shadow: 0 0 0 4px rgba(14, 17, 22, .08); }
    .av-seg { border-radius: 999px; }
    .av-seg span { min-height: 30px; font-size: 13.5px; border-radius: 999px; padding: 0 14px; }  /* LW-1 v3: the one round pill switch */
    .av-seg--apps span { font-size: 13px; }
    .av-otp input { height: 52px; font-size: 24px; max-width: 52px; border-radius: 12px; }
    /* right side */
    .av-side { gap: 12px; }
    .av-side__k { font-size: 11.5px; }
    .av-side__h { font-size: clamp(1.375rem, 1rem + .6vw, 1.625rem); }
    .av-side__p { font-size: 14px; }
    .av-list__r { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 11px 16px; }
    .av-list__r b, .av-next b, .av-tiles--one > div > div > b { font-size: 14px; }
    .av-list__r > div > span, .av-next li > div > span, .av-tiles--one > div > div > span { font-size: 13px; }
    .av3 .av-list__f { padding: 10px 16px; font-size: 13.5px; }
    .av-ic { width: 32px; height: 32px; border-radius: 9px; }
    .av3 .av-ic .k-ico { width: 18px; height: 18px; }
    .av-next li { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 9px 0; }
    .av-next__n { width: 26px; height: 26px; font-size: 12px; border-radius: 8px; }
    .av-tiles > div { padding: 6px 9px; border-radius: 10px; }
    .av-tiles .av-ic { width: 26px; height: 26px; border-radius: 7px; }
    .av3 .av-tiles .av-ic .k-ico { width: 15px; height: 15px; }
    .av-tiles b { font-size: 13px; }
    .av-facts div { padding: 10px 12px; border-radius: 12px; }
    .av-facts b { font-size: 13.5px; }
    .av-facts span { font-size: 12.5px; }
    .av-door { font-size: 13px; padding: 12px 16px; }
}

/* ── LW-1 v3 (founder, 18 Nov 2026; boards approved): the sign-up made lighter ── */
/* the step list drawn as one line: "Step 1 of 3 · Your details"; the other steps are said once, on the right */
.av-steps--line li:not(.is-cur) { display: none; }
.av-steps--line li.is-cur { gap: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--av-ink-3); }
.av-steps--line .av-steps__n { display: none; }
.av-steps--line li::before { display: none !important; }
.av-steps--line .av-steps__of { margin-right: .4em; }
.av-steps--line li.is-cur .av-short { display: none; }
.av-steps--line li.is-cur .av-long { display: inline; }
.av-steps__of { display: none; }
.av-steps--line .av-steps__of { display: inline; }
/* the apps as colour tiles: each app's design-system hue on its tint (Public site · Colour per app); 4.5:1 on both */
.av-tiles--hue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.av-tiles--hue > .av-hue-t { --c: #15171c; --bg: #eceef2; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--bg); }
.av-hue-t[data-app="crm"] { --c: #175cd3; --bg: #d1e9ff; }
.av-hue-t[data-app="invoicing"] { --c: #067647; --bg: #dcfae6; }
.av-hue-t[data-app="tasks"] { --c: #b54708; --bg: #fef0c7; }
.av-hue-t[data-app="tickets"] { --c: #b42318; --bg: #fee4e2; }
.av-hue-t[data-app="bookings"] { --c: #6941c6; --bg: #f4ebff; }
.av-hue-t[data-app="channel-partners"] { --c: #4f46e5; --bg: #eef2ff; }
.av-hue-t[data-app="hr"] { --c: #0369a1; --bg: #e0f2fe; }
.av-hue-t[data-app="synq"] { --c: #a21caf; --bg: #fae8ff; }
.av-hue-t[hidden] { display: none; }
.av-hue-t--lead, .av-hue-t.is-wide { grid-column: 1 / -1; }
.av-hue-t--lead { padding: 16px; }
.av3 .av-hue-t .av-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(21, 23, 28, .06); color: var(--c); display: flex; align-items: center; justify-content: center; }
.av3 .av-hue-t .av-ic .k-ico { width: 18px; height: 18px; stroke: currentColor; }
.av-hue-t > div { min-width: 0; }
.av-hue-t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--c); }
.av-hue-t > div > span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--av-ink-2); }
/* Synq is the sigil */
.av-sig { display: block; width: 16px; height: 16px; border-radius: 5px; background: #15171c; position: relative; }
.av-sig::after { content: ""; position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: #d946ef; border: 1.5px solid #fff; }
/* the narrow band and the phone: names only, as the tiles were */
@media (max-width: 1199.98px) { .av-hue-t:not(.av-hue-t--lead) > div > span { display: none; } .av-tiles--hue > .av-hue-t { padding: 10px 12px; } }
/* LW review S5: a tile's name wraps, never cuts (the older .av-tiles b ellipsis) */
.av-tiles--hue .av-hue-t b { white-space: normal; overflow: visible; text-overflow: clip; }
/* the three steps, one line each */
.av-next--line li { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
.av-next--line { gap: 9px; }
.av-next--line .av-next__n { width: 22px; height: 22px; border-radius: 7px; background: var(--av-ink); border-color: var(--av-ink); color: #fff; font-size: 11.5px; }
.av-next--line li > div { display: block; font-size: 13.5px; line-height: 1.35; }
.av-next--line b { display: inline; font-size: 13.5px; font-weight: 600; }
.av-next--line li > div > span { display: inline; font-size: 13.5px; }
.av-next--line li > div > span::before { content: " — "; }
.av-factline { position: relative; margin: 0; font-size: 13px; color: var(--av-ink-3); }
/* LW review S1: on a touch screen the sign-up switch keeps its 44 px chips from 768 too */
@media (min-width: 768px) and (pointer: coarse) { .av-seg span { min-height: 44px; } }
