/* Philly Fares - the ONLY stylesheet (web app + engine landing drafts).
   Section 1 = brand tokens from /workspace/merrystack-brand/phillyfares/tokens.css (v1, Nov 21, 2026), with the
   Google Fonts @import replaced by self-hosted @font-face (CSP 'self', no third-party requests).
   Section 2 = components. Layout/class names are stable; reskin by editing the tokens. */

/* ---------- 1. tokens ---------- */
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-var.ttf') format('truetype');
             font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dmmono-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dmmono-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
:root{
  --pf-blue:#1E4BFF; --pf-gold:#FFC72C; --pf-cream:#FFF6E5; --pf-night:#0E1430; --pf-brick:#F0452B; --pf-muted:#5B5F73;
  --pf-white:#FFFFFF;
  --pf-font-display:'Archivo','Arial Black',system-ui,sans-serif;
  --pf-display-stretch:125%; --pf-display-weight:900;
  --pf-font-body:'Archivo',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --pf-font-mono:'DM Mono',ui-monospace,'Courier New',monospace;
  --pf-track-price:-0.04em; --pf-track-head:-0.02em;
  --pf-fs-h1:clamp(30px,5vw,72px);
  --pf-fs-lead:clamp(15px,1.6vw,22px);
  --pf-fs-body:17px;
  --pf-fs-legal:13px;
  --pf-lh-tight:.98; --pf-lh-body:1.4;
  --pf-r-sm:8px; --pf-r-ticket:22px; --pf-r-lg:28px; --pf-r-pill:999px;
  --pf-shadow-ticket:0 10px 0 rgba(0,0,0,.12);
  --pf-shadow-cta:0 8px 0 rgba(0,0,0,.18);
  --pf-shadow-tape:0 6px 0 rgba(0,0,0,.15);
}

/* ---------- 2. components ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pf-cream); color: var(--pf-night); font-family: var(--pf-font-body);
       font-weight: 500; font-size: var(--pf-fs-body); line-height: var(--pf-lh-body); overflow-x: hidden; }
a { color: var(--pf-blue); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 14px 20px 24px; position: relative; }
.review { background: var(--pf-night); color: var(--pf-gold); text-align: center; padding: 6px; font: 500 12px var(--pf-font-mono); }

/* header */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand img { display: block; height: 36px; width: auto; }
.nav-links a { color: var(--pf-night); font-weight: 700; font-size: 16px; margin-left: 26px; text-decoration: none; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; margin-top: 34px; }
.hero-copy { position: relative; z-index: 1; }
.pill { display: inline-block; font: 500 14px var(--pf-font-mono); letter-spacing: 1.5px; text-transform: uppercase;
        background: var(--pf-brick); color: var(--pf-cream); padding: 8px 14px; border-radius: var(--pf-r-pill); margin: 0; }
.pill .short { display: none; }
h1 { font-family: var(--pf-font-display); font-weight: var(--pf-display-weight); font-stretch: var(--pf-display-stretch);
     text-transform: uppercase; font-size: var(--pf-fs-h1); line-height: var(--pf-lh-tight); letter-spacing: var(--pf-track-head);
     margin: 14px 0 0; }
h1 em { font-style: normal; color: var(--pf-blue); }
.sub { font-size: var(--pf-fs-lead); margin: 14px 0 0; max-width: 34em; }
.bags { font: 400 13px var(--pf-font-mono); color: var(--pf-muted); margin: 8px 0 0; }
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--pf-blue); color: var(--pf-cream);
       font-family: var(--pf-font-body); font-weight: 800; font-size: 22px; padding: 16px 30px; border-radius: var(--pf-r-pill);
       box-shadow: var(--pf-shadow-cta); text-decoration: none; border: 0; cursor: pointer; }
.price-line { font: 400 15px var(--pf-font-mono); line-height: 1.35; margin: 0; }
.legal { font: 400 var(--pf-fs-legal) var(--pf-font-mono); color: var(--pf-muted); margin: 16px 0 0; max-width: 40em; }

/* ticket cards (deal cards from the engine build) */
.hero-deals { position: relative; }
.hero-deals::before { content: ''; position: absolute; z-index: 0; width: 560px; height: 560px; border-radius: 50%;
                      background: var(--pf-gold); left: 50%; top: 50%; transform: translate(-42%, -50%); }
.cards { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--pf-white); border-radius: var(--pf-r-ticket); padding: 18px 24px; box-shadow: var(--pf-shadow-ticket);
        display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.card:nth-child(1) { transform: rotate(-1deg); } .card:nth-child(2) { transform: rotate(.8deg); } .card:nth-child(3) { transform: rotate(-.5deg); }
