@charset "UTF-8";
/* ============================================================
   OAA — Estúdio de Web Design · Sintra
   Sistema visual: dark premium, acento verde-sálvia / verde-azulado
   Type: Space Grotesk (display) · Manrope (corpo) · JetBrains Mono (labels)
   ============================================================ */
/* ---------- Design tokens ---------- */
:root {
  --bg: oklch(0.155 0.008 285);
  --bg-2: oklch(0.185 0.009 285);
  --surface: oklch(0.205 0.010 285);
  --surface-2: oklch(0.245 0.012 285);
  --surface-3: oklch(0.285 0.013 285);
  --ink: oklch(0.975 0.004 285);
  --ink-2: oklch(0.78 0.012 285);
  --ink-3: oklch(0.60 0.014 285);
  --red: oklch(0.74 0.085 158);
  --magenta: oklch(0.70 0.060 205);
  --red-soft: oklch(0.74 0.085 158 / 0.15);
  --line: oklch(1 0 0 / 0.09);
  --line-2: oklch(1 0 0 / 0.045);
  --glow: 0 30px 90px -30px oklch(0.74 0.085 158 / 0.42);
  --shadow: 0 24px 60px -24px oklch(0 0 0 / 0.7);
  --grad: linear-gradient(120deg, var(--red), var(--magenta));
  --grad-soft: linear-gradient(135deg, oklch(0.74 0.085 158 / 0.18), oklch(0.70 0.060 205 / 0.14));
  --maxw: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --ff-display: "Space Grotesk", sans-serif;
  --ff-body: "Manrope", sans-serif;
  --ff-mono: "JetBrains Mono", monospace;
}

/* ---------- Base reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 120px 0;
  position: relative;
  overflow: clip;
}

.section--tight {
  padding: 84px 0;
}

.center {
  text-align: center;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

.eyebrow--center::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h1, .h2, .h3, .h4 {
  color: var(--ink);
}

.display {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.03em;
}

.h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
}

.muted {
  color: var(--ink-2);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shead .h2, .shead .h3 {
  margin-top: 14px;
}

.shead .lead {
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--grad);
  color: oklch(22% 0.02 160deg);
  box-shadow: var(--glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 36px 100px -28px oklch(74% 0.085 158deg / 0.55);
}

.btn--ghost {
  background: oklch(100% 0 0deg / 0.05);
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: oklch(100% 0 0deg / 0.1);
  border-color: oklch(100% 0 0deg / 0.22);
}

.btn--dark {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

.btn--dark:hover {
  background: var(--surface-3);
}

.btn--summer {
  --bs-btn-bg: oklch(0.80 0.17 68);
  --bs-btn-color: oklch(0.12 0.02 60);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-border-color: transparent;
  background-color: oklch(80% 0.17 68deg);
  background-image: linear-gradient(120deg, oklch(76% 0.19 55deg), oklch(84% 0.16 80deg));
  color: oklch(12% 0.02 60deg);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-color: transparent;
}

.btn--summer:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -16px oklch(76% 0.19 55deg / 0.5);
}

.btn .arrow {
  transition: transform 0.25s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1046;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: oklch(15.5% 0.008 285deg / 0);
  backdrop-filter: blur(0px) saturate(1);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled::before {
  background: oklch(15.5% 0.008 285deg / 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
}

.header.scrolled {
  border-bottom: 1px solid var(--line-2);
}

/* ---------- Navbar (Bootstrap 5 navbar-expand-lg) ---------- */
.header .navbar {
  height: 74px;
  padding: 0;
  flex-wrap: nowrap;
  align-items: center;
}

@media (min-width: 992px) {
  .header .offcanvas-body {
    flex: 1;
    align-items: center;
  }
  .header .navbar-nav {
    flex: 1;
    justify-content: center;
    flex-direction: row;
  }
}
.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 27px;
  width: auto;
  display: block;
}

.brand-logo .lk {
  fill: var(--ink);
  transition: fill 0.25s;
}

.brand-logo .dot {
  fill: var(--red);
  transition: fill 0.25s;
}

/* Desktop nav links */
.navbar-nav .nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ink);
}

.navbar-nav .nav-link:hover {
  background: oklch(100% 0 0deg / 0.05);
}

/* Serviços dropdown toggle */
.navbar-nav .dropdown-toggle {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 9px;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: inherit;
}

.navbar-nav .dropdown-toggle:hover,
.navbar-nav .dropdown-toggle.show {
  color: var(--ink);
  background: oklch(100% 0 0deg / 0.05);
}

.navbar-nav .dropdown-toggle.active {
  color: var(--ink);
}

.navbar-nav .dropdown-toggle::after {
  vertical-align: middle;
  margin-left: 4px;
}

/* Desktop dropdown menu */
.navbar-nav .dropdown-menu {
  --bs-dropdown-bg: var(--surface-2);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-border-radius: var(--radius-sm);
  --bs-dropdown-link-color: var(--ink-2);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-link-hover-bg: oklch(1 0 0 / 0.06);
  --bs-dropdown-link-active-color: var(--ink);
  --bs-dropdown-link-active-bg: oklch(1 0 0 / 0.06);
  --bs-dropdown-item-padding-x: 14px;
  --bs-dropdown-item-padding-y: 10px;
  padding: 6px;
  min-width: 220px;
  box-shadow: var(--shadow);
}

