/* ==========================================================================
   The white frame (Layout/PublicLayout, owner 2026-11-09): sign in, sign up, set your password,
   the steps after Scan my PC, unsubscribe and the legal documents, made to look like the marketing
   site (youfixit-www.youfixit.ai, site/beacon-ethos-fixed: css/www.css and css/ethos.css). The
   numbers below are copied from there; change both together.

   Always white: the wrapper carries data-theme="light", so the shipped Light colors in themes.css
   apply inside it whatever Server Settings > Appearance chose. Every class here starts pub-, or
   is a page's own class reached through .pub, so nothing here touches the app shell.
   ========================================================================== */

.pub {
    --pub-ink: #0e1e33;
    --pub-muted: #556275;
    --pub-line: #dce3ec;
    --pub-mist: #f3f6fa;
    --pub-blue: #00579c;
    --pub-blue-deep: #003f73;
    --pub-blue-tint: #e6f0f8;
    --pub-orange: #e77817;
    --pub-cream: #fff8f0;
    --pub-night: #0a1b30;
    --pub-night-2: #0f2b4d;
    --pub-night-ink: #c9dcee;
    --pub-wrap: 1160px;
    --pub-gutter: clamp(16px, 4vw, 40px);
    --pub-font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff;
    color: var(--pub-ink);
    font-family: var(--pub-font);
    font-size: 17px;
    line-height: 1.6;
    color-scheme: light;
}

.pub a { color: var(--pub-blue); text-underline-offset: 3px; }
.pub a:hover { color: var(--pub-blue-deep); }
.pub :focus-visible { outline: 3px solid var(--pub-blue); outline-offset: 3px; border-radius: 4px; }
.pub h1:focus, .pub [tabindex="-1"]:focus { outline: none; } /* Blazor FocusOnNavigate focuses the h1 on each page load: no ring */
.pub h1, .pub h2, .pub h3, .pub h4 { font-family: var(--pub-font); letter-spacing: -0.02em; }

.pub-wrap { width: 100%; max-width: calc(var(--pub-wrap) + 2 * var(--pub-gutter)); margin: 0 auto; padding: 0 var(--pub-gutter); }
.pub-skip { position: absolute; left: -9999px; }
.pub-skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }
.pub-main { flex: 1 0 auto; padding: 0 var(--pub-gutter); }

