/* Pickup check-in (ADR 040). Brand from the H-Marketing storefront (hmktg/app/globals.css) and admin portal:
   navy #1d283a, gold #c9a55e, ink #303743, Hanken Grotesk. Built for a phone held at the counter. */
@font-face { font-family: Hanken; src: url('HankenGrotesk.woff2') format('woff2'); font-display: swap; }
:root {
  --navy: #1d283a; --navy-2: #303e54; --gold: #c9a55e; --gold-ink: #8e6c30; --gold-wash: #f9f5e9;
  --ink: #303743; --muted: #626772; --line: #e0e2e5; --ground: #f7f8fa; --white: #fff; --error: #a42c2c;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font: 17px/1.5 Hanken, Arial, sans-serif; color: var(--ink); background: var(--navy);
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
[hidden] { display: none !important; }

.masthead { color: var(--white); padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 26px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.brand p { margin: 0; font-weight: 800; letter-spacing: 1px; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; margin-top: 5px; font-size: .6rem; letter-spacing: 2px; font-weight: 700; color: var(--gold); }
.masthead h1 { margin: 22px 0 16px; font-size: 1.9rem; line-height: 1.15; letter-spacing: -.5px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li { font-size: .72rem; font-weight: 650; color: #9aa3b2; border-top: 3px solid #3a475c; padding-top: 8px; }
.steps li span { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%;
  background: #3a475c; color: var(--white); font-size: .65rem; }
.steps li[aria-current="step"], .steps li.complete { color: var(--white); border-color: var(--gold); }
.steps li[aria-current="step"] span, .steps li.complete span { background: var(--gold); color: var(--navy); }

.sheet {
  flex: 1; display: flex; flex-direction: column; background: var(--white); border-radius: 22px 22px 0 0; padding: 26px 20px 20px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
}
.view { flex: 1; display: flex; flex-direction: column; }
h2 { margin: 0 0 6px; font-size: 1.45rem; color: var(--navy); line-height: 1.2; }
.lead { margin: 0 0 22px; color: var(--muted); }

label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.phone-field { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.phone-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 94, .25); }
.phone-field span { display: grid; place-items: center; padding: 0 14px; background: var(--ground); color: var(--muted); font-weight: 700; border-right: 2px solid var(--line); }
.phone-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 16px 14px; font-size: 1.4rem; letter-spacing: .5px; color: var(--navy); background: transparent; }
.phone-field input::placeholder { color: #b5bac3; }
.text-field { display: block; width: 100%; margin: 0 0 18px; border: 2px solid var(--line); border-radius: 12px; padding: 14px; font-size: 1.1rem; color: var(--navy); background: var(--white); }
.text-field:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 94, .25); }
.optional { font-weight: 500; color: var(--muted); }

.orders { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.orders label { display: flex; gap: 14px; align-items: center; margin: 0; padding: 16px; border: 2px solid var(--line); border-radius: 14px;
  font-weight: 600; color: var(--ink); background: var(--white); min-height: 64px; }
.orders label:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); }
.orders input { appearance: none; -webkit-appearance: none; flex: none; width: 28px; height: 28px; margin: 0; border: 2px solid #c3c7ce; border-radius: 8px; display: grid; place-items: center; background: var(--white); }
.orders input:checked { background: var(--navy); border-color: var(--navy); }
.orders input:checked::after { content: ''; width: 12px; height: 7px; border: solid var(--gold); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.orders input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.orders .key { display: block; margin-top: 2px; font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .3px; }

/* Actions sit at the bottom of the screen, within thumb reach and clear of the home indicator. */
.dock { position: sticky; bottom: 0; margin: auto -20px -20px; padding: 16px 20px calc(16px + var(--safe-bottom));
  background: linear-gradient(to top, var(--white) 75%, rgba(255, 255, 255, 0)); display: grid; gap: 6px; }
button { border: 0; border-radius: 12px; min-height: 56px; padding: 0 18px; font-weight: 700; font-size: 1.08rem; cursor: pointer; touch-action: manipulation; }
button.primary { background: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
button.primary:active { background: var(--navy-2); transform: translateY(1px); }
button.quiet { background: transparent; color: var(--gold-ink); min-height: 48px; font-weight: 600; font-size: .98rem; }
button:disabled { opacity: .55; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.icon { width: 64px; height: 64px; margin: 6px 0 18px; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.gold svg circle { fill: var(--navy); stroke: var(--navy); }
.icon.gold svg path { stroke: var(--gold); stroke-width: 2.4; }
.done { text-align: left; }

.message { margin: 0 0 18px; padding: 13px 15px; border-left: 4px solid var(--error); background: #fff1f1; color: var(--error); border-radius: 6px; font-weight: 600; font-size: .95rem; }

.foot { background: var(--white); color: var(--muted); text-align: center; font-size: .82rem; padding: 6px 20px calc(18px + var(--safe-bottom)); }
.foot span { color: #9aa0aa; font-size: .72rem; }

/* On a tablet or desktop, keep the phone-sized column rather than stretching it. */
@media (min-width: 560px) {
  body { align-items: center; padding: 24px; }
  .masthead, .sheet, .foot { width: 100%; max-width: 440px; }
  .foot { border-radius: 0 0 22px 22px; }
  .dock { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
