/* DropNZ landing page. Shares tokens and components with styles.css (the dashboard). */

.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

/* ── Header ───────────────────────────────────────────── */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 2px solid var(--border);
}

.lp-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.lp-header .logo {
  padding: 0;
  font-size: 22px;
}

.lp-nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
  font-size: var(--text-body-sm);
  color: var(--text2);
}

.lp-nav a:hover {
  color: var(--text1);
}

.lp-nav a[aria-current='page'] {
  color: var(--text1);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.lp-header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logged in: the name, trimmed so a long one never pushes the header onto two rows. */
.nav-account .nav-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-chips-more {
  display: none;
}

/* ── Hero stage: perspective grid, horizon, halftone, card fan ── */

[data-theme='dark'] {
  --grid-line: rgb(34 220 236 / 14%);
  --horizon: rgb(255 61 203 / 22%);
}

[data-theme='light'] {
  --grid-line: rgb(8 7 15 / 10%);
  --horizon: rgb(184 10 137 / 10%);
}

.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  border-bottom: 2px solid var(--border);
}

.stage-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, var(--background) 0%, var(--background) 52%, var(--horizon) 70%, var(--background) 71%);
}

.stage-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 42%;
  z-index: 1;
  background-image:
    linear-gradient(var(--grid-line) 2px, transparent 2px),
    linear-gradient(90deg, var(--grid-line) 2px, transparent 2px);
  background-size: 64px 48px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
}

.stage-dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 70%;
  z-index: 1;
  background-image: radial-gradient(var(--halftone) 1.4px, transparent 1.6px);
  background-size: 8px 8px;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
}

.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 55%, var(--background) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  margin-bottom: 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-visible);
  background: var(--surface1);
  color: var(--success);
}

.eyebrow .dim {
  color: var(--text2);
}

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

.lp-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 88px);
  line-height: 0.95;
  margin-bottom: 24px;
}

.lp-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 36px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text2);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stats b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  color: var(--text3);
}

.fan {
  position: relative;
  height: 460px;
}

.fan-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  aspect-ratio: 63 / 88;
  margin: -160px 0 0 -115px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 14px;
  background: var(--surface1);
  border: 3px solid var(--border-visible);
  box-shadow: var(--shadow-2);
}

.fan-card:nth-child(1) {
  transform: rotate(-14deg) translate(-90px, 20px);
}

.fan-card:nth-child(2) {
  transform: rotate(-3deg) translate(-20px, -6px);
}

.fan-card:nth-child(3) {
  transform: rotate(9deg) translate(70px, 10px);
}

/* Holo foil: one of the two places the design allows a gradient. */
.fan-face {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--foil-a), var(--foil-b));
  opacity: 0.6;
}

.fan-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 35%) 1.2px, transparent 1.4px);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
  mask-image: linear-gradient(135deg, #000, transparent 70%);
}

.fan-card:nth-child(1) .fan-face {
  --foil-a: var(--deal);
  --foil-b: var(--warning);
}

.fan-card:nth-child(2) .fan-face {
  --foil-a: var(--success);
  --foil-b: var(--accent);
}

.fan-card:nth-child(3) .fan-face {
  --foil-a: var(--accent);
  --foil-b: var(--restock);
}

.fan-line {
  height: 8px;
  border-radius: 1px;
  background: var(--surface3);
}

.fan-line.short {
  width: 55%;
}

.fan .toast {
  position: absolute;
  right: -8px;
  bottom: 16px;
  z-index: 5;
  max-width: 320px;
}

/* ── Restock toast ────────────────────────────────────── */

.toast {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: var(--radius-component);
  background: var(--surface1);
  border: 2px solid var(--restock);
  box-shadow: var(--glow-restock);
}

.toast > * {
  position: relative;
  z-index: 1;
}

.toast.is-read {
  border-color: var(--border-visible);
  box-shadow: var(--shadow-1);
}

.toast-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--restock);
}

.toast.is-read .toast-head {
  color: var(--text3);
}

.toast-head .num {
  margin-left: auto;
  font-size: var(--text-caption);
  color: var(--text3);
}

.toast-name {
  font-weight: 600;
  font-size: var(--text-subheading);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toast-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: var(--text-body-sm);
  color: var(--text2);
}

