/* Final call of the pack site: the rules of the Unisson model (.container, .final, .glow, .btn, .cta-row, .hint),
   selectors moved into the shadow tree, colours read from the --pack-* tokens. The white inner ring of the buttons
   is --bythium-on-brand-primary, white in both themes as in the model. Motion only under no-preference, each
   transition capped at 300 ms (the model's background slide ran 500 ms). The masks of the ring only read alpha, so any opaque
   token stands in for the model's black. */
:host {
  display: block;
  color: var(--pack-ink);
  font:
    16px / 1.6 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-feature-settings: normal;
  letter-spacing: normal;
  vertical-align: baseline;
  -webkit-font-smoothing: antialiased;
}
:host([hidden]) {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
h2,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--pack-focus);
  outline-offset: 3px;
  border-radius: 6px;
}
[part="root"] {
  inline-size: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* The lit card. */
.glow {
  position: relative;
  border-radius: 18px;
  background: var(--pack-panel);
  border: 1px solid var(--pack-line);
  box-shadow: var(--pack-shadow);
}
.glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--pack-c1), transparent 35%, transparent 65%, var(--pack-c2));
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(var(--pack-ink) 0 0) content-box,
    linear-gradient(var(--pack-ink) 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(var(--pack-ink) 0 0) content-box exclude,
    linear-gradient(var(--pack-ink) 0 0);
}
.final {
  padding: 64px 28px;
  text-align: center;
  margin-block-start: 84px;
  background: radial-gradient(ellipse at 50% 0%, var(--pack-a2), transparent 70%), var(--pack-panel);
}
.final h2 {
  font:
    800 clamp(32px, 5vw, 56px) / 1.1 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: -0.04em;
}
.final p {
  margin: 14px auto 0;
  max-inline-size: 50ch;
  color: var(--pack-mut);
  font-size: 17px;
}
.final .hint {
  font-size: 13px;
}
/* The wide variant, the final call of the pages with the compact header (« Gabarits »): the 1408 px row of
   .container.wide, a lead of 52 characters and the hint 10 px under the actions. */
.wide {
  inline-size: min(1408px, 100% - 32px);
}
.wide .final p {
  max-inline-size: 52ch;
}
/* setting="studio": the Studio pages' hint sits 10 px under the actions too. */
.wide .final .hint,
:host([setting="studio"]) .final .hint {
  margin-block-start: 10px;
}

/* Actions. */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-block-start: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font:
    700 15px Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  color: var(--pack-btnink);
  background: linear-gradient(120deg, var(--pack-btn1), var(--pack-btn2) 60%, var(--pack-btn3));
  background-size: 160% 100%;
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--bythium-on-brand-primary) 18%, transparent) inset,
    0 10px 30px -10px var(--pack-a2),
    0 0 28px -6px var(--pack-a1);
}
.btn:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--bythium-on-brand-primary) 30%, transparent) inset,
    0 14px 36px -10px var(--pack-a2),
    0 0 40px -4px var(--pack-a1);
}
.btn.ghost {
  color: var(--pack-ink);
  background: var(--pack-panel2);
  box-shadow: 0 0 0 1px var(--pack-line2) inset;
  backdrop-filter: blur(10px);
}
.btn.ghost:hover {
  box-shadow:
    0 0 0 1px var(--pack-c1) inset,
    0 0 24px -8px var(--pack-a1);
}

@media (max-width: 700px) {
  .final {
    padding: 44px 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition:
      background-position 300ms,
      transform 200ms,
      box-shadow 300ms;
  }
}
/* Forced colours: the gradients are dropped, the buttons keep a visible edge and the ring is not drawn. */
@media (forced-colors: active) {
  .btn {
    border: 1px solid currentcolor;
  }
  .glow::after {
    display: none;
  }
}
