.sitestrip {
  height: 36px;
  padding: 0 var(--gutter, 24px);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  background: var(--ribbon, #d6f5f0);
  color: var(--ribbon-text, #171a19);
  font: 600 10px/1.2 var(--font, sans-serif);
  position: relative;
  z-index: 20;
  --strip-rule: #171a191f;
  --strip-active: #fff;
}
.sitestrip-group,
.sitestrip-network {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.sitestrip a,
.sitestrip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0 16px;
  border: 0;
  white-space: nowrap;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.sitestrip a,
.sitestrip a:is(:hover, :active, :focus, :focus-visible) {
  text-decoration: none;
}
.sitestrip-network {
  border-right: 1px solid var(--strip-rule);
  letter-spacing: 0.085em;
}
.sitestrip-network a {
  border-left: 1px solid var(--strip-rule);
  position: relative;
}
/* Suppress either shared edge touching the selected tab without changing block widths. */
.sitestrip-network a[aria-current='page'],
.sitestrip-network a[aria-current='page'] + a {
  border-left-color: transparent;
}
.sitestrip-network:has(a[aria-current='page']:last-child) {
  border-right-color: transparent;
}
.sitestrip-product-label {
  display: block;
  line-height: 12px;
  position: relative;
  top: 2px;
  opacity: 0.76;
}
.sitestrip-network a:is(:hover, :focus-visible, [aria-current='page']) .sitestrip-product-label {
  display: block;
  line-height: 12px;
  position: relative;
  top: 2px;
  opacity: 1;
}
.sitestrip a[aria-current='page'],
.sitestrip .sitestrip-selector,
.sitestrip a[aria-current='page']:hover,
.sitestrip .sitestrip-selector:hover {
  background: var(--strip-active);
}
/* Keep product-tab text metrics fixed; the mobile selector has one constant weight. */
.sitestrip .sitestrip-selector {
  font-weight: 750;
}
.sitestrip-selector .sitestrip-product-label {
  opacity: 1;
}
.sitestrip .sitestrip-community {
  font-size: 11px;
  font-weight: 500;
  padding-right: 0;
}
.sitestrip-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.sitestrip-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.sitestrip-community-short,
.sitestrip .sitestrip-selector {
  display: none;
}
.sitestrip :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
@media (max-width: 1024px) {
  .sitestrip-community-full {
    display: none;
  }
  .sitestrip-community-short {
    display: inline;
  }
}
@media (max-width: 900px) {
  .sitestrip {
    height: 32px;
    gap: 16px;
  }
  .sitestrip-group {
    position: relative;
  }
  .sitestrip .sitestrip-selector {
    display: inline-flex;
    letter-spacing: 0.085em;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: 0 12px;
  }
  .sitestrip-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 0;
    background: var(--ribbon, #d6f5f0);
    border: 1px solid var(--strip-rule);
    border-radius: 2px;
    box-shadow: 0 4px 12px #171a1910;
  }
  .sitestrip-popover a {
    display: flex;
    justify-content: flex-start;
    height: 42px;
    padding: 0 16px;
    border: 0;
  }
  .sitestrip-popover a + a {
    border-top: 1px solid var(--strip-rule);
  }
  .sitestrip-open .sitestrip-popover {
    display: block;
  }
}
@media (max-width: 420px) {
  .sitestrip-community-short {
    display: none;
  }
  .sitestrip .sitestrip-community {
    width: 36px;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sitestrip a,
  .sitestrip button {
    transition: none;
  }
}

/* Opt-in descriptive labels: same footer surface, exact header selected tab.
   Existing product adapters keep their current palette and breakpoint. */
.sitestrip[data-sitestrip-layout='descriptive'] {
  background: var(--surface);
  /* The canonical sticky Header is z40; its sibling selector must open above it. */
  z-index: 50;
  --ribbon: var(--surface);
  --strip-active: var(--page);
  --strip-rule: var(--border);
  color: var(--muted);
  font-size: 12px;
}
.sitestrip[data-sitestrip-layout='descriptive'] :is(.sitestrip-network, .sitestrip-selector) {
  letter-spacing: 0;
}
.sitestrip[data-sitestrip-layout='descriptive'] :is(a, button) .sitestrip-product-label {
  position: static;
  line-height: 1;
  opacity: 1;
}
.sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-network a,
.sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-selector {
  font-weight: 600;
}
.sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-network a:is(:hover, :focus-visible, [aria-current='page']) {
  color: var(--text);
}
.sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-community {
  margin-left: 0;
}
/* Optional approximate total membership. Reserve one desktop slot before a
   cached response arrives; the ordinary utility label survives unavailable data. */
.sitestrip-community[data-community-count] .sitestrip-community-full {
  display: inline-flex;
  align-items: center;
}
.sitestrip-community[data-community-count] .sitestrip-community-count {
  display: inline-block;
  inline-size: 21ch;
  block-size: 1em;
  flex: 0 0 21ch;
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  opacity: 0.76;
}
.sitestrip-community[data-community-count]:is(:hover, :focus-visible) .sitestrip-community-count {
  opacity: 1;
}
@media (max-width: 1024px) {
  .sitestrip-community[data-community-count] .sitestrip-community-full {
    display: none;
  }
}
@media (max-width: 1120px) {
  .sitestrip[data-sitestrip-layout='descriptive'] {
    height: 32px;
    gap: 16px;
  }
  .sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-group {
    position: relative;
  }
  .sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-selector {
    display: inline-flex;
    padding: 0 12px;
    border-inline: 1px solid transparent;
  }
  .sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 250px;
    max-width: calc(100vw - 2 * var(--gutter, 24px));
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--tcgn-radius-control, 12px);
    box-shadow: 0 4px 16px rgb(0 0 0 / 28%);
    overflow: hidden;
  }
  .sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-popover a {
    display: flex;
    justify-content: flex-start;
    height: 44px;
    padding: 0 16px;
    border: 0;
  }
  .sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-popover a + a {
    border-top: 1px solid var(--border);
  }
  .sitestrip[data-sitestrip-layout='descriptive'] .sitestrip-open .sitestrip-popover {
    display: block;
  }
}

/* Shared compact network utility configuration; no product-specific geometry. */
html[data-tcgn-v1][data-theme='dark'] .sitestrip[data-sitestrip-surface='search'] {
  /* Sibling primary headers form a z40 stacking context. Keep the menu above them. */
  z-index:50;
  background:var(--search); --ribbon:var(--search); --strip-active:var(--page); --strip-rule:var(--border);
}
html[data-tcgn-v1] .sitestrip[data-sitestrip-surface='search'] .sitestrip-network a {border-left-color:var(--strip-rule)}
html[data-tcgn-v1] .sitestrip[data-sitestrip-surface='search'] .sitestrip-network {border-right-color:var(--strip-rule)}
.sitestrip-community[data-community-presentation='count'] .sitestrip-community-count {
  display:inline-block;inline-size:5ch;flex:0 0 5ch;block-size:auto;font:inherit;opacity:1;
}
.sitestrip-community[data-community-presentation='count'] {width:auto;gap:10px;padding-inline:0}
html[data-tcgn-v1] .sitestrip[data-sitestrip-surface='search'] .sitestrip-actions {display:flex;align-items:stretch;flex:none;gap:20px}
html[data-tcgn-v1] .sitestrip-actions > a {padding-inline:0}

/* Compact utility retains the existing count source at every viewport. */
.sitestrip-community .sitestrip-icon {color:#fff}
.sitestrip[data-sitestrip-surface='search'] .sitestrip-product-label {text-transform:uppercase}
@media(max-width:420px){
  .sitestrip[data-sitestrip-surface='search'] {gap:8px;padding-inline:12px}
  .sitestrip[data-sitestrip-surface='search'] .sitestrip-selector {padding-inline:8px;font-size:9px}
  html[data-tcgn-v1] .sitestrip[data-sitestrip-surface='search'] .sitestrip-actions {gap:10px}
}

/* State changes affect paint only; reserve the same glyph and count slots. */
.sitestrip[data-sitestrip-surface='search'] :is(.sitestrip-network a,.sitestrip-selector) {font-weight:600;box-sizing:border-box}
.sitestrip[data-sitestrip-surface='search'] .sitestrip-product-label {top:0;line-height:12px}
.sitestrip-community[data-community-presentation='count'] .sitestrip-community-count {inline-size:6ch;flex-basis:6ch;min-block-size:1em}

/* The shared strip owns geometry, independent of active product and stylesheet order. */
html[data-tcgn-v1] .sitestrip[data-sitestrip-surface='search'] {box-sizing:border-box;flex:none}
html[data-tcgn-v1] .sitestrip[data-sitestrip-surface='search'] .sitestrip-actions > a {flex:none;margin:0}
@media(max-width:900px){
  .sitestrip[data-sitestrip-surface='search'] .sitestrip-group {flex:1;min-width:0}
  .sitestrip[data-sitestrip-surface='search'] .sitestrip-selector {width:100%;min-width:0;justify-content:space-between}
  .sitestrip[data-sitestrip-surface='search'] .sitestrip-selector .sitestrip-product-label {overflow:hidden;text-overflow:ellipsis}
  .sitestrip[data-sitestrip-surface='search'] .sitestrip-popover {width:max-content;max-width:calc(100vw - 24px)}
}

/* One shared mobile product strip; desktop markup, utilities and geometry stay intact. */
.sitestrip .sitestrip-mobile-label {display:none;}
@media(max-width:900px){
 html[data-tcgn-v1] .sitestrip[data-sitestrip] {display:block;width:100%;height:32px;padding:0;gap:0;}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-group {display:block;width:100%;height:100%;min-width:0;}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] :is(.sitestrip-selector,.sitestrip-actions,.sitestrip-community) {display:none;}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-network {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:static;inset:auto;width:100%;min-width:0;max-width:none;height:100%;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;letter-spacing:0;}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-network>a {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;height:100%;padding:0 4px;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);background:transparent;font-size:12px;line-height:1;}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-network>a+a {border-left:1px solid var(--strip-rule);}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-network>a[aria-current='page'] {color:var(--tcgn-product-accent,var(--brand));border-bottom-color:var(--tcgn-product-accent,var(--brand));background:var(--strip-active);}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-network .sitestrip-product-label {display:none;}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-network .sitestrip-mobile-label {display:block;text-transform:none;white-space:nowrap;}
 html[data-tcgn-v1] .sitestrip[data-sitestrip] .sitestrip-network>a::after {display:none;}
}

/* Homepage only. Legal documents and member profiles retain their normal chrome. */
.app-home {
  --app-accent: #ccabff;
  --font: 'DM Sans', Arial, sans-serif;
  --search: #1d2121;
  background: var(--page);
}
.app-home .sitestrip { --gutter: var(--tcgn-chrome-gutter); color: #c7c8cf; }
/* The family hover rule offsets the full label by two pixels. Keep its resting baseline. */
.app-home .sitestrip[data-sitestrip-surface] .sitestrip-network a .sitestrip-product-label { position: static; }
.app-home .sitestrip-network a { transition: background-color 140ms ease, color 140ms ease; }
.app-home .sitestrip-network a:hover { background: #27282b; color: white; }
.app-home .network-header .tcgn-network-wordmark > span { display: inline; }
.app-home .tcgn-network-wordmark svg { display: none; }
.app-home .tcgn-network-wordmark::before {
  content: ''; width: 28px; height: 28px; flex: none;
  background: url('/app-preview/network-mark.png') center / contain no-repeat;
}
@media (min-width: 751px) {
  .app-viewport { display: grid; min-height: 100svh; grid-template-rows: auto auto 1fr; }
  .app-landing { display: grid; align-items: center; }
  .app-gallery { width: 100%; max-width: max(550px, 85svh); justify-self: center; }
}
.uk-collectors { display: inline-flex; align-items: center; gap: .55rem; margin-left: auto; color: var(--muted); font-size: .95rem; }
@media (max-width: 440px) { .uk-collectors { display: none; } }
.app-landing {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--page);
}
.app-landing::before {
  content: '';
  position: absolute;
  inset: -19% -14% -34% 41%;
  z-index: -1;
  pointer-events: none;
  background: url('/app-preview/network-mark.png') center / contain no-repeat;
  mask: repeating-linear-gradient(127deg, transparent 0 4px, black 4px 5px);
  opacity: .065;
  transform: rotate(-9deg);
}
.app-hero {
  width: min(100%, 1600px);
  margin: auto;
  padding: clamp(24px, 3.2vh, 50px) var(--tcgn-chrome-gutter);
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(20px, 2.2vw, 36px);
}
.app-pitch { padding-bottom: 0; container-type: inline-size; }
.app-status {
  display: flex; align-items: center; gap: .75rem;
  color: var(--app-accent);
  font-size: .88rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.app-status::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.app-pitch h1 {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(55px, 4.95vw, 82px);
  line-height: .99; font-weight: 780; letter-spacing: -.072em;
  margin: 24px 0 23px; color: #faf9fb;
}
.headline-lead { display: block; }
.phrase-window {
  display: block; overflow: hidden; color: var(--app-accent);
  font-size: min(1em, 12cqi); line-height: 1.22; height: 1.22em; letter-spacing: -.06em;
}
.phrase-reel, .phrase-reel > span { display: block; }
.phrase-reel > span {
  --tone: #bd99f2; --highlight: #d4b7ff;
  width: max-content; height: 1.22em; white-space: nowrap; color: var(--tone);
}
.phrase-reel > :nth-child(2) { --tone: #49ccbb; --highlight: #75dedc; }
.phrase-reel > :nth-child(3) { --tone: #df76b7; --highlight: #f499cc; }
.phrase-reel > :nth-child(4) { --tone: #79a4ee; --highlight: #99bcfc; }
.phrase-reel > :nth-child(5) { --tone: #f0ae78; --highlight: #f7cb91; }
@supports (background-clip: text) {
  @media (forced-colors: none) {
    .phrase-reel > span {
      background-image: linear-gradient(100deg, var(--tone), var(--highlight));
      background-clip: text; color: transparent;
    }
  }
}
.phrase-reel { animation: headline-cycle 17s cubic-bezier(.42,0,.2,1) infinite; }
[data-page-hidden] .phrase-reel { animation-play-state: paused; }
@keyframes headline-cycle {
  0%, 17.5% { transform: translateY(0); }
  20%, 37.5% { transform: translateY(-1.22em); }
  40%, 57.5% { transform: translateY(-2.44em); }
  60%, 77.5% { transform: translateY(-3.66em); }
  80%, 97.5% { transform: translateY(-4.88em); }
  100% { transform: translateY(-6.10em); }
}
.app-summary { max-width: 60ch; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.48; color: #b7b5bf; letter-spacing: -.02em; }
.app-download { margin-top: 25px; }
.download-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #aaa2b2; font-size: .70rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.download-label::before { content: ''; width: 17px; height: 1px; background: #756a80; }
.store-badges { display: flex; align-items: center; gap: 10px; }
.app-discord { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 13px; color: #b5acbf; font-size: .93rem; }
.app-discord .sitestrip-icon { width: 16px; height: 16px; }
.app-discord:is(:hover,:focus-visible) { color: #e1cdfc; }
.store-badges img { display: block; width: auto; height: 40px; opacity: .62; filter: grayscale(1); }
.app-gallery { container-type: inline-size; min-width: 0; position: relative; border: 0; padding: 0; margin: 0; }
.phone-stage { position: relative; width: 100%; aspect-ratio: 1.4; isolation: isolate; --spread: 80%; }
.app-phone {
  --shift: 0%; --drop: 0%; --tilt: 0deg; --scale: 1;
  width: 33%; aspect-ratio: 750 / 1631; position: absolute; top: 50%; left: 50%;
  padding: clamp(3px, .32vw, 5px);
  border: 1px solid #78747f; border-radius: 16% / 7.5%;
  background: linear-gradient(125deg,#c7c4d0 0%,#343239 20%,#69666d 51%,#19191b 75%,#85828d 100%);
  box-shadow: 0 1px 1px #c1bec776 inset, 0 14px 26px -8px #0008, 0 3px 6px #000a;
  transform: translate(-50%,-50%) translate(var(--shift),var(--drop)) rotate(var(--tilt)) scale(var(--scale));
}
.phone-left { --shift: calc(-1 * var(--spread)); --drop: 1.5%; --tilt: -1.6deg; --scale: .92; }
.phone-right { --shift: var(--spread); --drop: 1.5%; --tilt: 1.6deg; --scale: .92; }
.phone-front { z-index: 2; }
.phone-glass { position: relative; height: 100%; overflow: hidden; border-radius: 14.5% / 6.8%; background: #101110; }
.phone-screen {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: #101110; cursor: zoom-in;
  opacity: 0; visibility: hidden; transform: translateY(3px);
  transition: opacity 500ms ease, transform 500ms ease, visibility 0s linear 500ms;
}
.app-phone img { display: block; height: 100%; width: 100%; }
.app-gallery[data-screen="pricing"] [data-featured~="pricing"],
.app-gallery[data-screen="alerts"] [data-featured~="alerts"],
.app-gallery[data-screen="binder"] [data-featured~="binder"],
.app-gallery[data-screen="value"] [data-featured~="value"] {
  opacity: 1; visibility: visible; z-index: 1; transform: none; transition-delay: 0s;
}
.app-phone:has(:focus-visible), .zoom-heading button:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 4px; }
.screen-zoom {
  max-width: 94vw; padding: 12px; border: 1px solid #49454e; border-radius: 20px; color: var(--text); background: var(--surface);
}
.screen-zoom::backdrop { background: rgb(7 7 9 / 91%); }
.zoom-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px 8px 5px; }
.zoom-heading button { width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: var(--border); cursor: pointer; font: 24px/1 Arial,sans-serif; }
.screen-zoom img { display: block; margin: auto; max-width: 82vw; max-height: 78vh; max-height: 78svh; border-radius: 12px; }
html[data-tcgn-v1] .app-home .tcgn-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.app-home .tcgn-footer-masthead { color: var(--text); opacity: .038; }
@media (max-width: 950px) {
  .app-hero { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 10px; }
  .app-pitch h1 { font-size: clamp(48px, 5.55vw, 60px); }
}
@media (max-width: 750px) {
  .app-hero { grid-template-columns: minmax(0,1fr); padding: 43px var(--tcgn-chrome-gutter) 32px; gap: 32px; }
  .app-pitch { padding: 0; }
  .app-pitch h1 { margin: 16px 0; font-size: clamp(47px, 12vw, 74px); }
  .app-summary { max-width: 38ch; }
  .app-download { margin-top: 20px; }
  .app-gallery { width: min(100%, 560px); margin: 0 auto; }
  .phone-stage { aspect-ratio: 1.12; --spread: 77%; }
  .app-phone { width: 40%; }
  .app-viewport { display: contents; }
  .app-landing::before { inset: 34% -35% -8% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-screen, .app-home .sitestrip-network a { transition: none; }
  .phrase-reel { animation: none; transform: translateY(-4.88em); }
}
