/* ============================================================
   TESSERA MISSIONS — Landing Site Design System
   tesseramissions.org
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&family=Inter:wght@400;500;600&display=swap');

/* --- Tokens --- */
:root {
  /* Brand palette — light-tier (static) */
  --ink:       #1C2421;
  --ink-light: #253028;
  --ink-mid:   #2E3B37;
  --amber:     #E9A23B;
  --amber-dim: #c4882e;
  --teal:      #2E6E62;
  --clay:      #C4502F;
  --slate:     #4E6B7A;
  --plum:      #7A4E6B;
  --indigo:    #46508A;
  --bronze:    #8C5E2E;

  /* Surface colors */
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --surface-card:  rgba(255,255,255,0.05);
  --border:        rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  /* Text */
  --text-primary:   #F2EDE2;   /* cream */
  --text-secondary: #94A099;   /* muted green-gray */
  --text-tertiary:  #5E706A;

  /* Type */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --gap-xs:  8px;
  --gap-sm:  16px;
  --gap-md:  24px;
  --gap-lg:  48px;
  --gap-xl:  80px;
  --gap-2xl: 120px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Max content width */
  --max-width: 1100px;
  --content-width: 720px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gap-md);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(28, 36, 33, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  width: 28px;
  height: 28px;
}

.nav-wordmark {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.nav-wordmark span {
  color: var(--slate);
  display: inline-block;
  transform: rotate(12deg);
  transform-origin: 50% 75%;
}

.nav-links {
  display: none;
  gap: var(--gap-lg);
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* Hamburger — mobile only */
.nav-hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--surface); }
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--text-primary); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--ink-light);
  border-bottom: 1px solid var(--border);
  padding: var(--gap-md);
  z-index: 99;
  flex-direction: column;
  gap: var(--gap-sm);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--text-primary); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 11px 20px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--amber-dim);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--amber);
  color: var(--amber);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 11px 12px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg {
  font-size: 14px;
  padding: 14px 28px;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

.section {
  padding: var(--gap-xl) 0;
}

.section + .section {
  padding-top: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--gap-sm);
}

.section-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--gap-sm);
  line-height: 1.3;
}

.section-title span { color: var(--slate); }

.section-body {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--gap-lg);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--gap-xl) 0;
}

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--gap-md) var(--gap-xl);
  position: relative;
  overflow: hidden;
}

/* Tile mosaic background — the brand motif as ambient texture */
.hero-tiles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.03;
}

.hero-tiles svg {
  width: 100%;
  height: 100%;
}

.hero-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin-bottom: var(--gap-xs);
  filter: drop-shadow(0 0 32px rgba(233, 162, 59, 0.25));
}

.hero-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(40px, 9vw, 80px);
  letter-spacing: 0.10em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0;
}

.hero-title span {
  color: var(--slate);
  display: inline-block;
  transform: rotate(12deg);
  transform-origin: 50% 75%;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(10px, 1.8vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: -8px;
}

.hero-description {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
  margin-top: var(--gap-xs);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  justify-content: center;
  margin-top: var(--gap-xs);
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: var(--gap-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.hero-scroll svg {
  width: 16px;
  opacity: 0.4;
}

/* ============================================================
   QUICK START (3 steps)
   ============================================================ */

/* ============================================================
   APP TOUR
   ============================================================ */

.apptour-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 32px;
}

.apptour-phone {
  flex: 0 0 auto;
  width: 220px;
}

.apptour-phone img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  display: block;
}

.apptour-list {
  flex: 1 1 auto;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apptour-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.apptour-item strong {
  color: var(--text-primary);
}

.apptour-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(233, 162, 59, 0.15);
  border: 1px solid rgba(233, 162, 59, 0.35);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.apptour-tap {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal);
  opacity: 0.85;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .apptour-layout {
    flex-direction: column;
    align-items: center;
  }
  .apptour-phone {
    width: 200px;
  }
}

/* ============================================================
   QUICKSTART
   ============================================================ */

.quickstart {
  background: var(--ink-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--gap-lg) 0;
}

.quickstart-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.quickstart-step {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--amber);
}

.step-content h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-connector {
  display: none;
}

@media (min-width: 640px) {
  .quickstart-steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    align-items: start;
  }
  .quickstart-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 var(--gap-md);
  }
  .quickstart-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    width: 1px;
    height: 40px;
    background: var(--border);
  }
}

