/* LuciMail personal pages (/p/<code>): the page a mailed piece's QR opens, made for one business.
   Mobile first. White + cool gray, near-black ink, the seller's accent from /p/<code>/theme.css (--brand*). No inline styles. */
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
/* headlines: one heavy cut for every weight a rule asks for (Ben picked Plus Jakarta Sans + Figtree, 2026-11-20) */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --page: #f4f5f7; --paper: #ffffff; --ink: #14161c; --ink-2: #474e5c; --muted: #5d6471; --line: #e4e7ec; --line-2: #d3d7de;
  --bad: #b3261e; --bad-soft: #fbe9e7; --warn-soft: #fff4dc;
  --brand: #0060f0; --brand-ink: #ffffff; --brand-text: #0060f0; --brand-soft: #edf3fe; --brand-edge: #b3cffa; --brand-dark: #004fc5;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Plus Jakarta Sans", "Figtree", -apple-system, sans-serif;   /* the display face (name kept for the existing rules) */
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 20px;
  /* the cover (the card's front): Paper until a style class (pp-s-midnight, pp-s-paper, pp-s-bold in pp-looks.css) says otherwise */
  --cv-bg: #ffffff; --cv-ink: var(--ink); --cv-mut: var(--ink-2); --cv-hl: var(--brand-text); --cv-glow: none; --cv-edge: var(--line);
  --cv-topline: var(--line); --cv-btn: var(--brand); --cv-btn-ink: var(--brand-ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.pp { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.pp a { color: var(--brand-text); }
.pp :focus-visible { outline: 3px solid var(--brand-edge); outline-offset: 2px; }
.pp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* preview banner (the seller's own team) */
.pp-preview { background: var(--warn-soft); border-bottom: 1px solid #f1d79a; color: #5e4300; font-size: 13.5px; text-align: center; padding: 8px 16px; }

/* top bar: the seller's brand, one action */
.pp-top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.pp-topin { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding-top: 10px; padding-bottom: 10px; }
.pp .pp-brand { display: flex; align-items: center; min-width: 0; text-decoration: none; color: var(--ink); }
.pp-logo { display: block; max-height: 38px; max-width: min(190px, 48vw); width: auto; height: auto; }
.pp-mark { max-height: 34px; margin-right: 10px; border-radius: 8px; }
.pp-wordmark { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* labels and type */
.pp-label { font: 600 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.pp-for { color: var(--brand-text); display: inline-flex; align-items: center; gap: 10px; }
.pp-for::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.pp-h1 { font: 400 35px/1.06 var(--serif); letter-spacing: -.028em; margin: 0 0 16px; text-wrap: balance; }
.pp-h1 em { font-style: normal; color: var(--brand-text); }
.pp-h2 { font: 400 26px/1.06 var(--serif); letter-spacing: -.028em; margin: 0 0 10px; text-wrap: balance; }
.pp-sub { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; max-width: 40em; }
.pp-meta { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--muted); margin: 0; }
.pp-lede { color: var(--ink-2); margin: 0 0 18px; max-width: 42em; }
.pp-fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* layout (landing templates, landing.py): the top of the page is the card's front, a full-width cover band in the card's style
   (--cv-*, static/pp-looks.css) with who it's for and the headline; under it, the card's back on a light page. One column on
   phones in page order. On wide screens a "duo" page moves the offer card to a second column that rises into the cover and
   stays in view; a "solo" page (Claim the offer, Quick reply) keeps one centered column. Row gaps are margins so missing sections
   leave no holes. */
.pp-grid { display: flex; flex-direction: column; gap: 22px; padding-bottom: 48px; }
.pp-grid > * { margin-left: max(16px, env(safe-area-inset-left)); margin-right: max(16px, env(safe-area-inset-right)); min-width: 0; }
.pp-band { display: none; }
.pp-grid > .pp-hero { margin: 0; padding: 30px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));
  background: var(--cv-glow), var(--cv-bg); color: var(--cv-ink); border-bottom: 1px solid var(--cv-edge); }
.pp-side { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) {
  .pp-grid { display: grid; grid-template-columns: minmax(16px, 1fr) minmax(0, 672px) 56px 360px minmax(16px, 1fr);
    column-gap: 0; row-gap: 0; align-items: start; padding-bottom: 40px; }
  .pp-grid.pp-solo { grid-template-columns: minmax(16px, 1fr) minmax(0, 760px) minmax(16px, 1fr); }
  .pp-grid > * { grid-column: 2; margin: 0 0 32px; }
  .pp-grid > .pp-band { display: block; grid-column: 1 / -1; grid-row: 1; align-self: stretch; margin: 0 0 48px;
    background: var(--cv-glow), var(--cv-bg); border-bottom: 1px solid var(--cv-edge); }
  .pp-grid > .pp-hero { grid-row: 1; padding: 64px 0 56px; margin: 0 0 48px; background: none; border: 0; }
  .pp-grid > .pp-side { grid-column: 4; grid-row: 1 / span 9; position: sticky; top: 86px; margin-top: 64px; }
  .pp-h1 { font-size: 72px; line-height: .98; }
  .pp-h2 { font-size: 40px; }
  .pp-sub { font-size: 20px; }
}

/* cards */
.pp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 36px rgba(16, 24, 40, .05); }
@media (min-width: 600px) { .pp-card { padding: 30px; } }

/* the offer and the actions */
.pp-offercard { position: relative; overflow: hidden; }
.pp-offercard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--brand); }
.pp-offer { font: 700 21px/1.3 var(--sans); letter-spacing: 0; margin: 0 0 20px; color: var(--ink); }
.pp-actions { display: grid; gap: 10px; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink) !important; font: 600 15.5px var(--sans); text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s; -webkit-tap-highlight-color: transparent; }
.pp-btn:hover { border-color: var(--brand-edge); background: var(--brand-soft); }
.pp-btn:active { transform: translateY(1px); }
.pp-btn-primary { background: var(--btn-bg, var(--brand)); border-color: var(--btn-bg, var(--brand)); color: var(--btn-ink, var(--brand-ink)) !important; }
.pp-btn-primary:hover { background: var(--btn-dark, var(--brand-dark)); border-color: var(--btn-dark, var(--brand-dark)); }
.pp-btn[disabled] { cursor: default; }
.pp-btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 10px; white-space: nowrap; flex: none; }
.pp-btn-wide { width: 100%; }
.pp-more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.pp-more::after { content: " \2192"; }
.pp-more:hover { text-decoration: underline; }
.pp-about { padding: 4px 8px; font-size: 14.5px; color: var(--ink-2); }
.pp-about p { margin: 0 0 6px; }
.pp-about .pp-label { margin-bottom: 8px; }
.pp-about a { font-weight: 600; text-decoration: none; }
.pp-addr { color: var(--muted); font-size: 14px; }

