/* Wasyra Legal — mobile-first, fully responsive */
:root {
  --ink: #0a0f14;
  --ink-soft: #101820;
  --ink-2: #17212b;
  --cream: #fff7ea;
  --paper: rgba(255, 253, 247, 0.9);
  --amber: #f7b32b;
  --citrus: #f9d65c;
  --mint: #47c29a;
  --teal: #2db8cc;
  --coral: #f26d5b;
  --slate: #5f6b7a;
  --line: rgba(16, 24, 32, 0.08);
  --shadow-sm: 0 8px 24px rgba(10, 15, 20, 0.06);
  --shadow-md: 0 20px 60px rgba(10, 15, 20, 0.1);
  --shadow-lg: 0 40px 120px rgba(10, 15, 20, 0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --page-accent: var(--amber);
  --page-accent-2: var(--teal);
  --hero-dark: #0a1219;
  --nav-height: 64px;
  --dock-height: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shell-pad: 16px;
  --content-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom, 0px));
}

body.page-privacy { --page-accent: var(--teal); --page-accent-2: #7dd3fc; }
body.page-support { --page-accent: var(--mint); --page-accent-2: var(--teal); }
body.page-delete { --page-accent: var(--coral); --page-accent-2: #ffb4a8; }

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--page-accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  top: -100px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.skip-link:focus { top: max(16px, env(safe-area-inset-top)); }

/* ── Ambient ── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  margin: calc(min(210px, 45vw) * -1) 0 0 calc(min(210px, 45vw) * -1);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--page-accent) 14%, transparent), transparent 68%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.has-cursor-glow .cursor-glow { opacity: 1; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(45, 184, 204, 0.14), transparent 55%),
    radial-gradient(700px 420px at 95% 0%, rgba(247, 179, 43, 0.12), transparent 50%),
    linear-gradient(180deg, #fff9f0 0%, var(--cream) 45%, #f3ece1 100%);
}

.mesh {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 210deg at 50% 50%, transparent, rgba(45, 184, 204, 0.07), transparent 35%, rgba(247, 179, 43, 0.08), transparent 70%);
  animation: meshSpin 45s linear infinite;
  opacity: 0.55;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 15%, black, transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: drift 22s ease-in-out infinite;
}

.orb--a {
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  top: -8%;
  left: -15%;
  background: radial-gradient(circle, color-mix(in srgb, var(--page-accent) 42%, transparent), transparent 70%);
}

.orb--b {
  width: min(260px, 60vw);
  height: min(260px, 60vw);
  top: 6%;
  right: -18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--page-accent-2) 38%, transparent), transparent 70%);
  animation-delay: -8s;
}

.orb--c {
  width: min(200px, 50vw);
  height: min(200px, 50vw);
  bottom: 8%;
  left: 28%;
  background: radial-gradient(circle, rgba(71, 194, 154, 0.22), transparent 70%);
  animation-delay: -14s;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
}

.route-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-dasharray: 10 12;
  animation: routeFlow 28s linear infinite;
}

.route-node { fill: var(--page-accent); animation: nodePulse 3s ease infinite; }

/* ── Shell ── */
.shell {
  position: relative;
  z-index: 2;
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding:
    max(12px, env(safe-area-inset-top))
    max(var(--shell-pad), env(safe-area-inset-right))
    max(48px, env(safe-area-inset-bottom))
    max(var(--shell-pad), env(safe-area-inset-left));
}

/* ── Navigation ── */
.nav-wrap {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 60;
  margin-bottom: 20px;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: var(--shadow-md);
  animation: rise 0.9s var(--ease-out) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(45, 184, 204, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.brand-copy { min-width: 0; }

.brand-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(16, 24, 32, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-content: end;
  padding:
    16px
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: rgba(10, 15, 20, 0.42);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.nav-open { overflow: hidden; }
body.nav-open .nav-panel { opacity: 1; visibility: visible; }

.nav-sheet {
  padding: 18px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.32s var(--ease-out);
}

body.nav-open .nav-sheet { transform: translateY(0); }

.nav-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--ink);
}

.nav-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(16, 24, 32, 0.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(16, 24, 32, 0.05);
}

.nav-links a.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--page-accent) 35%, transparent);
}