/* ============================================================
   INSTALL SECTION
   ============================================================ */

.install-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.install-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg) var(--gap-md);
  transition: border-color 0.2s;
}

.install-card:hover {
  border-color: var(--border-strong);
}

.install-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--gap-md);
}

.install-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.install-card-header h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.install-card-header p {
  font-size: 12px;
  color: var(--text-tertiary);
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.install-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 1px;
}

.install-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.install-step strong {
  color: var(--text-primary);
  font-weight: 500;
}

.install-step-main {
  flex: 1;
  min-width: 0;
}

.install-shot {
  display: block;
  margin-top: 12px;
  width: 100%;
  max-width: 208px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Screenshot placeholder */
.install-screenshot {
  margin-top: var(--gap-md);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* Notification sub-section */
.notif-box {
  margin-top: var(--gap-lg);
  background: rgba(233, 162, 59, 0.06);
  border: 1px solid rgba(233, 162, 59, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
}

.notif-box h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: var(--gap-xs);
}

.notif-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .install-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   ROLE GUIDES
   ============================================================ */

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.role-card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--gap-md);
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.role-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.role-card:hover::before { opacity: 1; }

/* Accent colors per role */
.role-card[data-role="group-leader"]::before     { background: var(--amber); }
.role-card[data-role="site-coach"]::before       { background: var(--teal); }
.role-card[data-role="material-runner"]::before  { background: var(--clay); }
.role-card[data-role="event-coordinator"]::before{ background: var(--indigo); }
.role-card[data-role="hotshot"]::before          { background: var(--plum); }
.role-card[data-role="support"]::before          { background: var(--slate); }

.role-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-sm);
}

.role-tile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.role-card[data-role="group-leader"] .role-tile     { background: var(--amber); }
.role-card[data-role="site-coach"] .role-tile       { background: var(--teal); }
.role-card[data-role="material-runner"] .role-tile  { background: var(--clay); }
.role-card[data-role="event-coordinator"] .role-tile{ background: var(--indigo); }
.role-card[data-role="hotshot"] .role-tile          { background: var(--plum); }
.role-card[data-role="support"] .role-tile          { background: var(--slate); }

.role-arrow {
  color: var(--text-tertiary);
  transition: transform 0.2s, color 0.2s;
  font-size: 18px;
}

.role-card:hover .role-arrow {
  transform: translateX(3px);
  color: var(--text-secondary);
}

.role-card h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.role-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.role-not-sure {
  margin-top: var(--gap-md);
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

.role-not-sure a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.role-not-sure a:hover { color: var(--text-primary); }

@media (min-width: 640px) {
  .roles-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .roles-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: var(--gap-md) 0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}

.faq-question:hover { color: var(--amber); }

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 0 var(--gap-md);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.faq-item.open .faq-answer { display: block; }

.faq-answer a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   ABOUT (the name & the metaphor)
   ============================================================ */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.about-prose p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-prose p + p {
  margin-top: var(--gap-md);
}

.about-prose strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Dictionary-style definition */
.tessera-def {
  border-left: 2px solid var(--border-strong);
  padding-left: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.tessera-def dt {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.tessera-def-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.tessera-def-meta em {
  color: var(--text-secondary);
  font-style: italic;
}

.tessera-def-say {
  color: var(--amber);
  letter-spacing: 0.06em;
}

.tessera-def-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--gap-xs);
}

/* Mosaic visual — echoes the logo: a home built from tiles,
   with one tile tilted as if just being set into place. */
.about-mosaic {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.about-mosaic img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(233, 162, 59, 0.12));
}

/* Slogan under the mark — set as in the brand lockup: mono, uppercase, tracked out */
.about-mosaic figcaption {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--gap-xl);
  }
}

/* ============================================================
   OPEN APP BANNER (sticky bottom on mobile during event)
   ============================================================ */

.app-banner {
  background: var(--ink-light);
  border-top: 1px solid var(--border);
  padding: var(--gap-md) 0;
  text-align: center;
}

.app-banner h2 {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.app-banner p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
}

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

.footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: var(--gap-lg) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img { width: 24px; height: 24px; }

