/* ClipBoost Spain: the trust strip in Prices and the FAQ section (#preguntas).
   Tokens and fonts from assets/site.css only, so light and dark follow by themselves. Load it after
   site.css (or append it to site.css, just before the Footer block). The edit suite carries on here:
   numbered clip tags that go tally red when a question is open, a bin triangle that turns down,
   viewfinder cards for the filming tips, an edit-list table for revisions and a three-clip track
   for paying. Every animation stops for people who ask for less motion (site.css turns them off). */

/* ---------- Trust strip (Prices): three promises, each with a tally light ---------- */
.trust {
  display: grid; margin: 0 0 32px; padding: 12px 16px 6px; list-style: none;
  /* timeline ticks along the top edge, like the ruler under the header */
  background:
    repeating-linear-gradient(to right, var(--tick-strong) 0 1px, transparent 1px 100px) left top / 100% 8px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 10px) left top / 100% 4px no-repeat,
    var(--paper-2);
}
.trust__item {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 0;
  font-family: var(--f-display); font-stretch: 80%; font-weight: 760; font-size: 1.15rem; line-height: 1.15;
  letter-spacing: -.003em; color: var(--ink);
}
.trust__item + .trust__item { border-top: 1px dashed var(--line-strong); }
.trust__item::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
/* The reply promise is "on air": a ring keeps leaving its light */
.trust__item--live::before { animation: trust-live 2.4s ease-out infinite; }
@keyframes trust-live {
  0% { outline: 2px solid var(--accent); outline-offset: 0; }
  70%, 100% { outline: 2px solid transparent; outline-offset: 8px; }
}
@media (min-width: 1000px) {
  .trust { display: flex; flex-wrap: wrap; padding: 14px 0 8px; }
  .trust__item { flex: 1 1 auto; justify-content: center; padding: 6px 22px; font-size: 1.125rem; }
  .trust__item + .trust__item { border-top: 0; border-left: 1px solid var(--line-strong); }
}

/* ---------- FAQ: a bin of numbered questions; the answer folds open under each ---------- */
.faq { --faq-no: 44px; display: grid; grid-template-areas: "intro" "list" "ask"; gap: 28px; }
.faq__side { display: contents; }
.faq__intro { grid-area: intro; }
.faq__intro .h2 { margin-bottom: 14px; }
.faq__intro .sub { margin: 0; }
.faq__ask { grid-area: ask; }
.faq__ask .btn { width: 100%; }
.faq__list { grid-area: list; min-width: 0; border-top: 1.5px solid var(--ink); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: grid; grid-template-columns: var(--faq-no) minmax(0, 1fr) 32px; align-items: center; gap: 12px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; touch-action: manipulation;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
/* Clip number, boxed like the track tag on the process clips; tally red while the answer is open */
.faq__no {
  justify-self: start; padding: 2px 5px 1px; border: 1px solid currentColor; border-radius: 1px;
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: .75rem; font-weight: 600; line-height: 1.35;
  letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--accent-ink);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.faq__text {
  font-family: var(--f-display); font-stretch: 80%; font-weight: 760; font-size: 1.3rem; line-height: 1.12;
  letter-spacing: -.004em; color: var(--ink); transition: color .15s ease;
}
/* Bin triangle in a square: points right when closed, down when open (the box fills with ink) */
.faq__sw {
  position: relative; width: 32px; height: 32px; justify-self: end;
  border: 1px solid var(--line-strong); border-radius: 2px;
  transition: background-color .15s ease, border-color .15s ease;
}
.faq__sw::before {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -3px;
  border-left: 7px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: transform .2s ease, border-color .15s ease;
}
.faq__q:hover .faq__text { color: var(--accent-ink); }
.faq__q:hover .faq__sw { border-color: var(--ink); }
.faq__q:focus-visible { outline-offset: 4px; }
.faq__item[open] > .faq__q .faq__no { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq__item[open] > .faq__q .faq__sw { background: var(--ink); border-color: var(--ink); }
.faq__item[open] > .faq__q .faq__sw::before { border-left-color: var(--paper); transform: rotate(90deg); }

/* Every child keeps a bottom margin, so the spacing is the same whichever language is hidden */
.faq__a { padding: 0 0 12px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.faq__a > * { margin: 0 0 12px; max-width: 62ch; }
.faq__a b, .faq__a dt { color: var(--ink); font-weight: 650; }
.faq__a a { color: var(--accent-ink); font-weight: 650; text-underline-offset: 3px; }
.faq__a .ticks li { font-size: 1rem; }
.faq__item[open] > .faq__a { animation: faq-in .28s ease-out both; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
/* Where the browser can animate to "auto" height (Chrome/Edge 131+), the answer also slides open */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq__item { interpolate-size: allow-keywords; }
    .faq__item::details-content {
      block-size: 0; overflow: clip; overflow-clip-margin: 6px;   /* room for a link's focus ring */
      transition: block-size .26s ease, content-visibility .26s allow-discrete;
    }
    .faq__item[open]::details-content { block-size: auto; }
  }
}

/* 01 · where the clips can come from */
.faq__via { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.faq__via li {
  padding: 5px 9px 4px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink);
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: .75rem; font-weight: 500; letter-spacing: .03em;
}
.faq__via li::before { content: "↳ "; color: var(--accent-ink); }

/* 03 · four filming tips, each in a viewfinder (corner marks, a tag like a camera readout) */
.faq__tips { display: grid; gap: 8px; padding: 0; list-style: none; max-width: none; }
.vf {
  --m: var(--ink-3);
  position: relative; display: grid; align-content: start; gap: 4px; padding: 16px 18px 18px;
  background: var(--paper-2); color: var(--ink-2); font-size: .95rem; line-height: 1.45;
}
.vf::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  background:
    linear-gradient(var(--m) 0 0) top left / 10px 1.5px, linear-gradient(var(--m) 0 0) top left / 1.5px 10px,
    linear-gradient(var(--m) 0 0) top right / 10px 1.5px, linear-gradient(var(--m) 0 0) top right / 1.5px 10px,
    linear-gradient(var(--m) 0 0) bottom left / 10px 1.5px, linear-gradient(var(--m) 0 0) bottom left / 1.5px 10px,
    linear-gradient(var(--m) 0 0) bottom right / 10px 1.5px, linear-gradient(var(--m) 0 0) bottom right / 1.5px 10px;
  background-repeat: no-repeat;
}
.vf__tag {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-ink);
}
.vf__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.vf b {
  font-family: var(--f-display); font-stretch: 80%; font-weight: 760; font-size: 1.15rem; line-height: 1.15; color: var(--ink);
}
@media (min-width: 520px) { .faq__tips { grid-template-columns: 1fr 1fr; } }

