:root {
  --bg: #050505;
  --ink: #f6f1e8;
  --muted: #9a9288;
  --line: rgba(246, 241, 232, 0.1);
  --amber: #e8a84a;
  --copper: #c47a3a;
  --violet: #a78bfa;
  --panel: rgba(14, 14, 16, 0.72);
  --font-d: "Fraunces", Georgia, serif;
  --font-b: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  overflow: hidden;
}
body.rs-light-paywall { /* reserved */ }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--amber); text-decoration: none; }

#shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

/* Quiet scrollbars */
.app-main,
.discovery-page,
.paywall-page,
.checkout-page,
.gate-page {
  scrollbar-width: thin;
  scrollbar-color: rgba(246,241,232,0.18) transparent;
}
.app-main::-webkit-scrollbar,
.discovery-page::-webkit-scrollbar,
.paywall-page::-webkit-scrollbar,
.checkout-page::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.app-main::-webkit-scrollbar-track,
.discovery-page::-webkit-scrollbar-track,
.paywall-page::-webkit-scrollbar-track,
.checkout-page::-webkit-scrollbar-track {
  background: transparent;
}
.app-main::-webkit-scrollbar-thumb,
.discovery-page::-webkit-scrollbar-thumb,
.paywall-page::-webkit-scrollbar-thumb,
.checkout-page::-webkit-scrollbar-thumb {
  background: rgba(246,241,232,0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.app-main::-webkit-scrollbar-thumb:hover,
.discovery-page::-webkit-scrollbar-thumb:hover {
  background: rgba(246,241,232,0.28);
  background-clip: padding-box;
}



.screen {
  height: 100%;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  animation: rise 0.55s ease both;
}

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

/* Splash */
.splash { text-align: center; }
.mark {
  width: 88px; height: 88px; margin: 0 auto 22px;
  position: relative;
  display: grid; place-items: center;
}
.mark::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(196, 122, 58, 0.28), transparent 70%);
  filter: blur(12px);
  animation: pulse 2.4s ease-in-out infinite;
}
.mark img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.splash h1 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.laurel {
  margin-top: 48px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #e0b24a;
  font-size: 0.72rem;
  font-weight: 700;
  max-width: 240px;
  margin-inline: auto;
  opacity: 0.9;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Onboarding */
.ob {
  width: min(420px, 100%);
  height: min(860px, 100%);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0;
}
.ob-video {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0c;
  aspect-ratio: 3 / 4;
  max-height: 62vh;
}
.ob-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ob-video::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to top, #050505, transparent);
  pointer-events: none;
}
.ob-copy { text-align: center; padding: 8px 8px 0; }
.ob-enter {
  animation: obEnter 0.55s ease both;
}
.ob-leave {
  animation: obLeave 0.3s ease forwards;
  pointer-events: none;
}
.ob-fade-out {
  animation: obFadeOut 0.28s ease forwards;
  pointer-events: none;
}
.ob-fade-in {
  animation: obFadeIn 0.45s ease both;
}
@keyframes obEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes obLeave {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes obFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes obFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-enter, .ob-leave, .ob-fade-out, .ob-fade-in {
    animation: none;
  }
}
.dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(246,241,232,0.25);
}
.dots i.on {
  background: linear-gradient(135deg, #c4b5fd, #e8a84a);
}
.ob-copy h2 {
  font-family: var(--font-d);
  font-size: 1.45rem;
  margin: 0 0 6px;
}
.ob-copy p {
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 32ch;
}
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  color: #fff;
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-pill:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-pill.ghost {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--ink);
}
.btn-pill:disabled { opacity: 0.5; cursor: wait; }
.skip {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Finale */
.finale { text-align: center; width: min(420px, 100%); }
.finale h2 {
  font-family: var(--font-d);
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.finale .sub { color: var(--muted); margin: 0 0 28px; font-size: 0.92rem; }
.finale-row {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 28px;
}
.finale-row img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* Auth */
.auth-card {
  width: min(380px, 100%);
  padding: 28px 24px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.auth-card h2 {
  font-family: var(--font-d);
  font-size: 1.55rem;
  margin: 0 0 8px;
  text-align: center;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 22px;
}
.field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  margin-bottom: 12px;
  outline: none;
}
.field:focus { border-color: rgba(232,168,74,0.55); }
.auth-msg {
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}
.code-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.code-row input {
  width: 44px; height: 52px; text-align: center;
  font-size: 1.25rem; font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
}
.google-slot {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  min-height: 44px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sign-out {
  margin-left: 8px;
  font-size: 0.72rem;
}
.access-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232,168,74,0.35);
  color: var(--amber, #e8a84a);
  margin-right: 8px;
}
.access-pill.pro {
  border-color: rgba(196,181,253,0.45);
  color: #c4b5fd;
}
.paywall-card .price-grid { display: none; }
.stage-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Studio shell */
.studio {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  padding: 14px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.studio-scan .stage {
  width: 100%;
}
@media (max-width: 960px) {
  .studio {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow: auto;
  }
  .rail { max-height: 28vh; overflow: auto; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rail-head, .detail-head, .stage-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.rail-head strong, .detail-head strong, .stage-head strong {
  font-family: var(--font-d);
  font-size: 1.05rem;
}
.chip {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.85;
}

.collection {
  padding: 10px;
  display: grid;
  gap: 8px;
  overflow: auto;
}
.tile {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tile:hover, .tile.active {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
}
.tile img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 12px;
  background: #111;
}
.tile b { display: block; font-size: 0.88rem; }
.tile span { color: var(--muted); font-size: 0.72rem; }
.empty {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 12px;
  text-align: center;
}

.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.viewfinder {
  margin: 16px;
  border-radius: 22px;
  border: 1px dashed rgba(232,168,74,0.28);
  background: rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 280px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.viewfinder.drag {
  border-color: var(--amber);
  background: rgba(232,168,74,0.06);
}
.viewfinder img.preview {
  width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;
}
.brackets {
  position: absolute; inset: 18%;
  pointer-events: none;
}
.brackets span {
  position: absolute; width: 28px; height: 28px;
  border: 2px solid rgba(246,241,232,0.75);
}
.brackets .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brackets .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.brackets .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.brackets .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scanline {
  position: absolute; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  box-shadow: 0 0 18px rgba(167,139,250,0.8);
  animation: scan 2.4s ease-in-out infinite;
  opacity: 0;
}
.viewfinder.scanning .scanline { opacity: 1; }
.viewfinder.scanning .preview { filter: brightness(0.45) saturate(0.85); }
.analysis-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: radial-gradient(ellipse at center, rgba(8,6,14,0.35), rgba(5,5,5,0.72));
  text-align: center;
}
.analysis-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #c4b5fd;
  border-right-color: #e8a84a;
  animation: analysisSpin 1.1s linear infinite;
  margin-bottom: 6px;
  box-shadow: 0 0 28px rgba(196,181,253,0.35);
}
.analysis-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,168,74,0.9);
  font-weight: 600;
}
.analysis-step {
  margin: 0;
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f6f1e8;
  max-width: 280px;
  line-height: 1.35;
  min-height: 2.7em;
}
.analysis-step.flash {
  animation: analysisFlash 0.45s ease;
}
.analysis-elapsed {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
@keyframes analysisSpin {
  to { transform: rotate(360deg); }
}
@keyframes analysisFlash {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scan {
  0% { top: 18%; }
  50% { top: 78%; }
  100% { top: 18%; }
}
.vf-copy { text-align: center; z-index: 1; padding: 20px; }
.vf-copy p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.summary-bullets {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  color: #e8e0d4;
  font-size: 0.88rem;
  line-height: 1.45;
}
.summary-bullets li { margin-bottom: 4px; }
.value-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.learn-more {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.learn-more div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.learn-more strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.learn-more span {
  font-size: 0.78rem;
  color: var(--muted);
}
.web-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.web-sources a,
.web-sources span {
  font-size: 0.72rem;
  color: rgba(196,181,253,0.95);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(196,181,253,0.25);
}
.stage-actions {
  display: flex; gap: 10px; padding: 0 16px 16px;
}
.stage-actions .btn-pill { flex: 1; }
.hint {
  margin: 0 16px 12px;
  width: calc(100% - 32px);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
}

.detail-body { padding: 16px; overflow: auto; }
.detail-body h3 {
  font-family: var(--font-d);
  font-size: 1.45rem;
  margin: 0 0 6px;
}
.meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 14px; }
.props {
  display: grid; gap: 8px; margin: 14px 0;
}
.props div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.props span { color: var(--muted); }
.user-pill {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pro gate interstitial — RockScan light */
.gate-page {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(167,139,250,0.16), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(232,168,74,0.14), transparent 45%),
    #faf7f2;
  padding: 24px;
  color: var(--pw-ink);
}
.gate-card { text-align: center; max-width: 420px; }
.gate-icon {
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 12px 36px rgba(80,50,20,0.12);
}
.gate-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}
.gate-card h1 {
  font-family: var(--font-d);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  margin: 0 0 10px;
  color: var(--pw-ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.gate-copy {
  margin: 0 auto;
  color: #6b6570;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 34ch;
}
.gate-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}
.gate-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.35;
  animation: gate-pulse 1.2s ease infinite;
}
.gate-dots i:nth-child(2) { animation-delay: 0.2s; }
.gate-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes gate-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.leave-fade { animation: leaveFade 0.42s ease both; }
@keyframes leaveFade {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Packages + checkout — RockScan light (amber / copper / violet) */
.paywall-page,
.checkout-page {
  --pw-bg: #08080a;
  --pw-ink: #f6f1e8;
  --pw-muted: #9a9288;
  --pw-card: rgba(255,255,255,0.05);
  --pw-line: rgba(246, 241, 232, 0.1);
  --pw-violet: #8b6cf0;
  --pw-lilac: #c4b5fd;
  --pw-mint: #3dbe8c;
  height: 100%;
  overflow: auto;
  background:
    radial-gradient(ellipse at 12% -10%, rgba(196,181,253,0.28), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(232,168,74,0.18), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(61,190,140,0.08), transparent 45%),
    var(--pw-bg);
  color: var(--pw-ink);
}
.paywall-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(8, 8, 10, 0.88);
  border-bottom: 1px solid var(--pw-line);
  backdrop-filter: blur(14px);
}
.paywall-back {
  justify-self: start;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pw-muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.paywall-back:hover { background: rgba(26,22,32,0.05); color: var(--pw-ink); }
.paywall-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}
.paywall-brand img { border-radius: 7px; }
.paywall-brand strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--pw-ink);
}
.paywall-user {
  justify-self: end;
  font-size: 0.75rem;
  color: var(--pw-muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Three-phone hero on packages page */
.paywall-hero {
  width: min(920px, calc(100% - 24px));
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.paywall-phones {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 8px 0 4px;
}
.paywall-phones-glow {
  position: absolute;
  inset: 8% 10% 12%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(196,181,253,0.35), transparent 70%),
    radial-gradient(ellipse at 40% 50%, rgba(232,168,74,0.18), transparent 55%);
  filter: blur(18px);
  pointer-events: none;
}
.paywall-phones-stack {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 280px;
}
.paywall-phone {
  margin: 0;
  flex: 0 0 auto;
}
.paywall-phone.left {
  transform: scale(0.86) translateY(10px);
  z-index: 1;
  opacity: 0.92;
  margin-right: -28px;
}
.paywall-phone.center {
  transform: scale(1);
  z-index: 3;
  margin: 0 -10px;
  animation: pwPhoneLift 6.5s ease-in-out infinite;
}
.paywall-phone.right {
  transform: scale(0.9) translateY(6px);
  z-index: 2;
  opacity: 0.95;
  margin-left: -28px;
}
@keyframes pwPhoneLift {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1) translateY(-6px); }
}
.pw-iphone { width: min(148px, 26vw); }
.paywall-phone.left .pw-iphone { width: min(128px, 22vw); }
.paywall-phone.right .pw-iphone { width: min(136px, 24vw); }
.pw-iphone-shell {
  position: relative;
  border-radius: 28px;
  padding: 7px 6px 9px;
  background: linear-gradient(160deg, #52525a 0%, #2a2a2e 14%, #101012 42%, #1c1c1f 72%, #45454b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 16px 36px rgba(26,22,32,0.22);
}
.pw-iphone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 390 / 844;
}
.pw-iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pw-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 10px;
  border-radius: 999px;
  background: #0a0a0b;
  z-index: 2;
}
.pw-iphone-btn {
  position: absolute;
  background: #2a2a2e;
  border-radius: 2px;
}
.pw-silent, .pw-vol-up, .pw-vol-down {
  left: -2px;
  width: 3px;
}
.pw-silent { top: 18%; height: 14px; }
.pw-vol-up { top: 28%; height: 24px; }
.pw-vol-down { top: 42%; height: 24px; }
.pw-power {
  right: -2px;
  top: 30%;
  width: 3px;
  height: 36px;
}
.paywall-ai-line {
  margin: 0;
  text-align: center;
  max-width: 44ch;
  font-size: 0.88rem;
  color: var(--pw-muted);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .paywall-phones-stack { min-height: 220px; }
  .paywall-phone.left { margin-right: -36px; }
  .paywall-phone.right { margin-left: -36px; }
}

