:root {
  --brand: #4a5cb5;
  --brand-soft: #6b7cc8;
  --brand-deep: #3a4a9a;
  --brand-glow: rgba(74, 92, 181, 0.18);
  --ink: #12141c;
  --muted: #6b728a;
  --paper: #ffffff;
  --paper-2: #f4f5f9;
  --panel: #ffffff;
  --line: rgba(18, 20, 28, 0.1);
  --line-strong: rgba(18, 20, 28, 0.16);
  --warn: #b7791f;
  --error: #c53030;
  --ok: #2f9e6a;
  --radius: 16px;
  --font: "Nunito Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Nunito Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 40px rgba(40, 48, 90, 0.12);
  --shadow-soft: 0 8px 24px rgba(40, 48, 90, 0.08);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(74, 92, 181, 0.14), transparent 55%),
    radial-gradient(700px 400px at -10% 20%, rgba(74, 92, 181, 0.08), transparent 50%),
    linear-gradient(180deg, #fbfbfe 0%, var(--paper) 40%, #f3f4f8 100%);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-soft);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.boot-status {
  margin: 0;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Brand —— */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.02rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.12rem;
  width: 0.95rem;
  height: 0.95rem;
  transform: translateX(-50%);
  border: 2px solid transparent;
  border-top-color: var(--brand);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow:
    0 -0.22rem 0 -0.08rem rgba(74, 92, 181, 0.55),
    0 -0.42rem 0 -0.14rem rgba(74, 92, 181, 0.3);
  animation: mark-pulse 3.8s var(--ease) infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

.brand-lockup {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: lowercase;
  color: var(--ink);
}

@keyframes mark-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* —— Shared chrome —— */
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 5;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: rgba(74, 92, 181, 0.16);
  color: var(--brand-soft);
  border: 1px solid rgba(74, 92, 181, 0.28);
}

.chip.is-ok {
  color: var(--ok);
  background: rgba(107, 207, 154, 0.1);
  border-color: rgba(107, 207, 154, 0.25);
}

.chip.is-ok::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(107, 207, 154, 0.5);
  animation: live-dot 2s ease-out infinite;
}

.chip[hidden] {
  display: none !important;
}

