@font-face {
  font-family: Inter;
  src: url("/rotakids/assets/inter-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/rotakids/assets/inter-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-width: 280px;
  min-height: 100%;
  background: #29256e;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: #f8fafc;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(155deg, #11172f 0%, #29256e 55%, #4338ca 100%);
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #fbbf24; outline-offset: 5px; }
svg { display: block; width: 28px; height: 28px; fill: currentColor; }

.page {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
}

.profile { text-align: center; margin-bottom: 22px; }
.avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 10px;
  border: 3px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: #f8fafc;
  background-clip: padding-box;
}
.avatar img { display: block; width: 56px; height: 56px; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -1px; font-weight: 700; }
h1 span { color: #c7d2fe; font-weight: 400; }
.profile p { max-width: 310px; margin: 8px auto 0; color: #d8def9; font-size: 13px; line-height: 1.5; text-wrap: balance; }

.links { display: grid; gap: 10px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 11px 16px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 20px;
  color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 2px 5px rgb(15 23 42 / 8%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 12px; }
.card-icon svg { width: 24px; height: 24px; }
.card-icon img { width: 28px; height: 28px; }
.android, .whatsapp { color: #16834a; background: #e9f7ef; }
.apple { color: #d8def9; }
.card-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.card-copy strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.card-copy > span { color: #64748b; font-size: 12px; line-height: 1.4; }
.arrow { flex: 0 0 16px; width: 16px; height: 16px; color: #64748b; }
.link-card[data-link="android"] { background: #fff; border-color: #fff; box-shadow: 0 4px 14px rgb(15 23 42 / 16%); }
.link-card[data-link="android"] .card-copy strong { color: #3730a3; }
.link-card[data-link="android"] .arrow { color: #4f46e5; }
.link-card[aria-disabled="true"] { min-height: 56px; padding-block: 9px; color: #e0e7ff; background: rgb(255 255 255 / 6%); border-color: rgb(199 210 254 / 24%); box-shadow: none; cursor: default; }
.link-card[aria-disabled="true"] [data-iphone-description] { display: none; }
.link-card:not([aria-disabled="true"]) .apple { color: #334155; }
.coming-soon { flex-shrink: 0; padding: 5px 9px; border: 1px solid rgb(199 210 254 / 20%); border-radius: 20px; background: rgb(199 210 254 / 12%); color: #e0e7ff; font-size: 10px; font-weight: 700; white-space: nowrap; }

.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(199 210 254 / 20%); border-radius: 50%; background: rgb(255 255 255 / 5%); color: #eef2ff; transition: background-color 160ms ease; }
.socials svg { width: 21px; height: 21px; }
.footer { margin-top: 10px; text-align: center; }
.footer-dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: #f59e0b; }
.footer a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; color: #c7d2fe; font-size: 11px; }
.notice { margin: 20px 8px 0; color: #e0e7ff; text-align: center; font-size: 13px; line-height: 1.6; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

@media (hover: hover) {
  .link-card[href]:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(15 23 42 / 20%); }
  .socials a:hover { background: rgb(255 255 255 / 12%); }
  .footer a:hover { color: #fff; }
}

@media (max-width: 380px) {
  .page { padding-inline: 16px; }
  .link-card { gap: 10px; padding-inline: 13px; }
  .socials { gap: 8px; }
}

/* O navegador do Instagram ocupa parte da altura útil do celular. */
@media (max-height: 680px) {
  .page { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .profile { margin-bottom: 16px; }
  .avatar { width: 64px; height: 64px; margin-bottom: 8px; }
  .avatar img { width: 48px; height: 48px; }
  h1 { font-size: 26px; }
  .profile p { margin-top: 6px; }
  .links { gap: 8px; }
  .link-card { min-height: 60px; padding-block: 9px; }
  .socials { margin-top: 14px; }
  .footer { margin-top: 6px; }
}

@media (min-width: 720px) {
  .page { padding-top: max(24px, min(6vh, 52px)); padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card, .socials a { transition: none; }
  .link-card[href]:hover { transform: none; }
}
