/* [CLAUDE CHANGE] — Loyalty Phase 2a: the Milestop360 customer site (Views/LoyaltyPublic/_MilestopLayout.cshtml) and the
   brand stylesheet of the "Milestop360" ProductBrand (error pages on that domain: body.brand-milestop360).
   Direction C tokens (docs/plans/Loyalty_Plan.md 14). The owner's accent colour, when set, arrives as --ms-accent. */
:root {
    --ms-navy: #1F3A8A;
    --ms-blue: #1356C7;
    --ms-sky: #29ABE2;
    --ms-night: #0A2350;
    --ms-bg: #F3F6FB;
    --ms-ink: #0B1B3A;
    --ms-muted: #56657E;
    --ms-line: #E2E8F2;
    --ms-amber: #F59E0B;
    --ms-danger: #B42318;
}

.ms360 {
    margin: 0;
    background: var(--ms-bg);
    color: var(--ms-ink);
    font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    --ms-primary: var(--ms-accent, var(--ms-blue));
}

.ms360 a { color: var(--ms-primary); }
.ms360-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

.ms360-header { background: var(--ms-navy); color: #fff; }
.ms360-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ms360-mark img { display: block; height: 28px; width: auto; }
.ms360-program { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.ms360-program-logo { height: 32px; width: auto; max-width: 96px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }

.ms360-main { flex: 1; padding: 28px 0 40px; }

.ms360-card {
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(11, 27, 58, .04), 0 8px 24px rgba(11, 27, 58, .06);
    margin-bottom: 16px;
}
.ms360-card--center { text-align: center; }
.ms360-card h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; color: var(--ms-navy); }
.ms360-card h2 { font-size: 18px; margin: 20px 0 6px; color: var(--ms-navy); }
.ms360-eyebrow { margin: 0 0 4px; color: var(--ms-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ms360-lead { color: var(--ms-muted); margin: 0 0 16px; }
.ms360-fine { color: var(--ms-muted); font-size: 13px; margin: 12px 0; }
.ms360-aside { text-align: center; font-size: 14px; color: var(--ms-muted); }

.ms360-hero { text-align: center; padding: 8px 0 20px; }
.ms360-hero h1 { font-size: 30px; color: var(--ms-navy); margin: 12px 0 8px; }

.ms360-field { display: block; margin: 0 0 14px; }
.ms360-field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ms360-field input, .ms360-field select {
    width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 1px solid #C9D3E3; border-radius: 10px; background: #fff; color: var(--ms-ink);
}
.ms360-field input:focus, .ms360-field select:focus { outline: 3px solid rgba(19, 86, 199, .25); border-color: var(--ms-primary); }
.ms360-code { letter-spacing: .3em; font-size: 22px !important; text-align: center; text-transform: uppercase; }
.ms360-row { display: flex; gap: 12px; }
.ms360-row > .ms360-field { flex: 1; }

.ms360-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 15px; }
.ms360-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ms-primary); }

.ms360-btn {
    display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px 18px; margin-top: 8px;
    font: 600 17px/1.2 Inter, system-ui, sans-serif; color: #fff; background: var(--ms-primary); cursor: pointer;
}
.ms360-btn:hover { filter: brightness(1.06); }
.ms360-btn:disabled { opacity: .6; cursor: wait; }
.ms360-btn--danger { background: var(--ms-danger); }
/* [CLAUDE CHANGE] Loyalty email sign-up: the rewards page. An 18-digit number is always 134 modules, so 268px = exactly 2px per
   module: a fraction makes the bars uneven, which scanners read badly. The white box gives the quiet zone (at least 10 modules,
   20px, each side); on a phone it runs to the card's edges to make that room. */
