:root {
  --accent: #FF6F61;
  --ink: #3D2733;
  --rose: #8A6675;
  --rose-light: #9E6B7E;
  --border-pink: #FFE2DC;
  --border-pink-hover: #FFB8AE;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100%;
  font-family: 'Nunito', system-ui, sans-serif;
  background: radial-gradient(125% 85% at 50% -8%, #FFF8F4 0%, #FFE9E6 48%, #FFD9E2 100%);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ===== Top bar ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 248, 244, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 150, 140, .22);
  box-shadow: 0 8px 22px -14px rgba(255, 111, 97, .5);
  transition: transform .32s cubic-bezier(.2, .8, .3, 1), opacity .32s ease;
}

.topbar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.topbar-inner {
  max-width: 520px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.topbar-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--ink);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 14px -6px rgba(255, 111, 97, .6);
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), box-shadow .16s;
}

.topbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -7px rgba(255, 111, 97, .75);
}

/* ===== Page layout ===== */
.page {
  display: flex;
  justify-content: center;
  padding: clamp(36px, 6vh, 80px) clamp(16px, 4vw, 40px);
}

.page-inner {
  width: 100%;
  max-width: 520px;
  padding: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Avatar ===== */
.avatar {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 18px;
  animation: liloFloat 6s ease-in-out infinite;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #FFFFFF;
  border: 2px solid var(--border-pink);
  box-shadow: 0 8px 20px -10px rgba(255, 111, 97, .28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  transform: scale(1.7);
  display: block;
}

/* ===== Title / tagline ===== */
.title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
}

.subtitle-row {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tagline {
  margin: 12px 6px 0;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--rose);
  max-width: 320px;
}

/* ===== Link buttons ===== */
.links {
  width: 100%;
  max-width: 460px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  background: #FFFFFF;
  border: 1.5px solid var(--border-pink);
  border-radius: 20px;
  padding: 13px 16px;
  box-shadow: 0 8px 20px -10px rgba(255, 111, 97, .28);
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .18s, border-color .18s;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 30px -12px rgba(255, 111, 97, .5);
  border-color: var(--border-pink-hover);
}

.link-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon-tiktok { background: #12B5C4; }
.link-icon-instagram { background: linear-gradient(135deg, #FF7AA8, #FF5C6E); }
.link-icon-facebook { background: #3B5FA4; }
.link-icon-youtube { background: #FF5A5F; }
.link-icon-amazon { background: #3F9E5E; }
.link-icon-email { background: #E8920E; }

.link-label {
  flex: 1;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

.link-handle {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rose-light);
}

/* ===== Highlights ===== */
.highlights {
  width: 100%;
  margin-top: 30px;
}

.highlights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.highlights-sub {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rose-light);
}

.social-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 2vw, 14px);
}

.embed-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.embed-tile-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(91, 67, 52, .07);
  box-shadow: 0 5px 14px -10px rgba(74, 53, 38, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .16s, box-shadow .2s, border-color .2s;
}

.embed-tile-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.embed-tile:hover .embed-tile-thumb {
  opacity: .92;
  box-shadow: 0 14px 24px -9px rgba(255, 111, 97, .5);
  border-color: rgba(255, 111, 97, .55);
}

.embed-tile-play {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(61, 39, 51, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s cubic-bezier(.2, .8, .3, 1);
}

.embed-tile:hover .embed-tile-play { transform: scale(1.08); }

.embed-tile-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px 0;
}

.embed-tile-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embed-tile-caption-text {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rose-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Footer ===== */
.footer {
  width: 100%;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-pink);
  box-shadow: 0 6px 16px -10px rgba(255, 111, 97, .4);
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .18s, border-color .18s;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px -10px rgba(255, 111, 97, .6);
  border-color: var(--border-pink-hover);
}

.newsletter {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 6px;
}

.newsletter-heading { text-align: center; }

.newsletter-paw {
  font-size: 22px;
  line-height: 1;
}

.newsletter-blurb {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--rose-light);
}

.newsletter-form {
  display: flex;
  width: 100%;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-pink);
  background: #FFFFFF;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}

.newsletter-input:focus {
  border-color: var(--border-pink-hover);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, .13);
}

.newsletter-submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--accent);
  color: #FFFFFF;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(255, 111, 97, .6);
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), box-shadow .16s;
}

.newsletter-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -7px rgba(255, 111, 97, .75);
}

.newsletter-success {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(63, 158, 94, .12);
  color: #2F7A49;
  font-size: 13.5px;
  font-weight: 800;
}

.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-credit-line {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #8C7359;
}

.footer-credit-sub {
  font-size: 12px;
  font-weight: 700;
  color: #B6A083;
}

.heart { color: var(--accent); }

.footer-spacer {
  height: 96px;
  flex: 0 0 auto;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 4vh, 30px));
  transform: translateX(-50%) translateY(16px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px 0 17px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #A98A78;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -8px rgba(74, 53, 38, .3), inset 0 0 0 1.5px rgba(168, 138, 120, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .2s, color .2s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 9px 20px -8px rgba(74, 53, 38, .4), inset 0 0 0 1.5px rgba(168, 138, 120, .45);
  color: #8C6F5E;
}

.back-to-top.is-visible:hover {
  transform: translateX(-50%) translateY(-2px);
}

/* ===== Toast popup (email validation error) ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 4vh, 30px);
  transform: translateX(-50%) translateY(16px);
  z-index: 120;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #C23B3B;
  color: #FFFFFF;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 10px 24px -10px rgba(194, 59, 59, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .3, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Embed modal (TikTok / Instagram, loaded on click) ===== */
.embed-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.embed-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.embed-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 39, 51, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.embed-modal-panel {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: #FFF8F4;
  border-radius: 20px;
  padding: 44px 12px 16px;
  box-shadow: 0 24px 48px -16px rgba(61, 39, 51, .5);
  transform: translateY(12px) scale(.98);
  transition: transform .2s cubic-bezier(.2, .8, .3, 1);
}

.embed-modal.is-open .embed-modal-panel {
  transform: translateY(0) scale(1);
}

.embed-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px -4px rgba(61, 39, 51, .35);
  transition: transform .16s, background .16s;
}

.embed-modal-close:hover {
  transform: scale(1.06);
  background: #FFFFFF;
}

.embed-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px;
}

.embed-modal-content .tiktok-embed,
.embed-modal-content .instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.embed-modal-loading {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-light);
  padding: 40px 0;
}
