/* The cookie banner of nuvio.ro/app (js/cookie-banner.js), on a page that does not load css/nuvio.css.
   Copied from css/nuvio.css (fonts, the paper/ink tokens, .t-mark, .btn and the "Cookie consent" section) with the
   tokens scoped to the banner, so they never touch the download page's own variables (src/utils/appPage.ts). When the
   banner's look changes in nuvio.css, copy it here again.
   SYNC: kept in step with css/nuvio.css ("Cookie consent (js/cookie-banner.js)", .btn, .t-mark, the :root tokens,
   the Gabarito and Martian Mono faces). nuvio.css carries the same note pointing here. */
@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/gabarito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/gabarito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/static/fonts/martianmono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/static/fonts/martianmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
.cookie,
.cookie-veil {
  --paper: #f8f7ef; /* the page */
  --paper-2: #f1eee2; /* alternating stock */
  --chip: #fffdf7; /* an app object, lifted off the paper */
  --ink: #212b32; /* the writing — 13.4:1 on paper */
  --ink-deep: #121112; /* the closing band */
  --muted: #565b62; /* 6.4:1 on paper */
  --brass: #c2a479; /* FILL ONLY — 2.2:1 on paper */
  --brass-ink: #82633a; /* brass that may be read — 5.2:1 on paper */
  --brass-lift: #d9be97; /* brass on the dark band — 10.6:1 */
  --blush: #ebd9ce; /* a booked slot */
  --rule: #d8d2be; /* the hour lines */
  --rule-soft: #e6e1d2;

  --gutter: 92px; /* the margin column — a margin, not a third column */
  --measure: 1220px;
  --pad: clamp(20px, 5vw, 44px);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  text-align: left;
}
.cookie button,
.cookie-veil button {
  font: inherit;
  cursor: pointer;
}
.cookie p,
.cookie-veil p,
.cookie-veil h2 {
  margin: 0;
}
.t-mark {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-variation-settings: "wdth" 78;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.btn {
  --bar: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow: 0 var(--bar) 0 0 var(--brass);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 calc(var(--bar) + 2px) 0 0 var(--brass);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 var(--brass);
}
.btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding-inline: 4px;
  border-radius: 2px;
  border-bottom: 2px solid var(--brass);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 8px;
}
.btn--quiet:hover {
  transform: none;
  box-shadow: none;
  color: var(--brass-ink);
  border-bottom-color: var(--brass-ink);
}
/* On the closing band the ink button would vanish, so it inverts. */
/* ── Cookie consent (js/cookie-banner.js) ─────────────────────────────────
   A torn-off strip of the same ruled stock, pinned to the bottom of the
   screen: paper, an ink rule along its top edge, the page's own buttons.
   Accept and "essential only" carry equal weight, as consent law asks; the
   granular choice is the quiet underline. The preferences sheet is a page of
   the book: square, rows divided by hour rules. The switches are the only
   round things on it, because a switch is an app object. */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  box-shadow: 0 -10px 30px rgba(33, 43, 50, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cookie__in {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 14px var(--pad) 14px;
  display: grid;
  gap: 14px 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .cookie__in {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 22px;
  }
}
.cookie__mark {
  color: var(--brass-ink);
  margin-bottom: 4px;
}
.cookie__title {
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 4px;
}
.cookie__body {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.cookie__body a,
.cookie-sheet a {
  color: var(--brass-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.cookie .btn,
.cookie-sheet .btn {
  padding: 12px 22px;
  font-size: 0.9rem;
}
.cookie .btn--quiet,
.cookie-sheet .btn--quiet {
  padding: 4px 4px 6px;
}
/* The second choice: same block as the primary, drawn in outline. */
.btn--line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--line:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background: var(--paper-2);
}
.btn--line:active {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
/* On a phone the two choices share a row at equal width; the quiet
   "customise" drops under them. */
.cookie__actions .btn {
  white-space: nowrap;
}
@media (max-width: 599px) {
  .cookie__actions .btn:not(.btn--quiet) {
    flex: 1 1 40%;
    padding-inline: 12px;
  }
  /* Compact on a phone: it is the first thing every ad visitor sees, and at
     full size it covered 40% of the hero. */
  .cookie__in {
    gap: 10px;
  }
  .cookie__title {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .cookie__body {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .cookie .btn {
    padding-block: 10px;
  }
  .cookie__actions {
    gap: 8px 12px;
  }
  .cookie .btn--quiet {
    flex: 1 1 100%;
    padding-block: 2px 4px;
    text-align: center;
  }
}

.cookie-veil {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 17, 18, 0.55);
}
.cookie-sheet {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--paper);
  border-top: 3px solid var(--ink);
  padding: 28px clamp(20px, 5vw, 36px) 24px;
}
.cookie-sheet h2 {
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.cookie-sheet__lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.cookie-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.cookie-row:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.cookie-row__text {
  flex: 1;
  min-width: 0;
}
.cookie-row__text strong {
  display: block;
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}
.cookie-row__text span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}
input.cookie-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 2px 0 0;
  border-radius: 999px;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
input.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--chip);
  box-shadow: 0 1px 2px rgba(33, 43, 50, 0.25);
  transition: transform 0.2s var(--ease);
}
input.cookie-switch:checked {
  background: var(--ink);
}
input.cookie-switch:checked::after {
  transform: translateX(18px);
}
input.cookie-switch:disabled {
  cursor: not-allowed;
  background: var(--muted);
  opacity: 0.55;
}
.cookie-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}
@media print {
  .cookie,
  .cookie-veil {
    display: none;
  }
}