.footer-wordmark {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.footer-wordmark span {
  color: var(--slate);
  display: inline-block;
  transform: rotate(12deg);
  transform-origin: 50% 75%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: auto;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-copy { margin-top: 0; }
}

/* ============================================================
   ROLE PAGE (individual role guides)
   ============================================================ */

.role-page { padding-top: 60px; }

.role-hero {
  padding: var(--gap-xl) 0 var(--gap-lg);
  border-bottom: 1px solid var(--border);
}

/* Slim variant — header is just the title row, no big hero block */
.role-hero.slim {
  padding: var(--gap-md) 0;
}
.role-hero.slim .role-hero-back {
  margin-bottom: var(--gap-sm);
}
.role-hero.slim .role-hero-identity {
  margin-bottom: 0;
}
.role-hero.slim .role-hero-tile {
  width: 40px;
  height: 40px;
}

.role-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--gap-md);
  transition: color 0.15s;
}

.role-hero-back:hover { color: var(--text-secondary); }

.role-hero-identity {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.role-hero-tile {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
}

.role-hero-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1.1;
}

.role-hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* First action — high emphasis box */
.first-action {
  background: rgba(233, 162, 59, 0.07);
  border: 1px solid rgba(233, 162, 59, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--gap-md) var(--gap-lg);
  margin: var(--gap-lg) 0;
}

.first-action-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--gap-xs);
}

.first-action h2 {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--gap-xs);
}

.first-action p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Role content sections */
.role-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
  padding: var(--gap-xl) 0;
}

.role-section h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--gap-md);
}

/* Pages used — badge chips */
.pages-used {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.page-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
}

/* Group Leader guide — page-by-page screenshots */
.gl-intro {
  padding: var(--gap-lg) 0 0;
}
.gl-intro p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--gap-sm);
}

.gl-subhead {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: var(--gap-lg) 0 var(--gap-md);
}

.gl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}
.gl-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.gl-feature {
  display: flex;
  gap: var(--gap-md);
  align-items: flex-start;
}
.gl-feature--lead {
  margin-bottom: var(--gap-sm);
}

.gl-shot {
  flex: 0 0 132px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-light);
  align-self: flex-start;
}
.gl-shot--lg { flex-basis: 180px; }
.gl-shot img { width: 100%; height: auto; display: block; }

.gl-desc strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.gl-desc p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .gl-grid { grid-template-columns: 1fr 1fr; }
}

/* Feature screenshot grid — visual, low-text role guides */
.feature-section {
  padding: var(--gap-lg) 0 var(--gap-md);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-shot {
  background: var(--ink-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card:hover .feature-shot {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.feature-cap strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.feature-cap span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Workflow steps */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.workflow-step {
  display: flex;
  gap: var(--gap-md);
  align-items: flex-start;
}

.workflow-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.workflow-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.workflow-line {
  width: 1px;
  flex: 1;
  min-height: 24px;
  background: var(--border);
  margin: 4px 0;
}

.workflow-step:last-child .workflow-line { display: none; }

.workflow-step-content {
  padding-bottom: var(--gap-md);
}

.workflow-step-content h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.workflow-step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Common tasks */
.task-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.task-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Bottom CTA on role pages */
.role-cta {
  background: var(--ink-light);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.role-cta p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
}

/* ============================================================
   ANIMATIONS & REDUCED MOTION
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .btn-primary:hover { transform: none; }
  .role-card:hover { transform: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-amber { color: var(--amber); }
.text-muted { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   INTERACTIVE GROUP-LEADER DEMO  (tm- = "tessera mock")
   A clickable, dummy-data replica of the app — no backend.
   ============================================================ */
.tm-demo { padding: var(--gap-lg) 0 var(--gap-xl); }
.tm-demo-head { margin-bottom: var(--gap-lg); }
.tm-demo-head h2 {
  font-family: var(--font-mono); font-weight: 300;
  font-size: clamp(22px, 4vw, 32px); letter-spacing: 0.04em;
  color: var(--text-primary); margin-bottom: var(--gap-xs); line-height: 1.2;
}
.tm-demo-sub { font-size: 15px; color: var(--text-secondary); max-width: 560px; line-height: 1.6; }
.tm-muted { color: var(--text-tertiary); }

.tm-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-xl); align-items: start; }
@media (min-width: 900px) {
  .tm-grid { grid-template-columns: 520px 1fr; gap: var(--gap-lg); }
  .tm-phone { position: sticky; top: 84px; }
}

/* phone frame */
.tm-phone { justify-self: center; width: 100%; max-width: 520px; }
.tm-screen {
  position: relative; height: 720px; display: flex; flex-direction: column;
  background: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); overflow: hidden; font-size: 13px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,255,255,0.02);
}

