@font-face {
  font-family: "Anek Latin Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url("/fonts/anek-latin-wght.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #faf5ea;
  --paper-hi: #fffaf0;
  --board: #f3ecdf;
  --quiet: #f1eade;
  --line: #e4d9c7;
  --line-2: #d3c6b1;
  --ink: #221812;
  --ink-2: #4a3a2d;
  --ink-3: #6b5d50;
  --tur: #e09036;
  --tur-hi: #eba451;
  --tur-deep: #8f5410;
  --tur-soft: #fbe7c8;
  --leaf: #4f9a53;
  --leaf-soft: #e2efdd;
  --leaf-ink: #245a28;
  --bezel: #2b211a;
  --on-ink: #f4ecde;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "Anek Latin Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--tur-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite {
  position: absolute;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left));
}

.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Header ─────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .top {
    background: var(--paper);
  }
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  display: block;
  height: 22px;
  width: auto;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.top-link .ic {
  width: 16px;
  height: 16px;
  color: var(--tur-deep);
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  display: grid;
  gap: 28px;
  padding-top: 20px;
  padding-bottom: 28px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--leaf-ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--leaf);
  animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

h1 {
  font-size: clamp(2.1rem, 7.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

mark {
  background: none;
  color: inherit;
  white-space: nowrap;
  background-image: linear-gradient(var(--tur-soft), var(--tur-soft));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.42em;
  animation: highlight 700ms var(--ease-out) 900ms both;
}

@keyframes highlight {
  from {
    background-size: 0% 0.42em;
  }
}

.lede {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  line-height: 1.5;
}

.lede b {
  color: var(--ink);
  font-weight: 700;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--tur);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12), 0 1px 2px rgb(143 84 16 / 0.25);
}

.btn-quiet {
  background: var(--quiet);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--tur-hi);
  }
  .btn-quiet:hover {
    background: var(--board);
  }
  .btn-ink:hover {
    background: var(--ink-2);
  }
}

@media (max-width: 420px) {
  .cta .btn {
    flex: 1 1 100%;
  }
}

/* ── Hero graphic: a security bill printing out ─────── */

.printer {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  padding-top: 14px;
}

.slot {
  position: relative;
  z-index: 2;
  height: 22px;
  margin: 0 -14px;
  border-radius: 12px;
  background: var(--bezel);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.08), 0 10px 24px -10px rgb(34 24 18 / 0.5);
}

.slot span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 9px;
  height: 4px;
  border-radius: 4px;
  background: #0e0a07;
}

/* Clips the bill so it appears to feed out of the slot. */
.paper-clip {
  position: relative;
  z-index: 1;
  margin: -11px -16px 0;
  padding: 0 16px 24px;
  overflow: hidden;
}

.bill {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--paper-hi);
  color: #2a211b;
  font-size: 0.95rem;
  box-shadow: 0 16px 26px -18px rgb(34 24 18 / 0.45);
  animation: feed 1100ms var(--ease-out) 150ms both;
}

/* Torn bottom edge */
.bill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
  background: conic-gradient(from 135deg at 50% 0, var(--paper-hi) 90deg, transparent 0) 0 0 / 14px
    8px repeat-x;
}

@keyframes feed {
  from {
    transform: translateY(-100%);
  }
}

.bill p {
  margin: 0;
}

.bill-head {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.bill-head img {
  width: 22px;
  height: 22px;
}

.bill-head b {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.bill-head span {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.dash {
  height: 0;
  margin: 14px 0;
  border: 0;
  border-top: 1.5px dashed #bfb09a;
}

.dash-double {
  height: 4px;
  border-bottom: 1.5px dashed #bfb09a;
}

.bill-cols {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px !important;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bill-rows li,
.bill-meta,
.bill-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}

.bill-rows i,
.bill-meta i,
.bill-total i {
  flex: 1;
  min-width: 12px;
  border-bottom: 1.5px dotted #cbbda8;
  transform: translateY(-4px);
}

.bill-rows b {
  min-width: 1ch;
  color: var(--leaf-ink);
  font-weight: 800;
}

.bill-meta {
  color: var(--ink-2);
  font-size: 0.88rem;
}

.bill-meta b {
  color: var(--ink);
  font-weight: 650;
}

.bill-total {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bill-total b {
  color: var(--leaf-ink);
}

.barcode {
  display: block;
  width: 150px;
  height: 30px;
  margin: 16px 0 0;
  background: repeating-linear-gradient(
    90deg,
    #2a211b 0 2px,
    transparent 2px 4px,
    #2a211b 4px 5px,
    transparent 5px 8px,
    #2a211b 8px 11px,
    transparent 11px 12px,
    #2a211b 12px 13px,
    transparent 13px 16px
  );
}

.bill-small {
  margin-top: 8px !important;
  color: var(--ink-3);
  font-size: 0.74rem;
}

/* Rubber stamp lands once the bill has printed. */
.stamp {
  position: absolute;
  right: 14px;
  bottom: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border: 2.5px solid var(--leaf);
  border-radius: 10px;
  color: var(--leaf);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
  animation: stamp 420ms var(--ease-out) 1200ms both;
}

.stamp svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(1.35);
  }
  60% {
    opacity: 0.95;
  }
}

/* ── Facts strip ────────────────────────────────────── */

.facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-hi);
  overflow: hidden;
}

