/* Festa Julina Beneficente de Sorocaba — Landing
   Ultra-minimal modern tech dark + brand colors only on social icons */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-input: #161616;
  --bg-hover: #151515;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 255, 255, 0.40);
  --text: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.55);
  --text-dim: rgba(245, 245, 245, 0.35);
  --accent: #ffffff;

  --whatsapp: #25d366;
  --whatsapp-bg: rgba(37, 211, 102, 0.10);
  --whatsapp-border: rgba(37, 211, 102, 0.22);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --duration: 160ms;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% -10%, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 20px 48px;
}

/* ----- Hero ----- */
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

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

.title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--text);
}

.handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  letter-spacing: -0.005em;
  flex-wrap: wrap;
  justify-content: center;
}

.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
}

/* ----- Cards ----- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ----- Lembrete ----- */
.lembrete { margin-bottom: 24px; }

.lembrete-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--text);
}

.lembrete-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.lembrete-form { display: flex; flex-direction: column; gap: 14px; }

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

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.field .optional { color: var(--text-dim); font-weight: 400; }

.field input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
  letter-spacing: -0.005em;
}

.field input::placeholder { color: var(--text-dim); }

.field input:hover { border-color: var(--border-strong); }

.field input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #1a1a1a;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
}

.consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.submit-btn {
  position: relative;
  margin-top: 4px;
  padding: 12px 20px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.submit-btn:hover:not(:disabled) { background: #e5e5e5; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(10, 10, 10, 0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.submit-btn[data-loading="true"] .btn-label { visibility: hidden; }
.submit-btn[data-loading="true"] .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  font-size: 12px;
  margin: 4px 0 0;
  min-height: 16px;
  text-align: center;
  letter-spacing: -0.005em;
}

.form-feedback[data-state="success"] { color: #4ade80; }
.form-feedback[data-state="error"]   { color: #f87171; }

/* ----- Links groups ----- */
.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links-primary    { margin-bottom: 24px; }
.links-secondary  { margin-bottom: 32px; }

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.link-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.link-btn[aria-disabled="true"] { cursor: default; opacity: 0.55; }
.link-btn[aria-disabled="true"]:hover {
  border-color: var(--border);
  background: var(--bg-elevated);
}

/* Icon container */
.link-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.link-icon svg { width: 18px; height: 18px; }

.link-btn:hover .link-icon { color: var(--text); }

/* Brand-colored icons (somente WhatsApp e Instagram) */
.link-icon-whatsapp {
  background: var(--whatsapp-bg);
  border-color: var(--whatsapp-border);
  color: var(--whatsapp);
}

.link-btn:hover .link-icon-whatsapp { color: var(--whatsapp); }

.link-icon-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #ffffff;
}

.link-btn:hover .link-icon-instagram { color: #ffffff; }

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

.link-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.link-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
}

.link-arrow svg { width: 100%; height: 100%; }

.link-btn:hover .link-arrow {
  color: var(--text-muted);
  transform: translateX(2px);
}

.badge {
  flex-shrink: 0;
  padding: 3px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ----- Footer ----- */
.footer {
  text-align: center;
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.footer .muted { color: var(--text-dim); font-size: 11px; }

.footer .copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 380px) {
  .page { padding: 44px 16px 36px; }
  .card { padding: 20px; }
  .link-btn { padding: 12px 14px; gap: 12px; }
  .link-icon { width: 32px; height: 32px; }
  .link-icon svg { width: 16px; height: 16px; }
}
