:root {
  --bg: #0c0d11;
  --bg3: #14161f;
  --white: #f0ede8;
  --w90: rgba(240, 237, 232, 0.90);
  --w60: rgba(240, 237, 232, 0.60);
  --w35: rgba(240, 237, 232, 0.35);
  --w12: rgba(240, 237, 232, 0.08);
  --w06: rgba(240, 237, 232, 0.045);
  --orange: #e8622a;
  --nav-active: #CF5530;
  --serif: 'DM Serif Display', Georgia, serif;
  --syne: 'Syne', sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --glow-sm: 0 0 30px rgba(240, 237, 232, 0.22), 0 0 70px rgba(240, 237, 232, 0.08);
  --glow-md: 0 0 50px rgba(240, 237, 232, 0.28), 0 0 120px rgba(240, 237, 232, 0.10);
  --glow-lg: 0 0 80px rgba(240, 237, 232, 0.30), 0 0 200px rgba(240, 237, 232, 0.12);
  --max-w: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  background:
    radial-gradient(circle at 8% 22%, rgba(232, 98, 42, 0.25) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 14%, rgba(232, 98, 42, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(240, 237, 232, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 78%, rgba(240, 237, 232, 0.10) 0 1px, transparent 2px),
    radial-gradient(ellipse 70% 44% at 50% 5%, rgba(232, 98, 42, 0.045), transparent 72%);
}

.site-header, main, .site-footer { position: relative; z-index: 1; }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 4rem;
}

/* Shared MATTTCHES navigation */

/* Shared type and controls */
h1 {
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.5vw, 7.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: var(--glow-sm);
}
h1 em { color: var(--orange); font-weight: 400; }
h2 {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h3 {
  margin-bottom: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.12;
}
.muted, .page-intro > p:not(.eyebrow) {
  max-width: 590px;
  color: var(--w60);
  font-size: 1rem;
  line-height: 1.85;
}
.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--syne);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--w35);
}
.button {
  min-height: 48px;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--white);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--white);
  color: var(--bg);
  box-shadow: var(--glow-md);
  font-family: var(--syne);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.button:hover { box-shadow: var(--glow-lg); transform: translateY(-2px); }
