/* ============================================================
   zZuP! landing — "app-native"
   Palette lifted 1:1 from the app's own theme engines:
     · Light Cyber Mint  (app/context/ThemeContext.tsx → lightThemeColors)
     · Dark Luxury Purple(app/context/ThemeContext.tsx → darkThemeColors)
     · Auth violet       (app/theme/index.ts → light.brand)
   The page alternates between the two engines on purpose — the site
   demonstrates the dual theme instead of just describing it.
   ============================================================ */

:root {
  /* ---- Light Cyber Mint (default surface) ---- */
  --bg:            #F8FAF9;
  --surface:       #FFFFFF;
  --surface-2:     #F2F6F4;
  --mint-wash:     #F0FDF4;
  --border:        #E2E8F0;
  --border-mint:   #D1FAE5;
  --border-mint-2: #A7F3D0;

  --brand:         #10B981;
  --brand-strong:  #059669;
  --brand-deep:    #047857;
  --brand-wash:    rgba(16, 185, 129, 0.10);
  --brand-glow:    rgba(16, 185, 129, 0.22);

  --text:          #0F172A;
  --sub:           #64748B;
  --tertiary:      #94A3B8;

  /* ---- Dark Luxury Purple (deep sections) ---- */
  --ink:           #0B0713;
  --ink-2:         #13101E;
  --ink-3:         #161024;
  --ink-4:         #1B132D;
  --ink-line:      #261E38;
  --ink-brand:     #8B5CF6;
  --ink-brand-2:   #C084FC;
  --ink-text:      #FFFFFF;
  --ink-sub:       #A1A1AA;
  --ink-tertiary:  #71717A;

  /* ---- Auth violet (onboarding accent) ---- */
  --violet:        #7C3AED;
  --violet-strong: #6D28D9;
  --violet-wash:   #F3EEFE;

  --line:          var(--border);

  --shadow-card:   0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-lift:   0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-hero:   0 30px 70px rgba(15, 23, 42, 0.14);

  --font-display: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Instrument Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 72px);

  /* legacy aliases — older markup may still reference these */
  --paper: var(--surface);
  --paper-2: var(--surface-2);
  --lime: var(--brand);
  --lime-dim: var(--brand-strong);
  --coral: #F97362;
  --fog: var(--sub);
  --line-ink: var(--border);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand); color: #fff; }

.mono { font-family: var(--font-mono); }

/* the old film grain fought the clean light canvas — retired */
.grain { display: none; }

/* scroll progress hairline */
.scrollbar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, #34D399, var(--brand), var(--violet));
  transition: width 0.08s linear;
  pointer-events: none;
}

/* hero particle field */
.fx {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============ shared bits ============ */

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brand-strong);
  margin-bottom: 22px;
}
.tag--ink { color: rgba(255, 255, 255, 0.75); }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--lime {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.btn--lime:hover {
  background: var(--brand-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--brand-glow);
}

/* soft corner brackets — kept, but mint and quiet */
.hud { position: relative; }
.hud::before, .hud::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  opacity: 0.9;
  border-radius: 2px;
}
.hud::before {
  top: -8px; left: -8px;
  border-top: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
}
.hud::after {
  bottom: -8px; right: -8px;
  border-bottom: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.26s; }
.d4 { transition-delay: 0.38s; }
.d5 { transition-delay: 0.5s; }

/* ============ pixel pet (SVG-free, pure grid) ============ */