.paywall-main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}
.paywall-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.paywall-progress i {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(26,22,32,0.08);
}
.paywall-progress i.on {
  background: linear-gradient(90deg, var(--copper), var(--amber), var(--violet));
}
.paywall-main h1 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  margin: 0 0 8px;
  color: var(--pw-ink);
  letter-spacing: -0.03em;
}
.paywall-sub {
  margin: 0 0 26px;
  color: var(--pw-muted);
  font-size: 0.95rem;
}
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; }
}
.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pw-card);
  border: 1.5px solid var(--pw-line);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  color: inherit;
}
.pkg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border-color: rgba(196,122,58,0.35);
}
.pkg-card.featured {
  border-color: var(--pw-violet);
  box-shadow:
    0 16px 44px rgba(139,108,240,0.14),
    0 0 0 1px rgba(139,108,240,0.2);
}
.pkg-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pw-violet), #6d4fd6);
  color: #fff;
}
.pkg-card h3 {
  margin: 8px 0 6px;
  font-size: 1.15rem;
  color: var(--pw-ink);
}
.pkg-price {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pkg-price strong {
  font-family: var(--font-d);
  font-size: 2.1rem;
  color: var(--pw-ink);
}
.pkg-anchor {
  font-size: 0.95rem;
  color: #9a948c;
  text-decoration: line-through;
  font-weight: 500;
}
.pkg-save {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(167,139,250,0.2);
  padding: 3px 8px;
  border-radius: 999px;
}
.pkg-cadence {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--pw-muted);
}
.pkg-blurb {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--pw-muted);
  line-height: 1.4;
  min-height: 2.6em;
}
.pkg-what {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pw-muted);
}
.pkg-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}
.pkg-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--pw-ink);
  line-height: 1.35;
}
.pkg-check {
  color: var(--pw-violet);
  font-weight: 800;
  flex: 0 0 auto;
}
.pkg-cta {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid rgba(26,22,32,0.12);
  background: var(--pw-card);
  color: var(--pw-ink);
  cursor: pointer;
}
.pkg-cta.primary {
  background: linear-gradient(135deg, var(--copper), var(--amber));
  border-color: transparent;
  color: #1a1208;
  box-shadow: 0 8px 22px rgba(196,122,58,0.28);
}
.pkg-cta.primary:hover { filter: brightness(1.05); }
.pkg-cta:disabled { opacity: 0.65; cursor: wait; }
.pkg-guarantee {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--copper);
  font-weight: 600;
}
.paywall-trust {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .paywall-trust { grid-template-columns: 1fr 1fr; }
}
.trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: var(--pw-card);
  border: 1px solid var(--pw-line);
}
.trust-item > span { font-size: 1rem; line-height: 1.2; }
.trust-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--pw-ink);
}
.trust-item em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--pw-muted);
  margin-top: 2px;
}
.paywall-stripe-bar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--pw-card);
  border: 1px solid var(--pw-line);
  font-size: 0.8rem;
  color: var(--pw-muted);
}
.stripe-mark b {
  color: #635bff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.paywall-page .auth-msg,
.checkout-page .auth-msg {
  color: #8a3b2a;
  text-align: center;
  margin: 16px 0 0;
}

/* Checkout — video first, then trust + summary */
.checkout-layout {
  width: min(1040px, calc(100% - 32px));
  margin: 22px auto 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-video-wrap {
  width: min(280px, 70%);
  margin: 0 0 22px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0b;
  box-shadow: 0 18px 48px rgba(26,22,32,0.18);
}
.checkout-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0a0a0b;
}
.checkout-left h1 {
  font-family: var(--font-d);
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  color: var(--pw-ink);
}
.checkout-lead {
  margin: 0 0 20px;
  color: var(--pw-muted);
  font-size: 0.95rem;
}
.pay-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.pay-method {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--pw-line);
  background: var(--pw-card);
}
.pay-method.selected {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,168,74,0.18);
}
.pay-method.muted { opacity: 0.72; }
.pay-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cfc8bc;
  margin-top: 2px;
  flex: 0 0 auto;
}
.pay-method.selected .pay-radio {
  border-color: var(--copper);
  box-shadow: inset 0 0 0 4px var(--amber);
}
.pay-method strong {
  display: block;
  font-size: 0.92rem;
  color: var(--pw-ink);
}
.pay-method em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--pw-muted);
  margin-top: 2px;
}
.checkout-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checkout-trust-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.checkout-trust-list strong {
  display: block;
  font-size: 0.88rem;
}
.checkout-trust-list em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--pw-muted);
  margin-top: 2px;
}
.summary-card {
  background: var(--pw-card);
  border: 1.5px solid var(--pw-line);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
  position: sticky;
  top: 72px;
}
.summary-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.summary-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pw-muted);
}
.summary-top h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.text-link {
  background: none;
  border: 0;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.text-link:hover { color: var(--amber); text-decoration: underline; }
.summary-price-row {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.summary-price-row strong {
  font-family: var(--font-d);
  font-size: 1.8rem;
  color: var(--copper);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  margin: 4px 0 14px;
  border-top: 1px solid var(--pw-line);
  border-bottom: 1px solid var(--pw-line);
  font-size: 0.9rem;
}
.summary-total b {
  font-family: var(--font-d);
  font-size: 1.35rem;
  color: var(--copper);
}
.summary-cta { margin-top: 4px; }

/* Full-page specimen result */
.result-page {
  height: 100%;
  overflow: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  max-width: 1100px;
  margin-inline: auto;
}
.result-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px) {
  .result-layout { grid-template-columns: 1fr; }
}
.result-hero {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0b;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.result-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}
.result-panel { padding: 8px 4px 24px; }
.result-panel h3 {
  font-family: var(--font-d);
  font-size: 2rem;
  margin: 0 0 8px;
}
.result-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}
.result-actions .btn-pill { flex: 1; }
.text-upgrade {
  display: block;
  margin: 4px 16px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.text-upgrade:hover { color: var(--amber); }

#app.boot-fade { opacity: 0; }
#app.boot-fade.boot-fade-in {
  opacity: 1;
  transition: opacity 0.55s ease;
}
.enter-fade { animation: rise 0.55s ease both; }