.navbar-nav .dropdown-item {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* CTA buttons area */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger toggler */
.menu-btn {
  background: none;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
  padding: 0;
  display: grid;
  place-items: center;
}

.menu-btn:hover {
  background: none;
}

/* ---------- Offcanvas navbar (mobile) ---------- */
.header .navbar .offcanvas {
  --bs-offcanvas-bg: var(--bg);
  --bs-offcanvas-color: var(--ink);
  --bs-offcanvas-border-color: var(--line-2);
  --bs-offcanvas-width: 300px;
}

@media (max-width: 991.98px) {
  .header .navbar > .theme-toggle {
    margin-left: auto;
  }
  .nav-cta .btn--ghost {
    display: none;
  }
  .navbar .offcanvas-header {
    padding: 14px 20px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-2);
  }
  .navbar .offcanvas-header .brand-logo {
    height: 20px;
  }
  .navbar .offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
    outline: none !important;
    box-shadow: none !important;
  }
  [data-theme=light] .navbar .offcanvas-header .btn-close {
    filter: none;
  }
  .navbar .offcanvas .navbar-nav {
    padding: 8px 0;
  }
  .navbar .offcanvas .nav-link {
    font-size: 18px !important;
    padding: 14px 24px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink) !important;
    background: none !important;
  }
  .navbar .offcanvas .dropdown-toggle {
    font-size: 18px !important;
    padding: 14px 24px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink) !important;
    background: none !important;
    width: 100%;
    text-align: left;
  }
  .navbar .offcanvas .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    background: none !important;
    box-shadow: none;
    padding: 0;
    --bs-dropdown-bg: transparent;
    min-width: 0;
  }
  .navbar .offcanvas .dropdown-item {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 24px 10px 40px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-2);
  }
  .navbar .offcanvas .dropdown-item:hover,
  .navbar .offcanvas .dropdown-item:active,
  .navbar .offcanvas .dropdown-item.active {
    background: none;
    color: var(--ink);
  }
  .navbar .offcanvas .nav-cta {
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px 28px;
  }
  .navbar .offcanvas .nav-cta .btn--ghost {
    display: flex;
  }
  .navbar .offcanvas .nav-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .navbar .offcanvas .nav-cta .theme-toggle {
    display: none;
  }
}
/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: oklch(100% 0 0deg / 0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.pill .pdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 7px;
  background: oklch(62% 0.21 25deg);
  color: oklch(100% 0 0deg);
}

.tag--popular {
  background: oklch(76% 0.16 55deg);
  color: oklch(15% 0 0deg);
}

.tag--desconto {
  background: var(--magenta);
  color: oklch(100% 0 0deg);
}

.tag--promo {
  background: oklch(72% 0.17 45deg);
  color: oklch(100% 0 0deg);
}

.tag--summer {
  background: oklch(84% 0.16 80deg);
  color: oklch(15% 0 0deg);
}

.badge-stack {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: oklch(100% 0 0deg / 0.18);
  box-shadow: 0 8px 32px oklch(0% 0 0deg / 0.35);
}

/* ---------- Placeholder visuals ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, oklch(100% 0 0deg / 0.035) 0 12px, oklch(100% 0 0deg / 0.01) 12px 24px), var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 160px;
}

.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.ph .ph-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: oklch(15.5% 0.008 285deg / 0.6);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
}

.ph--grad {
  background: var(--grad-soft), repeating-linear-gradient(135deg, oklch(100% 0 0deg / 0.04) 0 12px, transparent 12px 24px);
}

/* ---------- Glow blobs ---------- */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: oklch(100% 0 0deg / 0.05);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-size: 16px;
}

.theme-toggle:hover {
  background: oklch(100% 0 0deg / 0.1);
  border-color: oklch(100% 0 0deg / 0.2);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle .i-sun {
  display: none;
}

.theme-toggle .i-moon {
  display: block;
}

/* ---------- Scroll-to-top button ---------- */
.scroll-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.25s, border-color 0.25s, color 0.25s;
  box-shadow: var(--shadow);
}

.scroll-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--grad);
  color: oklch(20% 0.02 160deg);
  border-color: transparent;
  transform: translateY(-3px);
}

.scroll-top:active {
  transform: translateY(0) scale(0.95);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-2);
  padding-top: 84px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 15px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: oklch(100% 0 0deg / 0.07);
  color: var(--ink-2);
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--red);
  color: oklch(100% 0 0deg);
}

.footer-wordmark {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}

.footer-logo {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 102%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 102%);
}

.footer-logo .lk {
  fill: oklch(33% 0.03 162deg);
}

.footer-logo .dot {
  fill: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive (shared) ---------- */
@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding: 0 20px;
  }
}
/* ============================================================
   LIGHT THEME — sálvia sobre off-white
   ============================================================ */