/* 04 · the delivery time, set big like the spec under the hero */
.faq__big {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-family: var(--f-display); font-stretch: 68%; font-weight: 820; font-size: 3rem; line-height: .95;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.faq__big small { font-family: var(--f-body); font-stretch: 100%; font-size: .95rem; font-weight: 650; color: var(--accent-ink); }

/* 05 · revisions per plan, as an edit decision list */
.faq__rev { border-top: 1.5px solid var(--ink); max-width: none; }
.faq__rev > div {
  display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 2px 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-strong);
}
.faq__rev dd { margin: 0; }
.faq__free { padding-left: 14px; border-left: 3px solid var(--accent); }
@media (max-width: 379px) { .faq__rev > div { grid-template-columns: minmax(0, 1fr); } }

/* 06 · paying, as three clips on a track; the last clip is the red one */
.faq__pay { display: grid; gap: 6px; padding: 0; list-style: none; max-width: none; }
.faq__pay li { border: 1px solid var(--line); background: var(--paper); }
.faq__pay p { margin: 0; }
.faq__pay-head {
  padding: 6px 10px; background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: .75rem; font-weight: 500; letter-spacing: .02em;
}
.faq__pay li:last-child .faq__pay-head { background: var(--accent); color: var(--on-accent); }
.faq__pay li > p:not(.faq__pay-head) { padding: 10px 12px 12px; color: var(--ink); font-weight: 600; line-height: 1.4; }
@media (min-width: 640px) {
  .faq__pay { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
}

/* 07 · the VAT sum, set like the prices */
.faq__sum {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0;
  border-block: 1px dashed var(--line-strong);
  font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.faq__sum i { font-style: normal; font-weight: 700; color: var(--accent-ink); }
.faq__sum small { font-family: var(--f-body); font-stretch: 100%; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.faq__sum b { font-weight: 860; box-shadow: inset 0 -.18em 0 color-mix(in srgb, var(--accent) 35%, transparent); }

/* The FAQ sits on paper like Contact after it: a hairline keeps the two apart */
.faq-sec { border-bottom: 1px solid var(--line); }

@media (min-width: 560px) {
  .faq__ask .btn { width: auto; }
  .faq__a { padding-left: calc(var(--faq-no) + 12px); }
}
@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "side list"; gap: 72px; align-items: start; }
  /* The heading and the ask button stay in view while the questions scroll past */
  .faq__side {
    display: grid; gap: 28px; grid-area: side;
    position: sticky; top: calc(var(--bar-h) + var(--ruler-h) + 32px);
  }
  .faq__intro, .faq__ask { grid-area: auto; }
  .faq__q { min-height: 68px; padding: 16px 0; }
  .faq__text { font-size: 1.45rem; }
}
