/* Reclames studio identity. Shared components serve marketing and workspace. */
@import url('/public/fonts/fonts.css');

 :root {
  --ground: #182641; --ground-2: #213454; --veil: rgba(24,38,65,.72); --veil-strong: rgba(24,38,65,.9);
  --hairline: rgba(255,255,255,.18); --paper: #F4F6FA; --ink: #182641;
  --ink-soft-70: #46556e; --ink-soft-60: #56647B; --ink-soft-55: #56647B;
  --ink-soft-28: #a1adbf; --ink-soft-14: #dce2ec;
  --cream-soft-66: #e7edf8; --cream-soft-62: #d8e1f2; --cream-soft-50: #c0cde3;
  --cream-soft-42: #a9bad5; --cream-soft-28: #8ba1c2;
  --accent: #2458D3; --accent-600: #1945ae; --accent-ink: #FFFFFF;
  --cta: #2458D3; --cta-600: #1945ae; --cta-ink: #FFFFFF;
  --wash-1: #e6edfc; --wash-2: #e4eeed; --wash-3: #eceaf5;
  --bg: var(--paper); --surface: #FFFFFF; --line: #dce2ec; --muted: #56647B;
  --primary: var(--accent); --primary-hover: var(--accent-600); --primary-soft: #E6EDFC;
  --success: #216344; --success-soft: #eff8f2; --danger: #af2937; --danger-soft: #fff2f3;
  --radius-card: 16px; --radius-btn: 9px; --shadow-card: 0 8px 28px rgba(24,38,65,.04);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-wordmark: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  text-wrap: pretty;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

/* On a dark ground the lime IS the link colour; on paper it was a 1.15:1
   contrast, so paper links are ink underlined in lime instead. */
.site-footer a, .surface-dark a, .page-tunnel a, .page-editor a, .site-header a {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.site-header a, .btn { text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: none;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- layout shell ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

main {
  display: block;
}

.surface-dark {
  background: var(--ground);
  color: var(--paper);
}

.surface-paper {
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ground);
  color: var(--paper);
  border-bottom: 2px solid var(--paper);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  height: 64px;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a.btn {
  color: var(--accent-ink);
  padding: 0.65rem 1rem;
}

.site-nav a.btn:hover {
  color: var(--accent-ink);
}

/* The language switch: the entire language mechanism the visitor can see.
   Reads as a control, not as another nav destination. */
.lang-switch {
  border: 2px solid var(--cream-soft-42);
  padding: 0.35rem 0.55rem;
  line-height: 1;
}

.lang-switch:hover {
  border-color: var(--accent);
}

/* Nav overflows below ~760px (5 anchor links + a login link + a CTA button
   never fit in a phone-width header), drop the in-page anchors first, they
   duplicate the CTA and the footer's real destinations. Below 480px, also
   drop the login link so the wordmark + CTA (the two things that matter on
   a phone) never get clipped by body's overflow-x: hidden.
   Matched by class, not by href: the English twins are "/en#comment" and
   "/en/login", which an href^="/#" selector would silently miss. */
@media (max-width: 760px) {
  .site-nav a.nav-anchor {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-nav a.nav-login {
    display: none;
  }

  .site-header .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .wordmark {
    font-size: 1.1rem;
  }

  .site-nav a.btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
  }
}

/* position/z-index: on the landing the fixed WebGL tunnel is a positioned
   element at z-index 0, and a plain in-flow footer would be painted UNDER
   it. Lifting the footer into the same stacking context keeps it visible. */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ground);
  color: var(--cream-soft-62);
  border-top: 2px solid var(--paper);
  padding: 2.25rem 0;
}

.site-footer .container {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---------- typography helpers ---------- */

/* The canvas sets every small label in IBM Plex Mono: it is what separates
   the machine-side chrome (labels, counters, the depth gauge) from the
   display type, and it is half of the page's character. */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}

.surface-dark .eyebrow, .page-tunnel .eyebrow, .page-editor .eyebrow { color: var(--accent); }

.lead {
  color: var(--ink-soft-70);
}

.surface-dark .lead {
  color: var(--cream-soft-66);
}

.muted {
  color: var(--ink-soft-60);
}

.surface-dark .muted {
  color: var(--cream-soft-62);
}

.muted-note,
.demo-note {
  font-size: 0.8rem;
  color: var(--ink-soft-55);
  margin: 1rem 0 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: 0;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
  border-color: var(--cta);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:disabled {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-ink);
  opacity: 0.55;
  cursor: progress;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.surface-dark .btn-outline {
  color: var(--paper);
  border-color: var(--paper);
}

.surface-dark .btn-outline:hover {
  background: var(--paper);
  color: var(--ground);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 36px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.1rem 1.6rem;
  font-size: 1.05rem;
}

/* ---------- cards ---------- */

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  padding: clamp(20px, 2.4vw, 30px);
}

.surface-dark .card {
  background: var(--ground-2);
  border-color: var(--paper);
  color: var(--paper);
}

.card-pad-lg {
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

.card h2 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft-60);
  margin-bottom: 18px;
}

.card h2::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}

.surface-dark .card h2 {
  color: var(--paper);
}

/* ---------- form controls ---------- */

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft-60);
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

textarea {
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

input[type="color"] {
  height: 3rem;
  width: 100%;
  padding: 0.25rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  margin-bottom: 1.1rem;
  cursor: pointer;
}

input[type="file"] {
  margin-bottom: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

@media (max-width: 640px) {
  .field-row,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.swatch-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.swatch-picker button {
  border: 2px solid var(--ink);
  background: none;
  padding: 4px;
  display: flex;
  gap: 4px;
  cursor: pointer;
  min-height: 44px;
  align-items: center;
}

.swatch-picker button:hover {
  border-color: var(--accent);
}

.swatch-picker .chip {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- banners / flash ---------- */

.banner {
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 2px solid transparent;
}

.banner-success {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
}

.banner-error {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

.banner a {
  font-weight: 600;
}

/* ---------- badges / pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: var(--accent);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0;
  border: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
}

.badge-queued {
  background: #f1f0ef;
  color: var(--ink-soft-60);
}

.badge-running {
  background: var(--primary-soft);
  color: var(--ink);
}

.badge-running .dot {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.badge-done {
  background: var(--success-soft);
  color: var(--success);
}

.badge-failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes rc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

@keyframes rc-pop {
  from { transform: scale(0.9); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--ink-soft-14);
  white-space: nowrap;
}

th {
  color: var(--ink-soft-60);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

form.inline {
  display: inline;
  margin: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
}

.brand-swatches {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.swatch {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
}

.suggest-btn-row {
  margin-top: 0.75rem;
}

#suggest-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#suggest-list button {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

#suggest-list button:hover {
  background: rgba(214, 255, 63, 0.18);
}

/* ---------- sections / rhythm ---------- */

section.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.section-tight {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* The documentation's prose must wrap inside its table on narrow screens. */
.doc-table th, .doc-table td { white-space: normal; }

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-header h1 {
  margin: 0;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

@media (max-width: 720px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   LANDING PAGE v6, sections floating over a full-screen video tunnel
   (ported from the founder canvas "Reclame Landing v6.dc.html")

   The page is one dark surface end to end. A fixed WebGL canvas fills the
   viewport under the 64px nav and the visitor scrolls THROUGH it; the copy
   rides above in semi-opaque cards that alternate left/right so the tunnel
   is never fully covered. Pointer events pass through the gaps between the
   cards down to the canvas, which is why .tunnel-stack is pointer-events:
   none and every .tunnel-card turns them back on.
   ===================================================================== */

.page-tunnel {
  background: var(--ground);
  color: var(--paper);
}

/* On the tunnel page only, the header floats over the corridor instead of
   sitting on a solid band: the canvas runs full bleed underneath it, so an
   opaque 64px strip would slice the top off the scene. Blur plus a hairline
   keeps the wordmark legible without hiding what is behind. Other pages keep
   the solid header, where translucency over paper would just look accidental. */
.page-tunnel .site-header {
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 242, 234, 0.14);
}

.page-tunnel .site-header .container {
  height: 68px;
}

.page-tunnel .site-nav a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.page-tunnel .site-nav a.btn {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* The hero tag in the canvas is not a filled chip any more: it is a short
   lime rule followed by mono caps. */
.page-tunnel .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-tunnel .hero-tag::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--accent);
  display: block;
  flex: none;
}

/* The headline sits straight on the corridor in the revised canvas, with a
   deep shadow instead of a card, so the video stays visible behind it. */
.page-tunnel .hero-title {
  font-size: clamp(54px, 6.6vw, 112px);
  line-height: 0.8;
  letter-spacing: -0.055em;
  margin-left: -0.07em;
  text-shadow: 0 6px 60px rgba(10, 10, 9, 0.9);
}

/* The closing call lost its lime slab when it moved onto the corridor, and
   the colours had been set for that slab: near-black ink, which is invisible
   against the video. On the corridor it is cream held by its own shadow, and
   the button carries the coral, exactly as the canvas draws it. */
.page-tunnel .cta-title {
  font-size: clamp(40px, 6.4vw, 118px);
  line-height: 0.8;
  letter-spacing: -0.058em;
  margin-left: -0.07em;
  color: var(--paper);
  text-shadow: 0 6px 60px rgba(10, 10, 9, 0.92);
}

.page-tunnel .tunnel-card.is-bare .btn,
.page-tunnel .tunnel-card.is-closing .btn {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-ink);
  text-shadow: none;
}

.page-tunnel .tunnel-card.is-bare .btn:hover,
.page-tunnel .tunnel-card.is-closing .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Full bleed, and BEHIND the translucent nav rather than starting under it:
   the corridor has to run off every edge of the window or it reads as a video
   in a box. The nav's own blur is what keeps the wordmark legible over it. */
.tunnel-canvas,
.tunnel-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: var(--ground);
}

/* Two fixed overlays from the canvas, both purely optical, both above the
   canvas and below the copy. The vignette pulls the eye to the middle of the
   corridor; the scanlines give the whole thing the texture of a screen
   instead of a clean render. */
.tunnel-vignette,
.tunnel-scan {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tunnel-vignette {
  background: radial-gradient(ellipse 120% 80% at 50% 50%, rgba(10, 10, 9, 0) 38%, rgba(10, 10, 9, 0.72) 100%);
}

.tunnel-scan {
  opacity: 0.45;
  background: repeating-linear-gradient(180deg, rgba(245, 242, 234, 0.045) 0 1px, transparent 1px 4px);
}

/* Depth gauge: where you are in the corridor, pinned to the right edge.
   It is a readout, not decoration, so it is driven by the same scroll
   progress that drives the tunnel. Hidden on narrow windows, where the
   copy already runs edge to edge. */
.tunnel-depth {
  position: fixed;
  right: clamp(16px, 4vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.tunnel-depth-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.tunnel-depth-rail {
  width: 2px;
  height: min(34vh, 240px);
  background: rgba(245, 242, 234, 0.16);
  position: relative;
}

.tunnel-depth-dot {
  position: absolute;
  right: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  top: 0;
}

.tunnel-depth-word {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(245, 242, 234, 0.4);
  writing-mode: vertical-rl;
}

@media (max-width: 999px) {
  .tunnel-depth { display: none; }
}

.tunnel-canvas[hidden] {
  display: none;
}

/* Fallback (no WebGL): the same showcase brands as a still collage behind the
   page. Posters only, never <video>.

   Phones no longer land here, they run the corridor in lean mode, because
   this collage used to be the whole mobile hero and, at opacity .32 over
   #0a0a09 in 88px cells, it read as a black screen. It is still the no-WebGL
   path, so it has to be legible on its own: bigger cells, and enough opacity
   to actually see a brand. */
.tunnel-fallback {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding: clamp(16px, 4vw, 40px);
  overflow: hidden;
}

.tunnel-fallback[hidden] {
  display: none;
}

.tunnel-fallback-cell {
  position: relative;
  width: clamp(124px, 12vw, 148px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-bottom: 3px solid var(--cell-accent, var(--accent));
  opacity: 0.58;
}

.tunnel-fallback-cell.is-tall {
  transform: translateY(-9%);
}

.tunnel-fallback-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sound is off until the visitor asks for it (browsers refuse autoplay with
   audio anyway), and the control is fixed bottom-right, above everything. */
.tunnel-sound {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  right: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 41;
  border: 1px solid rgba(245, 242, 234, 0.4);
  background: rgba(10, 10, 9, 0.7);
  color: var(--paper);
  text-transform: uppercase;
  padding: 14px 18px;
  min-height: 44px;
  cursor: pointer;
}

.tunnel-sound:hover {
  border-color: var(--paper);
}

.tunnel-sound.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tunnel-sound[hidden] {
  display: none;
}

.tunnel-stack {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.tunnel-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 7vh, 88px) clamp(16px, 4vw, 40px);
  scroll-margin-top: 64px;
}

.tunnel-section.is-right {
  justify-content: flex-end;
}

/* The copy rides over moving video, so legibility is not a given: a bright
   frame sweeping past behind a paragraph washes it out for a second or two.
   Three things hold it, and all three are needed. A heavier blur so whatever
   passes behind becomes a wash of colour rather than shapes competing with
   the letters. A veil that is opaque enough on its own. And a shadow on the
   text itself, which is the only one of the three that still works at the
   exact moment a white frame fills the panel. */
.tunnel-card {
  pointer-events: auto;
  background: var(--veil);
  -webkit-backdrop-filter: blur(18px) saturate(0.85);
  backdrop-filter: blur(18px) saturate(0.85);
  padding: clamp(22px, 2.6vw, 40px);
  max-width: 560px;
  width: 100%;
}

.tunnel-card,
.tunnel-card p,
.tunnel-card h1,
.tunnel-card h2,
.tunnel-card h3,
.tunnel-card li,
.tunnel-card label,
.tunnel-card span {
  text-shadow: 0 1px 14px rgba(10, 10, 9, 0.85);
}

/* The two bare blocks have no veil and no blur at all, so their shadow does
   the entire job and has to be far heavier. */
.tunnel-card.is-hero,
.tunnel-card.is-bare {
  text-shadow: 0 2px 26px rgba(10, 10, 9, 0.92);
}

.tunnel-card.is-hero .hero-sub,
.tunnel-card.is-hero .hero-fine,
.tunnel-card.is-hero .hero-hint,
.tunnel-card.is-bare p {
  text-shadow:
    0 1px 3px rgba(10, 10, 9, 0.95),
    0 2px 22px rgba(10, 10, 9, 0.9);
}

.tunnel-card.is-narrow {
  max-width: 460px;
}

.tunnel-card.is-wide {
  max-width: 660px;
}

.tunnel-card.is-full {
  max-width: 1040px;
  background: var(--veil-strong);
  padding: 0;
}

.tunnel-card.is-accent {
  background: var(--accent);
  max-width: 660px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- hero ---------- */

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 11px;
  margin-bottom: 24px;
}

/* The card is a touch wider than the other ones and the display size is
   capped a step below the canvas's: "TOURNAGE." at 6.2vw overflowed the
   card's padding box on a 1440px screen and spilled onto the bare tunnel. */
/* The hero and the closing call carry NO card in the revised canvas: the
   type sits straight on the corridor, held legible by its own deep shadow.
   That is the whole point of the redesign, the video is not behind a panel of
   frosted glass at the two moments that matter most. */
.tunnel-card.is-hero,
.tunnel-card.is-bare {
  max-width: min(980px, 100%);
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-left: 0;
  padding-right: 0;
}

.tunnel-card.is-bare {
  max-width: 900px;
}

/* Veil strength varies per section in the canvas, from .62 where the copy is
   short to .76 behind the form. One flat value everywhere is what made the
   page read as a stack of identical grey slabs. */
.tunnel-card.is-narrow { background: rgba(10, 10, 9, 0.7); }
.tunnel-card.is-wide { background: rgba(10, 10, 9, 0.62); }
.tunnel-card.is-full { background: rgba(10, 10, 9, 0.7); }
.tunnel-card.is-full.demo-section { background: rgba(10, 10, 9, 0.76); }

/* Wide windows leave a gutter on the right so the copy never runs under the
   depth gauge. */
@media (min-width: 1000px) {
  .tunnel-section {
    padding-right: clamp(72px, 9vw, 130px);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 0 0 22px -0.06em;
}

.hero-title span {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  max-width: 42ch;
  margin: 0 0 16px;
}

.hero-fine {
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 0 26px;
  color: var(--cream-soft-66);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tells the visitor the page itself is the interaction. */
.hero-hint {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft-50);
  margin: 22px 0 0;
  max-width: 46ch;
}

/* The sound control is fixed bottom-right and the hint is the last thing in
   the hero, so on a phone the button lands squarely on top of the sentence
   that explains the corridor. Give the hint room to clear it. */
@media (max-width: 720px) {
  .hero-hint {
    padding-bottom: 68px;
  }
}

/* ---------- headings inside cards ---------- */

.card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0 0 14px -0.055em;
}

.card-title.is-small {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.card-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-soft-66);
  margin: 0 0 22px;
  max-width: 60ch;
}

.card-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-soft-66);
  margin: 20px 0 0;
}

/* ---------- numbered step list (#comment, #produit) ---------- */

.step-list {
  margin: 0;
}

.step-row {
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
}

.step-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.step-row h3 {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-transform: none;
}

.step-row p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(245, 242, 234, 0.75);
  margin: 0;
}

/* ---------- stats strip (inside a full-width card) ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat {
  padding: 26px clamp(16px, 2vw, 26px);
  border-left: 1px solid var(--hairline);
}

.stat:first-child {
  border-left: none;
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-soft-62);
  margin: 0;
}

@media (max-width: 720px) {
  .stat {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .stat:first-child {
    border-top: none;
  }
}

/* ---------- "une idée, trois versions" (#prises) ---------- */

.prises-head {
  padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2.6vw, 36px) 0;
}

.duration-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.duration-picker button {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 18px;
  min-height: 44px;
  cursor: pointer;
  border: 2px solid var(--cream-soft-50);
  background: transparent;
  color: var(--paper);
}

.duration-picker button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.takes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  padding: 0 clamp(20px, 2.6vw, 36px) clamp(22px, 2.4vw, 34px);
}

.take-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.take-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.take-kind {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-soft-66);
}