.nav-desktop { display: none; }

/* Mobile dock */
.mobile-dock {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}

.mobile-dock.is-hidden {
  transform: translateY(calc(100% + 24px));
  opacity: 0;
}

.mobile-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--slate);
  text-align: center;
}

.mobile-dock a svg { width: 18px; height: 18px; }

.mobile-dock a.is-active {
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow-sm);
}

/* ── Hero ── */
.hero-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, var(--hero-dark) 0%, #121c27 48%, #0f1720 100%);
  box-shadow: var(--shadow-lg);
  animation: rise 1s var(--ease-out) 0.06s both;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px 260px at 90% 10%, color-mix(in srgb, var(--page-accent) 26%, transparent), transparent 70%),
    radial-gradient(380px 220px at 8% 85%, color-mix(in srgb, var(--page-accent-2) 20%, transparent), transparent 68%);
  pointer-events: none;
}

.hero-shine {
  position: absolute;
  inset: -50% -20%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.07) 50%, transparent 58%);
  animation: shine 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(22px, 5vw, 48px);
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--page-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--page-accent) 22%, transparent);
  animation: pulse 2.4s ease infinite;
}

h1 {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 8vw, 4.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: white;
  overflow-wrap: anywhere;
}

h1 em {
  font-style: italic;
  color: color-mix(in srgb, var(--page-accent) 85%, white);
}

.lead {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(0.98rem, 2.8vw, 1.08rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.hero-aside {
  display: grid;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--page-accent);
  margin-bottom: 6px;
}

.metric span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.hero-visual {
  display: grid;
  gap: 10px;
}

.visual-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.visual-card--accent {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.visual-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.visual-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: white;
  line-height: 1;
}

.visual-sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
  margin-top: 14px;
}

.sparkline span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--page-accent), transparent);
  animation: barGrow 1.2s var(--ease-out) both;
}

.sparkline span:nth-child(1) { height: 34%; animation-delay: 0.1s; }
.sparkline span:nth-child(2) { height: 58%; animation-delay: 0.18s; }
.sparkline span:nth-child(3) { height: 44%; animation-delay: 0.26s; }
.sparkline span:nth-child(4) { height: 78%; animation-delay: 0.34s; }
.sparkline span:nth-child(5) { height: 62%; animation-delay: 0.42s; }
.sparkline span:nth-child(6) { height: 88%; animation-delay: 0.5s; }

.cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--page-accent), color-mix(in srgb, var(--page-accent) 70%, white));
  box-shadow: 0 14px 36px color-mix(in srgb, var(--page-accent) 32%, transparent);
}

.btn--ghost {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ── Content ── */
.section-head {
  display: grid;
  gap: 8px;
  margin: 32px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.6;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.card {
  position: relative;
  padding: clamp(20px, 4vw, 26px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--page-accent) 22%, transparent));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--page-accent) 14%, white);
  color: var(--ink);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card p, .card li {
  margin: 0;
  color: var(--slate);
  line-height: 1.7;
  font-weight: 500;
  font-size: 15px;
}

.card ul, .card ol { margin: 0; padding-left: 1.15rem; }
.card li + li { margin-top: 8px; }

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  color: inherit;
}

.portal-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.portal-card .link-arrow svg {
  transition: transform 0.25s var(--ease-out);
}

.card code {
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(16, 24, 32, 0.06);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(16, 24, 32, 0.05);
  color: var(--slate);
}

.tag--accent {
  background: color-mix(in srgb, var(--page-accent) 16%, white);
  color: var(--ink);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.toc-desktop { display: none; }

.toc-mobile {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.toc-mobile::-webkit-scrollbar { display: none; }

.toc-mobile a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--slate);
  background: var(--paper);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.toc-mobile a.is-active {
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--page-accent) 35%, transparent);
}

.faq { display: grid; gap: 10px; }

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  min-height: 48px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--page-accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--slate);
  font-weight: 500;
  font-size: 15px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  position: relative;
  padding: 16px 16px 16px 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-size: 15px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--page-accent);
}

