/* Direction A, "same as the app" (BL-029 slice 3, Tim's pick): app blue, the red NOW SERVING
   label, the app's Noto Sans TC where the phone has it. No web-font download, so the site stays
   light on mobile data. Phone first; one breakpoint at 900 px. */
:root {
  --bg: #FFFFFF; --ink: #1B1B1F; --muted: #46464F; --blue: #1565C0; --blue-soft: #D1E4FF;
  --teal: #00897B; --red: #D32F2F; --line: #E3E1EC; --card: #F6F8FC; --section-gap: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg); line-height: 1.5; overflow-wrap: break-word;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* 简中 pages (BL-044) draw with the phone's Simplified Chinese glyphs. */
html:lang(zh-CN) body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--blue); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.site-head, main, .site-foot { padding-inline: 16px; max-width: 1152px; margin-inline: auto; }

/* Header and footer. Every link here is a 44 px target: a vendor taps these one-handed. */
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-block: 6px; }
.site-head a, .site-foot a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; margin-right: auto; color: var(--blue); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding-inline: 4px; text-decoration: none; color: var(--ink); }
/* The language switch: the two languages the page is not in (BL-044). */
.langs { display: flex; gap: 4px; }
.lang { position: relative; isolation: isolate; padding-inline: 10px; font-weight: 700; text-decoration: none; color: var(--blue); }
.lang::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: 999px; background: var(--blue-soft); }
/* The console, the way back in for a vendor who set up before (site design, 1.20). On a phone it
   and the language switch keep the header to one line; Walk-up and Help are in the footer. */
.console { position: relative; isolation: isolate; padding-inline: 14px; font-weight: 700; text-decoration: none; color: var(--blue); }
.console::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border: 1.5px solid var(--blue); border-radius: 999px; }
@media (max-width: 599px) { .site-nav { display: none; } }
.site-foot { display: flex; flex-wrap: wrap; gap: 0 16px; padding-block: 16px 40px; border-top: 1px solid var(--line); font-size: 14px; }
.site-foot a, .site-foot span { color: var(--muted); }
.site-foot span { flex-basis: 100%; }

/* Type and actions */
main { display: grid; gap: var(--section-gap); padding-block: 16px 56px; }
h1, h2 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(34px, 8vw, 60px); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: 24px; font-weight: 900; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sub { margin: 12px 0 0; max-width: 34em; font-size: 17px; color: var(--muted); }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 14px; background: var(--blue); color: #FFFFFF; font-size: 18px; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 16px -8px rgba(21, 101, 192, .8);
}
.actions, .stores { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 20px 0 0; }
.actions a:not(.cta), .agents-teaser > a {
  display: inline-flex; align-items: center; min-height: 44px; justify-self: start; font-weight: 700; text-decoration: none;
}

/* Home */
.hero { display: grid; gap: 28px; }
.hero-art { display: flex; gap: 16px; justify-content: center; }
.hero-art .phone-customer { margin-top: 44px; }
.setups, .how, .agents-teaser, .intro { display: grid; gap: 16px; }
/* Find your setup (site design, 1.20): one card per way a place runs KeepPro, grouped. The whole
   card is the link; the picto sits beside the title so the intro gets the card's full width on a
   phone. */
