@font-face {
  font-family: Instrument Sans;
  src: url(/fonts/instrument-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Bricolage Grotesque;
  src: url(/fonts/bricolage-grotesque.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #071e28;
  --muted: #47606a;
  --light: #eff5f1;
  --line: #d9e4df;
  --paper: #f8faf7;
  --accent: #00ddcb;
  --dark: #071e28;
  --lime: #d8f3a8;
  --heading: "Bricolage Grotesque", system-ui, sans-serif;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(3rem, 6.2vw, 6.15rem);
  line-height: 0.96;
}
h2 {
  font-size: clamp(2.1rem, 3.8vw, 4rem);
  line-height: 1;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.15;
}
p {
  line-height: 1.55;
}
:focus-visible {
  outline: 3px solid #0a806f;
  outline-offset: 4px;
}
#main:focus {
  outline: none;
}
:where(button, a[href], summary, label.check) {
  touch-action: manipulation;
}
.skip {
  position: fixed;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 20;
}
.skip:focus {
  top: 0;
}
.top,
main,
.foot {
  width: min(100% - 2 * clamp(19px, 5vw, 72px), 1320px);
  margin-inline: auto;
}
.top,
.foot {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.top {
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 1.48rem;
  letter-spacing: -0.055em;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  border-radius: 11px;
}
.brand-dot {
  color: #007d73;
}
.brand strong {
  font-weight: 550;
  margin-left: 5px;
}
.top nav,
.actions,
.toolbar,
.formfoot {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.top nav {
  gap: clamp(10px, 3vw, 32px);
}
.top nav a {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
}
.top .navbtn {
  border: 1px solid #a9bfc0;
  border-radius: 99px;
  padding: 10px 16px;
}
.button,
button:not(.text-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font: inherit;
  font-weight: 690;
  color: white;
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 17px;
  cursor: pointer;
  transition:
    background-color 0.17s ease,
    color 0.17s ease,
    border-color 0.17s ease,
    transform 0.17s ease;
}
.button:hover,
button:not(.text-link):hover {
  background: #1b4850;
}
.button:active,
button:not(.text-link):active {
  transform: translateY(1px);
}
.button.light,
button.light,
button.ghost {
  background: white;
  color: var(--ink);
  border-color: #aabfba;
}
.button.light:hover,
button.light:hover,
button.ghost:hover {
  background: #e9f4ee;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.text-link {
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 660;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px;
  cursor: pointer;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 84px);
  align-items: center;
  padding: clamp(45px, 8vw, 110px) 0;
}
.hero h1 {
  margin: 20px 0 24px;
  letter-spacing: -0.072em;
  text-wrap: balance;
}
.hero h1 em {
  display: block;
  color: #077569;
  font-style: normal;
}
.hero p,
.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.55;
}
.hero .actions {
  margin-top: 23px;
}
.hero .button,
.conversion .button {
  background: var(--accent);
  color: #061f25;
  border-color: transparent;
  min-height: 51px;
  padding-inline: 23px;
}
.hero .button:hover,
.conversion .button:hover {
  background: #b3f4e8;
}
.eyebrow,
.pill,
.kicker {
  font-weight: 710;
}
.eyebrow,
.pill {
  background: #e2f5eb;
  border-radius: 100px;
  display: inline-flex;
  padding: 6px 12px;
  font-size: 0.79rem;
  color: #13594f;
}
.kicker {
  font-size: 0.77rem;
  letter-spacing: 0.11em;
  color: #087067;
}
.hero-show {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 458px;
  background: #0a2631;
  color: white;
  border-radius: 26px;
  padding: clamp(19px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.show-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#a4f3e517 1px, transparent 1px),
    linear-gradient(90deg, #a4f3e517 1px, transparent 1px);
  background-size: 36px 36px;
}
.show-caption {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 6px;
  color: #cae4e3;
  font-size: 0.78rem;
}
.show-caption span:first-child {
  font-weight: 680;
  letter-spacing: 0.1em;
}
.hero-card {
  align-self: center;
  width: min(100%, 385px);
  transform: rotate(-6deg);
  margin: 32px 0 20px;
}
.hero-card .paper {
  box-shadow: 10px 20px 0 #08202a;
  transition: transform 0.24s ease;
}
.hero-card:hover .paper {
  transform: rotate(4deg);
}
.show-event {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 14px;
  z-index: 1;
  font-size: 0.94rem;
}
.show-event small {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
}
.event-icon,
.line-icon {
  display: inline-grid;
  place-items: center;
  background: #def6e9;
  color: #095b53;
  border-radius: 13px;
  width: 43px;
  height: 43px;
  flex: none;
}
.event-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d3f2a7;
}
.landing-section {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 6vw, 79px) 0;
}
.landing-section h2 {
  margin: 0.25em 0 0.35em;
  max-width: 18ch;
  text-wrap: balance;
}
.story,
.live-preview,
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(20px, 6vw, 82px);
}
.steps {
  margin: 0;
  list-style: none;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.steps li:first-child {
  padding-top: 0;
}
.steps p,
.role-links small {
  color: var(--muted);
}
.role-links {
  display: grid;
  gap: 0;
}
.role-links a {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
  text-decoration: none;
  transition: background 0.16s ease;
}
.role-links a:first-child {
  border-top: 1px solid var(--line);
}
.role-links a:hover {
  background: #ebf5ef;
}
.role-links strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.26rem;
  line-height: 1.25;
}
.role-links small {
  display: block;
  line-height: 1.4;
  font-size: 0.91rem;
  margin-top: 3px;
}
.benefits dl {
  padding: 0;
  margin: 25px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.benefits dl div {
  padding: 15px 17px;
  border-inline-start: 1px solid var(--line);
}
.benefits dt {
  font-weight: 750;
  font-size: 1.16rem;
}
.benefits dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.showcase {
  width: 100%;
  min-height: 330px;
  border: 0;
}
.gallery .text-link {
  display: inline-block;
  margin-top: 16px;
}
.gallery-frame {
  background: transparent;
  padding: 8px;
}
.gallery-frame .sector-nav {
  margin: 0 0 14px;
}
.gallery-frame .paper {
  border-radius: 18px;
}
.conversion {
  background: var(--dark);
  color: white;
  margin: 12px 0 45px;
  padding: clamp(20px, 5vw, 60px);
  border-radius: 26px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.conversion p {
  color: #d4e3e4;
}
.conversion .light {
  background: transparent;
  color: white;
  border: 1px solid #8cb6bc;
}
.plans,
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.plan,
.metric,
.box,
fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.plan:nth-child(2) {
  background: #e2f4e8;
}
.plan strong,
.metric b {
  display: block;
  font-size: 1.48rem;
  letter-spacing: -0.035em;
}
.plan p {
  margin-top: 7px;
  color: var(--muted);
}
.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  padding-block: 15px;
}
#screen {
  padding: clamp(21px, 4.5vw, 54px) 0 44px;
  min-height: 70vh;
}
#screen h1 {
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  line-height: 1.01;
  margin: 7px 0 19px;
}
#screen h2 {
  font-size: clamp(1.4rem, 2.55vw, 2.15rem);
  margin: 16px 0 10px;
  line-height: 1.06;
}
#screen .lead {
  margin-bottom: 17px;
}
.panel-head,
.demohead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.panel-head {
  margin: 18px 0 5px;
}
.panel-head h1 {
  margin-bottom: 13px !important;
}
.demohead {
  background: #e4f4ec;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.89rem;
}
.demo-info,
.demo-links,
.demo-roles,
.sector-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.demo-links {
  margin-left: auto;
  font-weight: 630;
}
.demo-info .pill {
  background: #cdebdc;
}
.demo-roles button,
.sector-nav button,
.sector-nav a,
.subnav button {
  border-radius: 90px;
  background: white;
  color: var(--ink);
  border: 1px solid #c1d6ce;
  min-height: 37px;
  padding: 7px 12px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.89rem;
}
.demo-roles button:hover,
.sector-nav button:hover,
.sector-nav a:hover,
.subnav button:hover {
  background: #c6eddc;
  color: var(--ink);
}
.demo-roles button[aria-pressed="true"],
.sector-nav [aria-current="page"],
.sector-nav [aria-pressed="true"],
.subnav [aria-current="page"] {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.guide {
  width: 100%;
  padding: 9px 0 2px;
  border-top: 1px solid #bdd8cc;
}
.guide p {
  margin-top: 3px;
}
.sector-nav {
  margin: 18px 0;
}
.demo-entry {
  max-width: 820px;
}
.demo-entry .role-links {
  margin-top: 25px;
}
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(14px, 2.6vw, 32px);
  align-items: start;
}
form {
  display: grid;
  gap: 14px;
  max-width: 660px;
}
form p,
.narrow > p,
.hint {
  margin-block: 7px;
  line-height: 1.5;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 630;
  font-size: 0.95rem;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #a9beba;
  border-radius: 9px;
  padding: 10px;
  font: inherit;
  font-size: 1rem;
  background: white;
  color: var(--ink);
  min-height: 44px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: #077569;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
fieldset {
  margin: 0;
  min-width: 0;
}
legend {
  font-weight: 680;
}
.notice,
.error {
  padding: 14px 16px;
  border-radius: 13px;
  background: #e2f3ec;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.error {
  background: #fff0ed;
  color: #86251e;
}
.error:empty {
  display: none;
}
.paper {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  padding: clamp(17px, 4vw, 31px);
  overflow-wrap: anywhere;
  border: 1px solid #00000018;
}
.paper h2,
#screen .paper h2 {
  font-family: inherit;
  font-weight: 760;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.065em;
  margin: 3px 0 0;
}
.paper p {
  font-size: 0.83rem;
  margin: 0;
  opacity: 0.85;
  font-weight: 640;
}
.paper .logo {
  max-width: 62px;
  max-height: 48px;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.card-emblem {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  flex: none;
}
.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 16px;
}
.stamp {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
  line-height: 1;
}
.stamp.on {
  border-style: solid;
  background: #ffffff33;
  animation: stamp-in 0.26s ease-out both;
}
.stamp svg {
  width: 19px;
  height: 19px;
}
@keyframes stamp-in {
  from {
    opacity: 0.45;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.card-track progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 8px;
  background: #0002;
  accent-color: currentColor;
  overflow: hidden;
}
.card-track progress::-webkit-progress-bar {
  background: #0002;
}
.card-track progress::-webkit-progress-value {
  background: currentColor;
  border-radius: 8px;
}
.card-track span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: space-between;
  margin-top: 7px;
}
.card-track small {
  font-size: 0.86rem;
}
.card-reward {
  border-top: 1px solid currentColor;
  margin-top: 14px;
  padding-top: 10px;
  font-weight: 690;
}
.wallet-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  max-width: 1040px;
}
.wallet-prize,
.qr-panel,
.invite-panel,
.pos-search,
.pos-result .box {
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}
.wallet-prize,
.qr-panel,
.pos-title {
  display: flex;
  gap: 14px;
  align-items: center;
}
.wallet-prize {
  margin: 12px 0 4px;
  align-items: flex-start;
}
.wallet-prize.ready {
  background: #dbf3b4;
  border-color: #b7d883;
  animation: glow 0.36s ease-out;
}
.wallet-prize strong,
.wallet-prize small,
.wallet-prize div > span {
  display: block;
}
.wallet-prize small {
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  font-weight: 750;
}
.wallet-prize strong {
  font-size: 1.26rem;
  margin: 3px 0;
}
.wallet-prize div > span,
.qr-panel p,
.pos-title p {
  font-size: 0.95rem;
  color: var(--muted);
}
.wallet-side {
  display: grid;
  gap: 14px;
}
.wallet-detail {
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
}
#screen .qr-panel h2,
#screen .pos-title h2 {
  font-size: 1.35rem;
  margin: 0 0 5px;
}
.qrbox {
  background: white;
  padding: 7px;
  display: inline-grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
  flex: none;
}
.qrbox canvas {
  display: block;
  max-width: min(210px, 100%) !important;
}
.qr-panel .qrbox {
  width: 99px;
}
.qr-panel details,
.invite-panel details {
  margin-top: 9px;
  font-size: 0.91rem;
}
.invite-panel .actions {
  margin-top: 10px;
}
.ref-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}
.ref-totals div {
  border-top: 1px solid var(--line);
  padding: 8px 3px;
}
.ref-totals dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.ref-totals dd {
  font-size: 1.25rem;
  font-weight: 730;
  margin: 3px 0 0;
}
.progress-note {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #16564c;
}
.progress-note svg {
  width: 17px;
}
.pos-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}
.pos-search > .button,
.pos-search > button {
  margin: 14px 0 0;
}
.pos-search details,
.manual-search,
.demo-samples {
  margin-top: 17px;
}
.demo-samples,
.manual-search {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.demo-samples .actions {
  margin-top: 8px;
  gap: 7px;
}
.pos-result > .muted {
  padding: 22px;
  border: 1px dashed #a8c4bb;
  border-radius: 19px;
}
.pos-result .box h2 {
  margin-top: 0 !important;
}
.pos-result .box h3 {
  margin-top: 20px;
}
.pos-result .box form {
  margin-top: 13px;
}
summary {
  cursor: pointer;
  font-weight: 660;
}
details[open] summary {
  margin-bottom: 8px;
}
.line,
.row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 0.9rem;
}
.metric span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.secrets code,
.wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.narrow {
  max-width: 640px;
}
.card-flash {
  animation: glow 0.55s ease-out;
}
@keyframes glow {
  40% {
    transform: translateY(-2px);
    border-color: #1c846e;
  }
}
#announcer:not(:empty) {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 11px 16px;
  border-radius: 15px;
  z-index: 10;
  width: max-content;
  max-width: calc(100% - 34px);
  box-shadow: 0 4px 15px #102c2233;
}
@media (max-width: 860px) {
  .hero {
    gap: 24px;
  }
  .hero-show {
    min-height: 385px;
  }
  .benefits dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase {
    min-height: 335px;
  }
}
@media (max-width: 670px) {
  .hero,
  .story,
  .live-preview,
  .gallery,
  .split {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 11.2vw, 4.9rem);
  }
  .hero-show {
    min-height: 315px;
    border-radius: 20px;
    max-width: 510px;
    margin-inline: auto;
    width: 100%;
  }
  .hero-card {
    width: 87%;
    margin: 26px 0 15px;
  }
  .hero-card .paper {
    padding: 15px;
  }
  .hero-card .stamps {
    margin: 13px 0 9px;
  }
  .hero-card .stamp {
    width: 30px;
    height: 30px;
  }
  .hero-card .card-emblem {
    width: 33px;
    height: 33px;
  }
  .hero-card .card-reward {
    margin-top: 8px;
    padding-top: 6px;
  }
  .show-event {
    padding: 8px 10px;
  }
  .top {
    min-height: 59px;
  }
  .brand {
    font-size: 1.27rem;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .top nav {
    gap: 5px;
  }
  .top nav .nav-info {
    display: none;
  }
  .demohead {
    gap: 7px;
    padding: 8px 10px;
  }
  .demo-roles {
    order: 3;
    width: 100%;
  }
  .demo-links {
    gap: 7px;
  }
  .guide {
    order: 4;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .pos-result > .muted {
    padding: 13px;
  }
  .gallery-frame .paper {
    padding: 15px;
  }
  .gallery-frame .stamp {
    width: 31px;
    height: 31px;
  }
  .wallet-layout .stamps {
    margin-block: 15px 10px;
  }
  .wallet-main,
  .wallet-side {
    display: contents;
  }
  .wallet-layout .paper {
    order: 0;
  }
  .wallet-layout .qr-panel {
    order: 1;
  }
  .wallet-layout .wallet-prize {
    order: 2;
    margin: 0;
  }
  .wallet-layout .progress-note {
    order: 3;
    margin: 0;
  }
  .wallet-layout .invite-panel {
    order: 4;
  }
  .wallet-layout .wallet-detail {
    order: 5;
  }
}
@media (max-width: 370px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .ref-totals dt {
    font-size: 0.73rem;
  }
  .hero .actions {
    gap: 10px;
  }
  .hero .button {
    padding-inline: 13px;
  }
  .hero p {
    font-size: 1.03rem;
  }
  .stamp {
    width: 34px;
    height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#landing-gallery .sector-nav {
  margin-top: 0;
}
@media print {
  .top,
  .foot,
  .subnav,
  .demohead,
  button,
  .skip,
  .noprint,
  #announcer {
    display: none !important;
  }
  main {
    width: 100%;
  }
  .printable {
    break-inside: avoid;
  }
  .paper {
    print-color-adjust: exact;
  }
}

/* Comercio */
.dashboard-filter {
  padding-block: 5px 15px;
  border-bottom: 1px solid var(--line);
}
.dashboard-filter label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dashboard-filter select {
  width: auto;
}
.key-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--dark);
  color: #f7fff9;
  border-radius: 22px;
  padding: 20px 10px;
  margin: 17px 0 26px;
}
.key-metrics div {
  padding: 7px clamp(12px, 3vw, 34px);
}
.key-metrics div + div {
  border-inline-start: 1px solid #53737a;
}
.key-metrics dt {
  font-size: 0.94rem;
  font-weight: 640;
  color: #cde5df;
}
.key-metrics dd {
  margin: 6px 0 0;
  font: 720 clamp(2.1rem, 5vw, 4rem) / 1 var(--heading);
  letter-spacing: -0.075em;
}
.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.signals,
.branch-bars {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
}
.signals li,
.branch-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(45px, auto);
  gap: 2px 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.signals li span {
  grid-area: 2 / 1;
  color: var(--muted);
  font-size: 0.88rem;
}
.signals li b {
  grid-area: 1 / 2 / 3;
  text-align: right;
  font: 700 1.55rem var(--heading);
}
.branch-bars li {
  grid-template-columns: minmax(80px, 0.8fr) minmax(0, 1fr) auto;
}
.branch-bars meter {
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9px;
  background: #e0ebe3;
}
.branch-bars meter::-webkit-meter-bar {
  background: #e0ebe3;
  border: 0;
  border-radius: 9px;
}
.branch-bars meter::-webkit-meter-optimum-value {
  background: #08786f;
  border-radius: 9px;
}
.dashboard-export {
  margin-top: 18px;
}
.editor-layout {
  align-items: start;
}
.editor-preview {
  position: sticky;
  top: 12px;
  background: #e9f3ed;
  border-radius: 22px;
  padding: 18px;
}
#screen .editor-preview h2 {
  margin-top: 0;
}
.editor-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.editor-section h2,
.editor-section .hint {
  margin-bottom: 0 !important;
}
.editor-advanced {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.editor-advanced h3 {
  margin-top: 12px;
}
.editor-advanced > label {
  margin: 10px 0;
}
.templates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
button.template-choice {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  justify-items: start;
  padding: 7px;
  min-width: 0;
  font-size: 0.79rem;
}
button.template-choice:hover {
  color: var(--ink);
  background: #e4f6e9;
}
.template-choice span {
  display: grid;
  width: 100%;
  height: 33px;
  place-items: center;
  background: var(--swatch);
  border-radius: 7px;
}
.template-choice[data-template="Barbería"] span {
  color: white;
}
.template-choice strong {
  overflow-wrap: anywhere;
}
.paper .card-message {
  margin-top: 5px;
}
@media (max-width: 670px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .key-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
  .key-metrics div:nth-child(3) {
    border-inline-start: 0;
  }
  .key-metrics div:nth-child(n + 3) {
    border-top: 1px solid #53737a;
  }
  .editor-layout .editor-preview {
    position: static;
    grid-row: 1;
  }
}

.nfc-material {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 5px;
}
.nfc-material label {
  margin: 12px 0;
}
.nfc-material code {
  display: block;
  padding: 9px 0;
}
.touch-screen .paper,
.touch-screen .qr-panel {
  margin-top: 14px;
}

/* Lectura QR y códigos operativos */
.scan-actions {
  display: inline-flex;
  margin-inline-start: 9px;
}
.image-scan {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #aabfba;
  border-radius: 99px;
  padding: 10px 15px;
  min-height: 44px;
  cursor: pointer;
}
.image-scan:focus-within {
  outline: 3px solid #0a806f;
  outline-offset: 4px;
}
.image-scan input {
  position: absolute;
  inset: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.scan-viewport {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 12px;
  background: var(--dark);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.scan-viewport video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scan-frame {
  width: 56%;
  max-height: 79%;
  aspect-ratio: 1;
  border: 2px solid #9ff8e7;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 0 0 250px #071e2840;
  pointer-events: none;
}
.short-code {
  margin: 7px 0;
  color: var(--muted);
}
.short-code strong {
  font-size: 1.22rem;
  letter-spacing: 0.13em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
#expandedQr {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  width: min(92vw, 400px);
  padding: 16px;
}
#expandedQr::backdrop {
  background: #071e288f;
}
#expandedQr .qrbox canvas {
  max-width: min(100%, 300px) !important;
}
.qr-panel button[data-act="expandQr"] {
  min-height: 38px;
  padding: 7px 12px;
}

.hero .launch-price {
  font-size: 1rem;
  margin-top: 17px;
}
.launch-price span {
  color: #087067;
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}
.launch-price strong {
  color: var(--ink);
}

#welcomeKeys {
  width: min(92vw, 520px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
}
#welcomeKeys::backdrop {
  background: #071e287d;
}
.join-layout aside {
  align-self: start;
}
.join-layout details[open] form {
  margin-top: 12px;
}
#invite-qr {
  margin: 10px 0;
}

