/* RestockThat by ZeroLoop Studios. Design v3: fewer words, one action per screen. */

:root {
  --ink: #0f1b14;
  --muted: #5f6f63;
  --faint: #8a978d;
  --line: #e2eae2;
  --bg: #fbfcfa;
  --surface: #ffffff;
  --wash: #f1f6f1;
  --brand: #0d7a3f;
  --brand-deep: #095c30;
  --brand-wash: #e7f4ec;
  --brand-glow: rgba(13, 122, 63, 0.14);
  --danger: #c0392b;
  --amber-bg: #fff6e6;
  --amber-line: #f0c979;
  --amber-ink: #7a4a00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 20, 0.04), 0 10px 30px rgba(15, 27, 20, 0.07);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
}
main { flex: 1; }

h1, h2 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
h1 { font-size: 1.85rem; font-weight: 700; text-wrap: balance; }
main > h1 { margin-bottom: 1.25rem; }
h2 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
.muted { color: var(--muted); }
.label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.hidden { display: none; }
.inline { display: inline; margin: 0; }

/* --- Nav and footer --- */
.nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav-inner, .sitefooter-inner {
  max-width: 1040px; margin: 0 auto; padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.navlink { color: var(--ink); font-weight: 600; text-decoration: none; }
.navlink:hover { color: var(--brand-deep); }
.who { color: var(--muted); font-size: 0.85rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.linkbtn:hover { color: var(--ink); }
.linkbtn.danger { color: var(--danger); }
.sitefooter { color: var(--faint); font-size: 0.82rem; }
.sitefooter a { color: var(--muted); text-decoration: none; }
.sitefooter a:hover { color: var(--brand-deep); }
.sitefooter-inner { justify-content: space-between; padding-top: 2rem; padding-bottom: 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.15rem;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: var(--radius-sm); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .linkbtn:focus-visible, .tick:focus-visible, a:focus-visible {
  outline: 3px solid var(--brand-glow); outline-offset: 2px;
}
.btn.big { min-height: 56px; padding: 0 2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn.block { width: 100%; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--wash); border-color: var(--line); color: var(--ink); }

/* --- Page --- */
.page { width: 100%; max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.page.wide { max-width: 1040px; }
.page.narrow { max-width: 420px; }
.crumb { margin: 0 0 0.5rem; font-size: 0.9rem; }
.crumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--brand-deep); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.head-actions { display: flex; gap: 0.5rem; }
.subhead { display: flex; align-items: baseline; justify-content: space-between; margin: 2.5rem 0 0.75rem; }
.count {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  min-width: 2rem; height: 2rem; padding: 0 0.6rem; margin-left: 0.35rem;
  border-radius: 999px; background: var(--brand-wash); color: var(--brand-deep);
  font-size: 1rem; font-weight: 700;
}
.flash {
  background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink);
  padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.95rem; margin: 1rem 0;
}
.empty {
  color: var(--muted); text-align: center; padding: 2.5rem 1rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius); margin: 1rem 0;
}

/* --- Forms --- */
input {
  width: 100%; min-height: 46px; padding: 0 0.9rem;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
input::placeholder { color: var(--faint); }
.form { margin-top: 1.5rem; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.form input { margin-top: 0.35rem; font-weight: 400; }
.form .btn { margin-top: 0.5rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0.75rem 0 0; }
.addbar { display: flex; gap: 0.5rem; margin: 1.25rem 0; }
.addbar input { flex: 2; }
.addbar .addbar-note { flex: 1.3; }
.addbar .btn { flex: none; }

/* --- Auth --- */
.auth { padding-top: 3rem; }
.auth h1 { margin-bottom: 0.4rem; }
.auth-alt { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }

/* --- Rows (offices, items, list) --- */
.rows { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; min-height: 60px; }
.rows > li + li, .rows > .row + .row { border-top: 1px solid var(--line); }
.row.link { text-decoration: none; color: var(--ink); }
.row.link:hover { background: var(--wash); }
.row-main { flex: 1; min-width: 0; }
.row-main strong { font-weight: 600; }
.row-main .sub { display: block; color: var(--muted); font-size: 0.85rem; }
.chev { color: var(--faint); font-size: 1.5rem; line-height: 1; }
.num { width: 3.5rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.row-actions { width: 7.5rem; display: flex; justify-content: flex-end; gap: 1rem; font-size: 0.9rem; font-weight: 600; }
.row-actions a { text-decoration: none; }
.rows-head { min-height: 0; padding-top: 0.6rem; padding-bottom: 0.6rem; background: var(--wash); color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rows-head .num { font-weight: 700; }
.when { color: var(--faint); font-size: 0.82rem; white-space: nowrap; }
.tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); cursor: pointer; padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tick:hover { border-color: var(--brand); background: var(--brand-wash); }
.tick.on { display: inline-block; border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.row.done .row-main strong { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.copymsg { min-height: 1.2rem; margin: -0.75rem 0 0.5rem; color: var(--brand-deep); font-size: 0.9rem; font-weight: 600; }

/* --- Landing --- */
.hero { text-align: center; padding: 4.5rem 0 3.5rem; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1rem; }
.hero .lede { font-size: 1.2rem; color: var(--muted); margin: 0 auto 2rem; max-width: 34rem; text-wrap: balance; }
.hero .fine { margin-top: 0.9rem; color: var(--faint); font-size: 0.9rem; }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0 0 3rem; }
.flow-step { margin: 0; }
.flow-card {
  height: 250px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.flow-step figcaption { text-align: center; color: var(--muted); margin-top: 0.9rem; font-size: 0.95rem; }
.flow-step figcaption b { color: var(--ink); }

.sticker-demo { background: var(--wash); }
.sticker-demo .demo-qr {
  width: 128px; height: 128px; padding: 10px; background: #fff; border-radius: 12px;
  border: 2px dashed #b9c4bc; transform: rotate(-3deg);
}
.sticker-demo-name { font-family: var(--font-display); font-weight: 700; margin-top: 0.9rem; }

.phone-demo { gap: 0.4rem; background: var(--surface); }
.phone-demo-item { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.phone-demo-btn {
  margin-top: 1rem; width: 100%; max-width: 200px; text-align: center;
  background: var(--brand); color: #fff; font-weight: 600; border-radius: 12px; padding: 0.8rem;
  box-shadow: 0 6px 18px var(--brand-glow);
}

.list-demo { align-items: stretch; justify-content: center; gap: 0.15rem; }
.list-demo .label { margin-bottom: 0.5rem; }
.list-demo-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.list-demo-row i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.list-demo-row em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 0.8rem; font-weight: 500; }
.list-demo-row:first-of-type em { color: var(--brand); font-weight: 700; }

.facts { list-style: none; padding: 0; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem 1.75rem; color: var(--muted); font-size: 0.95rem; }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 0.55rem; vertical-align: middle; }

/* --- Tap flow (the core moment) --- */
.tap { text-align: center; padding: 18vh 0 2rem; }
.tap h1 { font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 800; letter-spacing: -0.035em; margin: 0.6rem 0 0.5rem; overflow-wrap: anywhere; }
.tap .muted { font-size: 1.05rem; }
.tap form { margin-top: 2.5rem; }
.tap .btn.big { min-height: 64px; font-size: 1.2rem; box-shadow: 0 10px 24px var(--brand-glow); }
.done-check {
  display: inline-flex; width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand); color: #fff; padding: 20px; margin-bottom: 1rem;
  box-shadow: 0 10px 24px var(--brand-glow);
  animation: pop 0.35s cubic-bezier(.2, 1.4, .4, 1) both;
}
.done-check svg { width: 100%; height: 100%; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .done-check { animation: none; } }
.tap-brand {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  color: var(--faint); font-size: 0.8rem; font-weight: 600; margin-top: 3rem;
}
.tap-brand .brand-mark { width: 16px; height: 16px; }

/* --- Sticker sheet --- */
.stickersheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.sticker {
  background: #fff; border: 2px dashed #b9c4bc; border-radius: 16px;
  padding: 1.25rem 1rem 1rem; text-align: center; break-inside: avoid;
}
.sticker img { width: 100%; max-width: 180px; height: auto; display: block; margin: 0 auto; }
.sticker-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 0.6rem 0 0.1rem; }
.sticker-hint { color: var(--muted); font-size: 0.8rem; margin: 0; }

@media print {
  .noprint, .nav, .sitefooter { display: none !important; }
  body { background: #fff; }
  .page { max-width: none; padding: 0; }
  .sticker { border-color: #000; }
}

/* --- Small screens --- */
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .flow-card { height: 220px; }
  .hero { padding: 3rem 0 2.5rem; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .who { display: none; }
  .who-m { display: inline; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .addbar { flex-wrap: wrap; }
  .addbar input, .addbar .addbar-note { flex: 1 1 100%; }
  .addbar .btn { flex: 1 1 100%; }
  .items .row { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .items .row-main { flex: 1 1 100%; }
  .items .num { width: auto; text-align: left; color: var(--muted); font-weight: 500; font-size: 0.85rem; }
  .items .row:not(.rows-head) .num:nth-of-type(2)::before { content: "Scans "; }
  .items .row:not(.rows-head) .num:nth-of-type(3)::before { content: "Adds "; }
  .items .rows-head { display: none; }
  .items .row-actions { width: auto; margin-left: auto; }
}

/* --- NFC tag add-on --- */
.nfc-mark { width: 28px; height: 28px; flex: none; color: var(--brand); }
.addon {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: fit-content; max-width: 100%; margin: 1.75rem auto 0; padding: 0.6rem 1.1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 0.95rem;
}
.addon .nfc-mark { width: 22px; height: 22px; }
.addon b { color: var(--ink); font-weight: 600; }
.nfc {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; padding: 1.1rem 1.25rem;
  background: var(--brand-wash); border-radius: var(--radius);
}
.nfc-main { flex: 1; min-width: 0; }
.nfc-main .sub { display: block; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) {
  .addon { border-radius: var(--radius); text-align: left; }
  .nfc { flex-wrap: wrap; }
  .nfc form, .nfc .btn { width: 100%; }
}

/* --- Billing --- */
.planbar {
  background: var(--brand-wash); color: var(--brand-deep); text-align: center;
  font-size: 0.88rem; font-weight: 600; padding: 0.5rem 1rem;
}
.planbar a { margin-left: 0.5rem; }
.planbar.warn { background: var(--amber-bg); color: var(--amber-ink); }
.planbar.warn a { color: var(--amber-ink); }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-top: 1.5rem; box-shadow: var(--shadow);
}
.plan .label { margin-bottom: 0.35rem; }
.plan-big { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.plan form { margin-top: 1.25rem; }
.warn-text { color: var(--amber-ink); }
.flash.ok { background: var(--brand-wash); border-color: #bfe2cc; color: var(--brand-deep); }
.center { text-align: center; }
.small-link { margin-top: 1.25rem; font-size: 0.9rem; }
.small-link form { display: inline; }

/* --- Landing: no-app line, manager steps, FAQ --- */
.noapp { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: -1rem 0 1.75rem; font-weight: 600; font-size: 0.95rem; color: var(--brand-deep); }
.noapp span::before { content: "\2713"; margin-right: 0.4rem; }
.phone-demo-note { margin-top: 0.6rem; font-size: 0.78rem; color: var(--faint); }
.manager, .faq { max-width: 860px; margin: 4.5rem auto 0; }
.manager h2, .faq h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); text-align: center; margin-bottom: 0.5rem; }
.section-lede { text-align: center; color: var(--muted); margin-bottom: 1.75rem; }
.steps { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.steps b { font-family: var(--font-display); font-size: 1.05rem; }
.steps li > span:last-child { color: var(--muted); font-size: 0.95rem; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 0.5rem;
  border-radius: 50%; background: var(--brand-wash); color: var(--brand-deep); font-weight: 700; font-size: 0.9rem;
}
.faq { max-width: 680px; }
.faq h2 { margin-bottom: 1.25rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.95rem 1.15rem; margin-bottom: 0.6rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0.6rem 0 0; }
.faq + .facts { margin-top: 3rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .manager, .faq { margin-top: 3.5rem; }
}

/* --- Legal pages and footer links --- */
.legal { max-width: 680px; }
.legal h1 { margin-bottom: 0.4rem; }
.legal h2 { margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.footlinks { display: flex; gap: 1rem; }
@media (max-width: 560px) { .sitefooter-inner { flex-wrap: wrap; gap: 0.5rem 1rem; } }
.danger-zone { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.danger-zone .hint { margin: 0; }

/* --- NFC tag setup --- */
select {
  width: 100%; min-height: 46px; padding: 0 0.75rem; margin-top: 0.35rem;
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.tag-move { margin-top: 1.5rem; font-size: 0.9rem; }
.muted-check { background: var(--wash); color: var(--brand); box-shadow: none; padding: 22px; }
.muted-check .nfc-mark { width: 100%; height: 100%; }
.tagpill {
  display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem; border-radius: 999px;
  background: var(--brand-wash); color: var(--brand-deep); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle;
}

/* --- Notifications --- */
.alertsline { margin: -0.75rem 0 0.25rem; font-size: 0.9rem; }
.alertsline a { color: var(--muted); text-decoration: none; font-weight: 600; }
.alertsline a::before { content: "\1F514"; margin-right: 0.35rem; font-size: 0.85rem; }
.alertsline a:hover { color: var(--brand-deep); }
.choices { border: 0; padding: 0; margin: 0 0 1.25rem; }
.choices legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.choice {
  display: flex !important; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 0.9rem; margin: 0 0 0.5rem !important;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 400 !important;
}
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.choice input { width: auto; min-height: 0; margin: 0.25rem 0 0; accent-color: var(--brand); }
.choice .sub { display: block; color: var(--muted); font-size: 0.85rem; }
.inline-test { margin-top: 0.75rem; }
.howto { margin-top: 2.5rem; }
.howto h2 { margin-bottom: 0.75rem; }
.howto details { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.howto summary { font-weight: 600; cursor: pointer; }
.howto details p { color: var(--muted); margin: 0.5rem 0 0; font-size: 0.92rem; }

/* --- Sticker paper choice and Avery label sheets --- */
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0 0 1.25rem; }
.seg { display: block; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.seg b { display: block; font-size: 0.95rem; }
.seg span { color: var(--muted); font-size: 0.8rem; }
.seg.on { border-color: var(--brand); background: var(--brand-wash); }
.label-pages { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.label-sheet {
  position: relative; width: 8.5in; height: 11in; flex: none; background: #fff;
  box-shadow: var(--shadow); transform-origin: top center;
}
.label-cell {
  position: absolute; display: flex; align-items: center; gap: 0.12in; padding: 0.08in 0.14in;
  outline: 1px dashed #c9d3cc; overflow: hidden;
}
.label-cell img { height: 100%; aspect-ratio: 1; flex: none; }
.label-cell.small img { height: 0.84in; }
.label-text { min-width: 0; display: flex; flex-direction: column; gap: 0.04in; }
.label-text b { font-family: var(--font-display); font-weight: 700; font-size: 18pt; line-height: 1.05; overflow-wrap: anywhere; }
.label-cell.small .label-text b { font-size: 10.5pt; }
.label-text span { color: #4a5a4f; font-size: 10pt; }
@media screen and (max-width: 900px) {
  .label-sheet { transform: scale(0.42); margin-bottom: calc(-11in * 0.58); }
}
@media print {
  .label-pages { display: block; gap: 0; }
  .label-sheet { box-shadow: none; transform: none; margin: 0; page-break-after: always; break-after: page; }
  .label-sheet:last-child { page-break-after: auto; break-after: auto; }
  .label-cell { outline: none; }
}
@media (max-width: 560px) { .segs { grid-template-columns: 1fr; } }

/* --- Co-managers --- */
.alertsline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.alertsline a.people::before { content: "\1F465"; margin-right: 0.35rem; font-size: 0.85rem; }

/* --- Landing v4: alert toast, icon steps, pricing card --- */
.list-demo { position: relative; }
.toast-demo {
  position: absolute; top: 14px; left: 50%; z-index: 1; width: max-content; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.8rem;
  background: var(--ink); color: #fff; border-radius: 12px; font-size: 0.8rem; line-height: 1.25;
  box-shadow: 0 10px 24px rgba(15, 27, 20, 0.22); transform: translateX(-50%) rotate(-1deg);
}
.toast-demo svg { width: 16px; height: 16px; flex: none; color: #8fe3b0; }
.toast-demo b { font-weight: 700; }
.list-demo { padding-top: 3.4rem; justify-content: flex-end; }
.list-demo .label { margin-top: 0; }
.step-n svg { width: 18px; height: 18px; }
.step-n { width: 36px; height: 36px; }
.pricing {
  max-width: 860px; margin: 4.5rem auto 0; padding: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.price-main h2 { font-size: 1.35rem; margin: 0.35rem 0 0.5rem; text-align: left; }
.price-num { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; vertical-align: -0.12em; margin-right: 0.15rem; }
.price-main .muted { margin-bottom: 1.25rem; }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.price-list li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.price-list svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.price-list .price-addon { color: var(--muted); font-weight: 400; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.price-list .price-addon .nfc-mark { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .flow-card.list-demo { height: auto; min-height: 220px; padding-top: 4rem; }
  .pricing { grid-template-columns: 1fr; padding: 1.5rem; margin-top: 3.5rem; }
}

/* --- NFC tags page --- */
.segs-2 { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
.no-webnfc-browser .webnfc-only { display: none !important; }
.has-webnfc .no-webnfc { display: none !important; }
html:not(.has-webnfc):not(.no-webnfc-browser) .webnfc-only { display: none; }
.nfc-items .row-actions.wide, .row-actions.wide { width: auto; align-items: center; }
.btn.small { min-height: 36px; padding: 0 0.9rem; font-size: 0.9rem; }
.item-status { display: block; margin-top: 0.15rem; }
.item-status .tagpill { margin-left: 0; }
.howto-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1rem 0; }
.howto-card summary { font-weight: 600; cursor: pointer; }
.howto-card ol { margin: 0.75rem 0 0.5rem; padding-left: 1.25rem; color: var(--ink); }
.howto-card li { margin-bottom: 0.35rem; }
.steps-tight { margin: 1rem 0 1.25rem; }
.next-tag { background: var(--brand-wash); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; text-align: left; }
.next-tag p { margin: 0.25rem 0 0; }
.nfc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.nfc-actions .byo { font-size: 0.85rem; font-weight: 600; }
.alertsline a.nfclink::before { content: "\1F4F6"; margin-right: 0.35rem; font-size: 0.85rem; }
@media (max-width: 560px) {
  .nfc-actions { align-items: stretch; width: 100%; text-align: center; }
  .nfc-items .row { flex-wrap: wrap; }
  .nfc-items .row-actions.wide { width: 100%; justify-content: flex-start; }
}
.steps-tight li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; padding: 0.85rem 1rem; }
.steps-tight .step-n { grid-row: span 2; margin: 0; width: 30px; height: 30px; }

/* --- Amazon buy links --- */
.buy {
  flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 0.75rem;
  border: 1px solid var(--line); border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--surface);
}
.buy:hover { border-color: var(--brand); color: var(--brand-deep); }
.shopbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.shopbar .hint { margin: 0; }
.disclosure { color: var(--faint); font-size: 0.8rem; margin-top: 1.25rem; }
.disclosure .linkbtn { font-size: 0.8rem; margin-left: 0.25rem; }
.hint-tight { margin: -0.6rem 0 1rem; }
.foot-disclosure { flex-basis: 100%; font-size: 0.75rem; }
@media (max-width: 560px) { .row:has(.buy) .when { display: none; } }

/* --- First-run checklist, account page, verify banner --- */
.setup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 0 0 1.25rem; box-shadow: var(--shadow); }
.setup-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.6rem; }
.setup-head span { color: var(--muted); font-size: 0.85rem; }
.setup-head form { margin-left: auto; }
.setup ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.setup li { display: flex; gap: 0.7rem; align-items: flex-start; }
.setup li .sub { display: block; color: var(--muted); font-size: 0.85rem; }
.setup li a { text-decoration: none; }
.setup-tick { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); }
.setup li.done .setup-tick { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='2.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.setup li.done b { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.acct { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.acct:first-of-type { border-top: 0; padding-top: 0; }
.acct .form { margin-top: 1rem; }
.warnpill { background: var(--amber-bg); color: var(--amber-ink); }
.danger-btn { background: var(--danger); border-color: var(--danger); }
.danger-btn:hover { background: #a93226; border-color: #a93226; }
.planbar.verify { background: var(--amber-bg); color: var(--amber-ink); }
.planbar.verify a { color: var(--amber-ink); }
a.who { text-decoration: none; }
.who-m { display: none; }
a.who:hover { color: var(--ink); }
.addbar select { flex: 2; margin-top: 0; }
.amazon-nfc { font-weight: 600; color: var(--brand-deep); }

input, select, textarea { font-size: 16px; } /* 16px+ stops iOS auto-zoom on focus */

/* --- App confirm modal (replaces native window.confirm) --- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(15, 27, 20, 0.55); }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 14px; padding: 1.5rem; width: 100%; max-width: 380px; box-shadow: 0 18px 50px rgba(15, 27, 20, 0.25); }
.modal-card h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.modal-card p { margin: 0; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.25rem; }
