/* ============ Tokens ============ */
:root {
  --paper: #ffffff;
  --mist: #f2f4f7;
  --line: #dde2ea;
  --brand: #0073e6;      /* azul SM, um tom mais escuro (contraste AA com branco) */
  --brand-deep: #0f4070; /* azul escuro SM */
  --ink: #1d1d1d;
  --ink-soft: #4f4f4f;
  --blue: #0068d1;       /* azul SM para texto em fundo claro */
  --blue-deep: #0f4070;
  --orange: #ffac01;
  --orange-hover: #f09c00;
  --kraft: #c9a27a;
  --kraft-dark: #a8805a;

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* z-index scale */
  --z-header: 40;
  --z-float: 50;

  --header-h: 72px;
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.tabular { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: calc(24px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-right)); }
@media (min-width: 768px) { .container { padding-inline: calc(32px + env(safe-area-inset-left)) calc(32px + env(safe-area-inset-right)); } }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--brand-deep); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
  z-index: var(--z-float); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

section { padding-block: 72px; }
@media (min-width: 1024px) { section { padding-block: 112px; } }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
.section-lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.125rem; max-width: 60ch; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }
.section-head-row > div { max-width: 680px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  padding-top: env(safe-area-inset-top);
}
.site-header :focus-visible { outline-color: var(--orange); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { width: 140px; height: auto; }
.main-nav { margin-left: auto; }
.menu { list-style: none; display: flex; gap: 4px; }
.menu a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9375rem;
}
.menu a:hover { background: rgb(255 255 255 / 0.1); }
.menu-login { display: none; }
.menu-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-login { color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.link-login:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .main-nav { order: 3; margin-left: 0; }
  .header-actions { margin-left: auto; }
  .link-login { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 8px 12px;
    background: transparent; border: 1px solid rgb(255 255 255 / 0.3); border-radius: var(--radius-sm);
    font: 600 0.9375rem var(--font-body); color: #fff; cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; position: relative;
  }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -5px; }
  .menu-toggle-bars::after { top: 5px; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--brand); border-bottom: 1px solid rgb(255 255 255 / 0.2);
    padding: 8px 16px 16px; box-shadow: var(--shadow-lg);
  }
  .menu[hidden] { display: none; }
  .menu a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); border-radius: 0; }
  .menu-login { display: block; }
  .menu-login a { color: #fff; text-decoration: underline; }
}
@media (max-width: 479px) {
  .brand img { width: 112px; }
  .header-inner { gap: 12px; }
  .header-actions .btn { display: none; }
  .main-nav { margin-left: auto; }
}

/* ============ Hero ============ */
.hero { padding-block: 48px 72px; }
@media (min-width: 1024px) { .hero { padding-block: 72px 96px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

.hero-kicker { color: var(--blue); font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); line-height: 1.02; }
.hero-lead { margin-top: 24px; font-size: 1.1875rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px;
  margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dt { font-size: 0.875rem; color: var(--ink-soft); }
.hero-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .hero-facts { gap: 20px; } .hero-facts dd { font-size: 1.375rem; } }

.hero-media { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); }
.hero-media figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content;
  background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-md);
}

/* ============ Clients ============ */
.clients { padding-block: 40px; background: var(--mist); }
.clients-inner { display: grid; gap: 24px; }
@media (min-width: 1024px) { .clients-inner { grid-template-columns: 220px 1fr; align-items: center; gap: 48px; } }
.clients-title { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.clients-logos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; align-items: center; }
@media (min-width: 768px) { .clients-logos { grid-template-columns: repeat(6, 1fr); } }
.clients-logos img { height: 40px; width: auto; max-width: 100%; object-fit: contain; margin-inline: auto; filter: grayscale(1); opacity: 0.75; mix-blend-mode: multiply; }

