/* ============================================================
   Theater Room 7 — marketing site
   Design tokens & shared styles (see design_handoff README)
   ============================================================ */

:root {
  --bg:        #0A0908; /* page background */
  --bg-alt:    #0E0C0B; /* alternating section background */
  --card:      #12100E; /* phone frame / poster card */
  --cream:     #EDE9E2; /* primary text */
  --red:       #B3161C; /* brand red / primary CTA */
  --red-hover: #C41A21;
  --amber:     #F2A33C; /* accent */

  --font-sans:  -apple-system, 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono:  ui-monospace, Menlo, monospace;

  --maxw:  1160px;
  --narrow: 760px;
  --pad:   32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(179,22,28,.4); color: var(--cream); }

a { color: inherit; }

img { display: block; }

/* ---- layout helpers ---- */
.wrap   { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: var(--narrow); }
.section { border-top: 1px solid rgba(237,233,226,.07); }
.section--alt { background: var(--bg-alt); }

/* ---- typography helpers ---- */
.eyebrow {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(237,233,226,.4);
}
.eyebrow--dot { display: inline-flex; align-items: center; gap: 10px; color: rgba(237,233,226,.5); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: inline-block; }

.muted  { color: rgba(237,233,226,.55); }
.dimmer { color: rgba(237,233,226,.45); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.nav__brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav__brand span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nav__link {
  font-size: 13px; font-weight: 600; color: var(--cream); text-decoration: none;
  border: 1px solid rgba(237,233,226,.22); border-radius: 99px; padding: 8px 18px;
  transition: border-color .2s ease;
}
.nav__link:hover { border-color: rgba(237,233,226,.5); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 600; border-radius: 99px;
  box-shadow: 0 8px 32px rgba(179,22,28,.35);
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--red-hover); }
.btn--md { font-size: 17px; padding: 16px 34px; }
.btn--lg { font-size: 18px; padding: 18px 40px; }

.footnote { font-size: 13px; color: rgba(237,233,226,.35); }

/* ============================================================
   HERO
   ============================================================ */
@keyframes tr7-fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero { max-width: var(--maxw); margin: 0 auto; padding: 92px var(--pad) 0; }
.hero__eyebrow { margin-bottom: 36px; animation: tr7-fadeup .7s ease both; }
.hero h1 {
  margin: 0; font-size: 84px; line-height: 1.04; font-weight: 700;
  letter-spacing: -0.035em; max-width: 980px;
  animation: tr7-fadeup .7s ease .08s both;
}
.hero h1 .dim { color: rgba(237,233,226,.38); }
.hero__cta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 32px;
  margin-top: 44px; animation: tr7-fadeup .7s ease .16s both;
}
.hero__cta-row p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(237,233,226,.58); max-width: 440px; }
.hero__foot { margin-top: 14px; animation: tr7-fadeup .7s ease .22s both; }

/* ---- poster row ---- */
.posters {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 22px; align-items: flex-end;
  padding: 84px var(--pad) 96px;
}
.poster { flex: 1; min-width: 0; animation: tr7-fadeup .8s ease both; }
.poster img {
  width: 100%; height: 264px; object-fit: cover; border-radius: 10px;
  background: var(--card); box-shadow: 0 20px 48px rgba(0,0,0,.55);
}
.poster__from { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.poster__avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--cream);
}
.poster__from span.name { color: var(--cream); font-weight: 600; }
.poster__from .label { font-size: 13px; line-height: 1.35; color: rgba(237,233,226,.55); min-width: 0; }