.pixelpet {
  --px: 6px;
  --pet: var(--brand);
  --pet-dark: #0F172A;
  display: grid;
  grid-template-columns: repeat(12, var(--px));
  grid-auto-rows: var(--px);
  image-rendering: pixelated;
}
.pixelpet i { display: none; }
.pixelpet::before {
  content: "";
  grid-area: 1 / 1;
  width: var(--px); height: var(--px);
  background: transparent;
  box-shadow:
    /* ears */
    calc(var(--px)*2) 0 var(--pet), calc(var(--px)*9) 0 var(--pet),
    calc(var(--px)*2) var(--px) var(--pet), calc(var(--px)*3) var(--px) var(--pet),
    calc(var(--px)*8) var(--px) var(--pet), calc(var(--px)*9) var(--px) var(--pet),
    /* head row 2 */
    calc(var(--px)*2) calc(var(--px)*2) var(--pet), calc(var(--px)*3) calc(var(--px)*2) var(--pet),
    calc(var(--px)*4) calc(var(--px)*2) var(--pet), calc(var(--px)*5) calc(var(--px)*2) var(--pet),
    calc(var(--px)*6) calc(var(--px)*2) var(--pet), calc(var(--px)*7) calc(var(--px)*2) var(--pet),
    calc(var(--px)*8) calc(var(--px)*2) var(--pet), calc(var(--px)*9) calc(var(--px)*2) var(--pet),
    /* row 3 */
    var(--px) calc(var(--px)*3) var(--pet), calc(var(--px)*2) calc(var(--px)*3) var(--pet),
    calc(var(--px)*3) calc(var(--px)*3) var(--pet), calc(var(--px)*4) calc(var(--px)*3) var(--pet),
    calc(var(--px)*5) calc(var(--px)*3) var(--pet), calc(var(--px)*6) calc(var(--px)*3) var(--pet),
    calc(var(--px)*7) calc(var(--px)*3) var(--pet), calc(var(--px)*8) calc(var(--px)*3) var(--pet),
    calc(var(--px)*9) calc(var(--px)*3) var(--pet), calc(var(--px)*10) calc(var(--px)*3) var(--pet),
    /* row 4 (eyes) */
    var(--px) calc(var(--px)*4) var(--pet), calc(var(--px)*2) calc(var(--px)*4) var(--pet),
    calc(var(--px)*3) calc(var(--px)*4) var(--pet-dark), calc(var(--px)*4) calc(var(--px)*4) var(--pet),
    calc(var(--px)*5) calc(var(--px)*4) var(--pet), calc(var(--px)*6) calc(var(--px)*4) var(--pet),
    calc(var(--px)*7) calc(var(--px)*4) var(--pet), calc(var(--px)*8) calc(var(--px)*4) var(--pet-dark),
    calc(var(--px)*9) calc(var(--px)*4) var(--pet), calc(var(--px)*10) calc(var(--px)*4) var(--pet),
    /* row 5 (blush + mouth) */
    var(--px) calc(var(--px)*5) var(--pet), calc(var(--px)*2) calc(var(--px)*5) var(--coral),
    calc(var(--px)*3) calc(var(--px)*5) var(--pet), calc(var(--px)*4) calc(var(--px)*5) var(--pet),
    calc(var(--px)*5) calc(var(--px)*5) var(--pet-dark), calc(var(--px)*6) calc(var(--px)*5) var(--pet-dark),
    calc(var(--px)*7) calc(var(--px)*5) var(--pet), calc(var(--px)*8) calc(var(--px)*5) var(--pet),
    calc(var(--px)*9) calc(var(--px)*5) var(--coral), calc(var(--px)*10) calc(var(--px)*5) var(--pet),
    /* row 6 */
    var(--px) calc(var(--px)*6) var(--pet), calc(var(--px)*2) calc(var(--px)*6) var(--pet),
    calc(var(--px)*3) calc(var(--px)*6) var(--pet), calc(var(--px)*4) calc(var(--px)*6) var(--pet),
    calc(var(--px)*5) calc(var(--px)*6) var(--pet), calc(var(--px)*6) calc(var(--px)*6) var(--pet),
    calc(var(--px)*7) calc(var(--px)*6) var(--pet), calc(var(--px)*8) calc(var(--px)*6) var(--pet),
    calc(var(--px)*9) calc(var(--px)*6) var(--pet), calc(var(--px)*10) calc(var(--px)*6) var(--pet),
    /* row 7 body */
    calc(var(--px)*2) calc(var(--px)*7) var(--pet), calc(var(--px)*3) calc(var(--px)*7) var(--pet),
    calc(var(--px)*4) calc(var(--px)*7) var(--pet), calc(var(--px)*5) calc(var(--px)*7) var(--pet),
    calc(var(--px)*6) calc(var(--px)*7) var(--pet), calc(var(--px)*7) calc(var(--px)*7) var(--pet),
    calc(var(--px)*8) calc(var(--px)*7) var(--pet), calc(var(--px)*9) calc(var(--px)*7) var(--pet),
    /* feet */
    calc(var(--px)*3) calc(var(--px)*8) var(--pet), calc(var(--px)*4) calc(var(--px)*8) var(--pet),
    calc(var(--px)*7) calc(var(--px)*8) var(--pet), calc(var(--px)*8) calc(var(--px)*8) var(--pet);
  animation: pet-bob 2.4s ease-in-out infinite;
}
@keyframes pet-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(var(--px) * -0.7)); }
}
.pixelpet--big { --px: clamp(8px, 1.4vw, 13px); width: calc(var(--px)*12); height: calc(var(--px)*9); }
.pixelpet--mid { --px: 7px; width: calc(7px*12); height: calc(7px*9); }
.pixelpet--tiny { --px: 3px; width: calc(3px*12); height: calc(3px*9); }