.account-screen {
  max-width: 560px;
}
.account-screen h1 {
  font-size: clamp(2.45rem, 7vw, 4rem);
}
.account-screen form {
  margin-block: 24px;
}
.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.password-row button {
  min-height: 44px;
}
.account-links,
.account-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.account-screen details {
  margin-top: 24px;
}
.account-hint {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Keep app content inside the device's usable viewport. */
.top {
  padding-top: env(safe-area-inset-top, 0px);
}
.foot {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.authenticated .top nav,
.merchant-mobile-nav {
  display: none;
}
.setup-layout {
  margin-top: 18px;
}
.setup-layout form,
.setup-layout label,
.setup-layout fieldset,
.setup-layout input,
.setup-layout select {
  min-width: 0;
  max-width: 100%;
}
.setup-layout input[type="date"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
}
.setup-progress {
  display: grid;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 650;
}
.setup-progress progress {
  width: 100%;
  height: 8px;
  accent-color: #007d73;
}
.setup-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.setup-options button {
  min-height: 40px;
  padding: 7px 12px;
  font-size: 0.88rem;
}
.setup-options button[aria-current="page"],
.setup-options button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.setup-group {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.setup-group input[type="range"] {
  accent-color: #007d73;
  padding: 0;
}
.setup-colors {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.setup-colors input[type="color"] {
  cursor: pointer;
  padding: 5px;
  border-color: #668481;
  min-height: 48px;
}
.file-choice {
  position: relative;
  width: fit-content;
  display: inline-flex;
  cursor: pointer;
}
.file-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-choice:focus-within {
  outline: 3px solid #0a806f;
  outline-offset: 4px;
}
.setup-opening {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.setup-layout .editor-preview {
  padding: clamp(12px, 2vw, 20px);
}
.preview-states {
  margin-bottom: 12px;
}
.setup-feedback:empty, #contrast-note:empty {
  display: none;
}
.card-brand {
  min-width: 0;
  flex: 1;
}
.paper-balanced .logo {
  max-width: min(100%, var(--logo-size));
  max-height: min(var(--logo-size), 96px);
  width: auto;
  height: auto;
}
.logo-center .logo {
  margin-inline: auto;
}
.logo-right .logo {
  margin-inline-start: auto;
}
.paper-balanced .stamps {
  display: grid;
  gap: 7px;
  color: var(--stamp-ink);
}
.stamp-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}
.paper-balanced .stamp {
  width: min(38px, calc((100% - 28px) / 5));
  height: auto;
  aspect-ratio: 1;
}
.paper-balanced .stamp.on {
  background: var(--stamp-ink);
  border-color: var(--stamp-ink);
  color: var(--card);
}
.paper-balanced .stamp svg {
  width: min(19px, 65%);
  height: auto;
}
@media (max-width: 670px) {
  .authenticated [data-role="owner"] > .subnav {
    display: none;
  }
  .merchant-mobile-nav {
    display: block;
    max-width: 100%;
  }
  .merchant-mobile-nav label {
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 10px;
  }
  .setup-layout .fields {
    grid-template-columns: minmax(0,1fr);
  }
  .setup-layout .paper-balanced {
    padding: 13px;
  }
  .setup-layout .paper-balanced .stamps {
    margin-block: 13px;
  }
  .setup-layout .preview-states button {
    padding-inline: 9px;
  }
  .top,
  main,
  .foot {
    width: auto;
    margin-inline-start: max(clamp(19px,5vw,72px),env(safe-area-inset-left,0px));
    margin-inline-end: max(clamp(19px,5vw,72px),env(safe-area-inset-right,0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .paper-balanced .stamp.on {
    animation: none;
  }
}
.setup-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
}
@media (max-width: 670px) {
  #screen:has(.setup-layout) .panel-head h1 {
    font-size: clamp(1.85rem, 7vw, 2.7rem);
    line-height: 1.04;
  }
  #screen:has(.setup-layout) .setup-progress {
    margin-top: 16px;
  }
  #screen:has(.setup-layout) .setup-progress + .setup-layout {
    margin-top: 12px;
  }
}
.owner-shell {
  display: grid;
  grid-template-columns: minmax(180px, 218px) minmax(0,1fr);
  gap: clamp(22px,4vw,56px);
  align-items: start;
}
.owner-sidebar, dialog.merchant-drawer {
  color: #eef8f3;
  background: #092d37;
}
.owner-sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 14px;
  min-height: clamp(395px, calc(100dvh - 148px), 820px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  align-self: start;
  border-radius: 18px;
}
.merchant-profile {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 4px 5px 17px;
  border-bottom: 1px solid #31545d;
}
.merchant-profile > span {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #9ce9d9;
  background: #214854;
  border-radius: 9px;
}
.merchant-profile svg {
  width: 18px;
  height: 18px;
}
.merchant-profile strong, .merchant-profile small {
  display: block;
  overflow-wrap: anywhere;
}
.merchant-profile small {
  color: #b4cdd0;
  margin-top: 2px;
}
.owner-sidebar nav, .merchant-drawer nav {
  display: grid;
  gap: 4px;
  margin: 16px 0 24px;
}
.owner-sidebar nav button, .merchant-drawer nav button {
  justify-content: flex-start;
  gap: 11px;
  min-height: 46px;
  color: inherit;
  background: transparent;
  text-align: start;
  border-radius: 9px;
  padding-inline: 10px;
}
.owner-sidebar nav svg, .merchant-drawer nav svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.owner-sidebar nav button:hover, .merchant-drawer nav button:hover {
  background: #214854;
}
.owner-sidebar nav button[aria-current="page"], .merchant-drawer nav button[aria-current="page"] {
  color: #d1fff5;
  background: #214854;
  border-color: #5fd9c5;
}
.merchant-account {
  margin-top: auto;
}
.merchant-account .profile-menu {
  border-top: 1px solid #31545d;
}
.merchant-account .profile-menu > div {
  position: static;
  min-width: 0;
  color: var(--ink);
}
.purchase-history {
  padding: 0;
  margin: 0;
  list-style: none;
}
.purchase-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.purchase-history li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.purchase-history button {
  width: fit-content;
  padding-inline: 0;
  overflow-wrap: anywhere;
}
.purchase-history small {
  color: var(--muted);
}
.client-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px 20px;
}
.client-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.client-details dt {
  color: var(--muted);
  font-size: .88rem;
}
.join-layout #join-direct > .hint {
  margin: 0;
  font-size: .875rem;
}
.owner-content {
  min-width: 0;
}
.owner-content .panel-head h1 {
  font-size: clamp(2rem,5vw,4rem);
}
.owner-dashboard-tools {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  align-items: end;
  margin-block: 12px 22px;
}
.owner-activity {
  padding-block: 24px 12px;
}
.panel-head .mobile-sections {
  display: none;
}
.profile-menu {
  position: relative;
  margin: 0;
  flex: none;
}
.profile-menu summary {
  cursor: pointer;
  padding: 8px;
  font-weight: 650;
}
.profile-menu > div {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  display: grid;
  gap: 12px;
  min-width: 145px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.purchase-notice {
  color: #0a5437;
  background: #e0f5e7;
  border: 1px solid #aad5b6;
  border-radius: 10px;
  margin-block: 12px;
  padding: 10px 14px;
  font-weight: 700;
}
.setup-share { margin-top: 18px; }
.manual-search > summary { cursor: pointer; }
.paper-balanced .logo {
  max-height: min(var(--logo-size), 150px);
}
@media (max-width: 740px) {
  .owner-shell { display: block; }
  .owner-sidebar { display: none; }
  .panel-head .mobile-sections {
    display: inline-grid;
    place-items: center;
    width: 44px;
    padding: 0;
    margin-right: 10px;
    vertical-align: middle;
  }
  input, select, textarea { font-size: max(16px, 1rem); }
  .pos-layout:has(.pos-result .box) .pos-result { order: -1; }
  dialog.merchant-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 310px);
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0 16px 16px 0;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-left: max(18px, env(safe-area-inset-left));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    outline: none;
  }
  dialog.merchant-drawer[open] {
    display: flex;
    flex-direction: column;
  }
  html:has(.merchant-drawer[open]), body:has(.merchant-drawer[open]) {
    overflow: hidden;
    overscroll-behavior: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .merchant-drawer[open] { animation: drawer-slide 220ms ease-out both; }
    .merchant-drawer[open].is-closing { animation: drawer-slide-out 220ms ease-in both; }
  }
}
@keyframes drawer-slide {
  from { transform: translateX(-100%); }
}
@keyframes drawer-slide-out {
  to { transform: translateX(-100%); }
}
#preview-wallet { display: contents; }
.wallet-refreshed .paper { animation: stamp-in .32s ease-out; }
@media (prefers-reduced-motion: reduce) { .wallet-refreshed .paper { animation: none; } }