/* ============ White label (the bold moment) ============ */
.whitelabel { background: var(--brand); color: #fff; }
.whitelabel .section-lead { color: #fff; }
.whitelabel :focus-visible, .signup :focus-visible { outline-color: var(--orange); }
.wl-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .wl-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.wl-copy h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }

.checklist { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; color: #fff; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px; border-radius: 50%; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.3em + 4px);
  width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.wl-try { margin-top: 40px; padding: 20px; border: 1px solid rgb(255 255 255 / 0.35); border-radius: var(--radius); background: rgb(0 0 0 / 0.06); }
.wl-try label { display: block; font-weight: 600; margin-bottom: 10px; }
.wl-try input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 500 1.0625rem var(--font-body);
  border: 2px solid transparent; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.wl-try input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---- 3D box ---- */
.wl-visual { display: grid; justify-items: center; gap: 16px; }
.stage {
  --w: 300px; --h: 200px; --d: 230px;
  position: relative; width: 100%; height: 440px;
  display: grid; place-items: center;
  perspective: 1100px; perspective-origin: 50% 35%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  border-radius: var(--radius-lg);
}
.stage:active { cursor: grabbing; }
.stage:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.box3d {
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(-32deg);
  transition: transform 650ms ease-out;
}
.box3d.is-dragging, .box3d.is-dragging .ground-shadow { transition: none; }

.face {
  position: absolute; left: 50%; top: 50%;
  background: var(--kraft);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
.f-front, .f-back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.f-left, .f-right { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.f-bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }

.f-front { transform: translateZ(calc(var(--d) / 2)); }
.f-back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #bf9770; }
.f-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: #b38b63; }
.f-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: #b38b63; }
.f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #8f6b48; }

/* tape running down the front and back */
.f-front::before, .f-back::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 26%;
  transform: translateX(-50%); background: rgb(255 255 255 / 0.3);
}
.f-front { display: grid; place-items: end center; padding-bottom: 9%; }

.side-marks { position: absolute; inset: 14% 12% auto auto; width: 34%; color: #6b4e33; opacity: 0.7; }

.top-plane {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2));
  transform-style: preserve-3d;
}
.flap {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: #d3ae86; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
  transition: transform 700ms ease-out;
}
.flap-l { left: 0; transform-origin: left center; }
.flap-r { right: 0; transform-origin: right center; }
.flap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32%; background: rgb(255 255 255 / 0.3); }
.flap-l::after { right: 0; }
.flap-r::after { left: 0; }
.box3d.is-open .flap-l { transform: rotateY(-115deg); }
.box3d.is-open .flap-r { transform: rotateY(115deg); }

.contents {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--w) * 0.72); height: calc(var(--h) * 0.78);
  margin: calc(var(--h) * -0.39) 0 0 calc(var(--w) * -0.36);
  background: #fff; border-radius: 8px; padding: 6px;
  transform: translateY(calc(var(--h) * 0.08));
  transition: transform 700ms ease-out;
}
.contents img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.box3d.is-open .contents { transform: translateY(calc(var(--h) * -0.72)); transition-delay: 200ms; }

/* Ground shadow: a plane under the bottom face, so it turns with the box */
.ground-shadow {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--w) * 1.1); height: calc(var(--d) * 1.1);
  margin: calc(var(--d) * -0.55) 0 0 calc(var(--w) * -0.55);
  /* base pose; main.js adds a world-fixed light offset (back-right) */
  transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 + 1px));
  transition: transform 650ms ease-out;
  background: rgb(0 35 90 / 0.3); border-radius: 12px;
  filter: blur(10px); pointer-events: none;
}

.box-label {
  width: 80%; background: #fff; color: var(--ink); border-radius: 6px; padding: 12px 14px;
  display: grid; gap: 6px; text-align: left;
}
.label-row { display: grid; gap: 1px; }
.label-key { font-size: 0.6875rem; color: var(--ink-soft); }
.label-value { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.15; overflow-wrap: anywhere; }
.label-barcode {
  height: 18px; margin-top: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px);
}