.pet-shadow {
  width: 90px; height: 12px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.20);
  filter: blur(5px);
  animation: shadow-pulse 2.4s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50% { transform: scaleX(0.82); opacity: 0.5; }
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.nav__bang { color: var(--brand); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--brand-strong); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 60px;
  background:
    radial-gradient(ellipse 62% 48% at 78% 34%, rgba(16, 185, 129, 0.13), transparent 70%),
    radial-gradient(ellipse 45% 40% at 12% 82%, rgba(124, 58, 237, 0.07), transparent 72%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 60%);
}
/* faint engineering grid */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
}
.hero__title > span { display: block; }
.nw { white-space: nowrap; }
.hero__title-accent {
  color: var(--brand);
  font-style: italic;
}
.blink-caret {
  font-style: normal;
  color: var(--brand);
  animation: caret 1.1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__sub {
  margin-top: 28px;
  max-width: 480px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--sub);
}

.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.storebtn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--text);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  background: var(--text);
  transition: background 0.18s, color 0.18s, transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.storebtn span {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
}
.storebtn small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: uppercase;
}
.storebtn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--brand-glow);
}

.sysline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--tertiary);
}
.sysline b { color: var(--brand-strong); font-weight: 600; }
.sysline__sep { opacity: 0.5; }
.sysline .dot--live { margin-right: 8px; }

/* hero stage */
.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 480px;
}

.chip {
  position: absolute;
  z-index: 5;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 8px;
}
.chip--id {
  top: 4%; right: 2%;
  color: var(--brand-deep);
  border-color: var(--border-mint-2);
  background: var(--mint-wash);
}
.chip--match { top: 19.5%; left: -12%; color: var(--text); }
.dot--live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  60% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.float-a { animation: float-a 5s ease-in-out infinite; }
.float-b { animation: float-a 6s 1.2s ease-in-out infinite; }
@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* phone — mirrors the real app's Light Cyber Mint chat screen */
.phone {
  width: min(300px, 78vw);
  border: 1px solid #DCE3E8;
  border-radius: 44px;
  background: #EDF1F3;
  padding: 9px;
  box-shadow:
    var(--shadow-hero),
    0 0 0 5px rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(3deg);
}
.phone__notch {
  width: 84px; height: 22px;
  background: #0F172A;
  border-radius: 999px;
  margin: 4px auto 8px;
}
.phone__screen {
  position: relative;
  background: var(--surface);
  border-radius: 34px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 430px;
  border: 1px solid var(--border);
}
.phscreen__header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pet-avatar--sm {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--mint-wash);
  border: 1px solid var(--border-mint);
  display: grid; place-items: center;
  overflow: hidden;
  flex: none;
}
.pet-avatar--sm img {
  width: 132%;
  height: auto;
  object-fit: contain;
  transform: translateY(9%);
}
/* the header text column must be allowed to shrink, or long names push
   the status line sideways instead of wrapping */
.phscreen__header > div:last-child { min-width: 0; }
.phscreen__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--text);
}
/* the pill's padding + border used to inflate the line box and bleed the
   name straight into the status line underneath it */
.lvl {
  flex: none;
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--brand-deep);
  background: var(--mint-wash);
  border: 1px solid var(--border-mint);
  padding: 1px 7px;
  border-radius: 999px;
}
.phscreen__status {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  margin-top: 3px;
  color: var(--tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phscreen__chat {
  flex: 1;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
}
.msg--pet {
  align-self: flex-start;
  background: var(--mint-wash);
  border: 1px solid var(--border-mint);
  border-bottom-left-radius: 6px;
  color: var(--text);
}
.msg--me {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 6px;
  font-weight: 500;
  box-shadow: 0 2px 10px var(--brand-glow);
}
.msg.typing { display: flex; gap: 4px; padding: 13px 15px; }
.msg.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  animation: typing 1.2s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.phscreen__input {
  display: flex; align-items: center; gap: 10px;
  margin: 0 12px 14px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
}
.identity-pill {
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
}
.identity-pill--real { background: var(--brand); color: #fff; }
.phscreen__placeholder { font-size: 12.5px; color: var(--tertiary); }

/* ---- real app screenshots ----------------------------------------------
   Every screenshot is optional. The markup ships a CSS fallback (hero) or
   stays hidden (`.shotwrap`) until script.js confirms the file decoded, so a
   missing PNG degrades quietly instead of leaving a broken-image box.       */

.phone__shot { display: none; }
.phone.has-shot .phone__notch,
.phone.has-shot .phone__screen { display: none; }
.phone.has-shot .phone__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}

.shotwrap { display: none; }
.shotwrap.is-ready { display: block; }
.shotwrap figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.feature--deep .shotwrap figcaption { color: var(--ink-tertiary); }

.device {
  width: min(300px, 78vw);
  margin: 0 auto;
  padding: 9px;
  border-radius: 44px;
  background: #EDF1F3;
  border: 1px solid #DCE3E8;
  box-shadow: var(--shadow-hero), 0 0 0 5px rgba(255, 255, 255, 0.9);
}
.device--dark {
  background: #1B132D;
  border-color: #2A2140;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(139, 92, 246, 0.14);
}
.device__screen {
  display: block;
  border-radius: 35px;
  overflow: hidden;
  background: #fff;
}
.device__screen img { width: 100%; height: auto; display: block; }
/* these two screens are mostly empty below the fold — crop to the dense part */
.device--crop .device__screen { height: 330px; }
.device--crop .device__screen img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device--crop-tall .device__screen { height: 430px; }

.hero__pet {
  position: absolute;
  bottom: -16%;
  left: -14%;
  z-index: 6;
  transform: rotate(-4deg);
}

.hero__scrollhint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--tertiary);
  letter-spacing: 0.2em;
  animation: hint 2s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ============ MARQUEE ============ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 185, 129, 0.7);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ FEATURES ============ */