/* ===== Web studio shell — top navbar ===== */
.app-shell.web-app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
  width: 100%;
}
.app-topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topnav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.topnav-brand img { border-radius: 9px; }
.topnav-wordmark {
  font-family: var(--font-d);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #c4b5fd, #fb923c, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #120c18;
  background: linear-gradient(135deg, #c4b5fd, #e8a84a);
  flex-shrink: 0;
}
.pro-welcome {
  border-bottom: 1px solid rgba(196,181,253,0.28);
  background: linear-gradient(90deg, rgba(196,181,253,0.16), rgba(232,168,74,0.1));
}
.pro-welcome-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pro-welcome-inner strong {
  display: block;
  font-size: 0.95rem;
}
.pro-welcome-inner p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.pro-welcome-dismiss {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.pro-welcome-dismiss:hover { color: var(--ink); }
.topnav-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  width: fit-content;
  margin: 0 auto;
}
.topnav-tab {
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}
.topnav-tab:hover { color: var(--ink); }
.topnav-tab.on {
  color: var(--ink);
  background: rgba(167,139,250,0.18);
  box-shadow: inset 0 0 0 1px rgba(167,139,250,0.28);
}
.topnav-tab em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.25rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--muted);
  text-align: center;
}
.topnav-tab.on em {
  background: rgba(196,181,253,0.25);
  color: #e9e0ff;
}
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-shrink: 0;
}
.topnav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c47a3a, #e8a84a);
  color: #1a1208;
  white-space: nowrap;
}
.topnav-cta:hover { filter: brightness(1.06); }
.topnav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  background: rgba(167,139,250,0.2);
  border: 1px solid rgba(167,139,250,0.35);
  display: grid;
  place-items: center;
}
.topnav-avatar:hover { background: rgba(167,139,250,0.32); }