.toast-meta > * {
  white-space: nowrap;
}

.toast-meta .price {
  margin-left: auto;
}

/* ── Features ─────────────────────────────────────────── */

.lp-feature {
  padding: 96px 0;
  scroll-margin-top: 68px;
}

.lp-feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lp-feature.reverse .lp-feature-text {
  order: 2;
}

.lp-feature-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
}

.lp-feature-heading {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
}

.lp-feature-text p {
  max-width: 480px;
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text2);
}

.ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ticks li i {
  margin-top: 4px;
  color: var(--accent);
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.stack .toast:nth-child(2) {
  margin-right: 32px;
}

.cmp {
  padding: 20px;
}

.cmp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cmp-title {
  font-weight: 600;
  font-size: var(--text-subheading);
}

.cmp-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.cmp-name {
  min-width: 0;
  font-weight: 500;
  font-size: var(--text-body-sm);
}

.cmp-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmp-name small {
  display: block;
  font: 400 11px var(--font-mono);
  color: var(--text3);
}

.cmp-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.mtile {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--surface3);
  font-family: var(--font-display);
  font-size: 13px;
}

a.cmp-row {
  color: inherit;
}

a.cmp-row:hover .cmp-name span {
  color: var(--accent);
}

.cmp-price small {
  font: 400 11px var(--font-mono);
  color: var(--text3);
}

.cmp-empty {
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
  font-size: var(--text-body-sm);
  color: var(--text3);
}

.health {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.hcard.is-bad {
  border-color: var(--error);
}

.htop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  font-size: var(--text-body-sm);
}

.htop span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hcount {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.hcount.is-zero {
  color: var(--text4);
}

.hmid {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 var(--text-caption) var(--font-mono);
  color: var(--text3);
}

/* ── Stores, quote, CTA ───────────────────────────────── */

.lp-stores {
  padding: 96px 0;
  background: var(--surface1);
  border-top: 2px solid var(--border);
  scroll-margin-top: 68px;
}

.section-head {
  margin-bottom: 40px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1;
}

.section-head p {
  color: var(--text2);
}

.store-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 6px;
  border-radius: var(--radius-control);
  background: var(--background);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-1);
  font-weight: 600;
  font-size: var(--text-body-sm);
}

.store-chip .mtile {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.store-chip .live-dot {
  margin-left: 4px;
}

.lp-quote {
  padding: 96px 0;
  text-align: center;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.lp-quote blockquote {
  max-width: 880px;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
}

.lp-quote blockquote em {
  font-style: normal;
  color: var(--restock);
}

.lp-quote cite {
  font-style: normal;
  color: var(--text3);
}

/* ── Pricing ──────────────────────────────────────────── */

.lp-pricing {
  padding: 96px 0;
  scroll-margin-top: 68px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

/* The one signal region on screen: the offer. */
.tier.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-selected);
}

.tier-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.tier-name b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font: 700 40px / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tier-price .price-was {
  font-size: 20px;
}

.tier-price small {
  font: 400 var(--text-body-sm) var(--font-mono);
  color: var(--text3);
}

.tier .ticks {
  flex: 1;
}

.tier .ticks li {
  font-size: var(--text-body-sm);
  color: var(--text2);
}

.tier .btn {
  width: 100%;
}

.tier-note {
  margin-top: -8px;
  text-align: center;
  font: 400 var(--text-caption) var(--font-mono);
  color: var(--text3);
}

.tier-note a,
.faq-item p a {
  color: var(--text2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tier-note a:hover,
.faq-item p a:hover {
  color: var(--accent);
}

.lp-cta-block {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
}

.lp-cta-block .stage-grid {
  height: 55%;
  opacity: 0.6;
}

.lp-cta-block h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
}

.lp-cta-block p {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--text2);
}

.cta-center {
  justify-content: center;
  margin-bottom: 0;
}

.cta-note {
  display: block;
  margin-top: 18px;
  font: 400 var(--text-caption) var(--font-mono);
  color: var(--text3);
}

/* ── Footer ───────────────────────────────────────────── */

.lp-footer {
  position: relative;
  z-index: 1;
  padding: 56px 0 48px;
  background: var(--surface1);
  border-top: 2px solid var(--border);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.foot-grid .logo {
  padding: 0;
}

.foot-grid p {
  max-width: 300px;
  margin-top: 14px;
  font-size: var(--text-body-sm);
  color: var(--text3);
}

.foot-col h3 {
  margin-bottom: 14px;
  font-weight: 400;
  color: var(--text3);
}

.foot-col a {
  display: block;
  padding: 4px 0;
  font-size: var(--text-body-sm);
  color: var(--text2);
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font: 400 var(--text-caption) var(--font-mono);
  color: var(--text3);
}

main {
  position: relative;
  z-index: 1;
}

/* ── Responsive ───────────────────────────────────────── */

/* ── Headline kicker: the words people search, above the slogan ── */

.h1-kicker {
  display: block;
  margin-bottom: 18px;
  font: 600 18px / 1.3 var(--font-body);
  color: var(--text2);
}

/* ── FAQ ──────────────────────────────────────────────── */

.lp-faq {
  padding: 96px 0;
  scroll-margin-top: 68px;
  border-top: 2px solid var(--border);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--card-border);
  border-radius: var(--radius-component);
  background: var(--surface1);
  box-shadow: var(--shadow-1);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  flex-shrink: 0;
  color: var(--text3);
  transition: transform var(--duration-fast) var(--ease);
}

.faq-item[open] summary i {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}

a.store-chip:hover {
  border-color: var(--accent);
}

/* ── Store, region and hub pages ──────────────────────── */

.seo {
  position: relative;
  z-index: 1;
  padding: 36px 0 72px;
}

.seo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: var(--text-body-sm);
  color: var(--text3);
}

