/* Dr. Murilo Marsola | página de link na bio
   Mesmo visual do site: azul-marinho, creme e dourado, Albert Sans grossa. */

:root {
  color-scheme: dark;
  --bg: #0B1626;
  --navy-2: #13223A;
  --navy-3: #1A2D49;
  --mint: #CDAE72;
  --cyan: #CDAE72;
  --accent: #7A5A26;
  --cream: #F3F1EC;
  --paper: #FAF8F4;
  --ink: #0B1626;
  --muted: #D2D9E2;
  --line: rgba(243, 241, 236, .16);
  --display: "Albert Sans", system-ui, sans-serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; overflow-x: hidden;
  color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(110% 46% at 50% 0%, var(--navy-3), transparent 75%), var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 10px; }

.backdrop { display: none; }
.shell { position: relative; width: min(100%, 480px); margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }

/* entrada */
.in { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .8s var(--ease); transition-delay: calc(var(--n) * 50ms + 60ms); }
.ready .in { opacity: 1; transform: none; }

/* perfil compacto: os 4 botões ficam na 1ª tela */
.portrait { --ph: clamp(116px, calc(100svh - 468px), 300px); height: var(--ph); margin: 0 -16px 2px; overflow: hidden; }
.photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 13%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); transform: scale(1.05); transition: transform 1.6s var(--ease); }
.ready .photo { transform: none; }
.identity { position: relative; text-align: center; }
.identity h1 { font-family: var(--display); font-size: clamp(1.75rem, 8vw, 2.2rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.identity h1 b { font-weight: 700; color: var(--mint); }
.roles { margin-top: 6px; font-size: .8125rem; font-weight: 500; line-height: 1.35; color: var(--muted); text-wrap: balance; }
.proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.proof li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(234, 242, 245, .05); font-size: .75rem; font-weight: 600; }
.proof svg { font-size: .85rem; color: var(--mint); stroke-width: 2.4; }

.group-title { display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); white-space: nowrap; }
.group-title::before, .group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* os 4 botões */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-height: 62px; padding: 7px 10px; border-radius: 14px;
  color: var(--ink); background: var(--mint);
}
.tile { transition: opacity .6s ease, transform .8s var(--ease), background .25s; }
.tile:hover { background: #DBC08C; }
.ready .tile:active { transform: scale(.98); }
.tile strong { font: 600 .9375rem/1.1 var(--display); }
.tile strong small { display: block; margin-top: 1px; font: 600 .75rem/1.15 var(--sans); }
.tile[data-kind=site] { background: var(--paper); }
.tile span svg { width: 18px; height: 18px; }
.tile span { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; }
.tile span img { width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: var(--paper); }

/* onde é a sua dor */
.feature { margin-top: 10px; overflow: hidden; border-radius: 16px; background: var(--navy-2); border: 1px solid var(--line); }
.feature summary { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; min-height: 72px; padding: 10px 12px; list-style: none; cursor: pointer; }
.feature summary::-webkit-details-marker { display: none; }
.feature-orb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); }
.feature-orb img { width: 30px; height: 30px; }
.feature-text { display: grid; gap: 1px; min-width: 0; }
.feature-text strong { font: 700 1.15rem/1.2 var(--display); }
.feature-text span { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.feature-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--ink); transition: transform .45s var(--ease); }
.feature[open] .feature-toggle { transform: rotate(45deg); }
.feature-body { padding: 0 12px 14px; animation: panel .45s var(--ease); }
a.feature { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; min-height: 72px; padding: 10px 12px; text-decoration: none; color: inherit; }
a.feature .feature-toggle svg { width: 18px; height: 18px; }
.feature-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature-actions a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 10px; border-radius: 12px; color: var(--ink); background: var(--cream); font-size: .875rem; font-weight: 700; line-height: 1.2; transition: background .25s; }
.feature-actions a:hover { background: var(--mint); }
.feature-actions .wide { grid-column: 1 / -1; }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }

/* links */
.links { display: grid; gap: 8px; margin-top: 10px; }
.link { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px; border-radius: 16px; color: var(--ink); background: var(--paper); }
.link { transition: opacity .6s ease, transform .8s var(--ease); }
.ready .link:hover { transform: translateY(-2px); }
.ready .link:active { transform: scale(.985); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #EFEBE3; }
.ico img { width: 30px; height: 30px; }
.ico-line { color: var(--accent); font-size: 1.5rem; }
.link-text { display: grid; gap: 1px; min-width: 0; }
.link-text small { font-size: .75rem; font-weight: 600; line-height: 1.3; color: var(--accent); }
.link-text strong { font: 600 1.125rem/1.2 var(--display); }
.go { width: 34px; height: 34px; padding: 9px; border-radius: 50%; border: 1px solid #D8D0C2; color: var(--ink); transition: background .3s, color .3s, transform .45s var(--ease); }
.link:hover .go { background: var(--bg); color: var(--paper); transform: rotate(45deg); }

/* redes e compartilhar */
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--accent); background: var(--paper); font-size: 1.25rem; transition: opacity .6s ease, transform .35s var(--ease); }
.round img { width: 26px; height: 26px; }
.round .fb { width: 26px; height: 26px; fill: #1877F2; stroke: none; }
.round:hover { transform: translateY(-2px); }
.round:active { transform: scale(.94); }

.foot { padding-top: 18px; text-align: center; font-size: .75rem; color: var(--muted); }

.ripple { position: absolute; z-index: -1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(205, 174, 114, .3); pointer-events: none; animation: ripple .7s ease-out forwards; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50; padding: 12px 20px; border-radius: 999px; color: var(--ink); background: var(--cream); font-size: .875rem; font-weight: 600; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .3s ease, transform .5s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* computador: coluna de celular sobre o fundo da marca */
/* botão verde de agendamento e modal dos locais */
.book-btn { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; margin-top: 16px; border: 0; border-radius: 999px; background: #25D366; color: #0B1626; font: 700 1.125rem/1 var(--display); cursor: pointer; box-shadow: 0 12px 30px rgba(37, 211, 102, .28); transition: opacity .6s ease, transform .8s var(--ease), background .25s; }
.book-btn:hover { background: #3BE07A; }
.ready .book-btn:active { transform: scale(.98); }
.book-btn img { width: 26px; height: 26px; }
.book-modal { width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 24px 16px 16px; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .55); overflow: auto; }
.book-modal::backdrop { background: rgba(11, 22, 38, .75); backdrop-filter: blur(3px); }
.book-modal[open] { animation: book-in .32s var(--ease) both; }
.book-kicker { padding-right: 44px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.book-modal h2 { margin: 4px 0 14px; padding-right: 44px; font: 700 1.4rem/1.2 var(--display); }
.book-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.book-x:hover { background: var(--cream); }
.book-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.book-modal .tiles { grid-template-columns: 1fr; }
.book-modal .tile[data-kind=site] { background: var(--cream); }
@keyframes book-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

@media (min-width: 700px) {
  body { padding: 32px 0; }
  .backdrop { position: fixed; inset: 0; z-index: 0; display: block; background: radial-gradient(60% 50% at 50% 30%, #13223A, #08111E); }
  .shell { z-index: 1; border-radius: 32px; overflow: hidden; background: radial-gradient(110% 46% at 50% 0%, var(--navy-3), transparent 75%), var(--bg); padding-bottom: 28px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(234, 242, 245, .08); }
  .portrait { --ph: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .in { opacity: 1; transform: none; }
}