.app-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(167,139,250,0.12), transparent 42%),
    radial-gradient(ellipse at 10% 0%, rgba(232,168,74,0.08), transparent 36%),
    transparent;
}
.app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 32px 48px;
  width: min(1120px, 100%);
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.page-chrome {
  margin-bottom: 22px;
}
.page-chrome h1 {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  letter-spacing: -0.03em;
}
.page-chrome p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.web-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.search-field {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}
.search-field:hover { border-color: rgba(167,139,250,0.35); color: var(--ink); }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chip {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}
.quick-chip.primary {
  background: linear-gradient(135deg, #c47a3a, #e8a84a);
  border-color: transparent;
  color: #1a1208;
}
.quick-chip:hover { filter: brightness(1.06); }

.web-sec { margin-bottom: 34px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sec-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.sec-link {
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 600;
}
.vs { color: #fb923c; font-weight: 800; }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.dir-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  text-align: left;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dir-card:hover {
  border-color: rgba(167,139,250,0.4);
  transform: translateY(-1px);
}
.dir-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #121214;
}
.dir-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dir-card-copy {
  padding: 12px 12px 14px;
}
.dir-card strong { display: block; font-size: 0.95rem; }
.dir-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}
.dir-card em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: #c4b5fd;
  margin-top: 6px;
  font-weight: 600;
}