.feature { padding: clamp(90px, 12vw, 160px) var(--pad); position: relative; }

.feature__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.feature__inner--flip .feature__copy { order: 2; }
.feature__inner--flip .feature__demo { order: 1; }
.feature__inner--stack { grid-template-columns: minmax(0, 1fr); }
.feature__demo--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 44px);
}

.feature h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}
.feature h2 em { color: var(--brand); font-style: italic; }
.feature__copy > p { max-width: 460px; color: var(--sub); margin-bottom: 12px; }
.feature__copy > p em { color: var(--brand-strong); font-style: italic; }
.feature__copy strong { color: var(--text); font-weight: 600; }
.feature__copy--center { text-align: center; margin-bottom: 56px; }
.feature__copy--center h2 { margin-bottom: 0; }
/* the base rule caps `.feature__copy > p` at 460px; in the centered variant
   that box has to be centred too, or the eyebrow tag hugs the left edge
   while the headline underneath it looks centred. */
.feature__copy--center > p { margin-left: auto; margin-right: auto; }
.feature__copy--center .roster__sub { color: var(--sub); }

/* mint-wash variant (zZuPer Talk) */
.feature--paper {
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(16, 185, 129, 0.10), transparent 70%),
    var(--mint-wash);
}
.feature--paper h2 { color: var(--text); }
.feature--paper h2 em { color: var(--brand-strong); }
.feature--paper .feature__copy > p { color: #47624F; }
.feature--paper .tag { color: var(--brand-deep); }

/* ---- Dark Luxury Purple variant (the app's other theme engine) ---- */
.feature--deep {
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(139, 92, 246, 0.20), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(16, 185, 129, 0.10), transparent 70%),
    var(--ink);
  color: var(--ink-text);
}
.feature--deep h2 { color: var(--ink-text); }
.feature--deep h2 em { color: var(--ink-brand-2); font-style: italic; }
.feature--deep .tag { color: var(--ink-brand-2); }
.feature--deep .feature__copy > p { color: var(--ink-sub); }
.feature--deep .feature__copy > p em { color: var(--ink-brand-2); }
.feature--deep .feature__copy strong { color: var(--ink-text); }
.feature--deep .roster__sub { color: var(--ink-sub); }
.feature--deep .hud::before,
.feature--deep .hud::after { border-color: var(--ink-brand); }

/* --- identity demo --- */
.identity-demo {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.identity-demo__bubblewrap { min-height: 120px; display: grid; place-items: center; }
.demo-bubble {
  display: flex; align-items: flex-start; gap: 14px;
  text-align: left;
  transition: opacity .25s, transform .25s;
}
.demo-bubble.is-swapping { opacity: 0; transform: translateY(8px) scale(.97); }
.demo-bubble__avatar {
  width: 52px; height: 52px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}
.demo-bubble.is-pet .demo-bubble__avatar {
  background: var(--mint-wash);
  border-color: var(--border-mint-2);
}
.demo-bubble__name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tertiary);
  margin-bottom: 6px;
  letter-spacing: .08em;
}
.demo-bubble__text {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 6px 18px 18px 18px;
  font-size: 15px;
  max-width: 300px;
  color: var(--text);
}
.demo-bubble.is-pet .demo-bubble__text {
  background: var(--mint-wash);
  border-color: var(--border-mint);
}