/* the note they got in the mail */
.pp-letter { font-size: 17px; line-height: 1.7; }
.pp-letter p { margin: 0 0 14px; max-width: 38em; }
.pp-greet { font: 700 21px/1.25 var(--sans); letter-spacing: 0; margin-bottom: 12px !important; }
.pp-letter ul { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; }
.pp-letter li { position: relative; padding-left: 22px; }
.pp-letter li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pp-sign { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.4; }
.pp-sign b { font: 700 19px/1.2 var(--sans); letter-spacing: 0; }
.pp-sign span { font-size: 14px; color: var(--muted); }
.pp-ps { margin: 16px 0 0 !important; color: var(--ink-2); }

/* what we noticed */
.pp-noticed { padding: 6px 0 0; }
.pp-facts { list-style: none; counter-reset: fact; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.pp-facts li { counter-increment: fact; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px 14px 58px; }
.pp-facts li::before { content: counter(fact); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text); font: 600 13px/28px var(--mono); text-align: center; }
.pp-facts p { margin: 0 0 8px; font-size: 16.5px; line-height: 1.5; }
.pp-src { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; text-decoration: none; max-width: 100%; }
.pp-chip { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); background: var(--brand-soft);
  border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.pp-srcurl { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pp-src:hover .pp-srcurl { color: var(--brand-text); text-decoration: underline; }
.pp-shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .10); }
.pp-shotbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f7f8fa; border-bottom: 1px solid var(--line); }
.pp-shotbar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d9df; flex: none; }
.pp-shotbar span { margin-left: 8px; flex: 1; min-width: 0; font: 500 13px var(--mono); color: var(--muted); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-shot img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; }
.pp-shot figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }

/* the reply form */
.pp-reply { scroll-margin-top: 84px; }
.pp-form { display: grid; gap: 14px; }
.pp-field { display: grid; gap: 6px; }
.pp-field > span { font-weight: 600; font-size: 14px; }
.pp-field i { font-style: normal; font-weight: 400; color: var(--muted); }
.pp-field input, .pp-field textarea { width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: #fbfbfc; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s, background .15s; }
.pp-field textarea { min-height: 116px; resize: vertical; }
.pp-field input:focus, .pp-field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.pp-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pp-error { background: var(--bad-soft); border: 1px solid #f0c4c0; color: var(--bad); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 16px; }
.pp-thanks .pp-label { color: var(--brand-text); }
.pp-thanks .pp-btn { margin-top: 4px; }

/* footer */
.pp-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 26px 0 max(30px, env(safe-area-inset-bottom)); text-align: center; }
.pp-foot p { margin: 0; }
.pp-foot p:first-child { font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp-foot a { color: var(--ink); text-decoration: none; }
.pp-foot a:hover { color: var(--brand-text); }

/* not found */
.pp-404 main { padding-top: 18vh; padding-bottom: 18vh; max-width: 640px; }

/* links.py: the "Visit <seller>" button (page_then_url) and the quieter "See more" link, both through /go/<code> */
.pp-visit { margin: 20px 0 0; }
.pp-visit .pp-btn { min-width: 220px; justify-content: center; }
.pp-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* optout.py: "Don't mail us again" on the page, and the /stop pages (choose, confirm, done) */
.pp-stop { background: transparent; border-style: dashed; }
.pp-stop .pp-btn { justify-self: start; }
.pp-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-choice { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; }
.pp-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pp-choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.pp-choice span { display: grid; gap: 2px; }
.pp-choice b { font-weight: 600; font-size: 16px; }
.pp-choice i { font-style: normal; font-size: 14px; color: var(--muted); }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-stopwrap { max-width: 640px; padding-top: 7vh; padding-bottom: 9vh; }
.pp-stopwrap .pp-form { margin-top: 6px; }
.pp-stopwrap .pp-btn { justify-self: start; min-width: 200px; }
.pp-codeform input { text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); }
.pp-foot .pp-fine a { color: var(--muted); text-decoration: underline; }