/* tilt (posterTilt = true) */
.poster:nth-child(1) { transform: rotate(-2deg);                     animation-delay: .28s; }
.poster:nth-child(2) { transform: rotate(1.5deg) translateY(-18px);  animation-delay: .35s; }
.poster:nth-child(3) { transform: rotate(-1deg) translateY(-34px);   animation-delay: .42s; }
.poster:nth-child(4) { transform: rotate(2deg) translateY(-14px);    animation-delay: .49s; }
.poster:nth-child(5) { transform: rotate(-1.5deg) translateY(-28px); animation-delay: .56s; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-hidden { opacity: 0; transform: translateY(20px); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem h2 {
  margin: 0; font-size: 52px; line-height: 1.12; font-weight: 700;
  letter-spacing: -0.03em; color: rgba(237,233,226,.42);
}
.problem h2 .picked { color: var(--cream); }
.problem p { margin: 32px 0 0; font-size: 19px; line-height: 1.6; color: rgba(237,233,226,.55); max-width: 560px; }

/* ============================================================
   BELIEF
   ============================================================ */
.belief { text-align: center; }
.belief__statement {
  margin: 0 auto; font-family: var(--font-serif); font-weight: 400;
  font-size: 56px; line-height: 1.18; letter-spacing: -0.01em; max-width: 860px; color: var(--cream);
}
.belief p.support { margin: 36px auto 0; font-size: 19px; line-height: 1.6; color: rgba(237,233,226,.55); max-width: 540px; }
.belief em { color: rgba(237,233,226,.85); font-style: italic; }
.belief__couplet {
  margin: 44px auto 0; font: 400 13px/1.8 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.step__num { font-family: var(--font-serif); font-size: 44px; color: var(--amber); line-height: 1; }
.step h3 { margin: 20px 0 0; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: rgba(237,233,226,.55); }

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.shots { text-align: center; }
.shots h2 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.shots__sub { margin: 22px 0 0; font: 400 12px/1.6 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(237,233,226,.38); }
.shots__grid { display: flex; justify-content: center; gap: 56px; margin-top: 72px; flex-wrap: wrap; }
.shot { width: 272px; }
.phone {
  position: relative; border-radius: 44px; border: 1px solid rgba(237,233,226,.15);
  background: var(--card); padding: 9px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.phone__island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 27px; background: #000; border-radius: 99px; z-index: 2; pointer-events: none;
}
.phone img { width: 100%; height: 530px; object-fit: cover; border-radius: 36px; }
.shot p { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: rgba(237,233,226,.55); }

/* ============================================================
   WHY IT'S DIFFERENT
   ============================================================ */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.why h2 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.why p { margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: rgba(237,233,226,.55); max-width: 420px; }
.why em { color: rgba(237,233,226,.85); font-style: italic; }
.why__list { display: flex; flex-direction: column; }
.why__row {
  display: flex; align-items: baseline; gap: 16px; padding: 22px 0;
  border-bottom: 1px solid rgba(237,233,226,.09);
}
.why__row:last-child { border-bottom: none; }
.why__mark { font-size: 15px; color: rgba(237,233,226,.35); flex: none; width: 32px; }
.why__row span:last-child { font-size: 19px; color: rgba(237,233,226,.6); }
.why__row--yes .why__mark { color: var(--amber); }
.why__row--yes span:last-child { color: var(--cream); font-weight: 600; }

/* ============================================================
   BETA CARD
   ============================================================ */
.beta__card {
  max-width: 720px; margin: 0 auto; text-align: center;
  border: 1px solid rgba(237,233,226,.12); border-radius: 24px; padding: 64px 56px;
  background: linear-gradient(180deg, rgba(179,22,28,.07), rgba(179,22,28,0) 60%);
}
.beta__card .eyebrow--dot { justify-content: center; margin-bottom: 24px; }
.beta__card h2 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.beta__card p { margin: 20px auto 0; font-size: 17px; line-height: 1.6; color: rgba(237,233,226,.55); max-width: 440px; }
.beta__card .btn { margin-top: 36px; }
.beta__card .footnote { margin-top: 16px; }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { display: flex; flex-direction: column; gap: 40px; }
.founder__sign { display: flex; align-items: center; gap: 18px; }
.founder__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.founder__quote { margin: 0; font-family: var(--font-serif); font-size: 30px; line-height: 1.45; color: rgba(237,233,226,.9); }
.founder__quote em { font-style: italic; }
.founder__name { font-size: 16px; font-weight: 600; }
.founder__role { font-size: 14px; color: rgba(237,233,226,.45); margin-top: 4px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { text-align: center; }
.final__icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 36px; box-shadow: 0 12px 40px rgba(179,22,28,.35); }
.final h2 { margin: 0; font-size: 64px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.final .btn { margin-top: 44px; }
.final .footnote { margin-top: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; padding-top: 40px; padding-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer__brand span { font-size: 13px; color: rgba(237,233,226,.45); }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 13px; color: rgba(237,233,226,.45); text-decoration: none; transition: color .2s ease; }
.footer__links a:hover { color: var(--cream); }

/* ============================================================
   LEGAL / CONTACT (inner pages)
   ============================================================ */
.page { max-width: var(--narrow); width: 100%; margin: 0 auto; padding: 72px var(--pad) 120px; flex: 1; }
.page h1 { margin: 0; font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.page .eyebrow { margin-bottom: 24px; }
.body-shell { min-height: 100vh; display: flex; flex-direction: column; }

.effective { margin: 16px 0 0; font-size: 15px; color: rgba(237,233,226,.45); }

.onpage {
  display: flex; gap: 24px; margin-top: 36px; padding: 18px 22px;
  border: 1px solid rgba(237,233,226,.1); border-radius: 14px; background: var(--bg-alt);
  flex-wrap: wrap;
}
.onpage span { font-size: 13px; color: rgba(237,233,226,.4); }
.onpage a { font-size: 13px; color: var(--cream); text-decoration: none; font-weight: 600; transition: color .2s ease; }
.onpage a:hover { color: var(--amber); }

/* legal prose */
.legal { margin-top: 56px; font-size: 16px; line-height: 1.7; color: rgba(237,233,226,.7); }
.legal h2 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -0.03em; color: var(--cream); }
.legal h3 { margin: 40px 0 0; font-size: 20px; font-weight: 600; color: var(--cream); }
.legal p { margin: 16px 0 0; }
.legal ul { margin: 16px 0 0; padding-left: 22px; }
.legal li { margin: 8px 0 0; }
.legal a { color: var(--cream); border-bottom: 1px solid rgba(237,233,226,.3); text-decoration: none; }
.legal a:hover { color: var(--amber); }

.terms-block { margin-top: 88px; padding-top: 56px; border-top: 1px solid rgba(237,233,226,.09); }

/* external document link card (iubenda / Apple EULA) */
.doc-link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 20px; padding: 22px 26px;
  border: 1px solid rgba(237,233,226,.12); border-radius: 16px; background: var(--bg-alt);
  text-decoration: none; color: var(--cream);
  transition: border-color .2s ease, transform .2s ease;
}
.doc-link:hover { border-color: rgba(237,233,226,.3); transform: translateY(-1px); }
.doc-link .title { font-size: 18px; font-weight: 600; }
.doc-link .desc { font-size: 14px; color: rgba(237,233,226,.5); margin-top: 4px; }
.doc-link .arrow { font-size: 14px; font-weight: 600; color: var(--amber); flex: none; }

.placeholder {
  margin-top: 32px; border: 1px dashed rgba(242,163,60,.4); border-radius: 14px; padding: 32px;
  background: repeating-linear-gradient(-45deg, rgba(237,233,226,.02), rgba(237,233,226,.02) 12px, transparent 12px, transparent 24px);
}
.placeholder__tag { font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.placeholder p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: rgba(237,233,226,.55); }

.versions { margin-top: 88px; padding-top: 40px; border-top: 1px solid rgba(237,233,226,.09); }
.versions .eyebrow { margin-bottom: 20px; }
.version-row { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(237,233,226,.07); }
.version-row:last-child { border-bottom: none; }
.badge {
  font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 99px; padding: 5px 10px; flex: none;
}
.badge--current { color: var(--amber); border: 1px solid rgba(242,163,60,.35); }
.badge--upcoming { color: rgba(237,233,226,.35); border: 1px solid rgba(237,233,226,.15); }
.version-row span:last-child { font-size: 15px; }

/* contact */
.contact__intro { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: rgba(237,233,226,.55); max-width: 520px; }
.contact__email {
  display: inline-block; margin-top: 32px; font-size: 20px; font-weight: 600;
  color: var(--cream); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px;
  transition: color .2s ease;
}
.contact__email:hover { color: var(--amber); }

.support { margin-top: 88px; padding-top: 56px; border-top: 1px solid rgba(237,233,226,.09); }
.support .eyebrow { margin-bottom: 20px; }
.support h2 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
.support > p { margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: rgba(237,233,226,.55); max-width: 560px; }
.support__list { display: flex; flex-direction: column; margin-top: 36px; }
.support__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid rgba(237,233,226,.09);
}
.support__row:last-child { border-bottom: none; }
.support__row .title { font-size: 16px; font-weight: 600; }
.support__row .desc { font-size: 14px; color: rgba(237,233,226,.5); margin-top: 4px; }
.support__row a { font-size: 14px; font-weight: 600; color: var(--cream); text-decoration: none; flex: none; transition: color .2s ease; }
.support__row a:hover { color: var(--amber); }
.support__foot { margin: 36px 0 0; font-size: 14px; line-height: 1.6; color: rgba(237,233,226,.4); }
.support__foot a { color: rgba(237,233,226,.7); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(237,233,226,.25); }
.support__foot a:hover { color: var(--amber); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root { --pad: 22px; }
  .hero h1 { font-size: 52px; }
  .hero { padding-top: 64px; }
  .problem h2 { font-size: 38px; }
  .belief__statement { font-size: 38px; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why h2 { font-size: 36px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .shots h2 { font-size: 34px; }
  .final h2 { font-size: 42px; }
  .beta__card { padding: 48px 28px; }
  .beta__card h2 { font-size: 32px; }
  .page h1 { font-size: 40px; }
  .legal h2 { font-size: 30px; }
  /* flatten poster tilt on small screens for readability */
  .posters { flex-wrap: wrap; gap: 16px 16px; }
  .poster { flex: 1 1 40%; transform: none !important; }
  .section .wrap { padding-top: 90px; padding-bottom: 90px; }
}

@media (max-width: 480px) {
  .poster { flex-basis: 46%; }
  .support__row { flex-direction: column; gap: 8px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  [data-reveal] { transition: none !important; }
  [data-reveal].is-hidden { opacity: 1 !important; transform: none !important; }
}