.button.secondary {
  border-color: var(--w12);
  background: transparent;
  color: var(--w90);
  box-shadow: none;
}
.button.secondary:hover { border-color: var(--w35); box-shadow: var(--glow-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

/* Attendee landing */
.launch-hero {
  width: min(calc(100vw - 4rem), 1240px);
  min-height: 100vh;
  margin-left: 50%;
  padding: 8.5rem 0 7rem;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}
.film-frame {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--w12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  text-align: center;
  animation: fadeUp 0.9s ease both 0.25s;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.48), 0 0 90px rgba(232, 98, 42, 0.08);
}
.film-frame::before {
  content: '';
  width: 150px;
  height: 150px;
  position: absolute;
  top: 88px;
  border: 1px solid rgba(232, 98, 42, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(232, 98, 42, 0.14);
}
.spark-symbol {
  margin-bottom: 2.6rem;
  position: relative;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 5.8rem;
  line-height: 1;
  text-shadow: 0 0 40px rgba(232, 98, 42, 0.35);
}
.film-frame h2 { margin-bottom: 0.75rem; font-size: clamp(1.9rem, 3vw, 3rem); }
.film-frame p { max-width: 290px; margin-bottom: 0; color: var(--w60); font-size: 0.9rem; line-height: 1.75; }
.film-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.matt-note-video {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg3);
  border: 0;
}
.film-frame.has-video {
  padding: 0;
  background: var(--bg3);
}
.film-frame.has-video::before,
.film-frame.has-video .film-placeholder { display: none; }
.film-frame.has-video .matt-note-video { display: block; }
.film-overlay-shade,
.film-overlay { display: none; }
.film-frame.has-video .film-overlay-shade {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(90deg, rgba(7, 8, 11, 0.92) 0%, rgba(7, 8, 11, 0.7) 36%, rgba(7, 8, 11, 0.08) 70%, transparent 100%);
  transition: opacity 560ms cubic-bezier(.22, .61, .36, 1);
}
.film-frame.has-video .film-overlay {
  width: min(48%, 550px);
  padding: 0 0 4rem;
  display: block;
  position: absolute;
  left: clamp(2rem, 6vw, 5rem);
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  text-align: left;
  animation: none;
  transition: opacity 560ms cubic-bezier(.22, .61, .36, 1), visibility 0s linear;
}
.film-overlay h1 { font-size: clamp(3.5rem, 5.5vw, 6.2rem); text-shadow: 0 2px 28px rgba(0, 0, 0, 0.62); }
.film-overlay > p { max-width: 34rem; margin: 1.5rem 0 0; color: rgba(240, 237, 232, 0.78); font-size: 1rem; }
.film-overlay .actions { pointer-events: auto; }
.film-frame.is-playing .film-overlay,
.film-frame.is-playing .film-overlay-shade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 560ms cubic-bezier(.22, .61, .36, 1), visibility 0s linear 560ms;
}
.film-frame.has-video .matt-note-video::-webkit-media-controls,
.film-frame.has-video .matt-note-video::-webkit-media-controls-panel {
  display: flex !important;
  opacity: 1 !important;
}
.status {
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(232, 98, 42, 0.35);
  border-radius: 100px;
  display: inline-block;
  color: var(--w60);
  font-family: var(--syne);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-heading { padding-top: 6rem; border-top: 1px solid var(--w06); }
.section-heading > p { max-width: 650px; margin-bottom: 3.5rem; }
#app-features .feature-grid {
  padding: 0 0 7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4.5rem;
}
#app-features article { min-width: 0; padding: 2.3rem 0 2.8rem; border-top: 1px solid var(--w06); }
#app-features article:nth-last-child(-n + 2) { border-bottom: 1px solid var(--w06); }
#app-features h3 { color: var(--white); text-shadow: var(--glow-sm); }
#app-features article p { margin-bottom: 0; color: var(--w60); font-size: 0.96rem; line-height: 1.85; }
.app-download {
  padding: 7rem 0;
  border-top: 1px solid var(--w06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6rem;
}
.app-download h2 { max-width: 520px; }
.app-download .button { margin-top: 1rem; }
.app-preview-frame {
  width: min(100%, 360px);
  justify-self: center;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.53));
}
.app-store-preview { display: block; width: 100%; height: auto; }

