/* apps.albseven.com
   Identidade própria da página de apps: papel frio, tinta azul-noite e a cor de cada app como destaque.
   Títulos em Bricolage Grotesque, texto em Onest. Sem build. */

@property --c { syntax: "<color>"; inherits: true; initial-value: #2563eb; }

:root {
  --bg: #f3f4fa;
  --surface: #ffffff;
  --surface-2: #e9ebf5;
  --ink: #14152b;
  --muted: #555873;
  --line: #dcdfee;
  --c: #2563eb;
  --c-pct: 82%; --c-toward: #000;   /* quanto a cor do app escurece (ou clareia, no escuro) para virar texto */
  --shadow: 0 10px 30px -12px rgb(20 21 43 / 0.18);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #0d0e1a; --surface: #171930; --surface-2: #1f2240; --ink: #f1f2fb; --muted: #a4a8c6; --line: #2a2d4d;
    --c-pct: 62%; --c-toward: #fff;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root.dark {
  --bg: #0d0e1a; --surface: #171930; --surface-2: #1f2240; --ink: #f1f2fb; --muted: #a4a8c6; --line: #2a2d4d;
  --c-pct: 62%; --c-toward: #fff;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

/* Derivadas da cor do app: recalculadas em todo elemento que define --c. */
:root, [style*="--c"] {
  --c-text: color-mix(in oklab, var(--c) var(--c-pct), var(--c-toward));
  --c-soft: color-mix(in oklab, var(--c) 12%, var(--surface));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--c-text); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c-text); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin: 0 auto; padding-inline: 1.25rem; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; background: var(--ink); color: var(--bg); padding: 0.7rem 1rem; border-radius: 12px; }
.skip:focus { top: 1rem; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); }
/* Marca: grade de quatro apps nas cores do design system ALB Seven + nome */
.mark { display: grid; grid-template-columns: repeat(2, 11px); gap: 3px; }
.mark i { width: 11px; height: 11px; border-radius: 4px; transition: transform 0.4s var(--ease); }
.mark i:nth-child(1) { background: #48639c; }
.mark i:nth-child(2) { background: #008abe; }
.mark i:nth-child(3) { background: #00aec4; }
.mark i:nth-child(4) { background: #00cfad; }
.brand:hover .mark i:nth-child(1) { transform: translate(-2px, -2px); }
.brand:hover .mark i:nth-child(2) { transform: translate(2px, -2px); }
.brand:hover .mark i:nth-child(3) { transform: translate(-2px, 2px); }
.brand:hover .mark i:nth-child(4) { transform: translate(2px, 2px); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1; letter-spacing: -0.03em; margin-left: 0.15rem; }
.wordmark em { font-style: normal; font-weight: 500; opacity: 0.6; }
.top nav { display: flex; align-items: center; gap: 1.1rem; }
.top nav > a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; position: relative; }
.top nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.top nav > a:hover::after { transform: scaleX(1); }
/* Seletor de idioma: menu compacto (details), vale para a landing e para as páginas legais */
.lang { position: relative; }
.lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.82rem; font-weight: 600; color: var(--ink); transition: background 0.25s; user-select: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { background: var(--surface-2); }
.lang > summary .chev { transition: transform 0.3s var(--ease); }
.lang[open] > summary .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: 0.35rem; min-width: 11.5rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); animation: pop 0.2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.lang-menu li { margin: 0; }
.lang-menu button, .lang-menu a { width: 100%; display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.7rem; border: 0; border-radius: 11px; background: none; cursor: pointer; font-size: 0.92rem; font-weight: 500; color: var(--ink); text-decoration: none; text-align: left; }
.lang-menu button:hover, .lang-menu a:hover { background: var(--surface-2); }
.lang-menu b { font-size: 0.72rem; font-weight: 700; color: var(--muted); min-width: 1.7rem; }
.lang-menu [aria-pressed="true"], .lang-menu [aria-current="true"] { background: var(--c-soft); font-weight: 600; }
.theme { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.theme:hover { transform: rotate(180deg); }
@media (max-width: 720px) { .top nav > a.hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 4rem 3rem; transition: --c 0.9s ease; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; background: var(--c); filter: blur(90px); opacity: 0.22; }
.hero-bg i:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -160px; animation: drift 14s ease-in-out infinite alternate; }
.hero-bg i:nth-child(2) { width: 360px; height: 360px; left: -140px; bottom: -180px; opacity: 0.14; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; }

.hero h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; margin-block: 0 1.5rem; }
.h1-fixed { display: block; }
.rot { display: grid; color: var(--c-text); overflow: hidden; padding-bottom: 0.12em; }
.rot-item { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); transition: transform 0.7s var(--ease), opacity 0.45s ease; }
.rot-item.is-on { opacity: 1; transform: none; }
.rot-item.is-out { opacity: 0; transform: translateY(-70%); }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 44ch; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }

