/* visualstoryteller.app: one stylesheet for every page.
   Tokens from the brand guide (version 1, November 2026): paper and deep teal surfaces, ink text, green accent on light
   and mint on dark, Instrument Sans only (display 650, kicker 600 with 14% tracking, body 400). Light and dark follow
   the visitor's system setting. Text never sits on a photo without a scrim. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F4ED; --ink: #182523; --deep: #10242E; --teal: #2F5864; --green: #226A59; --mint: #A8EDD0; --mint-white: #E5FCF2;

  /* light theme (the default) */
  --bg: var(--paper);
  --bg-2: #ECEDE5;
  --surface: #FFFFFF;
  --text: var(--ink);
  --muted: #566864;
  --line: #D6E0DC;
  --accent: var(--green);
  --accent-text: #1B6B56;
  --button: #1B6B56;
  --button-text: #FFFFFF;
  --button-hover: #155746;
  --tint: #E3F6EF;
  --warn: #A86A00;
  --warn-bg: rgba(168, 106, 0, .09);

  /* always dark: the photo sections and the hero */
  --on-photo: #FFFFFF;
  --on-photo-muted: #D3E1DF;
  --scrim: 16, 36, 46;   /* deep teal, as rgb for gradients */

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 38rem;
  --wide: 76rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10242E;
    --bg-2: #0C1B23;
    --surface: #152C37;
    --text: #E6EEEC;
    --muted: #A9BCBA;
    --line: #2A4049;
    --accent: var(--mint);
    --accent-text: var(--mint);
    --button: var(--mint);
    --button-text: #0C1B23;
    --button-hover: #C7F5E2;
    --tint: #16362F;
    --warn: #E5A43B;
    --warn-bg: rgba(229, 164, 59, .1);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.5; font-weight: 400; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ type */
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.04; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.015em; }
.kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 14px; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.45; color: var(--muted); }
.small, small { font-size: .875rem; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ the header */
.site-header {
  position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
}
.site-header .brand { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.site-header .brand img { height: 28px; width: auto; max-width: 100%; }
.site-header nav ul { display: flex; gap: clamp(14px, 2.4vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1.5px; }
.site-header.over-photo { position: absolute; top: 0; left: 0; right: 0; color: var(--on-photo); max-width: none; }
.site-header { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-top: max(18px, env(safe-area-inset-top)); }

/* The phone menu: up to 560 px the links fold into a Menu button (assets/js/menu.js). The page carries class "js" from
   its <head>; without scripts the links stay a plain list that wraps under the wordmark. */
.menu-button { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; font: 600 .95rem/1 var(--font); box-shadow: inset 0 0 0 1.5px currentColor; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.menu-button:hover { background: rgba(127, 127, 127, .12); }
.menu-icon { width: 18px; height: 18px; flex: none; overflow: visible; }
.menu-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transform-box: fill-box; transform-origin: center;
  transition: transform .18s ease, opacity .18s ease; }
.site-nav.open .menu-icon .l1 { transform: translateY(4px) rotate(45deg); }
.site-nav.open .menu-icon .l2 { opacity: 0; }
.site-nav.open .menu-icon .l3 { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 560px) {
  .site-header .brand img { height: 22px; }
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  html:not(.js) .site-header nav ul { flex-wrap: wrap; gap: 6px 18px; }
  .js .menu-button { display: inline-flex; }
  .js .site-nav ul { position: absolute; z-index: 20; top: calc(100% - 4px); left: max(var(--gutter), env(safe-area-inset-left));
    right: max(var(--gutter), env(safe-area-inset-right)); flex-direction: column; gap: 2px; padding: 8px;
    background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(12, 27, 35, .28); visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .js .site-nav.open ul { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
  .js .site-nav ul a { display: block; padding: 13px 14px; border-radius: 10px; font-size: 1.05rem; color: var(--text); }
  .js .site-nav ul a:hover, .js .site-nav ul a[aria-current] { background: var(--tint); text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .site-nav ul, .js .site-nav.open ul { transition: none; transform: none; }
  .menu-icon path { transition: none; }
}

/* ------------------------------------------------------------------ buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px;
  border-radius: 999px; background: var(--button); color: var(--button-text); font: 600 1rem/1.2 var(--font);
  text-decoration: none; border: 0; cursor: pointer; transition: background .15s;
}
.button:hover { background: var(--button-hover); text-decoration: none; }
.button.quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.button.quiet:hover { background: rgba(255, 255, 255, .1); }
.on-photo .button { background: var(--mint); color: #0C1B23; }
.on-photo .button:hover { background: #C7F5E2; }
.on-photo .button.quiet { background: transparent; color: var(--on-photo); }
.on-photo .button.quiet:hover { background: rgba(255, 255, 255, .12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ photos */
.photo { width: 100%; height: 100%; object-fit: cover; }
/* A photo's focus point (build-photos.py 'focus') decides what a narrow frame keeps: on phones, and beside the words of a
   split section. A wide overlay section shows the photo's centre. */
.bleed.split .photo, .share-photo .photo { object-position: var(--focus, 50% 50%); }
@media (max-width: 760px) { .bleed .photo { object-position: var(--focus, 50% 50%); } }
picture { display: block; }   /* a plain box; it was "contents", the same layout with one more engine quirk between an img and its loading */
.on-photo { color: var(--on-photo); }
.on-photo .kicker { color: var(--mint); }
.on-photo .lead, .on-photo p { color: var(--on-photo-muted); }
.on-photo a { color: var(--mint); }
.caption { font-size: .8125rem; color: var(--on-photo-muted); letter-spacing: .01em; text-shadow: 0 1px 3px rgba(12, 27, 35, .85), 0 0 12px rgba(12, 27, 35, .6); }

/* The hero: the photo fills the window and moves slowly along its saved crop path (photo-paths.css). A 16:9 camera box
   covers the hero, so the move matches the photo's own frames at every window shape. */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1400px; overflow: hidden; background: #0C1B23;
  container-type: size; }
.hero .cam { position: absolute; left: 50%; top: 50%; width: max(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9;
  translate: -50% -50%; }
.hero .cam .photo { position: absolute; inset: 0; transform-origin: 0 0; }   /* its move: photo-paths.css */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--scrim), .55) 0%, rgba(var(--scrim), 0) 22%),
    linear-gradient(0deg, rgba(var(--scrim), .5) 0%, rgba(var(--scrim), 0) 16%),
    linear-gradient(90deg, rgba(var(--scrim), .86) 0%, rgba(var(--scrim), .62) 34%, rgba(var(--scrim), 0) 62%); }
.hero .copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(40px, 9vh, 110px); max-width: 34rem; }
.hero .display { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; max-width: 31rem; }
.hero .caption { position: absolute; z-index: 2; right: var(--gutter); bottom: 22px; text-align: right; max-width: 22rem; }
.prelaunch { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  color: var(--on-photo); margin: 0 0 18px; }
.prelaunch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px rgba(168, 237, 208, .25); }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; container-type: normal; }
  .hero .stage { position: relative; height: 62svh; min-height: 340px; overflow: hidden; container-type: size; }
  .hero::after { display: none; }
  .hero .stage::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(var(--scrim), .6) 0%, rgba(var(--scrim), 0) 30%, rgba(var(--scrim), 0) 70%, rgba(12, 27, 35, 1) 100%); }
  .hero .copy { position: relative; left: auto; bottom: auto; padding: 8px var(--gutter) 40px; max-width: none; background: #0C1B23; }
  .hero .caption { position: relative; right: auto; bottom: auto; text-align: left; padding: 0 var(--gutter) 28px; background: #0C1B23; }
}
@media (min-width: 761px) { .hero .stage { position: absolute; inset: 0; } }

/* The hero's map: the whole photo, its saved frames, the route, and the view the hero shows now (photo-paths.css moves
   it on the hero's own timeline). Bottom right, above the caption; small on phones. */
.hero-map { position: absolute; z-index: 2; right: var(--gutter); bottom: 64px; width: clamp(150px, 17vw, 250px); aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; background: #0C1B23; box-shadow: 0 0 0 1px rgba(229, 252, 242, .32), 0 14px 34px rgba(12, 27, 35, .45); }
.hero-map .photo { position: absolute; inset: 0; opacity: .78; }
.hero-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map .route { fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 1.5 4; stroke-linecap: round;
  vector-effect: non-scaling-stroke; opacity: .9; }
.hero-map .frame { fill: none; stroke: rgba(229, 252, 242, .7); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-map .view { fill: rgba(168, 237, 208, .12); stroke: var(--mint-white); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero-map .dot { fill: var(--mint); stroke: #0C1B23; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@media (max-width: 760px) {
  .hero-map { right: 12px; bottom: 14px; width: 112px; border-radius: 8px; }
}
@media (max-width: 359px) { .hero-map { display: none; } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section > .inner { max-width: var(--wide); margin: 0 auto; }
.section.alt { background: var(--bg-2); }
.prose { max-width: var(--measure); }
.prose p { color: var(--muted); }
.prose p strong { color: var(--text); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.intro h2 { max-width: 14ch; }
.intro .lead { color: var(--text); }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

/* A full-bleed picture with its words over a scrim (wide windows) or under it (phones). */
.bleed { position: relative; min-height: min(92svh, 62vw); display: grid; align-items: end; overflow: hidden; background: #0C1B23;
  isolation: isolate; }
.bleed > .frame { position: absolute; inset: 0; z-index: -2; }
.bleed::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .66) 32%, rgba(var(--scrim), 0) 60%),
              linear-gradient(0deg, rgba(var(--scrim), .55) 0%, rgba(var(--scrim), 0) 35%); }
.bleed.right::before { background: linear-gradient(270deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .66) 32%, rgba(var(--scrim), 0) 60%),
              linear-gradient(0deg, rgba(var(--scrim), .55) 0%, rgba(var(--scrim), 0) 35%); }
.bleed.top { align-items: start; }
.bleed .words { padding: clamp(56px, 8vw, 120px) var(--gutter); max-width: calc(36rem + 2 * var(--gutter)); }
.bleed.right .words { justify-self: end; }
.bleed .words h2 { margin-bottom: 20px; }
.bleed .caption { position: absolute; right: var(--gutter); bottom: 18px; text-align: right; }
.bleed.right .caption { right: auto; left: var(--gutter); text-align: left; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.facts li { position: relative; padding-left: 26px; color: var(--on-photo-muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--mint); }
.facts li strong { color: var(--on-photo); }
/* A band: the words in two columns across the sky, for a picture whose subjects sit low and at both sides. */
@media (min-width: 761px) {
  .bleed.band { align-items: start; }
  .bleed.band::before { background: linear-gradient(180deg, rgba(var(--scrim), .92) 0%, rgba(var(--scrim), .78) 30%, rgba(var(--scrim), 0) 58%); }
  .bleed.band .words { max-width: calc(var(--wide) + 2 * var(--gutter)); width: 100%; margin: 0 auto; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(28px, 5vw, 80px); padding-top: clamp(48px, 6vw, 88px); }
  .bleed.band .words .kicker, .bleed.band .words h2 { grid-column: 1; }
  .bleed.band .words > p:not(.kicker) { grid-column: 1; }
  .bleed.band .facts { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
}

/* A split: the words on solid deep teal, the photo beside them, for a picture whose subject should stay clear. */
@media (min-width: 761px) {
  .bleed.split { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: stretch; }
  .bleed.split::before { display: none; }
  .bleed.split > .frame { position: relative; inset: auto; z-index: auto; grid-column: 2; grid-row: 1; }
  .bleed.split .words { grid-column: 1; grid-row: 1; align-self: center; max-width: 34rem; justify-self: end;
    padding-right: clamp(28px, 4vw, 64px); }
  .bleed.split .caption { right: var(--gutter); }
}
@media (max-width: 760px) {
  .bleed { display: block; min-height: 0; }
  .bleed > .frame { position: relative; z-index: auto; height: 58svh; min-height: 300px; }
  .bleed::before { display: none; }
  .bleed .words { padding: 32px var(--gutter) 56px; max-width: none; }
  .bleed .caption { position: static; display: block; padding: 10px var(--gutter) 0; text-align: left; }
}

/* Between phone and desktop the words take most of the width: the scrim rises from the bottom instead of the side. */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero::after { background: linear-gradient(180deg, rgba(var(--scrim), .5) 0%, rgba(var(--scrim), 0) 20%),
    linear-gradient(0deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .66) 45%, rgba(var(--scrim), 0) 78%); }
  .bleed:not(.split):not(.band)::before { background: linear-gradient(0deg, rgba(var(--scrim), .92) 0%, rgba(var(--scrim), .68) 50%, rgba(var(--scrim), 0) 88%); }
  .bleed:not(.split) { min-height: max(78svh, 560px); }
}

/* The path: the whole photo with its saved frames, numbered, and the frame that travels between them. */
.path-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px); }
.path-head h2 { max-width: 15ch; }
@media (max-width: 860px) { .path-head { grid-template-columns: minmax(0, 1fr); } }
.navigator { position: relative; margin: 0; }
.navigator .view { position: relative; aspect-ratio: 4 / 3; border-radius: clamp(10px, 1.4vw, 18px); overflow: hidden; background: #0C1B23;
  box-shadow: 0 30px 80px -40px rgba(16, 36, 46, .55); }