/* FAQ */
.faq-page .page-intro { padding: 10rem 0 6rem; animation: fadeUp 0.9s ease both 0.1s; }
.faq-page .page-intro h1 { max-width: 760px; margin-bottom: 0; }
.faq-layout {
  padding-bottom: 8rem;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 5rem;
}
.topic-nav {
  position: sticky;
  top: 6rem;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.topic-nav .eyebrow { margin-bottom: 1rem; }
.topic-nav a {
  min-height: 52px;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--w06);
  display: flex;
  align-items: center;
  color: var(--w60);
  font-family: var(--syne);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.topic-nav a:first-of-type { border-top: 1px solid var(--w06); }
.topic-nav a[aria-current='true'] { color: var(--orange); border-bottom-color: rgba(232, 98, 42, 0.55); }
.faq-list { min-width: 0; }
.faq-item {
  position: relative;
  border-top: 1px solid var(--w06);
  scroll-margin-top: 5.5rem;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    border-radius 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.faq-item:last-child { border-bottom: 1px solid var(--w06); }
.faq-item[open] { background: var(--bg); }
.faq-item summary {
  padding: 1.8rem 3rem 1.8rem 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  color: var(--w90);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  top: 1.6rem;
  right: 0.25rem;
  color: var(--orange);
  font-family: var(--syne);
  font-size: 1.35rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.answer { padding: 0 0 2rem; color: var(--w60); font-size: 0.96rem; line-height: 1.85; }
.answer p { max-width: 68ch; }
.answer p:last-child { margin-bottom: 0; }
.answer a { color: var(--w90); text-underline-offset: 4px; }
.video-walkthrough {
  margin: 1.75rem 0 0;
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--w12);
  border-radius: 10px;
  background: var(--bg);
  color: var(--w60);
  font-size: 0.86rem;
}
.video-walkthrough .eyebrow { color: var(--w35); }
.video-walkthrough video { display: block; width: 100%; height: auto; max-height: 70vh; margin: 0.75rem 0; border-radius: 6px; background: var(--bg); }
.download-note { margin-top: 1rem; color: var(--w60); font-size: 0.8rem; }

/* Privacy and legal reading experience */
.legal-intro {
  padding: 10rem 0 7rem;
  border-bottom: 1px solid var(--w06);
  animation: fadeUp 0.9s ease both 0.1s;
}
.legal-intro h1 { max-width: 820px; }
.legal-layout {
  padding: 5rem 0 8rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 5rem;
}
.legal-nav {
  position: sticky;
  top: 6rem;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.legal-nav .eyebrow { margin-bottom: 1rem; }
.legal-nav a {
  min-height: 52px;
  padding: .75rem 0;
  border-bottom: 1px solid var(--w06);
  display: flex;
  align-items: center;
  color: var(--w60);
  font-family: var(--syne);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}
.legal-nav a:first-of-type { border-top: 1px solid var(--w06); }
.legal-nav a:hover { padding-left: .3rem; border-bottom-color: rgba(232,98,42,.55); color: var(--orange); }
.legal-content { min-width: 0; }
.legal-document {
  max-width: 760px;
  padding: 0 0 6rem;
  scroll-margin-top: 6rem;
}
.legal-document + .legal-document {
  padding-top: 6rem;
  border-top: 1px solid var(--w12);
}
.legal-document:last-child { padding-bottom: 0; }
.legal-document-header { margin-bottom: 2rem; }
.legal-document-header .eyebrow { margin-bottom: 1rem; }
.legal-document h2 { max-width: 680px; margin-bottom: 1rem; }
.legal-document h3 {
  margin: 2.8rem 0 .8rem;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}
.legal-document h4 {
  margin: 2rem 0 .5rem;
  color: var(--w90);
  font-family: var(--syne);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.legal-date { margin: 0; color: var(--w35); font-size: .86rem; }
.legal-date strong { color: var(--w60); font-weight: 500; }
.legal-summary {
  margin: 0 0 3rem;
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--w12);
  border-radius: 12px;
  background: var(--bg);
  color: var(--w60);
  line-height: 1.8;
}
.legal-summary strong { color: var(--white); font-weight: 500; }
.legal-document section > p,
.legal-document section > ul { max-width: 72ch; color: var(--w60); font-size: 1rem; line-height: 1.85; }
.legal-document section > p { margin-bottom: 1rem; }
.legal-document ul { margin: .8rem 0 1.4rem; padding-left: 1.35rem; }
.legal-document li { margin-bottom: .55rem; padding-left: .35rem; }
.legal-document a { color: var(--w90); text-decoration-color: rgba(232,98,42,.7); text-underline-offset: 4px; }
.legal-document a:hover { color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .topic-nav a:hover {
    background: rgba(232, 98, 42, 0.045);
    color: var(--white);
    box-shadow: inset 2px 0 rgba(232, 98, 42, 0.55);
    transform: translateX(3px);
  }
  .faq-item:hover {
    z-index: 1;
    border-radius: 10px;
    background: var(--bg);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
  }
}

/* Shared closing invitation */
.help-banner {
  min-height: 400px;
  padding: 6.5rem 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--w06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: radial-gradient(ellipse 70% 70% at 50% 65%, rgba(232, 98, 42, 0.06), transparent 72%);
  text-align: center;
}
.help-banner > div { display: flex; flex-direction: column; align-items: center; }
.help-banner .eyebrow { margin-bottom: 1.5rem; }
.help-banner h2 { margin-bottom: 0.7rem; }
.help-banner p { margin-bottom: 0; color: var(--w60); }
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 800;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--bg);
}
.skip-link:focus { top: 0.75rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .wrap { padding-inline: 1.75rem; }
  .launch-hero { min-height: auto; padding: 9rem 0 6rem; }
  .film-overlay h1 { font-size: clamp(3rem, 7.5vw, 5rem); }
  .section-heading { padding-top: 5rem; }
  #app-features .feature-grid { gap: 0 2.5rem; padding-bottom: 5rem; }
  .app-download { padding: 5rem 0; gap: 3rem; }
  .faq-page .page-intro { padding: 9rem 0 5rem; }
  .faq-layout { padding-bottom: 5rem; grid-template-columns: 1fr; gap: 2.75rem; }
  .topic-nav {
    position: static;
    overflow-x: auto;
    flex-direction: row;
    gap: 0.55rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .topic-nav::-webkit-scrollbar { display: none; }
  .topic-nav .eyebrow { min-width: 100%; display: none; }
  .topic-nav a, .topic-nav a:first-of-type {
    min-height: auto;
    padding: 0.55rem 0.9rem;
    flex: 0 0 auto;
    border: 1px solid var(--w12);
    border-radius: 100px;
  }
  .topic-nav a[aria-current='true'] { border-color: rgba(232, 98, 42, 0.55); }
  .legal-intro { padding: 9rem 0 5rem; }
  .legal-layout { padding: 3rem 0 6rem; grid-template-columns: 1fr; gap: 3.5rem; }
  .legal-nav {
    position: static;
    overflow-x: auto;
    flex-direction: row;
    gap: .55rem;
    padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .legal-nav::-webkit-scrollbar { display: none; }
  .legal-nav .eyebrow { display: none; }
  .legal-nav a, .legal-nav a:first-of-type {
    min-height: 44px;
    padding: .55rem .9rem;
    flex: 0 0 auto;
    border: 1px solid var(--w12);
    border-radius: 100px;
  }
  .legal-nav a:hover { padding-left: .9rem; border-color: rgba(232,98,42,.55); }
  .help-banner { min-height: 360px; padding: 5rem 1.75rem; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 1.25rem; }
  .launch-hero { width: 100%; margin-left: 0; padding: 7.5rem 0 4.5rem; transform: none; }
  h1 { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.25rem); }
  .button { width: 100%; padding-inline: 1.25rem; }
  .film-frame { min-height: 0; aspect-ratio: 4 / 5; padding: 0; }
  .film-frame::before { top: 52px; }
  .film-frame.has-video .film-overlay-shade {
    background: linear-gradient(180deg, rgba(7, 8, 11, 0.82) 0%, rgba(7, 8, 11, 0.58) 55%, rgba(7, 8, 11, 0.12) 78%, transparent 100%);
  }
  .film-frame.has-video .film-overlay {
    width: auto;
    left: 1.5rem;
    right: 1.5rem;
    padding-bottom: 4.25rem;
  }
  .film-overlay h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .film-overlay > p { margin-top: 1rem; font-size: .9rem; }
  .section-heading { padding-top: 4rem; }
  #app-features .feature-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 4rem; }
  #app-features article:nth-last-child(-n + 2) { border-bottom: 0; }
  #app-features article:last-child { border-bottom: 1px solid var(--w06); }
  .app-download { padding: 4rem 0; grid-template-columns: 1fr; gap: 3rem; }
  .app-preview-frame { width: min(100%, 300px); }
  .faq-page .page-intro { padding: 8rem 0 4rem; }
  .legal-intro { padding: 8rem 0 4rem; }
  .legal-layout { padding: 2.5rem 0 5rem; gap: 2.75rem; }
  .legal-document { padding-bottom: 4.5rem; scroll-margin-top: 7.5rem; }
  .legal-document + .legal-document { padding-top: 4.5rem; }
  .legal-summary { padding: 1.3rem 1.2rem; }
  .faq-item summary { padding: 1.5rem 2.5rem 1.5rem 0; font-size: 1.3rem; }
  .faq-item summary::after { top: 1.35rem; }
  .help-banner { min-height: 330px; padding: 4.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .topic-nav a:hover, .faq-item:hover { transform: none; }
  .legal-nav a { transition: none; }
}
