/* It's Starting! marketing site — home page stylesheet.
   Mirrors the web app's visual system (app/globals.css dark theme,
   app/theaters/[slug]/theater.module.css). Legal pages keep css/style.css. */

@font-face {
  font-family: 'Oilvare';
  src: url("../assets/OilvareBase-Regular.ttf") format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #141212;
  --bg-raised: #171515;
  --text: #f5f5f4;
  --text-2: #d0cbc7;
  --text-3: #b3ada8;
  --text-4: #8f8883;
  --rule: rgba(255, 255, 255, .09);
  --rule-soft: rgba(255, 255, 255, .07);
  --red: #ef1017;
  --red-soft: #f87171;
  --amber: #fbbf24;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--text); }
:where(a, button, summary):focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--bg-raised); color: var(--text); border: 1px solid var(--rule); font-weight: 700; }
.skip-link:focus { left: 0; }

.wrap { width: min(896px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--rule-soft); background: rgba(20, 18, 18, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 69px; padding: 12px 20px; }
.brand { display: flex; min-height: 44px; align-items: center; }
.brand img { width: 176px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; color: var(--text-3); font-size: 14px; font-weight: 700; }
.nav a:hover { color: var(--text); }
.nav .btn-primary { margin-left: 8px; color: #fff; }
.nav .btn-primary:hover { color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 20px 16px; border-top: 1px solid var(--rule-soft); background: var(--bg-raised); }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; color: var(--text); font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--rule-soft); }
.mobile-nav .btn-primary { margin-top: 12px; border-bottom: 0; justify-content: center; }
.mobile-nav.open { display: flex; }

