/* =========================================================================
   PFC — Paul's Fried Chicken · public site, ordering and tracking
   Direction: "Hot out the fryer, George Town at night." One warm key light,
   oxblood and cream from the sign, fry-gold where the crunch is.
   Motif: the red gingham liner from the bucket.
   ========================================================================= */
:root {
  --night: #120a08; --night-2: #1b100c; --night-3: #26160f;
  --ox: #7a1418; --red: #c8102e; --red-hi: #e8344a;
  --cream: #f7eedc; --cream-2: #eadcc2; --mute: rgba(247,238,220,.64); --faint: rgba(247,238,220,.38);
  --gold: #e8a23a; --gold-hi: #f6c66b; --aqua: #3bc9c1; --ok: #4cc38a;
  --line: rgba(247,238,220,.12);
  --gingham: repeating-linear-gradient(0deg, rgba(200,16,46,.55) 0 12px, transparent 12px 24px), repeating-linear-gradient(90deg, rgba(200,16,46,.55) 0 12px, rgba(247,238,220,.95) 12px 24px);
  --f-brand: 'Ultra', 'Rockwell Extra Bold', Georgia, serif;
  --f: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16,1,.3,1); --ease-io: cubic-bezier(.65,0,.35,1);
  --t-press: 120ms; --t-hover: 200ms; --t-panel: 320ms; --t-reveal: 650ms;
  --pad: clamp(16px, 4.5vw, 72px);
  --r: 22px;
  --sh: 0 30px 60px -30px rgba(0,0,0,.9), 0 10px 24px -12px rgba(0,0,0,.6);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color: var(--cream); -webkit-font-smoothing: antialiased; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--f); font-size: 16px; line-height: 1.55; background: var(--night); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--cream); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: var(--cream); color: var(--night); font-weight: 700; transform: translateY(-160%); transition: transform var(--t-panel) var(--ease); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- wordmark ---------- */
.mark { font-family: var(--f-brand); letter-spacing: .01em; color: var(--ox); -webkit-text-stroke: .045em var(--red); paint-order: stroke fill; text-shadow: 0 .06em 0 rgba(0,0,0,.35); line-height: .9; }
.mark--light { color: var(--cream); -webkit-text-stroke: .04em var(--red); }

/* ---------- buttons (pills) ---------- */
.btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 22px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; isolation: isolate;
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), background var(--t-hover), color var(--t-hover); }
.btn:active { transform: scale(.97); transition-duration: var(--t-press); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--red { color: #fff; background: linear-gradient(180deg, #e0263f 0%, var(--red) 55%, #a50d25 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -3px 8px rgba(80,0,10,.35) inset, 0 14px 30px -12px rgba(200,16,46,.7); }
.btn--red:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -3px 8px rgba(80,0,10,.35) inset, 0 18px 38px -12px rgba(232,52,74,.85); transform: translateY(-1px); }
.btn--cream { color: var(--night); background: var(--cream); box-shadow: 0 12px 30px -14px rgba(0,0,0,.9); }
.btn--cream:hover { background: #fff; }
.btn--ghost { color: var(--cream); background: rgba(247,238,220,.06); box-shadow: 0 0 0 1px var(--line) inset; }
.btn--ghost:hover { background: rgba(247,238,220,.12); box-shadow: 0 0 0 1px rgba(247,238,220,.3) inset; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- preview banner ---------- */
.preview { position: relative; z-index: 120; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: var(--gold); color: #2a1503; font-size: 13px; font-weight: 600; text-align: center; }
.preview b { font-weight: 800; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--pad);
  background: linear-gradient(180deg, rgba(18,10,8,.92), rgba(18,10,8,.75)); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand .mark { font-size: 30px; }
.nav__brand small { display: block; font: 600 10px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--mute); transition: color var(--t-hover), background var(--t-hover); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--cream); background: rgba(247,238,220,.08); }
.nav__cta { display: flex; gap: 8px; align-items: center; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mute); }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(76,195,138,.18); }
.status-dot.is-off i { background: var(--faint); box-shadow: none; }
@media (max-width: 520px) { .nav__acct { display: none; } }
@media (max-width: 860px) { .nav__links, .nav .status-dot { display: none; } .nav__brand .mark { font-size: 26px; } }

/* ---------- layout primitives ---------- */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); }
.h1 { margin: 0; font-weight: 800; font-size: clamp(44px, 8.4vw, 132px); line-height: .9; letter-spacing: -.035em; font-variation-settings: 'wdth' 85, 'opsz' 96; }
.h2 { margin: 0; font-weight: 800; font-size: clamp(36px, 5.4vw, 84px); line-height: .94; letter-spacing: -.03em; font-variation-settings: 'wdth' 85, 'opsz' 96; }
.h3 { margin: 0; font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -.01em; }
.lead { margin: 0; max-width: 54ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--mute); }
.money { font-family: var(--f-mono); font-weight: 600; font-feature-settings: 'tnum'; }
.draft { margin-left: 6px; padding: 2px 7px; border-radius: 999px; font: 600 9px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #2a1503; background: rgba(232,162,58,.85); vertical-align: middle; }
.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: inline-block; }

/* ---------- photo treatment: warm grade, one key light ---------- */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--night-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.06) brightness(.96); }
.photo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255,214,150,.18), transparent 55%), linear-gradient(180deg, transparent 55%, rgba(18,10,8,.55)); }
.gingham-edge { position: relative; }
.gingham-edge::before { content: ''; position: absolute; inset: -10px; z-index: -1; border-radius: calc(var(--r) + 10px); background: var(--gingham); opacity: .9; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--mute); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 14px; background: rgba(247,238,220,.06); box-shadow: 0 0 0 1px var(--line) inset; color: var(--cream); outline: none;
  transition: box-shadow var(--t-hover), background var(--t-hover); appearance: none; }
.textarea { min-height: 92px; resize: vertical; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: var(--night-2); }
.input:focus, .select:focus, .textarea:focus { background: rgba(247,238,220,.09); box-shadow: 0 0 0 1px var(--gold) inset, 0 0 0 4px rgba(232,162,58,.18); }
.input[aria-invalid=true] { box-shadow: 0 0 0 1px var(--red-hi) inset; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(247,238,220,.06); box-shadow: 0 0 0 1px var(--line) inset; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--mute); cursor: pointer; transition: all var(--t-hover); text-align: center; }
.seg input:checked + span { color: #fff; background: var(--red); box-shadow: 0 8px 20px -10px rgba(200,16,46,.8); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(247,238,220,.06); box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer; transition: all var(--t-hover); }
.chip input:checked + span { color: var(--night); background: var(--gold-hi); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--gold-hi); }
.msg.is-err { color: #ff9aa6; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 140%); padding: 14px 20px; border-radius: 999px; background: var(--cream); color: var(--night); font-weight: 700; box-shadow: var(--sh); transition: transform var(--t-panel) var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast.is-err { background: #ffd9de; }

/* ---------- footer ---------- */
.foot { padding: 64px var(--pad) 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--night), #0b0605); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .mark { font-size: 64px; }
.foot p, .foot a { color: var(--mute); font-size: 14px; }
.foot a { display: block; padding: 3px 0; text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot h4 { margin: 0 0 10px; font: 600 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cream); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
