/* The launch-videos page (et/tutvustusvideod.html, en/launch-videos.html): the energetic side of Flickwork.
   It stands on the site's own tokens and parts (tools/index.src.html: paper and night, .btn, .screen, .clip, .how, .faq)
   and adds: caption tiles (the headline set like burned-in captions, one box per word, the key word in sun yellow), big
   videos, tier cards whose length is a row of house cells, and the quote panel (the site's soft panel and .btn).
   No gradient, no glass, nothing that only works on hover. Built pages link this file at the top of their body. */

.trl { --cap-bg: var(--tx); --cap-tx: var(--bg); --hi-bg: var(--sun); --hi-tx: #1a1714; }
/* in-page jumps glide (Martin, 2026-11-20); reduced motion keeps the instant jump. The quote links scroll by script the same
   way (trailers.js); this covers plain #links. Only these two pages load this file. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.trl .sec-h h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 750; letter-spacing: -0.035em; }
.trl-sun { display: inline-flex; line-height: 0; flex: none; }

/* ---------- caption tiles ---------- */
.trl-cap { margin: 0; display: flex; flex-wrap: wrap; gap: 0.1em 0.1em; font: 800 clamp(2.875rem, 5.5vw, 5.375rem)/1 var(--fd); letter-spacing: -0.04em; }
.trl-cap .w { display: inline-block; padding: 0.07em 0.15em 0.1em; border-radius: 0.09em; background: var(--cap-bg); color: var(--cap-tx); }
.trl-cap .hi { background: var(--hi-bg); color: var(--hi-tx); }
html[data-anim='on'] .trl-hero .trl-cap .w { animation: trl-pop 0.44s cubic-bezier(.2, 1.35, .4, 1) both; animation-delay: calc(0.1s + var(--i) * 0.12s); }
@keyframes trl-pop { from { opacity: 0; transform: scale(1.32) translateY(-0.05em); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- the hero: the words left, the lead video big on the right ---------- */
.trl-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3.5rem; align-items: center; padding: 1.25rem 0 0.5rem; }
.trl-kicker { margin: 0 0 1.5rem; display: flex; align-items: flex-end; gap: 0.75rem; font: 650 0.875rem/1 var(--fb); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-2); }
.trl-sub { margin: 1.75rem 0 0; max-width: 29em; font-size: 1.1875rem; line-height: 1.5; color: var(--tx-2); }
.trl-from { display: flex; align-items: center; gap: 0.875rem; margin: 1.375rem 0 0; }
.trl-from .num { font: 700 2.75rem/1 var(--fd); letter-spacing: -0.03em; white-space: nowrap; }
.trl-from .num small { font: 600 1.125rem var(--fb); color: var(--tx-2); letter-spacing: 0; }
.trl-from .for { font-size: 0.90625rem; line-height: 1.35; color: var(--tx-2); }
.trl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.875rem; }
.trl-mail { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--tx-2); }
.trl-mail a { color: var(--tx); font-weight: 600; }
.trl .btn .key svg { margin-left: 2px; }
.trl [data-quote-open] .key svg { margin-left: 0; }