.seo-crumbs a:hover {
  color: var(--text1);
}

.seo-head {
  margin-bottom: 40px;
}

.seo-head .eyebrow {
  margin-bottom: 20px;
}

.seo-head h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1;
}

.seo-lede {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text2);
}

.seo-lede b {
  color: var(--text1);
}

.seo-section {
  margin-top: 44px;
}

.seo-section h2 {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: var(--text-heading);
  line-height: 1.2;
}

.seo-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.seo-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.seo-list a,
.seo-branch a {
  color: var(--text1);
}

.seo-list a:hover,
.seo-branch a:hover {
  color: var(--accent);
}

.seo-where {
  font-size: var(--text-body-sm);
  color: var(--success);
  white-space: nowrap;
}

.seo-price {
  min-width: 72px;
  text-align: right;
  font-weight: 700;
}

/* A store-wide caution (Toyworld's unreliable stock): a full row under the product line. */
.seo-notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4px 8px;
  font-size: var(--text-body-sm);
  color: var(--warning);
  background: var(--warning-bg);
  border-radius: 6px;
}

.seo-sub,
.seo-empty {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-links a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-visible);
  font-weight: 500;
  font-size: var(--text-body-sm);
  color: var(--text2);
}

.seo-links a:hover {
  color: var(--text1);
  border-color: var(--accent);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.seo-branch {
  padding: 18px 20px;
}

.seo-branch h3 {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 17px;
}

.seo-branch ul {
  margin-top: 10px;
  padding-left: 18px;
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--text2);
}

.seo-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.seo-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
}

.seo-tile:hover {
  border-color: var(--accent);
}

.seo-tile span {
  font-size: var(--text-caption);
  color: var(--text3);
}

.seo-note {
  max-width: 760px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--text3);
}

.seo-sub a,
.doc-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Membership: /join and /login ─────────────────────── */

.join-head {
  margin-bottom: 24px;
}

.join-head h1 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1;
}

.join-lede {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text2);
}

.join-card {
  scroll-margin-top: 90px;
}

.join-welcome {
  max-width: 560px;
}

.join-welcome h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.1;
}

.join-welcome h1 i {
  color: var(--success);
}

/* Checkout comes first in the page, for phones; on a wide screen it moves to the right-hand column. */
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 40px;
  align-items: start;
}

.join-grid > .join-card {
  grid-column: 2;
  grid-row: 1;
}

.join-grid > .join-steps {
  grid-column: 1;
  grid-row: 1;
}

.join-steps h2 {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: var(--text-heading);
}

.join-steps h2 + * {
  margin-bottom: 32px;
}

.join-list {
  counter-reset: step;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-list li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text2);
}