@keyframes live-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 207, 154, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(107, 207, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(107, 207, 154, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #f7f8ff;
  box-shadow: 0 10px 24px rgba(74, 92, 181, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ghost {
  background: rgba(74, 92, 181, 0.06);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(74, 92, 181, 0.1);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Desktop —— */
.hero-desktop {
  position: relative;
  min-height: min(92dvh, 820px);
  display: grid;
  align-items: end;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: -15% 5% auto -15%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 65%);
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 92, 181, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 92, 181, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 18%, transparent 72%);
  opacity: 0.8;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-a {
  width: 220px;
  height: 220px;
  right: 12%;
  top: 18%;
  background: radial-gradient(circle, rgba(74, 92, 181, 0.35), transparent 70%);
  animation: orb-float 9s ease-in-out infinite;
}

.hero-orb-b {
  width: 140px;
  height: 140px;
  right: 28%;
  top: 48%;
  background: radial-gradient(circle, rgba(123, 141, 176, 0.25), transparent 70%);
  animation: orb-float 11s ease-in-out infinite reverse;
}

.hero-waves {
  position: absolute;
  width: min(52vw, 520px);
  right: max(2%, calc(8% - 40px));
  top: 12%;
  color: var(--brand);
  opacity: 0.55;
}

.wave-ring {
  opacity: 0.35;
  transform-origin: 240px 240px;
  animation: wave-out 4.8s ease-out infinite;
}

.wave-ring:nth-child(3) {
  animation-delay: 0.6s;
}
.wave-ring:nth-child(4) {
  animation-delay: 1.2s;
}
.wave-ring:nth-child(5) {
  animation-delay: 1.8s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-copy h1,
.ios-panel h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.lede,
.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.lede + .lede {
  margin-top: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

@keyframes glow-drift {
  from {
    transform: translate(-2%, 0) scale(1);
  }
  to {
    transform: translate(4%, 3%) scale(1.05);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes wave-out {
  0% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.section-lede {
  margin-bottom: 2rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
}

.steps h3,
.use-list h3,
.support-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.steps p,
.use-list p,
.support-item p {
  margin: 0;
  color: var(--muted);
}

.use-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2rem;
}

@media (min-width: 720px) {
  .use-list {
    grid-template-columns: 1fr 1fr;
  }
}

.support-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.support-item {
  padding: 1.25rem 0;
  border-top: 2px solid var(--line);
}

.support-item.is-yes {
  border-top-color: var(--brand);
}

.support-item.is-no {
  border-top-color: rgba(212, 163, 92, 0.55);
}

.support-item.is-muted {
  border-top-color: var(--line-strong);
}

.support-hint {
  margin-top: 0.75rem !important;
  font-size: 0.92rem;
  color: var(--ink) !important;
  font-weight: 600;
}

.section-why {
  padding-bottom: 4rem;
}

/* —— Landing (iPhone / desktop) —— */
.view-landing {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}

.landing-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.landing-glow {
  position: absolute;
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  right: -12%;
  top: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 92, 181, 0.22), transparent 70%);
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.landing-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(74, 92, 181, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 92, 181, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 15%, transparent 70%);
}

.landing-top,
.landing-main,
.view-landing .site-footer {
  position: relative;
  z-index: 1;
}

.landing-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.5rem) 0.4rem;
}

.landing-main {
  flex: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  padding: 0.75rem clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .landing-main {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.landing-copy {
  max-width: 34rem;
  animation: rise 0.75s var(--ease) both;
}

.landing-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.landing-copy .lede {
  margin-bottom: 1rem;
}

.landing-cta-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.landing-cta-note a {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 92, 181, 0.35);
}

.landing-show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: rise 0.85s var(--ease) 0.08s both;
}

.phone-shell {
  position: relative;
  width: min(100%, 300px);
  padding: 0.7rem;
  border-radius: 2rem;
  background: linear-gradient(160deg, #1a1d27 0%, #0d0f16 100%);
  box-shadow:
    0 30px 60px rgba(40, 48, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-notch {
  width: 36%;
  height: 0.7rem;
  margin: 0.15rem auto 0.55rem;
  border-radius: 999px;
  background: #05060c;
}

.phone-screen {
  position: relative;
  height: 520px;
  border-radius: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(420px 240px at 110% -10%, rgba(74, 92, 181, 0.16), transparent 55%),
    #ffffff;
}

/* Live Android app scaled into the phone frame (single source of truth). */
.phone-live {
  --phone-live-w: 390px;
  --phone-live-scale: 0.69;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--phone-live-w);
  height: calc(520px / var(--phone-live-scale));
  transform: scale(var(--phone-live-scale));
  transform-origin: top left;
  pointer-events: none;
  overflow: hidden;
  background: #fff;
}

.phone-live .android-app,
.android-demo {
  min-height: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  margin: 0;
  background: #fff;
  overflow: hidden;
}

.android-demo .android-atmosphere {
  opacity: 0.7;
}

.android-demo .android-top {
  padding: 0.65rem 0.85rem 0.25rem;
}

.android-demo .android-stage {
  padding-bottom: 0.25rem;
  overflow: hidden;
}

/* Phone-frame preview: avoid viewport (dvh) sizes that blow past the shell. */
.android-demo .scan-stage {
  flex: 1;
  min-height: 0;
  padding: 0.85rem 0 0.55rem;
}

.android-demo .scan-screen.has-result .scan-stage {
  flex: 0 0 auto;
  padding: 0.35rem 0 0.45rem;
}

.android-demo .nfc-pulse-lg {
  width: 4.5rem;
  height: 4.5rem;
}

.android-demo .store-screen {
  gap: 0.55rem;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.android-demo .store-promo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 1.15rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(74, 92, 181, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.android-demo .store-fallback {
  margin-top: 0;
  flex-shrink: 0;
}

.phone-home {
  width: 28%;
  height: 0.28rem;
  margin: 0.65rem auto 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.landing-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-nav {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s var(--ease);
}

.landing-nav:active {
  transform: scale(0.96);
}

.landing-dots {
  display: flex;
  gap: 0.4rem;
}

.landing-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(74, 92, 181, 0.25);
  cursor: pointer;
  transition: width 0.2s var(--ease), background 0.2s ease;
}

.landing-dot.is-active {
  width: 1.25rem;
  background: var(--brand);
}

.landing-slide-caption {
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 1.3em;
}

/* —— Android Studio —— */
body.is-android-app {
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 110% -8%, rgba(74, 92, 181, 0.16), transparent 58%),
    radial-gradient(520px 360px at -15% 30%, rgba(74, 92, 181, 0.08), transparent 55%),
    #ffffff;
}

.android-app {
  position: relative;
  height: 100dvh;
  height: 100svh;
  min-height: 100dvh;
  min-height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  display: grid;
  /* minmax(0, 1fr): stage may shrink; default 1fr min is content-sized and blows the grid */
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-width: 480px;
  margin: 0 auto;
  isolation: isolate;
  background: transparent;
  overflow: hidden;
}

.android-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.android-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -80px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 92, 181, 0.22), transparent 70%);
  animation: glow-drift 10s ease-in-out infinite alternate;
}

.android-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(74, 92, 181, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 92, 181, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(32px);
  }
}

.android-top,
.android-stage,
.android-tabbar {
  position: relative;
  z-index: 1;
}

.android-top {
  padding: 0.85rem 1.1rem 0.35rem;
}

.android-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.android-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.android-top .brand-name {
  font-size: 1.4rem;
}

.collab-line {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.collab-line:hover {
  color: var(--brand);
}

.collab-line-hero {
  display: inline-block;
  margin: -0.35rem 0 1rem;
  font-size: 0.84rem;
}

.android-stage {
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding: 0.35rem 1.1rem 1.1rem;
  outline: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
}

.android-stage > [data-screen] {
  flex: 1 0 auto;
  min-height: 100%;
  min-width: 0;
  width: 100%;
}

/* Store must fill the stage without forcing overflow past the tabbar */
.android-stage > .store-screen {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.android-stage.is-sweep-fwd > [data-screen] {
  animation: sweep-fwd 0.4s var(--ease) both;
}

.android-stage.is-sweep-back > [data-screen] {
  animation: sweep-back 0.4s var(--ease) both;
}

@keyframes sweep-fwd {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sweep-back {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.screen-enter {
  animation: screen-in 0.42s var(--ease) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.screen-hero {
  margin-bottom: 1.1rem;
}

.screen-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--brand);
}

.screen-eyebrow em {
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.screen-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.studio .screen-hero h1 {
  margin-bottom: 0;
}

.screen-lede,
.panel-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.type-rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0;
  overflow: visible;
}

.type-pill {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  animation: pill-in 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}

@keyframes pill-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.type-pill:active {
  transform: scale(0.97);
}

.type-pill.is-active {
  border-color: rgba(74, 92, 181, 0.55);
  background: rgba(74, 92, 181, 0.1);
  box-shadow: 0 8px 22px rgba(74, 92, 181, 0.14);
}

.type-pill-label {
  font-weight: 750;
  font-size: 0.92rem;
}

.composer {
  animation: rise 0.4s var(--ease) both;
}

.composer-reveal {
  animation: composer-pop 0.38s var(--ease) both;
}

@keyframes composer-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--muted);
}

.select-wrap,
.field {
  margin-bottom: 0.9rem;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

select,
.input,
.textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.92rem 1rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--ease);
}

select {
  padding-right: 2.5rem;
  font-weight: 600;
}

.textarea {
  min-height: 6.2rem;
  resize: vertical;
}

select:focus,
.input:focus,
.textarea:focus {
  border-color: rgba(74, 92, 181, 0.55);
  box-shadow: 0 0 0 4px rgba(74, 92, 181, 0.14);
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.tool-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tool-actions[hidden] {
  display: none !important;
}

.status {
  margin: 0.8rem 0 0;
  min-height: 1.3em;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.is-error {
  color: var(--error);
}

.status.is-ok {
  color: var(--ok);
}

.status.is-warn {
  color: var(--warn);
}

.preview-url {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(74, 92, 181, 0.08);
  border: 1px solid rgba(74, 92, 181, 0.16);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.warn-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--warn);
}

.warn-note.is-danger {
  color: var(--error);
  font-weight: 700;
}

.nfc-pulse {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 1.25rem auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #7b8fd8, var(--brand) 55%, var(--brand-deep));
  box-shadow: 0 0 0 0 rgba(74, 92, 181, 0.35), var(--shadow);
  animation: pulse-core 2.4s ease-in-out infinite;
}

.nfc-pulse-lg {
  width: 104px;
  height: 104px;
}

@keyframes pulse-core {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(74, 92, 181, 0.3), var(--shadow);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 12px rgba(74, 92, 181, 0), var(--shadow);
  }
}

.nfc-pulse::before,
.nfc-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(74, 92, 181, 0.35);
  animation: pulse-ring 1.8s ease-out infinite;
}

.nfc-pulse::after {
  animation-delay: 0.7s;
}

@keyframes pulse-ring {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.85);
    opacity: 0;
  }
}

