/* cinemap family house style (direction B, chosen 23 Sep 2026).
   Shared by every static page; the app (index.html) keeps its own styles.
   Paper in light mode, After Dark in dark mode, following the system, or a
   forced theme through <html data-theme="light|dark">.
   Rules: Fraunces for display, Inter for everything else, no monospace
   anywhere, no text under 13px, figures in tabular numbers. */

:root {
  /* Paper */
  --ground: #faf7f0;
  --sheet: #f3eede;
  --edge: #ebe4d2;
  --raise: #ffffff;
  --text: #1a1612;
  --text-2: #2a2520;
  --text-3: #6b6152;          /* muted text, 5.2:1 or more on paper */
  --muted: #847967;           /* rules, glyphs, decoration only */
  --line: #ddd3bd;
  --brass: #b08d57;           /* fills and rules */
  --brass-text: #7a5f36;      /* brass words on paper, 4.7:1 or more */
  --coral: #c2634e;
  --coral-text: #a4472f;
  --jade: #6e8a75;
  --jade-text: #46614f;
  --primary: #7a5f36;         /* main button */
  --on-primary: #faf7f0;
  --nav-bg: rgba(250, 247, 240, 0.92);
  --tint: rgba(176, 141, 87, 0.08);
  --flag: rgba(194, 99, 78, 0.14);
  --shadow: 0 1px 2px rgba(26, 22, 18, 0.05), 0 10px 30px rgba(26, 22, 18, 0.07);
  --bg-image: none;

  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --f-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Older names the page styles still use, mapped onto the tokens above. */
  --cream: var(--ground); --cream-2: var(--sheet); --cream-3: var(--edge);
  --ink: var(--text); --ink-2: var(--text-2); --ink-3: var(--text-3); --ink-4: var(--muted);
  --brass-2: var(--brass-text); --brass-light: #d4b68a;
  --f-serif: var(--f-display); --f-sans: var(--f-body);
  --f-mono: var(--f-body);    /* was Geist Mono: no monospace anywhere */

  color-scheme: light;
}

/* After Dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a0907; --sheet: #14110d; --edge: #2f2820; --raise: #1b1712;
    --text: #f3ecdb; --text-2: #d9cfbb; --text-3: #9d917d; --muted: #847967;
    --line: #2f2820;
    --brass: #d4b68a; --brass-text: #d4b68a;
    --coral: #d97e69; --coral-text: #e5917d;
    --jade: #8fac96; --jade-text: #9fbca6;
    --primary: #d4b68a; --on-primary: #0a0907;
    --nav-bg: rgba(10, 9, 7, 0.88);
    --tint: rgba(212, 182, 138, 0.07);
    --flag: rgba(217, 126, 105, 0.2);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 40px rgba(0, 0, 0, 0.35);
    --bg-image: radial-gradient(720px circle at 92% 20%, rgba(217, 126, 105, 0.09), transparent 70%),
      radial-gradient(520px circle at 6% 8%, rgba(132, 121, 103, 0.07), transparent 70%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0a0907; --sheet: #14110d; --edge: #2f2820; --raise: #1b1712;
  --text: #f3ecdb; --text-2: #d9cfbb; --text-3: #9d917d; --muted: #847967;
  --line: #2f2820;
  --brass: #d4b68a; --brass-text: #d4b68a;
  --coral: #d97e69; --coral-text: #e5917d;
  --jade: #8fac96; --jade-text: #9fbca6;
  --primary: #d4b68a; --on-primary: #0a0907;
  --nav-bg: rgba(10, 9, 7, 0.88);
  --tint: rgba(212, 182, 138, 0.07);
  --flag: rgba(217, 126, 105, 0.2);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 40px rgba(0, 0, 0, 0.35);
  --bg-image: radial-gradient(720px circle at 92% 20%, rgba(217, 126, 105, 0.09), transparent 70%),
    radial-gradient(520px circle at 6% 8%, rgba(132, 121, 103, 0.07), transparent 70%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--ground);
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* Anything a browser would set in a monospace face. */
code, kbd, samp, pre, tt { font-family: var(--f-body); font-size: inherit; font-variant-numeric: tabular-nums; }
code { background: var(--tint); padding: 0 4px; border-radius: 3px; }
.num, time, table { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brass-text); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
.placeholder { background: var(--flag); color: var(--text); padding: 0 4px; border-radius: 2px; }