.take-duration {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-soft-50);
}

.take-frame {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 16;
  background: #0b0b0b;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.take-frame-wash {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.74));
}

.take-frame-wash.wash-1 { background-color: var(--wash-1); }
.take-frame-wash.wash-2 { background-color: var(--wash-2); }
.take-frame-wash.wash-3 { background-color: var(--wash-3); }

.take-frame-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.take-word {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 0 10px;
  word-break: break-word;
  animation: rc-pop 0.2s ease-out;
}

.take-progress-track {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.take-progress-fill {
  display: block;
  height: 4px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.take-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-soft-66);
  margin: 14px 0 0;
  max-width: 32ch;
}

/* ---------- demo funnel (#demo) ---------- */

.demo-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.demo-copy {
  padding: clamp(22px, 2.6vw, 36px);
}

.demo-form-wrap {
  border-left: 1px solid var(--hairline);
  padding: clamp(22px, 2.6vw, 36px);
}

@media (max-width: 760px) {
  .demo-form-wrap {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}

/* Form controls on a dark veil: the shared light-page rules (white field,
   ink border) would punch four white blocks into the tunnel. */
.tunnel-card label {
  color: var(--cream-soft-62);
}

.tunnel-card input[type="text"],
.tunnel-card input[type="email"],
.tunnel-card textarea {
  background: rgba(245, 242, 234, 0.07);
  border-color: var(--cream-soft-42);
  color: var(--paper);
}

.tunnel-card input::placeholder,
.tunnel-card textarea::placeholder {
  color: rgba(245, 242, 234, 0.38);
}

.tunnel-card input[type="color"] {
  background: rgba(245, 242, 234, 0.07);
  border-color: var(--cream-soft-42);
}

.tunnel-card .demo-note,
.tunnel-card .muted-note {
  color: var(--cream-soft-50);
}

.tunnel-card .btn-outline {
  color: var(--paper);
  border-color: var(--paper);
}

.tunnel-card .btn-outline:hover {
  background: var(--paper);
  color: var(--ground);
}

/* ---------- closing CTA ---------- */

.cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 72px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 0 0 24px -0.06em;
  color: var(--accent-ink);
}

.cta-title span {
  display: block;
}

.tunnel-card.is-accent .btn {
  background: var(--paper);
  color: var(--accent);
  border-color: var(--paper);
}

.tunnel-card.is-accent .btn:hover {
  background: var(--ground);
  color: var(--paper);
  border-color: var(--ground);
}

/* ---------- code (developer page reuses these) ---------- */

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--ink-soft-14);
  padding: 0.15em 0.4em;
  overflow-wrap: anywhere;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  padding: 18px;
  margin: 0 0 22px;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- utility pages: pricing / login / suivi / api-keys / import ---------- */

.page-shell {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.auth-shell {
  min-height: calc(100vh - 128px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 420px;
  width: 100%;
}

@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }
}


/* Nav sign-out button: reads as a link, not a primary action. */
.nav-logout {
  display: inline;
  margin: 0;
}

.btn-ghost {
  background: none;
  border: 2px solid transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--accent);
}

/* Draft preview: you cannot pick between three takes you cannot see, so each
   draft card embeds its own 9:16 player (poster frame via the #t fragment). */
.draft-preview {
  border: 2px solid var(--line, rgba(22, 21, 15, 0.2));
}

.draft-preview video {
  display: block;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  margin: 0 auto;
  background: #0b0b0b;
}

.draft-preview {
  position: relative;
  width: 100%;
  max-width: 190px;
  margin: 0 auto 0.6rem;
  background: #0b0b0b;
}

.draft-preview img {
  display: block;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  margin: 0 auto;
  background: #0b0b0b;
}

.draft-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--paper, #f3f2f2);
  background: rgba(20, 18, 16, 0.72);
  color: var(--paper, #f3f2f2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.draft-play:hover { background: var(--accent, #ec3013); }

/* ───────────────────────────────────────────────────────────────────────────
   THE EDITOR (/editeur, /en/editor), src/web/views/editor.njk

   Ported from the founder's canvas "Reclame Editor.dc.html", which links a
   _ds/ folder that does not ship: the tokens below are recovered from the
   canvas markup itself and mapped onto the variables this stylesheet already
   defines, so the editor uses the site's identity rather than a second one.

     canvas #0a0a09  -> --ground        page ground
     canvas #f5f2ea  -> --paper         type on the ground
     canvas #d6ff3f  -> --accent        the acid lime: panel numbers, rules,
                                        the "found" marks, the active state
     canvas #ff4b1f  -> --cta           the coral, and ONLY on the one action
                                        we want pressed
     IBM Plex Mono   -> --font-mono     every small uppercase label
     Archivo 800     -> --font-heading  every panel title

   The two accents do different jobs on this page exactly as they do on the
   landing: lime marks, coral acts. Swapping them flattens the page.
   ─────────────────────────────────────────────────────────────────────────── */

.page-editor {
  background: var(--ground);
  color: var(--paper);
}

/* Every `display:` rule below is written as `:not([hidden])`, because a bare
   `display: grid` outranks the user agent's `[hidden] { display: none }` and
   every step the page starts with folded away (the describe step, the done
   state) would render open on first paint. */
.page-editor [hidden] { display: none; }

/* The secondary actions sit on the dark ground, like .surface-dark's do. */
.page-editor .btn-outline {
  color: var(--paper);
  border-color: var(--cream-soft-28);
}

.page-editor .btn-outline:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.page-editor main {
  background: var(--ground);
}

.editor-bar {
  border-bottom: 1px solid var(--hairline);
  background: var(--ground);
}

.editor-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(14px, 3vw, 32px);
}

.editor-tag,
.editor-allowance {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editor-tag { color: var(--cream-soft-42); margin-right: auto; }
.editor-allowance { color: var(--accent); }

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  /* NOT align-items: start. The brand column is the shortest by far (539px
     against 1428 measured on the live page), and start-aligned panels stopped
     their dividing rules where their content stopped, leaving the bottom two
     thirds of the first column as undifferentiated black. Stretching keeps the
     rules full height so the column reads as a column; align-content on the
     panel keeps the content itself at the top. */
  background: var(--ground);
}

@media (max-width: 1080px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
}

.editor-panel {
  padding: clamp(20px, 2.2vw, 30px);
  border-right: 1px solid var(--hairline);
  display: grid;
  gap: 26px;
  align-content: start;
}

.editor-panel:last-child { border-right: 0; }

@media (max-width: 1080px) {
  .editor-panel {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
}

@media (min-width: 1081px) {
  /* The preview follows you down the other two panels, which is the whole
     point of putting it third: you change a control on the left and watch
     the thing on the right without scrolling back. It stops under the site
     header, which is sticky itself. */
  .editor-aside { position: sticky; top: 66px; }
}

.editor-head { display: grid; gap: 10px; }

.editor-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.editor-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0;
  color: var(--paper);
}

.editor-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-soft-62);
}

.editor-field:not([hidden]) { display: grid; gap: 8px; }

/* The blocks a panel reveals in one go (the brand fields, the action, the
   done state) are plain wrappers, so they need the panel's own rhythm rather
   than none. `:not([hidden])` so that giving them a display does not defeat
   the attribute that hides them. */
#editor-brand-fields:not([hidden]),
#editor-action:not([hidden]),
#editor-done:not([hidden]) { display: grid; gap: 18px; }