[data-theme=light] {
  --bg: oklch(0.978 0.004 150);
  --bg-2: oklch(0.958 0.006 150);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.966 0.006 150);
  --surface-3: oklch(0.93 0.008 150);
  --ink: oklch(0.24 0.015 285);
  --ink-2: oklch(0.44 0.014 285);
  --ink-3: oklch(0.56 0.012 285);
  --red: oklch(0.55 0.105 158);
  --magenta: oklch(0.57 0.075 205);
  --red-soft: oklch(0.55 0.105 158 / 0.13);
  --line: oklch(0 0 0 / 0.10);
  --line-2: oklch(0 0 0 / 0.055);
  --glow: 0 26px 70px -34px oklch(0.55 0.105 158 / 0.4);
  --shadow: 0 22px 56px -28px oklch(0.3 0.03 160 / 0.18);
  --grad-soft: linear-gradient(135deg, oklch(0.55 0.105 158 / 0.14), oklch(0.57 0.075 205 / 0.10));
}

[data-theme=light] .theme-toggle {
  background: oklch(0% 0 0deg / 0.04);
}

[data-theme=light] .theme-toggle:hover {
  background: oklch(0% 0 0deg / 0.08);
  border-color: oklch(0% 0 0deg / 0.18);
}

[data-theme=light] .theme-toggle .i-sun {
  display: block;
}

[data-theme=light] .theme-toggle .i-moon {
  display: none;
}

[data-theme=light] .header.scrolled::before {
  background: oklch(97.8% 0.004 150deg / 0.85);
}

[data-theme=light] .btn--ghost {
  background: oklch(0% 0 0deg / 0.04);
}

[data-theme=light] .btn--ghost:hover {
  background: oklch(0% 0 0deg / 0.08);
  border-color: oklch(0% 0 0deg / 0.18);
}

[data-theme=light] .navbar-nav .nav-link:hover {
  background: oklch(0% 0 0deg / 0.05);
}

[data-theme=light] .navbar-nav .dropdown-toggle:hover,
[data-theme=light] .navbar-nav .dropdown-toggle.show {
  background: oklch(0% 0 0deg / 0.05);
}

[data-theme=light] .navbar-nav .dropdown-menu {
  --bs-dropdown-link-hover-bg: oklch(0 0 0 / 0.05);
  --bs-dropdown-link-active-bg: oklch(0 0 0 / 0.05);
  --bs-dropdown-link-active-color: var(--ink);
}

[data-theme=light] .pill {
  background: oklch(0% 0 0deg / 0.03);
}

[data-theme=light] .check-label input[type=checkbox] {
  color-scheme: light;
}

[data-theme=light] .menu-btn:hover {
  background: none;
}

[data-theme=light] .card:hover {
  border-color: oklch(0% 0 0deg / 0.2);
}

[data-theme=light] .scroll-top {
  background: var(--surface);
}

[data-theme=light] .ph {
  background: repeating-linear-gradient(135deg, oklch(0% 0 0deg / 0.05) 0 12px, oklch(0% 0 0deg / 0.015) 12px 24px), var(--surface-2);
}

[data-theme=light] .ph--grad {
  background: var(--grad-soft), repeating-linear-gradient(135deg, oklch(0% 0 0deg / 0.05) 0 12px, transparent 12px 24px);
}

[data-theme=light] .ph-label {
  background: oklch(100% 0 0deg / 0.72);
}

[data-theme=light] .tag {
  color: oklch(44% 0.11 158deg);
}

[data-theme=light] .glow-blob {
  opacity: 0.1 !important;
}

[data-theme=light] .footer-logo .lk {
  fill: oklch(86% 0.022 162deg);
}

[data-theme=light] .footer-social a {
  background: oklch(0% 0 0deg / 0.06);
}

[data-theme=light] .filter:hover {
  border-color: oklch(0% 0 0deg / 0.2);
}

/* ============================================================
   PÁGINA: Coleção de templates (templates.html)
   ============================================================ */
/* Hero */
.page-hero {
  padding: 150px 0 50px;
  position: relative;
}

.page-hero .glow-blob {
  width: 600px;
  height: 420px;
  background: var(--red);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.16;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero .display {
  font-size: clamp(40px, 5.6vw, 76px);
  margin-top: 20px;
}

.page-hero .lead {
  margin-top: 22px;
}

/* Filtros */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 44px 0 36px;
}

.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter:hover {
  color: var(--ink);
  border-color: oklch(100% 0 0deg / 0.2);
}

.filter.active {
  background: var(--grad);
  color: white;
  border-color: transparent;
}

/* Grid de templates */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.t-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.t-card .shot {
  position: relative;
}

