/* ==========================================================================
   Resolve Aí Tech — base do design system
   Identidade: verde de placa de circuito + âmbar de cobre, Archivo condensada,
   rótulos em mono como serigrafia de placa, sombra dura "etiqueta de bancada".
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* paleta fixa */
  --green-950: #06120E;
  --green-900: #0A1A14;
  --green-800: #0C3B2E;
  --green-700: #14574A;
  --amber: #E3A72F;
  --amber-soft: #F3D58C;
  --red: #B3261E;
  --blue: #2A6F97;

  /* semânticos (tema claro) */
  --bg: #EEF1EC;
  --bg-raised: #FFFFFF;
  --bg-sunken: #DEE5DF;
  --text: #0E1F19;
  --text-2: #2B4039;
  --text-3: #4A6158;
  --border: #C5D0CA;
  --border-2: #A3B3AB;
  --muted-fill: #C5D0CA;      /* barrinhas e "esqueletos" das ilustrações */
  --link: #0B5A3E;
  --brand: #0C3B2E;            /* traço e preenchimento verde sobre fundo claro */
  --sel-bg: #0C3B2E;           /* pílula/aba selecionada */
  --sel-fg: #FFFFFF;
  --accent: #E3A72F;
  --accent-ink: #6B4708;       /* texto âmbar legível sobre fundo claro */
  --accent-deep: #8A5A0B;
  --accent-wash: #FBEFD2;
  --device: #0E1F19;           /* corpo dos aparelhos nas ilustrações */
  --device-screen: #FFFFFF;

  /* blocos sempre escuros */
  --hero-bg: #0C3B2E;
  --dark-bg: #0A1A14;
  --on-dark: #FFFFFF;
  --on-dark-2: #DCE7E1;
  --on-dark-3: #C9D6CF;
  --term-bg: #06120E;
  --term-border: #2B4A40;
  --term-line: #1D3A31;
  --term-dim: #8FB3A4;

  --font: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(56px, 8vw, 112px);
  --radius: 10px;
  --shadow-hard: 8px 8px 0 var(--accent);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1A14;
  --bg-raised: #0F251D;
  --bg-sunken: #163328;
  --text: #EAF1ED;
  --text-2: #C9D6CF;
  --text-3: #9DB3A9;
  --border: #21423A;
  --border-2: #2F564A;
  --muted-fill: #2F564A;
  --link: #7FD1B0;
  --brand: #3E9C80;
  --sel-bg: #E3A72F;
  --sel-fg: #0E1F19;
  --accent-ink: #F3D58C;
  --accent-deep: #E3A72F;
  --accent-wash: #33290F;
  --device: #02080A;
  --device-screen: #EAF1ED;
  --dark-bg: #06120E;
  --term-bg: #030A07;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1A14;
    --bg-raised: #0F251D;
    --bg-sunken: #163328;
    --text: #EAF1ED;
    --text-2: #C9D6CF;
    --text-3: #9DB3A9;
    --border: #21423A;
    --border-2: #2F564A;
    --muted-fill: #2F564A;
    --link: #7FD1B0;
    --brand: #3E9C80;
    --sel-bg: #E3A72F;
    --sel-fg: #0E1F19;
    --accent-ink: #F3D58C;
    --accent-deep: #E3A72F;
    --accent-wash: #33290F;
    --device: #02080A;
    --device-screen: #EAF1ED;
    --dark-bg: #06120E;
    --term-bg: #030A07;
    color-scheme: dark;
  }
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #0E1F19; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; border-radius: 8px;
  background: var(--amber); color: #0E1F19; font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: var(--section-y); }
.section--raised { background: var(--bg-raised); }
.section--dark { background: var(--dark-bg); color: var(--on-dark); }
.section--brand { background: var(--hero-bg); color: var(--on-dark); }
.stack { display: flex; flex-direction: column; }

/* ---------- Tipografia ---------- */
.display {
  font-weight: 800; font-stretch: 75%; line-height: .98; letter-spacing: -.015em; text-wrap: balance;
}
.h-hero { font-size: clamp(42px, 6.2vw, 84px); }
.h-section { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.01em; }
.h-card { font-size: 28px; line-height: 1.1; font-weight: 800; font-stretch: 75%; }
.lead { font-size: 19px; color: var(--text-2); max-width: 34em; }
.section--dark .lead, .section--brand .lead { color: var(--on-dark-3); }