.editor-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft-50);
  margin: 0;
}

.editor-sublabel {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft-50);
}

.editor-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-soft-50);
}

.editor-note.is-error { color: var(--paper); border-left: 3px solid var(--cta); padding-left: 10px; }

.editor-link { color: var(--accent); }
.editor-link:hover { color: var(--paper); }

.page-editor input[type="text"],
.page-editor input[type="email"],
.page-editor textarea {
  width: 100%;
  background: rgba(245, 242, 234, 0.05);
  border: 1px solid var(--cream-soft-28);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 0;
}

.page-editor input[type="text"]:focus,
.page-editor input[type="email"]:focus,
.page-editor textarea:focus {
  outline: none;
  border-color: var(--cta);
  background: rgba(255, 75, 31, 0.07);
}

.page-editor input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 0;
  border: 1px solid var(--cream-soft-28);
  background: none;
}

/* the two ways to fill panel 01 */
.editor-modes { display: grid; gap: 8px; }

.editor-mode {
  display: grid;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  padding: 14px 16px;
  border: 1px solid rgba(245, 242, 234, 0.22);
  background: none;
  color: var(--paper);
}

.editor-mode.is-on {
  border-color: var(--accent);
  background: rgba(214, 255, 63, 0.08);
}

.editor-mode-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.editor-mode.is-on .editor-mode-title { color: var(--accent); }

.editor-mode-note { font-size: 13px; line-height: 1.5; color: var(--cream-soft-50); }

/* what the reading of a page came back with */
.editor-found {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.editor-found li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--cream-soft-62);
}

.editor-found-yes,
.editor-found-no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-found-yes { color: var(--accent); }
.editor-found-no { color: var(--cream-soft-42); }

.editor-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-colors label { display: grid; gap: 6px; }

/* one row of pick-exactly-one buttons */
.editor-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.editor-chip {
  cursor: pointer;
  border: 1px solid var(--cream-soft-28);
  background: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 14px;
}

.editor-chip:hover { border-color: var(--accent); color: var(--accent); }

.editor-chip.is-on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.editor-chip.is-quiet {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 12px;
  color: var(--cream-soft-62);
}

.editor-chip-sub { opacity: 0.62; margin-left: 6px; }
.editor-chip.is-on .editor-chip-sub { opacity: 0.7; }

/* the four looks */
.editor-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.editor-style {
  display: grid;
  gap: 7px;
  padding: 6px;
  cursor: pointer;
  border: 1px solid rgba(245, 242, 234, 0.22);
  background: none;
}

.editor-style.is-on { border-color: var(--accent); }

.editor-style-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  background: linear-gradient(180deg, rgba(245, 242, 234, 0.14), rgba(245, 242, 234, 0.04));
}

.editor-style-bar {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 46%;
  height: 8%;
  background: rgba(245, 242, 234, 0.85);
}

[data-style-thumb="bandeau"] .editor-style-bar { left: 0; right: 0; top: 64%; height: 14%; background: var(--accent); }
[data-style-thumb="split"] { background: linear-gradient(180deg, rgba(245, 242, 234, 0.2) 0 58%, rgba(245, 242, 234, 0.04) 58%); }
[data-style-thumb="split"] .editor-style-bar { left: 12%; right: 34%; top: 70%; height: 7%; }
[data-style-thumb="minimal"] { background: var(--accent); }
[data-style-thumb="minimal"] .editor-style-bar { left: 12%; right: 12%; top: 44%; height: 12%; background: rgba(10, 10, 9, 0.85); }

.editor-style-name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream-soft-50);
}

.editor-style.is-on .editor-style-name { color: var(--accent); }

/* the pictures found on the visitor's own page */
.editor-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.editor-photo {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  cursor: pointer;
}

.editor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editor-photo-box { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; }

/* panel 03: the 9:16 screen */
.editor-screen {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--ground);
  outline: 1px solid var(--cream-soft-28);
  outline-offset: -1px;
  justify-self: start;
}

.editor-screen-wash { position: absolute; inset: 0; }

.editor-screen-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(180deg, rgba(245, 242, 234, 0.05) 0 1px, transparent 1px 4px);
}

.editor-screen-tag,
.editor-screen-ratio {
  position: absolute;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft-50);
}

.editor-screen-tag { left: 14px; }
.editor-screen-ratio { right: 14px; }

.editor-screen-word {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 44%;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 38px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  word-break: break-word;
  color: var(--paper);
}

[data-look="bandeau"] .editor-screen-word { top: 64%; font-size: 32px; }
[data-look="split"] .editor-screen-word { top: 62%; text-align: left; font-size: 34px; }
[data-look="minimal"] .editor-screen-word { top: 40%; font-size: 52px; }

.editor-screen-chip { position: absolute; left: 14px; bottom: 44px; width: 44px; height: 16px; }
[data-look="minimal"] .editor-screen-chip { display: none; }

.editor-screen-rail {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 3px;
  background: rgba(245, 242, 234, 0.2);
}

.editor-screen-fill { display: block; height: 3px; width: 0; }
[data-look="minimal"] .editor-screen-rail { display: none; }

/* what this video takes out of the plan, and the summary under it */
.editor-cost { border-top: 2px solid var(--accent); padding-top: 16px; display: grid; gap: 10px; }

.editor-cost-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.editor-cost-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.editor-rows { margin: 0; display: grid; }

.editor-rows > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(245, 242, 234, 0.1);
  font-size: 13.5px;
}

.editor-rows dt { color: var(--cream-soft-62); }

.editor-rows dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cream-soft-42);
}

.editor-meta > div { border-top: 1px solid var(--hairline); font-size: 14px; }
.editor-meta dd { color: var(--paper); }

.editor-done-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
  color: var(--paper);
}

#editor-done { border-top: 2px solid var(--cta); padding-top: 18px; }

/* ── the customer's own photos (panel 02) ─────────────────────────────────
   The grid is deliberately bigger than the "pictures found on your page"
   strip above it: those are a checklist, these are the pictures going into
   the video and the suggested line has to be readable under each one. */
#editor-mine { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 14px; }

#editor-photo-input {
  display: block;
  width: 100%;
  margin: 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-soft-42);
}

#editor-photo-input::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid var(--cream-soft-28);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

#editor-photo-input::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

.editor-mine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.editor-mine-card { margin: 0; }

.editor-mine-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  outline: 1px solid var(--cream-soft-28);
  outline-offset: -1px;
}

.editor-mine-card figcaption { display: block; margin-top: 6px; }

.editor-mine-line {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--cream-soft-42);
}

/* A suggestion is offered, never applied: this is a button, and the lime
   marks it as the thing you MAY press, never the coral, which belongs to the
   one action that starts a video. */
.editor-link-btn {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editor-link-btn:hover { color: var(--paper); }

.editor-mine-refused {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--cta);
}

.editor-mine-refused li { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 0; }
.editor-mine-name { font-family: var(--font-mono); font-size: 11.5px; color: var(--cream-soft-42); }

/* ---------- dashboard: the plans (the only place a customer can pay) ------
   Generic pieces only (.card, .btn, .eyebrow, .muted): this section has to
   look like the rest of the dashboard, not like a landing page that wandered
   in. No colour of its own, so nothing here can drift from the palette. */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.offer-card {
  border: 2px solid var(--ink);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offer-card p { margin: 0; }
.offer-card form { margin-top: auto; }

.offer-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.offer-price .muted {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0;
}

/* ---------- console réseau (/app/reseau) ----------
   The screen that makes the multi-outlet capability usable without an API
   client. Deliberately plain: a head office pastes a spreadsheet here, and
   the only thing that needs to stand out is which campaign is still running. */
.net-count {
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 8px;
  border: 1px solid var(--hairline);
  vertical-align: middle;
}

.net-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.net-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.net-table th,
.net-table td {
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.net-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.net-runs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.net-runs li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
}

.net-run-subject {
  flex: 1 1 340px;
  min-width: 0;
}

.net-run-tally {
  display: flex;
  gap: 8px;
}

.net-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.net-pill.is-done { border-color: currentColor; }
.net-pill.is-failed { color: var(--cta); border-color: currentColor; }

/* The second door at the foot of the editor's brand column: one shop makes a
   video here, a network declines one message across every address. */
.editor-also {
  align-self: end;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: grid;
  gap: 8px;
}

.editor-also h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.editor-also p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-soft-62);
}

/* ---------- agency mode: the brand switcher ----------
   Only rendered from two brands up (layout.njk). Reads as a control, like the
   language switch beside it, never as another nav destination. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.brand-picker { display: flex; align-items: center; }

.brand-picker select {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--cream-soft-42);
  padding: 0.32rem 0.5rem;
  max-width: 190px;
}

.brand-picker select:hover,
.brand-picker select:focus-visible { border-color: var(--accent); }

.brand-picker option { color: var(--ink); background: var(--paper); }

@media (max-width: 760px) {
  .brand-picker select { max-width: 120px; }
}

/* ---------- legal pages (/conditions, /confidentialite) ----------
   A wall of text nobody reads until they need it, so the only job here is to
   make the day they need it bearable: one column, real hierarchy, no cards. */
.legal { max-width: 680px; }
.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}
.legal p { margin: 0 0 12px; line-height: 1.65; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-intro { font-size: 1.05rem; }

.footer-legal { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- the proof trio: one campaign, three towns ---------- */
.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  margin-top: 22px;
}

.trio-cell { margin: 0; display: grid; gap: 8px; }

.trio-cell video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ground-2);
  border-bottom: 3px solid var(--accent);
}

.trio-cell figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft-62);
  text-align: center;
}

@media (max-width: 720px) {
  /* Three side-by-side stays: the comparison IS the argument, and three 9:16
     columns still fit a phone width. Only the gap tightens. */
  .trio-grid { gap: 8px; }
}

/* ---------- the closing card ----------
   It used to share is-bare with the hero: no panel, type held by its own
   shadow. That works at the hero because the corridor opens dark; by the
   closing section the visitor is deep in the wall and the brightest clips sit
   RIGHT behind this text ("il faut un fond derriere ce texte"). So the close
   gets the veil the other cards already wear, a touch stronger, and keeps the
   hero's width so the headline still breathes. */
.tunnel-card.is-closing {
  max-width: 900px;
  background: var(--veil-strong);
  -webkit-backdrop-filter: blur(18px) saturate(0.85);
  backdrop-filter: blur(18px) saturate(0.85);
  text-shadow: 0 2px 26px rgba(10, 10, 9, 0.92);
}


/* The proof card lays its heading and the three videos straight into an
   is-full card, whose padding is 0 because every other is-full card wraps
   its own padded block. This one had none: "LA PREUVE" touched the veil. */
#declinaison .tunnel-card.is-full { padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2.6vw, 36px); }

.offer-card { background: var(--paper); }
.offer-price .muted { color: var(--ink-soft-60); }
.offer-card.is-highlight { box-shadow: inset 0 0 0 2px var(--cta); }

/* ---------- focus: one identity, not the browser's blue ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: var(--paper); }
body:not(.page-tunnel):not(.page-editor) main :focus-visible { outline-color: var(--ink); }
.page-editor input:focus-visible, .page-editor textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* ---------- one header everywhere ----------
   The landing had a 69px translucent mono header and every other page a
   66px opaque Public Sans one: the header jumped 3px and changed typeface
   between / and /editeur. One definition, and the tunnel follows the token. */