.hero-side { display: grid; justify-items: center; gap: 1.75rem; }
.deck { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 3.9; margin-right: 56px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.deck-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; text-align: left; padding: 1.5rem; border: 0; border-radius: 30px; cursor: pointer; color: #fff; background: linear-gradient(160deg, color-mix(in oklab, var(--c) 92%, #fff), color-mix(in oklab, var(--c) 72%, #000)); box-shadow: 0 30px 50px -24px color-mix(in srgb, var(--c) 70%, #000); opacity: 0; pointer-events: none; transform: translate(84px, 52px) rotate(13deg) scale(0.84); transition: transform 0.8s var(--ease), opacity 0.5s ease; }
.deck-card img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25); margin-bottom: auto; }
.deck-card strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.deck-card > span { font-size: 0.95rem; opacity: 0.9; }
.deck-card em { font-style: normal; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: rgb(255 255 255 / 0.18); transition: background 0.25s, gap 0.25s; }
.deck-card[data-pos="0"] { opacity: 1; pointer-events: auto; z-index: 3; transform: rotate(-3deg); }
.deck-card[data-pos="0"]:hover { transform: rotate(-1deg) translateY(-6px); }
.deck-card[data-pos="0"]:hover em { background: rgb(255 255 255 / 0.3); gap: 0.7rem; }
.deck-card[data-pos="1"] { opacity: 1; z-index: 2; transform: translate(30px, 16px) rotate(4deg) scale(0.95); }
.deck-card[data-pos="2"] { opacity: 0.75; z-index: 1; transform: translate(58px, 34px) rotate(9deg) scale(0.9); }
.deck-card[data-pos="out"] { z-index: 4; opacity: 0; transform: translate(-115%, -8%) rotate(-20deg); }
.deck-card > :not(img) { opacity: 0; transition: opacity 0.3s; }
.deck-card[data-pos="0"] > :not(img) { opacity: 1; transition: opacity 0.5s 0.2s; }
.deck-card[data-pos="0"] > span { opacity: 0.9; }

.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; max-width: 360px; }
.dots button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 14px; cursor: pointer; }
.dots img { width: 28px; height: 28px; border-radius: 8px; opacity: 0.75; filter: saturate(0.6); transition: transform 0.35s var(--ease), opacity 0.3s, filter 0.3s, box-shadow 0.3s; }
.dots button:hover img { opacity: 1; filter: none; transform: translateY(-3px); }
.dots button[aria-current="true"] img { opacity: 1; filter: none; transform: scale(1.3); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }

