/* D8.2 Mostruário — the studio's shared system. Every studio page loads this file first.
   Paper is where Pedro talks; work is always mounted on a board (sun mat for the link cards, sand board for
   whole screens and detail crops); navy is where a decision is made (deal card, closing contact block, footer).
   Fraunces in one cut for the voice, Figtree for everything else.
   home.css adds the home page's sections; pages.css adds the case pages, the legal page and the 404. */

@font-face { font-family: "Fraunces"; src: url(assets/fonts/fraunces-var.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(assets/fonts/fraunces-italic-var.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(assets/fonts/figtree-var.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
/* Fallbacks, measured against the real fonts (width ratio on the page's own strings).
   Liberation Serif/Sans are metric-compatible stand-ins for Times New Roman/Arial on Linux. */
@font-face { font-family: "Fraunces Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("LiberationSerif"); size-adjust: 94.4%; ascent-override: 103.6%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("LiberationSerif-Italic"); size-adjust: 89.2%; ascent-override: 109.6%; descent-override: 28.6%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); size-adjust: 100%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --paper: #FBF7EF;
  --white: #FFFFFF;
  --ink: #171A3A;
  --ink-2: #4A4E6A;
  --edge: #6F7391;
  --line: #E2DACB;
  --sun: #FFC83A;
  --board: #EBE3D5;
  --red: #D9482B;
  --red-ink: #B23A1F;
  --on-ink-2: #DADCEA;
  --hair: rgba(23, 26, 58, .14);
  --on-ink-rule: rgba(255, 255, 255, .56);

  --serif: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --sans: "Figtree", "Figtree Fallback", Arial, sans-serif;

  --t-display: clamp(2.625rem, 1.557rem + 4.381vw, 5.5rem);
  --t-price: clamp(4.5rem, 3.107rem + 5.714vw, 8.25rem);
  --t-title: clamp(1.875rem, 1.457rem + 1.714vw, 3rem);
  --t-pull: clamp(1.375rem, 1.19rem + 0.76vw, 1.875rem);
  --t-q: clamp(0.9375rem, 0.914rem + 0.095vw, 1rem);
  --t-h3: clamp(1.1875rem, 1.141rem + 0.19vw, 1.3125rem);
  --t-lead: clamp(1.125rem, 1.055rem + 0.286vw, 1.3125rem);
  --t-body: clamp(1.0625rem, 1.039rem + 0.095vw, 1.125rem);
  --t-meta: clamp(0.875rem, 0.852rem + 0.095vw, 0.9375rem);

  --pad: 20px;
  --gap: 16px;
  --r: 20px;
  --sec: 72px;
  --bar-h: 64px;
  --shadow: 0 1px 0 rgba(23, 26, 58, .08), 0 18px 40px -18px rgba(23, 26, 58, .45);
  --shadow-card: 0 1px 0 rgba(23, 26, 58, .06), 0 10px 22px -14px rgba(23, 26, 58, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 600px) { :root { --pad: 32px; --gap: 24px; } }
@media (min-width: 960px) { :root { --pad: 48px; --sec: 120px; --r: 28px; --bar-h: 80px; } }
@media (max-width: 359px) { :root { --t-display: 2.25rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; }
a { color: inherit; }
strong, b { font-weight: 650; }
button, input { font: inherit; color: inherit; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--white); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(1240px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.i { flex: none; display: inline-block; }
.i-ext { transform: rotate(-45deg); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 650 var(--t-meta)/1.2 var(--sans);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Type roles ---------- */
.display, .title, .price {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
}
.display { font-size: var(--t-display); line-height: 1; letter-spacing: -.01em; }
.title { display: block; font-size: var(--t-title); line-height: 1.1; letter-spacing: -.005em; font-weight: 420; }
.display em, .title em { font-style: italic; color: var(--red); }
.title em { margin-left: .04em; }
@media (min-width: 960px) {
  .display, .title, .price { font-variation-settings: "opsz" 72; }
  .display { letter-spacing: -.012em; }
  .title { line-height: 1.08; letter-spacing: -.012em; font-weight: 400; }
}
.q { display: block; margin-bottom: 12px; font: 600 var(--t-q)/1.3 var(--sans); color: var(--red-ink); }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34em; }
.body { max-width: 36em; }
h3 { font: 650 var(--t-h3)/1.25 var(--sans); }
.kicker { font-size: var(--t-meta); line-height: 1.4; font-weight: 600; color: var(--ink-2); }
.label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: var(--t-meta); line-height: 1.4; font-weight: 500; color: var(--ink-2); }
.label b { font-size: var(--t-h3); line-height: 1.25; font-weight: 700; color: var(--ink); }

/* One header grammar: question, title, optional lead. Always above its content. */
.sec-head { display: block; max-width: 760px; margin-bottom: 40px; }
.sec-head .lead { margin-top: 20px; }
@media (min-width: 960px) { .sec-head { margin-bottom: 56px; } }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 650 1.0625rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 16px; height: 16px; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-big { min-height: 60px; padding: 0 32px; font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.link-go, .link-ext { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link-go .i, .link-ext .i { width: 16px; height: 16px; }
.i-down { transform: rotate(90deg); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }

@media (hover: hover) {
  .btn:hover { background: #262A52; border-color: #262A52; color: var(--white); }
  .btn-sun:hover { background: #FFD766; border-color: #FFD766; color: var(--ink); }
  .link:hover { text-decoration-thickness: 2.5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out; }
  .btn .i-arrow, .link-go .i-arrow { transition: transform 160ms ease-out; }
  .btn:active { transform: scale(.98); }
  .link { transition: text-decoration-thickness 160ms ease-out; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover .i-arrow, .link-go:hover .i-arrow { transform: translateX(3px); }
}

/* ---------- Bar ---------- */
html { scroll-padding-top: 16px; }
.page-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--bar-h);
  padding-inline: max(var(--pad), calc((100% - 1240px) / 2));
  background: var(--paper);
}
.page-top.is-tucked { transform: translateY(-100%); }
body.menu-open .page-top { transform: none; }
.bar-mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; text-decoration: none; white-space: nowrap; }
.bar-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
/* shows x 15–81%, y 8–75% of the portrait: the face fills the circle */
.bar-avatar img { width: 150%; max-width: none; margin: -12% 0 0 -22%; }
.mark-name { font: 500 1.25rem/1 var(--serif); letter-spacing: -.01em; }
.bar-nav { display: none; gap: 28px; }
.bar-nav a {
  padding: 10px 0;
  font: 500 .9375rem/1.2 var(--sans);
  white-space: nowrap;
  text-decoration: underline 1.5px transparent;
  text-underline-offset: 6px;
}
.bar-nav a:hover { text-decoration-color: currentColor; }
.page-top .btn-small { display: none; }
.menu-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 650 .9375rem/1 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 960px) {
  .bar-nav { display: flex; }
  .page-top .btn-small { display: inline-flex; }
  .menu-button { display: none; }
}
@media (min-width: 1200px) {
  .bar-nav { gap: 36px; }
  .bar-nav a { font-size: 1rem; }
}
@media (min-width: 960px) and (max-width: 1139px) {
  .page-top { gap: 20px; }
  .bar-nav { gap: 20px; }
}
@media (max-width: 359px) { .mark-name { font-size: 1.125rem; white-space: nowrap; } }
@media (prefers-reduced-motion: no-preference) {
  .page-top { transition: transform 220ms var(--ease); }
  .bar-nav a { transition: text-decoration-color 160ms ease-out; }
}

/* ---------- Menu sheet (S, M) ---------- */
.sheet {
  position: fixed;
  inset: var(--bar-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 8px var(--pad) calc(16px + env(safe-area-inset-bottom));
  background: var(--paper);
  overflow-y: auto;
}
.sheet a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-top: 1.5px solid var(--ink);
  font: 400 1.875rem/1.1 var(--serif);
  text-decoration: none;
}
.sheet a:not(.btn) .i { width: 24px; height: 24px; }
.sheet a:not(.btn):focus-visible { outline-offset: -3px; }
.sheet .btn { margin-top: auto; width: 100%; }
.sheet a:nth-last-child(2) { margin-bottom: 32px; }
@media (min-width: 960px) { .sheet { display: none !important; } }

/* ---------- Plate: a whole screen on a board ---------- */
.plate { display: block; }
.mat { background: var(--board); border-radius: var(--r); padding: clamp(12px, 4.4%, 32px); box-shadow: inset 0 0 0 1px var(--hair); }
.shot { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
/* Quintal: the capture without its demo notice strip (y 0–41 of 1600×1000) */
.shot-quintal { overflow: hidden; aspect-ratio: 1600 / 958; }
.shot-quintal img { width: 100%; margin-top: -2.625%; }
.plate figcaption { margin-top: 12px; font-size: var(--t-meta); line-height: 1.4; font-weight: 500; color: var(--ink-2); }
.mat-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: clamp(14px, 8%, 56px); align-items: start; }
.screen {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 600 / 1298;
  border-radius: 12.5% / 5.78%;
  background: var(--white);
  box-shadow: var(--shadow);
}
/* The Taurifer files hold a rendered phone body: only the screen is shown. */
.screen img { position: absolute; max-width: none; height: auto; }
/* shows x 105–805, y 145– of 903×1832: the tilted top-right bezel stays outside */
.screen-today img { width: 129%; left: -15%; top: -9.57%; }
/* shows x 56–846, y 50– of 903×1832 */
.screen-focus img { width: 114.3%; left: -7.09%; top: -2.93%; }
@media (max-width: 599px) {
  .mat-phones { grid-template-columns: minmax(0, 264px); }
  .mat-phones .screen-focus, .cap-l { display: none; }
}

/* ---------- Hero mat: three white link cards, label above the image ---------- */
.mat.mat-tiles { background: var(--sun); padding: 10px; box-shadow: none; }
.mat-tiles, .tile-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-card); -webkit-tap-highlight-color: transparent; }
.tile-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 2px; line-height: 1.4; }
.tile-txt { min-width: 0; }
.tile-cap b { margin-right: 6px; font-size: var(--t-meta); font-weight: 700; }
.tile-txt span { font-size: .8125rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tile-cap .i { width: 16px; height: 16px; margin-top: 2px; }
.tile-shot { display: block; position: relative; overflow: hidden; border-radius: 9px; background: var(--bg); aspect-ratio: var(--ar); }
.tile-shot::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--hair); border-radius: inherit; pointer-events: none; }
/* the image is placed by the centre of its source rectangle: --w = asset width / rectangle width,
   --cx = centre x / asset width, --cy = centre y / asset height */
.tile-shot img { position: absolute; left: 50%; top: 50%; width: var(--w); max-width: none; height: auto; transform: translate(calc(var(--cx) * -1), calc(var(--cy) * -1)); }
/* marcela-site-hero 1600×1000: x 860–1590, y 100–960. Portrait, seal and both chips; no headline, no menu. */
/* top-anchored at y 100 (10% of the asset height): when the card is stretched, only empty ground is added below */
.ts-marcela { --bg: #EFE9E2; --ar: 730 / 860; --w: 219.18%; --cx: 76.5625%; }
.ts-marcela img { top: 0; transform: translate(calc(var(--cx) * -1), -10%); }
/* quintal-site-mobile 600×1298: full width, bottom-anchored with 33px of the site's teal under the last line.
   Below 600px it shows y 791–1298 (wordmark, paragraph and 119px of the photo). From 600px up its base is
   y 861–1298 and it grows to fill the height left beside the Marcela card, showing more of the photo. */
.ts-quintal { --bg: #06525D; --ar: 600 / 540; }
.ts-quintal img { left: 0; top: auto; bottom: 0; width: 100%; margin-bottom: 5.5%; transform: none; }
/* taurifer-focus 903×1832: x 103–815, y 1322–1712. Load, reps, RIR, the steppers and the button. */
.ts-taurifer { --bg: #1C1B17; --ar: 712 / 390; --w: 126.83%; --cx: 50.83%; --cy: 82.81%; }
.tile:focus-visible { outline-offset: 3px; }
@media (hover: hover) { .tile:hover b { text-decoration: underline 1.5px; text-underline-offset: 3px; } }
@media (prefers-reduced-motion: no-preference) {
  .tile { transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
  .tile .i-arrow { transition: transform 160ms ease-out; }
  .tile:active { transform: scale(.99); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(23, 26, 58, .06), 0 18px 30px -16px rgba(23, 26, 58, .5); }
  .tile:hover .i-arrow { transform: translateX(3px); }
}
@media (min-width: 600px) {
  .mat.mat-tiles { padding: 14px; }
  .mat-tiles { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
  .tile-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .tile { gap: 10px; padding: 12px; border-radius: 18px; }
  .tile-grow { flex: 1; }
  .tile-shot { border-radius: 10px; }
  .ts-marcela, .ts-quintal { flex: 1 0 auto; }
  .ts-quintal { --ar: 600 / 470; }
}

/* ---------- Detail: a crop of a real capture, mounted on the board like a plate ---------- */
.details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.details li { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.crop { display: block; padding: 10px 12px 12px; border-radius: var(--r); background: var(--board); box-shadow: inset 0 0 0 1px var(--hair); cursor: default; }
.crop-tag { display: block; margin-bottom: 8px; padding: 0 2px; font-size: var(--t-meta); line-height: 1.4; font-weight: 500; color: var(--ink-2); }
.crop-tag b { margin-right: 6px; font-weight: 700; color: var(--ink); }
.crop-view { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; border-radius: 10px; background: var(--bg); aspect-ratio: var(--card); box-shadow: var(--shadow-card); }
.crop-view::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--hair); border-radius: inherit; pointer-events: none; }
.crop-in { flex: none; display: block; position: relative; overflow: hidden; width: var(--ww, 100%); aspect-ratio: var(--ar); }
/* same placement rule as the hero cards: --w = asset width / rectangle width, --cx and --cy = rectangle centre */
.crop-in img { position: absolute; left: 50%; top: 50%; width: var(--w); max-width: none; height: auto; transform: translate(calc(var(--cx) * -1), calc(var(--cy) * -1)); }
/* source rectangles: x, y, width, height in asset pixels */
.crop-m1 { --bg: #26221D; --card: 2 / 1; --ww: 76%; --ar: 200 / 114; --w: 700%; --cx: 12.964%; --cy: 77.71%; }      /* 1400×1162: 81.5, 846, 200, 114 */
.crop-m2 { --bg: #EFE9E2; --card: 3 / 2; --ar: 3 / 2; --w: 100%; --cx: 50%; --cy: 57.94%; }                         /* 600×1298: 0, 552, 600, 400 */
.crop-m3 { --bg: #F5EFE8; --card: 12 / 7; }
.crop-m3a { --ar: 360 / 86; --w: 388.89%; --cx: 50.714%; --cy: 51.61%; }                                            /* 1400×496: 530, 213, 360, 86 */
.crop-m3b { --ar: 360 / 86; --w: 388.89%; --cx: 80%; --cy: 51.61%; }                                                /* 1400×496: 940, 213, 360, 86 */
.crop-q1 { --bg: #06525D; --card: 2 / 1; --ww: 82%; --ar: 2 / 1; --w: 555.56%; --cx: 57.75%; --cy: 57%; }                      /* 1600×1000: 780, 498, 288, 144 */
.crop-q2 { --bg: #F6F9F8; --card: 3 / 2; --ar: 3 / 2; --w: 100%; --cx: 50%; --cy: 65.18%; }                         /* 600×1298: 0, 646, 600, 400 */
.crop-q3 { --bg: #F6F9F8; --card: 2 / 1; --ar: 456 / 181; --w: 307.02%; --cx: 74.857%; --cy: 67.93%; }              /* 1400×700: 820, 385, 456, 181 */
.details p { line-height: 1.45; max-width: 26em; }
@media (min-width: 600px) and (max-width: 1139px) {
  .details li { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: center; }
}
@media (min-width: 1140px) {
  .details { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .details li { gap: 16px; }
  .crop { padding: 12px 16px 16px; }
  .crop-tag { margin-bottom: 10px; }
  .crop-view { aspect-ratio: 3 / 2; gap: 10px; }
}

/* ---------- Ficha: the four facts (hero) and the four ways (contact) ---------- */
.ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.ficha > div { min-width: 0; padding: 12px 0 13px; }
.ficha > div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.ficha > div:nth-child(even) { padding-left: 16px; }
.ficha > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.ficha dt { font: 600 var(--t-meta)/1.3 var(--sans); color: var(--red-ink); }
.ficha dd { margin-top: 3px; font: 650 1.0625rem/1.3 var(--sans); }
.ficha a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (min-width: 960px) {
  .ficha { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ficha > div, .ficha > div:nth-child(odd), .ficha > div:nth-child(even) { padding: 16px 20px 18px; border-top: 0; border-right: 1px solid var(--line); }
  .ficha > div:first-child { padding-left: 0; }
  .ficha > div:last-child { border-right: 0; }
  .ficha dd { font-size: 1.3125rem; }
}

/* ---------- Details: one row grammar for the terms and the FAQ ---------- */
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }
.circle { flex: none; position: relative; width: 32px; height: 32px; border: 1.5px solid currentColor; border-radius: 50%; }
.circle::before, .circle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.circle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .circle { background: var(--ink); border-color: var(--ink); color: var(--white); }
details[open] > summary .circle::after { display: none; }
@media (hover: hover) {
  details:not([open]) > summary:hover .circle { background: var(--line); }
}
@media (prefers-reduced-motion: no-preference) {
  .circle { transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
}

/* ---------- Contato ---------- */
.contact { margin-top: var(--sec); padding-block: 64px 32px; background: var(--ink); color: var(--white); }
.contact .q { color: var(--sun); }
.contact .display em { color: var(--sun); }
.contact .lead { margin-top: 24px; color: var(--on-ink-2); }
.contact :focus-visible { outline-color: var(--white); }
.contact .ficha { --line: rgba(255, 255, 255, .24); border-color: var(--on-ink-rule); }
.contact .ficha dt { color: var(--sun); }
.contact .actions { margin-top: 28px; }
.contact .btn-big { width: 100%; }
.contact .ficha { margin-top: 48px; }
@media (max-width: 599px) {
  .contact .ficha { grid-template-columns: minmax(0, 1fr); }
  .contact .ficha > div, .contact .ficha > div:nth-child(odd), .contact .ficha > div:nth-child(even) { padding: 12px 0 13px; border-right: 0; }
  .contact .ficha > div + div { border-top: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .contact { padding-block: 104px 48px; }
  .contact .btn-big { width: auto; }
  .contact .ficha { margin-top: 72px; }
  .contact .ficha dd { font-size: 1.125rem; }
}

/* ---------- Footer ---------- */
/* Plain text is the soft white; a link is white, heavier and underlined, so the two never look alike. */
.foot { background: var(--ink); color: var(--on-ink-2); font: 500 var(--t-meta)/1.4 var(--sans); }
.foot-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot a { color: var(--white); font-weight: 600; text-decoration: underline 1.5px rgba(255, 255, 255, .5); text-underline-offset: 5px; }
.foot a:hover, .foot a:focus-visible { text-decoration-color: currentColor; }
.foot :focus-visible { outline-color: var(--white); }
@media (prefers-reduced-motion: no-preference) { .foot a { transition: text-decoration-color 160ms ease-out; } }
/* S: each link is a 44px row of its own width; the list is two columns so a thumb does not hit two at once. */
@media (max-width: 599px) {
  .foot-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 20px 24px; }
  .foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-block: 4px; }
  .foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
}

/* ---------- Mobile WhatsApp bar ---------- */
.wa-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
  transform: translateY(100%);
  visibility: hidden;
}
.wa-bar.is-visible { transform: none; visibility: visible; }
.wa-bar.is-visible.is-tucked { transform: translateY(100%); }
@media (prefers-reduced-motion: no-preference) {
  .wa-bar { transition: transform 220ms var(--ease), visibility 0s linear 220ms; }
  .wa-bar.is-visible { transition: transform 220ms var(--ease), visibility 0s; }
}
@media (min-width: 960px) { .wa-bar { display: none; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
    transition-delay: calc(var(--d, 0) * 70ms);
  }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