.tm-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  background: var(--ink-light); flex-shrink: 0;
}
.tm-pill {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.07em;
  color: var(--amber); border: 1px solid rgba(233,162,59,0.4);
  border-radius: 999px; padding: 4px 9px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.tm-topicons { display: flex; gap: 11px; color: var(--text-tertiary); font-size: 13px; }

.tm-panel { flex: 1; overflow-y: auto; padding: var(--gap-md); }
.tm-panel::-webkit-scrollbar { width: 0; }

.tm-proj-head { margin-bottom: var(--gap-md); }
.tm-eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; color: var(--text-tertiary); }
.tm-exec { color: var(--clay); }
.tm-proj-title {
  font-family: var(--font-mono); font-weight: 300; font-size: 26px; letter-spacing: 0.02em;
  color: var(--text-primary); line-height: 1.1; margin: 4px 0; text-transform: uppercase;
}
.tm-proj-meta { font-size: 12px; color: var(--text-secondary); }

/* status cards */
.tm-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: var(--gap-md); }
.tm-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 10px 8px; border-radius: var(--radius-md); text-align: left; cursor: pointer;
  background: var(--surface-card); border: 1px solid var(--border);
  border-top: 2px solid var(--text-tertiary); transition: transform 0.15s, background 0.15s;
}
.tm-card:hover { background: var(--surface-hover); transform: translateY(-2px); }
.tm-card-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.03em; color: var(--text-secondary); text-transform: uppercase; white-space: nowrap; }
.tm-card-num { font-family: var(--font-mono); font-size: 20px; color: var(--text-primary); }
.tm-card[data-accent="teal"]  { border-top-color: var(--teal); }
.tm-card[data-accent="clay"]  { border-top-color: var(--clay); }
.tm-card[data-accent="amber"] { border-top-color: var(--amber); }
.tm-card[data-accent="slate"] { border-top-color: var(--slate); }

/* collapsible sections */
.tm-section { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; background: var(--surface); }
.tm-section--amber { background: rgba(233,162,59,0.05); border-color: rgba(233,162,59,0.22); }
.tm-sec-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px; cursor: pointer; color: var(--text-primary); text-align: left; }
.tm-sec-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; flex: 1; }
.tm-chev { color: var(--text-tertiary); transition: transform 0.2s; }
.tm-section.open .tm-chev { transform: rotate(180deg); }
.tm-sec-body { display: none; padding: 0 12px 14px; }
.tm-section.open .tm-sec-body { display: block; }

.tm-badges { display: flex; gap: 5px; }
.tm-b { font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; border-radius: 5px; border: 1px solid; }
.tm-b-m { color: var(--amber); border-color: rgba(233,162,59,0.5); }
.tm-b-t, .tm-b-active { color: var(--teal); border-color: rgba(46,110,98,0.65); }

.tm-callout { background: var(--ink-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 10px; }
.tm-callout strong { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); margin-bottom: 3px; }
.tm-callout span { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }

.tm-toggle { display: flex; gap: 6px; margin-bottom: 4px; }
.tm-tg { flex: 1; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); background: var(--surface); cursor: pointer; }
.tm-tg.active { border-color: var(--amber); color: var(--amber); background: rgba(233,162,59,0.08); }

.tm-fl { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--text-tertiary); text-transform: uppercase; margin: 9px 0 5px; }
.tm-input { background: var(--ink-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 10px; font-size: 12px; color: var(--text-primary); }
.tm-input.tm-ph { color: var(--text-tertiary); }

.tm-btn-amber, .tm-btn-teal, .tm-btn-ghost { width: 100%; margin-top: 10px; padding: 10px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; cursor: pointer; }
.tm-btn-amber { background: var(--amber); color: var(--ink); }
.tm-btn-teal { background: var(--teal); color: var(--text-primary); }
.tm-btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-secondary); }
.tm-sm { width: auto; margin: 0; padding: 6px 12px; }
.tm-full { width: 100%; }

.tm-reqrow { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--text-secondary); margin-top: 8px; }

.tm-tool { padding: 10px 0; border-bottom: 1px solid var(--border); }
.tm-tool:last-child { border-bottom: none; }
.tm-tool-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tm-tool-top strong { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-primary); }
.tm-tool p { font-size: 11px; line-height: 1.45; }