/* ---------- an example: a screen, the video (or a placeholder), its caption ---------- */
.trl-ex { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.trl-clip { aspect-ratio: var(--ar, 16 / 9); }
.trl-lead .screen { padding: 0.625rem; border-radius: 1.375rem; }
.trl-lead .trl-clip { border-radius: 0.8125rem; }
.trl-ex figcaption { margin-top: 0.875rem; display: grid; gap: 0.25rem; font-size: 0.9375rem; line-height: 1.45; color: var(--tx-2); }
.trl-ex figcaption b { color: var(--tx); font: 650 1.25rem/1.2 var(--fd); letter-spacing: -0.012em; }
.trl-meta { font-size: 0.84375rem; font-weight: 600; color: var(--tx-2); }
.trl-lead figcaption { grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: baseline; }
.trl-lead figcaption .trl-desc { grid-column: 1 / -1; }

/* the play control: in the "click" variant (and without JS) a big labelled button in the middle; in "autoplay" a small
   "with sound" pill in the corner, over the muted loop. Both are always visible until pressed. The pill is the site's
   pine (#14261c, the day-mode button) with its gold key in both modes, since it sits on the video, not on the page
   (was the old palette's navy; Martin 2026-11-20: "Yes, switch them"). */
.trl-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.25rem 0.5rem 0.5rem; border: 0; border-radius: 1rem;
  background: #14261c; color: var(--on-screen); font: 650 1rem/1 var(--fb); cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(238, 242, 230, 0.2);
}
.trl-play:hover { background: #24402f; }
.trl-play .key { width: 2.75rem; height: 2.75rem; border-radius: 0.6875rem; background: var(--sun); display: grid; place-items: center; flex: none; }
.trl-play .key svg { width: 0.875rem; height: 0.875rem; margin-left: 2px; }
.trl-play .key path { fill: #14261c; }
.trl-play:hover .key { background: #ffd659; }
.trl-play .t-auto { display: none; }
.trl-play:focus-visible { outline: 0.1875rem solid var(--sun); outline-offset: 0.1875rem; }
html[data-trl-play='autoplay'] .trl-play { gap: 0.5625rem; padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem; border-radius: 0.75rem; font-size: 0.90625rem; }
html[data-trl-play='autoplay'] .trl-play .key { width: 2rem; height: 2rem; border-radius: 0.5rem; }
html[data-trl-play='autoplay'] .trl-play .key svg { width: 0.6875rem; height: 0.6875rem; }
html[data-trl-play='autoplay'] .trl-play .t-click { display: none; }
html[data-trl-play='autoplay'] .trl-play .t-auto { display: inline; }
.trl-ex.is-on .trl-play { display: none; }
/* where it sits, at every width and in both variants: the corner of the example that its playCorner in trailers.json
   names (default bottom right), clear of the words in the poster. Centred, "Watch" covered the Sõlmik poster's "BOOKED."
   and the raudrebane one's "KORDUS.", and the corner pill covered the dogfood poster's "ALL FOUR TIERS. BUILT." (night QA
   2026-11-21). */
.trl-ex { --play-in: 0.75rem; }
.trl-ex .trl-play { left: auto; top: auto; right: var(--play-in); bottom: var(--play-in); transform: none; }
.trl-ex[data-play-at^='top'] .trl-play { top: var(--play-in); bottom: auto; }
.trl-ex[data-play-at$='left'] .trl-play { left: var(--play-in); right: auto; }

/* a placeholder until the example's file is in assets/trailers/ (the build lists every one) */
.trl-ph {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.625rem; padding: 1rem; text-align: center;
  background: #14120f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='12' height='12' fill='%23f4f1ea' fill-opacity='.045'/%3E%3C/svg%3E");
  color: var(--on-screen-2); line-height: 1.3;
}
.trl-ph-a { font: 800 clamp(1.75rem, 3.6vw, 3.25rem)/1 var(--fd); letter-spacing: -0.03em; color: var(--on-screen); }
.trl-ph-t { font-size: 0.875rem; }

/* ---------- the tiers ("Hinnakiri"): the length is the headline, drawn again as house cells (one cell = 5 s) ---------- */
.trl-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.trl-tier { display: flex; flex-direction: column; min-width: 0; padding: 1.75rem 1.75rem 1.875rem; border-radius: 1.5rem; background: var(--bg-2); }
.trl-tier h3 { margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.trl-tname { font: 650 1.375rem/1.1 var(--fd); letter-spacing: -0.012em; }
.trl-len { display: flex; align-items: baseline; gap: 0.375rem; }
.trl-len .n { font: 800 clamp(3.5rem, 5.4vw, 5rem)/0.9 var(--fd); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trl-len .u { font: 700 1.625rem/1 var(--fd); color: var(--tx-2); }
.trl-meter { display: block; width: 100%; max-width: 17.75rem; height: auto; margin: 1.25rem 0 0; }
.trl-meter .on { fill: var(--mk); }
.trl-meter .soft { fill: var(--mk); fill-opacity: 0.4; }
.trl-meter .off { fill: var(--line); }
.trl-price { margin: 1.5rem 0 0; font: 700 2.25rem/1 var(--fd); letter-spacing: -0.025em; white-space: nowrap; }
.trl-price small { font: 600 1rem var(--fb); color: var(--tx-2); letter-spacing: 0; }
.trl-ask {
  display: inline-flex; align-items: center; gap: 0.625rem; font: 650 1.1875rem/1.25 var(--fb); letter-spacing: 0; color: var(--tx);
  text-decoration: underline; text-decoration-color: var(--mk); text-decoration-thickness: 0.1875rem; text-underline-offset: 0.4375rem; white-space: normal;
}
.trl-ask .arr { display: inline-grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 0.4375rem; background: var(--tx); flex: none; }
.trl-ask .arr svg { width: 0.6875rem; height: 0.6875rem; }
.trl-ask .arr path { fill: var(--bg); }
.trl-for { margin: 1.25rem 0 0; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.trl-inc { list-style: none; margin: 0.875rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.96875rem; line-height: 1.4; color: var(--tx-2); }
.trl-inc li { display: flex; gap: 0.6875rem; align-items: baseline; }
.trl-inc li::before { content: ''; flex: none; width: 0.5625rem; height: 0.5625rem; background: var(--mk); transform: translateY(-1px); }
.trl-tier-foot { margin-top: auto; padding-top: 1.5rem; }
.trl-addons { margin: 1.375rem 0 0; font-size: 0.96875rem; color: var(--tx-2); }
.trl-addons b { color: var(--tx); font-weight: 650; }

/* ---------- more examples: one row, every video the same height (each card grows by its width / height) ---------- */
.trl-row { display: flex; gap: 1.5rem; align-items: flex-start; }
.trl-row .trl-ex { flex: var(--grow, 1) 1 0; }

/* ---------- founder ---------- */
.trl-founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: start; max-width: 57.5rem; padding-top: 2rem; border-top: 0.1875rem solid var(--tx); }
.trl-founder h2 { margin: 0 0 0.75rem; font: 750 clamp(1.875rem, 3.4vw, 2.75rem)/1.05 var(--fd); letter-spacing: -0.03em; }
.trl-founder p { margin: 0 0 0.5rem; max-width: 36em; font-size: 1.125rem; }
.trl-founder .sig { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--tx-2); }

/* ---------- the quote panel: the site's soft panel (like the home page's order box) with a thin line border in both
   modes, its words in the page ink, the home page's field style, the site's own .btn; gold only on that button (the
   heading's key word is an ink tile here, not a gold one). It was a sun-gold slab with the old palette's navy ink and
   cream fields at night, which did not go with the forest (Martin, 2026-11-20). Every colour is a site token, so light,
   dark and no-JS follow the page. ---------- */
.trl-quote {
  --q-bg: var(--bg-2); --q-tx: var(--tx); --q-tx2: var(--tx-2); --q-in: var(--bg); --q-in-tx: var(--tx); --q-in-line: var(--line-2);
  --hi-bg: var(--cap-bg); --hi-tx: var(--cap-tx);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem 4rem; align-items: start;
  padding: 3.5rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--q-bg); color: var(--q-tx); scroll-margin-top: 1rem;
}
.trl-quote .trl-cap { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }
.trl-q-p { margin: 1.5rem 0 0; max-width: 24em; font-size: 1.125rem; }
.trl-q-mail { margin: 1.375rem 0 0; font-size: 1rem; }
.trl-q-mail a, .trl-thanks a, .trl-privacy a, .trl-form-msg a { color: var(--q-tx); font-weight: 650; }
.trl-q-reply { margin: 0.75rem 0 0; display: flex; align-items: flex-end; gap: 0.625rem; font-size: 0.96875rem; color: var(--q-tx2); }
.trl-form { display: grid; gap: 1.125rem; }
.trl-f { display: grid; gap: 0.4375rem; }
.trl-f label { font: 650 0.9375rem/1.3 var(--fb); }
.trl-f label small { font-weight: 500; font-size: 0.84375rem; color: var(--q-tx2); }
.trl-f input, .trl-f textarea {
  width: 100%; padding: 0.75rem 0.875rem; border: 1.5px solid var(--q-in-line); border-radius: 0.75rem;   /* the home page's .field input */
  font: 500 1rem/1.3 var(--fb); color: var(--q-in-tx); background: var(--q-in);
}
.trl-f textarea { min-height: 6rem; resize: vertical; }
.trl-f input::placeholder { color: var(--tx-2); opacity: 1; }
/* focus: the home page's field look (tools/index.src.html, by .drop): the edge in the mark green with a faint glow */
.trl-f input:focus-visible, .trl-f textarea:focus-visible {
  outline: 2px solid transparent; outline-offset: 2px;
  border-color: var(--mk); box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--mk) 25%, transparent);
}
.trl-f [aria-invalid='true'] { border-color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx); }
.trl-f [aria-invalid='true']:focus-visible { border-color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx), 0 0 0 0.1875rem color-mix(in srgb, var(--mk) 25%, transparent); }
.trl-hint { margin: 0; font-size: 0.84375rem; color: var(--q-tx2); }
.trl-err { margin: 0; font: 650 0.875rem/1.4 var(--fb); color: var(--q-tx); }
.trl-err::before { content: '! '; }
.trl-err[hidden] { display: none; }
.trl-quote .btn { justify-self: start; }   /* the site's .btn as it is: pine with a gold key on paper, gold at night */
.trl-quote .btn:disabled { opacity: 0.55; cursor: not-allowed; }   /* only until the page script is running */
.trl-form-msg { margin: 0; font-weight: 600; }
.trl-form-msg:empty { display: none; }
.trl-privacy { margin: 0; font-size: 0.84375rem; color: var(--q-tx2); }
.trl-form[hidden], .trl-thanks[hidden] { display: none; }
.trl-thanks { outline: none; }
.trl-thanks h3 { margin: 0 0 0.875rem; font: 750 clamp(1.75rem, 2.8vw, 2.375rem)/1.08 var(--fd); letter-spacing: -0.025em; }
.trl-thanks p { margin: 0 0 0.5rem; font-size: 1.0625rem; }