.seg {
  position: relative;
  display: inline-flex;
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  background: var(--surface-2);
}
.seg__opt {
  position: relative;
  z-index: 2;
  border: 0;
  background: none;
  color: var(--sub);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s;
}
.seg__opt.is-active { color: #fff; }
.seg__thumb {
  position: absolute;
  z-index: 1;
  top: 5px; bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 2px 10px var(--brand-glow);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.seg.is-pet .seg__thumb { transform: translateX(100%); }
.identity-demo__hint { margin-top: 16px; font-size: 11px; color: var(--tertiary); }

/* --- zZuPer Talk / level card --- */
.memlist { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.memlist li {
  font-size: 12.5px;
  color: var(--brand-deep);
  background: var(--surface);
  border: 1px solid var(--border-mint);
  border-radius: 12px;
  padding: 9px 14px;
  width: fit-content;
}

.levelcard {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.5deg);
}
.levelcard__top { display: flex; gap: 18px; align-items: center; }
.levelcard__pet {
  width: 96px;
  flex: none;
  display: grid;
  place-items: end center;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
}
.levelcard__pet img {
  width: 100%;
  height: auto;
  display: block;
  animation: art-bob 3.6s ease-in-out infinite;
}
.levelcard__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.levelcard__lv { font-size: 12px; color: var(--brand-strong); margin: 4px 0 10px; }
.levelcard__meta { flex: 1; }
.xpbar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.xpbar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34D399, var(--brand-strong));
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.is-in .xpbar__fill, .levelcard.is-in .xpbar__fill { width: 83%; }
.levelcard__quote {
  margin-top: 24px;
  font-size: 15.5px;
  color: var(--sub);
  font-style: italic;
}
.levelcard__badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.levelcard__badges span {
  font-size: 11px;
  color: var(--brand-deep);
  background: var(--mint-wash);
  border: 1px solid var(--border-mint);
  padding: 5px 12px;
  border-radius: 999px;
}

/* --- pulse radar (light surface) --- */
.radar {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border-mint);
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(16, 185, 129, 0.10), rgba(255, 255, 255, 0) 66%),
    var(--surface);
  box-shadow: var(--shadow-card);
}
.radar__rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 50%;
}
.radar__rings i:nth-child(1) { inset: 18%; }
.radar__rings i:nth-child(2) { inset: 34%; }
.radar__rings i:nth-child(3) { inset: 46%; }
.radar__sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.26), transparent 22%);
  animation: sweep 4s linear infinite;
  border-radius: 50%;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__me {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
}
.radar__blip {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.radar__blip--1 { top: 26%; left: 68%; animation: blip 4s linear infinite; }
.radar__blip--2 { top: 68%; left: 24%; animation: blip 4s 2s linear infinite; }
@keyframes blip {
  0%, 10% { opacity: 0.2; }
  16% { opacity: 1; box-shadow: 0 0 14px var(--brand-glow); }
  50%, 100% { opacity: 0.2; box-shadow: none; }
}
.radar__matchline {
  position: absolute;
  top: 33%; left: 52%;
  width: 24%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px);
  transform: rotate(-32deg);
  transform-origin: left center;
  opacity: 0.8;
}