/* ---- Buttons: www's pill. The pages' own .mk-btn (orange, square) becomes it too. ---------- */
.pub .pub-btn,
.pub .mk-btn,
.pub .signin button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px;
    background: var(--pub-blue); color: #fff;
    font: 600 1rem/1 var(--pub-font); text-decoration: none; white-space: nowrap;
    border: 1.5px solid transparent; cursor: pointer; filter: none;
}
.pub .pub-btn:hover,
.pub .mk-btn:hover,
.pub .signin button[type="submit"]:hover { background: var(--pub-blue-deep); color: #fff; filter: none; }
.pub .pub-btn-small { min-height: 38px; padding: 0 16px; font-size: 0.95rem; }
.pub .pub-btn-quiet { background: transparent; color: var(--pub-ink); border-color: var(--pub-line); }
.pub .pub-btn-quiet:hover { background: transparent; border-color: var(--pub-ink); color: var(--pub-ink); }

/* ---- Header ------------------------------------------------------------------------------- */
.pub-head {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--pub-line);
}
.pub-head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pub-ink) !important; }
.pub-mark { width: auto; height: 34px; }
.pub-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.pub-name span { color: var(--pub-orange); }
.pub-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.pub-nav a {
    color: var(--pub-ink); text-decoration: none; font-weight: 500; font-size: 0.97rem;
    padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.pub-nav a:hover { background: var(--pub-mist); color: var(--pub-ink); }
.pub-nav .pub-nav-only { display: none; }
.pub-head-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pub-signin { color: var(--pub-ink) !important; text-decoration: none; font-weight: 500; padding: 8px 10px; white-space: nowrap; }
.pub-signout { display: inline; margin: 0; }
.pub-signout button {
    background: none; border: 0; padding: 8px 10px; cursor: pointer;
    color: var(--pub-ink); font: 500 1rem var(--pub-font);
}
.pub-signout button:hover { text-decoration: underline; }
.pub-menu { display: none; }

@media (max-width: 1100px) {
    .pub-nav, .pub-head-end .pub-signin, .pub-head-end .pub-signout { display: none; }
    .pub-menu {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border-radius: 8px;
        border: 1px solid var(--pub-line); background: #fff; color: var(--pub-ink); cursor: pointer;
    }
    .pub-menu svg { width: 20px; height: 20px; }
    .pub-head.open .pub-nav {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; left: 0; right: 0; top: 68px; margin: 0;
        background: #fff; border-bottom: 1px solid var(--pub-line);
        padding: 8px var(--pub-gutter) 16px;
    }
    .pub-head.open .pub-nav a { padding: 12px; font-size: 1.05rem; }
    .pub-head.open .pub-nav .pub-nav-only { display: block; }
}
@media (max-width: 600px) {
    .pub-head-end .pub-btn { display: none !important; }
}

/* The customer's blue bar (PortalBar.razor) in the white frame, for a signed-in customer (owner,
   2026-11-12): as on /results, so .pub's font, size and blue links stay out of it. */
.pub .pt-bar { font-family: var(--yf-font); font-size: 15px; line-height: 1.4; }
.pub .pt-bar a, .pub .pt-bar a:hover, .pub .pt-bar button { color: var(--yf-on-color); }
.pub .pt-bar :focus-visible { outline-color: var(--yf-on-color); }

/* ---- Footer ------------------------------------------------------------------------------- */
/* The footer is PublicFooter.razor, also on the customer's own pages (PortalLayout), outside .pub. It
   carries the .pub values it needs, taken from the theme (themes.css): in .pub's white frame those
   are the light theme's, the same colors as above; under /results they follow Server Settings >
   Appearance (owner, 2026-11-12). */
.pub-foot {
    --pub-ink: var(--bs-body-color);
    --pub-muted: var(--yf-muted);
    --pub-line: var(--yf-border);
    --pub-mist: var(--yf-menu-bg);
    --pub-blue: var(--brand-blue-fg);
    --pub-orange: var(--brand-orange);
    --pub-wrap: 1160px;
    --pub-gutter: clamp(16px, 4vw, 40px);
    --pub-font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--pub-ink);
    font-family: var(--pub-font);
    line-height: 1.6;
}
.pub-foot a { color: var(--pub-blue); text-underline-offset: 3px; }
.pub-foot h4 { font-family: var(--pub-font); letter-spacing: -0.02em; color: var(--pub-ink); }
.pub-foot .pub-mark-dark { display: none; }
[data-theme="dark"] .pub-foot .pub-mark-light { display: none; }
[data-theme="dark"] .pub-foot .pub-mark-dark { display: inline; }
.pub .pub-foot .pub-mark-light { display: inline; }
.pub .pub-foot .pub-mark-dark { display: none; }
.pt > .pub-foot { margin-top: 48px; }
.pub-foot { margin-top: clamp(56px, 8vw, 96px); padding: 56px 0 32px; border-top: 1px solid var(--pub-line); background: var(--pub-mist); font-size: 0.95rem; }
.pub-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.pub-foot h4 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.pub-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pub-foot ul a { color: var(--pub-muted); text-decoration: none; }
.pub-foot ul a:hover { color: var(--pub-ink); text-decoration: underline; }
.pub-foot-about { margin: 12px 0 0; max-width: 34ch; color: var(--pub-muted); font-size: 0.9rem; }
.pub-foot-note {
    display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 20px;
    border-top: 1px solid var(--pub-line); color: var(--pub-muted); font-size: 0.88rem;
}
@media (max-width: 800px) { .pub-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pub-foot-grid { grid-template-columns: 1fr; } }

