/* Cartão digital · Saulo Rocha, corretor de imóveis.
   Layout: uma coluna na largura de um celular, como um cartão que se rola.
   Cores e letras da marca "Chave-casa": verde-escuro, verde, sálvia e creme, com serifa clássica. */
:root {
  --ink: #0a261d;
  --panel: #0f3d2e;
  --panel-2: #134634;
  --line: rgba(200, 220, 205, .14);
  --text: #f5f3ec;
  --muted: #93a89a;
  --electric: #8daa91;
  --ice: #e4ece4;
  --navy: #0f3d2e;
  --chrome: linear-gradient(135deg, #0b2e23 0%, #1f6b4f 28%, #f5f3ec 46%, #6f9478 58%, #0f3d2e 100%);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box }
html { background: var(--ink) }
html.intro-lock { overflow: hidden }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(141,170,145,.22), transparent 70%),
    radial-gradient(40% 30% at 100% 60%, rgba(31,107,79,.12), transparent 70%);
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 10px }

.wrap {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(20px + env(safe-area-inset-top, 0px)) calc(40px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 56px;
}

/* ---------- logo ---------- */
.mark { display: block; height: 30px; width: auto; object-fit: contain }
img.mark { filter: drop-shadow(0 0 10px rgba(141, 170, 145, .35)) }
.mark { fill: url(#chrome) }
.brand { display: flex; align-items: center; gap: 10px }
.brand span { font: 500 15px var(--body); letter-spacing: .02em; color: var(--ice) }
.eyebrow { font: 500 10.5px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted) }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ice);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(141,170,145,.12); border-color: rgba(141,170,145,.5) }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none }

/* ---------- profile card ---------- */
.hero { display: grid; gap: 14px }
.profile { display: grid; justify-items: center; position: relative; padding-top: 64px }
.avatar {
  position: absolute; top: 0; z-index: 2;
  width: 132px; height: 132px; border-radius: 50%; padding: 4px;
  background: var(--chrome); box-shadow: 0 18px 40px -12px rgba(31,107,79,.7);
}
.avatar > * { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--ink) }
.avatar .initials {
  display: grid; place-items: center; background: var(--panel-2);
  font: 700 40px var(--display); letter-spacing: -.02em; color: var(--ice);
}
.card {
  width: 100%; position: relative; border-radius: 28px; padding: 84px 24px 26px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 55%, #0a291f);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(31,107,79,.55), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden; text-align: center;
  transition: transform .25s ease-out;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 70%) var(--my, 0%), rgba(200,215,200,.16), transparent 60%);
}
.card .corner { position: absolute; top: 18px; right: 18px }
.card .status { margin-bottom: 14px }
h1 { font: 600 clamp(26px, 7.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance }
h1 .dot-end { color: var(--electric) }
.role { margin: 10px 0 0; font: 500 14px var(--body); color: var(--electric); letter-spacing: .02em }
.bio { display: grid; gap: 14px; margin: 22px auto 0; max-width: 36ch; color: #c6d1c8; font-size: 14.5px }
.bio p { margin: 0 }
.signature { margin: 20px 0 0; font: 600 14px var(--body); color: var(--text) }
.save {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 99px; cursor: pointer;
  background: rgba(141,170,145,.08); border: 1px solid rgba(200,215,200,.35); color: var(--ice);
  font: 600 13.5px var(--body); transition: background .2s;
}
.save:hover { background: rgba(141,170,145,.18) }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ice);
  padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(141,170,145,.08);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62,224,143,.15) }

/* ---------- quick actions ---------- */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 8px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.quick a, .quick button {
  display: grid; justify-items: center; gap: 6px; padding: 12px 2px; border-radius: 14px;
  font: 500 11.5px var(--body); color: var(--muted); background: none; border: 0; cursor: pointer;
  transition: background .2s, color .2s; text-align: center;
}
.quick a:hover, .quick button:hover { background: rgba(141,170,145,.1); color: var(--text) }
.quick svg.i { width: 21px; height: 21px; color: var(--ice) }