.setups h3 { margin: 12px 0 0; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.setup-grid { display: grid; gap: 12px; }
.setup {
  display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; align-content: start; align-items: center; padding: 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: inherit; text-decoration: none;
}
.setup .picto { width: 48px; height: 48px; padding: 9px; border-radius: 12px; background: var(--blue-soft); }
.setup b { font-size: 18px; line-height: 1.3; }
.setup .for, .setup .intro, .setup .go { grid-column: 1 / -1; }
.setup .for { margin-top: 4px; font-size: 14px; font-weight: 700; }
.setup .intro { font-size: 15px; color: var(--muted); }
.setup .go { margin-top: 4px; font-weight: 700; color: var(--blue); }
.picto { display: block; width: 48px; height: 48px; color: var(--blue); }
.picto svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.steps { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; gap: 12px; justify-items: center; text-align: center; }
.step-pic { height: 280px; display: grid; place-items: center; }
.step p { display: flex; gap: 10px; align-items: baseline; justify-content: center; max-width: 16em; margin: 0; }
.step-n { font-weight: 900; color: var(--blue); }
/* On a phone the hero has just drawn both phones: the steps show them small, beside their caption,
   instead of three full-size pictures (text audit, 1.20). */
@media (max-width: 899px) {
  .step { grid-template-columns: 104px 1fr; align-items: center; justify-items: start; text-align: left; }
  .step-pic { height: auto; zoom: .58; }
  .step p { justify-content: flex-start; }
}
.agents-teaser { padding: 22px 16px; border-radius: 16px; background: var(--card); }
.agents-teaser p { margin: 0; max-width: 34em; }

/* The app, drawn: same colors and shapes as the Compose screens */
.phone {
  flex: none; width: min(168px, 42vw); aspect-ratio: 168 / 280; padding: 8px; border-radius: 26px;
  background: var(--ink); box-shadow: 0 18px 40px -18px rgba(21, 101, 192, .45);
}
.screen {
  height: 100%; display: flex; flex-direction: column; align-items: center; padding: 12px 10px; overflow: hidden;
  border-radius: 19px; background: #FAFAFA; color: var(--ink);
}
.screen p { margin: 0; }
.app-queue { align-self: flex-start; font-size: 11px; }
.app-over { margin-top: 22px !important; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.app-big { font-size: 58px; font-weight: 700; line-height: 1.1; }
.app-meta { margin-top: 2px !important; font-size: 8px; color: var(--muted); }
.app-call {
  width: 100%; height: 74px; margin-top: auto; display: grid; place-content: center; border-radius: 12px;
  background: var(--blue); color: #FFFFFF; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center;
}
.app-call span { font-size: 11px; font-weight: 400; }
.app-card { width: 100%; margin-top: 16px; padding: 8px; border-top: 3px solid var(--teal); border-radius: 8px; background: #EEF3F8; text-align: center; }
.app-card p { font-size: 10px; color: var(--muted); }
.app-card-mine { margin-top: 34px; border-top-color: var(--blue); }
.app-card .app-num { font-size: 30px; line-height: 1.2; color: var(--blue); }
.app-card .app-num-now { color: var(--teal); }

/* The poster, drawn (the app prints the real one) */
.poster {
  width: 180px; max-width: 100%; aspect-ratio: 210 / 297; margin: 0; padding: 14px 12px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: #FFFFFF; color: #111111; box-shadow: 0 10px 30px -12px rgba(27, 27, 31, .35);
}
.poster p { margin: 0; text-align: center; }
.poster-title { font-size: 15px; font-weight: 800; }
.poster-cta { font-size: 13px; font-weight: 700; }
.poster-brand { font-size: 9px; letter-spacing: .1em; color: #666666; }
.qr { width: 112px; height: 112px; fill: #111111; }

/* Walk-up: one card per vendor type. On a phone the poster sits beside "Set up free", so the
   first one needs no scroll even on a 360 x 640 screen. */
.packs { display: grid; gap: 20px; }
.pack { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.pack-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.pack-head .picto { width: 52px; height: 52px; }
.pack-head h2 { font-size: 22px; }
.pack-head p { margin: 2px 0 0; color: var(--muted); }
.pack-body { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.pack .poster { width: 112px; padding: 9px 7px 6px; }
.pack .poster-title { font-size: 11px; }
.pack .poster-cta { font-size: 9px; }
.pack .poster-brand { font-size: 7px; }
.pack .qr { width: 70px; height: 70px; }
.pack-actions { display: grid; gap: 10px; justify-items: start; }
.already { margin: 0; font-size: 14px; color: var(--muted); }

/* Setup pages (BL-040): one per way a place runs KeepPro. Who it's for, the real screens, its own
   three steps, then Set up free. Phone screenshots share a row on a phone (three of them shrink to
   fit 360 px); a wide one (the TV, a tablet held sideways) takes a row of its own. */
.setup-page { display: grid; gap: 20px; }
.setup-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.setup-head .picto { width: 52px; height: 52px; padding: 10px; border-radius: 14px; background: var(--blue-soft); }
.setup-head h1 { font-size: clamp(30px, 7vw, 48px); }
.setup-head .for { margin: 6px 0 0; font-weight: 700; color: var(--muted); }
.setup-page > .sub { margin: 0; }
.shots { display: flex; flex-wrap: wrap; gap: 20px 12px; justify-content: center; align-items: flex-start; }
.shot { margin: 0; display: grid; gap: 8px; justify-items: center; min-width: 0; text-align: center; }
.shot-phone { flex: 1 1 0; max-width: 136px; }
.shot-wide { flex: 1 1 100%; }
.shot img {
  display: block; width: 100%; height: auto; border: 5px solid var(--ink); border-radius: 22px;
  background: var(--card); box-shadow: 0 14px 30px -16px rgba(21, 101, 192, .45);
}
.shot-wide img { max-width: 440px; border-radius: 12px; }
.shot figcaption { font-size: 14px; line-height: 1.35; color: var(--muted); }
.how-setup { display: grid; gap: 14px; }
.how-setup h3 { margin: 0; font-size: 18px; }
.how-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.how-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; max-width: 34em; }
.how-steps .step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); }
.how-steps .step-n + span { padding-top: 5px; }

/* Text pages: help, download, privacy, 404, agents */
.doc { display: grid; gap: 16px; align-content: start; }
.doc > p { margin: 0; max-width: 40em; }
.faq { margin: 0; max-width: 40em; }
.faq dt { margin-top: 16px; font-weight: 700; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.policy { max-width: 46em; }
.llms { margin: 0; padding: 16px; border-radius: 8px; background: var(--card); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding-block: 40px 8px; }
  .setup-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .agents-teaser { padding: 28px 32px; }
  .packs { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .pack-body { grid-template-columns: 1fr; justify-items: start; }
  .pack .poster { width: 150px; padding: 12px 10px 8px; }
  .pack .poster-title { font-size: 13px; }
  .pack .poster-cta { font-size: 11px; }
  .pack .qr { width: 96px; height: 96px; }
  .shots { flex-wrap: nowrap; justify-content: flex-start; gap: 32px; }
  .shot-phone { flex: 0 0 190px; max-width: none; }
  .shot-wide { flex: 0 1 480px; align-self: center; }
  .shot-wide img { max-width: none; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .addons .setup-grid { grid-template-columns: repeat(2, 1fr); }
}