.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px;
}
.pop-rock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 14px;
}
.pop-rock:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
.pop-rock img {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(167,139,250,0.4);
  background: rgba(255,255,255,0.04);
}

.pop-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pop-cat {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 140px;
  text-align: left;
  color: #fff;
  border: 1px solid var(--line);
}
.pop-cat img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
  transition: transform 0.35s ease;
}
.pop-cat:hover img { transform: scale(1.04); }
.pop-cat-copy {
  position: relative;
  z-index: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}
.pop-cat strong { font-size: 1.05rem; }
.pop-cat span { font-size: 0.78rem; color: rgba(255,255,255,0.78); margin-top: 4px; }

.sec-sub {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 52ch;
}
.actions-sec { margin-bottom: 40px; }
.action-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.action-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: inherit;
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  border: 1.5px solid var(--line);
  min-height: 240px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.action-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.action-tile.primary {
  background:
    linear-gradient(155deg, rgba(232,168,74,0.22), rgba(167,139,250,0.1) 48%, rgba(255,255,255,0.03));
  border-color: rgba(232,168,74,0.5);
  box-shadow: 0 16px 44px rgba(196,122,58,0.18);
}
.action-tile.primary:hover {
  border-color: rgba(232,168,74,0.75);
  box-shadow: 0 20px 50px rgba(196,122,58,0.28);
}
.action-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
  gap: 10px;
}
.action-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(232,168,74,0.22);
  color: #f0d29a;
  border: 1px solid rgba(232,168,74,0.35);
}
.action-glyph {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: #fb923c;
  margin-left: auto;
}
.action-tile.primary .action-glyph {
  background: linear-gradient(135deg, #c47a3a, #e8a84a);
  color: #1a1208;
  border: 0;
}
.action-tile h3 {
  margin: 0 0 8px;
  font-family: var(--font-d);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.action-tile p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 750;
  background: linear-gradient(135deg, #c47a3a, #e8a84a);
  color: #1a1208;
  box-shadow: 0 8px 22px rgba(196,122,58,0.28);
}
.action-tile:hover .action-btn { filter: brightness(1.05); }
.action-btn.ghost {
  background: rgba(255,255,255,0.07);
  color: var(--ink);
  border: 1px solid rgba(246,241,232,0.14);
  box-shadow: none;
}
.action-tile:hover .action-btn.ghost {
  background: rgba(255,255,255,0.11);
  border-color: rgba(167,139,250,0.35);
}

@media (max-width: 900px) {
  .specimen-grid,
  .specimen-grid.web-grid {
    grid-template-columns: repeat(auto-fill, 112px);
    gap: 12px;
  }
  .specimen-tile,
  .specimen-tile span {
    width: 112px;
    max-width: 112px;
  }
  .tile-wash,
  .collection-grid .tile-wash {
    width: 112px;
    height: 112px;
  }
}

.rvf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.rvf-card {
  text-align: left;
  color: inherit;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rvf-card:hover { border-color: rgba(251,146,60,0.45); }
.rvf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rvf-shot {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.06), transparent 55%),
    #121214;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.rvf-shot img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
.rvf-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.rvf-tag.real {
  background: rgba(74,222,128,0.2);
  color: #86efac;
  border: 1px solid rgba(74,222,128,0.35);
}
.rvf-tag.fake {
  background: rgba(251,146,60,0.2);
  color: #fdba74;
  border: 1px solid rgba(251,146,60,0.35);
}
.rvf-card strong {
  display: block;
  font-size: 1rem;
  font-family: var(--font-d);
}
.rvf-card > span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}



.specimen-grid,
.specimen-grid.web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 148px);
  justify-content: start;
  gap: 14px;
  width: 100%;
}
.specimen-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: inherit;
  width: 148px;
  max-width: 148px;
  min-width: 0;
  padding: 0;
}
.specimen-tile em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 2px;
  margin-top: 2px;
}
.tile-wash {
  position: relative;
  width: 148px;
  height: 148px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #121214;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.tile-wash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.specimen-tile span {
  font-family: var(--font-d);
  font-size: 0.9rem;
  display: block;
  padding: 0 2px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 148px;
}
.collection-grid .tile-wash {
  width: 148px;
  height: 148px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.filter-chip.on {
  color: var(--ink);
  border-color: rgba(167,139,250,0.5);
  background: rgba(167,139,250,0.16);
}
.empty-glass {
  margin-top: 24px;
  padding: 36px 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--line);
  text-align: center;
  max-width: 420px;
}
.empty-glass p { color: var(--muted); margin: 8px 0 16px; }
.empty-pad { color: var(--muted); padding: 24px 0; text-align: center; }