/* Wordmarks: lowercase, light, with the suffix in brass. */
.wm {
  font-family: var(--f-body); font-weight: 300; font-size: 24px; line-height: 1;
  letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap;
}
.wm b { font-weight: 300; color: var(--brass-text); }
a.wm:hover { color: var(--text); }

/* Top bar */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .in {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-nav .links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav .links a {
  color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none;
}
.site-nav .links a:hover, .site-nav .links a[aria-current="page"] { color: var(--brass-text); }
.site-nav .links a.cta {
  background: var(--primary); color: var(--on-primary);
  padding: 9px 16px; border-radius: 9px; font-weight: 600;
}
.site-nav .links a.cta:hover { color: var(--on-primary); filter: brightness(1.08); }
@media (max-width: 760px) {
  .site-nav .in { flex-wrap: wrap; row-gap: 10px; padding: 12px 16px; }
  .site-nav .links { flex-wrap: wrap; gap: 8px 18px; margin-left: 0; width: 100%; }
  .site-nav .links a.cta { margin-left: auto; }
}

/* Buttons */
.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: 0;
  text-transform: none; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: filter 0.15s, border-color 0.15s;
}
.btn-primary, .btn.primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover, .btn.primary:hover { color: var(--on-primary); filter: brightness(1.08); }
.btn-secondary, .btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover, .btn.ghost:hover { border-color: var(--brass); color: var(--text); }

/* Small label above a heading */
.kicker, .eyebrow {
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text);
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 32px;
  color: var(--text-3); font-size: 14px; line-height: 1.6;
}
.site-foot .in { max-width: 1120px; margin: 0 auto; padding: 32px 24px 40px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; margin-bottom: 24px; }
.site-foot h4 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass-text); margin: 0 0 10px;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { padding: 3px 0; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--brass-text); }
.site-foot .imprint { padding-top: 18px; border-top: 1px solid var(--line); }
.site-foot .imprint a { color: var(--text-3); text-decoration: underline; }
@media (max-width: 760px) { .site-foot .in { padding: 28px 16px 36px; } }
h1 .wm, h2 .wm, h3 .wm { font-size: inherit; line-height: inherit; }
a { color: var(--brass-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-nav a:hover, .site-foot .cols a:hover, a.btn:hover, a.wm:hover { text-decoration: none; }

/* ------------------------------------------------------------------
   Page building blocks for the product pages (home, cinemap, player,
   pricing). Scoped to body.pg so the older pages keep their own layout.
   ------------------------------------------------------------------ */
.pg .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 760px) { .pg .wrap { padding: 0 16px; } }
.pg h1, .pg h2, .pg h3 { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.pg h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; }
.pg h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.pg h3 { font-size: 22px; font-weight: 400; line-height: 1.25; }
.pg h1 em, .pg h2 em, .pg h3 em { font-style: italic; color: var(--brass-text); }
.pg p { margin: 0 0 14px; }
.pg .lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 660px; }
.pg .muted { color: var(--text-3); }
.pg .hero { padding: 64px 0 40px; }
.pg .hero h1 { max-width: 900px; margin-bottom: 20px; }
.pg .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 0; }
.pg section.band { padding: 72px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .pg section.band { padding: 52px 0; } .pg .hero { padding: 44px 0 28px; } }
.pg .kicker { margin-bottom: 12px; }
.pg .band > .wrap > h2 { margin-bottom: 14px; }

/* Status pill: "TestFlight beta", "Free" */
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px;
  border: 1px solid var(--brass); border-radius: 999px; color: var(--brass-text);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.pill.jade { border-color: var(--jade); color: var(--jade-text); }
.pill.jade i { background: var(--jade); }