.tl { font: 400 13px var(--pf-font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: #6B6F80; }
.tn { font-weight: 600; font-size: 22px; line-height: 1.15; margin: 2px 0; }
.found { font: 500 12px var(--pf-font-mono); color: var(--pf-night); margin-top: 4px; }
.tr { text-align: right; flex: none; }
.tc { font-family: var(--pf-font-display); font-weight: 900; font-stretch: 125%; color: var(--pf-blue);
      font-size: 56px; line-height: .9; letter-spacing: var(--pf-track-price); }
.tc small { display: block; font: 400 11px var(--pf-font-mono); letter-spacing: 1px; color: var(--pf-muted); text-transform: uppercase; }
.tag { display: inline-block; background: var(--pf-brick); color: var(--pf-cream); font: 500 11px var(--pf-font-mono);
       text-transform: uppercase; padding: 3px 8px; border-radius: var(--pf-r-pill); margin-top: 6px; letter-spacing: .5px; }
.tier { display: inline-block; font: 500 10px var(--pf-font-mono); letter-spacing: 1px; text-transform: uppercase;
        padding: 2px 7px; border-radius: var(--pf-r-pill); margin-bottom: 4px; }
.t-blowout { background: var(--pf-brick); color: var(--pf-cream); }
.t-great { background: var(--pf-gold); color: var(--pf-night); }
.t-good { background: var(--pf-blue); color: var(--pf-cream); }
.fine { font: 400 12px var(--pf-font-mono); color: var(--pf-muted); position: relative; z-index: 1; }
.pin-notice { font: 500 13px var(--pf-font-mono); background: var(--pf-gold); color: var(--pf-night); display: inline-block;
              padding: 6px 10px; border-radius: var(--pf-r-sm); margin: 12px 0 0; }
.pin-notice[hidden] { display: none; }

/* signup */
.signup { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; margin-top: 56px; }
form { background: var(--pf-white); border-radius: var(--pf-r-lg); padding: 24px; box-shadow: var(--pf-shadow-ticket); }
form h2 { margin-top: 0; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=email] { width: 100%; padding: 14px; font: 500 17px var(--pf-font-body); border: 2px solid var(--pf-night);
                    border-radius: var(--pf-r-sm); background: var(--pf-cream); color: var(--pf-night); }
form .cta { width: 100%; margin-top: 14px; font-size: 20px; }
button[disabled] { opacity: .8; cursor: not-allowed; }
.form-price { text-align: center; margin-top: 10px; }
.offer { font-size: 15px; margin: 14px 0 4px; }
.safe { font-size: 14px; color: var(--pf-muted); margin: 4px 0 0; padding-left: 18px; }
.value { font-weight: 700; color: var(--pf-blue); margin: 12px 0 0; }
.error { color: var(--pf-brick); font-weight: 700; margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.phone { width: 270px; height: 540px; margin: 0 auto; border: 12px solid var(--pf-night); border-radius: 40px; overflow: hidden;
         background: var(--pf-white); box-shadow: var(--pf-shadow-ticket); }
.phone img { width: 100%; display: block; }

/* sections */
h2 { font-family: var(--pf-font-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
     font-size: clamp(22px, 2.6vw, 34px); letter-spacing: var(--pf-track-head); line-height: 1; margin: 48px 0 12px; }
.list { padding-left: 20px; } .list li { margin: 8px 0; }
.list .tier { margin: 0 6px 0 0; }
.draft { background: var(--pf-brick); color: var(--pf-cream); padding: 8px 12px; font: 500 13px var(--pf-font-mono); border-radius: var(--pf-r-sm); }
.footer { border-top: 3px dashed rgba(14,20,48,.18); margin-top: 48px; padding-top: 18px; font: 400 var(--pf-fs-legal) var(--pf-font-mono); color: var(--pf-muted); }
.footer img { height: 26px; width: auto; display: block; margin-bottom: 10px; }
.footer a { color: var(--pf-muted); }

/* mobile (390 mock) */
@media (max-width: 760px) {
  .wrap { padding: 12px 20px 20px; }
  .brand img { height: 28px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .pill { font-size: 11px; padding: 6px 11px; }
  .pill .long { display: none; } .pill .short { display: inline; }
  h1 { font-size: 28px; margin-top: 10px; }
  .sub { font-size: 15px; margin-top: 10px; }
  .bags { font-size: 12px; margin-top: 6px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
  .cta { font-size: 19px; padding: 14px 18px; width: 100%; }
  .price-line { font-size: 13px; text-align: center; }
  .legal { font-size: 12px; text-align: center; margin-top: 8px; }
  .hero-deals::before { width: 420px; height: 420px; transform: translate(-30%, -45%); }
  .cards { gap: 10px; margin: 0 6px; }
  .card { padding: 11px 15px; border-radius: 13px; }
  /* readability floor at 390px: card mono text >= 13px, footnote >= 12px (Ad Bot) */
  .card { flex-direction: column; align-items: stretch; gap: 6px; }
  .tl { font-size: 13px; letter-spacing: .6px; } .tn { font-size: 18px; } .found { font-size: 13px; }
  .tr { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .tc { font-size: 40px; } .tc small { font-size: 12px; display: inline; margin-left: 6px; }
  .tag { font-size: 12px; padding: 3px 8px; margin-top: 0; } .tier { font-size: 11px; }
  .signup { grid-template-columns: 1fr; margin-top: 36px; }
}