.ms360-btn--secondary { background: #fff; color: var(--ms-primary); box-shadow: inset 0 0 0 1px #C9D3E3; }
.ms360-barcode { background: #fff; border: 1px solid var(--ms-line); border-radius: 12px; padding: 12px 0; margin: 0 0 8px; }
.ms360-barcode svg { display: block; width: 268px; height: 120px; margin: 0 auto; }
@media (max-width: 420px) {
    .ms360-barcode { margin-left: -18px; margin-right: -18px; border-radius: 0; border-left: 0; border-right: 0; }
}
@media (max-width: 350px) {
    .ms360-barcode svg { width: 201px; }   /* 1.5px per module: whole device pixels on the 2x and 3x screens of phones this small */
}
.ms360-barcode-number { text-align: center; margin: 0 0 16px; font-size: 18px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--ms-ink); }
.ms360-balances { list-style: none; margin: 0 0 8px; padding: 0; }
.ms360-balances li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ms-line); }
.ms360-balances li:first-child { border-top: 0; }
.ms360-balance-name { font-weight: 600; }
.ms360-balance-value { text-align: right; color: var(--ms-muted); }
.ms360-balance-value span { display: block; }
/* [END CLAUDE CHANGE] */

.ms360-note { padding: 12px 14px; border-radius: 10px; background: #EAF2FE; color: var(--ms-ink); margin: 0 0 16px; }
.ms360-note--error { background: #FDECEA; color: var(--ms-danger); }
.ms360-draft { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.ms360-legal p, .ms360-legal li { color: #2A3A57; }
.ms360-legal blockquote { margin: 8px 0 16px; padding: 10px 14px; border-left: 4px solid var(--ms-sky); background: var(--ms-bg); }

/* the logo's 360° orbit ring */
.ms360-orbit { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; border: 6px solid var(--ms-line); border-top-color: var(--ms-primary); border-right-color: var(--ms-sky); }
.ms360-orbit--done { border-color: var(--ms-primary); }
.ms360-orbit--big { width: 84px; height: 84px; border-width: 8px; }

.ms360-footer { border-top: 1px solid var(--ms-line); background: #fff; padding: 18px 0 24px; font-size: 13px; color: var(--ms-muted); }
.ms360-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.ms360-footer a { color: var(--ms-muted); }

@media (max-width: 420px) {
    .ms360-card { padding: 18px; border-radius: 14px; }
    .ms360-card h1 { font-size: 23px; }
}

/* Error pages on the Milestop360 domain (Views/Error/_Layout.cshtml with this brand). */
body.brand-milestop360 { font-family: Inter, system-ui, sans-serif; }
/* [END CLAUDE CHANGE] */

/* [CLAUDE CHANGE] Milestop360 brand 2026-11-06 ("Gauge Drop" logo; Manrope headings, Inter text; Navy #1F3A8A, Blue #1356C7 for
   buttons with white text, Sky #29ABE2 for the logo accent and graphics only, Mist #E2E8F2 panels): the headings font, the
   header links and the full-width home page (Views/Storefront/MilestopHome.cshtml, layout ViewData Wide + HomeNav). */
.ms360 h1, .ms360 h2, .ms360 h3 { font-family: Manrope, Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
.ms360-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ms360-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.ms360 .ms360-nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 10px; border-radius: 8px; }
.ms360 .ms360-nav a:hover { background: rgba(255, 255, 255, .08); }
.ms360 .ms360-nav a.ms360-nav-cta { background: #fff; color: var(--ms-navy); font-weight: 600; padding: 10px 18px; border-radius: 999px; margin-left: 6px; }
.ms360-main--wide { padding: 0; }
.ms360-footer-mark img { display: block; height: 28px; width: auto; margin-bottom: 12px; }

.mh-hero { background: var(--ms-navy); color: #fff; padding: 48px 0 120px; }
.mh-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.mh-hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.mh-badge { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: #2B4A9C; color: #fff; }
.ms360 .mh-hero h1 { margin: 0; color: #fff; font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.mh-hero-lead { margin: 0; font-size: 19px; line-height: 1.55; color: #C9D3DE; max-width: 34rem; }
.mh-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.mh-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 17px; text-decoration: none; box-sizing: border-box; }
.ms360 a.mh-btn--light { background: #fff; color: var(--ms-navy); }
.ms360 a.mh-btn--ghost { border: 1.5px solid #fff; color: #fff; }
.mh-hero-note { margin: 0; font-size: 15px; color: #AEBBCB; }
.mh-hero-art { flex: 1 1 300px; display: flex; justify-content: center; }

.mh-phone { width: 280px; box-sizing: border-box; padding: 12px; border-radius: 44px; background: #13265C; border: 1px solid #3A57A3; }
.mh-screen { border-radius: 34px; background: #F3F5F8; color: var(--ms-navy); padding: 30px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.mh-screen-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.mh-chip { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #EAF2FE; color: var(--ms-blue); }
.mh-gauge-card { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mh-gauge { position: relative; width: 150px; height: 150px; }
.mh-gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mh-gauge-num b { font-family: Manrope, Inter, sans-serif; font-size: 25px; font-weight: 700; line-height: 1.1; }
.mh-gauge-num span, .mh-gauge-card > span { font-size: 12px; color: #5A6B7D; }
.mh-ready { background: #FEF3C7; color: #92400E; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; text-align: center; }
.mh-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mh-tile { background: #fff; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.mh-tile--on { background: var(--ms-navy); color: #fff; }

.mh-join { margin-top: -84px; position: relative; }
.mh-join .ms360-card { max-width: 560px; margin: 0 auto; }
.ms360 .mh-join .ms360-card h2 { margin-top: 0; font-size: 24px; }

.mh-section { padding: 88px 0; }
.mh-section--mist { background: #F3F5F8; }
.mh-eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5A6B7D; }
.ms360 .mh-section h2 { margin: 0 0 40px; color: var(--ms-navy); font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.1; max-width: 40rem; }
.mh-steps { display: flex; flex-wrap: wrap; gap: 24px; }
.mh-step { flex: 1 1 280px; background: #F3F5F8; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.mh-section--mist .mh-step { background: #fff; }
.mh-num { font-family: Manrope, Inter, sans-serif; font-weight: 700; width: 46px; height: 46px; border-radius: 999px; background: var(--ms-navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.mh-num--blue { background: var(--ms-blue); }
.ms360 .mh-step h3, .ms360 .mh-reward h3 { margin: 0; color: var(--ms-navy); font-size: 21px; font-weight: 700; }
.mh-step p, .mh-reward p { margin: 0; font-size: 16px; line-height: 1.55; color: #4A5A6B; }
.mh-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.mh-reward { border: 1px solid var(--ms-line); background: #fff; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.mh-icon { width: 52px; height: 52px; border-radius: 16px; background: #F3F5F8; color: var(--ms-navy); display: flex; align-items: center; justify-content: center; }
.mh-note { margin: 28px 0 0; color: #5A6B7D; font-size: 15px; }

.mh-app { padding: 0 0 88px; }
.mh-app-box { background: var(--ms-blue); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.ms360 .mh-app-box h2 { margin: 0 0 12px; color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.1; }
.mh-app-box p { margin: 0 0 18px; font-size: 18px; line-height: 1.5; max-width: 34rem; }
.mh-soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 6px 22px; border-radius: 14px; background: #fff; color: var(--ms-navy); }
.mh-soon small { font-size: 12px; }
.mh-soon b { font-size: 18px; font-weight: 600; }
.mh-app-mark { width: 120px; height: 120px; }

.mh-faq { max-width: 820px; margin: 0 auto; }
.ms360 .mh-faq h2 { margin-bottom: 28px; }
.mh-faq details { border-bottom: 1px solid var(--ms-line); padding: 20px 0; }
.mh-faq details:first-of-type { border-top: 1px solid var(--ms-line); }
.mh-faq summary { font-size: 18px; font-weight: 600; color: var(--ms-navy); cursor: pointer; }
.mh-faq details p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: #4A5A6B; }

.ms360 a:focus-visible, .ms360 summary:focus-visible, .ms360 button:focus-visible { outline: 3px solid var(--ms-sky); outline-offset: 2px; }
@media (max-width: 640px) {
    .ms360-header-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .ms360 .ms360-nav a { padding: 8px 8px; font-size: 14px; }
    .mh-hero { padding: 32px 0 104px; }
    .mh-section { padding: 64px 0; }
    .ms360-wide { padding: 0 16px; }
}
html:has(body.ms360) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.ms360) { scroll-behavior: auto; } }
/* [END CLAUDE CHANGE] */
