/* CineMyna home page. Tokens follow the Studio look: Linen + terracotta (light),
   warm charcoal + coral (dark), Geist. */
:root {
  --page: #F5F0E6;
  --card: #FCF9F3;
  --raised: #EBE4D6;
  --border: #DCD2BF;
  --text: #17140E;
  --muted: #5B5546;
  --accent: #B93B28;
  --accent-hover: #A2321F;
  --on-accent: #FFFFFF;
  --accent-text: #B93B28;
  --ok: #2E7D4F;
  --shadow: 0 1px 2px rgb(23 20 14 / .06), 0 10px 30px -12px rgb(23 20 14 / .25);
  --radius: 18px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #14120E;
    --card: #221F19;
    --raised: #2A261F;
    --border: #3A342A;
    --text: #F3EEE3;
    --muted: #B4AC9A;
    --accent: #FF7F62;
    --accent-hover: #FF9479;
    --on-accent: #2A0D06;
    --accent-text: #FF8F75;
    --ok: #7ACB98;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h2 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.topnav a:not(.btn) { text-decoration: none; color: var(--muted); }
.topnav a:not(.btn):hover { color: var(--text); }

/* Buttons and form */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent);
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-small { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }

.waitlist { width: min(520px, 100%); }
.field-row { display: flex; gap: 8px; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.field-row:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.field-row input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px;
  border: 0; background: transparent; color: var(--text);
  font: 400 17px/1 var(--font);
}
.field-row input::placeholder { color: var(--muted); opacity: .8; }
.field-row input:focus { outline: none; }
.form-note { margin: 10px 4px 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-note.is-error { color: var(--accent-text); font-weight: 500; }
.form-note.is-ok { color: var(--ok); font-weight: 600; font-size: 16px; }
.waitlist.is-done .field-row { display: none; }
.waitlist.is-done .form-note { margin: 0; }

/* After signup: use-case question and sharing */
.after { margin-top: 16px; display: grid; gap: 18px; }
.usecase { margin: 0; padding: 0; border: 0; }
.usecase legend { padding: 0; margin-bottom: 10px; font-size: 15px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  font: 500 14px/1 var(--font); text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-ghost { background: transparent; }
.usecase-thanks { margin: 10px 0 0; font-size: 14px; color: var(--ok); font-weight: 500; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.share > span { margin-right: 4px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 14px; font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
h1 { margin: 0; font-size: clamp(40px, 6.6vw, 78px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
h1 .accent { color: var(--accent-text); }
.lede { max-width: 660px; margin: 20px 0 30px; color: var(--muted); font-size: clamp(17px, 1.9vw, 20px); }
.hero .waitlist { text-align: left; }

.proof {
  display: flex; align-items: center; gap: 16px; max-width: 640px; margin-top: 26px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: var(--raised); text-align: left; text-decoration: none;
  font-size: 14px; line-height: 1.45; color: var(--muted); transition: background-color .15s ease;
}
.proof:hover { background: color-mix(in srgb, var(--raised) 80%, var(--border)); }
.proof strong { color: var(--text); font-weight: 600; }
.proof-link { color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.proof-thumbs { display: flex; flex: none; }
.proof-thumbs img { width: 36px; height: 64px; object-fit: cover; border-radius: 7px; border: 2px solid var(--raised); }
.proof-thumbs img + img { margin-left: -12px; }
.proof-thumbs img:nth-child(1) { transform: rotate(-6deg); }
.proof-thumbs img:nth-child(3) { transform: rotate(6deg); }

/* Reel */
.reel { padding: 20px 0 32px; }
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.reel-head p { margin: 0; max-width: 640px; color: var(--muted); }
.reel-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text);
  font: 500 14px/1 var(--font); cursor: pointer;
}
.reel-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.reel-toggle .i-play, .reel-toggle[aria-pressed="true"] .i-pause { display: none; }
.reel-toggle[aria-pressed="true"] .i-play { display: block; }

.reel-viewport {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reel-viewport::-webkit-scrollbar { display: none; }
.reel-viewport:focus-visible { outline-offset: -2px; }
.reel-track { list-style: none; margin: 0; padding: 8px 0 12px; display: flex; gap: 18px; width: max-content; }
.reel-track > .card:first-child { margin-left: 18px; }

.card { width: clamp(196px, 20vw, 240px); flex: none; }
.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--raised);
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media:hover { transform: translateY(-3px); }
.card-media[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }

/* Sound badge: muted speaker by default, speaker with waves when on */
.sound {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgb(20 18 14 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: background-color .2s ease, transform .2s ease;
}
.sound::before {
  content: ""; width: 20px; height: 20px; background: #fff;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z' fill='black'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E");
}
.card-media:hover .sound { transform: scale(1.06); }
.card-media[aria-pressed="true"] .sound { background: var(--accent); }
.card-media[aria-pressed="true"] .sound::before {
  background: var(--on-accent);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z' fill='black'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
}
/* "Tap for sound" label beside the badge: on hover with a mouse, and on the centred
   card on touch screens. Gone once a card is playing with sound. */
.sound-hint {
  position: absolute; right: 46px; white-space: nowrap; padding: 6px 10px; border-radius: 999px;
  background: rgb(20 18 14 / .62); color: #fff; font: 500 12px/1 var(--font);
  opacity: 0; transform: translateX(4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.card-media:hover .sound-hint, .card.is-centred .sound-hint { opacity: 1; transform: none; }
.card-media[aria-pressed="true"] .sound-hint { opacity: 0; }

.card-meta { padding: 12px 4px 0; }
.card-meta p { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-meta a { font-size: 13px; color: var(--muted); }

/* On touch screens the strip is a swipeable carousel that snaps one card to the centre. */
.reel.is-touch .reel-viewport { scroll-snap-type: x mandatory; mask-image: none; -webkit-mask-image: none; }
.reel.is-touch .card { scroll-snap-align: center; }
.reel.is-touch .reel-track { padding-inline: calc(50vw - min(31vw, 120px)); }
.reel.is-touch .reel-track > .card:first-child { margin-left: 0; }

/* How it works */
.how { padding: 48px 0 16px; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--raised); color: var(--accent-text); font-weight: 700; font-size: 15px; }
.steps h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { padding: 48px 0 8px; max-width: 760px; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 2px 18px; color: var(--muted); }

/* Bottom call to action */
.cta { padding: 48px 0 88px; }
.cta-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border-radius: 28px; background: var(--card); border: 1px solid var(--border); }
.cta-card > p { margin: 4px 0 26px; max-width: 520px; color: var(--muted); }
.cta .waitlist { text-align: left; }
.cta .field-row { box-shadow: none; background: var(--page); }

/* Phones: a "Join the waitlist" bar once neither form is on screen */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta .btn { width: 100%; height: 48px; }

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 24px 0 32px; }

/* Privacy page */
.prose { max-width: 720px; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose p { color: var(--muted); }
.prose .updated { margin-top: 8px; font-size: 14px; }

@media (max-width: 860px) {
  .topnav a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topnav { display: none; }
  .hero { padding-top: 32px; }
  .eyebrow { font-size: 13px; }
  .lede { margin: 16px 0 24px; }
  .field-row { flex-direction: column; padding: 6px; }
  .field-row input { height: 50px; }
  .btn { width: 100%; }
  .proof { margin-top: 20px; }
  .reel-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .card { width: 62vw; max-width: 240px; }
  .footer { padding-bottom: 72px; }
}
@media (min-width: 561px) { .sticky-cta { display: none; } }

/* Featured Short beside the headline on wide screens */
.hero-feature { display: none; margin: 0; }
.feature-hint { opacity: 1; transform: none; }
.hero-feature figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.hero-feature figcaption strong { color: var(--text); font-weight: 600; }
@media (min-width: 1000px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 64px; text-align: left; padding-top: 56px; }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(52px, 5.4vw, 72px); }
  .hero-feature { display: block; }
  .feature-media { width: 300px; border-radius: 22px; }
  .feature-media:hover { transform: none; }
}
