/* Contab Lisboa, demonstracao da Upsite Labs.
   O ano fiscal num mostrador: o livro de contas em fotografia, um instrumento
   solido sobreposto e uma tira de doze meses que muda o painel de obrigacoes. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}


:root {
  --emerald: #0c2a22;
  --emerald-deep: #051510;
  --emerald-soft: #144936;
  --paper: #efe9db;
  --paper-2: #e4dcc9;
  --ink: #08201a;
  --ink-soft: #46604f;
  --signal: #ff6a2b;
  --signal-deep: #b93c07;
  --mint: #7fe0b0;
  --line-dk: rgba(239, 233, 219, 0.24);
  --line-lt: rgba(8, 32, 26, 0.2);
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --wrap: 1180px;
  /* Radius scale: control, field, panel, sheet. Everything else is a pill. */
  --r1: 10px;
  --r2: 18px;
  --r3: 28px;
  --r4: 48px;
  --t: cubic-bezier(0.2, 0.8, 0.2, 1);
}
*, *::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.96rem + 0.2vw, 1.075rem); line-height: 1.62; color: var(--paper); background: var(--emerald-deep); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; 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(--signal); color: #22100a; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; 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(--mint); outline-offset: 3px; border-radius: var(--r1); }
.sheet--paper :where(a, button, summary, input, select, textarea):focus-visible, .build__form :where(input, button):focus-visible, .form :where(input, select, textarea, button):focus-visible { outline-color: var(--signal-deep); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.7rem 1.3rem; font-family: var(--mono); font-size: 0.82rem; font-weight: 500; text-decoration: none; border: 1.6px solid transparent; border-radius: 999px; cursor: pointer; background: transparent; color: inherit; transition: transform 0.18s var(--t), background 0.2s var(--t), color 0.2s var(--t), border-color 0.2s var(--t); }
.btn--lg { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 0.86rem; }
.btn--signal { background: var(--signal); color: #22100a; border-color: var(--signal); }
.btn--signal:hover { background: #ff8450; border-color: #ff8450; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-dk); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(239, 233, 219, 0.08); transform: translateY(-2px); }
.btn:active { transform: none; }
.stepbtn { width: 48px; height: 48px; border-radius: 50%; border: 1.6px solid currentColor; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0 0 0.15em; transition: background 0.18s var(--t), color 0.18s var(--t); }
.stepbtn:hover { background: var(--signal); color: #22100a; border-color: var(--signal); }

.js .stag > * { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--t), transform 0.55s var(--t); }
.js .stag.is-in > * { opacity: 1; transform: none; }
.js .stag.is-in > *:nth-child(2) { transition-delay: 0.09s; }
.js .stag.is-in > *:nth-child(3) { transition-delay: 0.18s; }
.js .stag.is-in > *:nth-child(4) { transition-delay: 0.26s; }

.topbar { position: sticky; top: 0; z-index: 100; background: rgba(5, 21, 16, 0.88); backdrop-filter: blur(10px); }
.topbar__in { display: flex; align-items: center; gap: 1.4rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.brand__mark { display: inline-flex; width: 30px; height: 30px; color: var(--signal); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text b { font-weight: 500; color: var(--mint); }
.head-nav { margin-left: auto; }
.head-nav ul { display: flex; gap: 0.3rem; }
.head-nav a { display: inline-block; font-family: var(--mono); font-size: 0.78rem; text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 999px; transition: background 0.2s var(--t); }
.head-nav a:hover { background: rgba(239, 233, 219, 0.1); }
.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(2, 10, 7, 0.66); 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(--emerald); 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; }
.drawer__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dk); background: transparent; color: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer__list a { display: block; padding: 0.8rem 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-decoration: none; border-bottom: 1px solid var(--line-dk); }
.drawer__list a:hover { color: var(--signal); }
.drawer__cta { align-self: flex-start; }

/* Hero */
.hero { padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.6rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(1.8rem, 5vw, 3.4rem); align-items: center; }
@media (min-width: 920px) { .hero__grid { grid-template-columns: 1fr 0.92fr; } .hero__media { grid-column: 1; grid-row: 1; } .hero__copy { grid-column: 2; grid-row: 1; } }
.hero__title { font-size: clamp(2.6rem, 7.4vw, 4.6rem); line-height: 0.98; margin: 0 0 1rem; text-wrap: balance; }
@media (min-width: 920px) { .hero__title { max-width: 13ch; } }
.lead { color: rgba(239, 233, 219, 0.86); font-size: 1.08rem; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 1.4rem; }
.demo-note { font-family: var(--mono); font-size: 0.72rem; line-height: 1.55; color: rgba(239, 233, 219, 0.7); max-width: 46ch; margin: 0; }
.hero__media { position: relative; }
.hero__media > picture { display: block; border-radius: var(--r4) var(--r4) var(--r4) 120px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.hero__media > picture img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__stack { position: absolute; left: 2%; bottom: -4%; width: 32%; border: 6px solid var(--emerald-deep); border-radius: var(--r3); overflow: hidden; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); transform: rotate(-3deg); }
.hero__stack img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 919px) { .hero__stack { left: auto; right: 4%; width: 42%; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media > picture { animation: plate-in 0.9s var(--t) both; }
  @keyframes plate-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Sheets: broad rounded panels laid on the dark page */
.sheet { margin: 0 clamp(0.4rem, 1.4vw, 1rem) clamp(0.5rem, 1.4vw, 1rem); padding: clamp(2.6rem, 6vw, 5rem) 0; border-radius: var(--r3); }
@media (min-width: 900px) { .sheet { border-radius: var(--r4); } }
.sheet--deep { background: var(--emerald); }
.sheet--paper { background: var(--paper); color: var(--ink); }
.head { max-width: 60ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.7rem; }
.sec-intro { opacity: 0.86; max-width: 58ch; margin: 0; }

/* Dial */
.ano__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .ano__grid { grid-template-columns: 340px 1fr; } }
.dial { display: grid; justify-items: center; gap: 1rem; }
.dial__ring { position: relative; width: min(76vw, 320px); aspect-ratio: 1; touch-action: none; cursor: grab; border-radius: 50%; user-select: none; }
.dial__ring.is-drag { cursor: grabbing; }
.dial__scale { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.dial__track { stroke: rgba(239, 233, 219, 0.3); }
.dial__ticks { stroke: var(--mint); opacity: 0.6; }
.dial__ring::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; background: radial-gradient(circle at 50% 28%, var(--emerald-soft), var(--emerald-deep) 74%); box-shadow: inset 0 0 0 1px rgba(239, 233, 219, 0.16), 0 22px 50px rgba(0, 0, 0, 0.5); }
.dial__needle { position: absolute; left: 50%; bottom: 50%; width: 18px; height: 40%; margin-left: -9px; background: radial-gradient(circle at 50% 9px, var(--signal) 0 9px, transparent 9.5px), linear-gradient(to top, var(--signal), #ffbd8f) 50% 100% / 8px calc(100% - 6px) no-repeat; border-radius: 9px; transform-origin: 50% 100%; transform: rotate(var(--angle, 0deg)); transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1); z-index: 2; }
.dial__ring.is-drag .dial__needle { transition: none; }
.dial__hub { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 0.1rem; z-index: 3; pointer-events: none; }
.dial__num { font-family: var(--mono); font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 500; line-height: 1; }
.dial__month { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--signal); }
.dial__step { display: flex; gap: 0.8rem; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.mbtn { min-height: 46px; border: 1.5px solid var(--line-dk); border-radius: 999px; background: transparent; color: rgba(239, 233, 219, 0.9); font-family: var(--mono); font-size: 0.78rem; cursor: pointer; transition: background 0.18s var(--t), color 0.18s var(--t), border-color 0.18s var(--t); }
.mbtn:hover { border-color: var(--mint); }
.mbtn[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #22100a; }
.dial__panel { margin-top: 1rem; }
.month { background: var(--emerald-deep); border-radius: var(--r3); padding: clamp(1.1rem, 3vw, 1.7rem); }
.dial__panel.is-enhanced > .month { display: none; }
.dial__panel.is-enhanced > .month.is-on { display: block; animation: fade 0.4s var(--t); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.month__title { font-size: 1.6rem; margin: 0 0 0.8rem; }
.dial__panel:not(.is-enhanced) > .month + .month { margin-top: 0.8rem; }
.oblig { display: grid; gap: 0.6rem; }
.oblig li { display: flex; gap: 0.7rem; align-items: baseline; color: rgba(239, 233, 219, 0.94); }
.oblig__tag { flex: none; min-width: 5.6rem; text-align: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; color: var(--ink); background: var(--mint); }
.oblig__tag--iva { background: #ffd27a; } .oblig__tag--irc { background: #a7c8ff; } .oblig__tag--irs { background: #f3b8d0; } .oblig__tag--fecho { background: #cfe4d8; } .oblig__tag--retencoes { background: #ffcaa8; }
.mine { margin: 1.1rem 0 0; padding: 0.8rem 1rem; border-radius: var(--r2); background: rgba(127, 224, 176, 0.12); font-size: 0.95rem; }
.mine b { color: var(--mint); }
.dial__note { font-family: var(--mono); font-size: 0.72rem; line-height: 1.55; color: rgba(239, 233, 219, 0.74); margin: 1.4rem 0 0; max-width: 80ch; }

/* Services */
.servicos__grid { display: grid; gap: clamp(1.8rem, 5vw, 3.4rem); }
@media (min-width: 900px) { .servicos__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } .servicos__aside { position: sticky; top: 92px; } }
.servicos__photo { margin-top: clamp(1.4rem, 4vw, 2.2rem); }
.servicos__photo picture { display: block; border-radius: var(--r3); overflow: hidden; }
.servicos__photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; }
.svcs { display: grid; gap: 0.6rem; align-content: start; }
.svc, .faq__item { background: var(--paper-2); border-radius: var(--r2); }
.svc summary, .faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; min-height: 56px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; border-radius: var(--r2); }
.svc summary::-webkit-details-marker, .faq__item summary::-webkit-details-marker { display: none; }
.svc summary:hover, .faq__item summary:hover { color: var(--signal-deep); }
.faq__sign { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.6px solid var(--line-lt); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; inset: 50% 6px auto; height: 1.8px; background: currentColor; }
.faq__sign::after { transform: rotate(90deg); transition: transform 0.3s var(--t); }
[open] > summary .faq__sign::after { transform: rotate(0deg); }
.svc__body, .faq__body { padding: 0 1.2rem 1.2rem; max-width: 62ch; }
.svc__body p, .faq__body p { margin: 0 0 0.8rem; }
.dots { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; }
.dots li { position: relative; padding-left: 1.3rem; font-size: 0.96rem; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.svc__need { font-size: 0.92rem; padding: 0.7rem 1rem; background: rgba(255, 255, 255, 0.55); border-radius: var(--r1); margin: 0 !important; }

/* Builder */
.build { display: grid; gap: 0.8rem; }
@media (min-width: 900px) { .build { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.build__form, .build__out { border-radius: var(--r3); padding: clamp(1.3rem, 3vw, 2rem); }
.build__form { background: var(--paper); color: var(--ink); display: grid; gap: 1.2rem; align-content: start; }
.build__out { background: var(--emerald-deep); display: grid; gap: 1rem; align-content: start; }
.build__title { font-size: 1.6rem; }
.scope { display: grid; gap: 0.7rem; }
.scope li { display: grid; gap: 0.15rem; padding: 0.8rem 1rem; border-radius: var(--r2); background: rgba(239, 233, 219, 0.07); }
.scope b { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mint); }
.build__note { font-family: var(--mono); font-size: 0.72rem; color: rgba(239, 233, 219, 0.72); margin: 0; }
.build__out .btn { justify-self: start; }
.label { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 0.9rem; }
.stepper output { min-width: 2.4ch; text-align: center; font-family: var(--mono); font-size: 1.5rem; }
.stepper .stepbtn:hover { background: var(--signal); }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--signal-deep); padding: 0; }
.field__hint { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }

/* Example */
.exemplo__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 900px) { .exemplo__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.ex__table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper-2); border-radius: var(--r3); overflow: hidden; }
.ex__table th, .ex__table td { padding: 0.95rem 1.2rem; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line-lt); }
.ex__table thead th { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.ex__table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ex__table tr:last-child th, .ex__table tr:last-child td { border-bottom: 0; }
.ex__sum th, .ex__sum td { background: var(--signal); color: #22100a; font-weight: 600; }
.ex__note { font-size: 0.9rem; color: var(--ink-soft); margin: 1rem 0 0; max-width: 60ch; }

/* Gallery: an uneven mosaic of rounded photographs */
.shots { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots li { display: grid; gap: 0.5rem; align-content: start; }
.shots__a { grid-column: span 2; }
.shot { display: block; border-radius: var(--r3); overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s var(--t); }
.shots__a .shot img { aspect-ratio: 2 / 1; }
.shot:hover img { transform: scale(1.05); }
.cap { margin: 0; font-family: var(--mono); font-size: 0.72rem; color: rgba(239, 233, 219, 0.78); padding-left: 0.4rem; }
.lb { width: min(96vw, 1100px); max-height: 94vh; border: 0; border-radius: var(--r3); background: var(--emerald-deep); color: var(--paper); padding: 1rem; }
.lb::backdrop { background: rgba(2, 10, 7, 0.82); }
.lb__bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; }
.lb__bar .btn:first-of-type { margin-left: auto; }
.lb__stage { overflow: auto; max-height: 68vh; border-radius: var(--r2); }
.lb__stage img { width: 100%; height: auto; }
.lb__stage.is-zoom img { width: 220%; max-width: none; }
.lb__cap { font-family: var(--mono); font-size: 0.8rem; margin: 0.8rem 0 0; }

/* Method */
.metodo__grid { display: grid; gap: clamp(1.8rem, 5vw, 3.4rem); align-items: center; }
@media (min-width: 900px) { .metodo__grid { grid-template-columns: 1.02fr 0.98fr; } }
.metodo__photo picture { display: block; border-radius: var(--r4); overflow: hidden; }
.metodo__photo img { width: 100%; height: auto; aspect-ratio: 3 / 2.2; object-fit: cover; }
.steps { display: grid; gap: 0.5rem; margin-top: 1.4rem; }
.step { border-radius: var(--r2); background: var(--paper-2); }
.step.is-on { background: #fff7e6; box-shadow: 0 0 0 2px var(--signal); }
.step__btn { display: flex; align-items: center; gap: 0.9rem; width: 100%; min-height: 56px; padding: 0.6rem 1.1rem; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.25rem; border-radius: var(--r2); }
.step__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.9rem; font-weight: 500; }
.step.is-on .step__num { background: var(--signal-deep); }
.step p { margin: 0; padding: 0 1.1rem 1.1rem 4rem; color: var(--ink-soft); max-width: 56ch; }

/* Checklist */
.levar__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 900px) { .levar__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.levar__count { font-family: var(--mono); margin: 1.3rem 0 0.8rem; color: var(--mint); }
.check { display: grid; gap: 0.5rem; }
.check .opt { background: var(--emerald-deep); border-radius: var(--r2); padding: 0.55rem 1rem; }
.check .opt:has(input:checked) { background: rgba(127, 224, 176, 0.16); }
.check .opt:has(input:checked) span { text-decoration: line-through; text-decoration-color: var(--mint); }

/* FAQ */
.perguntas__grid { display: grid; gap: clamp(1.8rem, 5vw, 3.4rem); }
@media (min-width: 900px) { .perguntas__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } .perguntas__aside { position: sticky; top: 92px; } }
.faq { display: grid; gap: 0.6rem; }
.faq__item summary { font-size: 1.08rem; }

/* Contact */
.contacto__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 860px) { .contacto__grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; } }
.where { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.where div { padding: 0.9rem 1.1rem; border-radius: var(--r2); background: var(--emerald-deep); }
.where dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mint); }
.form, .form__done { background: var(--paper); color: var(--ink); padding: clamp(1.3rem, 3vw, 1.9rem); 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.45rem; }
.field > label, .field legend { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); padding: 0; }
.field input:not([type="radio"], [type="checkbox"], [type="range"]), .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.6px solid rgba(8, 32, 26, 0.4); border-radius: var(--r2); 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: rgba(8, 32, 26, 0.7); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; border-radius: var(--r2); }
.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='%2346604f' 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: #a81f0c; box-shadow: inset 0 0 0 1px #a81f0c; }
.opts { display: grid; gap: 0.1rem; }
.opts--pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opts--pills .opt { border: 1.6px solid var(--line-lt); border-radius: 999px; padding: 0.1rem 1.1rem 0.1rem 0.8rem; background: #fff; }
.opts--pills .opt:has(input:checked) { border-color: var(--signal-deep); background: #fff2e8; }
.opt { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; font-size: 0.95rem; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--text); color: inherit; }
.opt input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid rgba(8, 32, 26, 0.5); background: #fff; cursor: pointer; transition: border-color 0.18s var(--t), background-color 0.18s var(--t); }
.opt input[type="radio"] { border-radius: 50%; }
.opt input[type="checkbox"] { border-radius: 7px; }
.opt input:hover { border-color: var(--signal-deep); }
.check .opt input { background: transparent; border-color: var(--mint); }
.opt input:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 2px; }
.check .opt input:focus-visible { outline-color: var(--mint); }
.opt input[type="checkbox"]:checked { background-color: var(--signal); border-color: var(--signal-deep); 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='%2322100a' 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(--signal); border-color: var(--signal-deep); background-image: radial-gradient(circle at center, #22100a 0 27%, transparent 29%); }
.opt input[aria-invalid="true"] { border-color: #a81f0c; }
.field__err { margin: 0; font-size: 0.86rem; color: #a51c0c; font-weight: 500; }
.field__err::before { content: "Erro: "; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }
.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; }
.form__done .btn--ghost { color: var(--ink); border-color: var(--line-lt); }

.foot { padding: 2.4rem 0 3rem; }
.foot__in { display: grid; gap: 1rem; }
.foot__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; }
.foot__note { font-family: var(--mono); font-size: 0.72rem; line-height: 1.6; color: rgba(239, 233, 219, 0.72); max-width: 74ch; margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.foot__nav a { font-family: var(--mono); font-size: 0.78rem; text-decoration: none; padding: 0.5rem 0; }
.foot__nav a:hover { color: var(--signal); }

@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: 1px solid var(--line-dk); background: transparent; cursor: pointer; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { content: ""; display: block; width: 20px; height: 2px; background: var(--paper); 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; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .step p { padding-left: 1.1rem; }
}
body.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .stag > * { opacity: 1; transform: none; transition: none; }
  .dial__needle, .btn, .mbtn, .drawer__panel, .drawer__scrim, .faq__sign::after, .skip, .shot img { transition: none; }
  .dial__panel.is-enhanced > .month.is-on { animation: none; }
  .js .hero__media > picture { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: var(--emerald-deep); 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:#0C2A22;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-mark circle:first-child{stroke-dasharray:1;stroke-dashoffset:1;animation:ld-draw .6s ease-out forwards}.ld-hand{transform-origin:32px 32px;animation:ld-spin .8s ease-in-out}@keyframes ld-draw{to{stroke-dashoffset:0}}@keyframes ld-spin{to{transform:rotate(360deg)}}@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}}