/* Controls */
.btn-primary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 0 18px; background: var(--red); color: #fff; font-size: 15px; font-weight: 800; }
.btn-primary:hover { background: #ef4444; color: #fff; }
.btn-outline { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 0 16px; color: var(--text); font-size: 14.5px; font-weight: 800; }
.btn-outline:hover { border-color: rgba(255,255,255,.3); color: var(--text); }
.store { display: block; line-height: 0; }
.store img { height: 44px; width: auto; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Sections */
main { padding: 28px 0 48px; }
.section { padding: 40px 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.section-head p { margin: 4px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.45; }
.eyebrow { color: var(--amber); font-size: 13px; font-weight: 750; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }

/* Hero */
.hero { padding: 12px 0 0; }
.hero h1 { margin: 8px 0 12px; max-width: 720px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; text-wrap: pretty; }
.hero .lede { margin: 0; max-width: 640px; color: var(--text-2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 32px; align-items: start; margin-top: 28px; }
.hero-value-column { min-width: 0; align-self: start; padding-bottom: 24px; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pillar-card { min-height: 240px; display: flex; flex-direction: column; padding: 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(24,24,27,.5); }
.pillar-label { color: var(--red-soft); font-size: 12.5px; font-weight: 750; }
.pillar-rooms .pillar-label { color: var(--amber); }
.pillar-card h2 { margin: 8px 0 9px; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.01em; }
.pillar-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.48; }
.pillar-card small { display: block; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.hero-value-column .cta-stack { margin-top: 20px; }
.cta-note { max-width: 430px; margin: 0; color: var(--text-4); font-size: 12.5px; line-height: 1.45; }
.hero-proof-column { min-width: 0; align-self: start; padding-bottom: 24px; }
.hero-proof-column .cta-stack { margin-top: 20px; }
.proof-carousel { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(24,24,27,.42); }
.proof-slides { position: relative; min-height: 254px; }
.proof-slide { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 19px 20px 16px; opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s; }
.proof-slide.is-active { position: relative; opacity: 1; visibility: visible; transform: translateX(0); transition-delay: 0s; }
.proof-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 70px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.proof-header > div { min-width: 0; }
.proof-kicker, .proof-location { display: block; }
.proof-kicker { margin-bottom: 4px; color: var(--text-4); font-size: 12.5px; font-weight: 650; }
.proof-theater { display: inline-block; color: var(--text); font-size: 17px; font-weight: 750; line-height: 1.25; }
.proof-theater[href]:hover { color: var(--amber); }
.proof-page-link { display: flex; width: fit-content; align-items: center; gap: 5px; margin-top: 5px; color: var(--amber); font-size: 13px; font-weight: 750; }
.proof-page-link:hover { color: #ffd85a; }
.proof-location { margin-top: 3px; color: var(--text-4); font-size: 12.5px; }
.proof-count { flex: 0 0 auto; padding-top: 2px; color: var(--text-4); font-size: 12px; font-variant-numeric: tabular-nums; }
.proof-facts { display: grid; grid-template-columns: minmax(126px, .75fr) minmax(0, 1.25fr); flex: 1; }
.proof-fact { padding: 15px 16px 2px 0; }
.proof-fact + .proof-fact { padding-right: 0; padding-left: 16px; border-left: 1px solid var(--rule); }
.proof-fact > span { display: block; margin-bottom: 7px; color: var(--text-3); font-size: 12.5px; font-weight: 650; }
.proof-fact strong { display: block; color: var(--red-soft); font-size: 30px; line-height: 1; letter-spacing: -.025em; }
.proof-fact small { display: block; margin-top: 6px; color: var(--text-4); font-size: 12px; line-height: 1.35; }
.proof-room strong { color: var(--text); font-size: 15px; line-height: 1.3; letter-spacing: 0; }
.proof-room p { margin: 8px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.proof-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 51px; padding: 8px 10px 8px 20px; border-top: 1px solid var(--rule); }
.proof-footer > span { color: var(--text-4); font-size: 10.5px; line-height: 1.3; }
.proof-controls { display: flex; align-items: center; gap: 4px; }
.proof-controls > button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); cursor: pointer; }
.proof-controls > button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.proof-dots { display: flex; align-items: center; gap: 6px; padding: 0 5px; }
.proof-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #615b57; cursor: pointer; }
.proof-dots button.is-active { background: var(--amber); }
.hero-shot { display: flex; justify-content: center; align-items: flex-start; max-height: 480px; overflow: hidden; }
.hero-shot img { width: min(100%, 286px); height: auto; }

/* Community proof */
.community-proof .section-head { margin-bottom: 18px; }
.community-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.community-proof-card { min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(24,24,27,.38); }
.community-proof-card > span { display: block; min-height: 32px; color: var(--text-4); font-size: 12px; font-weight: 650; line-height: 1.35; }
.community-proof-card h3 { margin: 9px 0 7px; font-size: 16px; line-height: 1.25; }
.community-proof-card p { margin: 0; color: var(--text-3); font-size: 13.5px; line-height: 1.48; }
.community-proof-card a { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--amber); font-size: 13px; font-weight: 750; }
.community-proof-card a:hover { color: #ffd85a; }
.proof-date { margin: 12px 0 0; color: var(--text-4); font-size: 11.5px; }

/* How it works */
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 2px; border-bottom: 1px solid var(--rule); }
.step > span { color: var(--amber); font-size: 14px; font-weight: 750; padding-top: 2px; }
.step h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; max-width: 620px; color: var(--text-3); font-size: 15px; line-height: 1.5; }
.step p a { color: var(--text-3); }
.footnote { margin: 12px 0 0; color: var(--text-4); font-size: 13px; line-height: 1.5; }
.plain-link { color: var(--text-2); }

/* Sticky-scroll product tour */
.story-tour { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr); gap: clamp(38px, 7vw, 84px); margin-top: 18px; }
.tour-visual-column { position: relative; }
.tour-visual { position: sticky; top: 92px; display: grid; justify-items: center; padding-top: 18px; }
.tour-phone { position: relative; width: min(100%, 330px); aspect-ratio: 620 / 1347; }
.tour-screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(10px) scale(.992); transition: opacity .4s ease, transform .45s ease; }
.tour-screen.is-active { opacity: 1; transform: translateY(0) scale(1); }
.tour-progress { margin-top: 8px; color: var(--text-4); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.tour-progress strong { color: var(--amber); font-weight: 750; }
.tour-steps { border-top: 1px solid var(--rule); }
.tour-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 6px; border-bottom: 1px solid var(--rule); opacity: .38; transition: opacity .3s ease; }
.tour-step.is-active { opacity: 1; }
.tour-step h3 { margin: 0 0 10px; max-width: 390px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; }
.tour-step p { margin: 0; max-width: 430px; color: var(--text-3); font-size: 16px; line-height: 1.58; text-wrap: pretty; }
.tour-mobile-screen { display: none; }
.tour-mobile-nav { display: none; }