.tm-listitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-top: 10px; }
.tm-listitem strong { display: block; font-size: 12px; color: var(--text-primary); }
.tm-listitem span { font-size: 10px; }

/* bottom nav */
.tm-nav { display: flex; border-top: 1px solid var(--border); background: var(--ink-light); flex-shrink: 0; }
.tm-nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.05em; color: var(--text-tertiary); cursor: pointer; }
.tm-nav-ic { font-size: 14px; }
.tm-nav-btn.active { color: var(--amber); }

.tm-stub { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: var(--gap-lg); }
.tm-stub-ic { font-size: 30px; color: var(--text-tertiary); }
.tm-stub strong { font-family: var(--font-mono); font-size: 16px; color: var(--text-primary); }
.tm-stub span { font-size: 12px; max-width: 220px; }

/* modals (bottom sheets within the phone) */
.tm-modal-layer { position: absolute; inset: 0; background: rgba(10,14,12,0.72); display: flex; align-items: flex-end; z-index: 5; }
.tm-modal { width: 100%; max-height: 86%; overflow-y: auto; background: var(--ink-mid); border: 1px solid var(--border-strong); border-bottom: none; border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); padding: var(--gap-md); animation: tmUp 0.22s ease; }
@keyframes tmUp { from { transform: translateY(24px); opacity: 0.5; } to { transform: translateY(0); opacity: 1; } }
.tm-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--gap-sm); }
.tm-modal-head strong { font-family: var(--font-mono); font-size: 15px; color: var(--text-primary); }
.tm-close { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); cursor: pointer; }
.tm-close:hover { color: var(--text-primary); }

.tm-person { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.tm-person:last-child { border-bottom: none; }
.tm-av { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); flex-shrink: 0; }
.tm-person-name { flex: 1; }
.tm-person-name strong { display: block; font-size: 13px; color: var(--text-primary); }
.tm-person-name span { font-size: 10px; }
.tm-tag { font-family: var(--font-mono); font-size: 9px; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 5px; padding: 3px 7px; }

.tm-hs { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-top: 10px; }
.tm-hs-info strong { display: block; font-size: 13px; color: var(--text-primary); }
.tm-hs-info span { font-size: 10px; }
.tm-hs-act { display: flex; gap: 6px; flex-shrink: 0; }

.tm-alertgrid { display: flex; flex-direction: column; gap: 8px; }
.tm-altbtn { padding: 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.tm-altbtn:hover { border-color: var(--amber); color: var(--amber); }

/* guiding captions */
.tm-captions { display: flex; flex-direction: column; gap: 10px; }
.tm-cap-hint { font-size: 13px; color: var(--text-tertiary); margin-bottom: 4px; }
.tm-cap { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.tm-cap:hover, .tm-cap.active { border-color: var(--border-strong); background: var(--surface-hover); }
.tm-cap-dot { grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; background: var(--text-tertiary); }
.tm-cap-dot[data-accent="teal"]  { background: var(--teal); }
.tm-cap-dot[data-accent="clay"]  { background: var(--clay); }
.tm-cap-dot[data-accent="amber"] { background: var(--amber); }
.tm-cap-dot[data-accent="slate"] { background: var(--slate); }
.tm-cap strong { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.03em; color: var(--text-primary); }
.tm-cap span { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Exact-copy demo iframe (replaces the hand-built .tm-screen) */
.tm-frame {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 840px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,255,255,0.02);
}

/* ============================================================
   DEMO SECTION — phone mockup
   ============================================================ */

.demo-section {
  overflow: hidden;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr auto;
  }
}

/* Credentials card */
.demo-creds {
  margin-top: var(--gap-md);
  padding: var(--gap-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.demo-creds-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--gap-sm);
}

.demo-cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.demo-cred-row:last-of-type {
  border-bottom: none;
}

.demo-cred-role {
  font-size: 14px;
  color: var(--text-secondary);
}

.demo-cred-pass {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  background: rgba(233, 162, 59, 0.08);
  border: 1px solid rgba(233, 162, 59, 0.18);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  user-select: all;
  cursor: text;
}

.demo-creds-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--gap-sm);
  line-height: 1.5;
}

.demo-open-link {
  margin-top: var(--gap-md);
}

/* Phone mockup — hidden on mobile, shown on desktop */
.demo-phone {
  display: none;
  justify-content: center;
}

@media (min-width: 900px) {
  .demo-phone {
    display: flex;
  }
}

