/* Lend2USA link-in-bio — palette matched to linktr.ee/Lend2usa */
:root {
  --bg: #1a2d5c;
  --btn: #2b4997;
  --btn-shadow: #446aca;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.18);
  --focus: #9db7ff;
  --max: 26.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--text); text-underline-offset: 0.15em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--btn);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  z-index: 200;
  border-radius: 999px;
}
.skip:focus { top: 0.75rem; }

.page {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  background: #13244c;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

h1 {
  margin: 1rem 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.bio {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
}

.socials {
  display: flex;
  gap: 0.85rem;
  margin: 1rem 0 0;
  align-items: center;
  justify-content: center;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--text);
  border-radius: 50%;
}

.socials a:hover { background: rgba(255, 255, 255, 0.1); }

.socials svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }


.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 1.25rem 0 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0b1224;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.group-label {
  margin: 1.5rem 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
}

.btn {
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--btn);
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--btn-shadow);
  border: 0;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--btn-shadow); }

.btn-primary {
  min-height: 3.7rem;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 0 var(--btn-shadow);
}

.tmi-panel {
  width: 100%;
  text-align: left;
  padding: 1rem 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(11, 18, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tmi-intro {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.tmi-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tmi-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.tmi-field .optional { font-weight: 400; }

.tmi-field input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #13244c;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.tmi-field input:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: transparent;
}

.tmi-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
}

.tmi-success { margin: 0; }

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  filter: none;
}

.note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 2rem auto 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
}

.site-footer p { margin: 0 0 0.7rem; }
.site-footer a { color: var(--text); }
.site-footer .contact {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  body { font-size: 1.08rem; }
  .page { padding-top: 2.75rem; }
  h1 { font-size: 1.6rem; }
}