.navigator .view .photo { position: absolute; inset: 0; }
.navigator .frames { position: absolute; inset: 0; width: 100%; height: 100%; }
.frames .route { fill: none; stroke: var(--mint); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round;
  vector-effect: non-scaling-stroke; opacity: .9; }
.frames .frame { fill: none; stroke: rgba(229, 252, 242, .82); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.frames .num circle { fill: rgba(16, 36, 46, .82); stroke: var(--mint); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.frames .num text { fill: var(--mint-white); font-family: var(--font); font-weight: 650; text-anchor: middle; }
.frames .travel { fill: rgba(168, 237, 208, .08); stroke: var(--mint); stroke-width: 3; stroke-dasharray: 12 7;
  vector-effect: non-scaling-stroke; }
/* The dot on the route and each frame's glow as the dashed frame snaps onto it; their timing: photo-paths.css. */
.frames .dot { fill: var(--mint); stroke: #0C1B23; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }
.frames .snap, .hero-map .snap { fill: rgba(168, 237, 208, .10); stroke: var(--mint); stroke-width: 1.5px; vector-effect: non-scaling-stroke;
  opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .frames .dot { opacity: 1; } }
.navigator figcaption { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 28px clamp(24px, 3vw, 44px); }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 650; color: var(--accent-text);
  font-size: .875rem; letter-spacing: .08em; margin-bottom: 8px; }
.steps li strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }

/* Share: one photo beside three ways out */
.share { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-top: clamp(32px, 5vw, 52px); }
.share-photo { margin: 0; }
.share-photo .photo { aspect-ratio: 16 / 9; height: auto; border-radius: clamp(10px, 1.4vw, 18px); }
.share-photo figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.cards.stack { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 14px; }
@media (max-width: 860px) { .share { grid-template-columns: minmax(0, 1fr); } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 18px; margin-top: clamp(32px, 5vw, 52px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .glyph { width: 34px; height: 34px; margin-bottom: 18px; color: var(--accent); }
.section-head { max-width: 44rem; }
.section-head .lead { margin-top: 18px; }

/* Free and Pro */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 18px; margin-top: clamp(32px, 5vw, 52px); }
.tier { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--surface); display: flex; flex-direction: column; }
.tier.pro { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tier h3 { font-size: 1.5rem; margin-bottom: 6px; }
.tier .sub { color: var(--muted); margin: 0 0 18px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.tier li { position: relative; padding-left: 28px; }
.tier li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tier li small { display: block; color: var(--muted); }

/* ------------------------------------------------------------------ the footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px var(--gutter) 48px; color: var(--muted); font-size: .9rem; }
.site-footer .inner { max-width: var(--wide); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.site-footer .mark { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.site-footer .mark img { width: 28px; height: 28px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: inherit; }
.site-footer .legal { flex-basis: 100%; margin: 0; font-size: .8125rem; }

/* ------------------------------------------------------------------ text pages (legal, about, licence) */
.page { padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 110px); }
.page .inner { max-width: 42rem; margin: 0 auto; }
.page h1 { margin: 6px 0 14px; }
.page h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; margin: 2.2em 0 .6em; }
.page p, .page li { color: var(--muted); }
.page p strong, .page li strong { color: var(--text); }
.page ul { padding-left: 1.2em; }
.page .stamp { margin-top: 48px; font-size: .8125rem; }
.crumb { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--accent-text); }
.notice { border: 1.5px solid var(--warn); background: var(--warn-bg); color: var(--text); border-radius: 14px; padding: 14px 18px; margin: 0 0 28px; }
.notice strong { display: block; color: var(--warn); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.notice p { color: var(--text) !important; margin: 0; }
.placeholder { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--warn-bg); color: var(--warn);
  border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* forms (licence resend, purchase questions) */
.field { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
input[type=email], input[type=text] { flex: 1 1 240px; min-width: 0; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
input[type=email]:focus, input[type=text]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.status { min-height: 1.5em; }

/* ------------------------------------------------------------------ the buy page */
.page .inner.wide { max-width: 60rem; }
.buy-hero { display: flex; gap: 22px; align-items: center; margin: 28px 0 30px; }
.buy-hero img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px rgba(16, 36, 46, .3); flex: none; }
.buy-hero h1 { margin: 0 0 6px; }
.buy-hero .lead { margin: 0; }
@media (max-width: 560px) { .buy-hero { flex-direction: column; align-items: flex-start; } }
.compare-wrap { overflow-x: auto; margin: 0 0 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; padding: 18px 20px 4px; font-weight: 650; font-size: 1.05rem; }
.compare th, .compare td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 400; color: var(--text); }
.compare td { color: var(--muted); white-space: nowrap; }
.compare td strong { color: var(--accent-text); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes::before { content: ""; display: inline-block; width: 12px; height: 7px; margin: 0 8px 3px 1px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 560px) { .compare th, .compare td { padding: 10px 12px; } .compare td { white-space: normal; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 18px; margin: 0 0 12px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--surface); display: flex; flex-direction: column; }
.plan.team { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan h2 { font-size: 1.15rem; margin: 0 0 10px; letter-spacing: -.01em; }
.price { font-size: 2.4rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.price .placeholder { font-size: 1.1rem; vertical-align: middle; }
.plan .alt { font-size: .9rem; color: var(--muted); margin: 8px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 26px; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 12px; height: 7px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .button { width: 100%; }
.plan .button[disabled], .step[disabled] { opacity: .5; cursor: default; }
.quiet-button { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.quiet-button:hover { background: var(--tint); }
.qty { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.step { width: 34px; height: 34px; padding: 0; border-radius: 9px; background: transparent; color: var(--accent-text); font: 600 1.15rem/1 var(--font);
  border: 0; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.qty output { min-width: 1.4em; text-align: center; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
#note { color: var(--warn); font-size: .95rem; }
.checkout { margin: 0 0 40px; scroll-margin-top: 16px; }
.checkout-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.checkout-head h2 { font-size: 1.4rem; margin: 0; }
button.back { background: transparent; border: 0; color: var(--accent-text); font: 600 1rem var(--font); cursor: pointer; padding: 4px 0; }
.checkout-grid { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.summary, .pay { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.summary { padding: 22px; }
.pay { padding: 22px 22px 10px; }
.summary h3 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.summary .item strong { display: block; font-size: 1.05rem; }
.summary .item small { display: block; color: var(--muted); }
.summary .qty { margin: 14px 0 0; }
.summary dl { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary dl .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; font-weight: 650; font-size: 1.1rem; }
.summary .fine { font-size: .8125rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 720px) { .checkout-grid { grid-template-columns: minmax(0, 1fr); } .summary, .pay { padding: 18px; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 44px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.trust li { position: relative; padding-left: 22px; }
.trust li::before { content: ""; position: absolute; left: 1px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.faq h2 { font-size: 1.3rem; margin: 0 0 12px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 2px; color: var(--muted); }

/* ------------------------------------------------------------------ the thanks page */
.done { display: flex; gap: 18px; align-items: center; margin: 24px 0 18px; }
.done svg { flex: 0 0 56px; width: 56px; height: 56px; color: var(--accent); }
.done h1 { margin: 0; }
.howto { list-style: none; counter-reset: s; padding: 20px 22px; margin: 0 0 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.howto li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; color: var(--muted); }
.howto li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent-text);
  font-weight: 700; font-size: .875rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.howto strong { display: block; color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 22px 0 0; }
.panel p:last-child { margin-bottom: 0; }
.panel h2 { font-size: 1.2rem; margin: 0 0 6px; }
.ask fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.ask legend { color: var(--text); font-weight: 600; padding: 0; margin-bottom: 6px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 3px 0; color: var(--muted); cursor: pointer; }
.opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.ask .other { display: block; width: calc(100% - 26px); margin: 6px 0 0 26px; }
.ask .other:disabled { opacity: .45; }
.send { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.send .small { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ the friends page */
.download { margin: 30px 0 0; padding: 24px; }
.download .get { margin: 12px 0 0; }
.button[disabled] { opacity: .45; cursor: default; }
.button[disabled]:hover { background: var(--button); }
.download .state { margin: 16px 0 0; }
.page .dl-meta { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .875rem; }
.download .sum { margin: 12px 0 0; font-size: .8125rem; overflow-wrap: anywhere; }
.download .sum code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; }
.friends-photo { margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  .frames .travel, .frames .dot { display: none; }
}
@media print {
  .hero .cam .photo, .hero-map *, .frames * { animation: none !important; }
  .site-header nav { display: none; }
}