/* pulse: intent chip + phase timeline */
.pulsewrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.intentchip {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--brand-deep);
  border: 1px solid var(--border-mint-2);
  background: var(--mint-wash);
  border-radius: 999px;
  padding: 10px 18px;
}
.phases { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.phase {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  color: var(--tertiary);
  background: var(--surface);
  transition: all 0.4s;
}
.phase.is-on {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
}

/* --- roam: routed post card (lives inside the dark section) --- */
.visitcard {
  border: 1px solid var(--ink-line);
  border-radius: 28px;
  background: var(--ink-3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.visitcard__map {
  position: relative;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
  border-bottom: 1px solid var(--ink-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse 80% 90% at 60% 0%, rgba(139, 92, 246, 0.22), transparent 70%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}
.visitcard__map svg { display: block; width: 100%; height: auto; }
.vroute {
  fill: none;
  stroke: rgba(52, 211, 153, 0.65);
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
  animation: ants 1.1s linear infinite;
}
@keyframes ants { to { stroke-dashoffset: -13; } }
.vnode { fill: var(--ink-4); stroke: rgba(161, 161, 170, 0.55); stroke-width: 1; }
.vnode--live {
  fill: #34D399;
  stroke: none;
  animation: nodepulse 2.4s ease-in-out infinite;
}
.vnode--live.v2 { animation-delay: 0.8s; }
.vnode--live.v3 { animation-delay: 1.6s; }
@keyframes nodepulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.postchip {
  transform-box: fill-box;
  transform-origin: center;
  offset-path: path("M 30 160 C 90 60 150 180 210 90 S 330 60 370 40");
  offset-rotate: 0deg;
  animation: travel 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.postchip > rect:first-child {
  fill: #FFFFFF;
  stroke: rgba(15, 23, 42, 0.25);
  stroke-width: 1;
}
.postchip .pline { fill: #C7CFD6; }
.postchip .pdot { fill: var(--brand); }
@keyframes travel {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  97%, 100% { offset-distance: 100%; opacity: 0; }
}
.visitcard__pet {
  position: absolute;
  left: 3%;
  bottom: 6%;
}
.visitcard__maptag {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-tertiary);
}
.visitcard__log {
  min-height: 118px;
  padding: 20px clamp(20px, 3vw, 32px) 8px;
  font-size: 12px;
  line-height: 2.1;
  color: var(--ink-sub);
}
.visitcard__log .ln { display: block; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.visitcard__log .ln.is-on { opacity: 1; transform: none; }
.visitcard__log .ln::before { content: "> "; color: #34D399; }
.visitcard__reach {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink-line);
  padding: 16px clamp(20px, 3vw, 32px);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-tertiary);
}
.visitcard__reach b {
  color: #34D399;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.visitcard__reach .up { color: #34D399; font-style: normal; font-size: 10px; }

/* --- generic mono chip rows --- */
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chiprow span {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--sub);
}
.chiprow--paper span {
  border-color: var(--border-mint);
  color: var(--brand-deep);
  background: var(--surface);
}

/* --- roam duration selector --- */
.durationrow { display: flex; gap: 10px; padding: 18px clamp(20px, 3vw, 32px) 0; }
.durationrow span {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px dashed var(--ink-line);
  color: var(--ink-tertiary);
}
.durationrow span.is-on {
  border: 1px solid #34D399;
  color: #34D399;
  background: rgba(52, 211, 153, 0.10);
}

/* --- roster (10 companions × 3 stages, dark section) --- */
.roster__sub { max-width: 620px; margin: 18px auto 0; }
.roster__sub .mono { color: var(--ink-tertiary); font-size: 0.92em; }

/* section intro: real sign-up screen beside the headline */
.rosterintro {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 60px;
}
.rosterintro__copy { text-align: left; }
.rosterintro__copy h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin-bottom: 22px;
}
.rosterintro__copy .roster__sub { margin: 0; max-width: 560px; }
/* when the screenshot is missing the grid would leave a 320px hole */
.rosterintro:not(:has(.shotwrap.is-ready)) { grid-template-columns: minmax(0, 1fr); }

/* stage switcher */
.stagebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 32px 0 0;
}
.stageseg {
  position: relative;
  display: inline-flex;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 5px;
  background: rgba(22, 16, 36, 0.8);
  backdrop-filter: blur(8px);
}
.stageseg__opt {
  position: relative;
  z-index: 2;
  border: 0;
  background: none;
  color: var(--ink-sub);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s;
}
.stageseg__opt.is-active { color: #fff; }
.stageseg__thumb {
  position: absolute;
  z-index: 1;
  top: 5px; bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink-brand), #C026D3);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.stageseg[data-stage="youth"] .stageseg__thumb { transform: translateX(100%); }
.stageseg[data-stage="adult"] .stageseg__thumb { transform: translateX(200%); }

.stagenote {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-sub);
  transition: opacity 0.22s;
}
.stagenote b { color: var(--ink-brand-2); font-weight: 600; }
.stagenote.is-swapping { opacity: 0; }

/* pet cards */
/* minmax(0,1fr) — NOT 1fr. A bare 1fr floors each column at the content's
   min-width, and the artwork's intrinsic width is 320px, so five columns
   demanded 1750px and burst straight out of the 1180px container. */
.roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.pcard {
  position: relative;
  min-width: 0;
  border: 1px solid var(--ink-line);
  background: linear-gradient(180deg, var(--ink-4) 0%, var(--ink-3) 55%);
  border-radius: 24px;
  padding: 0 14px 22px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.pcard::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 78%; height: 120px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.32), transparent 68%);
  opacity: 0.7;
  transition: opacity 0.3s ease, background 0.3s ease;
  pointer-events: none;
}
.pcard:hover {
  transform: translateY(-10px);
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.5);
}
.pcard:hover::before {
  opacity: 1;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.34), transparent 68%);
}

/* hover scale lives on the wrapper, the idle bob on the image — an animated
   transform always beats a transitioned one, so they must not share an element */
