/* =============================================================================
   MAS Shopping — public pages theme (landing, tracking, sign-in).

   Built from the Figma "MAS - App" landing frame (1440 wide): soft #F9F9F9
   canvas, white rounded header with pill buttons, mint/teal glow hero,
   white 20px-radius cards with a mint glow, teal app banner. Load AFTER
   brand.css; tokens below extend brand.css's --mas-* set.
   ============================================================================= */

:root {
    --pub-canvas: #f9f9f9;
    --pub-ink: #1f1f1f;
    --pub-deep: #094f4b;          /* eyebrow text, dark-teal accents */
    --pub-teal: #1eb6b6;          /* primary buttons */
    --pub-teal-dark: #05827b;     /* app banner */
    --pub-teal-glow: #4ac6c6;
    --pub-mint: #8ff0b0;
    --pub-field: #f2f3f7;
    --pub-line: #e4e4e4;
    --pub-card-line: rgba(0, 0, 0, 0.10);
    --pub-radius: 20px;
    --pub-pill: 68px;
    --pub-wide: 1416px;           /* header / hero frame */
    --pub-content: 1301px;        /* sections */
    --pub-badge-grad: linear-gradient(90deg, #15b5ac 0%, #0f827b 100%);
}

body.pub *, body.pub *::before, body.pub *::after { box-sizing: border-box; }
body.pub {
    margin: 0;
    background: var(--pub-canvas);
    color: var(--pub-ink);
    font-family: var(--mas-font);
}
.pub a { text-decoration: none; }
.pub-wrap { width: min(var(--pub-wide), calc(100% - 24px)); margin-inline: auto; }
/* From 1200px up the body is zoomed to the 1440 frame (partials/public-head), so these widths are exact. */
.pub-content { width: min(var(--pub-content), calc(100% - 32px)); margin-inline: auto; }

/* ---------- header ---------- */
.pub-header {
    margin-top: 11px;
    height: 78px;
    padding: 0 40px;
    background: #fff;
    border-radius: var(--pub-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.pub-header__logo img { height: 33px; width: auto; display: block; }
.pub-header__actions { display: flex; align-items: center; gap: 9px; }
.pub-pill {
    height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fafafa;
    border: 1px solid var(--pub-line);
    border-radius: var(--pub-pill);
    color: var(--pub-ink);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pub-pill img { width: 20px; height: 20px; display: block; }
.pub-pill:hover { border-color: rgba(30, 182, 182, .55); background: #fff; color: var(--pub-ink); box-shadow: 0 4px 14px rgba(5, 130, 123, .08); }
.pub-pill:focus-visible { outline: none; box-shadow: var(--mas-ring); }
.pub-pill--icon { width: 40px; padding: 0; justify-content: center; }
.pub-pill.is-active { border-color: var(--pub-teal); background: #fff; }
.pub-pill--lang { width: 94px; padding: 0 10px; justify-content: space-between; gap: 3px; cursor: default; }
.pub-pill--lang:hover { border-color: var(--pub-line); background: #fafafa; box-shadow: none; }
.pub-pill .pub-pill__flag { width: 21px; height: 21px; border-radius: 50%; }
.pub-pill .pub-pill__chev { width: 13px; height: auto; opacity: .9; }

/* ---------- glow surface (hero + auth panel share it) ---------- */
.pub-glow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(180, 243, 115, 0.10);
    border: 1px solid #fff;
    border-radius: var(--pub-radius);
}
.pub-glow::before,
.pub-glow::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
/* Figma: 839/880px ellipses at 40% with blur(222px). Drawn as radial gradients instead —
   a blur filter that large stalls the browser's renderer. */
.pub-glow::before { width: 1283px; height: 1283px; left: 583px; top: -237px; background: radial-gradient(closest-side, rgba(143, 240, 176, .40), rgba(143, 240, 176, .30) 40%, rgba(143, 240, 176, .12) 70%, rgba(143, 240, 176, 0)); }
.pub-glow::after { width: 1324px; height: 1324px; left: -464px; top: -570px; background: radial-gradient(closest-side, rgba(74, 198, 198, .40), rgba(74, 198, 198, .30) 40%, rgba(74, 198, 198, .12) 70%, rgba(74, 198, 198, 0)); }

/* ---------- buttons ---------- */
.pub-btn {
    height: 50px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
    cursor: pointer;
}
.pub-btn img { width: 24px; height: 24px; }
.pub-btn:hover { transform: translateY(-1px); }
.pub-btn:focus-visible { outline: none; box-shadow: var(--mas-ring); }
.pub-btn--primary { background: var(--pub-teal); color: #fff; border-color: rgba(0, 0, 0, .05); }
.pub-btn--primary:hover { color: #fff; background: #19a6a6; box-shadow: 0 10px 22px rgba(30, 182, 182, .28); }
.pub-btn--light { background: #fff; color: var(--pub-deep); }
.pub-btn--light:hover { color: var(--pub-deep); box-shadow: 0 10px 22px rgba(9, 79, 75, .10); }
.pub-icon-white { filter: brightness(0) invert(1); }

/* ---------- badge (gradient pill with a white dot) ---------- */
.pub-badge {
    height: 39px;
    padding: 0 6px 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--pub-badge-grad);
    border: 1px solid #fff;
    border-radius: 65px;
    color: #fff;
    font-size: 16px;
    line-height: 1;
}
.pub-badge__dot { width: 27px; height: 27px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.pub-badge__dot img { width: 18px; height: auto; }

/* ---------- headings ---------- */
.pub-eyebrow { color: var(--pub-deep); font-size: 16px; line-height: 1.1; margin: 0; }
.pub-title { color: #000; font-size: 32px; font-weight: 700; line-height: 1.1; margin: 0; }
.pub-sub { color: rgba(0, 0, 0, .7); font-size: 22px; line-height: 1.1; margin: 0; }
.pub-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }

/* ---------- tracking search card ---------- */
.pub-track {
    width: 507px;
    max-width: 100%;
    padding: 31px 21px 17px 26px;
    background: #fff;
    border-top: 1px solid var(--pub-teal-glow);
    border-radius: 17px;
    box-shadow: 0 7px 28px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pub-track h2 { font-size: 16px; font-weight: 500; line-height: 1.36; margin: 0; color: #000; }
.pub-track p { font-size: 16px; font-weight: 300; line-height: 1.36; margin: 0; color: rgba(0, 0, 0, .8); }
.pub-search {
    height: 50px;
    padding: 5px 20px 5px 7px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pub-field);
    border-radius: 52px;
    border: 1px solid transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pub-search:focus-within { border-color: rgba(30, 182, 182, .55); box-shadow: var(--mas-ring); }
.pub-search input {
    flex: 1;
    width: 0;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: #000;
    outline: none;
}
.pub-search input::placeholder { color: rgba(0, 0, 0, .5); text-align: right; }
.pub-search button {
    height: 37px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 40px;
    background: var(--pub-teal);
    color: #fff;
    font: inherit;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}
.pub-search button:hover { background: #19a6a6; }
.pub-search button img { width: 16px; height: 16px; }

/* ---------- white card with mint glow ---------- */
.pub-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
    border: 1px solid var(--pub-card-line);
    border-radius: var(--pub-radius);
}
.pub-card--glow::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 282px;
    height: 282px;
    left: 50%;
    bottom: -136px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(143, 240, 176, .45), rgba(143, 240, 176, .2) 55%, rgba(143, 240, 176, 0));
    pointer-events: none;
}

/* ---------- store buttons (app banner) ---------- */
.pub-store {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px 10px 10px;
    background: rgba(252, 248, 239, .10);
    border: 1.5px solid rgba(0, 0, 0, .06);
    border-radius: 15px;
    color: #fff;
    transition: background .15s ease;
}
.pub-store:hover { background: rgba(252, 248, 239, .18); color: #fff; }
.pub-store__qr { width: 46px; height: 46px; border-radius: 2px; background: #fff; padding: 2px; }
.pub-store__glyph { width: 24px; height: 26px; object-fit: contain; }
.pub-store__label { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.pub-store__label small { font-size: 12px; opacity: .9; }
.pub-store__label strong { font-size: 19px; font-weight: 400; letter-spacing: -.01em; direction: ltr; text-align: right; }

/* ---------- footer ---------- */
.pub-footer { margin-top: 71px; background: #fff; border-top: 1px solid var(--pub-line); }
.pub-footer__row { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.25rem 0; }
.pub-footer__brand { display: flex; align-items: center; gap: 16px; color: rgba(0, 0, 0, .75); font-size: 14px; }
.pub-footer__brand img { height: 30px; width: auto; }
.pub-footer__links { display: flex; gap: 22px; font-size: 14px; }
.pub-footer__links a { color: var(--pub-ink); }
.pub-footer__links a:hover { color: var(--pub-teal-dark); }

@media (max-width: 767.98px) {
    .pub-header { padding: 0 16px; height: 64px; }
    .pub-header__logo img { height: 30px; }
    .pub-pill__text { display: none; }
    .pub-pill--lang { display: none; }
    .pub-pill { width: 40px; padding: 0; justify-content: center; }
    .pub-title { font-size: 26px; }
    .pub-sub { font-size: 17px; line-height: 1.5; }
    .pub-track { padding: 22px 16px 16px; gap: 18px; }
    .pub-footer__row { justify-content: center; text-align: center; }
    .pub-footer__brand { flex-direction: column; gap: 8px; }
}

.pub-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- staff sign-in (layouts/guest.blade.php) ---------- */
.pub-auth { margin-top: 2px; min-height: 620px; display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 66px; }
.pub-auth__card {
    background: #fff;
    border-top: 1px solid var(--pub-teal-glow);
    border-radius: 17px;
    box-shadow: 0 7px 28px rgba(0, 0, 0, .08);
    padding: 34px 30px 26px;
}
.pub-auth__logo { display: block; margin: 0 auto 14px; width: 84px; height: auto; }
.pub-auth__title { text-align: center; font-size: 24px; font-weight: 700; color: #000; margin: 0 0 6px; }
.pub-auth__subtitle { text-align: center; color: rgba(0, 0, 0, .6); font-size: 14px; margin: 0 0 26px; }
.pub-auth__card .form-label { font-size: 14px; font-weight: 500; color: #000; margin-bottom: 8px; }
.pub-auth__card .form-control {
    height: 50px;
    padding: 0 20px;
    background: var(--pub-field);
    border: 1px solid transparent;
    border-radius: 52px;
    font-size: 14px;
}
.pub-auth__card .form-control:focus { background: #fff; border-color: rgba(30, 182, 182, .55); box-shadow: var(--mas-ring); }
.pub-auth__card .form-control.is-invalid { border-color: rgba(217, 58, 43, .55); }
.pub-auth__card .btn-primary {
    height: 50px;
    border-radius: 40px;
    background: var(--pub-teal);
    border-color: rgba(0, 0, 0, .05);
    font-size: 16px;
    font-weight: 500;
}
.pub-auth__card .btn-primary:hover { background: #19a6a6; box-shadow: 0 10px 22px rgba(30, 182, 182, .28); }
.pub-auth__card .alert { border-radius: 14px; font-size: 14px; }
.pub-auth__card .text-danger { font-size: 13px; margin-top: 6px; }
.pub-auth__card .auth-links { text-align: center; margin-top: 18px; font-size: 14px; }
.pub-auth__card .auth-links a { color: var(--pub-teal-dark); font-weight: 500; }
.pub-auth__secure { text-align: center; margin: 22px 0 0; font-size: 12.5px; color: rgba(0, 0, 0, .5); }

.pub-auth__panel { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pub-auth__headline { font-size: 40px; font-weight: 700; line-height: 1.15; color: #000; margin: 0; }
.pub-auth__lead { font-size: 16px; line-height: 1.6; color: rgba(0, 0, 0, .8); margin: 0; max-width: 540px; }
.pub-auth__features { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 620px; }
.pub-auth__features li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .6); border: 1px solid #fff; border-radius: 16px; padding: 12px 14px; }
.pub-auth__features img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.pub-auth__features strong { display: block; font-size: 14px; font-weight: 600; color: #000; margin-bottom: 2px; }
.pub-auth__features span { font-size: 12.5px; font-weight: 300; color: #000; }

@media (max-width: 991.98px) {
    .pub-auth { grid-template-columns: 1fr; padding: 28px 16px; gap: 28px; }
    .pub-auth__panel { order: -1; }
    .pub-auth__headline { font-size: 30px; }
    .pub-auth__features { display: none; }
}
