/* Cinematic Prompts — corporate identity
   Jost (UI/display) · Playfair Display (app name only) · Space Mono (labels)
   Amber #F4AA34 primary · black→#222 ground · paper #F5F4F0 · muted #9A9EAF */

:root {
  --ink: #000000;
  --ink-2: #222222;
  --paper: #F5F4F0;
  --muted: #9A9EAF;   /* 5.97:1 on #222, 7.88:1 on black (WCAG 1.4.3) */
  --amber: #F4AA34;
  --rust: #C6492A;
  --teal: #22B6C3;
  --petrol: #0E5E7D;   /* brand sheet v1.8.9: card and tile surface */
  --line: rgba(245, 244, 240, 0.14);
  --surface: rgba(245, 244, 240, 0.04);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* page shell: mobile 90% · laptop 80% · large screens 60%, always centred */
  --shell: 90%;
  --gutter: 0px;
}

@media (min-width: 768px)  { :root { --shell: 80%; } }
@media (min-width: 1920px) { :root { --shell: 60%; } }

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* the sticky header is ~104px tall; keep focused and anchored
     elements clear of it (WCAG 2.4.11) */
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: 'Jost', 'Avenir Next', system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.container,
.innerpages {
  width: var(--shell);
  margin-inline: auto;
  padding-inline: 0;
}

/* ---------- header ---------- */

header {
  border-bottom: 1px solid #8F7A68;
  background: rgba(18, 32, 43, 0.94);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  gap: 18px;
  padding-block: 18px;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 1px solid #828596;
  display: block;
}


.logo-area .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--paper);
}

/* Wordmark on two lines: "Cinematic &" / "Marketing Prompts". */
.brand-line { display: block; }

.brand-amp {
  font-style: italic;
  color: var(--amber);
}


/* ---------- header video ---------- */

.header-video {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  line-height: 0;
}

.header-video video {
  display: block;
  width: 100%;
  /* Tall enough to carry the scene, short enough that the store badges in the
     row below stay above the fold: viewport minus the sticky header (~104px)
     and the caption/badge row (~130px). Never taller than before (700px). */
  height: clamp(360px, calc(100svh - 265px), 700px);
  object-fit: cover;
}

.header-caption {
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- motion control (WCAG 2.2.2 Pause, Stop, Hide) ---------- */

.motion-controls {
  margin: 10px 0 0;
}

/* ---------- row under the header video: caption + pause left, badges right ---------- */

.hero-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 40px;
  margin-top: 20px;
}

.hero-bar__text { flex: 1 1 360px; min-width: 0; }
.hero-bar__text .header-caption { margin-top: 0; }

.hero-bar__stores {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: -5px;   /* optical: badges sit 5px higher than the caption line */
}

.hero-bar .store-links { justify-content: flex-end; margin-top: 0; }
.hero-bar .store-legal { text-align: right; margin: 10px 0 0; }

/* Phones: badges straight under the video, then the caption. */
@media (max-width: 760px) {
  .header-video video { height: clamp(300px, calc(100svh - 355px), 700px); }
  .hero-bar__stores { order: -1; align-items: center; width: 100%; margin-top: 0; }
  .hero-bar .store-links { justify-content: center; flex-wrap: nowrap; gap: 12px; }
  /* side by side on a phone; the App Store badge stays at 44px visible
     height, above the brand sheet's ~40px minimum */
  .hero-bar .AppstoreLogo { width: 150px; }
  .hero-bar .PlaystoreLogo { width: 171px; }
  .hero-bar .store-legal { text-align: center; margin-inline: auto; }
}

.motion-toggle {
  font: inherit;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.motion-toggle:hover { color: var(--paper); }

/* Keyboard focus must stay visible - never replace this with outline: none. */
.motion-toggle:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Every other focusable element gets the same amber ring (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Text for screen readers only, e.g. "(opens in new tab)". */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visitors who ask for less motion get no transitions either. The videos
   themselves are paused by js/motion.js, which CSS cannot do. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- sections ---------- */

.pages { padding-block: clamp(48px, 8vw, 88px); }

.innerpages {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* content pages (privacy, best practices) run as one column,
   left-aligned to the same gutter as the logo */
.innerpages.prose {
  display: block;
}

.innerpages.prose > * {
  max-width: 1200px;   /* readable measure, left-aligned — not centred */
  margin-inline: 0;
}

.half {
  flex: 1 1 380px;
  min-width: 0;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: 'Jost', 'Avenir Next', system-ui, sans-serif;
  color: var(--paper);
  text-wrap: balance;
}

.prose h1 {
  font-weight: 600;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.prose h2 {
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 27px);
  letter-spacing: -0.01em;
  margin: 52px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type { margin-top: 40px; }

.prose p {
  color: var(--paper);
  margin: 0 0 16px;
}

.prose strong { font-weight: 500; color: var(--amber); }

.prose p.last-updated,
.last-updated {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.AppH2 {
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.groupH2 {
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 36px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.half h3 {
  font-weight: 300;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

/* ---------- tips ---------- */

.tip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 24px 0;
}

.tip p { margin: 0; }
.tip p + p { margin-top: 12px; }

/* ---------- FAQ tiles (brand sheet: Petrol is the card and tile surface) ---------- */

.innerpages.prose > .faq-grid { max-width: none; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; }
}

.faq-tile {
  background: var(--petrol);
  border: 1px solid rgba(245, 244, 240, 0.14);
  border-radius: 12px;
  padding: 22px 24px 24px;
}

.faq-tile .faq-q {
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.3;
  color: var(--paper);
  margin: 0 0 10px;
}

.faq-tile .faq-a {
  color: var(--paper);
  margin: 0;
}

/* ---------- social icons ---------- */

.iconFlexBox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.iconFlexBox a {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.iconFlexBox a:hover {
  border-color: var(--amber);
  background: rgba(244, 170, 52, 0.1);
}

.iconFlexBox img {
  width: 62px;
  height: 72px;
  object-fit: contain;
  display: block;
}

/* ---------- app shot + store badge ---------- */

.appImage {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 14px;
}

.appVideo {
  width: 100%;

  aspect-ratio: 9 / 16;
  object-fit: cover;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
}

/* Both badges on one row, centred, wrapping to two lines if a phone is too
   narrow. Aligned on centre so the visible badges line up - Google's asset
   carries clear space inside the file, Apple's does not. */
.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 26px;
}

.store-link {
  display: block;
  width: fit-content;
  margin: 0;
}

.AppstoreLogo {
  width: 200px;
  height: auto;
  display: block;
}

/* Google's badge asset carries more built-in padding than Apple's, so equal
   widths would leave the Play pill visibly taller. 180px matches the two
   pills optically against the 200px App Store badge. */
.PlaystoreLogo {
  width: 228px;
  height: auto;
  display: block;
}

/* Trademark line the brand sheet (section 06) asks for under store badges. */
.store-legal {
  max-width: 46ch;
  margin: 10px auto 0;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- video grid ---------- */

.video-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

/* the grid ignores the reading measure and fills the shell */
.innerpages.prose > .video-flex {
  max-width: none;
}

@media (min-width: 1200px) {
  .video-flex { grid-template-columns: repeat(6, 1fr); }
}

.video-flex video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
}

/* ---------- links ---------- */

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--paper); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 8vw, 96px);
  background: rgba(0, 0, 0, 0.5);
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 28px;
}

footer a {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

footer a:hover { color: var(--paper); border-color: var(--amber); }

footer a[aria-current="page"] {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