.scan-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.scan-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: min(42dvh, 22rem);
  padding: 1.5rem 0 1.2rem;
  text-align: center;
}

.scan-screen.has-result .scan-stage {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0.65rem 0 0.85rem;
}

.scan-hint {
  margin: 0.35rem auto 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.scanner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0b0c10;
  aspect-ratio: 3 / 4;
  margin: 0.75rem 0;
  border: 1px solid var(--line);
}

.scanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-frame {
  position: absolute;
  inset: 18% 16%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.read-result {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.65rem;
}

.read-result-card {
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  animation: rise 0.35s var(--ease) both;
}

.read-result-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--brand);
}

.read-result-value {
  margin: 0.45rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  color: var(--ink);
}

.read-result-detail {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.store-promo-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--brand);
}

.store-promo-title {
  margin: 0.45rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.store-promo-copy {
  margin: 0.55rem 0 0;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.store-screen {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  gap: 0.75rem;
}

.store-screen > .screen-hero {
  flex-shrink: 0;
}

.store-frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.store-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.store-fallback {
  flex-shrink: 0;
  margin-top: auto;
}

.android-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  padding: 0.45rem 0.55rem calc(0.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  /* Grid footer row — stay pinned; sticky broke when stage content overflowed */
  position: relative;
  z-index: 5;
  box-shadow: 0 -10px 30px rgba(40, 48, 90, 0.06);
}

.android-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0.5rem 0.2rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ease);
}