.box-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.box-controls .btn { border-color: rgb(255 255 255 / 0.5); color: #fff; }
.box-controls .btn:hover { background: #fff; color: var(--ink); }
.box-controls .btn:focus-visible { outline-color: var(--orange); }
.box-hint { font-size: 0.875rem; color: #fff; }

@media (max-width: 479px) {
  .stage { --w: 210px; --h: 150px; --d: 165px; height: 340px; }
  .box-label { padding: 8px 10px; gap: 4px; }
  .label-value { font-size: 0.875rem; }
  .label-barcode { height: 12px; }
  .contact-list li { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .box3d, .flap, .contents, .ground-shadow { transition: none; }
}

/* ============ How it works (timeline) ============ */
.steps { list-style: none; counter-reset: step; display: grid; }
.steps li { counter-increment: step; position: relative; padding: 0 0 40px 64px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--paper);
}
.steps h3 { font-size: 1.375rem; margin: 4px 0 10px; }
.steps p { color: var(--ink-soft); max-width: 40ch; }

/* line segment from this marker to the next one */
.step-line {
  position: absolute; left: 17px; top: 18px; width: 2px; height: 100%;
  background: var(--line);
}
.step-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform-origin: top; transform: scaleY(1);
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding: 60px 0 0; }
  .steps h3 { margin-top: 0; }
  .step-line { left: 18px; top: 17px; width: calc(100% + 24px); height: 2px; }
  .step-line::after { transform-origin: left; transform: scaleX(1); }
}

/* Reveal: one step at a time, the line fills toward the next.
   Only when JS is on and motion is allowed; otherwise everything is visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .timeline .steps li > :not(.step-line) {
    opacity: 0; transform: translateY(12px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
    transition-delay: calc(var(--i) * 450ms + 120ms);
  }
  .js .timeline .steps li::before {
    opacity: 0; transform: scale(0.6);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    transition-delay: calc(var(--i) * 450ms);
  }
  .js .timeline .step-line::after {
    transform: scaleY(0);
    transition: transform 280ms linear;
    transition-delay: calc(var(--i) * 450ms + 180ms);
  }
  .js .timeline.is-in .steps li > :not(.step-line) { opacity: 1; transform: none; }
  .js .timeline.is-in .steps li::before { opacity: 1; transform: none; }
  .js .timeline.is-in .step-line::after { transform: scaleY(1); }

  @media (min-width: 1024px) {
    .js .timeline .step-line::after { transform: scaleX(0); }
    .js .timeline.is-in .step-line::after { transform: scaleX(1); }
  }
}

/* ============ Services ============ */
.services { background: var(--mist); }
/* Tabs: without JS every panel shows, stacked; with JS only the active one */
.svc { display: grid; gap: 56px; }
.js .svc { gap: 24px; }
.svc-tabs { display: none; }
.js .svc-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  width: 100%; max-width: 560px;
}
.svc-tab {
  min-height: 48px; padding: 8px 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  font: 600 0.9375rem/1.2 var(--font-body); text-wrap: balance;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.svc-tab:hover { color: var(--ink); }
.svc-tab[aria-selected="true"] { background: var(--brand); color: #fff; }
@media (max-width: 479px) { .svc-tab { font-size: 0.8125rem; padding-inline: 6px; } }

.svc-panel { display: grid; gap: 20px; }
.svc-panel[hidden] { display: none; }
.svc-panel:focus-visible { outline-offset: 6px; }
@media (min-width: 1024px) {
  .svc-panel { grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
}
.svc-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.svc-media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1024px) { .svc-media img { aspect-ratio: auto; min-height: 100%; } }

.svc-title { font-size: 1.375rem; margin-bottom: 16px; color: var(--blue-deep); }
.js .svc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svc-cards { list-style: none; display: grid; gap: 12px; }
.svc-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
/* Mobile: one compact list instead of three tall cards, short photo */
@media (max-width: 639px) {
  .svc-panel { gap: 14px; }
  .svc-media img { aspect-ratio: 21 / 9; }
  .svc-cards {
    gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  }
  .svc-card {
    grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 16px;
    border: 0; border-radius: 0; background: transparent;
  }
  .svc-card + .svc-card { border-top: 1px solid var(--line); }
  .svc-card .svc-icon { width: 36px; height: 36px; border-radius: 10px; }
  .svc-card .svc-icon svg { width: 18px; height: 18px; }
  .svc-cards .svc-card h4 { font-size: 1rem; }
  .svc-cards .svc-card p { margin-top: 2px; font-size: 0.875rem; line-height: 1.45; }
}
.svc-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: #e6f1fc; color: var(--blue);
}
.svc-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h4 { margin: 0; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.svc-card p { margin-top: 4px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .js .svc-panel:not([hidden]) { animation: svc-in 260ms ease-out; }
}
@keyframes svc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-tab { transition: none; } }

/* ============ Catalog ============ */
.categories { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .categories { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories { grid-template-columns: repeat(9, 1fr); gap: 12px; } }
.categories li { text-align: center; }
.categories img { width: 100%; max-width: 160px; margin-inline: auto; aspect-ratio: 1; object-fit: contain; }
.categories span { display: block; margin-top: 10px; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.cat-link { display: block; color: var(--ink); text-decoration: none; border-radius: var(--radius); padding-bottom: 4px; }

/* ============ Collections ============ */
.collections { background: var(--mist); }
.calendar {
  list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden;
}
.month { min-height: 132px; padding: 12px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.month:last-child { border-right: 0; }
.month .m { font-weight: 600; color: var(--ink-soft); font-size: 0.875rem; }
.month.has-event { background: #fff4d9; }
.month.has-event .m { color: var(--ink); }
.ev { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
@media (max-width: 1023px) {
  .calendar { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .month:nth-child(6) { border-right: 0; }
  .month:nth-child(-n+6) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .month { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 96px; }
  .month:nth-child(3n) { border-right: 0; }
  .month:nth-child(n+10) { border-bottom: 0; }
}
.calendar-all { margin-top: 16px; color: var(--ink-soft); }
.calendar-all strong { color: var(--ink); }

.feature-collection {
  margin-top: 48px; display: grid; gap: 24px; align-items: center;
  background: var(--paper); border-radius: var(--radius-lg); padding: 24px; overflow: hidden;
}
@media (min-width: 1024px) { .feature-collection { grid-template-columns: 0.8fr 1.2fr; padding: 48px; gap: 48px; } }
.fc-copy h3 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); }
.fc-copy p { margin: 12px 0 28px; color: var(--ink-soft); max-width: 44ch; }

/* ============ Structure ============ */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 220px); }
  .g-large { grid-column: span 2; grid-row: span 2; }
}
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (min-width: 1024px) { .gallery img { aspect-ratio: auto; } }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--paper); color: var(--ink); padding: 6px 12px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
}