/* ---------- below 1280: an upright card is too narrow for the button's words (on tablets "Watch" was wider than the
   clip): the button keeps its key, in both variants (its name stays in aria-label) ---------- */
@media (max-width: 1279px) {
  .trl-row .trl-ex:not(.wide) .trl-play .t { display: none; }
  .trl-row .trl-ex:not(.wide) .trl-play { padding: 0.3125rem; }
}
/* ---------- tablets ---------- */
@media (max-width: 1023px) {
  .trl-hero { grid-template-columns: minmax(0, 1fr); }
  .trl-tiers { grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr)); gap: 1rem; }
  .trl-tier { padding: 1.5rem 1.375rem 1.625rem; }
  .trl-quote { grid-template-columns: minmax(0, 1fr); padding: 2.5rem; }
}
/* ---------- phones ---------- */
@media (max-width: 760px) {
  .trl-hero { gap: 1.5rem; padding-top: 0.625rem; }
  .trl-kicker { margin-bottom: 1rem; font-size: 0.78125rem; gap: 0.625rem; }
  .trl-cap { font-size: clamp(2.375rem, 11.4vw, 3.125rem); }
  .trl-sub { margin-top: 1.125rem; font-size: 1rem; }
  .trl-cta { margin-top: 1.375rem; gap: 0.875rem; }
  .trl-cta .btn { width: 100%; justify-content: center; }
  .trl-lead .screen { padding: 0.375rem; border-radius: 1rem; }
  .trl-lead .trl-clip { border-radius: 0.6875rem; }
  .trl-lead figcaption { grid-template-columns: minmax(0, 1fr); }
  .trl-play { gap: 0.625rem; padding: 0.375rem 1rem 0.375rem 0.375rem; font-size: 0.9375rem; border-radius: 0.875rem; }
  .trl-play .key { width: 2.375rem; height: 2.375rem; border-radius: 0.625rem; }
  html[data-trl-play='autoplay'] .trl-play { padding: 0.25rem 0.6875rem 0.25rem 0.25rem; font-size: 0.8125rem; gap: 0.4375rem; }
  html[data-trl-play='autoplay'] .trl-play .key { width: 1.75rem; height: 1.75rem; border-radius: 0.4375rem; }
  .trl-ex { --play-in: 0.5rem; }
  .trl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 0.75rem; }
  .trl-row .wide { grid-column: 1 / -1; }
  .trl-row .trl-ex:not(.wide) figcaption b { font-size: 1.0625rem; }
  .trl-row .trl-ex:not(.wide) .trl-play { padding: 0.375rem; }
  .trl-tier { padding: 1.375rem 1.25rem 1.5rem; border-radius: 1.25rem; }
  .trl-price { font-size: 2rem; }
  .trl-founder { grid-template-columns: minmax(0, 1fr); gap: 0.875rem; padding-top: 1.5rem; }
  .trl-founder p { font-size: 1.03125rem; }
  .trl-quote { padding: 1.875rem 1.125rem 2rem; border-radius: 1.5rem; gap: 1.75rem; }
  .trl-quote .trl-cap { font-size: clamp(1.75rem, 10vw, 2.5rem); }   /* "hinnapakkumist" fits down to 320 px */
  .trl-q-p { font-size: 1.03125rem; }
  .trl-quote .btn { width: 100%; justify-content: center; }
}

