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

:root {
  /* How far the page scrolls past its own end to uncover the fixed footer.
     The footer measures 300px of brand band + a 59px menu bar (22px labels); below 760px
     the band drops to 220 and the menu wraps to two lines, so the tallest
     it gets there is 319. Rounded up rather than down: too much leaves a
     little extra ground above the lockup, which the brand band is
     transparent over anyway, while too little would crop the footer with
     no way to scroll to it. */
  --footer-h: 360px;

  --ink: #111111;
  --ink-2: #222222;
  --paper: #F5F4F0;
  --muted: #9A9EAF;   /* 5.97:1 on #222, 7.09:1 on #111 (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: 20px;
  line-height: 1.6;
  text-wrap: pretty;
}

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

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

header {
  /* Header and the footer menu share one treatment: petrol at 24% over a
     24px blur, with the same bronze hairline. The border sits on the edge
     each one needs - under the header, over the footer menu. */
  border-bottom: 1px solid #937965;
  background: hsl(196.8 79.9% 27.3% / 0.24);   /* Petrol #0E5E7D at 24% */
  /* brightness() caps the backdrop, not the blur's job but the contrast's:
     at 24% alone the bar is see-through, and when the header video or a lit
     slide passes under this sticky bar the Paper wordmark drops to 1.3:1.
     0.45 holds it at 4.87:1 against a white frame and still reads as petrol
     over the page ground. */
  -webkit-backdrop-filter: blur(24px) brightness(0.45);
  backdrop-filter: blur(24px) brightness(0.45);
  position: sticky;
  top: 0;
  /* Above everything that scrolls under it. The orbit panels animate their
     own z-index up to 99 so they can pass in front of each other, and the
     bands' edge fades sit at 100; at the old value of 10 a panel swinging
     to the front of a ring painted straight over the wordmark. The scale
     is: ring panels 1-99, band fades 100, page chrome 200. */
  z-index: 200;
}

.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 {
  /* Full bleed: edge to edge and flush under the header, so no radius, no
     side margin and no gap above. */
  position: relative;
  width: 100%;
  margin-inline: 0;
  margin-top: 0;
  overflow: hidden;
  background: #111;
  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). The ceiling is 900px, so the middle
     term governs until the window is about 1165px tall. */
  height: clamp(360px, calc(100svh - 265px), 900px);
  object-fit: cover;
  object-position: center 30%;   /* any crop falls on the floor, not on the head */
}

/* Desktop monitors: at 1920 the 900px ceiling cut the 16:9 frame (1080px tall)
   and took her head with it, so from 1800px wide the video shows its whole
   frame. Laptops (up to ~1728px wide) keep the viewport-based height above so
   the badges stay above the fold. */
@media (min-width: 1800px) {
  .header-video video { height: min(56.25vw, max(calc(100svh - 265px), 640px)); }
}

.header-caption {
  margin: 20px 0 0;
  font-size: 13px;
  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; padding-bottom: 10px; }

/* Phones: badges straight under the video, then the caption. */
@media (max-width: 760px) {
  .header-video video { height: clamp(300px, calc(100svh - 355px), 900px); }
  .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;
  width: var(--shell);   /* same shell as the header, so the left edges match at every width */
}

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

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

/* ---------- scroll reveals ---------- */

/* Static blocks and the two rings. Every video stays out: eleven of them
   already play on this page, and a reveal under them reads as busy.

   The hidden state hangs off .has-reveal, which an inline script in <head>
   sets only when IntersectionObserver exists, and drops again after two
   seconds unless motion.js has reported for duty - a script that fails to
   load must never leave the page invisible.

   transform and opacity only, so each reveal stays on the compositor. */

.has-reveal {
  --reveal-dur: 1000ms;
}

.has-reveal :is(.header-video, .style-banner, .appVideo, .AppH2, .former-name,
                .lead, .groupH2, .feature-list, .faq-tile, .credits,
                .footer-lockup, .orbit) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
}

.has-reveal :is(.header-video, .style-banner, .appVideo, .AppH2, .former-name,
                .lead, .groupH2, .feature-list, .faq-tile, .credits,
                .footer-lockup, .orbit)[data-revealed] {
  opacity: 1;
  transform: none;
}

/* The tiles and both rings grow rather than rise. scale() takes an
   element's contents with it, so tile copy and ring panels are still
   settling as they arrive - the reason the usual advice is to start nearer
   1. 0.6 was asked for and is what ships. */
.has-reveal :is(.faq-tile, .orbit) { transform: scale(0.6); }

/* The new-style banner and the 9:16 reel come from further back still, at
   0.3. The banner scales as a figure, so its caption travels with it. */
.has-reveal :is(.style-banner, .appVideo) { transform: scale(0.3); }

/* The header video slides in from the left rather than rising. It is the
   first thing on the page, so this one plays on load, not on scroll. */
.has-reveal .header-video { transform: translateX(-100%); }

