/* UhuAgenda - Conectar (Linktree premium) */

:root {
  --primary: #0f53fa;
  --primary-2: #2a7cb7;
  --accent: #44afa4;

  --bg-0: #f8fbff;
  --bg-1: #eef5ff;

  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #0b1220;
  --muted: #516073;
  --border: rgba(15, 23, 42, 0.12);
  --ring: rgba(15, 83, 250, 0.28);

  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 14px 34px rgba(15, 23, 42, 0.08);
  --shadow-xs: 0 10px 22px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 16px 38px rgba(15, 23, 42, 0.1);

  --t-fast: 140ms;
  --t-med: 220ms;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(15, 83, 250, 0.14), transparent 60%),
    radial-gradient(800px 520px at 92% 0%, rgba(68, 175, 164, 0.12), transparent 55%),
    radial-gradient(900px 520px at 80% 105%, rgba(247, 140, 107, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

body.has-modal {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:where(a, button, input, summary):focus-visible {
  outline: none;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transform: translateY(-160%);
  transition: transform var(--t-fast) ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.skip-link:focus-visible {
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-xs);
}

/* Floating images */
.floating-icon {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.26;
  width: clamp(60px, 10vw, 92px);
  filter: saturate(1.05);
  animation: float 10s ease-in-out infinite;
}

.float1 {
  top: 12%;
  left: 6%;
}

.float2 {
  top: 22%;
  right: 8%;
  animation-delay: 1.8s;
}

.float3 {
  bottom: 12%;
  left: 10%;
  width: clamp(74px, 12vw, 112px);
  animation-delay: 3.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.connect {
  position: relative;
  z-index: 1;
  padding: 28px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-card {
  width: 100%;
  max-width: 520px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transform: translateY(6px);
  transition: transform var(--t-med) ease, box-shadow var(--t-med) ease;
}

@supports (backdrop-filter: blur(6px)) {
  .connect-card {
    backdrop-filter: blur(8px) saturate(150%);
  }
}

.connect-card.is-ready {
  transform: translateY(0);
}

.connect-header {
  text-align: center;
  padding: 6px 6px 12px;
}

.brand {
  width: min(240px, 80%);
  height: auto;
}

.title {
  margin: 10px 0 6px;
  font-size: clamp(24px, 4.8vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.connect-section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.section-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.link-card {
  width: 100%;
  min-height: 62px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition:
    transform var(--t-fast) ease,
    background var(--t-fast) ease,
    border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

button.link-card {
  appearance: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 83, 250, 0.22);
  box-shadow: var(--shadow-xs);
}

.link-card:focus-visible {
  border-color: rgba(15, 83, 250, 0.28);
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-xs);
}

.link-card:active {
  transform: translateY(0);
  box-shadow: none;
}

.link-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 83, 250, 0.08);
  color: var(--primary);
}

.link-card__content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-card__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__chevron {
  flex: 0 0 auto;
  opacity: 0.7;
}

.link-card--primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--accent) 130%);
  box-shadow: 0 12px 26px rgba(15, 83, 250, 0.22);
}

.link-card--primary:hover {
  box-shadow: 0 14px 30px rgba(15, 83, 250, 0.28);
  transform: translateY(-2px);
}

.link-card--primary:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.32), 0 14px 30px rgba(15, 83, 250, 0.28);
}

.link-card--primary .link-card__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.link-card--primary .link-card__meta {
  color: rgba(255, 255, 255, 0.82);
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(15, 23, 42, 0.1);
}

.contact-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
  font-size: 14px;
}

.chip i {
  color: var(--primary);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
  border-color: rgba(15, 83, 250, 0.22);
}

.chip:focus-visible {
  border-color: rgba(15, 83, 250, 0.28);
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-xs);
}

.social-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.icon-pill {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}

.icon-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
  border-color: rgba(15, 83, 250, 0.22);
}

.icon-pill:focus-visible {
  border-color: rgba(15, 83, 250, 0.28);
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-xs);
}

.seo-trigger {
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease;
}

.seo-trigger:hover {
  border-color: rgba(15, 83, 250, 0.28);
  color: var(--text);
  transform: translateY(-1px);
}

.seo-trigger:focus-visible {
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-xs);
}

/* Footer */
.page-footer {
  position: relative;
  z-index: 1;
  padding: 12px 16px 20px;
  color: var(--muted);
}

.footer-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--text);
  border-bottom-color: rgba(15, 23, 42, 0.2);
}

.footer-links a:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(2, 6, 23, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) ease, visibility var(--t-med) ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@supports (backdrop-filter: blur(6px)) {
  .modal {
    backdrop-filter: blur(4px);
  }
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(80vh, 720px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 18px 16px 16px;
}

.modal__panel--wide {
  max-width: 720px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.modal__close:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.modal__close:focus-visible {
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-xs);
}

.modal__title {
  margin: 4px 42px 8px 2px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.modal__subtitle {
  margin: 0 2px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lead-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 14px;
}

.field input:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(15, 83, 250, 0.35);
}

.btn-primary {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 0;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-fast) ease;
  box-shadow: 0 10px 20px rgba(15, 83, 250, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 83, 250, 0.22);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 4px var(--ring), 0 12px 24px rgba(15, 83, 250, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 83, 250, 0.16);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.modal__h3 {
  margin: 14px 2px 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.modal__list {
  margin: 0 2px 8px 18px;
  color: var(--text);
}

.faq {
  margin-top: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.faq summary {
  padding: 12px 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq summary:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
  border-radius: 12px;
}

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

.faq__content {
  padding: 0 12px 12px;
  color: var(--muted);
}

/* Responsive refinements */
@media (min-width: 768px) {
  .connect {
    padding-top: 38px;
  }

  .connect-card {
    padding: 20px 18px 18px;
  }

  .subtitle {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .float2 {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .connect-card {
    transform: none;
  }
}