/* ---------- link buttons ---------- */
.links { display: grid; gap: 10px }
.link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; border-radius: 18px; text-align: left;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, background .2s;
}
.link:hover { transform: translateY(-2px); border-color: rgba(141,170,145,.45); background: var(--panel-2) }
.link .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(141,170,145,.1); color: var(--ice) }
.link strong { display: block; font: 600 14.5px var(--body) }
.link small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35 }
.link .arrow { color: var(--muted); transition: transform .2s, color .2s }
.link:hover .arrow { transform: translateX(3px); color: var(--electric) }
.link.primary { background: linear-gradient(120deg, #b9cdbb 0%, #ffffff 40%, #dfe8df 60%, #8daa91 100%); background-size: 200% 100%; border-color: transparent; color: var(--navy); animation: shine 9s linear infinite }
.link.primary .ic { background: rgba(10,40,30,.16); color: var(--navy) }
.link.primary small, .link.primary .arrow { color: rgba(10,40,30,.72) }
@keyframes shine { to { background-position: -200% 0 } }

/* ---------- sections ---------- */
section { display: grid; gap: 18px }
.sec-head { display: grid; gap: 8px }
h2 { font: 500 clamp(22px, 6.2vw, 27px)/1.15 var(--display); letter-spacing: -.015em; margin: 0; text-wrap: balance }
h2 span { color: var(--muted) }

.services { display: grid; border-top: 1px solid var(--line) }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line) }
.svc h3 { font: 600 16px var(--body); margin: 0 }
.svc p { grid-column: 1; margin: 0; color: var(--muted); font-size: 14px }
.svc .tag { grid-row: 1 / span 2; grid-column: 2; font: 500 10.5px var(--mono); letter-spacing: .12em; color: var(--electric); text-transform: uppercase; padding-top: 3px }

.qr {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
}
.qr-box { width: 112px; height: 112px; border-radius: 14px; background: #fff; padding: 8px }
.qr-box svg { display: block; width: 100%; height: 100% }
.qr h3 { font: 600 15px var(--body); margin: 0 0 4px }
.qr p { margin: 0; color: var(--muted); font-size: 13.5px }

.cta {
  border-radius: 28px; padding: 30px 24px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1f6b4f, #0b2e23 70%); border: 1px solid rgba(141,170,145,.25);
  display: grid; gap: 18px;
}
.cta::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(200,215,200,.35), transparent 65%) }
.cta > * { position: relative }
.cta h2 { font-size: clamp(25px, 7vw, 31px) }
.cta h2 em { font-style: normal; color: var(--ice) }

footer { display: grid; gap: 18px; justify-items: center; text-align: center; padding-top: 8px }
footer .tagline { font: 500 10.5px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--electric) }
.foot-row { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted) }
.foot-row button { background: none; border: 0; color: var(--ice); cursor: pointer; padding: 0 }
.foot-row button:hover { color: var(--electric) }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  background: var(--ice); color: var(--navy); font: 600 13.5px var(--body);
  padding: 11px 18px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0) }

.rise { animation: rise .7s ease both }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } }

