/* Envio Courier Linktree — simplified palette
   2 accent colors: orange (brand CTA) + green (WhatsApp)
   Everything else: neutral dark glass */

:root {
  --ink:         #f9fafb;
  --muted:       #9ca3af;
  --panel:       rgba(17,24,39,.88);
  --orange:      #f97316;
  --green:       #16a34a;
  --shadow:      0 32px 80px rgba(0,0,0,.55);
  --soft-shadow: 0 14px 36px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(234,88,12,.07), transparent 38%),
    linear-gradient(160deg, #0a0f1a 0%, #111827 60%, #1a2235 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 22px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 0 0 14px 14px;
  z-index: 9999;
  transition: top .15s ease;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* Layout */
.page { width: min(100%, 520px); margin: 0 auto; padding: 28px 18px 24px; }

.shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

/* Hero */
.hero { padding: 34px 22px 22px; text-align: center; }

.logo {
  width: 180px;
  height: 140px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.logo-fallback { font-size: 1.4rem; font-weight: 800; color: #2e6da4; letter-spacing: -.02em; }

h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.02; }
.tagline { margin: 12px auto 0; max-width: 34ch; color: var(--muted); font-size: 1rem; line-height: 1.6; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.10);
}
.status::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22,163,74,.20);
}

/* Main */
main { padding: 0 14px 14px; }

.section-label {
  margin: 16px 0 8px 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .7;
}

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.quick .action { min-height: 74px; padding: 13px; border-radius: 22px; flex-direction: column; align-items: flex-start; gap: 8px; }

.links { display: grid; gap: 10px; margin-bottom: 4px; }

/* Action cards — neutral dark */
.action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 15px;
  border-radius: 22px;
  background: rgba(31,41,55,.80);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.action:hover, .action:focus-visible {
  transform: translateY(-2px);
  background: rgba(55,65,81,.90);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.action:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.action:active { transform: translateY(0) scale(.98); box-shadow: var(--soft-shadow); }

/* Orange — App Portal & Sign Up */
.primary, .signup {
  color: #fff;
  background: linear-gradient(135deg, #7c2d12, #9a3412);
  border-color: rgba(255,255,255,.15);
}
.primary:hover, .primary:focus-visible,
.signup:hover, .signup:focus-visible {
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 20px 50px rgba(124,45,18,.40);
}

/* Green — WhatsApp */
.whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #14532d, #166534);
  border-color: rgba(255,255,255,.15);
}
.whatsapp:hover, .whatsapp:focus-visible {
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 20px 50px rgba(20,83,45,.35);
}

/* Icon */
.icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
}
.primary .icon, .signup .icon, .whatsapp .icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.icon svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* Label */
.label { display: grid; gap: 2px; min-width: 0; text-align: left; flex: 1; }
.label strong { font-size: .98rem; line-height: 1.25; color: var(--ink); }
.label span { color: var(--muted); font-size: .875rem; line-height: 1.3; }
.primary .label span, .signup .label span, .whatsapp .label span { color: rgba(255,255,255,.75); }
.quick .label strong { font-size: .92rem; }

/* Arrow */
.arrow { margin-left: auto; flex: 0 0 auto; opacity: .35; display: grid; place-items: center; color: var(--ink); }
.primary .arrow, .signup .arrow, .whatsapp .arrow { opacity: .65; color: #fff; }
.arrow svg { width: 16px; height: 16px; stroke-width: 2.5; }

/* Footer */
footer { padding: 18px 20px 26px; color: var(--muted); text-align: center; font-size: .82rem; line-height: 1.6; }
footer strong { color: var(--ink); font-weight: 700; }

/* Responsive */
@media (max-width: 380px) {
  .page { padding-inline: 12px; }
  .hero { padding-inline: 16px; }
  .quick { grid-template-columns: 1fr; }
  .quick .action { flex-direction: row; align-items: center; min-height: 64px; gap: 12px; }
  .action { border-radius: 20px; }
}
@media (min-width: 540px) { .page { padding: 32px 24px; } }
@media (min-width: 768px) {
  .page { padding: 48px 24px; width: min(100%, 560px); }
  .shell { border-radius: 40px; }
  .hero { padding: 44px 32px 26px; }
  h1 { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