/* rótulo de serigrafia: "U1 · SERVIÇOS" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}
.section--dark .eyebrow, .section--brand .eyebrow { color: var(--term-dim); }
.pad {
  flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%;
  border: 4px solid var(--accent); background: transparent;
}
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 24px; border: 0; border-radius: 8px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), filter .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn--sm { white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: #0E1F19; }
.btn--amber:hover { color: #0E1F19; }
.btn--green { background: var(--green-800); color: #FFFFFF; }
.btn--green:hover { color: #FFFFFF; }
:root[data-theme="dark"] .btn--green { background: var(--amber); color: #0E1F19; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--green { background: var(--amber); color: #0E1F19; } }
.btn--ghost { background: transparent; color: var(--amber-soft); border: 1.5px solid var(--amber); }
.btn--ghost:hover { color: #0E1F19; background: var(--amber); filter: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 64px; padding: 8px 32px; font-size: 20px; border-radius: 10px; }
.btn--block { display: flex; width: 100%; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* pílulas de escolha (diagnóstico, bancada) */
.pill {
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; line-height: 1.2; font-weight: 600;
  background: var(--bg-raised); color: var(--text); border: 1.5px solid var(--border-2);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s var(--ease-out);
}
.pill:hover { border-color: var(--text); }
.pill:active { transform: scale(.97); }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); }

/* ---------- Cartão "etiqueta de bancada" ---------- */
.ticket {
  background: var(--bg-raised); color: var(--text);
  border-radius: 6px; box-shadow: 10px 10px 0 var(--accent);
}
.ticket__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  padding: 20px 24px; border-bottom: 2px dashed var(--text);
}
.ticket__body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.chip-label {
  font-size: 14px; font-weight: 600; line-height: 1; padding: 7px 12px; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-ink); white-space: nowrap;
}