.pcard__art {
  position: relative;
  height: 158px;
  margin-top: -14px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.pcard:hover .pcard__art { transform: scale(1.07) translateY(-4px); }

/* `max-height:100%` did not clamp this grid item — the art rendered at its
   full intrinsic 320×460 and painted straight over the name and MBTI chip
   below it. A definite height + object-fit is unambiguous. */
.pcard__art img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s ease;
  animation: art-bob 4.2s ease-in-out infinite;
}
@keyframes art-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.pcard:nth-child(2n) .pcard__art img { animation-delay: -0.7s; }
.pcard:nth-child(3n) .pcard__art img { animation-delay: -1.5s; }
.pcard__art img.is-swapping { opacity: 0; }

.pcard h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  margin: 12px 0 9px;
  color: var(--ink-text);
}
.pcard__mbti {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-brand-2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.14);
  border-radius: 999px;
  padding: 3px 10px;
}
.pcard__trait {
  font-size: 12px;
  color: var(--ink-sub);
  margin: 10px 0 8px;
  line-height: 1.4;
}
.pcard__sound {
  font-size: 10.5px;
  line-height: 1.6;
  color: #34D399;
  letter-spacing: 0.02em;
}

/* ============ EXTRAS STRIP ============ */

.extras {
  padding: clamp(52px, 7vw, 84px) var(--pad);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.extras__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.xitem__k {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--brand-deep);
  background: var(--mint-wash);
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.xitem p { font-size: 14.5px; color: var(--sub); }

/* --- privacy bento (light) --- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bcard { grid-column: span 2; }
.bcard--wide { grid-column: span 3; }
.bcard {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bcard:hover {
  transform: translateY(-6px);
  border-color: var(--border-mint-2);
  box-shadow: var(--shadow-lift);
}
.bcard__icon {
  height: 54px;
  display: flex; align-items: center;
  font-size: 20px;
  color: var(--brand-strong);
  letter-spacing: 0.06em;
}
.bcard h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bcard p { font-size: 14.5px; color: var(--sub); }

.miniswitch {
  width: 52px; height: 30px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.miniswitch i {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tertiary);
  transition: transform .25s cubic-bezier(.22,1,.36,1), background .25s;
}
.miniswitch.is-on { background: var(--brand); border-color: var(--brand); }
.miniswitch.is-on i { transform: translateX(22px); background: #fff; }

/* ============ CLAIM (mint) ============ */

.claim {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 55%, #047857 100%);
  color: #fff;
  padding: clamp(90px, 12vw, 150px) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.claim::before {
  content: "№№№№№№№№";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40vw;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  pointer-events: none;
}
.claim__inner { position: relative; max-width: 860px; margin: 0 auto; }

.odometer {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 30px;
}
.odometer__hash {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.85);
}
.odo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 1;
  background: #FFFFFF;
  color: var(--brand-deep);
  border-radius: 16px;
  padding: 0.08em 0.12em;
  min-width: 0.85em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 30px rgba(4, 78, 56, 0.28);
}
.claim__h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 20px;
}
.claim__p { max-width: 560px; margin: 0 auto; font-size: 16.5px; color: rgba(255, 255, 255, 0.88); }

/* ============ DOWNLOAD ============ */

.download {
  padding: clamp(100px, 13vw, 170px) var(--pad);
  text-align: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(16, 185, 129, 0.14), transparent 70%),
    var(--bg);
}
.download__inner { max-width: 760px; margin: 0 auto; }
.download__pet { display: flex; justify-content: center; margin-bottom: 30px; }
.download h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.5vw, 88px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}
.download__sub {
  margin-top: 16px;
  color: var(--sub);
  font-size: 16px;
}
.qrrow {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  margin: 48px 0 40px;
  flex-wrap: wrap;
}
.qrbox p { margin-top: 14px; font-size: 11px; letter-spacing: 0.1em; color: var(--text); }
.qrbox__soon { color: var(--tertiary); letter-spacing: 0.02em; text-transform: lowercase; }
.qr {
  width: 168px; height: 168px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 1px;
  box-shadow: var(--shadow-lift);
}
.qr b { background: var(--text); border-radius: 1px; }

/* Real, scannable QR. Overrides the decorative grid above.
   The white background is hard-coded on purpose: a QR must stay
   dark-on-white to be readable, so it must not follow a theme token. */
.qr--live {
  display: block;
  padding: 12px;
  background: #FFFFFF;
  line-height: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.qr--live img { width: 100%; height: 100%; display: block; }
.qr--live:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--brand-glow);
}
.qrbox__live { color: var(--brand-strong); letter-spacing: 0.02em; text-transform: lowercase; }