/* ---------- the art (2026-11-21, the ink birds; Martin: as detailed as the home page, no empty places). trailers.js draws
   it all from the home page's flock kit; these rules only place it and give the water its pale ink. ---------- */
[data-trl-art], [data-trl-land], [data-trl-nook], [data-trl-sun], [data-trl-tree] { --land: color-mix(in srgb, var(--mk) 32%, var(--bg)); }
/* the hero stands on still water: a loose flock across the page, reeds at the ends */
.trl-hero .trl-land { grid-column: 1 / -1; line-height: 0; margin-top: 0.75rem; }
.trl-hero + .trl-sec { margin-top: 6rem; }
/* the tiers: a small flock right of the length, on the meter's line, growing with the length */
.trl-tier-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.75rem; }
.trl-tree { flex: none; line-height: 0; margin-bottom: -0.25rem; }
/* the founder: a reed bed with birds over it at the foot of the row, right of the words (he is on the water in his photo); the
   line on top runs the full width. Only where the row has that room (1200 px and up); narrower, the words fill it. */
.trl-founder-art { display: none; }
@media (min-width: 1200px) {
  .trl-founder { grid-template-columns: auto minmax(0, 1fr) auto; max-width: none; }
  .trl-founder-art { display: block; align-self: end; }
}
/* the quote panel on computers: the words, under them a quiet corner of reeds and birds (the home nook's CSS: .nook),
   beside them the form over both rows */
@media (min-width: 1024px) {
  .trl-quote { grid-template-rows: auto 1fr; }
  .trl-q-t { grid-column: 1; grid-row: 1; }
  .trl-q-f { grid-column: 2; grid-row: 1 / span 2; }
  .trl-quote .nook { min-height: 12.5rem; }
}
@media (max-width: 760px) {
  .trl-hero + .trl-sec { margin-top: 4.5rem; }
}