.join-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--accent-subtle);
  border: 2px solid var(--accent);
  font: 700 14px / 1 var(--font-mono);
  color: var(--accent);
}

.join-list b {
  color: var(--text1);
  font-weight: 600;
}

.join-list a,
.join-fine a,
.join-alert a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.join-card [data-join-checkout],
.join-done {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.join-card [hidden] {
  display: none;
}

.join-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.join-member {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Whop mounts its checkout frame in here; hold roughly its height so the page doesn't jump. */
.join-embed {
  min-height: 240px;
}

.join-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
}

.join-fine,
.join-card .join-fine {
  font-size: var(--text-body-sm);
  line-height: 1.55;
  color: var(--text3);
}

.join-done h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--text-heading);
}

.join-done h2 i {
  color: var(--success);
}

.join-login {
  align-items: stretch;
  text-align: center;
}

/* Continue with Whop is a form's button (see renderLoginPage); it fills the card as the link did. */
.join-login-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.join-login-form .btn {
  width: 100%;
}

.join-alert {
  display: flex;
  gap: 12px;
  max-width: 880px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--accent-subtle);
  border-left: 2px solid var(--accent);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
}

.join-alert i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 18px;
  color: var(--accent);
}

.join-alert b {
  color: var(--text1);
  font-weight: 600;
}

.join-alert.is-error {
  background: var(--error-bg);
  border-left-color: var(--error);
}

.join-alert.is-error i {
  color: var(--error);
}

.doc-sub {
  margin: 20px 0 8px;
  font-weight: 600;
  font-size: 17px;
}

@media (max-width: 900px) {
  .join-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .join-grid > .join-card,
  .join-grid > .join-steps {
    grid-column: 1;
    grid-row: auto;
  }

  .join-head {
    margin-bottom: 16px;
  }

  .join-lede {
    font-size: 15px;
  }

  .join-steps h2 {
    font-size: 18px;
  }

  .join-steps h2 + * {
    margin-bottom: 20px;
  }

  .join-list {
    gap: 12px;
  }

  .join-list li {
    padding-left: 38px;
    font-size: 15px;
  }

  .join-list li::before {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .join-card .tier-price {
    font-size: 32px;
  }

  .join-card {
    padding: 18px;
  }
}

/* ── Guide and terms: plain reading pages ─────────────── */

.doc-toc {
  max-width: 720px;
  padding: 18px 20px;
}

.doc-toc b {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.doc-toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 24px;
  padding-left: 20px;
  font-size: var(--text-body-sm);
  color: var(--text3);
}

.doc-toc a {
  color: var(--text2);
}

.doc-toc a:hover {
  color: var(--accent);
}

.doc-section {
  max-width: 720px;
  scroll-margin-top: 90px;
}

.doc-section p,
.doc-list li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text2);
}

.doc-section p + p,
.doc-section p + .doc-list,
.doc-section .doc-list + p {
  margin-top: 12px;
}

.doc-section b {
  color: var(--text1);
  font-weight: 600;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
}

.doc-list li::marker {
  color: var(--accent);
}

.doc-steps li::marker {
  font-family: var(--font-mono);
  font-weight: 700;
}

.doc-section .badge {
  vertical-align: 1px;
}

.seo-foot {
  padding: 24px 0;
}

