/* Shared stylesheet for every page under /business.
 *
 * Lifted out of index.html when the one-page site became five pages. Keeping it
 * inline would have meant five copies drifting apart the first time a colour
 * changed — and a nav that looks slightly different on the pricing page is the
 * kind of thing people read as "this company is not quite together".
 */
  /* Tokens read off budgetbro.co itself, not guessed — the site is dark,
     serif-display, with blue-tinted glass cards over near-black. */
  /* Light theme.
   *
   * budgetbro.co is dark; this is not, deliberately. It is a different audience
   * doing a different job: a restaurant owner filling in a form between covers,
   * often on a phone in a bright kitchen, not someone checking their balance in
   * the evening. Business tools are overwhelmingly light for that reason, and
   * the contrast on entering makes it obvious you have crossed into another
   * part of the product rather than lost your place in the app.
   *
   * The brand blue carries over unchanged. The accent colours cannot: #3DF08B
   * on white is roughly 1.4:1 and effectively invisible, so the greens, ambers
   * and reds below are the darkened versions that still read as the same hues.
   */
  :root {
    --ground:  #FFFFFF;
    --deeper:  #F4F7FC;
    --panel:   #FFFFFF;
    --text:    #0B1220;
    --muted:   rgba(11, 18, 32, 0.68);
    /* 0.46 measured 3.12:1 on white — under the 4.5:1 floor, and this carries
       real content (footnotes, stat labels), not decoration. */
    /* 0.66, not 0.60. Tuned against plain white it measured 4.91:1 and passed,
       but the blooms were strengthened afterwards and the ground under this
       text is now up to #C2D8F9 — darker, so the gap to dark text narrowed and
       it fell to 4.31:1. A wash on a light page moves the background TOWARD
       dark text, not away from it. 0.66 clears 4.5 on every ground the blooms
       actually produce, with the worst case at 5.17:1. */
    --faint:   rgba(11, 18, 32, 0.66);

    /* Every hairline, hover wash and inset is mixed from this rather than from
       white, so the whole sheet can be flipped by changing one colour. */
    --ink:     11, 18, 32;
    --hair:    rgba(11, 18, 32, 0.10);
    --hair-2:  rgba(11, 18, 32, 0.18);

    --blue:    #0062FE;
    --deep:    #0140D0;
    /* Was a pale tint for dark backgrounds; on white it has to carry text. */
    --tint:    #0B4FD0;
    /* #0E8F52 measured 3.94:1 against the card. Darkened until it clears 4.5;
       still reads as the brand green, just not as a light-on-dark green. */
    --green:   #0B7A45;
    --amber:   #8A5D06;
    --red:     #C8352A;

    --card:    linear-gradient(160deg, rgba(0, 98, 254, 0.045), rgba(1, 64, 208, 0.015));
    --glass:   rgba(11, 18, 32, 0.024);
    /* A top highlight lifts a card off white the way an inner white line lifts
       one off black. */
    --inset:   inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --shadow:  0 1px 2px rgba(11, 18, 32, 0.05), 0 8px 24px rgba(11, 18, 32, 0.06);

    --serif:   "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans:    -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* The same two blooms as the dark sheet. On white a wash can only make the
       ground darker, so dark text gains contrast rather than losing it — the
       ceiling here is taste, not legibility. They scroll with the document
       rather than the viewport on purpose: fixed blooms tint every screen
       equally and the page never gets to be white. Two sit at the top, one
       low, and the middle is left alone. */
    background-image:
      radial-gradient(1200px 700px at 8% 0%,
        rgba(0, 98, 254, 0.22) 0%, rgba(0, 98, 254, 0.14) 30%, transparent 70%),
      radial-gradient(900px 560px at 96% 6%,
        rgba(61, 240, 139, 0.26) 0%, rgba(61, 240, 139, 0.15) 28%, transparent 66%),
      radial-gradient(1000px 800px at 85% 70%,
        rgba(0, 98, 254, 0.10) 0%, transparent 68%);
    background-repeat: no-repeat;
    min-height: 100vh;
  }
  a { color: var(--tint); }

  /* ── floating pill nav, as on the site ─────────────────────────── */
  .bar {
    position: sticky; top: 14px; z-index: 20;
    max-width: 1000px; margin: 14px auto 0; padding: 10px 12px 10px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--hair);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 15px; }
  /* The drawn B is the fallback, not the design. brand-b.png covers it when it
     loads; if it 404s the img removes itself and the letter underneath still
     reads, so a missing asset never leaves an empty blue square. */
  .brand .mark {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(150deg, var(--blue), var(--deep));
    font-weight: 800; font-size: 15px; color: #fff;
    position: relative; overflow: hidden;
  }
  .brand .mark img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .brand em { font-style: normal; color: var(--faint); font-weight: 600; }
  .bar-right { display: flex; align-items: center; gap: 10px; }
  .whoami { font-size: 12.5px; color: var(--muted); font-weight: 600; }

  main { max-width: 1000px; margin: 0 auto; padding: 46px 22px 100px; }

  /* ── type ──────────────────────────────────────────────────────── */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted);
    background: var(--glass); border: 1px solid var(--hair); border-radius: 999px;
    padding: 7px 14px; margin: 0 0 22px; box-shadow: var(--inset);
    backdrop-filter: blur(4px);
  }
  .eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green);
                  box-shadow: 0 0 8px rgba(14,143,82,.45); }

  h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.015em;
    margin: 0 0 16px; text-wrap: balance;
  }
  h1 i { font-style: italic; color: var(--tint); }
  .lede { font-size: 1.06rem; color: var(--muted); margin: 0 0 34px; max-width: 56ch; }

  h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; margin: 0 0 4px; }
  .sub { margin: 0 0 20px; font-size: 13.5px; color: var(--faint); }

  /* ── cards ─────────────────────────────────────────────────────── */
  .card {
    background-image: var(--card);
    background-color: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
  }
  .card.quiet { background-image: none; background-color: var(--deeper); }
  .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  @media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

  /* ── form ──────────────────────────────────────────────────────── */
  label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
  .hint { font-weight: 500; color: var(--faint); }
  input, textarea, select {
    width: 100%; font-family: inherit; font-size: 15px; font-weight: 500;
    padding: 12px 14px; margin-bottom: 16px;
    color: var(--text);
    /* A field has to read as a hole you type into. On black that meant going
       darker than the card; on white it means white against a tinted card,
       plus a real border — a white field on a white card with only a hairline
       is invisible until you click it. */
    background: #FFFFFF;
    border: 1px solid var(--hair-2);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(11, 18, 32, 0.05);
  }
  input::placeholder, textarea::placeholder { color: rgba(11, 18, 32, .38); }
  input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 254, 0.16);
  }
  textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
  select option { background: var(--panel); color: var(--text); }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 620px) { .row { grid-template-columns: 1fr; } }

  button {
    font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
    border-radius: 999px; padding: 12px 24px; border: 1px solid transparent;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  }
  button:active { transform: translateY(1px); }
  .primary {
    background: linear-gradient(150deg, var(--blue), var(--deep));
    color: #fff; box-shadow: 0 8px 24px rgba(0, 98, 254, 0.34), var(--inset);
  }
  .primary:hover { background: linear-gradient(150deg, #1a72ff, var(--blue)); }
  .ghost {
    background: var(--glass); color: var(--text); border-color: var(--hair-2);
    box-shadow: var(--inset); backdrop-filter: blur(4px);
  }
  .ghost:hover { border-color: var(--hair-2); background: rgba(var(--ink), .04); }
  .small { padding: 8px 15px; font-size: 12.5px; }
  button:disabled { opacity: .5; cursor: not-allowed; }
  button:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }

  /* ── notes ─────────────────────────────────────────────────────── */
  .note {
    border-radius: 13px; padding: 12px 15px; font-size: 13.5px; font-weight: 600;
    margin-bottom: 16px; border: 1px solid var(--hair);
  }
  .note.err  { background: rgba(255, 107, 94, .10); border-color: rgba(255,107,94,.30); color: #FFB3AB; }
  .note.good { background: rgba(61, 240, 139, .09); border-color: rgba(61,240,139,.28); color: #9BF5C4; }
  .note.info { background: rgba(0, 98, 254, .12); border-color: rgba(0,98,254,.32); color: var(--tint); }
  .note[hidden] { display: none; }

  /* ── deals table ───────────────────────────────────────────────── */
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th {
    text-align: left; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--faint); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--hair);
  }
  td { padding: 14px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
  tr:last-child td { border-bottom: 0; }
  .price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; color: var(--green); }
  .was { color: var(--faint); text-decoration: line-through; font-weight: 500; margin-left: 7px; }

  .pill {
    display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
    border: 1px solid var(--hair); white-space: nowrap;
  }
  .pill.pending   { background: rgba(240,194,61,.12); border-color: rgba(240,194,61,.34); color: var(--amber); }
  .pill.published { background: rgba(61,240,139,.12); border-color: rgba(61,240,139,.34); color: var(--green); }
  .pill.rejected  { background: rgba(255,107,94,.12); border-color: rgba(255,107,94,.34); color: var(--red); }
  .pill.expired   { background: rgba(var(--ink), .05); color: var(--faint); }

  .empty { color: var(--faint); font-size: 14px; padding: 10px 0; }

  /* ── marketing page ────────────────────────────────────────────── */
  .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; }
  .btn {
    display: inline-block; text-decoration: none; border-radius: 999px;
    padding: 12px 22px; font-size: 14.5px; font-weight: 700;
  }
  a.primary.btn { color: #fff; }
  a.ghost.btn { color: var(--text); border: 1px solid var(--hair-2); }
  a.ghost.btn:hover { background: rgba(var(--ink), .05); }

  /* Sections are separated by space and a rule rather than boxes — a page of
     stacked cards reads as a dashboard, and this half of the page is a
     brochure. */
  .section-head {
    margin: 58px 0 4px; padding-top: 26px; border-top: 1px solid var(--hair);
    scroll-margin-top: 90px;
  }
  .section-head h2 {
    margin: 0; font-family: var(--serif); font-weight: 400;
    font-size: 34px; letter-spacing: -.02em; line-height: 1.1;
  }
  .section-head p { color: var(--muted); font-size: 15px; margin: 8px 0 0; max-width: 62ch; line-height: 1.5; }

  .figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
  .figure {
    background: var(--glass); border: 1px solid var(--hair);
    border-radius: 14px; padding: 18px 16px;
  }
  .figure b {
    display: block; font-family: var(--serif); font-weight: 400;
    font-size: 32px; line-height: 1; letter-spacing: -.01em;
    font-variant-numeric: tabular-nums; color: var(--tint);
  }
  .figure span { display: block; color: var(--faint); font-size: 12.5px; margin-top: 7px; line-height: 1.35; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
  .step {
    background: var(--glass); border: 1px solid var(--hair);
    border-radius: 14px; padding: 18px 17px;
  }
  .step b {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
    background: linear-gradient(150deg, var(--blue), var(--deep));
    font-size: 13px; color: #fff; margin-bottom: 12px;
  }
  .step h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
  .step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

  /* ── faq ───────────────────────────────────────────────────────── */
  .faq { margin-top: 20px; }
  .faq details { border-bottom: 1px solid var(--hair); }
  .faq summary {
    cursor: pointer; list-style: none; padding: 17px 30px 17px 0;
    font-size: 15px; font-weight: 600; position: relative;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 15px;
    font-size: 19px; font-weight: 400; color: var(--faint);
  }
  .faq details[open] summary::after { content: "\2013"; }
  .faq details[open] summary { color: var(--tint); }
  .faq p {
    margin: 0 0 18px; color: var(--muted); font-size: 14px;
    line-height: 1.6; max-width: 68ch; padding-right: 30px;
  }
  .faq a { color: var(--tint); }

  @media (max-width: 860px) {
    .figures { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .section-head h2 { font-size: 27px; }
  }

  /* ── plans ─────────────────────────────────────────────────────── */
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
  .plan {
    display: flex; flex-direction: column;
    background: var(--glass); border: 1px solid var(--hair);
    border-radius: 14px; padding: 16px 15px;
  }
  /* The tier they are on is stated, not sold. */
  .plan.current { border-color: rgba(61,240,139,.42); background: rgba(61,240,139,.05); }
  /* One tier flagged, the way every pricing page does it. Boosted rather than
     the dearest one: recommending the most expensive tier to a restaurant that
     has never run a deal here would not survive the first invoice. */
  .plan.popular { border-color: rgba(0,98,254,.5); background: var(--card); }
  .plan .flag {
    align-self: flex-start; margin-bottom: 9px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--tint); background: rgba(0,98,254,.2);
    border: 1px solid rgba(0,98,254,.4); border-radius: 999px; padding: 3px 9px;
  }
  .plan h3 {
    margin: 0; font-family: var(--serif); font-weight: 400;
    font-size: 22px; letter-spacing: -.01em;
  }
  .plan .price { font-size: 15px; font-weight: 700; margin: 2px 0 10px; }
  .plan .price small { color: var(--faint); font-weight: 500; font-size: 12px; }
  .plan .blurb { color: var(--muted); font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
  .plan ul { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
  .plan li {
    position: relative; padding-left: 17px; margin-bottom: 7px;
    font-size: 12.5px; color: var(--muted); line-height: 1.4;
  }
  .plan li::before { content: ""; position: absolute; left: 0; top: 6px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
  .plan.current li::before { background: var(--green); }
  .plan .on {
    text-align: center; font-size: 12px; font-weight: 700;
    color: var(--green); padding: 9px 0; letter-spacing: .04em; text-transform: uppercase;
  }
  .plans-foot {
    margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--hair);
    color: var(--faint); font-size: 12.5px;
  }
  @media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

  /* ── settings ──────────────────────────────────────────────────── */
  .setting {
    padding: 18px 0;
    border-top: 1px solid var(--hair);
  }
  .setting:first-child { border-top: 0; padding-top: 6px; }
  .setting h3 {
    margin: 0 0 3px; font-family: var(--serif); font-weight: 400;
    font-size: 21px; letter-spacing: -.01em;
  }
  .setting .where { color: var(--faint); font-size: 13px; margin: 0 0 14px; }

  /* A checkbox and its label read as one thing you click, not a box next to
     some words that happen to sit nearby. */
  .toggle {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 12px; margin-top: 4px; cursor: pointer;
    background: var(--glass); border: 1px solid var(--hair); border-radius: 11px;
  }
  .toggle input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--blue); flex: 0 0 auto; }
  .toggle span { font-size: 13.5px; }
  .toggle small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }

  .setting-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

  /* Leaving is not a primary action and must not look like one, but hiding it
     would be worse — a restaurant that cannot find the exit stops trusting the
     rest of the page. */
  .danger {
    background: none; border: 1px solid rgba(255,107,94,.32);
    color: var(--red); border-radius: 999px;
    padding: 8px 15px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .danger:hover { background: rgba(255,107,94,.09); }

  .actions { display: flex; align-items: center; gap: 10px; }

  /* ── analytics ─────────────────────────────────────────────────── */
  .stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin: 16px 0 6px;
  }
  .stat {
    background: var(--glass); border: 1px solid var(--hair);
    border-radius: 12px; padding: 13px 14px;
  }
  .stat b {
    display: block; font-family: var(--serif); font-weight: 400;
    font-size: 30px; line-height: 1.05; letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
  }
  .stat span { display: block; color: var(--faint); font-size: 12px; margin-top: 3px; }
  .stat.views b  { color: var(--tint); }
  .stat.opens b  { color: var(--green); }
  .stat.saves b  { color: var(--amber); }

  .stat-deal {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 0; border-top: 1px solid var(--hair);
  }
  .stat-deal-main { flex: 1; min-width: 0; }
  .stat-deal-main strong {
    display: block; font-size: 14px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .stat-deal-main small { color: var(--faint); font-size: 12px; }
  .stat-nums {
    display: flex; gap: 16px; font-variant-numeric: tabular-nums;
    font-size: 13px; white-space: nowrap;
  }
  .stat-nums i { font-style: normal; color: var(--faint); margin-left: 4px; font-size: 11px; }

  /* A 30-column strip, one per day. Bars are relative to this merchant's own
     best day, so a quiet restaurant still sees its shape rather than a flat
     line under someone else's scale. */
  .spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; width: 132px; }
  .spark i {
    flex: 1; background: rgba(0,98,254,.5); border-radius: 1px;
    min-height: 1px; display: block;
  }
  .spark i.has { background: var(--blue); }

  @media (max-width: 560px) {
    /* Signed in on a phone, the bar holds a brand, an email address and a
       button — more than a pill that wide can carry, and it was pushing the
       sign-out button off the right edge. The email is the part to drop: the
       owner knows which account they are in, and it reappears the moment there
       is room. */
    .bar { padding-left: 14px; gap: 8px; }
    .brand em { display: none; }
    .whoami { display: none; }
    /* Three counters side by side become unreadable long before the screen
       runs out; one per line keeps the serif numerals at a size worth having. */
    .stat-row { grid-template-columns: 1fr; }
    .stat { display: flex; align-items: baseline; gap: 10px; }
    .stat b { font-size: 26px; }
    .stat span { margin-top: 0; }

    /* Stack instead of squeezing: side by side, the deal name was truncating to
       "Two taco…" while the numbers kept their full width. The name is the part
       the owner is looking for. */
    .stat-deal { display: block; }
    .stat-deal-main strong { white-space: normal; }
    .stat-nums {
      margin-top: 8px; gap: 0;
      justify-content: space-between; max-width: 260px;
    }
    .spark { display: none; }
  }

  /* ── side panel: why bother ────────────────────────────────────── */
  .why { display: grid; gap: 16px; }
  .why-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; align-items: start; }
  .why-ico {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    font-size: 15px; border: 1px solid var(--hair); box-shadow: var(--inset);
  }
  .why-ico.g { background: rgba(61,240,139,.12); }
  .why-ico.b { background: rgba(0,98,254,.16); }
  .why h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
  .why p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

  [hidden] { display: none !important; }
  footer {
    max-width: 1000px; margin: 0 auto; padding: 0 22px 70px;
    color: var(--faint); font-size: 12.5px;
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

  /* ── shared chrome ─────────────────────────────────────────────── */
  .bar-nav { display: flex; gap: 4px; margin-left: auto; margin-right: 6px; }
  /* Labels must not break mid-phrase. Without this "How it works" stacked onto
     two lines at 375px and the exit arrow was orphaned under its own label. */
  .bar-nav a { white-space: nowrap; }
  .bar-nav a {
    color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
    padding: 7px 12px; border-radius: 999px;
  }
  .bar-nav a:hover { color: var(--text); background: rgba(var(--ink), .05); }
  .bar-nav a.on { color: var(--text); background: rgba(var(--ink), .07); }

  /* The exit back to budgetbro.co. It sits with the page links rather than
     beside Sign in so it wraps with them on a phone instead of fighting the
     button for the top row. The rule separates it from pages that stay here;
     the arrow says it leaves. */
  .bar-nav a.bar-out {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 6px; padding-left: 12px;
    border-left: 1px solid var(--hair-2);
    border-radius: 0 999px 999px 0;
    color: var(--faint);
  }
  .bar-nav a.bar-out span { font-size: 11px; opacity: .75; }
  .bar-nav a.bar-out:hover { color: var(--tint); background: rgba(0, 98, 254, .06); }
  a.brand { text-decoration: none; color: inherit; }
  a.ghost.small.btn { padding: 8px 15px; font-size: 13px; }

  /* Below this the nav does not fit beside the brand and the sign-in button.
     The page links move under the bar rather than being hidden — a phone user
     still needs to reach pricing. */
  @media (max-width: 700px) {
    .bar { flex-wrap: wrap; border-radius: 20px; }
    /* Grouped left, not spread. space-between threw "How it works" against
       one edge and "FAQ" against the other with a dead gap between them,
       which reads as three unrelated things rather than one nav. The -10px
       cancels the first link's own padding so its text lines up with the
       brand above it. */
    .bar-nav {
      order: 3; width: 100%; margin: 4px 0 0 -10px;
      justify-content: flex-start; gap: 2px;
      /* On the narrowest phones the four labels are a few pixels too wide.
         Scrolling the row keeps every one of them reachable, which hiding one
         behind a menu would not. */
      overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .bar-nav::-webkit-scrollbar { display: none; }
    .bar-nav a.bar-out { margin-left: 4px; padding-left: 10px; }
    .bar-nav a { padding: 7px 10px; font-size: 13px; }
    .bar-right { margin-left: auto; }
  }

  footer { max-width: 1000px; margin: 0 auto; padding: 0 22px 60px; }
  .foot-cols {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
    padding-top: 30px; border-top: 1px solid var(--hair);
  }
  .foot-cols h4 {
    margin: 0 0 10px; font-size: 11.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  }
  .foot-cols a {
    display: block; color: var(--muted); text-decoration: none;
    font-size: 13.5px; margin-bottom: 7px;
  }
  .foot-cols a:hover { color: var(--tint); }
  .foot-legal { color: var(--faint); font-size: 12px; margin: 26px 0 0; max-width: 70ch; line-height: 1.5; }
  @media (max-width: 700px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

  /* ── the product, shown ───────────────────────────────────────────
   *
   * The page described where a deal appears and never showed it. This is the
   * Find Savings row rebuilt from the app's own markup and type scale — the
   * same heading, the same 13px title over an 11px meta line, the same
   * struck-through was-price, the same "$X left".
   *
   * It matters that it is accurate rather than flattering: a restaurant that
   * signs up on the strength of a mockup and then sees something different is
   * a restaurant that stops answering the phone. The app is light-themed, so
   * this is light — an invented dark mockup would have looked better here and
   * been a lie.
   */
  .hero-copy, .hero-copy-after { max-width: 1000px; margin: 0 auto; padding: 0 22px; }

  .phone-wrap {
    max-width: 1000px; margin: 34px auto 0; padding: 0 22px;
    display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center;
  }
  .phone {
    width: 300px; border-radius: 34px; padding: 10px;
    background: linear-gradient(165deg, #1b2434, #0b1220);
    box-shadow: 0 2px 4px rgba(11,18,32,.14), 0 24px 60px rgba(11,18,32,.22);
  }
  .phone-screen {
    border-radius: 26px; padding: 16px 13px 18px;
    /* The app's own --bg and --line, not an approximation. */
    background: #f4f9ff; border: 1px solid #d9e8fb; overflow: hidden;
  }
  .app-head { margin-bottom: 15px; }
  .app-eyebrow {
    display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: #5d6b80;
  }
  .app-budget {
    display: block; margin-top: 3px; font-size: 21px; font-weight: 800;
    color: #0b1220; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  }
  .app-budget em { font-style: normal; font-size: 11px; font-weight: 700; color: #5d6b80; }

  .app-sec-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    padding-top: 12px; border-top: 1px solid #d9e8fb; margin-bottom: 9px;
  }
  .app-sec-head h4 { margin: 0; font-size: 12.5px; font-weight: 800; color: #0b1220; letter-spacing: -0.01em; }
  .app-sec-head p  { margin: 2px 0 0; font-size: 9.5px; line-height: 1.45; color: #5d6b80; }

  /* The app's green is #13A763, and on its own mint badge that measures
     2.86:1 — a real contrast failure in the app, faithfully reproduced here
     because the mockup copies the app's palette. Faithful is not a reason to
     ship a failure on this page, so the mockup uses the business site's own
     --green (#0B7A45): same hue, 4.97:1 on the badge and 5.21:1 on the row.
     The app itself still needs fixing at the source. */
  .app-count {
    flex: none; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px;
    display: grid; place-items: center; font-size: 10.5px; font-weight: 800;
    background: #e9f9f1; color: var(--green);
  }

  .app-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 11px; margin-top: 7px;
    border: 1px solid #d9e8fb; border-radius: 13px; background: #f8fbff;
  }
  /* The app marks a restaurant-posted deal with a green hairline rather than a
     badge — enough to read as a different kind of thing without shouting over
     the prices. Same rule here. */
  .app-row.is-yours {
    border-color: rgba(19, 167, 99, .38);
    background: linear-gradient(180deg, rgba(19,167,99,.055), rgba(19,167,99,.015));
  }
  .app-row-main { min-width: 0; }
  .app-row-main strong {
    display: block; font-size: 12px; font-weight: 800; color: #0b1220;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .app-row-main span { display: block; margin-top: 2px; font-size: 10px; color: #5d6b80; }
  .app-row-price { flex: none; text-align: right; }
  .app-row-price strong {
    display: block; font-size: 13px; font-weight: 800; color: #0b1220;
    font-variant-numeric: tabular-nums;
  }
  .app-row-price strong.free { color: var(--green); font-size: 11.5px; }
  .app-row-price em { display: block; margin-top: 2px; font-size: 9.5px; font-style: normal; color: #5d6b80; }
  .app-row-price em.was { text-decoration: line-through; opacity: .72; }

  .phone-note { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
  .phone-note b { color: var(--text); font-weight: 700; }

  @media (max-width: 760px) {
    /* Stacked, and the phone leads — on a phone, a picture of a phone reads
       faster than the sentence explaining it.
       Centring is done with justify-items, never text-align: text-align
       inherits, and it was centring the rows *inside* the screen, which the
       real app never does. */
    .phone-wrap { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  }

  /* The right column was three lines of prose against a 500px phone, which
     left a hole rather than a layout. Naming the three parts of the row fills
     it with the argument itself — and each one quotes the mockup verbatim, so
     the eye can find what the sentence is talking about. */
  .phone-note h3 {
    margin: 0 0 6px; font-family: var(--serif); font-weight: 400;
    font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; color: var(--text);
  }
  .phone-note > p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
  .phone-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
  .phone-points li { padding-left: 15px; border-left: 2px solid var(--hair-2); }
  .phone-points b {
    display: block; font-size: 13px; font-weight: 700; color: var(--tint);
    font-variant-numeric: tabular-nums;
  }
  .phone-points span {
    display: block; margin-top: 3px; font-size: 14px; line-height: 1.6; color: var(--muted);
  }
  @media (max-width: 760px) {
    .phone-note h3 { font-size: 23px; }
  }

  /* ── the two filters ──────────────────────────────────────────────
   * The reason a restaurant would choose this over a coupon site, stated
   * plainly. Both halves are real code: the app drops any deal priced above
   * what the person has left (app.js, renderLocalDeals) and the API drops any
   * deal outside the plan's radius (api.js, miles <= reach). The numbers here
   * are the PLANS definitions, not marketing rounding.
   */
  .reach { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
  .reach-half {
    padding: 22px 22px 20px; border-radius: 18px;
    background: var(--panel); border: 1px solid var(--hair); box-shadow: var(--shadow);
  }
  .reach-tag {
    display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .13em;
    text-transform: uppercase; color: var(--tint); margin-bottom: 10px;
  }
  .reach-half h3 {
    margin: 0 0 9px; font-size: 17px; font-weight: 700;
    letter-spacing: -0.01em; color: var(--text); line-height: 1.3;
  }
  .reach-half p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.62; color: var(--muted); }
  .reach-half p:last-child { margin-bottom: 0; }
  .reach-note {
    padding-top: 10px; border-top: 1px solid var(--hair);
    font-size: 13.5px !important; color: var(--faint) !important;
  }
  .reach-tiers { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
  .reach-tiers li {
    display: flex; align-items: baseline; gap: 9px;
    padding: 8px 12px; border-radius: 11px; background: var(--glass);
    border: 1px solid var(--hair);
  }
  .reach-tiers b {
    font-size: 14.5px; font-weight: 800; color: var(--text);
    font-variant-numeric: tabular-nums; min-width: 68px;
  }
  .reach-tiers span { font-size: 13px; color: var(--muted); }

  @media (max-width: 760px) { .reach { grid-template-columns: 1fr; } }

  /* The funnel spans both columns: it is the consequence of the two filters
     above it, not a third filter. */
  .reach-wide { grid-column: 1 / -1; }
  .reach-funnel {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0;
  }
  .reach-funnel div {
    padding: 13px 14px; border-radius: 13px;
    background: var(--glass); border: 1px solid var(--hair);
  }
  .reach-funnel b {
    display: block; font-family: var(--serif); font-weight: 400; font-size: 27px;
    line-height: 1.1; color: var(--tint); font-variant-numeric: tabular-nums;
  }
  .reach-funnel span {
    display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--muted);
  }
  @media (max-width: 760px) {
    .reach-funnel { grid-template-columns: 1fr 1fr; }
  }
