/* Intelligent Form landing page. The ad's world: studio grey a step lighter, the agent's red for the button only.
   Type: TeX Gyre Adventor, as on the film's end card (self-hosted in assets/fonts). */
@font-face { font-family: 'Adventor'; src: url(assets/fonts/texgyreadventor-bold.otf) format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Adventor'; src: url(assets/fonts/texgyreadventor-regular.otf) format('opentype'); font-weight: 400; font-display: swap; }

:root {
  --ground: #E9E7E2; --card: #F6F4F0; --line: #D5D2CB; --ink: #15181A; --quiet: #6E6C67;
  --red: #E1251B; --red-dark: #C41E15; --tint: #F6D9D5; --studio: #BDB9B3;
  --pad: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.5 'Adventor', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--tint); }

/* Top: the logo and the name, small */
.brand { display: flex; align-items: center; gap: 10px; padding: 14px var(--pad) 0; padding-top: max(14px, env(safe-area-inset-top));
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; object-fit: contain; display: block; }   /* the logo slot: any square picture, shown whole */

/* Phone: one column, in reading order */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 var(--pad); max-width: 560px; margin: 0 auto; }
h1 { margin: 22px 0 18px; font-weight: 700; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.06; letter-spacing: -0.025em; }

/* The film: any 9:16; sized so the button below still shows on the first screen */
.film { position: relative; margin: 0 auto; width: min(100%, calc((100svh - 300px) * 9 / 16)); min-width: 220px; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: var(--studio); box-shadow: 0 18px 40px -18px rgba(21, 24, 26, .38); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--studio); }
.sound { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px 10px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(21, 24, 26, .82); color: #fff; font: 700 15px/1 'Adventor', system-ui, sans-serif; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; }
.sound svg { width: 20px; height: 20px; flex: none; }
.sound[hidden] { display: none; }
.film.unmuted .sound { display: none; }
.sound .i-play { display: none; }
/* talking video: one clear play button in the middle of the poster */
.sound.play { top: 74%; bottom: auto;  /* below the face of a talking head */ transform: translate(-50%, -50%); flex-direction: column; gap: 6px; padding: 0; min-height: 0;
  width: 92px; height: 92px; border-radius: 50%; justify-content: center; font-size: 14px; background: rgba(21, 24, 26, .72); }
.sound.play .i-play { display: block; width: 38px; height: 38px; margin: 0 0 0 5px; }
.sound.play .i-sound, .sound.play span { display: none; }
.film video[controls] { object-fit: contain; background: #000; }

/* The button */
.cta { margin-top: 18px; }
.book { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 0 28px;
  border-radius: 999px; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 20px; letter-spacing: -0.005em; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s; }
.book:hover { background: var(--red-dark); }
.book:active { background: var(--red-dark); transform: translateY(1px); }
.book:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.next { margin: 10px 4px 0; text-align: center; color: var(--quiet); font-size: 15px; line-height: 1.4; }

/* The words */
.copy { margin: 34px 0 0; padding: 22px 22px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.copy p { margin: 0 0 16px; }
.copy .last { font-weight: 700; text-wrap: balance; }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 16px; max-width: 560px; margin: 40px auto 0; padding: 18px var(--pad) 110px;  /* room for the fixed button; on a tall phone the first button never leaves the screen, so the fixed one is not needed there */
  border-top: 1px solid var(--line); color: var(--quiet); font-size: 14px; }
.foot a { color: var(--quiet); }

/* The same button, fixed at the bottom once the first one has scrolled away */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px var(--pad); padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(233, 231, 226, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease; }
.dock.on { transform: none; }
.dock .book { max-width: 520px; margin: 0 auto; }

/* Desktop: the film on one side, the words and the button on the other */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  .brand { max-width: 1120px; margin: 0 auto; padding-top: 28px; font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .hero { max-width: 1120px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    grid-template-areas: "film h1" "film cta" "film copy"; column-gap: 72px; padding-top: 28px; align-items: start; }
  .film { grid-area: film; width: calc(min(100svh - 140px, 780px) * 9 / 16); min-width: 300px; margin: 0; }
  h1 { grid-area: h1; margin: 36px 0 28px; font-size: clamp(44px, 4.6vw, 64px); }
  .cta { grid-area: cta; margin: 0; max-width: 420px; }
  .next { text-align: left; margin-left: 2px; }
  .copy { grid-area: copy; margin-top: 36px; max-width: 520px; padding: 0; background: none; border: 0; border-radius: 0; }
  .copy p { font-size: 18px; }
  .foot { max-width: 1120px; margin-top: 56px; padding-bottom: 28px; }
  .dock .book { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) { .dock, .book { transition: none; } }

/* Privacy page */
.doc { max-width: 640px; margin: 0 auto; padding: 8px var(--pad) 0; }
.doc h1 { font-size: clamp(30px, 7vw, 44px); margin: 26px 0 8px; }
.doc .when { color: var(--quiet); font-size: 14px; margin: 0 0 26px; }
.doc h2 { font-size: 19px; font-weight: 700; margin: 28px 0 6px; letter-spacing: -0.01em; }
.doc p { margin: 0 0 12px; }
.doc a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.doc [hidden] { display: none; }
.doc + .foot { padding-bottom: 28px; }
.brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
@media (min-width: 900px) { .dock { display: none; } }   /* desktop: the button sits beside the film, always in view */