.layer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.back-soft {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 0;
}
.back-soft:hover { color: var(--ink); }
.btn-pill.small { padding: 8px 14px; font-size: 0.82rem; width: auto; flex: 0 0 auto; }
.app-shell .btn-pill.small { width: auto; max-width: none; }
.muted-count { color: var(--muted); font-size: 0.85rem; }

.rock-detail-web {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 720px;
}
.rock-detail-web .rock-hero {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #121214;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  max-width: 180px;
}
.rock-detail-web .rock-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rock-copy h2, .cat-detail h2 {
  margin: 0 0 4px;
  font-family: var(--font-d);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.sci { color: var(--muted); margin: 0 0 10px; font-size: 0.95rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mini-chip {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(167,139,250,0.16);
  color: #c4b5fd;
  border: 1px solid rgba(167,139,250,0.25);
}
.lede { color: var(--muted); line-height: 1.5; margin: 0 0 12px; font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.glass-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.glass-card .span-2 { grid-column: 1 / -1; }
.glass-card span { display: block; font-size: 0.72rem; color: var(--muted); }
.glass-card b { font-size: 0.92rem; }
.text-quiet { color: var(--muted); font-size: 0.85rem; }
.search-input {
  width: 100%;
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  margin-bottom: 18px;
  outline: none;
}
.search-input:focus { border-color: rgba(167,139,250,0.5); }

/* Identify workspace */
.identify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr);
  gap: 24px;
  align-items: start;
}
.identify-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-shell .viewfinder {
  min-height: 380px;
  max-height: none;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  margin: 0;
  border: 1.5px dashed rgba(232,168,74,0.35);
  background: rgba(0,0,0,0.35);
}
.app-shell .viewfinder:hover {
  border-color: rgba(232,168,74,0.55);
  background: rgba(232,168,74,0.05);
}
.app-shell .btn-pill:disabled,
.app-shell .btn-pill[disabled] {
  opacity: 0.38;
  filter: grayscale(0.35);
  cursor: not-allowed;
  box-shadow: none;
}
.topnav-cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.topnav-cta.ghost:hover {
  border-color: rgba(167,139,250,0.45);
  background: rgba(167,139,250,0.1);
}
.topnav-avatar.guest {
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
  font-size: 0.95rem;
}
.vf-copy p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.vf-copy strong { font-size: 1.05rem; color: var(--ink); }
.vf-copy span { font-size: 0.88rem; color: var(--muted); }
.app-shell .hint {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}
.app-shell .stage-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}
.app-shell .btn-pill {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #c47a3a, #e8a84a);
  color: #1a1208;
}
.app-shell .btn-pill.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border: 1px solid var(--line);
}
.identify-aside { display: grid; gap: 12px; }
.aside-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.aside-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.aside-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  display: grid;
  gap: 6px;
}

