/* Tidewright order flows: shared look. Mobile only, by design. */
@import url('fonts/fonts.css');
:root {
  --bg: #08090b; --surface: #111318; --raise: #191c22; --line: rgba(255, 255, 255, .11); --text: #f1efe9; --muted: #a0a4ad;
  --accent: #f2541b; --ok: #7fd1a3; --err: #ff8a6b; --r: 14px;
  --sans: 'Hanken Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif; --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #000; color: var(--text); font: 400 16px/1.45 var(--sans); overflow-x: clip; }
body { min-height: 100dvh; }
.phone { max-width: 430px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 34px; line-height: 1.05; } h2 { font-size: 27px; line-height: 1.1; }
p { margin: 0; } .muted { color: var(--muted); } .small { font-size: 13.5px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px; position: relative; z-index: 3; }
.brand { font: 600 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand svg { width: 20px; height: 12px; }
.brand, .tag { min-height: 44px; }
.tag { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 0 12px; border-radius: 99px; white-space: nowrap; }

.stage { position: relative; background: radial-gradient(120% 95% at 50% 32%, #1c2028 0%, #0b0c10 62%, #07080a 100%); overflow: hidden; }
.stage .hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); pointer-events: none; transition: opacity .4s; }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.stage .loading.off { display: none; }
.viewbtn { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(12, 13, 16, .72); border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; font-size: 12.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-height: 36px; }

.panel { padding: 18px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 14px 9px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-align: left; transition: border-color .15s, background .15s; }
.opt[aria-checked="true"] { border-color: var(--text); background: var(--raise); }
.opt .sw { width: 36px; height: 36px; border-radius: 50%; flex: none; border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .28); }
.opt .sw.txt { display: grid; place-items: center; font: 600 13px var(--sans); background: var(--raise); box-shadow: none; }
.opt .nm { flex: 1; min-width: 0; } .opt .nm b { font-weight: 500; display: block; } .opt .nm span { font-size: 13px; color: var(--muted); }
.opt .pr { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt[aria-checked="true"] .pr { color: var(--text); }
.opts.grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.opts.grid .opt { flex-direction: column; gap: 6px; padding: 10px 4px 8px; min-height: 84px; text-align: center; }
.opts.grid .opt .nm b { font-size: 12.5px; line-height: 1.2; } .opts.grid .opt .nm span, .opts.grid .opt .pr { display: none; }
.opts.grid .opt.paid .pr { display: block; font-size: 11.5px; }

.field textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-height: 84px; resize: none; font: 500 18px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.field textarea:focus { border-color: var(--text); outline: none; }
.field .count { display: flex; justify-content: space-between; margin-top: 6px; }
.err { color: var(--err); font-size: 13.5px; display: flex; gap: 6px; align-items: baseline; } .err[hidden] { display: none; }
.needs { outline: 1.5px solid var(--err); outline-offset: 6px; border-radius: 6px; }

.bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 9, 11, .92); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.total { flex: 1; min-width: 0; } .total b { display: block; font: 500 19px/1.1 var(--sans); font-variant-numeric: tabular-nums; } .total span { font-size: 12px; color: var(--muted); }
.btn { min-height: 48px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line); background: transparent; font-weight: 500; white-space: nowrap; }
.btn.pri { background: var(--text); color: #0b0c0e; border-color: var(--text); }
.btn.ghost { padding: 0 14px; }
.btn[disabled] { opacity: .45; }

.dots { display: flex; gap: 5px; } .dots i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); } .dots i.on { background: var(--text); } .dots i.done { background: var(--muted); }

.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 20; opacity: 0; transition: opacity .2s; }
.sheet { position: fixed; left: 50%; bottom: 0; width: min(100%, 430px); transform: translate(-50%, 100%); z-index: 21; background: var(--bg); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 82dvh; overflow-y: auto; transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 14px; }
.sheet.open { transform: translate(-50%, 0); } .sheet-bg.open { opacity: 1; }
.sheet.low { background: rgba(8, 9, 11, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-height: 60dvh; }
.sheet.low > .btn:last-child { position: sticky; bottom: 0; background: var(--bg); flex: none; }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 2px; flex: none; }
.sheet header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.x { width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; background: none; font-size: 22px; color: var(--muted); }

.rows { display: grid; } .row { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.row .k { width: 112px; flex: none; color: var(--muted); font-size: 13.5px; } .row .v { flex: 1; min-width: 0; } .row .p { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .v.miss { color: var(--err); } .row .ch { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; } .sum b { font: 500 24px var(--sans); font-variant-numeric: tabular-nums; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-size: 14px; color: var(--muted); }
.note b { color: var(--text); font-weight: 500; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