/* Screenshots. The player apps are After Dark, so they sit on a dark mat in both modes. */
.pg figure { margin: 0; }
.shot {
  display: block; width: 100%; height: auto; border-radius: 14px;
  background: var(--sheet); box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.shot.dark { background: #0a0907; }
.pg figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); line-height: 1.5; }
/* Show the light or dark planner screenshot with the page's theme. */
.theme-dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-only { display: block; }
  :root:not([data-theme="light"]) .theme-light-only { display: none; }
}
:root[data-theme="dark"] .theme-dark-only { display: block; }
:root[data-theme="dark"] .theme-light-only { display: none; }

/* Two columns of copy and picture */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .copy { order: 2; }
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > .copy { order: 0; }
}
.copy h2 { margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--jade);
}
.ticks b { color: var(--text); font-weight: 600; }

/* The two products, side by side, equal weight */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
.product {
  border: 1px solid var(--line); border-radius: 18px; background: var(--sheet);
  padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.product .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product .head .wm { font-size: 30px; }
.product h2 { font-size: clamp(28px, 3.2vw, 36px); }
.product p { color: var(--text-2); margin: 0; }
.product .price { font-size: 15px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.product .price b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.product .ctas { margin-top: 2px; }
@media (max-width: 760px) { .product { padding: 22px 18px 20px; } .product .head .wm { font-size: 26px; } }

/* Promises: a brass rule and a sentence */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 30px; }
.promises > div { border-left: 3px solid var(--brass); padding: 4px 0 4px 18px; }
.promises h3 { font-size: 22px; margin-bottom: 6px; }
.promises p { margin: 0; color: var(--text-2); font-size: 16px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* Price cards */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
@media (max-width: 1040px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .prices { grid-template-columns: 1fr; } }
/* An offer on hold (prices.js: on:false) hides its card; the rest fill the row. */
.prices:has(> [hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .prices:has(> [hidden]) { grid-template-columns: 1fr; } }
.pcard {
  border: 1px solid var(--line); border-radius: 16px; background: var(--sheet);
  padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.pcard .wm { font-size: 22px; }
.pcard .what { font-size: 15px; color: var(--text-3); margin: 0; }
.pcard .amount { font-family: var(--f-display); font-weight: 300; font-size: 44px; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pcard .amount small { font-family: var(--f-body); font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.pcard .was { font-size: 15px; color: var(--text-3); }
.pcard .was s { text-decoration-thickness: 1px; }
.pcard ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.pcard li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.pcard li::before { content: ''; position: absolute; left: 1px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--jade); }
.pcard .btn { margin-top: auto; }
.pcard .foot { font-size: 14px; color: var(--text-3); margin: 0; }
.pcard.hot { border-color: var(--brass); }

/* Film credits */
.credits { font-size: 14px; color: var(--text-3); line-height: 1.6; }
.credits h3 { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-bottom: 6px; }
.credits ul { margin: 0; padding-left: 18px; }
.credits a { color: var(--text-3); text-decoration: underline; }

/* The bridge: cinemap room -> server import -> player speaker map */
.bridge { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: start; }
.bridge .step { min-width: 0; }
.bridge .step b { display: block; font-size: 17px; font-weight: 600; margin-top: 12px; }
.bridge .step span { display: block; color: var(--text-3); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.bridge .arrow { align-self: center; justify-self: center; color: var(--brass); margin-top: -40px; }
.bridge .arrow svg { width: 28px; height: 28px; display: block; }
@media (max-width: 860px) {
  .bridge { grid-template-columns: 1fr; gap: 6px; max-width: 520px; }
  .bridge .arrow { margin: 4px 0; transform: rotate(90deg); }
}
/* Equal pictures in the two product panels and the bridge steps. The dark
   player screenshots are letterboxed on black, like a film on a screen. */
.product .shot, .bridge .shot { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.product .shot.dark, .bridge .shot.dark { object-fit: contain; object-position: center; }
/* a.btn (0,1,1) outranked .btn-secondary, so linked secondary buttons had no border. */
a.btn-secondary, .btn-secondary, a.btn.ghost, .btn.ghost { border-color: var(--muted); }
a.btn-secondary:hover, a.btn.ghost:hover { border-color: var(--brass); }

/* `hidden` must win over component display rules (.pcard is flex). */
[hidden] { display: none !important; }
