:root {
  --ink: #122b2a;
  --muted: #627775;
  --brand: #12b879;
  --brand-deep: #087f5b;
  --mint: #e8fbf2;
  --gold: #f4b942;
  --line: rgba(18, 43, 42, .10);
  --shadow: 0 22px 55px rgba(21, 72, 61, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site-body {
  background:
    radial-gradient(circle at 8% -10%, rgba(18, 184, 121, .18), transparent 31rem),
    radial-gradient(circle at 100% 12%, rgba(244, 185, 66, .13), transparent 24rem),
    #f6faf8;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

body.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image: radial-gradient(rgba(8, 127, 91, .07) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--brand-deep); }

.brand-lockup { display: inline-flex; align-items: center; gap: .75rem; text-align: left; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1.15rem;
  color: #fff;
  background: linear-gradient(145deg, #25d997, #087f5b);
  box-shadow: 0 14px 28px rgba(8, 127, 91, .24), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-mark svg { width: 1.85rem; height: 1.85rem; }
.brand-name { letter-spacing: -.035em; font-weight: 900; color: var(--ink); }
.brand-kicker { color: var(--brand-deep); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.auth-shell { position: relative; z-index: 1; padding-top: 4rem !important; }
.auth-hero { margin-bottom: 1.45rem; }
.auth-hero h1 { letter-spacing: -.055em; line-height: 1; }
.auth-hero p { max-width: 26rem; margin-inline: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1.25rem; }
.feature-chip {
  padding: .72rem .45rem;
  border: 1px solid rgba(18, 43, 42, .08);
  border-radius: 1rem;
  background: rgba(255,255,255,.58);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
}
.feature-chip strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .12rem; }

.app-body .bg-white.rounded-2xl,
.site-body .site-card {
  border: 1px solid rgba(18, 43, 42, .08);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.app-body header {
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(110deg, #087f5b 0%, #12b879 58%, #31c993 100%);
  box-shadow: 0 12px 30px rgba(8, 127, 91, .19);
}
.app-body header .brand-mini { display: flex; align-items: center; gap: .55rem; letter-spacing: -.025em; }
.app-body header .brand-mini .brand-mark { width: 2.1rem; height: 2.1rem; border-radius: .72rem; background: rgba(255,255,255,.16); box-shadow: none; }
.app-body header .brand-mini .brand-mark svg { width: 1.2rem; height: 1.2rem; }
.app-body main { position: relative; z-index: 1; }
.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.35rem !important;
  color: #fff;
  border: 0 !important;
  background: linear-gradient(135deg, #0b7756 0%, #13b97a 60%, #63dca7 120%) !important;
  box-shadow: 0 24px 45px rgba(8, 127, 91, .22) !important;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 15rem;
  height: 15rem;
  right: -6rem;
  top: -7rem;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
}
.hero-panel > * { position: relative; z-index: 1; }
.hero-eyebrow { font-size: .68rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.hero-panel h1 { max-width: 25rem; margin-top: .35rem; font-size: clamp(1.7rem, 6vw, 2.35rem); line-height: 1.03; letter-spacing: -.055em; }
.hero-panel p { max-width: 34rem; margin-top: .7rem; color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.55; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.hero-pill { padding: .4rem .65rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(0,0,0,.10); font-size: .72rem; font-weight: 800; }

.release-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(244, 185, 66, .32);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #fffaf0, #fff);
  box-shadow: 0 16px 35px rgba(166, 117, 23, .10);
}
.release-card .release-icon { display: grid; place-items: center; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: .9rem; color: #7c5500; background: #ffe6a4; font-size: 1.25rem; }
.release-card h3 { color: var(--ink); font-weight: 900; letter-spacing: -.02em; }
.release-card p { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.release-card .release-copy { min-width: 0; flex: 1; }
.release-card .release-button { flex: 0 0 auto; white-space: nowrap; padding: .65rem .85rem; border-radius: .8rem; color: #fff; background: #087f5b; font-size: .75rem; font-weight: 900; box-shadow: 0 8px 16px rgba(8,127,91,.18); }
.release-card .release-button:hover { background: #066b4b; color: #fff; }

.app-body input, .app-body select, .app-body textarea,
.site-body input, .site-body select, .site-body textarea {
  border-color: var(--line) !important;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.app-body input:focus, .app-body select:focus, .app-body textarea:focus,
.site-body input:focus, .site-body select:focus, .site-body textarea:focus {
  border-color: rgba(18,184,121,.7) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18,184,121,.12);
}
.app-body button, .site-body button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.app-body button:not(:disabled):hover, .site-body button:not(:disabled):hover { transform: translateY(-1px); }
.app-body .bg-emerald-600, .site-body .bg-emerald-600 { background: var(--brand) !important; box-shadow: 0 9px 18px rgba(18,184,121,.19); }
.app-body .bg-emerald-700, .site-body .bg-emerald-700 { background: var(--brand-deep) !important; }
.app-body .bg-slate-800, .site-body .bg-slate-800 { background: #173333 !important; box-shadow: 0 9px 18px rgba(18,43,42,.14); }
.app-body .bg-gradient-to-br { box-shadow: 0 22px 42px rgba(8,127,91,.20); }
.app-body nav { background: rgba(255,255,255,.92) !important; border-color: rgba(18,43,42,.09) !important; backdrop-filter: blur(18px); }
.app-body .nav-btn { color: #829491; }
.app-body .nav-btn[data-view="scanner"] { color: var(--brand-deep); }
.app-body .seg-btn[aria-pressed="true"] { background: var(--brand-deep); box-shadow: 0 5px 12px rgba(8,127,91,.2); }
.app-body .seg-btn { color: var(--muted); }
.app-body #qr-reader { border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.app-body .fade-in { animation: rise-in .35s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.site-page { position: relative; z-index: 1; max-width: 44rem; margin-inline: auto; padding: 3rem 1.25rem; }
.site-page .back-link { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.5rem; color: var(--brand-deep); font-size: .8rem; font-weight: 800; }
.site-page .page-heading { margin-bottom: 1.3rem; }
.site-page .page-heading h1 { color: var(--ink); font-size: clamp(2rem, 7vw, 3rem); font-weight: 950; letter-spacing: -.06em; line-height: .98; }
.site-page .page-heading p { margin-top: .65rem; color: var(--muted); line-height: 1.55; }
.site-page .site-card { padding: 1.25rem; border-radius: 1.35rem; }
.site-page .contact-list { display: grid; gap: .7rem; }
.site-page .contact-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.site-page .contact-list li:last-child { border-bottom: 0; }
.site-page .contact-list a { color: var(--brand-deep); font-weight: 800; }

@media (max-width: 520px) {
  .auth-shell { padding-inline: 1rem !important; padding-top: 2.5rem !important; }
  .feature-grid { gap: .35rem; }
  .feature-chip { font-size: .64rem; }
  .release-card { align-items: flex-start; flex-wrap: wrap; }
  .release-card .release-button { margin-left: 3.35rem; margin-top: -.35rem; }
  .hero-panel { padding: 1.15rem !important; }
  .site-page { padding-top: 2rem; }
}
