/* Ironhand demo pages: the links Ironhand sends by text.
   Theme copied from the Ironhand field app (~/ironhand/secondironhand: tailwind.config.js, src/index.css):
   charcoal #0a0a0d, iron #e6622e, Space Grotesk for display, Inter for text, glass cards. Dark only, like the app. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --iron: #e6622e; --iron-bright: #ff7d3f; --iron-deep: #c14d1f; --iron-50: #fff1ea;
  --c900: #0a0a0d; --c800: #101013; --c700: #16161b; --c600: #1c1c22; --c500: #26262d;
  --ink: #fff; --ink-2: rgba(255,255,255,.72); --ink-3: rgba(255,255,255,.5); --line: rgba(255,255,255,.08);
  --ok: #3ecf8e; --warn: #f5b942; --bad: #ff5d5d; --info: #6aa8ff;
  --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--c900); color: var(--ink); }
body {
  font: 400 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(230,98,46,.16), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(230,98,46,.07), transparent 60%),
    var(--c900);
}
a { color: var(--iron-bright); }
.wrap { max-width: 480px; margin: 0 auto; padding: 16px 16px 48px; }
.wrap.wide { max-width: 880px; }
.disp, h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; }
h1 { font-size: 26px; line-height: 1.15; margin: 6px 0 4px; font-weight: 700; }
h2 { font-size: 17px; margin: 0 0 10px; font-weight: 600; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); font-size: 13px; }

/* Top bar: brand on the left, context on the right */
.top { display: flex; align-items: center; gap: 10px; padding: 6px 0 14px; }
.top .logo { width: 30px; height: 30px; flex: none; }
.top .who { font: 600 15px/1.1 "Space Grotesk", sans-serif; }
.top .who small { display: block; font: 500 11px/1.3 Inter, sans-serif; color: var(--ink-3); letter-spacing: .02em; text-transform: uppercase; }
.top .sp { flex: 1; }
.shopmark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #2b5aa8, #1d3f78); font: 700 14px/1 "Space Grotesk", sans-serif; }

.demo-flag { font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--iron-bright);
  border: 1px solid rgba(230,98,46,.35); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }

/* Cards */
.card { border-radius: var(--r); padding: 16px; margin: 0 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35); }
.card.iron { background: linear-gradient(180deg, rgba(230,98,46,.12), rgba(230,98,46,.02)); border-color: rgba(230,98,46,.25); }
.eyebrow { font: 600 11px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.big { font: 700 34px/1 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.row { display: flex; align-items: center; gap: 10px; }
.row .sp { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2.stack { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }

/* Line items */
.items { width: 100%; border-collapse: collapse; font-size: 14px; }
.items td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.items td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }
.items tr.tot td { font-weight: 700; font-size: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.items small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* Pills and chips */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 Inter, sans-serif; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(62,207,142,.3); background: rgba(62,207,142,.08); }
.pill.warn { color: var(--warn); border-color: rgba(245,185,66,.3); background: rgba(245,185,66,.08); }
.pill.bad { color: var(--bad); border-color: rgba(255,93,93,.3); background: rgba(255,93,93,.08); }
.pill.iron { color: var(--iron-bright); border-color: rgba(230,98,46,.35); background: rgba(230,98,46,.1); }
.pill.human { color: #ffd479; border-color: rgba(255,212,121,.35); background: rgba(255,212,121,.08); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: 600 16px/1 Inter, sans-serif; color: #fff; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(180deg, var(--iron-bright), var(--iron) 55%, var(--iron-deep));
  box-shadow: 0 8px 32px -4px rgba(230,98,46,.45), 0 0 0 1px rgba(230,98,46,.2), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s ease, filter .12s ease; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn.small { width: auto; padding: 10px 14px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btns { display: grid; gap: 10px; margin-top: 12px; }

/* Choice tiles (dates, suppliers) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { appearance: none; cursor: pointer; text-align: center; padding: 12px 6px; border-radius: 13px; color: var(--ink);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); font: 500 13px/1.3 Inter, sans-serif; }
.choice b { display: block; font: 700 18px/1.2 "Space Grotesk", sans-serif; }
.choice[aria-pressed="true"] { border-color: var(--iron); background: rgba(230,98,46,.14); box-shadow: 0 0 0 1px var(--iron) inset; }
.choice[disabled] { opacity: .35; cursor: default; text-decoration: line-through; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 16px 26px; font-size: 14px; }
.tl li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--c500); box-shadow: 0 0 0 3px var(--c900); }
.tl li::after { content: ""; position: absolute; left: 10px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.done::before { background: var(--ok); }
.tl li.now::before { background: var(--iron); box-shadow: 0 0 0 3px var(--c900), 0 0 0 6px rgba(230,98,46,.3); }
.tl li b { display: block; }
.tl li span { color: var(--ink-3); font-size: 13px; }

/* Who touched it: the human-in-the-loop stamp */
.stamp { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 12px; border-radius: 13px;
  background: rgba(255,212,121,.06); border: 1px solid rgba(255,212,121,.2); color: var(--ink-2); }
.av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 12px/1 Inter, sans-serif; color: #1a1300; background: #ffd479; }
.av.agent { background: var(--iron); color: #fff; }
.av.shop { background: #2b5aa8; color: #fff; }

/* Checklist */
.check { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--iron); flex: none; }
.check small { display: block; color: var(--ink-3); font-size: 12.5px; }
.check.got span { color: var(--ink-3); text-decoration: line-through; }

.foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 22px; }
.foot svg { width: 14px; height: 14px; vertical-align: -2px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; transition: .25s ease; z-index: 9;
  background: var(--c600); border: 1px solid var(--line); padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.hide { display: none !important; }
.map { height: 120px; border-radius: 13px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.07) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 60%, rgba(255,255,255,.06) 60% 64%, transparent 64%),
    linear-gradient(120deg, transparent 30%, rgba(255,255,255,.05) 30% 33%, transparent 33%),
    #15161b; }
.map::after { content: ""; position: absolute; left: 50%; top: 42%; width: 16px; height: 16px; margin: -8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--iron); box-shadow: 0 0 0 4px rgba(230,98,46,.25); }
.ph { border-radius: 12px; background: #1d1e24 center/cover; border: 1px solid var(--line); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; padding: 8px; }