/* Outer wrapper — sets the visual footprint */
.phone-wrap {
  position: relative;
  width: 310px;
  height: 671px;
  flex-shrink: 0;
}

/* Phone body */
.phone-frame {
  position: absolute;
  inset: 0;
  background: #161D1A;
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.7),
    0 48px 96px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.phone-wrap.feature-active .phone-frame {
  border-color: rgba(60,138,123,0.55);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.7),
    0 48px 96px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 3px rgba(60,138,123,0.25),
    0 0 24px rgba(60,138,123,0.18);
}

/* Side buttons (decorative) */
.phone-btn-vol-up,
.phone-btn-vol-down,
.phone-btn-power {
  position: absolute;
  background: #111816;
  border-radius: 2px;
}
.phone-btn-vol-up   { left: -3px; top: 108px; width: 3px; height: 34px; }
.phone-btn-vol-down { left: -3px; top: 154px; width: 3px; height: 34px; }
.phone-btn-power    { right: -3px; top: 134px; width: 3px; height: 60px; }

/* Dynamic island */
.phone-island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #0C1210;
  border-radius: 22px;
  z-index: 10;
  pointer-events: none;
}

/* Screen + iframe */
.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 38px;
  overflow: hidden;
  background: #1C2421;
}

.phone-screen iframe {
  width: 390px;
  height: 844px;
  border: none;
  /* scale 390px → 310px */
  transform: scale(0.7949);
  transform-origin: top left;
  display: block;
}

/* Column wrapping phone + reset button */
.demo-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.demo-reset-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #94A099;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.demo-reset-btn:hover {
  background: rgba(255,255,255,0.10);
  color: #F2EDE2;
}

/* ── Feature guide ────────────────────────────────────── */

/* Flex row: phone col + feature sidebar */
.demo-feature-zone {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Feature sidebar */
.demo-feature-menu {
  width: 156px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 28px;
}

.feature-menu-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 5px;
}

.feature-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.feature-btn:hover {
  border-color: rgba(46,110,98,0.55);
  color: #F2EDE2;
  background: rgba(46,110,98,0.09);
}

.feature-btn.active {
  border-color: #2E6E62;
  color: #A9D8CC;
  background: rgba(46,110,98,0.14);
}

/* Pulsing hotspot dot on the phone screen */
.feature-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 15;
  transform: translate(-50%, -50%);
}

.hotspot-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E9A23B;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(233,162,59,0.9);
}

.hotspot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(233,162,59,0.65);
  animation: hotspot-pulse 1.5s ease-out infinite;
}

@keyframes hotspot-pulse {
  0%   { transform: scale(0.65); opacity: 1; }
  100% { transform: scale(2.0);  opacity: 0; }
}

/* Floating callout dialog */
.feature-callout {
  position: absolute;
  width: 154px;
  background: #1A2320;
  border: 1px solid rgba(46,110,98,0.45);
  border-radius: 8px;
  padding: 11px 13px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  z-index: 20;
  pointer-events: none;
}

/* Arrow pointing left toward the phone */
.callout-arrow {
  position: absolute;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid rgba(46,110,98,0.45);
}

.callout-arrow::after {
  content: '';
  position: absolute;
  left: 2px;
  top: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #1A2320;
}

.callout-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #9FBECD;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.callout-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   FEATURE TOUR
   ============================================================ */

.ft-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--gap-lg);
  align-items: start;
  margin-top: var(--gap-md);
}

@media (max-width: 768px) {
  .ft-layout {
    grid-template-columns: 1fr;
  }
}

.ft-screenshot-wrap {
  position: sticky;
  top: 88px;
}

.ft-screenshot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ft-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.ft-overlay {
  position: absolute;
  border-radius: 5px;
  border: 2px solid transparent;
  background: transparent;
  pointer-events: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ft-overlay.active {
  border-color: var(--amber);
  background: rgba(233, 162, 59, 0.14);
  box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.18);
}

.ft-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ft-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ft-item.open {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.ft-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ft-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ft-label {
  flex: 1;
}

.ft-chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.ft-item.open .ft-chevron {
  transform: rotate(180deg);
}

.ft-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.ft-item.open .ft-body {
  max-height: 200px;
}

.ft-body p {
  padding: 0 14px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* Home indicator */
.phone-home-bar {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  z-index: 10;
  pointer-events: none;
}