/* The tiles arrive two to a row, so the right one follows the left. */
.has-reveal .faq-tile:nth-child(even) { transition-delay: 90ms; }

/* The rings do what the tiles do - fade and grow from 0.6 - but over
   longer. They are the biggest thing that moves, and the same second that
   suits a tile reads as hurried across a whole band. The property
   inherits, so the shared transition above picks this up. */
.has-reveal .orbit { --reveal-dur: 1700ms; }

/* Reduced motion keeps the fade, which carries the arrival, and drops the
   movement and the growth, which are the parts that cause trouble. */
@media (prefers-reduced-motion: reduce) {
  .has-reveal :is(.header-video, .style-banner, .appVideo, .AppH2, .former-name,
                  .lead, .groupH2, .feature-list, .faq-tile, .credits,
                  .footer-lockup, .orbit) {
    transform: none;
    transition: opacity 240ms linear;
  }
  .has-reveal .faq-tile:nth-child(even) { transition-delay: 0ms; }
}

/* ---------- 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;
}

/* The title block is its own full-width section ahead of #app, on a black
   band. #app keeps its own top padding so its copy clears the band. */
.app-title-section {
  padding-bottom: clamp(32px, 5vw, 64px);
  background: #000;
}

/* 80% on desktop, also past 1920px where the page shell drops to 60%;
   full width on phones, less a 16px gutter each side so the title clears
   the screen edges. */
#app-title .innerpages { width: 80%; }
@media (max-width: 767px) {
  #app-title .innerpages { width: 100%; padding-inline: 16px; box-sizing: border-box; }
}

/* The title grows in rather than rising, like the FAQ tiles. :not() keeps
   this off the revealed state; reduced motion keeps the plain fade. */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .app-title :is(.AppH2, .former-name):not([data-revealed]) {
    transform: scale(0.6);
  }
}

/* The app title spans the shell: the name in Playfair
   Display, matching the wordmark, the descriptor beneath it in Jost.
   width rather than flex-basis, so it holds in the stacked column too. */
.app-title {
  flex: 0 0 auto;
  width: 100%;
  order: 0;
  container-type: inline-size;
}

.AppH2 {
  margin: 0 0 20px;
  text-wrap: initial;
}

.AppH2-name {
  display: block;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  /* 6.8cqi sets the line to the row's width (the string runs about 14.3em in
     Playfair); below about 500px it floors at 34px and wraps to two lines. */
  font-size: clamp(34px, 6.8cqi, 160px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* The logo's amber italic ampersand; at title size its overhang reaches
   "Marketing", so it gets a hair of room on the right. */
.AppH2-name .brand-amp { margin-right: 0.08em; }

.AppH2-sub {
  display: block;
  margin-top: 0.35em;
  text-align: center;
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* A new style announced above the title: the picture, then one line naming
   it. "New style!" takes amber, the page's existing highlight; the name
   itself stays Paper so the amber marks the news, not the vocabulary. */
.style-banner {
  /* A direct child of .innerpages, which is a wrapping flex row: this takes a
     full row of its own so the banner spans the shell rather than one column.
     Order 0 keeps it above both columns when they stack on a phone, where
     .half is order 2 and the reel is order 1. */
  flex: 0 0 100%;
  order: 0;
  margin: 0;
}

.style-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.style-banner figcaption {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--paper);
}

.style-banner figcaption strong {
  font-weight: 500;
  color: var(--amber);
}

/* The old app name, set small and italic right under the title. The pull-up
   closes the h1's 20px to about 8px, so the pair reads as one unit. */
.former-name {
  margin: -12px 0 22px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

/* Generator credit: a closing line, quieter than the body around it.
   Needs .prose in the selector to outweigh `.prose p { color: paper }`. */
.credits,
.prose .credits {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.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 h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--paper);
  margin: 0 0 10px;
}

.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;
  transition: background 300ms var(--ease);
}

/* Hover: the tile under the pointer takes the chosen-state colour and its
   icon drops the amber for Paper, so the whole tile reads as picked.

   Gated on a device that really hovers. On a touch screen :hover latches
   onto whatever was last touched - a tap, or just a scroll that began on a
   tile - and stays there, which leaves a tile stuck red with nothing
   pointing at it. */
@media (hover: hover) and (pointer: fine) {
  .faq-tile:hover { background: #C74B2D; }
  .faq-tile:hover .faq-icon { color: var(--paper); }
}

.faq-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 0 16px;
  color: var(--amber);          /* CI amber */
  transition: color 300ms var(--ease);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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: #111;
}

/* 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: #111;
}

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

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

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

/* The footer is fixed to the bottom of the viewport and sits BEHIND the
   page, which scrolls over it and uncovers it only at the end. It costs
   nothing in usable viewport - the page still fills the screen - and the
   footer arrives rather than simply being reached.

   Three parts make it work and none of them can be dropped:
     - the footer is fixed at the bottom on z-index 0;
     - main sits above it on z-index 1 and carries an opaque ground, so
       there is something to hide the footer behind. Its gradient is the
       body's own, and background-attachment: fixed anchors both to the
       viewport rather than to their boxes, so the two are painted from the
       same ramp and the seam where main ends is invisible;
     - the page scrolls --footer-h past the end of main, which is what
       uncovers the footer. */
footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  background-attachment: fixed;
}