/* Settings modal (centered, not phone sheet) */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.sheet-card.web-modal {
  width: min(400px, 100%);
  background: #141418;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 20px;
  display: grid;
  gap: 12px;
  animation: rise 0.35s ease both;
}
.sheet-card h3 { margin: 0; font-family: var(--font-d); }
.sheet-email { margin: 0; color: var(--muted); font-size: 0.88rem; }
.sheet-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

/* Discovery result — web article layout */
.discovery-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px 28px 48px;
  -webkit-overflow-scrolling: touch;
}
.discovery-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.discovery-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  align-items: start;
}
.discovery-hero {
  position: relative;
  margin: 0;
  width: 200px;
  height: 200px;
  max-width: 200px;
  max-height: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a0c;
}
.discovery-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(196,181,253,0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(251,146,60,0.18), transparent 50%);
}
.discovery-hero img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.discovery-body { padding: 24px 22px 26px; }
.discovery-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-d);
  font-size: 1.85rem;
}
.discovery-body .meta { color: var(--muted); margin: 0 0 14px; font-size: 0.9rem; }
.value-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196,122,58,0.2), rgba(167,139,250,0.14));
  border: 1px solid rgba(232,168,74,0.25);
  margin-bottom: 14px;
}
.value-card span { display: block; font-size: 0.72rem; color: var(--muted); }
.value-card b {
  display: block;
  font-family: var(--font-d);
  font-size: 1.45rem;
  margin-top: 2px;
}
.value-card em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.bento-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}
.bento-card span { display: block; font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
.bento-card b { font-size: 0.9rem; }
.bento-card.accent-0 { border-color: rgba(196,181,253,0.35); }
.bento-card.accent-1 { border-color: rgba(251,146,60,0.35); }
.bento-card.accent-2 { border-color: rgba(74,222,128,0.3); }
.bento-card.accent-3 { border-color: rgba(232,168,74,0.35); }
.bento-card.accent-4 { border-color: rgba(167,139,250,0.35); }
.bento-card.accent-5 { border-color: rgba(244,114,182,0.3); }
.summary-bullets {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.45;
}
.learn-more { display: grid; gap: 10px; margin: 12px 0; }
.learn-more strong { display: block; font-size: 0.88rem; }
.learn-more span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.web-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.web-sources a, .web-sources span {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--muted);
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.result-actions .btn-pill { width: auto; min-width: 140px; }
.access-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  width: fit-content;
}
.access-pill.pro {
  color: #120c18;
  background: linear-gradient(135deg, #c4b5fd, #e8a84a);
  border: 0;
}


/* Home — Identify-first hero */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 8px 0 8px;
}
.home-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.home-hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.home-lede {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 38ch;
}
.home-intents { margin-top: 4px; }
.home-hero-stage .identify-stage { gap: 10px; }
.home-hero-stage .viewfinder {
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: 360px;
}
.viewfinder.pulse-focus {
  animation: vfPulse 0.9s ease;
}
@keyframes vfPulse {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 3px rgba(232,168,74,0.45); }
}
.home-browse-bar { margin-bottom: 22px; }
.recent-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.recent-card {
  display: grid;
  gap: 8px;
  text-align: left;
  color: inherit;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.recent-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}
