/*
  Receipt Snoop — the instant-shell stylesheet.

  It styles ONLY the pre-wasm front door painted by #rs-home in index.html: the
  brand bar, the hero, the three steps, the footer. It exists as a separate,
  fixed-path file (not the app's fingerprinted style.css) so it is in force
  before the wasm and its stylesheet arrive, which is what lets `/` paint real,
  readable content in well under a second on a weak in-shop connection. When the
  Dioxus app has rendered, App removes #rs-home and this stylesheet no longer
  matches anything.

  It is deployed like the manifest and og-image: web/static/app-shell.css,
  copied into the bundle by deploy/update-deploy.sh after the reachability
  sweep, served by an exact-match nginx location with the -public header
  snippet. No @import and no url() to anywhere but self, so style-src 'self'
  covers it and nothing here reaches the network.

  The palette is the app's: navy #1e3a5f, teal #7dd3c0, ink #1f2933 on an
  off-white #f6f7f9, matched to web/assets/style.css so the hand-off from this
  shell to the live app does not lurch.
*/

#rs-home {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow-y: auto;
    background: #f6f7f9;
    color: #1f2933;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.rs-boot-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #1e3a5f;
    color: #fff;
    flex-wrap: wrap;
}

.rs-boot-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    color: #fff;
    text-decoration: none;
}

.rs-boot-brand span { color: #7dd3c0; }

.rs-boot-navlinks {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.95rem;
}

.rs-boot-navlinks a {
    color: #dbe4ee;
    text-decoration: none;
}

.rs-boot-navlinks a:hover { color: #fff; text-decoration: underline; }

.rs-boot-signin {
    padding: 0.4rem 0.9rem;
    border: 1px solid #7dd3c0;
    border-radius: 8px;
    color: #7dd3c0 !important;
}

.rs-boot-main {
    max-width: 62rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

.rs-boot-hero { text-align: center; }

.rs-boot-scanmark {
    font-size: 3rem;
    line-height: 1;
    color: #7dd3c0;
    margin-bottom: 0.5rem;
}

.rs-boot-hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0.25rem 0 0.75rem;
    color: #12233a;
}

.rs-boot-lede {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    font-size: 1.08rem;
    color: #3a4756;
}

.rs-boot-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rs-boot-btn {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #c3ccd6;
    color: #1e3a5f;
    background: #fff;
}

.rs-boot-btn.primary {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

.rs-boot-btn:hover { filter: brightness(1.05); }

.rs-boot-micro {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #667585;
}

.rs-boot-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin-top: 2.75rem;
}

.rs-boot-step {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    padding: 1.25rem;
}

.rs-boot-step h2 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    color: #12233a;
}

.rs-boot-step p {
    margin: 0;
    font-size: 0.97rem;
    color: #3a4756;
}

.rs-boot-foot {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e3e8ee;
    text-align: center;
    color: #667585;
    font-size: 0.9rem;
}

.rs-boot-foot nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.rs-boot-foot a {
    color: #1e3a5f;
    text-decoration: none;
}

.rs-boot-foot a:hover { text-decoration: underline; }

/*
  The LIVE public front door (views::front::Front), which the wasm app renders
  into #main once it takes over from #rs-home above. These rules live here, in
  the always-present fixed-path stylesheet, rather than in the fingerprinted
  app stylesheet, so the front-door chrome is one file and the hand-off from the
  instant-shell does not restyle. The inner scan and capture screens are the
  app's own components and keep the app's card styling from style.css; these
  rules are only the frame around them.
*/
.front {
    min-height: 100vh;
    background: #f6f7f9;
}

.front-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: #1e3a5f;
    color: #fff;
    flex-wrap: wrap;
}

.front-bar .brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
}

.front-bar .brand span { color: #7dd3c0; }

.front-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.front-nav .front-link {
    color: #dbe4ee;
    text-decoration: none;
    font-size: 0.95rem;
}

.front-nav .front-link:hover { color: #fff; }

/* The install and sign-in controls in the bar reuse the app's .btn family, so
   they need no colour of their own; only their spacing is set here. */
.front-nav .btn { margin: 0; }

.front-main {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

.front-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.front-toggle button {
    flex: 1;
    padding: 0.65rem 0.5rem;
    border: 1px solid #c3ccd6;
    border-radius: 10px;
    background: #fff;
    color: #3a4756;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.front-toggle button.on {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

.front-foot {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
    text-align: center;
    color: #667585;
    font-size: 0.9rem;
}

.front-foot-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.front-foot-links a {
    color: #1e3a5f;
    text-decoration: none;
}

.front-foot-links a:hover { text-decoration: underline; }

/* The signed-out scan tease and the gate cards. .card comes from the app
   stylesheet; these add only the band's emphasis and the gate's tint. */
.scan-tease { text-align: center; }

.tease-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: #667585;
    margin-bottom: 0.35rem;
}

.tease-band {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 700;
    color: #12233a;
    line-height: 1.1;
}

.tease-count {
    margin-top: 0.5rem;
    color: #3a4756;
    font-size: 0.95rem;
}

.card.gate {
    border: 1px solid #7dd3c0;
    background: #f2fbf8;
}


/* --- the explainer box above the scanner -------------------------------
   The founder's "text box above the scanner": what Receipt Snoop is, in plain
   words, for a shopper standing in a shop. White card on the light front-door
   ground, matching the app's own card furniture the showcase below reuses. */
.front-explainer {
    background: #fff;
    border: 1px solid #e2e7ec;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}
.front-explainer h1 {
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #12233a;
}
.front-explainer p {
    margin: 0 0 0.5rem;
    color: #3a4756;
    font-size: 0.98rem;
    line-height: 1.5;
}
.front-explainer p:last-child { margin-bottom: 0; }
.front-explainer-trust { color: #4a5768; font-size: 0.9rem; }

/* --- the live showcase strip -------------------------------------------
   .section / .card / .rows / .row / .empty come from the app stylesheet, so
   the strip reads as a preview of the signed-in dashboard. These rules add
   only the stat tiles and the note. */
.front-showcase { margin-top: 1.75rem; }
.showcase-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.showcase-stat {
    flex: 1 1 6rem;
    min-width: 5.5rem;
    background: #1e3a5f;
    color: #fff;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
}
.showcase-stat .n {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.showcase-stat .t {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a9c2dc;
    margin-top: 0.15rem;
}
.front-showcase-note {
    margin: 0.85rem 0 0;
    color: #667585;
    font-size: 0.85rem;
    line-height: 1.45;
}
