﻿/**
 * NFC Business Card product page styles only.
 * Framework and homepage CSS remain untouched.
 */

.page-nfc-card .template-landing__hero {
  min-height: auto;
  align-items: stretch;
  padding-block: 0;
}

.nfc-media {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 200px;
  padding: 0;
  background: var(--color-bg-elevated);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle);
  color: var(--color-text-tertiary);
  font-size: var(--text-caption);
  letter-spacing: 0.02em;
}

.nfc-media picture,
.nfc-media img,
.nfc-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfc-media--hero {
  min-height: clamp(280px, 48vw, 520px);
  border-radius: var(--radius-xl);
}

.nfc-media--gallery {
  min-height: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
}

.nfc-media--lifestyle {
  aspect-ratio: 16 / 10;
}

.nfc-media--packaging {
  aspect-ratio: 1 / 1;
}

/* â€”â€”â€” Sales hero (C1 + C2) â€”â€”â€” */
.nfc-sales {
  padding-block: var(--space-6) var(--space-10);
}

.nfc-sales__grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

/* Mobile: gallery first, purchase below (match shop PDP) */
.nfc-sales__gallery {
  order: 0;
  min-width: 0;
}

.nfc-sales__panel {
  order: 1;
}

.nfc-sales__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.nfc-sales__lede {
  margin: var(--space-4) 0 0;
  max-width: 40ch;
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.nfc-sales__trust {
  margin-top: var(--space-2);
}

.nfc-sales__note {
  margin: var(--space-3) 0 0;
}

.nfc-sales__activate {
  margin: var(--space-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

.nfc-sales__jump {
  margin: var(--space-4) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-small);
  color: var(--color-text-tertiary);
}

.nfc-sales__jump a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nfc-sales__jump a:hover,
.nfc-sales__jump a:focus-visible {
  color: var(--color-text-primary);
}

.nfc-sales__include {
  margin: var(--space-3) 0 0;
}

.nfc-sales__design {
  margin: var(--space-2) 0 0;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.nfc-sales__design a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nfc-sales__design-hint {
  color: var(--color-text-tertiary);
}

.pdp-addons {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle, rgba(0, 0, 0, 0.02));
}

.pdp-addons--compact {
  margin-top: var(--space-4);
  padding: var(--space-3);
}

.buy-box__addons {
  margin: var(--space-4) 0 var(--space-3);
}

.buy-box__addons .pdp-addons {
  margin-top: 0;
}

.pdp-addons--compact .pdp-addons__head {
  margin-bottom: var(--space-2);
}

.pdp-addons--compact .pdp-addons__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.pdp-addons--compact .pdp-addons__label {
  align-items: center;
  gap: var(--space-2);
}

.pdp-addons--compact .pdp-addons__check {
  margin-top: 0;
  width: 1rem;
  height: 1rem;
}

.pdp-addons--compact .pdp-addons__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.pdp-addons--compact .pdp-addons__name {
  font-size: var(--text-caption);
}

.pdp-addons--compact .pdp-addons__price {
  font-size: var(--text-caption);
  font-weight: 600;
}

.pdp-addons--compact .pdp-addons__note {
  margin-top: var(--space-2);
  font-size: 0.7rem;
  line-height: 1.35;
}

@media (max-width: 420px) {
  .pdp-addons--compact .pdp-addons__list {
    grid-template-columns: 1fr;
  }
}

.pdp-addons__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.pdp-addons__title {
  margin: 0;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.pdp-addons__more {
  font-size: var(--text-caption);
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.pdp-addons__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.pdp-addons__item {
  display: block;
}

.pdp-addons__label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  margin: 0;
}

.pdp-addons__check {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--color-text-primary, #111);
}

.pdp-addons__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.pdp-addons__name {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-primary);
}

.pdp-addons__blurb {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.pdp-addons__price {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-text-primary);
}

.pdp-addons__term {
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.pdp-addons__summary {
  margin: var(--space-3) 0 0;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-text-primary);
}

.pdp-addons__note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

.pdp-addons__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nfc-related-rail {
  margin-top: var(--space-2);
  padding-block: var(--space-2) var(--space-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nfc-related-rail__grid.product-grid,
.nfc-related-rail .product-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-4);
  grid-template-columns: none;
  width: max-content;
  min-width: 100%;
  padding-bottom: var(--space-2);
}

.nfc-related-rail .product-card,
.nfc-related-rail .card {
  flex: 0 0 min(15.5rem, 72vw);
  max-width: 15.5rem;
}

.nfc-sales__fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.nfc-sales__panel .buy-box {
  margin-top: 0;
}

.nfc-sales__panel .buy-box__actions {
  flex-direction: column;
}

.nfc-sales__panel .buy-box__actions .btn {
  width: 100%;
  justify-content: center;
}

.nfc-reviews__copy {
  margin: 0;
  max-width: 42rem;
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

@media (min-width: 960px) {
  .nfc-sales {
    padding-block: var(--space-8) var(--space-14);
  }

  .nfc-sales__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: var(--space-10);
    align-items: start;
  }

  .nfc-sales__gallery,
  .nfc-sales__panel {
    order: initial;
  }

  /* C2 — desktop sticky purchase panel. The panel sticks while it fits the
     viewport; if its content is taller than the viewport it scrolls naturally
     with the page (no internal scrollbar). The previous max-height +
     overflow-y:auto produced an awkward inner scroll on the buy now / add to
     bag section, so it is removed. */
  .nfc-sales__panel {
    position: sticky;
    top: var(--space-6);
    align-self: start;
  }

  .nfc-sales__panel .buy-box__actions {
    flex-direction: row;
  }

  .nfc-sales__panel .buy-box__actions .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

/* Legacy hero hooks removed â€” keep media helpers */

/* â€”â€”â€” Comparison â€”â€”â€” */
.nfc-compare {
  display: grid;
  gap: var(--space-6);
  align-items: stretch;
}

@media (min-width: 768px) {
  .nfc-compare {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-6);
    align-items: start;
  }
}

.nfc-compare__col {
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.nfc-compare__col--accent {
  border-color: var(--color-border-default);
}

.nfc-compare__label {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
}

.nfc-compare__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.nfc-compare__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-4);
}

.nfc-compare__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.nfc-compare__item--paper .nfc-compare__icon {
  color: var(--color-text-tertiary);
}

.nfc-compare__item--nfc .nfc-compare__icon {
  color: var(--color-text-primary);
}

.nfc-compare__icon {
  display: inline-flex;
  margin-top: 0.15rem;
}

/* â€”â€”â€” Features â€”â€”â€” */
.nfc-features {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .nfc-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .nfc-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* â€”â€”â€” How it works â€”â€”â€” */
.nfc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nfc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nfc-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.nfc-steps__index {
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.nfc-steps__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h5);
  font-weight: var(--font-weight-medium);
}

.nfc-steps__text {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

/* â€”â€”â€” Destinations â€”â€”â€” */
.nfc-destinations {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .nfc-destinations {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.nfc-destinations__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.nfc-destinations__icon {
  color: var(--color-text-primary);
}

.nfc-destinations__label {
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
}

/* â€”â€”â€” Gallery â€”â€”â€” */
.nfc-gallery {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .nfc-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .nfc-gallery__item:nth-child(1),
  .nfc-gallery__item:nth-child(2) {
    grid-column: span 3;
  }

  .nfc-gallery__item:nth-child(3),
  .nfc-gallery__item:nth-child(4) {
    grid-column: span 3;
  }

  .nfc-gallery__item:nth-child(5) {
    grid-column: span 6;
    max-width: 32rem;
    justify-self: center;
    width: 100%;
  }
}

.nfc-gallery__item {
  margin: 0;
}

.nfc-gallery__caption {
  margin-top: var(--space-3);
  color: var(--color-text-tertiary);
  font-size: var(--text-caption);
}

/* â€”â€”â€” Specifications â€”â€”â€” */
.nfc-specs {
  margin: 0;
  border-top: 1px solid var(--color-border-subtle);
}

.nfc-specs__row {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
}

@media (min-width: 768px) {
  .nfc-specs__row {
    grid-template-columns: 10rem 1fr;
    gap: var(--space-8);
    align-items: baseline;
  }
}

.nfc-specs__term {
  margin: 0;
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.nfc-specs__detail {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

/* â€”â€”â€” Final CTA fallback â€”â€”â€” */
.nfc-cta {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.nfc-cta h2 {
  margin: 0 0 var(--space-4);
}

.nfc-cta p {
  margin: 0 0 var(--space-8);
  color: var(--color-text-secondary);
}

.nfc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (max-width: 959px) {
  .nfc-sales__panel .buy-box__actions {
    flex-direction: column;
  }

  .nfc-sales__panel .buy-box__actions .btn {
    width: 100%;
  }
}

/* School Access OS — B2B inquiry (not Buy Now) */
.nfc-inquiry__price {
  margin: 0 0 var(--space-3);
  color: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nfc-inquiry__intro {
  margin-bottom: var(--space-5);
}

.nfc-inquiry__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-4);
}

.nfc-inquiry__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.nfc-inquiry__field--full {
  grid-column: 1 / -1;
}

.nfc-inquiry__field input,
.nfc-inquiry__field select,
.nfc-inquiry__field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  background: var(--color-bg-elevated, #fff);
  color: var(--color-text);
  font: inherit;
}

.nfc-inquiry__field input:focus,
.nfc-inquiry__field select:focus,
.nfc-inquiry__field textarea:focus {
  outline: 2px solid var(--color-accent, #1a5cff);
  outline-offset: 1px;
}

.nfc-inquiry__actions {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
}

.nfc-inquiry__actions .btn {
  width: 100%;
}

.nfc-inquiry__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.nfc-inquiry__status--error {
  color: var(--color-danger, #b42318);
}

.nfc-inquiry__success {
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  border-radius: 12px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
}

.nfc-inquiry__success-title {
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

@media (max-width: 639px) {
  .nfc-inquiry__form {
    grid-template-columns: 1fr;
  }
}



/* Tap Experience buying-decision preview */
.nfc-tap-experience {
  position: relative;
}

/* Tap card → digital experience flow strip */
.nfc-tap-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: 560px;
  padding: 0.9rem 1.4rem;
  border-radius: 16px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.25);
}

.nfc-tap-flow__card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-on-accent, #fff);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nfc-tap-flow__card-chip {
  width: 10px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.nfc-tap-flow__arrow {
  color: var(--color-accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.nfc-tap-flow__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  background: #fff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.nfc-tap-flow__phone::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ea46a;
  flex-shrink: 0;
}

.nfc-tap-flow__phone-screen {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Grid: left (selected explainer + list) / right (preview) */
.nfc-tap-experience__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.nfc-tap-experience__left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: 1.5rem;
}

.nfc-tap-selected {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-accent-soft, var(--color-bg-elevated));
}

.nfc-tap-selected__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.nfc-tap-selected__summary {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.nfc-tap-selected__what {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
}

.nfc-tap-selected__fit {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.nfc-tap-experience__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nfc-tap-choice {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem 1rem 2.3rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.nfc-tap-choice::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.nfc-tap-choice:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.nfc-tap-choice[aria-pressed="true"] {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  background: var(--color-bg-accent-soft, var(--color-bg-elevated));
}

.nfc-tap-choice[aria-pressed="true"]::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.nfc-tap-choice__label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.nfc-tap-choice__desc {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Right: large preview */
.nfc-tap-experience__preview {
  position: relative;
  display: flex;
  justify-content: center;
}

.nfc-tap-experience__panel {
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-bg-elevated);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.32);
}

.nfc-tap-experience__demo-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  background: linear-gradient(180deg, var(--color-bg-accent-soft, #f3efe7), var(--color-bg-elevated));
}

.nfc-tap-experience__demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  animation: nfc-demo-pulse 2s ease-in-out infinite;
}

@keyframes nfc-demo-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-accent-soft); }
  50% { box-shadow: 0 0 0 5px var(--color-accent-soft); }
}

.nfc-tap-experience__demo-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.nfc-tap-experience__demo-note {
  margin-left: auto;
  color: var(--color-text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Device frame — large, prominent phone so the experience is readable */
.nfc-tap-experience__device {
  position: relative;
  margin: 1.1rem auto;
  width: calc(100% - 2rem);
  max-width: 372px;
  border-radius: 36px;
  padding: 12px;
  background: #11141a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 22px 48px -18px rgba(0, 0, 0, 0.5);
}

.nfc-tap-experience__device-speaker {
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 auto 10px;
}

.nfc-tap-experience__panel-body {
  height: 580px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 26px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.nfc-tap-experience__panel-body::-webkit-scrollbar {
  width: 6px;
}

.nfc-tap-experience__panel-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.nfc-tap-experience__panel-body .profile-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Mobile-first preview (Block 6): on narrow viewports the phone-bezel frame
   is collapsed so the actual Tap Experience uses the full available content
   width — no artificial dark frame, padding or speaker consuming viewport.
   The rendered profile is the SAME canonical experience (renderProfileCard);
   only the frame presentation adapts. The bezel returns on wider screens. */
@media (max-width: 480px) {
  .nfc-tap-experience__device {
    width: 100%;
    max-width: none;
    margin: 1.1rem 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .nfc-tap-experience__device-speaker {
    display: none;
  }
  .nfc-tap-experience__panel-body {
    height: 540px;
    border-radius: 0;
  }
}

/* Preview-only toast */
.nfc-tap-preview-toast {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(17, 20, 26, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  animation: nfc-toast-in 160ms ease-out;
  max-width: 90%;
  white-space: nowrap;
}

@keyframes nfc-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Plan demo (Block 7): canonical FREE / BASIC / PLUS demo ───────────────
   The demo panel reuses the SAME device frame as the Tap Experience preview
   (including the Block 6 mobile-first collapse) and renders the SAME
   canonical profile card. The plan switcher is read-only (client toggles
   pre-rendered panels; never writes, never grants, never charges). */
.plan-demo {
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-bg-elevated);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.32);
}

.plan-demo__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  background: linear-gradient(180deg, var(--color-bg-accent-soft, #f3efe7), var(--color-bg-elevated));
}

.plan-demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.plan-demo__title {
  font-weight: 600;
  font-size: 0.92rem;
}

.plan-demo__note {
  margin-left: auto;
  color: var(--color-text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plan-demo__switcher {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.1rem 0;
  flex-wrap: wrap;
}

.plan-demo__tab {
  appearance: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  min-height: 44px;
}

.plan-demo__tab.is-active,
.plan-demo__tab[aria-selected="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft, #f3efe7);
  color: var(--color-text);
}

.plan-demo__panels {
  padding: 1rem 1.1rem 1.1rem;
}

.plan-demo__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .plan-demo__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* The demo device — iPhone 17 Pro Max proportions.
   Screen aspect ≈ 9:19.5 (1320×2868 family). Chassis is slightly taller
   with thin continuous curves + Dynamic Island. Vertically extended so the
   Digital ID scroll feels like a real tall phone, not a squat card. */
.plan-demo__device {
  --pm-bezel: 11px;
  --pm-radius: 54px;
  --pm-screen-radius: 44px;
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 402px;
  /* Outer frame: Pro Max height/width including bezel (iPhone 17 Pro Max) */
  aspect-ratio: 9 / 19.5;
  max-height: min(56rem, 88vh);
  box-sizing: border-box;
  border-radius: var(--pm-radius);
  padding: var(--pm-bezel);
  background:
    linear-gradient(155deg, #3a3a3e 0%, #1c1c1f 28%, #0a0a0c 62%, #222226 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 3px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 56px -16px rgba(0, 0, 0, 0.55),
    0 12px 24px -12px rgba(0, 0, 0, 0.4);
}

.plan-demo__island {
  position: absolute;
  top: calc(var(--pm-bezel) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  max-width: 118px;
  height: 32px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 3;
  pointer-events: none;
}

.plan-demo__btn {
  position: absolute;
  background: linear-gradient(90deg, #2e2e32, #121214);
  border-radius: 2px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  z-index: 2;
  pointer-events: none;
}

.plan-demo__btn--silent {
  left: -2px;
  top: 18%;
  width: 3px;
  height: 28px;
  border-radius: 2px 0 0 2px;
}

.plan-demo__btn--vol-up {
  left: -2px;
  top: 26%;
  width: 3px;
  height: 48px;
  border-radius: 2px 0 0 2px;
}

.plan-demo__btn--vol-down {
  left: -2px;
  top: 36%;
  width: 3px;
  height: 48px;
  border-radius: 2px 0 0 2px;
}

.plan-demo__btn--power {
  right: -2px;
  top: 28%;
  width: 3px;
  height: 72px;
  border-radius: 0 2px 2px 0;
}

/* Scroll the demo profile with the mouse wheel — no visible scrollbar.
   Fills the Pro Max screen area (taller than the old squat frame). */
.plan-demo__viewport {
  height: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--pm-screen-radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Room under Dynamic Island so avatar/name aren't clipped */
  padding-top: 0;
}

.plan-demo__viewport::-webkit-scrollbar {
  display: none;
}

.plan-demo__viewport .profile-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.plan-demo__info {
  min-width: 0;
  display: grid;
  gap: 0.75rem;
}

.plan-demo__tier {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.plan-demo__tier-note {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
}

.plan-demo__addons-label {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6b7280);
}

.plan-demo__check--addon {
  opacity: 0.75;
}

.plan-demo__caps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.plan-demo__cap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.plan-demo__check {
  flex: none;
  color: var(--color-success, #2f7d4f);
  font-weight: 700;
  margin-top: 0.05rem;
}

.plan-demo__cap-desc {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
}

.plan-demo__empty {
  color: var(--color-text-tertiary);
  font-size: 0.85rem;
}

.plan-demo__handoff {
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.plan-demo__handoff-copy {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 40rem;
}

/* Mobile: keep Pro Max aspect; use full column width, no squeeze (Block 6). */
@media (max-width: 480px) {
  .plan-demo__note {
    white-space: normal;
    text-align: right;
  }
  .plan-demo__device {
    width: 100%;
    max-width: none;
    /* Still Pro Max proportions — taller phone, not a wide slab */
    aspect-ratio: 9 / 19.5;
    max-height: min(52rem, 82vh);
    --pm-radius: 48px;
    --pm-screen-radius: 38px;
  }
  .plan-demo__device .profile-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

/* ── Tap-to-Link demo (Free) ───────────────────────────────────────────────
   Free does NOT host a Amoay Digital ID profile. The card forwards taps to
   an external link the owner chooses, so the Free demo is a read-only
   Linktree-style card of external destinations (never a hosted profile
   renderer, never a real third-party account). The demo card fills the same
   device frame as the Basic/Plus hosted profile demo so the three plans stay
   visually consistent. */
.tap-to-link {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem 1.1rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfaf7, #f4f1ea);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.4);
  min-height: 360px;
  align-content: start;
}

.tap-to-link__header {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
}

.tap-to-link__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep, #8a6d3b));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tap-to-link__name {
  margin: 0.4rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}

.tap-to-link__headline {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.tap-to-link__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.tap-to-link__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  background: var(--color-bg-elevated);
}

.tap-to-link__label {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
}

.tap-to-link__link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.tap-to-link__link:hover {
  text-decoration: underline;
}

.tap-to-link__note {
  margin: 0.2rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.45;
}

/* Preview-only toast inside the plan demo (Free external-links card). */
.plan-demo__preview-toast {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(17, 20, 26, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  animation: nfc-toast-in 160ms ease-out;
  max-width: 90%;
  white-space: nowrap;
}


@media (max-width: 960px) {
  .nfc-tap-experience__grid {
    grid-template-columns: 1fr;
  }
  .nfc-tap-experience__left {
    position: static;
  }
  .nfc-tap-experience__list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .nfc-tap-choice {
    flex: 0 0 260px;
  }
  .nfc-tap-experience__preview {
    order: 2;
  }
  .nfc-tap-flow {
    flex-wrap: wrap;
  }
}