.recent-card span {
  font-family: var(--font-d);
  font-size: 0.95rem;
}
.empty-cabinet {
  margin-top: 12px;
  padding: 48px 28px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(167,139,250,0.28);
  max-width: 480px;
}
.empty-cabinet-art {
  font-size: 2rem;
  opacity: 0.45;
  margin-bottom: 12px;
}
.empty-cabinet strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.empty-cabinet p {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.45;
}
.empty-cabinet .btn-pill { width: auto; min-width: 220px; }
.aside-card.soft p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.pkg-card h3 { color: var(--pw-ink); }
.pkg-price strong { color: var(--pw-ink); }
.summary-top h2 { color: var(--pw-ink); }
.checkout-left h1 { color: var(--pw-ink); }
.paywall-main h1 { color: var(--pw-ink); }
.pkg-cta:not(.primary) {
  background: transparent;
  color: var(--pw-ink);
  border-color: var(--pw-line);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .home-hero-stage .viewfinder { max-height: none; }
}

@media (max-width: 900px) {
  .topnav-inner {
    width: calc(100% - 20px);
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 52px;
    padding: 8px 0;
  }
  .topnav-wordmark { font-size: 1.05rem; }
  .topnav-tabs {
    gap: 2px;
    padding: 3px;
  }
  .topnav-tab {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .topnav-actions .access-pill:not(.pro) { display: none; }
  .topnav-actions .access-pill.pro {
    display: inline-flex;
    font-size: 0.65rem;
    padding: 5px 8px;
  }
  .pro-welcome-inner { width: calc(100% - 20px); }
  .rock-detail-web {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }
  .rock-detail-web .rock-hero { max-width: 120px; }
  .topnav-cta { padding: 7px 11px; font-size: 0.75rem; }
  .app-main { padding: 20px 16px 40px; }
  .pop-cat-grid { grid-template-columns: 1fr 1fr; }
  .identify-layout, .rock-detail-web, .discovery-card {
    grid-template-columns: 1fr;
  }
  .discovery-hero {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 200px;
    aspect-ratio: 16 / 10;
  }
  .app-shell .viewfinder { min-height: 280px; aspect-ratio: 1; }
  .discovery-page { padding: 16px 16px 40px; }
}

@media (max-width: 640px) {
  .topnav-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .topnav-brand { grid-column: 1; }
  .topnav-actions { grid-column: 2; grid-row: 1; }
  .topnav-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: stretch;
  }
  .topnav-tab { flex: 1; justify-content: center; }
  .topnav-wordmark { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
  .rock-detail-web {
    grid-template-columns: 1fr;
  }
  .rock-detail-web .rock-hero {
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }
}