.download__badges { justify-content: center; }

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px var(--pad) 60px;
  text-align: center;
  background: var(--surface);
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  margin-bottom: 14px;
  color: var(--text);
}
.footer__line { font-size: 12px; color: var(--sub); }
.footer__line a { color: var(--text); text-decoration: none; }
.footer__line a:hover { color: var(--brand-strong); }
.footer__tiny { margin-top: 10px; font-size: 11px; color: var(--tertiary); }

/* ============ DOC PAGES (about / legal) ============ */

.docwrap {
  padding: 150px var(--pad) 100px;
  background:
    radial-gradient(ellipse 55% 32% at 50% 0%, rgba(16, 185, 129, 0.10), transparent 70%),
    var(--bg);
}
.doc { max-width: 800px; margin: 0 auto; }

.doc h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text);
}
.doc__meta {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--tertiary);
}
.doc__notice {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px dashed var(--border-mint-2);
  background: var(--mint-wash);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--brand-deep);
}
.doc__intro { margin-top: 34px; font-size: 17px; color: var(--sub); }

/* quick-summary box */
.doc__tldr {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
.doc__tldr h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brand-strong);
  margin-bottom: 14px;
}
.doc__tldr ul { list-style: none; }
.doc__tldr li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 14.5px;
  color: var(--sub);
}
.doc__tldr li::before { content: "◆"; position: absolute; left: 0; color: var(--brand); font-size: 10px; top: 4px; }

/* body prose */
.doc__body { margin-top: 56px; counter-reset: sec; }
.doc__body h2 {
  counter-increment: sec;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.015em;
  margin: 54px 0 16px;
  color: var(--text);
}
.doc__body h2::before {
  content: counter(sec, decimal-leading-zero) " // ";
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand-strong);
  margin-bottom: 8px;
}
.doc__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17.5px;
  margin: 28px 0 10px;
  color: var(--text);
}
.doc__body p { font-size: 15.5px; color: var(--sub); margin-bottom: 13px; }
.doc__body ul { padding-left: 22px; margin: 0 0 16px; }
.doc__body li { font-size: 15px; color: var(--sub); margin-bottom: 8px; }
.doc__body li::marker { color: var(--brand); }
.doc__body strong { color: var(--text); font-weight: 600; }
.doc__body a { color: var(--brand-strong); text-decoration: none; }
.doc__body a:hover { text-decoration: underline; }
.doc__body .mono-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tertiary);
  letter-spacing: 0.04em;
}
.doc__body ul ul { margin: 8px 0 0; }

/* pulled-out statement — the sentence a reader must not skim past */
.doc__callout {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--mint-wash);
  font-size: 15.5px;
  color: var(--text);
}
.doc__callout strong { color: var(--brand-deep); }

/* legal-basis table — scrolls on its own rather than bursting the page */
.doc__table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.doc__table th,
.doc__table td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  min-width: 150px;
}
.doc__table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--mint-wash);
  font-weight: 500;
}
.doc__table td { color: var(--sub); }

/* cross-links between docs */
.dochips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.dochips a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sub);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.dochips a:hover, .dochips a.is-here {
  color: var(--brand-deep);
  border-color: var(--border-mint-2);
  background: var(--mint-wash);
}

/* about-page extras */
.doc__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.doc__stats span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--brand-deep);
  border: 1px solid var(--border-mint);
  background: var(--mint-wash);
  border-radius: 999px;
  padding: 8px 16px;
}
.doc .bento { margin-top: 26px; }

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .nav__links { display: none; }

  .hero { padding-top: 110px; }
  .hero__inner { grid-template-columns: 1fr; }

  /* one column: the phone now fills the stage, so the floating chips and the
     mascot have nowhere to sit beside it. Give them a band above and a slot
     below instead of letting them land on the screen. */
  .hero__stage {
    min-height: 0;
    margin-top: 20px;
    padding-top: 54px;
    flex-direction: column;
    align-items: center;
  }
  .chip--id { top: 0; right: 0; }
  .chip--match { top: 0; left: 0; }
  .hero__pet {
    position: static;
    margin-top: 20px;
    transform: rotate(-4deg);
  }

  .feature__inner { grid-template-columns: 1fr; }
  .feature__inner--flip .feature__copy { order: 1; }
  .feature__inner--flip .feature__demo { order: 2; }

  .bento { grid-template-columns: 1fr; }
  .bcard, .bcard--wide { grid-column: span 1; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .extras__inner { grid-template-columns: 1fr; }

  .rosterintro { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .rosterintro__copy { text-align: center; }
  .rosterintro__copy .roster__sub { margin-inline: auto; }
  .stagebar { align-items: center; }
}

@media (max-width: 620px) {
  .roster { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__art { height: 124px; }
  .stageseg__opt { padding: 10px 16px; font-size: 11.5px; }
  .levelcard__pet { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