:root { --nav-h: 68px; }
.site-header { background: rgba(10, 10, 9, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.site-header .container { height: var(--nav-h); }
.site-nav a { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; }
.site-nav a.btn { font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.tunnel-section { min-height: calc(100vh - var(--nav-h)); scroll-margin-top: var(--nav-h); }
.nav-logout { display: inline; margin: 0; }
.btn-ghost { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

/* Signed-in header: eight items do not fit 375px on one line. */
@media (max-width: 760px) {
  .site-header.is-app .container { flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .site-header.is-app .site-nav { flex-wrap: wrap; row-gap: 6px; width: 100%; }
  .site-header.is-app .brand-picker { width: 100%; }
  .site-header.is-app .brand-picker select { max-width: none; width: 100%; }
}

/* ---------- empty states say what to do next ---------- */
.empty { border: 2px dashed var(--ink-soft-28); padding: 28px; display: grid; gap: 10px; justify-items: start; }
.empty p { margin: 0; color: var(--ink-soft-70); max-width: 48ch; }

/* ---------- rows of controls that must wrap on a phone ---------- */
.form-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.form-row > div { flex: 1 1 200px; }
.form-row input, .form-row select { margin-bottom: 0; }
.dash-header-right { flex-wrap: wrap; }

/* ---------- history: zero radius, tokens instead of inline slate ---------- */
.stepper-dot, .draft-play { border-radius: 0; }
.draft-play:hover { background: var(--accent); color: var(--accent-ink); }
.generation-block { padding: 1rem 0; border-top: 1px solid var(--ink-soft-14); }
.draft-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.draft-card { flex: 1 1 220px; min-width: 200px; border: 2px solid var(--ink-soft-14); padding: 0.75rem; }
.draft-card p { margin: 0 0 0.4rem; }

/* ---------- the 404 is not a white page after a black landing ---------- */
.not-found { max-width: 640px; min-height: calc(100vh - var(--nav-h) - 120px); display: grid; align-content: center; gap: 12px; justify-items: start; }

/* ---------- editor on a phone: four 70px style tiles become two ---------- */
@media (max-width: 480px) {
  .editor-styles { grid-template-columns: repeat(2, 1fr); }
  .editor-style-name { font-size: 10.5px; }
}
.tunnel-card.is-closing .btn { width: 100%; }

.page-narrow { max-width: 720px; }
.back-link { margin-bottom: 1.5rem; }
.card-stack { margin-bottom: 1.5rem; }
.page-medium { max-width: 820px; }
.card-links { margin: 0; }
.muted { color: var(--ink-soft-60); }
.logo-thumb { display: block; max-width: 160px; max-height: 80px; margin: 0 0 10px; padding: 8px; border: 2px solid var(--ink-soft-14); background: var(--ink); }

/* ---------- hearing a voice before choosing it ---------- */
.editor-voices { align-items: center; }
.editor-voice { display: inline-flex; align-items: center; gap: 4px; }
.editor-play, .voice-play {
  font: inherit; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  background: transparent; color: inherit; border: 2px solid currentColor; border-radius: 0;
  padding: 4px 8px; cursor: pointer; line-height: 1;
}
.editor-play { color: var(--accent); }
.editor-play:hover, .voice-play:hover, .editor-play.is-playing, .voice-play.is-playing { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.voice-play { margin-left: 8px; text-transform: none; letter-spacing: 0.04em; vertical-align: middle; }
.editor-voice .editor-chip-sub { display: block; font-size: 9.5px; letter-spacing: 0.06em; text-transform: none; opacity: 0.72; margin-top: 2px; }

/* ---------- the price list ---------- */
.offers { max-width: 1080px; }
.offers > .lead { max-width: 62ch; margin-bottom: 28px; }
.offers .offer-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.offers .offer-card { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--ink); padding: 22px; }
.offers .offer-card h2 { margin-bottom: 4px; }
.offers .offer-price { font-family: var(--font-heading); font-size: 30px; line-height: 1; margin: 0; }
.offers .offer-price .muted { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.offers .offer-videos { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink); margin: 0; }
.offers .offer-who { color: var(--ink-soft-70); margin: 0; min-height: 3.2em; }
.offers .offer-items { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 6px; font-size: 14px; }
.offers .offer-items li { padding-left: 18px; position: relative; }
.offers .offer-items li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 3px; background: var(--accent); }
.offers .offer-card .btn { margin-top: auto; }
.offers .offer-card.is-highlight { box-shadow: 6px 6px 0 var(--accent); }
.offer-fine { margin: 22px 0 32px; font-size: 13px; color: var(--ink-soft-60); max-width: 72ch; }
.offer-not-ready { display: grid; gap: 10px; justify-items: start; }
.offer-not-ready p { margin: 0; }
.offers .offer-tiers { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.offers .offer-tiers li { border-top: 1px solid var(--ink-soft-14); padding-top: 6px; }

/* ======================================================================
   THE APP SKIN (page-app): the signed-in pages and the editor, from the
   founder's two canvases "Reclame Dashboard.dc.html" and "Reclame Editor
   .dc.html". Light ground, white cards with hairlines, one coral action,
   ink chips. The marketing site keeps its dark corridor; this is the tool.
   ====================================================================== */
body.page-app {
  --ap-bg: #F4F6FA; --ap-card: #fff; --ap-line: #dce2ec; --ap-line2: #e9edf4; --ap-ink: #182641;
  --ap-muted: #56647B; --ap-soft: #56647B; --ap-faint: #627087; --ap-cta: #2458D3; --ap-cta-dark: #1945ae;
  --ap-field: #fff; --ap-border: #c7d0df; --ap-select: #E6EDFC;
  background: var(--ap-bg); color: var(--ap-ink); font-size: 15px; line-height: 1.55;
}
body.page-app a { color: var(--ap-cta); text-decoration: none; }
body.page-app a:hover { color: var(--ap-ink); text-decoration: none; }
body.page-app h1, body.page-app h2, body.page-app h3 { font-family: var(--font-body); font-weight: 750; letter-spacing: -0.035em; color: var(--ap-ink); text-transform: none; }
body.page-app h1 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1; margin: 0 0 8px; }
body.page-app h2 { font-size: 20px; line-height: 1.1; margin: 0; }
body.page-app h2::before { display: none; }
body.page-app label, body.page-app .app-field-label, body.page-app .editor-label {
  display: block; font-family: var(--font-body); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ap-ink); margin: 0 0 6px;
}
body.page-app .app-side-label { display: block; font-size: 13px; font-weight: 600; color: var(--ap-faint); margin: 0 0 8px; }
body.page-app .app-opt { color: var(--ap-faint); font-weight: 500; }
body.page-app input[type="text"], body.page-app input[type="email"], body.page-app input[type="number"], body.page-app input[type="url"],
body.page-app textarea, body.page-app select {
  width: 100%; box-sizing: border-box; background: var(--ap-field); border: 1px solid var(--ap-border); border-radius: 2px; color: var(--ap-ink);
  font-family: inherit; font-size: 15px; line-height: 1.5; padding: 12px; margin: 0; outline: none;
}
body.page-app textarea { resize: vertical; }
body.page-app input:focus-visible, body.page-app textarea:focus-visible, body.page-app select:focus-visible { border-color: var(--ap-cta); background: #fff; outline: none; }
body.page-app input::placeholder, body.page-app textarea::placeholder { color: #b5b1a5; }
body.page-app .app-mono, body.page-app code, body.page-app pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
body.page-app .app-note, body.page-app .editor-note { font-size: 13px; line-height: 1.6; color: var(--ap-soft); margin: 7px 0 0; }
body.page-app .app-text { font-size: 15px; line-height: 1.6; color: var(--ap-muted); margin: 0; }
body.page-app .app-text-muted { color: var(--ap-soft); font-size: 14.5px; }
body.page-app .app-fine { font-size: 13px; line-height: 1.7; color: var(--ap-faint); margin: 14px 0 0; }
body.page-app .app-lead { font-size: 15px; line-height: 1.55; color: var(--ap-muted); margin: 0; max-width: 64ch; }
body.page-app .app-eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--ap-faint); margin: 0 0 8px; }
body.page-app .app-eyebrow a { color: var(--ap-faint); }
body.page-app .app-eyebrow a:hover { color: var(--ap-ink); }
body.page-app .banner { border-radius: 2px; border: 1px solid var(--ap-line); background: #fff; padding: 12px 14px; font-size: 14px; }
body.page-app .banner-success { border-color: #2f7a4f; color: #1f5a38; }
body.page-app .banner-error { border-color: var(--ap-cta); color: #8c2a0f; }

/* shell */
.app-shell { display: grid; grid-template-columns: minmax(0, 232px) minmax(0, 1fr); align-items: start; min-height: 100vh; }
.app-side { background: var(--ap-card); border-right: 1px solid var(--ap-line); padding: 20px clamp(14px, 1.6vw, 22px); display: grid; gap: 22px; align-content: start; position: sticky; top: 0; min-height: 100vh; }
.app-side-brand { display: flex; align-items: baseline; gap: 9px; }
body.page-app .app-wordmark { font-family: var(--font-wordmark); font-weight: 800; font-size: 19px; letter-spacing: -0.04em; color: var(--ap-ink); white-space: nowrap; }
.app-lang { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--ap-faint); }
body.page-app .app-cta { display: block; background: var(--ap-cta); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 14.5px; padding: 13px 16px; text-align: center; line-height: 1; border-radius: 2px; }
body.page-app .app-cta:hover { background: var(--ap-cta-dark); color: #fff; }
.app-nav { display: grid; gap: 2px; }
body.page-app .app-nav a { display: block; text-align: left; color: var(--ap-muted); font-size: 14.5px; font-weight: 500; padding: 11px 12px; border-radius: 2px; }
body.page-app .app-nav a:hover { color: var(--ap-ink); background: #f7f6f2; }
body.page-app .app-nav a.is-on { background: var(--ap-select); color: var(--ap-ink); font-weight: 700; }
.app-picker select { font-size: 13.5px; padding: 9px 10px; }
.app-balance { border-top: 1px solid var(--ap-line); padding-top: 16px; }
.app-balance-num { font-family: var(--font-heading); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.04em; margin: 0 0 4px; }
.app-balance-note { font-size: 13px; line-height: 1.5; color: var(--ap-soft); margin: 0 0 12px; }
.app-bar { height: 5px; background: #e9e7df; border-radius: 3px; overflow: hidden; }
.app-bar span { display: block; height: 5px; background: var(--ap-cta); border-radius: 3px; }
.app-logout { margin: 0; }
.app-logout button { text-align: left; cursor: pointer; border: 0; background: none; color: var(--ap-faint); font-size: 13.5px; padding: 0; font-family: inherit; }
.app-logout button:hover { color: var(--ap-ink); }
.app-main { padding: 0 0 48px; display: grid; align-content: start; min-width: 0; }
.app-foot { margin: 0 clamp(16px, 3vw, 40px); padding: 24px 0 0; border-top: 1px solid var(--ap-line); font-size: 13px; line-height: 1.8; color: var(--ap-soft); }
.app-foot p { margin: 0 0 6px; max-width: 80ch; }
.app-foot p + p { color: var(--ap-faint); }
body.page-app .app-foot a { color: var(--ap-soft); text-decoration: underline; text-decoration-color: var(--ap-line); }

/* page header, sections, cards */
.app-header { background: var(--ap-card); border-bottom: 1px solid var(--ap-line); padding: clamp(22px, 2.4vw, 34px) clamp(16px, 3vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: end; }
.app-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.app-actions-start { justify-content: flex-start; margin-top: 18px; }
.app-section { padding: clamp(22px, 2.4vw, 34px) clamp(16px, 3vw, 40px) 0; }
.app-section-tight { padding-top: 18px; }
.app-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.app-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; align-items: start; }
.app-gap-sm { gap: 16px; }
.app-stack { display: grid; gap: 20px; }
.app-stack-sm { display: grid; gap: 16px; align-content: start; }
.app-card { background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 3px; padding: clamp(20px, 2vw, 28px); min-width: 0; }
.app-card.app-grid-2 { gap: clamp(20px, 2.4vw, 36px); }
.app-card > h2 { margin-bottom: 10px; }
.app-card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.app-current { font-size: 13px; font-weight: 600; color: var(--ap-cta); }
.app-step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.app-step-num { font-size: 13px; font-weight: 700; color: var(--ap-cta); }
.app-step-count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ap-faint); }
.app-step-count.is-on { color: var(--ap-cta); }
.app-field { display: grid; }
.app-panel { background: var(--ap-field); border: 1px solid var(--ap-line); border-radius: 2px; padding: 20px; }
.app-preview { font-size: 15.5px; line-height: 1.6; margin: 0 0 18px; }
.app-dashed { border: 1px dashed var(--ap-border); border-radius: 2px; padding: 16px; font-size: 14px; line-height: 1.6; color: var(--ap-soft); margin: 0; }
.app-empty { display: grid; gap: 12px; justify-items: start; border: 1px dashed var(--ap-border); border-radius: 2px; padding: 20px; }
.app-empty p { margin: 0; color: var(--ap-soft); max-width: 56ch; }
.app-empty-line { color: var(--ap-soft); font-size: 14px; line-height: 1.6; border-top: 1px solid var(--ap-line2); padding: 12px 0; }

/* buttons */
body.page-app .app-btn, body.page-app .btn {
  display: inline-block; cursor: pointer; border: 1px solid var(--ap-border); background: #fff; color: var(--ap-ink); font-family: var(--font-body);
  font-size: 14px; font-weight: 600; padding: 11px 15px; border-radius: 2px; line-height: 1.2; text-align: center; text-transform: none; letter-spacing: 0; box-shadow: none;
}
body.page-app .app-btn:hover, body.page-app .btn:hover { border-color: var(--ap-ink); color: var(--ap-ink); background: #fff; transform: none; }
body.page-app .app-btn.is-primary, body.page-app .btn-primary { background: var(--ap-cta); border-color: var(--ap-cta); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 14.5px; padding: 12px 17px; }
body.page-app .app-btn.is-primary:hover, body.page-app .btn-primary:hover { background: var(--ap-cta-dark); border-color: var(--ap-cta-dark); color: #fff; }
body.page-app .btn-primary:disabled { opacity: 0.55; cursor: progress; }
body.page-app .app-btn.is-ink { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; font-weight: 700; }
body.page-app .app-btn.is-ink:hover { background: #000; color: #fff; }
body.page-app .app-btn.is-small { font-size: 13.5px; padding: 9px 12px; }
body.page-app .app-btn.is-block, body.page-app .btn-block { display: block; width: 100%; }
body.page-app .btn-lg { font-size: 15px; padding: 14px 18px; }
body.page-app .app-btn:disabled { background: #e9e7df; border-color: #e9e7df; color: var(--ap-faint); cursor: not-allowed; }
body.page-app .btn-outline { background: #fff; }

/* chips: radios dressed as buttons (forms), and the editor's button chips */
.app-chips { display: flex; gap: 7px; flex-wrap: wrap; }
body.page-app .app-chip { display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer; border: 1px solid var(--ap-border); background: var(--ap-field); color: var(--ap-ink); font-size: 13.5px; font-weight: 600; padding: 10px 13px; border-radius: 2px; margin: 0; line-height: 1.2; }
body.page-app .app-chip input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
body.page-app .app-chip small { font-size: 12px; font-weight: 500; color: var(--ap-faint); }
body.page-app .app-chip:hover { border-color: var(--ap-ink); }
body.page-app .app-chip:has(input:checked) { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
body.page-app .app-chip:has(input:checked) small { color: rgba(255, 255, 255, 0.72); }
body.page-app .app-chip:has(input:focus-visible) { outline: 2px solid var(--ap-cta); outline-offset: 2px; }
.app-voice { display: inline-flex; align-items: center; gap: 4px; }
body.page-app .app-play, body.page-app .editor-play { font: inherit; font-size: 11px; cursor: pointer; border: 1px solid var(--ap-border); background: #fff; color: var(--ap-cta); border-radius: 2px; padding: 8px 9px; line-height: 1; }
body.page-app .app-play:hover, body.page-app .editor-play:hover, body.page-app .app-play.is-playing, body.page-app .editor-play.is-playing { background: var(--ap-cta); border-color: var(--ap-cta); color: #fff; }
.app-palettes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
body.page-app .app-palette { border: 2px solid var(--ap-line); background: #fff; padding: 3px; display: flex; gap: 3px; cursor: pointer; border-radius: 2px; }
body.page-app .app-palette span { width: 22px; height: 22px; display: block; }
body.page-app .app-palette:hover, body.page-app .app-palette.is-on { border-color: var(--ap-ink); }
.app-colors { display: flex; gap: 14px; flex-wrap: wrap; }
body.page-app .app-colors label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ap-soft); margin: 0; }
body.page-app input[type="color"] { width: 44px; height: 30px; padding: 2px; border: 1px solid var(--ap-border); border-radius: 2px; background: #fff; cursor: pointer; }
body.page-app .app-heading-input { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; }
body.page-app .app-drop { display: flex; align-items: center; justify-content: center; min-height: 72px; border: 1px dashed var(--ap-border); border-radius: 2px; background: var(--ap-field); font-size: 13.5px; font-weight: 500; color: var(--ap-faint); cursor: pointer; padding: 12px; text-align: center; margin: 0; }
body.page-app .app-drop input { position: absolute; opacity: 0; width: 0; height: 0; }
body.page-app .app-drop:hover { border-color: var(--ap-ink); color: var(--ap-ink); }
body.page-app .app-logo { display: block; max-width: 160px; max-height: 80px; padding: 8px; border: 1px solid var(--ap-line); background: #171614; margin: 0 0 10px; }

/* rows */
.app-rows { display: grid; }
.app-row { border-top: 1px solid #e9e7df; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; font-size: 14px; }
.app-row:last-child { border-bottom: 1px solid #e9e7df; }
.app-row span { color: var(--ap-muted); }
.app-row b { font-weight: 700; }
.app-hot { color: var(--ap-cta); }
.app-run { border-top: 1px solid var(--ap-line2); padding: 12px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.app-run > a:first-child, .app-run > span:first-child { flex: 1 1 200px; font-weight: 600; color: var(--ap-ink); }
.app-outlet { border-top: 1px solid var(--ap-line2); padding: 11px 0; display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.app-outlet-ref { font-size: 12px; color: var(--ap-cta); }
.app-outlet-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; margin: 0 0 3px; }
.app-outlet-detail { font-size: 13px; line-height: 1.5; color: var(--ap-soft); margin: 0; }
.app-key { border-top: 1px solid var(--ap-line2); padding: 13px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.app-key-name { font-size: 13.5px; margin: 0 0 4px; }
body.page-app .app-code { font-size: 12.5px; line-height: 1.7; background: var(--ap-field); border: 1px solid var(--ap-line); border-radius: 2px; color: var(--ap-ink); padding: 16px; margin: 0; overflow-x: auto; white-space: pre; display: block; }
body.page-app .app-code-inline { white-space: pre-wrap; word-break: break-all; font-size: 13px; }
.app-list-links { list-style: none; padding: 0; margin: 0; }
body.page-app .app-list-links a { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--ap-line2); padding: 12px 0; font-size: 14.5px; line-height: 1.5; color: var(--ap-ink); }
body.page-app .app-list-links a span { color: #b5b1a5; }
body.page-app .app-list-links a:hover { color: var(--ap-cta); }
.app-tokens { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
body.page-app .app-token { border: 1px solid var(--ap-border); background: var(--ap-field); color: var(--ap-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 7px 10px; cursor: pointer; border-radius: 2px; }
body.page-app .app-token:hover { border-color: var(--ap-cta); color: var(--ap-cta); }

/* history */
.app-gen-subject { font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
body.page-app .draft-grid { display: grid; gap: 0; margin: 0; }
body.page-app .draft-card { border: 0; border-top: 1px solid var(--ap-line2); padding: 12px 0; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; min-width: 0; }
body.page-app .draft-card p { margin: 0; }
.app-take-thumb { width: 44px; }
.app-take-blank { display: block; aspect-ratio: 9 / 16; background: linear-gradient(180deg, #2a2116, #16211f); border-radius: 2px; }
body.page-app .draft-preview { position: relative; aspect-ratio: 9 / 16; border-radius: 2px; overflow: hidden; background: #171614; }
body.page-app .draft-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.page-app .draft-preview.is-playing { grid-column: 1 / -1; width: min(100%, 280px); aspect-ratio: auto; }
body.page-app .draft-preview video { width: 100%; display: block; }
body.page-app .draft-play { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.25); color: #fff; border: 0; cursor: pointer; font-size: 14px; }
.app-take-label { font-weight: 600; font-size: 15px; line-height: 1.3; }
.app-take-state { margin-top: 3px; }
.app-take-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
body.page-app .badge { border: 0; padding: 0; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ap-faint); background: none; gap: 7px; }
body.page-app .badge-running { color: var(--ap-cta); }
body.page-app .badge-done { color: #1f5a38; }
body.page-app .badge-failed { color: #8c2a0f; }
body.page-app .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: rc-pulse 1.1s ease-in-out infinite; }
@keyframes rc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
body.page-app .net-pill { border: 1px solid var(--ap-line); border-radius: 2px; background: #fff; color: var(--ap-faint); font-size: 12.5px; font-weight: 600; padding: 4px 8px; }
body.page-app .net-pill.is-done { color: #1f5a38; border-color: #2f7a4f; }
body.page-app .net-pill.is-failed { color: #8c2a0f; border-color: var(--ap-cta); }

/* plans */
body.page-app .plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
body.page-app .plan-card { background: #fff; border: 1px solid var(--ap-line); border-radius: 3px; padding: 20px; display: grid; gap: 9px; align-content: start; box-shadow: none; }
body.page-app .plan-card.is-hot { border: 2px solid var(--ap-ink); }
body.page-app .plan-name { font-size: 13px; font-weight: 700; margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body.page-app .plan-badge { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-cta); }
body.page-app .plan-price { font-family: var(--font-body); font-weight: 750; font-size: 27px; line-height: 1; letter-spacing: -0.04em; margin: 0; }
body.page-app .plan-price .muted { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ap-faint); }
body.page-app .plan-note { font-size: 13.5px; line-height: 1.5; color: var(--ap-soft); margin: 0; }
body.page-app .plan-card form { margin-top: 4px; }
body.page-app .plan-card .app-btn { width: 100%; }

/* the editor, light */
.edit-bar { background: #fff; border-bottom: 1px solid var(--ap-line); display: flex; align-items: center; gap: clamp(8px, 1.6vw, 18px); padding: 0 clamp(14px, 3vw, 32px); height: 60px; position: sticky; top: 0; z-index: 10; }
.edit-bar-title { margin: 0 auto 0 0; font-size: 13.5px; font-weight: 600; color: var(--ap-faint); white-space: nowrap; overflow: hidden; }
.edit-bar-allowance { font-size: 13px; font-weight: 600; color: var(--ap-soft); white-space: nowrap; }
body.page-app .edit-bar .lang-switch { border: 1px solid var(--ap-border); color: var(--ap-ink); font-size: 11px; padding: 6px 8px; border-radius: 2px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 18px; padding: clamp(16px, 2vw, 26px) clamp(14px, 3vw, 32px) 40px; align-items: start; }
.edit-col, .edit-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.edit-side { position: sticky; top: 78px; }
.edit-panel { display: grid; gap: 16px; padding: clamp(18px, 2vw, 26px); }
.edit-panel .app-step-head { margin-bottom: 0; }
.edit-panel .app-step-head + .app-note { margin-top: -8px; }
.edit-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: start; }
.edit-inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.edit-inline .editor-note { grid-column: 1 / -1; }
.edit-brand summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.edit-brand summary::-webkit-details-marker { display: none; }
.edit-brand summary .editor-label { margin: 0; }
.edit-brand-line { font-size: 13.5px; color: var(--ap-soft); }
.edit-brand-toggle { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ap-cta); }
.edit-brand[open] .edit-brand-toggle { color: var(--ap-faint); }
.edit-also { border-top: 1px solid var(--ap-line2); padding-top: 12px; }
body.page-app .editor-field { display: grid; gap: 0; }
body.page-app .editor-field > * + * { margin-top: 8px; }
body.page-app .editor-sublabel { display: block; font-size: 12.5px; font-weight: 500; color: var(--ap-faint); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
body.page-app .editor-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 0; }
body.page-app .editor-chip { cursor: pointer; border: 1px solid var(--ap-border); background: var(--ap-field); color: var(--ap-ink); font-family: var(--font-body); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 10px 13px; border-radius: 2px; line-height: 1.2; display: inline-flex; align-items: baseline; gap: 6px; }
body.page-app .editor-chip:hover { border-color: var(--ap-ink); color: var(--ap-ink); }
body.page-app .editor-chip.is-on { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
body.page-app .editor-chip.is-quiet { font-weight: 500; font-size: 13px; padding: 8px 11px; }
body.page-app .editor-chip.is-quiet:hover { border-color: var(--ap-cta); color: var(--ap-cta); }
body.page-app .editor-chip-sub { display: inline; font-size: 12px; font-weight: 500; color: var(--ap-faint); margin: 0; letter-spacing: 0; opacity: 1; }
body.page-app .editor-chip.is-on .editor-chip-sub { color: rgba(255, 255, 255, 0.72); }
body.page-app .editor-voice { display: inline-flex; align-items: center; gap: 4px; }
body.page-app .editor-modes { display: grid; gap: 8px; }
body.page-app .editor-mode { text-align: left; cursor: pointer; border: 1px solid var(--ap-border); background: var(--ap-field); color: var(--ap-ink); border-radius: 2px; padding: 12px 14px; display: grid; gap: 3px; font-family: inherit; }
body.page-app .editor-mode.is-on { border-color: var(--ap-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ap-ink); }
body.page-app .editor-mode-title { font-size: 14.5px; font-weight: 700; }
body.page-app .editor-mode-note { font-size: 13px; color: var(--ap-soft); line-height: 1.5; }
body.page-app .editor-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 96px)); gap: 10px; }
body.page-app .editor-style { cursor: pointer; border: 2px solid var(--ap-line); background: #fff; padding: 5px; display: grid; gap: 6px; border-radius: 2px; }
body.page-app .editor-style.is-on { border-color: var(--ap-ink); }
body.page-app .editor-style-name { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ap-soft); text-align: center; }
body.page-app .editor-style.is-on .editor-style-name { color: var(--ap-ink); }
body.page-app .editor-style-thumb { border-radius: 1px; }
body.page-app .editor-colors { display: flex; gap: 14px; flex-wrap: wrap; }
body.page-app .editor-colors label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
body.page-app .editor-found { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
body.page-app .editor-found li { font-size: 13.5px; color: var(--ap-soft); border-top: 1px solid var(--ap-line2); padding: 8px 0; }
body.page-app .editor-link, body.page-app .editor-link-btn { color: var(--ap-cta); background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
body.page-app .editor-screen { width: 100%; max-width: 240px; justify-self: start; border-radius: 2px; }
body.page-app .editor-rows { margin: 0; }
body.page-app .editor-rows div { border-top: 1px solid var(--ap-line2); display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; font-size: 14px; }
body.page-app .editor-rows div:last-child { border-bottom: 1px solid var(--ap-line2); }
body.page-app .editor-rows dt { color: var(--ap-muted); font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 14px; }
body.page-app .editor-rows dd { margin: 0; font-weight: 600; color: var(--ap-ink); }
body.page-app .editor-cost { display: grid; gap: 6px; }
body.page-app .editor-cost-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body.page-app .editor-cost-value { font-family: var(--font-body); font-weight: 750; font-size: 24px; line-height: 1; letter-spacing: -0.04em; color: var(--ap-cta); }
body.page-app #editor-action { display: grid; gap: 10px; }
body.page-app .editor-done-title { font-family: var(--font-heading); font-weight: 800; font-size: 18px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 8px; }
body.page-app #editor-done { border-top: 2px solid var(--ap-ink); padding-top: 14px; }
body.page-app .editor-mine-grid, body.page-app .editor-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
body.page-app .editor-photo-box { border: 1px solid var(--ap-line); border-radius: 2px; overflow: hidden; background: var(--ap-field); }
body.page-app .editor-mine-refused { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #8c2a0f; }
body.page-app input[type="file"] { font-size: 13px; }

@media (max-width: 1000px) {
  .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .edit-side { position: static; }
}
@media (max-width: 940px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid var(--ap-line); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start; }
  .app-nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .app-header { grid-template-columns: minmax(0, 1fr); }
  .app-actions { justify-content: flex-start; }
}
.app-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.app-pick { padding: 12px; display: grid; gap: 10px; text-align: center; }
.app-pick img { max-height: 120px; max-width: 100%; margin: 0 auto; object-fit: contain; }
body.page-app .editor-sublabel, body.page-app .editor-rows dd, body.page-app .editor-meta dd { font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
body.page-app .editor-rows dd { font-size: 14px; }
body.page-app .editor-mode-title, body.page-app .editor-mode.is-on .editor-mode-title { color: var(--ap-ink); }
body.page-app .editor-mode.is-on .editor-mode-note { color: var(--ap-soft); }
body.page-app .editor-cost { border: 0; padding: 0; background: none; }
body.page-app .edit-cost { gap: 16px; }

/* The preview is drawn by the film compositor, with its actual fonts and assets. */
.editor-screen-artwork { background: #eee; aspect-ratio: 9 / 16; overflow: hidden; }
.editor-screen-artwork img { display: block; width: 100%; height: 100%; object-fit: contain; }
.editor-styles { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.editor-style-thumb[data-style-thumb^="spot"] { background: #f5f5f5; }
.editor-style-thumb[data-style-thumb="spot-cinema"] { background: #171717; }
.editor-style-thumb[data-style-thumb="spot-editorial"] .editor-style-bar { top: 24%; height: 43%; width: 76%; left: 12%; background: #bcb8b3; }
.editor-style-thumb[data-style-thumb="spot-catalogue"] .editor-style-bar { top: 48%; height: 32%; background: #cecece; }
.editor-style-thumb[data-style-thumb="spot-campaign"] .editor-style-bar { top: 25%; height: 60%; background: #d9401a; }

/* Studio identity: shared navigation, pages and workspace. */
.brand-mark { width: 31px; height: 34px; flex: 0 0 auto; }
a.wordmark, body.page-app a.app-wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-wordmark); font-size: 25px; font-weight: 700; letter-spacing: -.055em; text-transform: none; line-height: 1; color: var(--ink); }
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .container { max-width: 1440px; min-height: 84px; gap: 28px; }
.site-nav { gap: 24px; }
.site-header .site-nav a { color: var(--ink); font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.site-header .site-nav a:hover { color: var(--cta); }
.site-header .site-nav a.btn { color: #fff; padding: 12px 18px; }
.site-header .lang-switch, .edit-bar .lang-switch { border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; }
.nav-menu-button { display: none; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 1000; background: #fff; color: var(--ink); padding: 12px 20px; border: 2px solid var(--cta); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.btn { border-width: 1px; border-radius: var(--radius-btn); font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: 0; box-shadow: none; }
.btn-primary, .site-header a.btn-primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-primary:hover, .site-header a.btn-primary:hover { background: var(--cta-600); color: #fff; transform: none; }
.btn-outline { border-color: #c7d0df; background: #fff; color: var(--ink); }
.btn-outline:hover { background: #e6edfc; color: var(--ink); border-color: var(--cta); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #2458d3; outline-offset: 4px; }
.card { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
input, select, textarea { border-width: 1px; border-radius: 8px; }
.site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; padding: 32px 0; }
.site-footer a { color: var(--ink); }
.surface-dark a { color: #c1d4ff; }
.surface-dark a.btn-primary { color: #fff; }
.auth-shell { padding: 80px 20px; min-height: 68vh; display: grid; place-items: center; }
.auth-card { width: min(100%, 460px); padding: 40px; background: #fff; }
.auth-card h1 { font-size: 36px; margin-top: 14px; }
.auth-card .lead { font-size: 15px; }
.auth-card input { margin-bottom: 18px; }
.auth-card .btn { min-height: 48px; }
.offers.container { padding: 64px clamp(18px, 4vw, 40px) 72px; }
.offers > h1 { max-width: 830px; font-size: clamp(32px, 4vw, 56px); text-transform: none; }
.offer-paths { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 26px 0; }
.offer-paths a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--cta); font: 600 13px/1.5 var(--font-body); text-decoration: none; }
.offer-paths a:hover { text-decoration: underline; }
.offers .offer-card { scroll-margin-top: 105px; }
.film-native-player { position: relative; }
.film-poster-play { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; width: max-content; max-width: calc(100% - 24px); border: 1px solid #ffffff55; border-radius: 6px; padding: 10px 15px; background: #fff; color: var(--ink); font: 600 12px/1.5 var(--font-body); cursor: pointer; }
.film-poster-play[hidden] { display: none; }
.film-poster-play:hover { background: #eaf0ff; }
.offers .offer-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 28px; box-shadow: var(--shadow-card); }
.offers .offer-card.is-highlight { background: #fff; border: 2px solid var(--cta); }
.offers .offer-card h2 { font-size: 24px; text-transform: none; }
.offers .offer-price strong { color: var(--ink); }
.offers .offer-card .btn { margin-top: auto; }
.offers .offer-card { display: flex; flex-direction: column; }
.offers .offer-not-ready { background: #e6edfc; border: 0; padding: 32px; }
.page-app .app-card, .page-app .app-panel { border-radius: 14px; }
body.page-app .app-btn, body.page-app .btn, body.page-app .app-cta { border-radius: 8px; font-family: var(--font-body); font-weight: 700; }
body.page-app input[type="text"], body.page-app input[type="email"], body.page-app input[type="number"], body.page-app input[type="url"], body.page-app select, body.page-app textarea { border-radius: 8px; }
body.page-app input::placeholder, body.page-app textarea::placeholder { color: #66758c; }
body.page-app input:focus-visible, body.page-app textarea:focus-visible, body.page-app select:focus-visible { outline: 2px solid var(--ap-cta); outline-offset: 2px; }
body.page-app .editor-chip, body.page-app .app-chip { border-radius: 7px; }
body.page-app .app-nav a { border-radius: 7px; }
body.page-app .app-nav a:hover { background: var(--ap-select); }
body.page-app .app-play, body.page-app .editor-play { border-radius: 6px; min-width: 36px; min-height: 36px; }
body.page-app .banner-error { border-color: var(--danger); color: var(--danger); }
.app-side-brand { align-items: center; justify-content: space-between; gap: 6px; }
body.page-app .app-side a.app-wordmark { font-size: 21px; gap: 6px; }
.app-side { min-width: 0; }
.app-side .brand-mark { width: 26px; height: 29px; }
.edit-bar { min-height: 76px; }
.edit-col { min-width: 0; }
.edit-grid { gap: 24px; }
.app-header, .app-grid-2, .app-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* The homepage signature is three complete films, each with its own space. */
.page-studio { background: #fff; }
.page-studio .container { max-width: 1360px; padding-left: clamp(22px, 4vw, 64px); padding-right: clamp(22px, 4vw, 64px); }
.studio-hero { min-height: 660px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 48px; padding-top: 74px; padding-bottom: 76px; }
.studio-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 600 12px/1.5 var(--font-body); letter-spacing: .025em; margin: 0 0 24px; }
.studio-dot { width: 7px; height: 7px; background: var(--cta); border-radius: 50%; }
.studio-intro h1 { font-size: clamp(44px, 4.5vw, 68px); line-height: 1.04; letter-spacing: -.058em; font-weight: 700; max-width: 630px; margin: 0 0 25px; text-transform: none; }
.studio-intro h1 > span { display: block; color: var(--cta); }
.studio-lead { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 47ch; margin-bottom: 28px; }
.studio-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.studio-actions .btn, .studio-closing .btn { padding: 16px 23px; font-size: 14px; }
.studio-actions .btn span, .studio-closing .btn span, .studio-agency .btn span { margin-left: 22px; }
.studio-text-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.studio-text-link span { margin-left: 9px; }
.studio-text-link:hover { color: var(--cta); }
.studio-fine { color: var(--muted); font-size: 11px; margin: 18px 0 0; line-height: 1.7; }
.studio-reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: center; padding: 10px 0 26px; position: relative; }
.reel-frame { display: block; border-radius: 12px; text-decoration: none; overflow: hidden; box-shadow: 0 22px 45px -18px rgba(24,38,65,.3); background: var(--paper); position: relative; outline-offset: 5px; }
.reel-frame img { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; }
.reel-frame span { display: block; font-size: 10px; font-weight: 600; color: var(--muted); padding: 11px 9px; background: #fff; text-align: center; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
.reel-frame-one { transform: translateY(23px) rotate(-5deg); }
.reel-frame-two { transform: translateY(-21px); z-index: 1; }
.reel-frame-three { transform: translateY(39px) rotate(5deg); }
.studio-reel-canvas { position: absolute; left: -40px; top: -60px; pointer-events: none; z-index: 2; filter: drop-shadow(0 18px 18px rgba(24,38,65,.14)); }
.has-three-reel .reel-frame { background: transparent; box-shadow: none; }
.has-three-reel .reel-frame img, .has-three-reel .reel-frame span { opacity: 0; }
.has-three-reel .reel-frame:focus-visible { z-index: 3; }
.reel-caption { grid-column: 1/-1; text-align: center; margin: 46px 0 0; font-size: 11px; color: var(--muted); }
.reel-caption span { color: var(--cta); font-size: 19px; margin-right: 7px; }
.studio-formats { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.studio-formats p { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; }
.studio-formats p span { margin: 0 22px; color: #8b98ab; }
.studio-section { padding-top: 95px; padding-bottom: 95px; scroll-margin-top: 100px; }
.studio-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.studio-section h2, .studio-process h2, .studio-agency h2, .studio-closing h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; text-transform: none; white-space: pre-line; margin: 0; }
.studio-section-head .studio-eyebrow { margin-bottom: 12px; }
.studio-section-head > p { max-width: 34ch; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.studio-films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.studio-film { margin: 0; min-width: 0; scroll-margin-top: 105px; }
.studio-film-screen { border-radius: 14px; overflow: hidden; background: #e9edf4; padding: 0; }
.studio-film:nth-child(2) .studio-film-screen { background: #f2efe8; }
.studio-film:nth-child(3) .studio-film-screen { background: #eaf0ed; }
.studio-film video { display: block; width: 100%; height: auto; aspect-ratio: 9/16; border-radius: 4px; box-shadow: 0 8px 24px rgba(24,38,65,.1); }
.studio-film figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 19px 0 0; }
.studio-film h3 { font: 700 14px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; margin: 0 0 3px; }
.studio-film figcaption p, .studio-film figcaption > span { font-size: 11px; color: var(--muted); margin: 0; }
.studio-film figcaption > span { white-space: nowrap; margin-top: 2px; }
.studio-process { background: var(--paper); padding: 76px 0; }
.studio-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px; }
.studio-step-number { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c1cee5; border-radius: 50%; font-size: 12px; color: var(--cta); margin: 12px 0 22px; }
.studio-steps h3 { font-size: 23px; font-weight: 600; text-transform: none; }
.studio-steps p { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 0; }
.studio-brand-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.studio-brand-art { border-radius: 18px; background: var(--ground); color: #fff; padding: 36px; transform: rotate(-2deg); }
.brand-art-label { font-size: 11px; color: #c1cee5; }
.brand-art-word { font-family: var(--font-heading); font-size: clamp(38px, 4.4vw, 66px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; white-space: pre-line; margin: 34px 0; }
.brand-art-word span { font: 500 12px var(--font-body); vertical-align: top; margin-left: 6px; }
.brand-art-colors { display: flex; gap: 8px; }
.brand-art-colors i { width: 36px; height: 36px; border-radius: 50%; background: #2458d3; border: 2px solid rgba(255,255,255,.2); }
.brand-art-colors i:nth-child(2) { background: #cbdcfe; }
.brand-art-colors i:nth-child(3) { background: #fff; }
.brand-art-colors i:nth-child(4) { background: #647a9b; }
.brand-art-foot { border-top: 1px solid #435371; display: flex; justify-content: space-between; align-items: center; margin-top: 38px; padding-top: 22px; font-size: 10px; color: #c1cee5; }
.studio-brand-copy .studio-lead { font-size: 14px; margin: 20px 0; }
.studio-checks { padding: 0; list-style: none; margin: 0 0 30px; }
.studio-checks li { font-size: 12px; margin-bottom: 13px; padding-left: 22px; position: relative; }
.studio-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--cta); }
.studio-agency { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; background: #e6edfc; border-radius: 20px; padding-top: 58px; padding-bottom: 58px; width: calc(100% - 80px); }
.studio-agency h2 { max-width: 520px; }
.studio-agency p:not(.studio-eyebrow) { max-width: 56ch; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 20px 0; }
.studio-agency-list { display: grid; align-content: center; }
.studio-agency-list p { padding: 18px 0; border-bottom: 1px solid #bfcee9; }
.studio-agency-list p span { color: var(--cta); margin-right: 18px; font-size: 22px; }
.studio-faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; }
.studio-faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.studio-faq details:first-child { border-top: 1px solid var(--line); }
.studio-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.studio-faq summary::-webkit-details-marker { display: none; }
.studio-faq summary span { color: var(--cta); font-size: 22px; font-weight: 400; }
.studio-faq details[open] summary span { transform: rotate(45deg); }
.studio-faq details p { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.studio-closing { text-align: center; padding-top: 62px; padding-bottom: 86px; border-top: 1px solid var(--line); }
.studio-closing .studio-eyebrow { justify-content: center; }
.studio-closing h2 { font-size: clamp(38px, 4vw, 58px); margin-bottom: 28px; }
@media (max-width: 1150px) {
  .site-header .site-nav { gap: 16px; }
  .site-header .nav-anchor { display: none; }
  .studio-hero { gap: 35px; min-height: 600px; }
  .studio-film-screen { padding: 0; }
  .studio-brand-section { gap: 55px; }
}
@media (max-width: 800px) {
  .site-header .container { min-height: 72px; position: relative; justify-content: space-between; }
  .nav-menu-button { display: inline-flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: 600 13px var(--font-body); background: #fff; color: var(--ink); }
  .site-header .site-nav { display: none; }
  .site-header .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: absolute; top: 100%; left: 16px; right: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 18px 40px rgba(24,38,65,.15); z-index: 100; }
  .site-header .site-nav.is-open a { display: block; padding: 11px 12px; }
  .site-header .site-nav.is-open .lang-switch { align-self: flex-start; }
  .studio-hero { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 40px; gap: 46px; }
  .studio-intro h1 { max-width: 650px; font-size: clamp(42px, 7vw, 64px); }
  .studio-lead { font-size: 15px; max-width: 52ch; }
  .studio-reel { width: min(100%, 580px); margin: 0 auto; padding: 0 10px; }
  .reel-caption { margin-top: 32px; }
  .studio-formats { flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; gap: 12px; }
  .studio-formats p { font-size: 11px; }
  .studio-formats p span { margin: 0 10px; }
  .studio-formats-end { display: none; }
  .studio-section { padding-top: 60px; padding-bottom: 60px; }
  .studio-section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .studio-section-head > p { max-width: 50ch; }
  .studio-films { gap: 16px; }
  .studio-film-screen { padding: 0; }
  .studio-film figcaption { display: block; }
  .studio-film figcaption > span { display: block; margin-top: 6px; }
  .studio-process { padding: 55px 0; }
  .studio-steps { gap: 26px; }
  .studio-steps h3 { font-size: 20px; }
  .studio-brand-section { gap: 36px; }
  .studio-brand-art { padding: 24px; }
  .studio-agency { width: calc(100% - 32px); gap: 35px; }
  .studio-faq { gap: 35px; }
}
@media (max-width: 540px) {
  a.wordmark, body.page-app a.app-wordmark { font-size: 23px; }
  .brand-mark { width: 27px; height: 30px; }
  .studio-hero { padding-top: 34px; gap: 32px; }
  .studio-intro h1 { font-size: 45px; }
  .studio-eyebrow { margin-bottom: 18px; font-size: 11px; }
  .studio-actions { gap: 19px; }
  .studio-actions .btn { padding: 15px 17px; }
  .studio-text-link { font-size: 12px; }
  .reel-frame span { font-size: 8px; padding: 8px 2px; }
  .studio-reel { gap: 9px; padding: 12px 3px; }
  .reel-frame { border-radius: 8px; }
  .reel-caption { font-size: 10px; margin-top: 26px; }
  .studio-formats { justify-content: center; text-align: center; }
  .studio-formats > span { width: 100%; }
  .studio-films { grid-template-columns: 1fr; gap: 34px; }
  .studio-film-screen { padding: 0; }
  .studio-film figcaption { display: flex; }
  .studio-film h3 { font-size: 14px; }
  .studio-steps { grid-template-columns: 1fr; gap: 26px; }
  .studio-steps article { padding-top: 14px; border-top: 1px solid var(--line); }
  .studio-step-number { margin: 0 0 16px; }
  .studio-brand-section, .studio-agency, .studio-faq { grid-template-columns: 1fr; }
  .studio-brand-art { margin: 0 6px; }
  .brand-art-word { font-size: 52px; }
  .studio-agency-list { gap: 0; }
  .studio-agency-list p { margin: 0 !important; }
  .studio-closing { padding-top: 46px; padding-bottom: 55px; }
  .auth-shell { padding: 35px 16px; }
  .auth-card { padding: 28px 24px; }
  .edit-bar { flex-wrap: wrap; gap: 10px; }
  .edit-bar-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.editor-catalogue { width: 100%; padding-top: 6px; }
.editor-catalogue summary { cursor: pointer; font-size: 12px; color: var(--ap-cta); padding: 7px 0; }
.editor-catalogue-items { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
body.page-app h2, body.page-app h3 { font-family: var(--font-body); font-weight: 750; letter-spacing: -.025em; }
body.page-app .edit-cost-num, body.page-app .app-balance-num { font-family: var(--font-body); letter-spacing: -.04em; }
body.page-app .app-wordmark, a.wordmark { font-weight: 700; }

/* Component layout must never override the state controlled by the interface. */
[hidden] { display: none !important; }

/* Links in running text remain identifiable without relying on colour. */
body.page-app .app-note a, body.page-app .app-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The film's progress and sign-in keep the studio identity, with a quiet workspace. */
.local-preview-notice { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; background: var(--primary-soft); color: var(--ink); padding: 8px 20px; font-size: 11px; line-height: 1.7; }
.local-preview-notice a { font-weight: 700; color: var(--accent-600); }
.page-suivi, .page-login { background: var(--paper); }
.page-suivi main, .page-login main { min-height: calc(100svh - 220px); }
.page-suivi .nav-anchor, .page-suivi .nav-offers,
.page-login .nav-anchor, .page-login .nav-offers { display: none; }
.suivi-shell { width: min(1120px, 100%); margin: 0 auto; padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.suivi-content { min-width: 0; }
.suivi-content > .eyebrow { margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.suivi-state { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; margin-bottom: 16px; background: var(--primary-soft); color: var(--accent-600); font-size: 12px; font-weight: 700; border-radius: 6px; }
.suivi-state > span:first-child { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.suivi-heading h1 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.07; letter-spacing: -.045em; max-width: 12ch; margin-bottom: 18px; }
.suivi-lead { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 42ch; margin: 0; }
.suivi-brief { margin: 28px 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; }
.suivi-caption { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.suivi-brief p { font-weight: 600; font-size: 17px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.suivi-steps { list-style: none; margin: 0 0 26px; padding: 0; }
.suivi-steps li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding-bottom: 23px; color: var(--muted); }
.suivi-steps li:last-child { padding-bottom: 0; }
.suivi-steps li:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: var(--line); top: 34px; bottom: 4px; left: 14px; }
.suivi-step-dot { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; font-size: 12px; font-weight: 700; }
.suivi-steps .is-done .suivi-step-dot { background: var(--ink); color: white; border-color: var(--ink); }
.suivi-steps .is-active .suivi-step-dot { border-color: var(--accent); color: var(--accent); background: var(--primary-soft); box-shadow: 0 0 0 4px var(--primary-soft); }
.suivi-steps .is-error .suivi-step-dot { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.suivi-step-title { display: block; font-size: 14px; font-weight: 700; line-height: 30px; }
.suivi-steps .is-done .suivi-step-title { color: var(--ink); }
.suivi-steps .is-active .suivi-step-title { color: var(--accent); }
.suivi-steps p { font-size: 12px; margin: 2px 0 0; line-height: 1.5; }
.suivi-mail { border-top: 1px solid var(--line); padding-top: 20px; display: flex; align-items: flex-start; gap: 12px; }
.suivi-mail svg { flex: 0 0 auto; margin-top: 2px; color: var(--muted); }
.suivi-mail strong { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.suivi-mail p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.suivi-screen { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 48px rgba(24,38,65,.055); }
.suivi-screen-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.suivi-ratio { font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.suivi-projection { aspect-ratio: 9/16; position: relative; isolation: isolate; background: var(--ground); overflow: hidden; border-radius: 10px; }
.suivi-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 32px; color: var(--paper); }
.suivi-frame-corners { position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 2px; }
.suivi-film-mark { width: 66px; height: 66px; color: var(--paper); margin-bottom: 24px; }
.suivi-film-mark .brand-mark { width: 100%; height: 100%; }
.suivi-placeholder > p { font-size: 12px; line-height: 1.6; color: var(--cream-soft-62); text-align: center; max-width: 19ch; margin: 0; }
.suivi-film-brand { position: absolute; bottom: 53px; left: 36px; right: 36px; text-align: center; font-weight: 600; font-size: 10px; letter-spacing: .09em; color: var(--cream-soft-62); overflow-wrap: anywhere; }
.suivi-film-line { position: absolute; top: 54px; left: 44px; right: 44px; display: flex; gap: 5px; }
.suivi-film-line i { display: block; height: 2px; background: rgba(255,255,255,.2); flex: 1; }
.suivi-film-line i:first-child { background: var(--cream-soft-62); }
.suivi-shell[data-status="running"] .suivi-film-line i:nth-child(2) { animation: rc-pulse 2s ease-in-out infinite; background: var(--cream-soft-62); }
.suivi-shell[data-status="done"] .suivi-state { color: var(--success); background: var(--success-soft); }
.suivi-shell[data-status="failed"] .suivi-state { color: var(--danger); background: var(--danger-soft); }
.suivi-video { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: var(--ground); }
.suivi-download { margin-top: 18px; gap: 10px; font-size: 13px; }
.suivi-next { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; font-size: 13px; }
.suivi-next p { margin: 0 0 8px; }
.suivi-next a { font-weight: 700; color: var(--accent); }
.suivi-connection { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.suivi-connection p { font-size: 12px; margin: 0 0 5px; color: var(--muted); }

.page-login .auth-shell { width: min(1000px, 100%); margin: 0 auto; min-height: calc(100svh - 240px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 8vw, 100px); padding: 48px 32px; }
.page-login .auth-card { width: 100%; max-width: 430px; padding: 0; background: none; border: 0; box-shadow: none; }
.auth-card > .eyebrow { font-size: 11px; color: var(--muted); margin-bottom: 20px; }
.auth-card h1 { font-size: clamp(30px, 3vw, 38px); line-height: 1.22; max-width: 18ch; letter-spacing: -.025em; text-wrap: balance; margin: 0 0 20px; }
.auth-lead { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 28px; }
.auth-lead strong { display: block; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.auth-card form { margin: 0; }
.auth-card label { font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; margin: 0 0 8px; }
.auth-card input { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; background: var(--surface); color: var(--ink); padding: 13px 15px; margin: 0 0 20px; }
.auth-card input:focus { outline: 3px solid var(--primary-soft); border-color: var(--accent); }
.auth-card input[aria-invalid="true"] { border-color: var(--danger); }
.auth-card .btn { min-height: 50px; border-radius: 8px; font-size: 13px; display: flex; justify-content: center; gap: 16px; }
.auth-card .auth-code { font-family: var(--font-mono); font-size: 28px; font-weight: 600; letter-spacing: .4em; text-align: center; height: 70px; padding-left: calc(15px + .4em); margin-bottom: 12px; }
.auth-hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 22px; }
.auth-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 0; font-size: 12px; color: var(--muted); }
.auth-code-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; }
.auth-text-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 12px/1.5 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.auth-text-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.auth-inbox-help { border-top: 1px solid var(--line); padding-top: 16px; margin: 12px 0 0; }
.auth-card .banner { font-size: 13px; line-height: 1.6; margin: 0 0 20px; }
.auth-intro { position: relative; align-self: stretch; min-height: 480px; max-height: 560px; overflow: hidden; padding: 40px; border-radius: 18px; background: var(--ground); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.auth-studio-mark { width: 45px; height: 45px; }
.auth-studio-mark .brand-mark { width: 100%; height: 100%; }
.auth-intro > p { font-family: var(--font-heading); font-size: 29px; line-height: 1.25; letter-spacing: -.025em; font-weight: 650; max-width: 12ch; margin: 44px 0 auto; z-index: 1; }
.auth-film-frames { height: 200px; position: relative; margin: 24px -40px -40px 0; }
.auth-film-frames span { position: absolute; width: 116px; height: 206px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: var(--ground-2); transform: rotate(-12deg); bottom: -40px; left: 8px; }
.auth-film-frames span:nth-child(2) { left: 85px; bottom: -20px; transform: rotate(0); }
.auth-film-frames span:nth-child(3) { left: 166px; bottom: -28px; transform: rotate(12deg); background: var(--accent); }
@media (max-width: 760px) {
  .suivi-shell { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 0; padding-top: 32px; }
  .suivi-content { display: contents; }
  .suivi-content > .eyebrow { order: 0; }
  .suivi-heading { order: 1; }
  .suivi-brief { order: 2; }
  .suivi-steps { order: 3; }
  .suivi-live { order: 3; } /* after the steps: same order, later in the page */
  .suivi-mail { order: 4; }
  .suivi-connection { order: 5; }
  #suivi-failure { order: 6; }
  .suivi-next { order: 7; }
  .suivi-screen { order: 8; margin-top: 32px; }
  .suivi-shell[data-status="done"] .suivi-screen { order: 3; margin-top: 0; }
  .suivi-shell[data-status="done"] .suivi-steps { order: 4; margin-top: 28px; }
  .suivi-shell[data-status="done"] .suivi-mail { order: 5; }
  .suivi-heading h1 { max-width: 15ch; font-size: 34px; }
  .suivi-content > .eyebrow { margin-bottom: 16px; }
  .suivi-screen { width: min(100%, 340px); justify-self: center; padding: 16px; }
  .suivi-lead { max-width: none; }
  .page-login .auth-shell { display: block; min-height: calc(100svh - 230px); max-width: 460px; padding: 42px 24px; }
  .auth-intro { display: none; }
  .page-login .auth-card { max-width: none; }
}

/* Editorial and watch pages: the film and its brief are the primary content. */
.content-crumb {display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-size:12px; color:var(--ink-muted,#52637e); margin:28px 0 52px}
.content-crumb a {color:inherit; text-decoration:none}
.content-crumb a:hover {color:var(--accent,#2453df); text-decoration:underline}
.content-hero {padding-block:0 64px}
.content-hero h1 {max-width:1000px; font-size:clamp(32px,4.7vw,64px); line-height:1.12; letter-spacing:-.04em; text-wrap:balance; margin:18px 0 26px}
.content-hero .studio-lead {max-width:800px}
.content-body {display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr); gap:clamp(32px,7vw,100px); align-items:start; padding-block:16px 72px}
.content-prose section + section {margin-top:42px}
.content-prose h2,.content-brief h2,.content-example h2,.film-followup h2 {font-size:clamp(22px,2.3vw,30px); line-height:1.25; letter-spacing:-.025em}
.content-prose p,.content-example p,.film-followup p,.film-watch-copy>p {line-height:1.85; color:#52637e}
.content-brief {padding:30px; background:#edf2ff; border-top:3px solid #2453df; border-radius:0 0 16px 16px}
.content-brief .studio-checks {margin:24px 0 32px}
.content-example {display:grid; grid-template-columns:minmax(180px,300px) minmax(0,1fr); gap:clamp(28px,6vw,80px); align-items:center; padding:44px; background:#f4f6fa; border-radius:22px; margin-bottom:72px}
.content-example-poster,.example-poster {display:block; position:relative; overflow:hidden; border-radius:14px; background:#e9edf5; color:#fff}
.content-example-poster img,.example-poster img {display:block; width:100%; height:auto; aspect-ratio:9/16; object-fit:cover}
.content-example-poster>span,.example-poster>span {position:absolute; bottom:18px; left:18px; right:18px; padding:14px 16px; background:#192945; border-radius:8px; font-size:13px; font-weight:700; text-align:center}
.content-links {padding-block:40px 84px}
.content-links>div {display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:24px; margin-top:22px}
.content-links>div>a {display:block; padding:28px 0 12px; border-top:1px solid #cfd8e9; color:inherit; text-decoration:none}
.content-links h2 {display:flex; justify-content:space-between; gap:16px; font-size:22px; line-height:1.3}
.content-links h2 span {color:#2453df}
.content-links p {font-size:14px; line-height:1.8; color:#52637e}
.content-links a:hover h2 {color:#2453df}
.example-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; padding-bottom:44px}
.example-grid .studio-eyebrow {margin-top:24px}
.example-grid h2 {font-size:24px; margin:12px 0}
.example-grid h2 a {color:inherit; text-decoration:none}
.example-grid article>p:last-child {color:#52637e; line-height:1.7}
.film-watch {display:grid; grid-template-columns:minmax(240px,420px) minmax(0,1fr); gap:clamp(30px,6vw,96px); align-items:center; padding-block:0 72px}
.film-watch-player {background:#101b2f; border-radius:18px; overflow:hidden; box-shadow:0 24px 70px #19294520}
.film-watch-player video {width:100%; height:auto; max-height:760px; display:block; object-fit:contain}
.film-watch-copy h1 {font-size:clamp(34px,4vw,56px); line-height:1.15; letter-spacing:-.04em; margin:18px 0}
.film-watch-copy h2 {font-size:21px; margin-top:32px}
.film-facts {display:flex; flex-wrap:wrap; gap:28px; padding-block:22px; border-top:1px solid #d9e1ee; border-bottom:1px solid #d9e1ee}
.film-facts dt {font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:#52637e; margin-bottom:6px}
.film-facts dd {margin:0; font-size:13px; font-weight:700}
.film-followup {display:grid; grid-template-columns:1fr 1fr; gap:64px; padding-block:48px 88px; border-top:1px solid #d9e1ee}
.film-related {display:flex; gap:20px; align-items:center; padding:16px 0; border-bottom:1px solid #d9e1ee; color:inherit; text-decoration:none}
.film-related img {width:54px; height:86px; object-fit:cover; border-radius:5px}
.film-related>span:last-child {margin-left:auto; color:#2453df}
.film-related strong,.film-related span span {display:block}
.film-related span span {font-size:12px; color:#52637e; margin-top:6px}
.film-transcript {display:grid; grid-template-columns:1fr 1fr; gap:64px; padding-block:32px 80px; border-top:1px solid #d9e1ee}
.film-transcript h2 {font-size:clamp(22px,2.3vw,30px); line-height:1.25; letter-spacing:-.025em}
.film-transcript p {line-height:1.85; color:#52637e}
.film-transcript-copy {padding-left:28px; border-left:3px solid #2453df}
.film-transcript-copy p:first-child {margin-top:0}
.studio-film-brief {display:inline-flex; margin-top:16px; font-size:13px; font-weight:700; color:#2453df; text-decoration:none}
.studio-prompts {margin-top:26px; display:flex; flex-wrap:wrap; gap:8px}
.studio-prompts a {font-size:11px; color:#52637e; border:1px solid #d9e1ee; padding:8px 12px; border-radius:30px; text-decoration:none}
.studio-prompts a:hover {border-color:#2453df; color:#2453df; background:#f4f6ff}
.studio-materials {align-self:stretch; background:#edf2ff; padding:34px; border-radius:18px; display:flex; flex-direction:column; justify-content:center; min-width:0}
.studio-materials-pictures {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:28px 0}
.studio-materials-pictures img {width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:7px}
.studio-materials-pictures figcaption {font-size:11px; color:#52637e; margin-top:10px}
.studio-materials-pictures figure {margin:0; min-width:0}
.studio-materials-flow {display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:20px; border-top:1px solid #c8d4f0; font-size:14px; font-weight:700}
.studio-materials-flow span:last-child {color:#2453df}
@media(max-width:760px) {
 .content-crumb {margin:22px 0 34px; font-size:11px; gap:8px}
 .content-hero {padding-bottom:38px}
 .content-body,.film-watch,.film-followup,.film-transcript {grid-template-columns:1fr; gap:32px}
 .content-example {grid-template-columns:1fr; padding:26px; margin-inline:16px; width:auto}
 .content-example-poster {max-width:220px; justify-self:center}
 .example-grid {gap:36px; grid-template-columns:1fr; max-width:440px}
 .example-poster {max-height:600px}
 .film-watch {max-width:620px}
 .film-watch-player {max-width:360px; width:100%; margin-inline:auto}
 .film-watch-player video {max-height:68svh}
 .film-watch-copy h1 {font-size:36px}
 .film-followup {padding-block:32px 48px}
 .content-links {padding-block:26px 44px}
 .studio-materials {padding:24px}
 .studio-materials-pictures {gap:8px}
}

/* The public films distinguish the musical format from optional narration. */
.studio-film-sound { text-align: right; }
.studio-film-sound small { display: block; margin-top: 5px; font: 500 10px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* Voice paused on the brand page: voices listed, greyed, not selectable. */
body.page-app .app-chip:has(input:disabled) { cursor: not-allowed; color: var(--ap-faint); background: var(--ap-bg); border-style: dashed; }
body.page-app .app-chip:has(input:disabled):hover { border-color: var(--ap-border); }
body.page-app .app-soon { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; line-height: 1; color: var(--ap-cta-dark); background: var(--ap-select); border-radius: 999px; padding: 4px 8px; vertical-align: middle; text-transform: none; letter-spacing: 0; }

/* The montage, shot by shot, while the video is being made. */
.suivi-live { display: grid; gap: 10px; margin: 18px 0 4px; }
.suivi-live-bar { height: 6px; border-radius: 999px; background: rgba(36, 88, 211, .14); overflow: hidden; }
.suivi-live-bar i { display: block; height: 100%; width: 4%; background: #2458D3; border-radius: inherit; transition: width .6s ease; }
.suivi-live-label { margin: 0; font-size: 14px; font-weight: 600; }
.suivi-live-plans { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .suivi-live-bar i { transition: none; } }

/* The support bubble, bottom right of every page (src/web/public/support.js).
   Fixed, above everything, and it never covers the page's own actions on a
   phone: closed it is one line, open it stops short of the top of the screen. */
.support { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-size: 15px; }
.support-bubble { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  background: #171614; color: #fff; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.support-bubble:hover { background: #d9401a; }
.support-dot { width: 9px; height: 9px; border-radius: 50%; background: #d9401a; box-shadow: 0 0 0 2px #fff; }
.support-panel { width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 520px); display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6e2dc; border-radius: 14px; box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  padding: 14px; gap: 10px; }
.support-head { display: flex; align-items: center; justify-content: space-between; }
.support-close { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #6b6760; padding: 0 4px; }
.support-intro { margin: 0; font-size: 13px; color: #6b6760; }
.support-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.support-msg { margin: 0; padding: 8px 11px; border-radius: 12px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-msg.is-vous { align-self: flex-end; background: #171614; color: #fff; border-bottom-right-radius: 4px; }
.support-msg.is-eux { align-self: flex-start; background: #f3f0ea; color: #171614; border-bottom-left-radius: 4px; }
.support-form { display: flex; flex-direction: column; gap: 6px; }
.support-form input, .support-form textarea { font: inherit; padding: 8px 10px; border: 1px solid #ddd8d0; border-radius: 9px; resize: vertical; }
.support-form button { border: 0; border-radius: 9px; background: #d9401a; color: #fff; font: inherit; font-weight: 600; padding: 9px; cursor: pointer; }
.support-note { margin: 0; font-size: 12px; color: #6b6760; min-height: 1em; }
@media (max-width: 480px) { .support { right: 10px; bottom: 10px; } }
/* Under 760px the editor puts its own preview button in this very corner
   (editor.css), so the bubble steps above it instead of covering it. */
@media (max-width: 760px) { body.page-edit .support { bottom: 80px; } }