/* ============ FAQ ============ */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.faq h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
.faq .section-lead { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg);
  transition: transform 150ms ease-out;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--ink-soft); }

/* ============ Signup ============ */
.signup { background: var(--brand); color: #fff; }
.signup .section-lead { color: #fff; }
.signup-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .signup-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }
.signup h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.contact-list { list-style: none; margin-top: 32px; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid rgb(255 255 255 / 0.3); }
.contact-list span { color: #eaf4ff; font-size: 0.9375rem; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.signup-form {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg);
  padding: 24px; display: grid; gap: 18px;
}
@media (min-width: 768px) { .signup-form { padding: 40px; } }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #b9c3d1; border-radius: var(--radius-sm);
  font: 400 1rem var(--font-body); color: var(--ink); background: #fff;
}
.field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.field-error { color: #c62828; font-size: 0.875rem; min-height: 0; }
.field-error:empty { display: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; min-height: 32px; }
.radios input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-note { font-size: 0.875rem; color: var(--ink-soft); }

/* ============ Footer ============ */
.site-footer { background: var(--brand-deep); color: #fff; padding-block: 48px calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / 0.12); }
.site-footer :focus-visible { outline-color: var(--orange); }
.footer-inner { display: grid; gap: 32px; }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 1fr auto; } }
.footer-inner > div p { margin-top: 12px; color: #d6e6f5; max-width: 44ch; font-size: 0.9375rem; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; font-size: 0.875rem; color: #d6e6f5; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12); }

/* ============ WhatsApp float ============ */
.whats-float {
  position: fixed; z-index: var(--z-float);
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: var(--shadow-lg);
  transition: transform 150ms ease-out;
}
.whats-float:hover { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .btn, .whats-float, .faq summary::after { transition: none; }
}


/* ============ Hover (discreto, só em dispositivos com mouse) ============ */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-media img,
  .gallery img,
  .feature-collection > img,
  .categories img {
    transition: transform 300ms ease-out;
  }
  .hero-media:hover img { transform: scale(1.03); }
  .gallery figure:hover img { transform: scale(1.05); }
  .feature-collection:hover > img { transform: scale(1.02); }

  .cat-link span { transition: color 150ms ease-out; }
  .cat-link:hover img { transform: translateY(-6px); }
  .cat-link:hover span { color: var(--blue); }

  .clients-logos img { transition: filter 200ms ease-out, opacity 200ms ease-out; }
  .clients-logos li:hover img { filter: none; opacity: 1; }

  .btn-primary { transition: background-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out; }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-primary:active { transform: scale(0.98); box-shadow: none; }

  .faq summary { transition: color 150ms ease-out; }
  .faq summary:hover { color: var(--blue); }

  .contact-list a, .site-footer nav a { text-underline-offset: 3px; }
}