@media (min-width: 760px) {
  .facts dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.facts dl > div {
  padding: 12px 16px;
  border-color: var(--line);
  border-style: solid;
  border-width: 0;
}

.facts dl > div:nth-child(odd) {
  border-right-width: 1px;
}

.facts dl > div:nth-child(-n + 2) {
  border-bottom-width: 1px;
}

@media (min-width: 760px) {
  .facts dl > div {
    border-width: 0 1px 0 0 !important;
  }
  .facts dl > div:last-child {
    border-right-width: 0 !important;
  }
}

.facts dt {
  color: var(--ink-3);
  font-size: 0.8rem;
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ── Sections ───────────────────────────────────────── */

.block {
  padding-top: 44px;
}

@media (min-width: 880px) {
  .block {
    padding-top: 72px;
  }
}

h2 {
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.sub {
  margin-top: 6px;
  color: var(--ink-3);
}

.tries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

@media (min-width: 880px) {
  .tries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.tries li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-hi);
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .tries li:hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
  }
  .tries li:hover .print {
    opacity: 0.5;
  }
}

.ti {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The turmeric "print" offset shape every POSBADA icon carries. */
.ti .print {
  fill: var(--tur);
  stroke: none;
  opacity: 0.28;
  transform: translate(2px, 2px);
  transition: opacity 200ms ease;
}

.tries b {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.tries span {
  color: var(--ink-3);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ── Scope + rules ──────────────────────────────────── */

.scope-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 880px) {
  .scope-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
  }
}

.scope-card,
.rules-card {
  padding: 20px;
  border-radius: 20px;
}

.scope-card {
  background: var(--board);
}

.rules-card {
  border: 1px solid var(--line);
  background: var(--paper-hi);
}

.scope-card h2,
.rules-card h2 {
  font-size: clamp(1.3rem, 3.8vw, 1.6rem);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ticks li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
}

.ticks .ic {
  width: 22px;
  height: 22px;
  padding: 3px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf-ink);
  stroke-width: 2.5;
}

.ticks b {
  color: var(--ink);
  font-weight: 700;
}

.note {
  margin-top: 14px !important;
  color: var(--ink-3);
  font-size: 0.84rem;
  line-height: 1.45;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chips li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--quiet);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.92rem;
  font-weight: 650;
}

.chips small {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ── Verify ─────────────────────────────────────────── */

.verify {
  padding-top: 44px;
}

@media (min-width: 880px) {
  .verify {
    padding-top: 72px;
  }
}

.verify-card {
  display: grid;
  gap: 18px;
  padding: 22px 20px;
  border-radius: 24px;
  background: var(--bezel);
  color: var(--on-ink);
  background-image: radial-gradient(120% 140% at 100% 0%, rgb(224 144 54 / 0.22), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgb(79 154 83 / 0.16), transparent 60%);
}

@media (min-width: 880px) {
  .verify-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
  }
}

.verify-card h2 {
  color: #fff8ec;
}

.verify-card p {
  margin-top: 8px;
  color: #d4c6b1;
}

.verify-card .mono {
  color: #fff8ec;
  overflow-wrap: anywhere;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badge {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 2px;
  border-radius: 10px;
  transition: transform 160ms var(--ease-out);
}

.badge:active {
  transform: scale(0.97);
}

.badge img {
  display: block;
  max-width: 100%;
  height: auto;
}

.verify-card .btn-ink {
  background: var(--tur);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .verify-card .btn-ink:hover {
    background: var(--tur-hi);
  }
}

/* ── Report ─────────────────────────────────────────── */

.report {
  padding-top: 40px;
  padding-bottom: 48px;
  text-align: center;
}

.report h2 {
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
}

.report p {
  margin-top: 6px;
  color: var(--ink-3);
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--tur-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--tur-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ── Footer ─────────────────────────────────────────── */

.foot {
  border-top: 1.5px dashed #d3c6b1;
  padding-bottom: env(safe-area-inset-bottom);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--ink-3);
  font-size: 0.84rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .foot a:hover {
    color: var(--ink);
  }
}

/* ── Reduced motion ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bill,
  .stamp,
  mark,
  .dot::after {
    animation: none;
  }
  .btn,
  .badge,
  .tries li {
    transition: none;
  }
}
