/* Prisma Consultoria, demonstracao da Upsite Labs.
   Uma entrada, varias leituras: a lente escolhida repinta a pagina e o
   tratamento de cor da fotografia. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+2C60-2C7F;
}


:root {
  --bg: #d6eef3; --bg2: #b6dfe8; --ink: #0b2c36; --acc: #0e7490; --lens: #22b8d4;
  --display: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  /* Radius scale: control, panel, sheet. Photographs take the organic blob. */
  --r1: 16px;
  --r2: 28px;
  --r3: 48px;
  --blob: 58% 42% 46% 54% / 46% 54% 46% 54%;
  --t: cubic-bezier(0.2, 0.8, 0.2, 1);
}
body[data-lens="mercado"] { --bg: #d6eef3; --bg2: #b6dfe8; --ink: #0b2c36; --acc: #0e7490; --lens: #22b8d4; }
body[data-lens="operacao"] { --bg: #fde9c4; --bg2: #f8d38f; --ink: #3a2506; --acc: #9a4507; --lens: #ffb020; }
body[data-lens="numeros"] { --bg: #e6defb; --bg2: #cdbff5; --ink: #24173f; --acc: #6233c9; --lens: #8a6bff; }
body[data-lens="pessoas"] { --bg: #fddbe0; --bg2: #f9b9c4; --ink: #3d1019; --acc: #ac1d41; --lens: #ff5c7a; }
body[data-lens="risco"] { --bg: #e5f4c3; --bg2: #cfe78e; --ink: #1d2a05; --acc: #3f6a0b; --lens: #8bd028; }
body[data-lens="neutro"] { --bg: #ebebe8; --bg2: #d6d6d1; --ink: #1c1c1a; --acc: #3d3d39; --lens: #8d8d88; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--text); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.08rem); line-height: 1.62; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.5s var(--t), color 0.5s var(--t); }
img { max-width: 100%; display: block; }
figure { margin: 0; }
figcaption { font-size: 0.82rem; line-height: 1.5; opacity: 0.8; margin: 0.7rem 0 0 0.3rem; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.06; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 0.6rem; left: 0.6rem; z-index: 200; transform: translateY(-160%); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.85rem; padding: 0.7rem 1rem; border-radius: 999px; text-decoration: none; transition: transform 0.2s var(--t); }
.skip:focus-visible { transform: translateY(0); }
:where(a, button, summary, input, select, textarea, [tabindex="0"]):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--r1); }
.band--deep :where(a, button, input, select, textarea):focus-visible { outline-color: var(--lens); }
.form :where(input, select, textarea, button):focus-visible { outline-color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.7rem 1.5rem; font-family: var(--text); font-weight: 700; font-size: 0.92rem; text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer; background: transparent; color: inherit; transition: transform 0.18s var(--t), background 0.4s var(--t), color 0.2s var(--t), border-color 0.2s var(--t); }
.btn--lg { min-height: 54px; padding: 0.9rem 1.8rem; font-size: 0.98rem; }
.btn--accent { background: var(--acc); color: #fff; border-color: var(--acc); }
body[data-lens="neutro"] .btn--accent { color: #fff; }
.btn--accent:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.btn:active { transform: none; }

.topbar { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); transition: background 0.5s var(--t); }
.topbar__in { display: flex; align-items: center; gap: 1.4rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand__mark { width: 32px; height: 32px; color: var(--acc); transition: color 0.5s var(--t); }
.brand__mark svg { width: 100%; height: 100%; }
.head-nav { margin-left: auto; }
.head-nav ul { display: flex; gap: 0.2rem; }
.head-nav a { display: inline-block; font-size: 0.92rem; font-weight: 500; text-decoration: none; padding: 0.55rem 0.9rem; border-radius: 999px; transition: background 0.2s var(--t); }
.head-nav a:hover { background: rgba(255, 255, 255, 0.5); }
.head-cta { min-height: 44px; }
.menu-btn { display: none; }

.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(10, 14, 16, 0.55); opacity: 0; transition: opacity 0.3s var(--t); cursor: pointer; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0.6rem; right: 0.6rem; bottom: 0.6rem; width: min(86vw, 380px); background: var(--bg2); color: var(--ink); border-radius: var(--r3); padding: 1.3rem 1.5rem 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; transform: translateX(110%); transition: transform 0.34s var(--t); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.drawer__close { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer__list a { display: block; padding: 0.8rem 0; font-family: var(--display); font-weight: 600; font-size: 1.6rem; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.drawer__cta { align-self: flex-start; }

/* The tint: grey photograph + the lens colour on top */
.tint { position: relative; display: block; overflow: hidden; isolation: isolate; }
.tint img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.tint::after { content: ""; position: absolute; inset: 0; background: var(--lens); mix-blend-mode: color; opacity: 0.85; pointer-events: none; transition: background 0.5s var(--t); }
.tint--blob { border-radius: var(--blob); }

/* Hero */
.hero { padding: clamp(1.4rem, 4vw, 3rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.hero__grid { display: grid; gap: clamp(1.6rem, 5vw, 3.4rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.02fr 0.98fr; } }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 1rem; text-wrap: balance; }
.lead { font-size: 1.1rem; max-width: 40ch; }
.hero__actions { margin: 1.5rem 0 1.4rem; }
.demo-note { font-size: 0.8rem; line-height: 1.55; max-width: 50ch; margin: 0; opacity: 0.85; }
.hero__frame img { aspect-ratio: 5 / 4.2; object-fit: cover; }

.band { padding: clamp(3rem, 7vw, 5.6rem) 0; }
.band--raise { background: var(--bg2); border-radius: var(--r3) var(--r3) 0 0; transition: background 0.5s var(--t); }
.band--raise + .band { border-radius: var(--r3) var(--r3) 0 0; margin-top: calc(var(--r3) * -1); padding-top: calc(var(--r3) + clamp(3rem, 7vw, 5.6rem)); }
.band--deep { background: var(--ink); color: var(--bg); border-radius: var(--r3) var(--r3) 0 0; transition: background 0.5s var(--t), color 0.5s var(--t); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.7rem; }
.sec-intro { max-width: 60ch; margin: 0; opacity: 0.88; }

/* Lenses */
.lensbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: clamp(1.4rem, 3vw, 2rem) 0; }
.lens { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.5rem 1.2rem 0.5rem 1rem; border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; color: inherit; font: 700 0.92rem var(--text); border-radius: 999px; cursor: pointer; transition: border-color 0.2s var(--t), background 0.2s var(--t), color 0.2s var(--t); }
.lens:hover { border-color: var(--ink); }
.lens[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lens__dot { width: 14px; height: 14px; border-radius: 50%; background: #8d8d88; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.lens[data-lens="mercado"] .lens__dot { background: #22b8d4; } .lens[data-lens="operacao"] .lens__dot { background: #ffb020; } .lens[data-lens="numeros"] .lens__dot { background: #8a6bff; } .lens[data-lens="pessoas"] .lens__dot { background: #ff5c7a; } .lens[data-lens="risco"] .lens__dot { background: #8bd028; }
.lensbar:not([data-enhanced]) { display: none; }
.leituras__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) { .leituras__grid { grid-template-columns: 0.8fr 1.2fr; } .leituras__side { position: sticky; top: 96px; } }

/* Compare */
.cmp { --pos: 50%; }
.cmp__stage { position: relative; border-radius: var(--r3); overflow: hidden; aspect-ratio: 4 / 3; touch-action: pan-y; cursor: ew-resize; background: #999; }
.cmp__raw, .cmp__lens { position: absolute; inset: 0; user-select: none; }
.cmp__stage img { pointer-events: none; -webkit-user-drag: none; }
.cmp__raw img, .cmp__lens img { width: 100%; height: 100%; object-fit: cover; }
.cmp__raw img { filter: grayscale(1) contrast(1.05) brightness(0.9); }
.cmp__lens { clip-path: inset(0 0 0 var(--pos)); }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.cmp__knob { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); pointer-events: none; }
.cmp__label { display: block; margin: 0.9rem 0 0.2rem; font-size: 0.88rem; font-weight: 600; }
.cmp__range { width: 100%; min-height: 44px; accent-color: var(--acc); }
.cmp:not(:has(.cmp__range:focus-visible)) .cmp__stage { outline: none; }
.cmp:has(.cmp__range:focus-visible) .cmp__stage { outline: 3px solid var(--ink); outline-offset: 3px; }
html:not(.js) .cmp__label, html:not(.js) .cmp__range { display: none; }

.panels[data-enhanced] .panel { display: none; }
.panels[data-enhanced] .panel.is-on { display: block; animation: lensIn 0.4s var(--t); }
@keyframes lensIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel { background: rgba(255, 255, 255, 0.55); border-radius: var(--r3); padding: clamp(1.4rem, 3.6vw, 2.4rem); }
.panels:not([data-enhanced]) .panel + .panel { margin-top: 1rem; }
.panel__name { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 0.7rem; }
.panel__line { margin: 0 0 1.1rem; max-width: 58ch; }
.panel__q { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.3; padding: 1rem 1.3rem; border-radius: var(--r2); background: var(--lens); color: #111; margin: 0 0 1.4rem; font-weight: 500; }
.panel__cols { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (min-width: 640px) { .panel__cols { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
.panel h4 { font-family: var(--text); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; margin: 0 0 0.6rem; }
.panel__list { display: grid; gap: 0.5rem; }
.panel__list li { position: relative; padding-left: 1.4rem; font-size: 0.96rem; }
.panel__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--lens); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18); }
.panel__out, .panel__ex { padding: 0.9rem 1.2rem; border-radius: var(--r2); margin: 0 0 0.7rem; font-size: 0.96rem; }
.panel__out { background: var(--bg2); }
.panel__ex { background: transparent; border: 2px dashed color-mix(in srgb, var(--ink) 45%, transparent); margin-bottom: 0; }

/* Diagnostico */
.diag__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 900px) { .diag__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.deliver { margin-top: 1.6rem; display: grid; gap: 0.6rem; counter-reset: d; }
.deliver li { display: grid; gap: 0.15rem; padding: 1rem 1.3rem; border-radius: var(--r2); background: rgba(255, 255, 255, 0.5); counter-increment: d; }
.deliver b { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.diagnostico__band .tint { border-radius: var(--r3); }
.diagnostico__band img { aspect-ratio: 3 / 2; object-fit: cover; }
.sample { margin-top: 1.2rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--r2); background: #fff; color: #1c1c1a; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12); transform: rotate(-1deg); }
.sample__title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 0.8rem; }
.sample ol { display: grid; gap: 0.6rem; }
.sample li { display: grid; padding-bottom: 0.6rem; border-bottom: 2px dashed #d0d0cc; }
.sample li:last-child { border-bottom: 0; }
.sample span { font-size: 0.9rem; color: #4a4a46; }
.sample__note { font-size: 0.78rem; color: #55554f; margin: 0.8rem 0 0; }

/* Decorre */
.decorre__grid { display: grid; gap: clamp(1.8rem, 5vw, 3.2rem); align-items: start; }
@media (min-width: 880px) { .decorre__grid { grid-template-columns: 1.15fr 0.85fr; } .decorre__photo { position: sticky; top: 96px; } }
.lseq { display: grid; gap: 0.7rem; margin: 1.6rem 0; }
.lseq__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.3rem; border-radius: var(--r2); background: rgba(255, 255, 255, 0.5); }
.lseq__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.lseq__item h3 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.lseq__item p { margin: 0; font-size: 0.97rem; max-width: 52ch; }
.scope { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .scope { grid-template-columns: 1fr 1fr; } }
.scope > div { padding: 1.2rem 1.4rem; border-radius: var(--r2); border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.scope h3 { font-size: 1.2rem; margin: 0 0 0.7rem; }
.decorre__photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.method-note { margin-top: clamp(1.6rem, 4vw, 2.4rem); font-size: 0.88rem; max-width: 80ch; padding: 1rem 1.3rem; border-radius: var(--r2); background: rgba(255, 255, 255, 0.45); }

/* FAQ */
.perguntas__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 900px) { .perguntas__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } .perguntas__grid > div:first-child { position: sticky; top: 92px; } }
.faq { display: grid; gap: 0.6rem; }
.faq__item { background: rgba(255, 255, 255, 0.6); border-radius: var(--r2); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.3rem; min-height: 58px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1.12rem; border-radius: var(--r2); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; inset: 50% 8px auto; height: 2px; background: currentColor; }
.faq__sign::after { transform: rotate(90deg); transition: transform 0.3s var(--t); }
[open] > summary .faq__sign::after { transform: rotate(0deg); }
.faq__body { padding: 0 1.3rem 1.2rem; max-width: 62ch; }
.faq__body p { margin: 0; }

/* Contacto */
.contacto__band .tint { border-radius: var(--r3); }
.contacto__band img { width: 100%; height: clamp(200px, 30vw, 360px); object-fit: cover; }
.contacto__band figcaption { color: var(--bg); }
.contacto__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); margin-top: clamp(1.8rem, 4vw, 2.6rem); }
@media (min-width: 880px) { .contacto__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contacto .lead { max-width: 42ch; }
.where { display: grid; gap: 0.6rem; margin: 1.4rem 0; }
.where div { padding: 0.8rem 1.1rem; border-radius: var(--r2); background: rgba(255, 255, 255, 0.1); }
.where dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--lens); }
.contacto__note { font-size: 0.84rem; opacity: 0.85; margin: 0; }
.form, .form__done { background: var(--bg); color: var(--ink); padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r3); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field--group { border: 0; margin: 0; padding: 0; gap: 0.4rem; }
.field > label, .field legend { font-weight: 700; font-size: 0.86rem; padding: 0; }
.field input:not([type="radio"], [type="checkbox"]), .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: var(--r1); padding: 0.7rem 1rem; min-height: 48px; width: 100%; transition: border-color 0.18s var(--t); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; cursor: pointer; padding-right: 2.8rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px; }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #a31d1d; box-shadow: inset 0 0 0 1px #a31d1d; }
.opts { display: grid; gap: 0.1rem; }
.opts--pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opts--pills .opt { border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; padding: 0.1rem 1.1rem 0.1rem 0.8rem; background: #fff; }
.opts--pills .opt:has(input:checked) { border-color: var(--ink); background: var(--bg2); }
.opt { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; font-size: 0.95rem; cursor: pointer; }
.opt input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink); background: #fff; cursor: pointer; }
.opt input[type="radio"] { border-radius: 50%; }
.opt input[type="checkbox"] { border-radius: 8px; }
.opt input[type="checkbox"]:checked { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.6 8.4l3.3 3.3L13.4 4.2' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 13px; }
.opt input[type="radio"]:checked { background-color: var(--ink); background-image: radial-gradient(circle at center, #fff 0 28%, transparent 31%); }
.field__err { margin: 0; font-size: 0.86rem; color: #a31d1d; font-weight: 600; }
.field__err::before { content: "Erro: "; }
.form__submit { justify-self: start; }
.form__submit:disabled { opacity: 0.7; cursor: progress; }
.form__done-title { font-size: 1.5rem; margin: 0 0 0.6rem; }
.form__done p { margin: 0 0 1.1rem; }

.foot { background: var(--ink); color: var(--bg); padding: 2.4rem 0 3rem; transition: background 0.5s var(--t), color 0.5s var(--t); }
.foot__in { display: grid; gap: 1rem; }
.foot__brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.foot__note { font-size: 0.8rem; line-height: 1.6; max-width: 78ch; margin: 0; opacity: 0.85; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.foot__nav a { font-size: 0.9rem; text-decoration: none; padding: 0.5rem 0; }
.foot__nav a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .head-nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu-btn__bars { position: relative; }
  .menu-btn__bars::before { position: absolute; top: -6px; left: 0; }
  .menu-btn__bars::after { position: absolute; top: 6px; left: 0; }
}
body.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .topbar, .brand__mark, .tint::after, .band--raise, .band--deep, .foot, .btn, .lens, .drawer__panel, .drawer__scrim, .skip, .faq__sign::after { transition: none; }
  .panels[data-enhanced] .panel.is-on { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: var(--bg); backdrop-filter: none; } }

/* Page loader: CSS clears it by itself; app.js removes it earlier on load. */
.loader{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#D6EEF3;pointer-events:none;animation:ld-out 1s both}.ld-mark{width:72px;height:72px}@keyframes ld-out{0%,70%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}.ld-ring,.ld-dot{transform-box:fill-box;transform-origin:center;animation:ld-focus .8s cubic-bezier(.2,.8,.2,1) both}.ld-dot{animation-delay:.1s}@keyframes ld-focus{from{transform:scale(1.8);opacity:0}to{transform:scale(1);opacity:1}}@media (prefers-reduced-motion:reduce){.loader{display:none}}

/* Loader timing: visible ~1.2s then fade (JS); CSS fallback hides ~2.2s with no JS. */
.loader{animation:loader-fallback 2.2s cubic-bezier(.16,1,.3,1) both;transition:opacity .5s ease}
.loader.is-out{opacity:0!important;visibility:hidden!important}
@keyframes loader-fallback{0%,84%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