.warning {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent);
  background: color-mix(in srgb, var(--coral) 10%, white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.contact-luxe {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-luxe a,
.contact-luxe div {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, white, rgba(255, 247, 234, 0.85));
  border: 1px solid var(--line);
}

.contact-luxe strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.trust-strip {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  background: linear-gradient(90deg, rgba(16, 24, 32, 0.94), rgba(23, 33, 43, 0.94));
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.trust-strip strong {
  color: white;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Animations ── */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2vw, 1.5vh) scale(1.04); }
}

@keyframes meshSpin { to { transform: rotate(360deg); } }
@keyframes routeFlow { to { stroke-dashoffset: -400; } }
@keyframes nodePulse { 50% { opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.1); opacity: 0.8; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@keyframes shine { 0%, 100% { transform: translateX(-30%) rotate(8deg); } 50% { transform: translateX(30%) rotate(8deg); } }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(6px) rotate(1deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ── Tablet (640+) ── */
@media (min-width: 640px) {
  :root { --shell-pad: 20px; }

  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-luxe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-luxe > :last-child:nth-child(odd) { grid-column: span 2; }
  .trust-strip { grid-template-columns: auto 1fr; align-items: center; }
  .footer { grid-template-columns: 1fr auto; align-items: center; }
  .bento--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Desktop (768+) ── */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-dock { display: none; }

  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px 10px 14px;
    border-radius: 999px;
  }

  .nav-toggle,
  .nav-panel { display: none; }

  .nav-desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(16, 24, 32, 0.04);
  }

  .nav-desktop a {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }

  .nav-desktop a:hover { color: var(--ink); transform: translateY(-1px); }

  .nav-desktop a.is-active {
    color: var(--ink);
    background: white;
    box-shadow: var(--shadow-sm);
  }

  .brand-copy strong { font-size: 14px; }
  .brand-copy span { font-size: 11px; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
    padding: clamp(28px, 4vw, 44px);
  }

  .hero-copy .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy .cta-row .btn {
    width: auto;
    flex: 0 1 auto;
  }

  /* Panel lateral: grid limpio (sin absolute rotas) */
  .hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: unset;
    position: static;
  }

  .hero-visual .visual-card {
    position: static;
    width: auto;
    inset: auto;
    animation: none;
  }

  .hero-visual .visual-card--main {
    grid-column: 1 / -1;
  }

  .visual-row.visual-card--stack {
    display: contents;
  }

  .hero-aside .hero-metrics {
    gap: 12px;
  }

  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }

  .portal-card { min-height: 280px; }

  .bento.bento--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-luxe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-luxe > :last-child:nth-child(odd) { grid-column: auto; }

  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 20px;
    margin: 40px 0 18px;
  }

  .section-head p {
    text-align: right;
    max-width: 42ch;
    justify-self: end;
  }

  .content-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 32px;
  }

  .content-layout > .bento {
    min-width: 0;
  }

  .toc-mobile { display: none; }

  .toc-desktop {
    display: block;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    align-self: start;
    padding: 20px;
    border-radius: 20px;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
  }

  .toc-desktop strong {
    display: block;
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
  }

  .toc-desktop a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .toc-desktop a:hover,
  .toc-desktop a.is-active {
    color: var(--ink);
    padding-left: 6px;
  }

  .toc-desktop a:last-child { border-bottom: 0; }

  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .btn:hover { transform: translateY(-2px); }
  .metric:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.22); }
  .portal-card:hover .link-arrow svg { transform: translate(4px, -4px); }
}

/* ── Large desktop (1024+) ── */
@media (min-width: 1024px) {
  :root { --content-max: 1200px; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    padding: 44px 48px;
  }

  h1 { font-size: clamp(3rem, 4.2vw, 4.8rem); }

  .content-layout { grid-template-columns: 240px minmax(0, 1fr); }

  .section-head h2 { font-size: 2.4rem; }

  .bento.bento--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Wide (1280+) ── */
@media (min-width: 1280px) {
  :root { --content-max: 1240px; --shell-pad: 24px; }

  .content-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .hero-inner { padding: 52px 56px; }
  .shell { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .cursor-glow { opacity: 1; transform: none; }
  .mobile-dock.is-hidden { transform: none; opacity: 1; }
}

@media (hover: none) {
  .card:hover, .btn:hover, .metric:hover { transform: none; }
}