@media (max-width: 640px) {
  .seo-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .seo-where {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 900px) {
  /* The links drop to their own row under the logo and Log in / Sign up. */
  .lp-header {
    position: static;
  }

  .lp-header .container {
    flex-wrap: wrap;
    height: auto;
    row-gap: 0;
    padding-top: 12px;
  }

  .lp-nav {
    order: 3;
    width: 100%;
    gap: 22px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .lp-header .logo {
    font-size: 19px;
  }

  .lp-header-end {
    gap: 8px;
  }

  .hero-grid,
  .lp-feature .container {
    grid-template-columns: 1fr;
  }

  .lp-feature.reverse .lp-feature-text {
    order: 0;
  }

  .fan {
    height: 420px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-feature,
  .lp-stores,
  .lp-quote,
  .lp-faq,
  .lp-pricing {
    padding: 48px 0;
  }

  .tiers {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
  }

  /* On a phone the paid tier leads: it's the one with something to decide. */
  .tier.is-featured {
    order: -1;
  }

  .stack {
    align-items: stretch;
  }

  .stack .toast {
    max-width: none;
  }

  .stack .toast:nth-child(2) {
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .lp-header .container {
    gap: 12px;
  }

  .hero-stats {
    gap: 24px;
  }

  /* The card fan stays: a little smaller on a phone, spread less so no card runs off the edge,
     with its toast tucked under the cards. */
  .hero-grid {
    gap: 8px;
  }

  .fan {
    height: 320px;
  }

  .fan-card {
    width: 164px;
    margin: -132px 0 0 -82px;
  }

  .fan-card:nth-child(1) {
    transform: rotate(-14deg) translate(-64px, 16px);
  }

  .fan-card:nth-child(2) {
    transform: rotate(-3deg) translate(-12px, -6px);
  }

  .fan-card:nth-child(3) {
    transform: rotate(9deg) translate(52px, 8px);
  }

  .fan .toast {
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .lp-hero {
    padding: 36px 0 44px;
  }

  /* Store health reads fine as words; the four cards double the section's length. */
  .health {
    display: none;
  }

  .lp-quote {
    display: none;
  }

  /* The first eight stores, then a link to all of them. */
  .store-chips > :nth-child(n + 9) {
    display: none;
  }

  .store-chips-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--accent);
  }

  .lp-feature-visual.stack .toast:nth-child(n + 3) {
    display: none;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }

  .lp-cta-block {
    padding: 80px 0;
  }
}

/* The narrowest phones keep the logo mark and drop the word, so Log in and Sign up fit. */
@media (max-width: 380px) {
  .lp-header .logo-word {
    display: none;
  }
}

/* A phone shows the logged-in name as just the person icon. */
@media (max-width: 420px) {
  .nav-account .nav-name {
    display: none;
  }
}

/* ── Member page: /join once you're a member ──────────── */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  align-items: start;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.hub-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  font-size: var(--text-heading);
}

.hub-card h2 i {
  color: var(--accent);
}

.hub-card > .btn {
  align-self: flex-start;
}

.hub-note {
  margin: 0;
  line-height: 1.55;
  color: var(--text2);
}

.hub-note b {
  color: var(--text1);
  word-break: break-all;
}

.hub-fine {
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--text3);
}

.hub-fine a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-big {
  margin: 0;
  color: var(--text2);
}

.hub-big b {
  margin-right: 6px;
  font: 400 40px / 1 var(--font-display);
  color: var(--text1);
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-danger {
  color: var(--error);
}

.join-lede .badge {
  vertical-align: 2px;
  margin-right: 4px;
}

/* An on/off switch: a pill with a knob, then the setting and a line on what it sends. */
.hub-switches {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.hub-switch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.hub-switch input {
  flex: none;
  appearance: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--surface3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.hub-switch input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text2);
  transition: transform 0.15s, background 0.15s;
}

.hub-switch input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.hub-switch input:checked::after {
  transform: translateX(18px);
  background: var(--bg, #08070f);
}

.hub-switch input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hub-switch input:disabled,
.hub-switch input:disabled + .hub-switch-text {
  opacity: 0.45;
  cursor: not-allowed;
}

.hub-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hub-switch-text b {
  font-weight: 600;
  color: var(--text1);
}

.hub-switch-text small {
  font-size: var(--text-body-sm);
  color: var(--text3);
}

.hub-status {
  min-height: 1.2em;
  margin: 0;
  font: 400 var(--text-caption) var(--font-mono);
  color: var(--success);
}

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

.lp-feature-text .hero-ctas {
  margin-top: 24px;
}

.hub-status:empty {
  display: none;
}

/* What DropNZ is, under a store or region page's heading, for a first visit from a search. */
.seo-about {
  max-width: 680px;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
  border-radius: var(--radius-control, 4px);
  font-size: var(--text-body-sm, 14px);
  line-height: 1.55;
  color: var(--text2);
}

.seo-about b {
  color: var(--text1);
}

.seo-about a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The live "browsing now" count in the footer (public/presence.js). */
.live-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live-count[hidden] {
  display: none;
}
.live-count b {
  color: var(--text);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  to {
    box-shadow: 0 0 0 6px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
}