.android-tab:active {
  transform: scale(0.96);
}

.android-tab-icon {
  width: 1.3rem;
  height: 1.3rem;
  color: inherit;
}

.android-tab-icon svg {
  width: 100%;
  height: 100%;
}

.android-tab.is-active {
  color: var(--brand-deep);
  background: rgba(74, 92, 181, 0.12);
}

/* Overlay sheet — centered focus modal */
.android-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.15rem;
}

.android-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 28, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fade-in 0.2s ease both;
}

.android-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-height: min(88dvh, 760px);
  overflow: auto;
  padding: 1.35rem 1.2rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(40, 48, 90, 0.28);
  animation: sheet-pop 0.35s var(--ease) both;
}

.sheet-composer {
  margin: 0.85rem 0 0.35rem;
}

@keyframes sheet-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sheet-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--brand);
}

.sheet-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.sheet-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.android-overlay-open {
  overflow: hidden;
}

.preview-pill {
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 0.75rem/1.2 var(--font);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

body.is-android-app .preview-pill {
  bottom: 5.9rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 1.75rem clamp(1.1rem, 4vw, 2.5rem) 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sponsor {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.sponsor a {
  font-weight: 750;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(74, 92, 181, 0.45);
}

.sponsor a:hover {
  color: var(--brand-soft);
}

.legal {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(107, 114, 138, 0.85);
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .hero-waves {
    width: min(78vw, 340px);
    opacity: 0.35;
    top: 6%;
    right: -8%;
  }

  .hero-desktop {
    min-height: min(88dvh, 720px);
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-mark::after,
  .hero-glow,
  .hero-orb,
  .wave-ring,
  .android-glow,
  .android-grid,
  .chip.is-ok::before,
  .nfc-pulse,
  .nfc-pulse::before,
  .nfc-pulse::after {
    animation: none !important;
  }

  [data-reveal],
  .hero-copy,
  .ios-panel,
  .screen-enter,
  .composer,
  .composer-reveal,
  .type-pill,
  .android-sheet,
  .android-overlay-backdrop,
  .log-item,
  .android-stage.is-sweep-fwd > [data-screen],
  .android-stage.is-sweep-back > [data-screen] {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none;
  }
}