@media (max-width: 900px) {
  .hero { padding-block: 2.5rem 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .deck { width: min(78%, 280px); margin-right: 48px; }
}

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 50px; padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; touch-action: manipulation; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, gap 0.25s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { gap: 0.85rem; box-shadow: 0 12px 26px -10px var(--c); }
.btn-ghost { color: var(--ink); padding-inline: 0.25rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn-ghost:hover { text-decoration-color: currentColor; }
.btn-light { background: #fff; color: #14152b; }
.btn-light:hover { box-shadow: 0 12px 26px -10px rgb(255 255 255 / 0.5); transform: translateY(-2px); }
.btn-ghost-light { color: #fff; text-decoration: underline; text-underline-offset: 5px; padding-inline: 0.25rem; }

/* ---------- Faixa de apps em movimento ---------- */
.marquee { display: grid; gap: 0.75rem; padding-block: 1.25rem 0.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 0.75rem; width: max-content; animation: slide 46s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1.1rem 0.5rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 0.95rem; white-space: nowrap; cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease); }
.chip img { width: 32px; height: 32px; border-radius: 10px; }
.chip:hover { border-color: var(--c); background: var(--c-soft); transform: translateY(-2px); }

/* ---------- Seções ---------- */
section.block { padding-block: 4rem; }
section.block.alt { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { color: var(--muted); max-width: 56ch; margin-top: 0.6rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button { min-height: 44px; padding: 0.4rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.app { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 90% at 100% 0%, var(--c-soft), var(--surface) 55%); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 96px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s; }
.app::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.app:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 26px 44px -22px color-mix(in srgb, var(--c) 60%, #000); }
.app:hover::after { transform: scaleX(1); }
.app header { display: flex; gap: 1rem; align-items: center; }
.app header img { width: 60px; height: 60px; border-radius: 16px; flex: none; transition: transform 0.5s var(--ease); }
.app:hover header img { transform: rotate(-6deg) scale(1.08); }
.app h3 { font-size: 1.25rem; }
.app .promise { font-size: 0.9rem; font-weight: 600; color: var(--c-text); margin-top: 0.25rem; }
.app .desc { color: var(--muted); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; flex: 1; align-content: start; }
.feats li { position: relative; padding-left: 1.6rem; font-size: 0.93rem; line-height: 1.4; }
.feats li::before { content: ""; position: absolute; left: 0.2rem; top: 0.42rem; width: 0.7rem; height: 0.38rem; border-left: 2.5px solid var(--c-text); border-bottom: 2.5px solid var(--c-text); transform: rotate(-45deg); }
.app .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.app .meta span { font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.app .meta span:first-child { border-color: transparent; background: var(--c-soft); color: var(--c-text); }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.langs > span:first-child { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-right: 0.15rem; }
.langs i { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.1rem 0.45rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.app footer { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.app footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.soon { font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.store { font-size: 0.85rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--c); color: #fff; text-decoration: none; }
/* data-published="true" troca o selo "Em breve" pelo botão da loja */
[data-published="true"] .soon, [data-published]:not([data-published="true"]) .store { display: none; }
.more { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-left: auto; padding: 0 0.25rem; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: gap 0.25s var(--ease), color 0.25s; }
.more:hover { gap: 0.8rem; color: var(--c-text); }

/* ---------- Resumo do app (dialog) ---------- */
.sheet { width: min(580px, calc(100vw - 1.5rem)); max-height: min(88vh, 760px); padding: 0; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: pop 0.45s var(--ease); }
.sheet::backdrop { background: rgb(13 14 26 / 0.6); backdrop-filter: blur(6px); animation: fade 0.3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(28px) scale(0.96); } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.4rem 1.3rem; color: #fff; background: linear-gradient(150deg, color-mix(in oklab, var(--c) 92%, #fff), color-mix(in oklab, var(--c) 70%, #000)); }
.sheet-head img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.25); flex: none; }
.sheet-head h2 { font-size: 1.6rem; font-weight: 800; }
.sheet-head p { opacity: 0.92; margin-top: 0.25rem; }
.close { margin-left: auto; align-self: flex-start; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.2); color: #fff; cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease); }
.close:hover { background: rgb(255 255 255 / 0.35); transform: rotate(90deg); }
.sheet-body { padding: 1.4rem; overflow-y: auto; }
.sheet-body h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 0.5rem; }
.sheet-body h3:first-child { margin-top: 0; }
.can { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.can li { position: relative; padding: 0.6rem 0.8rem 0.6rem 2.2rem; border-radius: 14px; background: var(--c-soft); font-size: 0.93rem; line-height: 1.35; }
.can li::before { content: ""; position: absolute; left: 0.8rem; top: 0.85rem; width: 0.8rem; height: 0.45rem; border-left: 2.5px solid var(--c-text); border-bottom: 2.5px solid var(--c-text); transform: rotate(-45deg); }
.note { padding: 0.8rem 1rem; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.93rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 1.4rem 0 0; }
.facts div { padding: 0.7rem 0.8rem; border-radius: 14px; background: var(--surface-2); }
.facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.sheet-foot .store { font-size: 1rem; background: var(--ink); color: var(--bg); }
.sheet-foot .btn { min-height: 46px; }
.sheet-foot .btn-ghost { margin-left: auto; font-size: 0.92rem; }
@media (max-width: 560px) {
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .sheet[open] { animation-name: rise; }
  .facts { grid-template-columns: 1fr; }
}
@keyframes rise { from { transform: translateY(100%); } }

/* ---------- Como funciona ---------- */
.three { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.three > div { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.45s var(--ease); }
.three > div:hover { transform: translateY(-6px); }
.three .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--bg); margin-bottom: 1.1rem; transition: transform 0.5s var(--ease); }
.three > div:hover .ico { transform: rotate(-8deg) scale(1.08); }
.three h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.three p { color: var(--muted); }

.callout { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 32px; background: #14152b; color: #f3f4fa; border: 1px solid #2a2d4d; }
.callout::before, .callout::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.callout::before { width: 300px; height: 300px; right: -80px; top: -120px; background: #6366f1; animation: drift 12s ease-in-out infinite alternate; }
.callout::after { width: 240px; height: 240px; left: 30%; bottom: -160px; background: #e94e77; animation: drift 16s ease-in-out infinite alternate-reverse; }
.callout > * { position: relative; }
.callout h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 0.75rem; }
.callout p { color: #c9cbe0; max-width: 52ch; }
.callout a:not(.btn) { color: #fff; }
.callout .actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; justify-content: flex-end; }
@media (max-width: 800px) { .callout { grid-template-columns: 1fr; } .callout .actions { justify-content: flex-start; } }

/* ---------- Entrada ao rolar (só com JS; sem JS tudo fica visível) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* depois de entrar, o card volta às transições rápidas do hover */
.js .app.reveal.done { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s; }
.js .app.reveal.done:hover { transform: translateY(-8px); }
.js .three > .reveal.done { transition: transform 0.45s var(--ease); }
.js .three > .reveal.done:hover { transform: translateY(-6px); }

/* ---------- Páginas legais ---------- */
.legal { padding-block: 2.5rem 4rem; }
.legal .back { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; color: var(--muted); }
.legal .back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.legal .meta { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 0.6rem; scroll-margin-top: 96px; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.3rem; scroll-margin-top: 96px; }
.legal p + p { margin-top: 0.75rem; }
.legal ul { padding-left: 1.25rem; margin: 0.6rem 0; }
.legal li { margin-bottom: 0.3rem; }
.legal a { color: var(--ink); text-decoration-color: var(--c-text); text-underline-offset: 3px; }
.summary { margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); }
.toc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; padding: 0 !important; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.8rem; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.toc a:hover { background: var(--ink); color: var(--bg); }
.tablewrap { overflow-x: auto; margin: 0.75rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.82em; }
details { margin-top: 0.6rem; padding: 0.9rem 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 0.6rem; color: var(--muted); }

/* ---------- Rodapé ---------- */
.site-foot { background: #14152b; color: #f3f4fa; padding-block: 3rem 2rem; border-top: 1px solid #2a2d4d; }
.site-foot .container { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.site-foot .brand { color: #fff; margin: 0 0 0.9rem; max-width: none; }
.site-foot .brand .wordmark { color: #fff; font-size: 1.05rem; }
.site-foot p:not(.brand) { font-size: 0.9rem; color: #a4a8c6; max-width: 40ch; }
.site-foot h4 { font-size: 1rem; margin-bottom: 0.75rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.site-foot a { color: #c9cbe0; text-decoration: none; font-size: 0.92rem; display: inline-flex; align-items: center; min-height: 36px; }
.site-foot a:hover { color: #fff; }
.site-foot .copy { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 1.25rem; font-size: 0.82rem; color: #a4a8c6; }
@media (max-width: 700px) { .site-foot .container { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}

/* Idiomas no resumo e aviso de tradução nas páginas legais */
.sheet .langs { margin-top: 1rem; }
.tr-note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 0.8rem; margin-top: 0.8rem; }