/* ---------- abertura ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(120% 90% at 50% 40%, #0d3326 0%, #061a13 70%);
  display: grid; place-items: center; align-content: center; gap: 8px;
  transition: opacity .6s ease;
}
.intro.intro-out { opacity: 0; pointer-events: none }
.intro-stage { width: min(92vw, 640px); height: auto; overflow: visible }
.intro-skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted);
  padding: 8px 14px; border-radius: 99px; font: 500 12px var(--body); cursor: pointer;
}
.intro-skip:hover { color: var(--text) }
.ig-scene { opacity: 0 }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}
@media (max-width: 360px) {
  .qr { grid-template-columns: 1fr }
  .quick a, .quick button { font-size: 10.5px }
}

/* ---------- Saulo: marca, empreendimentos e crédito ---------- */
.sr-brand .mark { height: 30px; width: auto }
.sr-brand > span { display: grid; line-height: 1.1; font: 600 17px var(--display); letter-spacing: .06em; color: var(--text) }
.sr-brand small { font: 500 10px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--electric) }
footer .foot-mark { height: 56px; width: auto }
h1 { font-size: clamp(30px, 8.6vw, 38px); letter-spacing: .01em }
h2 { font-size: clamp(25px, 7vw, 30px); letter-spacing: 0 }
.proj-list { display: grid; gap: 10px }
.proj-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.proj-card:hover { transform: translateY(-2px); border-color: rgba(141,170,145,.45) }
.proj-card img, .proj-ic { width: 64px; height: 64px; border-radius: 12px; object-fit: cover }
.proj-ic { display: grid; place-items: center; background: rgba(141,170,145,.1); color: var(--ice) }
.proj-tx strong { display: block; font: 600 15px var(--body) }
.proj-tx small { color: var(--muted); font-size: 12.5px }
.credit { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding-top: 4px }
.credit img { height: 16px; width: auto }
.credit:hover { color: var(--ice) }
.sk-intro { background: radial-gradient(110% 80% at 50% 40%, #1f6b4f 0%, #061a13 72%) }
.sk-stage { width: min(80vw, 420px) }

/* ---------- catálogo de empreendimentos ---------- */
[hidden] { display: none !important }
.cat { display: grid; gap: 18px }
.cat-item { border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line) }
.cat-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--panel-2) }
.cat-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none }
.cat-track::-webkit-scrollbar { display: none }
.cat-photo { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: none; scroll-snap-align: start; cursor: zoom-in }
.cat-photo img { width: 100%; height: 100%; object-fit: cover }
.cat-count { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(10,38,29,.72); color: var(--text); font: 500 11.5px var(--mono); backdrop-filter: blur(6px) }
.cat-status { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 99px; background: var(--ice); color: var(--navy); font: 700 11px var(--body); letter-spacing: .04em; text-transform: uppercase }
.cat-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none }
.cat-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(245,243,236,.45); transition: width .2s, background .2s }
.cat-dots i.on { width: 18px; background: var(--text) }
.cat-empty { height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .24em; text-transform: uppercase;
  background: radial-gradient(70% 70% at 50% 40%, rgba(31,107,79,.55), transparent 70%), var(--panel-2) }
.cat-empty .cat-mark { height: 46px; width: auto; opacity: .8 }
.cat-body { padding: 18px; display: grid; gap: 10px }
.cat-body h3 { margin: 0; font: 600 25px/1.1 var(--display) }
.cat-place { margin: 0; color: var(--electric); font-size: 13.5px; font-weight: 600 }
.cat-specs { display: flex; flex-wrap: wrap; gap: 6px }
.cat-specs span { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text) }
.cat-desc { margin: 0; color: var(--muted); font-size: 14px }
.cat-feat { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--text) }
.cat-feat li::before { content: "·"; color: var(--electric); font-weight: 700; margin-right: 6px }
.cat-price { margin: 4px 0 0; display: grid }
.cat-price small { color: var(--muted); font-size: 11.5px }
.cat-price b { font: 600 24px var(--display) }
.cat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px }
.btn-cat { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font: 600 13.5px var(--body) }
.btn-cat svg.i { width: 18px; height: 18px }
.btn-cat.primary { background: var(--ice); color: var(--navy); border-color: transparent }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,18,13,.96); display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top, 0px) 0 calc(16px + env(safe-area-inset-bottom, 0px)) }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); color: var(--text) }
.lb-top b { flex: 1; min-width: 0; font: 600 20px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lb-count { font: 500 12px var(--mono); color: var(--muted) }
.lb-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 16px; cursor: pointer }
.lb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0 }
.lb-track::-webkit-scrollbar { display: none }
.lb-track figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 0 8px }
.lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,38,29,.7); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer }
.lb-nav.prev { left: max(10px, env(safe-area-inset-left, 0px)) } .lb-nav.next { right: max(10px, env(safe-area-inset-right, 0px)) }
.lb-cta { justify-self: center; margin-top: 12px }
@media (max-width: 600px) { .lb-nav { display: none } }
