/* ═══════════════════════════════════════════
   LANDING PAGE — m-session
   Hero, phones, principles, preview, flow,
   modules, trust, install, CTA, scanline
   ═══════════════════════════════════════════ */

/* Light mode — landing-specific overrides */
html.light .phone {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.08);
}
html.light .preview-phone {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
html.light .hero::after {
  background: linear-gradient(
    transparent 0%,
    rgba(212, 148, 106, 0.015) 50%,
    transparent 100%
  );
}
html.light .hero::before {
  background: radial-gradient(
    ellipse,
    rgba(212, 148, 106, 0.06) 0%,
    transparent 70%
  );
}
html.light .cta::before {
  background: radial-gradient(
    ellipse,
    rgba(212, 148, 106, 0.04) 0%,
    transparent 70%
  );
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}
/* Radial gradient glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse,
    rgba(184, 169, 232, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  position: relative;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-text h1 .accent {
  color: var(--accent);
}
.hero-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 44px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.hero-stat-value {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════
   PHONE MOCKUPS
   ═══════════════════════════════════════════ */
.phone-showcase {
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 24px;
}
.phone {
  width: 270px;
  height: 560px;
  background: var(--phone-bg);
  border-radius: 40px;
  border: 2px solid var(--phone-border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.5s ease, border-color 0.4s ease;
}
.phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--phone-bg);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.phone-screen {
  padding: 36px 20px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--phone-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--phone-border);
}
.phone-header-title {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--phone-text);
  text-transform: none;
}
.phone-header-tag {
  font-size: 8px;
  color: var(--phone-secondary);
  letter-spacing: 0.08em;
}
.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 0 4px;
  border-top: 1px solid var(--phone-border);
  margin-top: auto;
}
.phone-nav span {
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--phone-secondary);
}
.phone-nav span.active {
  color: var(--phone-accent);
}

/* Moon animation inside phone */
#moon-pre {
  font-family: var(--mono);
  font-size: 5.5px;
  line-height: 0.93;
  letter-spacing: 0.22em;
  white-space: pre;
  user-select: none;
  color: var(--phone-accent);
  opacity: 0.7;
  text-align: center;
}

/* ═══════════════════════════════════════════
   PRINCIPLES STRIP
   ═══════════════════════════════════════════ */
.principles {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.principle {
  padding: 56px 36px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.principle:last-child {
  border-right: none;
}
.principle:hover {
  background: var(--bg-elevated);
}
.principle-icon {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent);
  opacity: 0.8;
  font-family: var(--mono);
}
.principle-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.principle-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   SCREENSHOTS / APP PREVIEW
   ═══════════════════════════════════════════ */
.preview-section {
  background: var(--bg-elevated);
}
.preview-phones {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.preview-phone {
  width: 240px;
  height: 500px;
  background: var(--phone-bg);
  border-radius: 36px;
  border: 2px solid var(--phone-border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s ease, border-color 0.4s ease;
}
.preview-phone:hover {
  transform: translateY(-8px);
}
.preview-phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--phone-bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.preview-screen {
  padding: 32px 18px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--phone-text);
  overflow: hidden;
}
.preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   SESSION FLOW
   ═══════════════════════════════════════════ */
.flow-timeline {
  margin-top: 64px;
  position: relative;
}
.flow-timeline::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.flow-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 36px;
  padding: 36px 0;
  position: relative;
}
.flow-step + .flow-step {
  border-top: 1px solid var(--border);
}
.flow-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--text-tertiary);
  text-align: center;
  position: relative;
}
.flow-num::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.flow-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.flow-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 500px;
}

/* ═══════════════════════════════════════════
   MODULE GRID
   ═══════════════════════════════════════════ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.module-card {
  background: var(--bg);
  padding: 36px;
  transition: background 0.3s;
}
.module-card:hover {
  background: var(--bg-elevated);
}
.module-phase {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.8;
}
.module-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.module-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.module-framework {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════
   PRIVACY / TRUST
   ═══════════════════════════════════════════ */
/* Compass SVG theme-aware fills */
.compass-grid-line {
  stroke: var(--phone-border);
}
.compass-accent-text {
  fill: var(--phone-accent);
}
.compass-dim-text {
  fill: var(--phone-secondary);
}
.compass-accent-dot {
  fill: var(--phone-accent);
}
.compass-away-dot {
  fill: var(--phone-away);
}
.compass-label-text {
  fill: var(--phone-text);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.trust-item {
  background: var(--bg);
  padding: 48px 40px;
}
.trust-icon {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}
.trust-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.trust-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   INSTALL
   ═══════════════════════════════════════════ */
.install-section {
  text-align: center;
  padding: 140px 32px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.install-steps {
  display: flex;
  justify-content: center;
  gap: 72px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.install-step {
  max-width: 200px;
}
.install-num {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 14px;
  color: var(--accent);
  font-family: var(--serif);
}
.install-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta {
  text-align: center;
  padding: 160px 32px;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(184, 169, 232, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta .section-body {
  margin: 0 auto 48px;
  text-align: center;
}

/* ═══════════════════════════════════════════
   SCANLINE ANIMATION (subtle)
   ═══════════════════════════════════════════ */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(184, 169, 232, 0.015) 50%,
    transparent 100%
  );
  height: 200px;
  width: 100%;
  animation: scanline 8s linear infinite;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — landing-specific
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-tagline {
    margin: 0 auto 36px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    margin-top: 40px;
    gap: 36px;
  }
  .phone-showcase {
    order: -1;
  }
  .phone {
    width: 220px;
    height: 460px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .principle {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 24px;
  }
  .principle:last-child {
    border-bottom: none;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .trust-item {
    padding: 36px 24px;
  }
  .modules-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .module-card {
    padding: 28px 24px;
  }
  .flow-timeline {
    margin-top: 48px;
  }
  .flow-step {
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .flow-num {
    font-size: 22px;
  }
  .flow-timeline::before {
    left: 28px;
  }
  .flow-num::after {
    right: -12px;
  }
  .preview-phones {
    gap: 24px;
    margin-top: 56px;
  }
  .preview-phone {
    width: 200px;
    height: 420px;
  }
  .install-section {
    padding: 80px 24px;
  }
  .install-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
  }
  .cta {
    padding: 100px 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 64px;
  }
  .hero-grid {
    gap: 32px;
  }
  .hero-text h1 {
    margin-bottom: 20px;
  }
  .hero-tagline {
    margin-bottom: 28px;
    max-width: 100%;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-stats {
    margin-top: 32px;
    padding-top: 24px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero-stat-value {
    font-size: 19px;
  }
  .hero-stat-label {
    font-size: 9px;
  }
  .phone {
    width: 190px;
    height: 400px;
  }
  .phone::before {
    width: 80px;
    height: 24px;
  }
  .phone-screen {
    padding: 30px 16px 12px;
  }
  #moon-pre {
    font-size: 4.5px;
  }
  .principle {
    padding: 32px 20px;
  }
  .trust-item {
    padding: 28px 20px;
  }
  .module-card {
    padding: 24px 20px;
  }
  .flow-step {
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .flow-num {
    font-size: 20px;
  }
  .flow-timeline::before {
    left: 22px;
  }
  .flow-title {
    font-size: 17px;
  }
  .flow-desc {
    font-size: 11px;
  }
  .preview-phones {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
  }
  .preview-phone {
    width: 200px;
    height: 420px;
  }
  .install-section {
    padding: 64px 20px;
  }
  .install-steps {
    gap: 28px;
    margin-top: 32px;
  }
  .cta {
    padding: 72px 20px;
  }
}