/* padding, not a margin on main: a bottom margin at the end of the document
   can collapse away, and the scroll room would go with it. */
body {
  padding-bottom: var(--footer-h);
}

.footer-menu {
  /* The app's bottom menu, without its icons: the header's petrol tint, a
     bronze top line (#937965, the app's value), equal columns of plain
     Jost labels, Paper at rest, amber for the current page and on hover.
     The tint starts here so the brand band above keeps the page ground. */
  border-top: 1px solid #937965;
  background: hsl(196.8 79.9% 27.3% / 0.24);   /* Petrol #0E5E7D at 24% */
  -webkit-backdrop-filter: blur(24px) brightness(0.45);
  backdrop-filter: blur(24px) brightness(0.45);
}

/* Without backdrop-filter the bars would be 24% petrol over whatever is
   behind them, which is unreadable. Fall back to the opaque tint. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header,
  .footer-menu { background: rgba(18, 32, 43, 0.94); }
}

/* Brand sign-off above the menu: the two-line lockup from the header,
   left-aligned to the page shell, in a band 300px tall. The band sits on
   the page ground, so only the menu row below it carries the petrol tint. */

.footer-brand {
  height: 300px;
  display: flex;
  align-items: center;
  background: transparent;
}

.footer-brand .container {
  display: block;
  max-width: none;
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-icon {
  width: 96px;
  height: 96px;
  border-radius: 16px;      /* 12px at 68px, held in proportion at 96px */
  border: 1px solid #828596;
  display: block;
}

.footer-lockup .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--paper);
}

/* Phones: a shorter band, and the lockup at the header's proven phone
   sizing - anything larger runs the wordmark into the right edge. */
@media (max-width: 760px) {
  :root { --footer-h: 330px; }   /* 220 band + two menu rows of 50 */
  .footer-brand { height: 220px; }
  .footer-lockup { gap: 18px; }
  .footer-icon { width: 68px; height: 68px; border-radius: 12px; }
  .footer-lockup .brand-name { font-size: 26px; }
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  max-width: 80%;
  padding: 0;
}

footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  font-family: 'Jost', 'Avenir Next', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  color: var(--paper);
  transition: color 200ms var(--ease);
}

footer a:hover,
footer a[aria-current="page"] { color: var(--amber); }

/* The logo and name are a link home; undo the menu-link styling above. */
footer a.footer-lockup,
footer a.footer-lockup:hover {
  justify-content: flex-start;
  padding: 0;
  text-align: left;
  color: var(--paper);
}

/* Up to 1000px, at 22px "Best Practices" and "Datenschutz" no longer fit
   an even column, so the labels wrap at their own width, centred. */
@media (max-width: 1000px) {
  footer .footer-menu .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  footer a { padding: 14px 12px; }
}
/* The narrowest phones need a third menu row. */
@media (max-width: 360px) {
  :root { --footer-h: 380px; }
}

/* ---------- store calls to action added for installs ---------- */

/* Badge pair inside running text (Best Practices). */
.cta-block {
  margin: 36px 0;
  padding: 22px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.cta-block__lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--paper);
}
.cta-block .store-links { justify-content: flex-start; margin-top: 18px; }

/* Badges in the footer brand band: right of the lockup on wide screens,
   below it on phones. The generic footer link rule would otherwise pad
   and enlarge them. */
.footer-brand .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer .footer-stores { margin-top: 0; justify-content: flex-end; }
footer .footer-stores .store-link { display: block; padding: 0; font-size: 0; }
footer .footer-stores .AppstoreLogo { width: 160px; }
footer .footer-stores .PlaystoreLogo { width: 183px; }

@media (max-width: 760px) {
  .footer-brand .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer .footer-stores { justify-content: flex-start; flex-wrap: nowrap; gap: 10px; }
  footer .footer-stores .AppstoreLogo { width: 120px; }
  footer .footer-stores .PlaystoreLogo { width: 137px; }
}

/* Sticky bar: phones only, shown by js/cta.js. */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #937965;
    background: hsl(196.8 79.9% 27.3% / 0.24);
    -webkit-backdrop-filter: blur(24px) brightness(0.45);
    backdrop-filter: blur(24px) brightness(0.45);
    transform: translateY(110%);
    transition: transform 300ms var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .store-link { margin: 0; }
  .sticky-cta .AppstoreLogo { width: 130px; }
  .sticky-cta .PlaystoreLogo { width: 148px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sticky-cta { background: rgba(18, 32, 43, 0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}