.t-frame {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.t-frame .browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.t-thumb {
  overflow: hidden;
  aspect-ratio: 3/2;
  position: relative;
  background: var(--surface-2);
}

.t-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-card .badge-pos {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.t-card .hoverbar {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  display: flex;
  gap: 8px;
  background: linear-gradient(0deg, oklch(12% 0.01 285deg / 0.9), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.t-card:hover .hoverbar {
  opacity: 1;
  transform: none;
}

.hoverbar .btn {
  padding: 9px 16px;
  font-size: 13px;
}

.t-meta {
  padding: 20px 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.t-meta h3 {
  font-size: 19px;
}

.t-meta .tcat {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 4px;
}

.t-meta .tprice {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}

/* Banda de email templates */
.email-band {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.e-card {
  padding: 0;
  overflow: hidden;
}

.e-card .ph {
  border-radius: 0;
  border: 0;
  min-height: unset;
  aspect-ratio: 600/560;
}

.e-card .ph > img {
  object-position: top center;
}

.e-card .efoot {
  padding: 16px 18px;
}

.e-card .efoot h4 {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15px;
}

.e-card .efoot small {
  color: var(--ink-3);
  font-size: 12.5px;
}

/* Email card chrome — rendered in HTML, never cropped */
.ec-chrome {
  background: #1c1c28;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #1e1e2a;
}

.ec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ec-dot--r {
  background: #ff5f57;
}

.ec-dot--y {
  background: #febc2e;
}

.ec-dot--g {
  background: #28c840;
}

.ec-chrome-title {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--ff-body);
}

.ec-headers {
  background: #14141c;
  border-bottom: 1px solid #252535;
}

.ec-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 14px;
  border-bottom: 1px solid #1e1e2a;
}

.ec-row:last-child {
  border-bottom: 0;
}

.ec-label {
  font-family: var(--ff-mono);
  font-size: 8px;
  color: #444460;
  letter-spacing: 0.08em;
  min-width: 44px;
  flex-shrink: 0;
}

.ec-val {
  font-size: 10px;
  color: var(--ink-2);
  font-family: var(--ff-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ec-val.grad-text {
  font-weight: 500;
}

@media (max-width: 900px) {
  .tpl-grid {
    grid-template-columns: 1fr 1fr;
  }
  .email-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .tpl-grid, .email-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   PÁGINA: Detalhe de template (template.html)
   ============================================================ */
.detail-top {
  padding: 122px 0 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb i {
  opacity: 0.6;
  font-size: 11px;
}

/* Grid principal */
.detail-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 26px;
}

/* Galeria */
.gallery-main {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-main .browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}

.gallery-main .browser-bar .bdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}

.gallery-main .browser-bar .addr {
  margin-left: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 100px;
  flex: 1;
}

.gallery-scroll {
  overflow: hidden;
  height: 460px;
  cursor: ns-resize;
}

.gallery-scroll img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.08s linear;
}

/* Paleta & tipografia do template */
.tpl-palette {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tpl-palette-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.tpl-swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tpl-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.tpl-swatch .sw {
  width: 100%;
  height: 38px;
  border-radius: 8px;
}

.tpl-swatch .sw--light {
  border: 1px solid var(--line);
}

.tpl-swatch span {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.tpl-fonts {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.tpl-fonts strong {
  color: var(--ink);
}

.tpl-sep {
  color: var(--ink-3);
}

/* Buy card */
.buy-card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.buy-cat {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.buy-card h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 12px 0 14px;
}

.buy-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.buy-rating .stars {
  color: var(--red);
  letter-spacing: 2px;
}

.buy-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.buy-price .now {
  font-family: var(--ff-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.buy-price .was {
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: 18px;
}

.buy-price .save {
  margin-left: auto;
}

.buy-price .promo-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.buy-price .promo-zero {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
  color: oklch(76% 0.19 55deg);
  letter-spacing: -0.02em;
}

.buy-price .btn--summer {
  padding: 9px 16px;
  font-size: 13px;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}

.buy-actions .btn {
  width: 100%;
  justify-content: center;
}

.includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.includes li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
  align-items: flex-start;
}

.includes li i {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 4px;
}

.specs {
  margin-top: 22px;
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.spec-row .k {
  color: var(--ink-3);
}

.spec-row .v {
  color: var(--ink);
  font-weight: 600;
}

/* Descrição + Features */
.desc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.desc .h2 {
  margin-bottom: 16px;
}

.desc p + p {
  margin-top: 14px;
}

.fcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fcard .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--red);
  margin-bottom: 16px;
  font-size: 18px;
}

.fcard h4 {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15.5px;
}

.fcard p {
  color: var(--ink-2);
  font-size: 13.5px;
  margin-top: 6px;
}

/* Previews responsivos */
.screens {
  display: grid;
  grid-template-columns: 2fr 1.1fr 0.7fr;
  gap: 20px;
  margin-top: 50px;
  align-items: end;
}

.screens .frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screens .frame .ph {
  border: 0;
  border-radius: 0;
}

.screens .frame .ph > img {
  object-position: top;
}

.screens .desktop .ph {
  min-height: 280px;
}

.screens .tablet .ph {
  min-height: 230px;
}

.screens .phone {
  border-radius: 26px;
}

.screens .phone .ph {
  min-height: 190px;
}

.frame-shot {
  width: 100%;
  display: block;
  object-fit: cover;
}

.frame.desktop .frame-shot {
  height: 280px;
}

.frame.tablet .frame-shot {
  height: 230px;
}

.frame.phone .frame-shot {
  height: 190px;
}

.screens .cap {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  padding: 10px;
}

/* Relacionados */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.rel-card {
  padding: 0;
  overflow: hidden;
}

.rel-card .t-thumb {
  min-height: 160px;
}

.rel-shot {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.rel-meta {
  padding: 18px 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rel-meta h3 {
  font-size: 17px;
}

.rel-meta .c {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 4px;
}

.rel-meta .p {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
}

/* Responsive — detalhe */
@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .buy-card {
    position: static;
  }
  .desc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .screens {
    grid-template-columns: 1fr;
  }
  .rel-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .fcards {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   COMPONENTES GLOBAIS (utilizados em múltiplas páginas)
   ============================================================ */
/* shead refinamentos */
.shead {
  max-width: 640px;
}

.shead.center {
  margin: 0 auto;
  text-align: center;
}

.shead.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Browser bar genérico (hero showcase + gallery) */
.bdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  display: inline-block;
}

.addr {
  margin-left: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 100px;
  flex: 1;
}

/* ============================================================
   HOMEPAGE (index.html)
   ============================================================ */
/* Hero */
.hero {
  padding: 150px 0 80px;
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.hero .glow-blob.g1 {
  width: 720px;
  height: 560px;
  background: var(--red);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.2;
}

.hero .glow-blob.g2 {
  width: 380px;
  height: 380px;
  background: var(--magenta);
  top: -40px;
  right: -140px;
  opacity: 0.16;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero .display {
  max-width: 16ch;
  margin: 22px auto 0;
}

.hero .lead {
  margin: 26px auto 0;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--ink-3);
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta i {
  color: var(--red);
  font-size: 12px;
}

/* Hero showcase strip */
.hero-stage {
  margin-top: 64px;
  position: relative;
  z-index: 2;
}

.browser {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser .browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}

.browser--center .carousel-item img {
  height: 540px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.browser--center .carousel-control-prev,
.browser--center .carousel-control-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  opacity: 1;
  box-shadow: var(--shadow);
  font-size: 14px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
  display: grid;
  place-items: center;
}

.browser--center .carousel-control-prev {
  left: 16px;
}

.browser--center .carousel-control-next {
  right: 16px;
}

.browser--center .carousel-control-prev:hover,
.browser--center .carousel-control-next:hover {
  background: var(--grad);
  color: oklch(20% 0.02 160deg);
  border-color: transparent;
  transform: translateY(calc(-50% - 3px));
}

.browser--center .carousel-control-prev:active,
.browser--center .carousel-control-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Prova social */
.proof {
  padding: 56px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.proof p {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 30px;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}

.logo-item {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-3);
  opacity: 0.8;
  letter-spacing: -0.02em;
  transition: color 0.2s, opacity 0.2s;
  cursor: default;
}

.logo-item:hover {
  color: var(--ink);
  opacity: 1;
}

/* Stats (homepage) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat .num {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat .lbl {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-top: 6px;
}

/* Processo */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: oklch(20% 0.02 160deg);
  box-shadow: var(--glow);
  margin-bottom: 22px;
}

.step-n {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.1em;
}

.step .h3 {
  margin: 18px 0 10px;
}

/* Template showcase (homepage — 3 cards estáticos) */
.tpl-card {
  padding: 0;
  overflow: hidden;
  display: block;
  color: inherit;
}

.tpl-card .t-thumb {
  min-height: 180px;
}

.tpl-card .badge-pos {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.tpl-meta {
  padding: 22px 24px 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tpl-meta h3 {
  font-size: 19px;
}

.tpl-meta .sub {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 5px;
}

.tpl-price {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}

/* Email showcase (split) */
.email-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 30px;
}

.email-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ef-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.ef-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.ef-dot--r {
  background: var(--line);
}

.ef-dot--y {
  background: var(--line);
}

.ef-dot--g {
  background: var(--line);
}

.ef-chrome-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 10px;
  letter-spacing: 0.04em;
}

.ef-headers {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-2);
}

.ef-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ef-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  width: 52px;
  flex-shrink: 0;
}

.ef-val {
  font-size: 13px;
  color: var(--ink-2);
}

.ef-mini {
  background: #0c0c10;
  padding: 20px 22px 18px;
  font-family: var(--ff-body);
}

.ef-mini-header {
  margin-bottom: 16px;
}

.ef-mini-card {
  background: #17171c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.ef-mini-topbar {
  height: 3px;
  background: linear-gradient(90deg, oklch(74% 0.085 158deg), oklch(70% 0.06 205deg));
}

.ef-mini-inner {
  padding: 16px 18px 20px;
}

.ef-mini-eyebrow {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7cbb96;
  display: block;
  margin-bottom: 9px;
}

.ef-mini-title {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
  color: #f6f6f9;
  line-height: 1.35;
  margin-bottom: 10px;
}
.ef-mini-title em {
  font-style: italic;
  color: oklch(82% 0.085 158deg);
}

.ef-mini-var {
  background: rgba(124, 187, 150, 0.14);
  color: #7cbb96;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--ff-mono);
  font-size: 0.85em;
}

.ef-mini-salut {
  font-size: 11.5px;
  color: #c8c8d0;
  margin: 0 0 7px;
}

.ef-mini-text {
  font-size: 11px;
  color: #888898;
  line-height: 1.6;
  margin: 0 0 10px;
}

.ef-mini-quote {
  border-left: 2px solid oklch(74% 0.085 158deg);
  padding: 7px 11px;
  font-size: 10.5px;
  font-style: italic;
  color: #888898;
  background: rgba(124, 187, 150, 0.05);
  border-radius: 0 4px 4px 0;
  margin: 0 0 14px;
}

.ef-mini-btn {
  display: inline-block;
  background: #7cbb96;
  color: #0c0c10;
  font-size: 10.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: var(--ff-display);
}

.ef-mini-sig {
  padding: 0 0 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ef-mini-sig strong {
  font-size: 11px;
  font-weight: 700;
  color: #f6f6f9;
}
.ef-mini-sig span {
  font-size: 9.5px;
  color: #888898;
  font-family: var(--ff-mono);
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
  list-style: none;
  padding: 0;
}

.feat-list li {
  display: flex;
  gap: 14px;
}

.feat-list .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--red-soft);
  color: oklch(82% 0.085 158deg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}

.feat-list h4 {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 16px;
}

.feat-list p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-top: 3px;
}

/* Serviços */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.card.svc {
  display: flex;
  flex-direction: column;
}

.svc .svc-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--red);
  margin-bottom: 22px;
}

.svc h3 {
  font-size: 21px;
}

.svc p {
  color: var(--ink-2);
  margin-top: 10px;
  font-size: 15px;
}

.svc .svc-cta {
  margin-top: auto;
  padding-top: 28px;
}

.svc .svc-cta .btn {
  align-self: flex-start;
}

/* Preços */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: oklch(74% 0.085 158deg / 0.5);
  background: linear-gradient(180deg, oklch(74% 0.085 158deg / 0.09), var(--surface));
  box-shadow: var(--glow);
}

.price-card .plan {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.price-card .amount {
  font-family: var(--ff-display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 18px 0 4px;
  color: var(--ink);
}

.price-card .amount span {
  font-size: 16px;
  color: var(--ink-3);
  font-family: var(--ff-body);
}

.price-card > p {
  color: var(--ink-2);
  font-size: 14.5px;
  min-height: 42px;
}

.price-feats {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 26px 0 28px;
  flex: 1;
}

.price-feats li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
  align-items: flex-start;
}

.price-feats li i {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 13px;
}

.toggle-group {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 26px auto 0;
}

.toggle-group button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.toggle-group button.active {
  background: var(--grad);
  color: oklch(22% 0.02 160deg);
}

.toggle-note {
  font-size: 14px;
  max-width: 46ch;
  margin: 18px auto 0;
}

/* Testemunhos */
.tst-grid {
  columns: 3;
  column-gap: 22px;
  margin-top: 56px;
}

.tst {
  break-inside: avoid;
  margin-bottom: 22px;
}

.tst .stars {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 2px;
}

.tst p {
  margin: 16px 0 20px;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.55;
}

.tst .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tst .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.tst .who b {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14.5px;
  display: block;
  color: var(--ink);
}

.tst .who small {
  color: var(--ink-3);
  font-size: 12.5px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 50px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 26px 0;
  font-family: var(--ff-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.faq-q .faq-ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
  font-size: 13px;
}

.faq-item.open .faq-q .faq-ico {
  transform: rotate(45deg);
  background: var(--red);
  border-color: var(--red);
  color: oklch(20% 0.02 160deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 240px;
}

.faq-a p {
  color: var(--ink-2);
  padding-bottom: 26px;
  max-width: 64ch;
}

/* CTA block */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 80px 56px;
  text-align: center;
}

.cta > .glow-blob {
  width: 520px;
  height: 520px;
  background: var(--red);
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta .h2 {
  max-width: 18ch;
  margin: 16px auto 0;
}

.cta .hero-actions {
  margin-top: 32px;
}

/* ============================================================
   PÁGINA: Sobre (sobre.html)
   ============================================================ */
/* Stats band */
.stats-band {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.sb .num {
  font-family: var(--ff-display);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sb .lbl {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-top: 6px;
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-split .ph {
  min-height: 420px;
}

.about-split h2 {
  margin-bottom: 18px;
}

.about-split p + p {
  margin-top: 16px;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.value .val-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--red);
  margin-bottom: 20px;
}

.value h3 {
  font-size: 20px;
}

.value p {
  color: var(--ink-2);
  margin-top: 10px;
  font-size: 15px;
}

/* Equipa */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.member {
  text-align: center;
}

.member .ph {
  min-height: 280px;
  border-radius: var(--radius);
}

.member h3 {
  font-size: 19px;
  margin-top: 18px;
}

.member .role {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 6px;
}

/* ============================================================
   PÁGINA: Contacto (contacto.html)
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 9px;
}

.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-3);
}

.field--check {
  margin-top: -8px;
  margin-bottom: 20px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.5;
}

.check-label input[type=checkbox] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--red);
  color-scheme: dark;
}

.check-error {
  display: none;
  font-size: 12.5px;
  color: var(--red);
  margin-top: 6px;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
}

.chip.on {
  background: var(--grad);
  color: oklch(22% 0.02 160deg);
  border-color: transparent;
}

.form .btn--primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 0;
}

.form-success.show {
  display: block;
}

.form-success .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  box-shadow: var(--glow);
  font-size: 26px;
  color: oklch(20% 0.02 160deg);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
}

.info-card:last-child {
  margin-bottom: 0;
}

.info-card h3 {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 18px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--red);
  flex-shrink: 0;
  font-size: 16px;
}

.info-item b {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15px;
  display: block;
}

.info-item a, .info-item span {
  color: var(--ink-2);
  font-size: 14.5px;
  display: block;
}

.info-item a:hover {
  color: var(--ink);
}

.map-card {
  padding: 0 !important;
  overflow: hidden;
}

.map-card #map {
  height: 220px;
  width: 100%;
  isolation: isolate;
}

.leaflet-attribution-flag {
  display: none !important;
}

.leaflet-tile-pane {
  filter: brightness(0.82) saturate(0.5);
}

.leaflet-control-attribution {
  background: oklch(18% 0.01 285deg / 0.92) !important;
  color: var(--ink-3) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: var(--ink-2) !important;
}

.map-marker {
  width: 20px;
  height: 20px;
  background: linear-gradient(120deg, var(--red), var(--magenta));
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 5px oklch(74% 0.085 158deg / 0.18);
}

/* ── Briefing form ──────────────────────────────────────────── */
.briefing-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}

.briefing-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.req {
  color: var(--red);
  font-weight: 400;
}

.cselect {
  position: relative;
}

.cselect-trigger {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cselect-trigger:focus, .cselect.open .cselect-trigger {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.cselect-val {
  flex: 1;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cselect-val.has-value {
  color: var(--ink);
}

.cselect-arrow {
  color: var(--ink-3);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cselect.open .cselect-arrow {
  transform: rotate(180deg);
}

.cselect-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  z-index: 300;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  padding: 6px;
  margin: 0;
  box-shadow: var(--shadow);
  display: none;
}

.cselect.open .cselect-list {
  display: block;
}

.cselect-opt {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.cselect-opt:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.cselect-opt.is-selected {
  color: var(--red);
  background: var(--red-soft);
}

.cselect-opt[data-value=""] {
  color: var(--ink-3);
}

.upload-zone {
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--red);
  background: var(--red-soft);
}

.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-ico {
  font-size: 26px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.upload-zone p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

.upload-zone p span {
  color: var(--red);
  text-decoration: underline;
}

.upload-hint {
  font-size: 12px !important;
  color: var(--ink-3) !important;
  margin-top: 6px !important;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.file-item .file-ico {
  color: var(--ink-3);
  flex-shrink: 0;
}

.file-item .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.file-item .file-size {
  color: var(--ink-3);
  font-size: 12px;
  flex-shrink: 0;
  font-family: var(--ff-mono);
}

.file-item .file-remove {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1;
  transition: color 0.15s;
}

.file-item .file-remove:hover {
  color: var(--red);
}

.aside-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.aside-step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: oklch(22% 0.02 160deg);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ff-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVO — novas páginas
   ============================================================ */
@media (max-width: 900px) {
  .tst-grid {
    columns: 2;
  }
}
@media (max-width: 760px) {
  .steps, .price-grid {
    grid-template-columns: 1fr;
  }
  .email-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ef-mini {
    padding: 16px 18px 14px;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1), .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .cta {
    padding: 56px 24px;
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .values, .team {
    grid-template-columns: 1fr;
  }
  .sb-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .briefing-split {
    grid-template-columns: 1fr;
  }
  .briefing-aside {
    position: static;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 26px;
  }
}
@media (max-width: 600px) {
  .tst-grid {
    columns: 1;
  }
  .tpl-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   MODAL DE ENCOMENDA
   ============================================================ */
.order-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.order-modal .modal-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 18px;
}
.order-modal .modal-header .modal-title {
  color: var(--ink);
}
.order-modal .modal-header .btn-close {
  filter: invert(1) brightness(0.65);
  opacity: 0.7;
  box-shadow: none !important;
  outline: none;
}
.order-modal .modal-header .btn-close:hover {
  opacity: 1;
}
.order-modal .modal-body {
  padding: 24px;
}
.order-modal .field {
  margin-bottom: 18px;
}
.order-modal .field:last-of-type {
  margin-bottom: 0;
}
.order-modal input[readonly] {
  cursor: default;
  opacity: 0.65;
}

[data-theme=light] .order-modal .modal-header .btn-close {
  filter: none;
}

/* ============================================================
   PÁGINAS LEGAIS
   ============================================================ */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 3rem;
}
.legal-nav a {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 40px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.legal-nav a:hover {
  color: var(--ink);
  border-color: var(--red);
}
.legal-nav a.active {
  color: var(--ink);
  border-color: var(--red);
  background: var(--red-soft);
}

.legal-doc {
  max-width: 740px;
  margin: 0 auto;
}
.legal-doc h2 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-top: 2.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  font-family: var(--ff-display);
}
.legal-doc p, .legal-doc li {
  color: var(--ink-2);
  line-height: 1.75;
}
.legal-doc p {
  margin-bottom: 0.9rem;
}
.legal-doc ul, .legal-doc ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.legal-doc li {
  margin-bottom: 0.35rem;
}
.legal-doc a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-doc strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-doc .legal-meta {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.legal-doc .legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  display: block;
}
.legal-doc .legal-table th {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.legal-doc .legal-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.6;
}
.legal-doc .legal-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Cookie Consent Banner ---------- */
.cb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0% 0 0deg / 0.55);
  z-index: 9997;
  animation: cbFadeIn 0.25s ease;
}

@keyframes cbFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 100vw - 32px);
  z-index: 9998;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px oklch(100% 0 0deg / 0.04);
  padding: 26px 30px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  pointer-events: none;
}
.cookie-banner .cb-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-banner .cb-title {
  font-family: var(--ff-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.cookie-banner .cb-title i {
  color: var(--red);
  font-size: 13px;
}
.cookie-banner .cb-close {
  background: none;
  border: none;
  color: var(--ink-3);
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
  margin-top: -2px;
}
.cookie-banner .cb-close:hover {
  color: var(--ink);
  background: oklch(100% 0 0deg / 0.06);
}
.cookie-banner .cb-text {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.cookie-banner .cb-text a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner .cb-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .cb-actions button {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.cookie-banner .cb-actions .cb-btn-reject {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.cookie-banner .cb-actions .cb-btn-reject:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.cookie-banner .cb-actions .cb-btn-custom {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  margin-right: auto;
}
.cookie-banner .cb-actions .cb-btn-custom:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.cookie-banner .cb-actions .cb-btn-accept {
  background: var(--grad);
  border: 1px solid transparent;
  color: #fff;
}
.cookie-banner .cb-actions .cb-btn-accept:hover {
  opacity: 0.88;
}
.cookie-banner .cb-detail {
  display: none;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.cookie-banner.expanded .cb-detail {
  display: block;
}
.cookie-banner .cb-category {
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 7px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.cookie-banner .cb-category.open {
  border-color: oklch(100% 0 0deg / 0.13);
}
.cookie-banner .cb-cat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.cookie-banner .cb-cat-head:hover {
  background: oklch(100% 0 0deg / 0.025);
}
.cookie-banner .cb-cat-chevron {
  color: var(--ink-3);
  font-size: 10px;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner .cb-category.open .cb-cat-chevron {
  transform: rotate(180deg);
}
.cookie-banner .cb-cat-label {
  flex: 1;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.cookie-banner .cb-cat-badge {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--surface);
  border-radius: 40px;
  border: 1px solid var(--line-2);
}
.cookie-banner .cb-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
  flex-shrink: 0;
}
.cookie-banner .cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-banner .cb-toggle .cb-slider {
  position: absolute;
  inset: 0;
  border-radius: 21px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  transition: background 0.22s, border-color 0.22s;
  cursor: pointer;
}
.cookie-banner .cb-toggle .cb-slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink-3);
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s;
}
.cookie-banner .cb-toggle input:checked + .cb-slider {
  background: var(--red);
  border-color: var(--red);
}
.cookie-banner .cb-toggle input:checked + .cb-slider::before {
  transform: translateX(17px) translateY(-50%);
  background: #fff;
}
.cookie-banner .cb-toggle input:disabled + .cb-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-banner .cb-cat-body {
  display: none;
  padding: 11px 15px 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.68;
  border-top: 1px solid var(--line-2);
  background: oklch(100% 0 0deg / 0.012);
}
.cookie-banner .cb-category.open .cb-cat-body {
  display: block;
}
.cookie-banner .cb-detail-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .cb-detail-actions button {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.cookie-banner .cb-detail-actions .cb-btn-detail-reject {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.cookie-banner .cb-detail-actions .cb-btn-detail-reject:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.cookie-banner .cb-detail-actions .cb-btn-save {
  background: var(--grad);
  border: 1px solid transparent;
  color: #fff;
  margin-left: auto;
}
.cookie-banner .cb-detail-actions .cb-btn-save:hover {
  opacity: 0.88;
}
.cookie-banner .cb-detail-actions .cb-btn-detail-accept {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.cookie-banner .cb-detail-actions .cb-btn-detail-accept:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.cb-manage-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.cb-manage-box p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 575.98px) {
  .cookie-banner {
    bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    padding: 20px 18px;
    max-height: 88dvh;
    overflow-y: auto;
  }
  .cookie-banner .cb-actions {
    flex-direction: column;
  }
  .cookie-banner .cb-actions .cb-btn-custom {
    margin-right: 0;
  }
  .cookie-banner .cb-actions button {
    width: 100%;
    text-align: center;
  }
  .cookie-banner .cb-detail-actions {
    flex-direction: column;
  }
  .cookie-banner .cb-detail-actions button {
    width: 100%;
    text-align: center;
  }
  .cookie-banner .cb-detail-actions .cb-btn-save {
    margin-left: 0;
  }
}
[data-theme=light] .cookie-banner {
  box-shadow: 0 8px 40px -8px oklch(0% 0 0deg / 0.16), 0 0 0 1px oklch(0% 0 0deg / 0.07);
}

/* ---------- Footer legal ---------- */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-3);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--ink-3);
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--ink);
}