/* ---------- Painel "terminal" (raio-x e bancada) ---------- */
.term {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1.5px solid var(--term-border); border-radius: 14px; background: var(--term-bg); color: var(--on-dark);
}
.term__bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--term-line);
}
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--term-border); }
.term__title { margin-left: auto; font-family: var(--mono); font-size: 13px; line-height: 1; color: var(--term-dim); }
.term__body { flex: 1 1 auto; padding: 18px 22px 24px; font-family: var(--mono); font-size: 15px; line-height: 1.5; }
.term__row {
  display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--term-line);
}
.term__row > :first-child { color: var(--term-dim); }
.term__row > :last-child { text-align: right; }
.blink { animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--hero-bg); color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: box-shadow .25s ease;
}
.header.is-stuck { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand__mark { display: block; flex: none; }
.brand__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand__name { font-size: clamp(20px, 5.6vw, 24px); font-weight: 800; font-stretch: 75%; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-size: 13px; line-height: 1.2; color: var(--on-dark-3); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nav a {
  position: relative; padding: 12px 0; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header__act { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 8px; background: transparent; color: var(--on-dark);
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--amber); }
.theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .ico-moon { display: none; }
}
.menu-btn { display: none; }
.cta-short { display: none; }

@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--hero-bg); border-bottom: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { padding: 15px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav a::after { display: none; }
}
@media (max-width: 600px) {
  .cta-long, .brand__sub { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 480px) {
  .header__act .btn--sm { width: 44px; padding: 0; }
  .header__act .btn--sm .cta-short { display: none; }
  .header__in { gap: 10px; }
}
@media (max-width: 400px) {
  .theme-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--on-dark); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__in {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 104px);
}
.hero__copy { flex: 1.15 1 440px; min-width: 0; padding-top: clamp(0px, 2vw, 28px); display: flex; flex-direction: column; gap: 26px; }
.hero__copy .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 32em; color: var(--on-dark-2); }
.hero__widget { flex: 1 1 380px; min-width: 0; max-width: 540px; margin-right: 10px; }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: rgba(6, 18, 14, .45);
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--on-dark-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.status__led { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(227, 167, 47, .7); animation: led 2.2s ease-out infinite; }
.status[data-state="fechado"] .status__led { background: #7E938A; animation: none; }
@keyframes led { 0% { box-shadow: 0 0 0 0 rgba(227, 167, 47, .65); } 70%, 100% { box-shadow: 0 0 0 9px rgba(227, 167, 47, 0); } }
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checks svg { flex-shrink: 0; width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* entrada do título, linha a linha */
.h-hero em { font-style: normal; color: var(--amber); }
.nw { white-space: nowrap; }
.h-hero .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.h-hero .w > span { display: inline-block; }
.js .h-hero .w > span { transform: translateY(110%); animation: rise .8s var(--ease-out) forwards; animation-delay: calc(.1s + var(--i, 0) * .045s); }
@keyframes rise { to { transform: none; } }
.js .hero [data-enter] { opacity: 0; transform: translateY(14px); animation: enter .8s var(--ease-out) forwards; animation-delay: calc(.55s + var(--i, 0) * .1s); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* faixa de contatos dourados (pente de conector) no pé do hero */
.fingers { display: flex; gap: 26px; }
.fingers i { height: 26px; background: repeating-linear-gradient(90deg, var(--amber) 0 12px, transparent 12px 19px); }
.fingers i:first-child { flex: 3 1 0; }
.fingers i:last-child { flex: 7 1 0; }

/* ---------- Serviços ---------- */
.services { display: flex; flex-wrap: wrap; gap: clamp(32px, 3.5vw, 48px); align-items: stretch; }
.service { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.service__ico {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: var(--bg);
}
.service__ico svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lined li { padding: 13px 0; border-top: 1px solid var(--border); line-height: 1.4; }
.lined li:last-child { border-bottom: 1px solid var(--border); }
.service__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.service__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.service__link:hover svg { transform: translateX(4px); }
.service--feature { padding: 32px; border-radius: 12px; background: var(--green-800); color: #FFFFFF; box-shadow: var(--shadow-hard); }
.service--feature .service__ico { background: var(--amber); }
.service--feature .service__ico svg { stroke: #0E1F19; }
.service--feature p { color: var(--on-dark-2); line-height: 1.45; }
.service--feature .lined li { border-color: rgba(255, 255, 255, .28); }
.service--feature .btn { margin-top: auto; }

/* ---------- Marcas (esteira) ---------- */
.brands { border-block: 1px solid var(--border); overflow: hidden; }
.brands__in { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding-block: clamp(28px, 4vw, 44px); }
.brands__label { flex: 0 0 auto; font-size: 17px; line-height: 1.3; font-weight: 700; }
.marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track ul { display: flex; align-items: center; flex-shrink: 0; }
.marquee__track li {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px);
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; font-weight: 700; font-stretch: 75%; color: var(--text-3); white-space: nowrap;
}
.marquee__track li::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 3px solid var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .brands__in { flex-direction: column; align-items: flex-start; gap: 14px; } .marquee { width: 100%; } }

/* ---------- Como funciona ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 40px clamp(24px, 3vw, 40px); overflow-x: clip; padding-top: 12px; margin-top: -12px; }
.step { position: relative; flex: 1 1 220px; min-width: 0; padding-top: 27px; display: flex; flex-direction: column; gap: 10px; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: calc(clamp(24px, 3vw, 40px) * -1); height: 3px; background: var(--brand);
  transform-origin: left;
}
.step:last-child::before { right: 0; }
@media (max-width: 560px) { .step::before { right: 0; } }
.step::after {
  content: ''; position: absolute; top: -9px; left: 0; width: 21px; height: 21px; border-radius: 50%;
  border: 5px solid var(--accent); background: var(--bg);
}
.step__n { font-size: 60px; line-height: 1; font-weight: 800; font-stretch: 75%; color: var(--accent-deep); }
.step h3 { font-size: 21px; line-height: 1.2; font-weight: 700; }
.step p { color: var(--text-2); }
.js .steps .step::before { transform: scaleX(0); transition: transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * .22s); }
.js .steps .step::after { transform: scale(0); transition: transform .4s var(--ease-out); transition-delay: calc(var(--i, 0) * .22s); }
.js .steps .step > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s var(--ease-out); transition-delay: calc(.15s + var(--i, 0) * .22s); }
.js .steps.is-in .step::before, .js .steps.is-in .step::after, .js .steps.is-in .step > * { transform: none; opacity: 1; }

/* ---------- Trabalhos ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.pf { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pf--feature { grid-column: span 2; grid-row: span 2; }
.pf__link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.pf--feature .pf__link { flex: 1 1 auto; gap: 16px; }
.pf__frame {
  display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--device); border-radius: var(--radius); background: var(--device);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pf--feature .pf__frame { flex: 1 1 auto; }
.pf__bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; }
.pf__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3D5A50; }
.pf__bar span { margin-left: auto; font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: .04em; color: var(--on-dark-3); }
.pf__shot { position: relative; display: block; flex: 1 1 auto; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.pf__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease-out); }
.pf--feature .pf__shot img { object-position: top left; }
.pf__link:hover .pf__frame, .pf__link:focus-visible .pf__frame { transform: translate(-4px, -4px); box-shadow: var(--shadow-hard); }
.pf__link:hover .pf__shot img { transform: scale(1.03); }
.pf__name { font-size: 21px; line-height: 1.2; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.pf--feature .pf__name { font-size: 32px; line-height: 1.1; font-weight: 800; font-stretch: 75%; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pf__name svg { display: inline-block; vertical-align: baseline; margin-left: .3em; width: .62em; height: .62em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.pf__link:hover .pf__name svg { transform: translate(3px, -3px); }
.pf p { color: var(--text-2); max-width: 36em; }
.pf__here {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 20px; overflow: hidden;
  background: var(--green-800); color: #FFFFFF; font-size: 30px; line-height: 1.05; font-weight: 800; font-stretch: 75%;
}
.pf__here svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf__here span { position: relative; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } .pf--feature { grid-row: auto; } }
@media (max-width: 600px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .pf--feature { grid-column: auto; } .pf--feature .pf__name { font-size: 26px; } }

/* ---------- Sobre ---------- */
.about { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.about__photo {
  position: relative; flex: 0 1 360px; min-width: 240px; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 12px; background: var(--green-800); box-shadow: var(--shadow-hard);
}
.about__photo img, .about__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__cap {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 6px; background: rgba(6, 18, 14, .72); color: #DCE7E1;
  font-family: var(--mono); font-size: 11px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
}
.about__txt { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__txt p { max-width: 38em; color: var(--text-2); }
.facts { margin-top: 8px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border-2); }
.facts > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 15px 0; border-top: 1px solid var(--border-2); }
.facts dt { flex: 0 0 130px; font-weight: 700; }
.facts dd { flex: 1 1 220px; }

/* ---------- Dúvidas ---------- */
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--border-2); }
.faq details { border-top: 1px solid var(--border-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0;
  list-style: none; cursor: pointer; font-weight: 700; font-size: 19px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 22px; height: 22px;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2.5px 100% no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--link); }
.faq details > p { padding: 0 0 20px; max-width: 40em; color: var(--text-2); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Chamada final e rodapé ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.cta h2 { flex: 1 1 420px; min-width: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -.012em; }
.footer { background: var(--green-900); color: var(--on-dark-3); font-size: 16px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-block: 56px 40px; }
.footer__col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.footer__col:last-child { flex-basis: 300px; }
.footer b { color: #FFFFFF; }
.footer a { color: #FFFFFF; display: inline-flex; align-items: center; min-height: 32px; align-self: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 24px; line-height: 1; font-weight: 800; font-stretch: 75%; color: #FFFFFF; }
.footer__fine { border-top: 1px solid var(--term-line); padding-block: 18px 96px; font-family: var(--mono); font-size: 13px; color: var(--term-dim); }

.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--amber); color: #0E1F19; border: 2px solid #0E1F19;
  box-shadow: 0 6px 18px rgba(10, 26, 20, .35); transition: transform .2s var(--ease-out), opacity .2s ease;
}
.fab:hover { transform: scale(1.06); color: #0E1F19; }
.fab svg { width: 28px; height: 28px; }
.fab.is-away { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- Selo de rascunho ---------- */
.draft { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(360px, calc(100vw - 100px)); font-size: 14px; line-height: 1.4; }
.draft summary {
  display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 9px 14px; border-radius: 999px;
  background: #0E1F19; color: #F3D58C; border: 1.5px dashed var(--amber); font-family: var(--mono); font-size: 13px;
}
.draft summary::-webkit-details-marker { display: none; }
.draft[open] summary { border-radius: 10px 10px 0 0; }
.draft__list { padding: 12px 16px 14px; border-radius: 0 10px 10px 10px; background: #0E1F19; color: #DCE7E1; border: 1.5px dashed var(--amber); border-top: 0; max-height: 50vh; overflow: auto; }
.draft__list li { padding: 3px 0 3px 16px; position: relative; }
.draft__list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--amber); }
.draft__list p { margin-top: 8px; color: #8FB3A4; }

/* ---------- Modo de teste em tela cheia (RAT.testing) ---------- */
.is-testing .header, .is-testing .fab, .is-testing .draft { display: none !important; }
.is-testing body { overflow: hidden; }

/* ---------- Revelação ao rolar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * .08s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; }
  .marquee__track ul[aria-hidden="true"] { display: none; }
  .marquee__track ul { flex-wrap: wrap; row-gap: 6px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

@media print {
  .header, .fab, .draft, .hero__bg { display: none !important; }
}

/* ---------- Aviso rápido, aviso sem internet, dica do iPhone ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(90px, env(safe-area-inset-bottom, 0px) + 84px); z-index: 70; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px;
  background: #0E1F19; color: #F3D58C; font-size: 15px; line-height: 1.4; border: 1.5px solid var(--amber); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.net {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: var(--amber); color: #0E1F19; font-weight: 600; font-size: 15px; line-height: 1.35; text-align: center;
  transform: translateY(-100%); transition: transform .3s var(--ease-out);
}
.net.is-on { transform: none; }
.net a { color: #0E1F19; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.ios-dica { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px) + 16px); z-index: 92; width: min(440px, calc(100vw - 32px)); transform: translateX(-50%); }
.ios-dica .ticket__body { gap: 16px; }
.ios-dica p { color: var(--text-2); line-height: 1.5; }
