:root {
  color-scheme: light dark;
  --cream: #fdf7f5;
  --white: #ffffff;
  --rose: #b85c7a;
  --rose-light: #e9c7d2;
  --plum: #3d2a32;
  --warm-gray: #796b70;
  --line: #efdee3;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: light-dark(var(--cream), #211a1d); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: light-dark(var(--cream), #211a1d);
  color: light-dark(var(--plum), #f8edf1);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }
.site-root {
  min-height: 100vh;
  width: 100%;
  background: light-dark(var(--cream), #211a1d);
  padding: 44px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.avatar-wrap {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  padding: 5px;
  background: light-dark(#fff, #3c2a31);
  border: 1px solid light-dark(var(--rose-light), #76505f);
  box-shadow: 0 12px 30px #6b394314;
  margin-bottom: 23px;
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  background: light-dark(#f2dfe5, #49323b);
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 8vw, 2.65rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.045em;
}
.specialty {
  color: light-dark(var(--rose), #e5a9bf);
  font-size: .96rem;
  font-weight: 650;
  letter-spacing: .015em;
  margin: 12px 0 0;
}
.bio {
  max-width: 385px;
  color: light-dark(var(--warm-gray), #cbbbc1);
  font-size: .96rem;
  line-height: 1.75;
  margin: 16px 0 22px;
  text-wrap: pretty;
}
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0 0 28px;
}
.social {
  width: 47px;
  height: 47px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: light-dark(#fff, #33262c);
  border: 1px solid light-dark(#f0dfe5, #57404a);
  box-shadow: 0 5px 15px #5834420d;
  color: light-dark(var(--plum), #f5e9ee);
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.social:hover {
  transform: translateY(-3px);
  color: light-dark(var(--rose), #f0b6ca);
  border-color: var(--rose-light);
  box-shadow: 0 8px 18px #58344218;
}
.social svg { width: 21px; height: 21px; fill: currentColor; }
.social .stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.links {
  width: 100%;
  display: grid;
  gap: 17px;
}
.link-card {
  min-height: 66px;
  padding: 15px 19px;
  border-radius: 16px;
  border: 1px solid light-dark(#ecd8df, #59414b);
  background: light-dark(#fff, #30242a);
  box-shadow: 0 5px 15px #56313d08;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  text-decoration: none;
  color: light-dark(var(--plum), #f7edf1);
  font-weight: 650;
  font-size: .98rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: light-dark(var(--rose-light), #a56b80);
  box-shadow: 0 9px 22px #56313d12;
}
.link-card:focus-visible, .social:focus-visible {
  outline: 3px solid light-dark(var(--rose), #f0b6ca);
  outline-offset: 4px;
}
.link-card.primary {
  color: #fff;
  background: light-dark(var(--rose), #99506a);
  border-color: light-dark(var(--rose), #99506a);
  box-shadow: 0 8px 22px #b85c7a2c;
}
.link-card.primary:hover { background: light-dark(#a64d6b, #a85a75); }
.link-card .card-icon {
  position: absolute;
  left: 19px;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 20px; height: 20px; fill: currentColor; }
.card-icon .stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer {
  width: 100%;
  max-width: 480px;
  margin-top: 37px;
  text-align: center;
  color: light-dark(#8a7a80, #b8a7ae);
  font-size: .76rem;
  line-height: 1.7;
}
footer p { margin: 0 0 13px; }
footer .legal { font-size: .72rem; }
@media (min-width: 700px) {
  .site-root { padding-top: 54px; }
}
@media (max-width: 360px) {
  .site-root { padding: 30px 17px 24px; }
  .avatar-wrap { width: 154px; height: 154px; }
  .bio { font-size: .91rem; }
  .links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Additions ---------- */
[hidden] { display: none !important; }
:root {
  /* Course brand (same terracotta as partoconfiante.com), darkened for AA contrast */
  --clay: #a84e24;
  --clay-dark: #8e3f1b;
  --clay-soft: #f6e7dc;
}
.link-card { justify-content: flex-start; text-align: left; padding-left: 58px; }
.link-card .card-text { display: flex; flex-direction: column; gap: 2px; }
.link-card small { font-weight: 500; font-size: .8rem; color: light-dark(var(--warm-gray), #cbbbc1); }
.link-card:active, .social:active, .course-btn:active { transform: scale(.98); }

/* Featured course card: the one thing a visitor should notice */
.course {
  width: 100%;
  text-align: left;
  border-radius: 20px;
  padding: 22px 20px 18px;
  background: light-dark(var(--clay-soft), #3a271f);
  border: 1px solid light-dark(#ecc9b3, #6b4334);
  box-shadow: 0 14px 34px -18px #a84e2466;
}
.course-tag {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 10px; font-size: .82rem; font-weight: 650;
  color: light-dark(var(--clay-dark), #f0b48f);
}
.course-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #2e8b57; box-shadow: 0 0 0 3px #2e8b5733;
}
.course h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500; font-size: 1.85rem; line-height: 1.1; letter-spacing: -.03em;
  color: light-dark(var(--plum), #fbeee6);
}
.course-text { margin: 0 0 12px; font-size: .95rem; line-height: 1.55; color: light-dark(#5f4b40, #e3cfc4); }
.course-price { margin: 0 0 14px; font-size: .88rem; color: light-dark(#5f4b40, #e3cfc4); }
.course-price strong { font-size: 1.15rem; color: light-dark(var(--clay), #f0b48f); font-variant-numeric: tabular-nums; }
.course-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 18px; border-radius: 999px;
  background: var(--clay); color: #fff; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 20px -8px #a84e24aa;
  transition: background-color .2s ease, transform .2s ease;
  touch-action: manipulation;
}
.course-btn:hover { background: var(--clay-dark); transform: translateY(-2px); }
.course-direct {
  display: flex; justify-content: center; align-items: center; min-height: 44px;
  margin-top: 4px; font-size: .88rem; font-weight: 600;
  color: light-dark(var(--clay-dark), #f0b48f); text-underline-offset: 3px;
}
.course-btn:focus-visible, .course-direct:focus-visible {
  outline: 3px solid light-dark(var(--clay), #f0b48f); outline-offset: 3px;
}
.course-tag::before { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #2e8b5700; } }

/* One gentle entrance for the course card only */
@media (prefers-reduced-motion: no-preference) {
  .course { animation: rise .6s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .course-tag::before { animation: none; }
}

/* Course first: compact header so the course button shows on the first screen */
.avatar-wrap { width: 128px; height: 128px; margin-bottom: 16px; }
.bio { margin: 12px 0 20px; }
.socials-bottom { margin: 26px 0 0; }
@media (max-width: 360px) {
  .avatar-wrap { width: 104px; height: 104px; }
  .site-root { padding-top: 22px; }
}

/* ---------- Social networks, linktree style ---------- */
.socials { margin: 0 0 24px; gap: 12px; }
.socials .social { width: 44px; height: 44px; }
.networks { width: 100%; margin-top: 30px; text-align: left; }
.networks h2 {
  margin: 0 0 12px; text-align: center;
  font-family: Georgia, "Times New Roman", serif; font-weight: 500;
  font-size: 1.3rem; letter-spacing: -.02em;
  color: light-dark(var(--plum), #f8edf1);
}
.network-list { display: grid; gap: 12px; }
.network {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: light-dark(#fff, #30242a);
  border: 1px solid light-dark(#ecd8df, #59414b);
  box-shadow: 0 5px 15px #56313d08;
  color: light-dark(var(--plum), #f7edf1); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  touch-action: manipulation; position: relative;
}
.network:hover { transform: translateY(-2px); border-color: light-dark(var(--rose-light), #a56b80); box-shadow: 0 9px 22px #56313d12; }
.network:active { transform: scale(.98); }
.network:focus-visible { outline: 3px solid light-dark(var(--rose), #f0b6ca); outline-offset: 4px; }
.network-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.network-icon svg { width: 22px; height: 22px; fill: currentColor; }
.network-icon .stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig .network-icon { background: radial-gradient(circle at 30% 110%, #fdc468 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%); }
.tt .network-icon { background: #111; box-shadow: inset -2px 0 0 #25F4EE, inset 2px 0 0 #FE2C55; }
.fb .network-icon { background: #1877F2; }
.network-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 650; font-size: 1rem; line-height: 1.25; }
.network-text small { font-weight: 500; font-size: .84rem; color: light-dark(var(--warm-gray), #cbbbc1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.network-go {
  flex: 0 0 auto; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: light-dark(#fbf0f3, #3c2a31); color: light-dark(var(--rose), #f0b6ca);
}
@media (min-width: 520px) {
  /* Instagram full width, the other two side by side */
  .network-list { grid-template-columns: 1fr 1fr; }
  .network.ig { grid-column: 1 / -1; }
  .network.tt .network-go, .network.fb .network-go { display: none; }
}

/* Preview only (file:// or localhost): flags links still to fill in */
.needs-link { outline: 2px dashed #C9A200; outline-offset: 2px; }
.network.needs-link::after, .link-card.needs-link::after {
  content: "falta o link"; position: absolute; top: -9px; right: 12px;
  background: #FFE27A; color: #3d2a32; font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}

/* WhatsApp card: green square icon, matching the network cards */
.link-card { padding-left: 70px; }
.link-card .card-icon {
  left: 12px; width: 44px; height: 44px; border-radius: 12px;
  background: #25D366; color: #fff;
}
.link-card .card-icon svg { width: 24px; height: 24px; }