/* ---- The narrow forms (.signin: forgot password, connect Google, tray sign-in) ------------- */
.pub .signin {
    max-width: 27rem;
    margin: clamp(40px, 7vw, 80px) auto 0;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--pub-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(14, 30, 51, 0.05), 0 24px 48px -28px rgba(14, 30, 51, 0.28);
}
.pub .signin h1 { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.5rem; }
.pub .signin label { font-weight: 600; font-size: 0.95rem; }
.pub .signin input:not([type="checkbox"]):not([type="radio"]) {
    padding: 0.7rem 0.85rem; border: 1px solid var(--pub-line); border-radius: 12px;
    background: #fff; color: var(--pub-ink); font: 1rem var(--pub-font);
}
.pub .signin input:focus { outline: none; border-color: var(--pub-blue); box-shadow: 0 0 0 3px var(--pub-blue-tint); }
.pub .signin button[type="submit"] { width: 100%; margin-top: 1.5rem; }
.pub .signin .gsi-button { min-height: 46px; border-radius: 999px; }
.pub .signin-error { background: #fdecee; border-radius: 12px; }

/* Sign up (owner, 2026-11-09): wider, like the sign-in page's form; a note that we are nearly done;
   and the beta tester box under the terms. */
.pub .signin.pub-signup { max-width: 40rem; margin-top: clamp(16px, 2.5vw, 28px); }
/* The YouFixIt Pro name on /signup: the size and look of .ch-name on the marketing site's pricing page. */
.pub .signup-brand { display: grid; gap: 8px; margin-bottom: 20px; }
.pub .signup-brand p { margin: 0; color: var(--pub-muted); font-size: 1.1rem; }
.pub .signup-brand p.signup-brand-name { display: flex; align-items: center; gap: 0 0.22em; white-space: nowrap; font-size: clamp(2.6rem, 4.8vw, 4.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: var(--pub-ink); }
.pub .signup-brand-name img { height: 0.92em; width: auto; flex: none; margin-right: 0.04em; }
.pub .signup-brand-name b { color: var(--pub-orange); font-weight: 800; }
@media (max-width: 520px) { .pub .signup-brand p.signup-brand-name { font-size: clamp(1.9rem, 10.2vw, 2.5rem); } }
.pub .signup-sub { margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--pub-line); font-size: 1.2rem; font-weight: 400; line-height: 1.4; color: var(--pub-ink); }

/* ---- Sign in (Login.razor, owner 2026-11-09: "more flavor"): the form beside the products -- */
.pub-login {
    display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 72px); align-items: center;
    max-width: var(--pub-wrap); margin: clamp(32px, 6vw, 72px) auto 0;
}
.pub-login .signin { margin: 0; max-width: none; width: 100%; justify-self: stretch; }
.pub-login-lede { color: var(--pub-muted); margin: 0 0 0.5rem; }
.pub-login-new { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--pub-line); font-size: 0.95rem; color: var(--pub-muted); }

.pub-login-side { display: grid; gap: 16px; }
.pub-product {
    position: relative; overflow: hidden;
    padding: clamp(22px, 3vw, 32px); border-radius: 20px;
    display: grid; gap: 10px; justify-items: start;
}
.pub-product-home { background: linear-gradient(160deg, var(--pub-cream) 0%, #fdecd9 100%); }
.pub-product-pro { background: radial-gradient(90% 120% at 85% 0%, #16365c 0%, var(--pub-night-2) 45%, var(--pub-night) 100%); color: #fff; }
.pub-product-for { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pub-muted); }
.pub-product-pro .pub-product-for { color: #9fb7cf; }
.pub-product-name { display: inline-flex; align-items: baseline; gap: 0.3em; margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.pub-product-name b { color: var(--pub-orange); font-weight: 800; }
.pub-product-pro .pub-product-name b { color: #ffa65a; }
.pub-product-tag { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.pub-product p.pub-product-text { margin: 0; color: var(--pub-muted); max-width: 46ch; font-size: 0.98rem; line-height: 1.5; }
.pub-product-pro p.pub-product-text { color: var(--pub-night-ink); }
.pub-product-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.pub-product-pro .pub-product-link { color: #fff !important; }
.pub-product-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.pub-product-link:hover svg { transform: translateX(3px); }
.pub-promise { display: flex; gap: 10px; align-items: center; color: var(--pub-muted); font-size: 0.9rem; padding: 0 4px; }
.pub-promise svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--pub-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
    .pub-login { grid-template-columns: 1fr; max-width: 34rem; }
}