/* For theaters */
.section#theaters { position: relative; z-index: 3; background: var(--bg); }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: start; }
.ops-grid h2 { margin: 6px 0 10px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ops-grid .lede { margin: 0 0 20px; max-width: 520px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.ops-row { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ops-row strong { display: block; font-size: 15px; }
.ops-row span { display: block; margin-top: 3px; color: var(--text-3); font-size: 14px; line-height: 1.45; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 2px; cursor: pointer; font-size: 15.5px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 auto; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq p { margin: 0; max-width: 680px; padding: 0 2px 16px; color: var(--text-3); font-size: 15px; line-height: 1.55; }

/* Founder note */
.founder-note-inner { max-width: 700px; }
.founder-note h2 { margin: 7px 0 18px; max-width: 620px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.founder-note p:not(.eyebrow) { margin: 0 0 14px; max-width: 680px; color: var(--text-2); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.founder-signoff { display: flex; flex-direction: column; align-items: flex-start; margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--amber); }
.founder-signoff strong { font-size: 17px; }
.founder-signoff span { margin-top: 2px; color: var(--text-3); font-size: 13.5px; }
.founder-signoff a { margin-top: 8px; color: var(--amber); font-size: 14px; font-weight: 750; }
.founder-signoff a:hover { color: #ffd85a; }

/* Final CTA */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px; background: rgba(24, 24, 27, .45); }
.cta-band h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.cta-band p { margin: 4px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.45; }
.cta-band .store img { height: 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 20px 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.site-footer p { margin: 0; color: var(--text-4); font-size: 13px; line-height: 1.5; }

@media (max-width: 839px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr); gap: 22px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 0; }
  .pillar-card small { margin-top: 16px; }
  .community-proof-grid { grid-template-columns: 1fr; }
  .community-proof-card > span { min-height: 0; }
  .story-tour { display: block; margin-top: 14px; }
  .tour-visual-column { display: none; }
  .tour-steps { display: flex; width: 100%; overflow-x: auto; overflow-y: hidden; border-top: 0; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tour-steps::-webkit-scrollbar { display: none; }
  .tour-step { flex: 0 0 100%; min-width: 0; min-height: 0; display: block; padding: 24px 4px 22px; border-bottom: 0; background: none; opacity: 1; scroll-snap-align: start; scroll-snap-stop: always; }
  .tour-mobile-screen { display: block; width: min(56vw, 260px); height: auto; margin: 0 auto 22px; }
  .tour-step h3 { font-size: 1.35rem; }
  .tour-step p { font-size: 15px; }
  .tour-mobile-nav { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 14px; padding: 10px 2px 2px; border-top: 1px solid var(--rule); }
  .tour-mobile-nav > span { grid-column: 1 / -1; color: var(--text-4); font-size: 12px; text-align: center; letter-spacing: .02em; }
  .tour-mobile-arrow { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--text); font: inherit; font-size: 18px; cursor: pointer; }
  .tour-mobile-dots { display: flex; justify-content: center; align-items: center; gap: 9px; }
  .tour-mobile-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #615b57; cursor: pointer; }
  .tour-mobile-dots button.is-active { background: var(--amber); transform: scale(1.2); }
}

@media (max-width: 759px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-height: 440px; }
  .hero-value-column .cta-stack { align-self: stretch; }
  .cta-note { max-width: none; text-align: center; }
  .proof-slides { min-height: 303px; }
  .proof-slide { padding: 17px 18px 14px; }
  .proof-header { min-height: 80px; }
  .proof-facts { grid-template-columns: 1fr; }
  .proof-fact { padding: 13px 0; }
  .proof-fact + .proof-fact { padding: 13px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .proof-fact strong { font-size: 27px; }
  .proof-room strong { font-size: 15px; }
  .proof-footer { padding-left: 18px; }
  .stores img { height: 40px; }
}

@media (max-width: 519px) {
  .tour-mobile-screen { width: min(58vw, 220px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary svg { transition: none; }
  .proof-slide { transition: none; }
  .tour-screen, .tour-step, .tour-steps { transition: none; scroll-behavior: auto; }
}
