/* reclamar.html — «Reclama o teu anúncio». One column, phone first. */

.claim {
  --claim-brand: #e61e4d;
  --claim-brand-2: #d70466;
  --claim-ok: #16a34a;
  --claim-card: var(--theme-surface);
  --claim-line: var(--theme-border);
  --claim-soft: var(--theme-text-muted);
  min-height: 100vh;
  color: var(--theme-text);
}
.claim__inner { width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 96px; }
.claim [hidden] { display: none !important; }
@media (min-width: 900.99px) {
  body.has-desktop-sidebar main.claim { padding-left: var(--desktop-sidebar-layout-space, 108px); box-sizing: border-box; }
}

/* ---- loading ---- */
.claim-skeleton__photo,
.claim-skeleton__line { border-radius: 22px; background: color-mix(in srgb, var(--theme-text) 8%, transparent); animation: claim-pulse 1.4s ease-in-out infinite; }
.claim-skeleton__photo { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.claim-skeleton__line { height: 18px; width: 55%; margin: 10px 0; border-radius: 9px; }
.claim-skeleton__line--wide { height: 28px; width: 85%; }
@keyframes claim-pulse { 50% { opacity: .55; } }

/* ---- buttons ---- */
.claim-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--claim-line); background: transparent; color: var(--theme-text);
  font: inherit; font-size: .95rem; font-weight: 750; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, opacity .15s ease, background-color .15s ease;
}
.claim-btn:active { transform: scale(.98); }
.claim-btn[disabled] { opacity: .6; cursor: progress; }
.claim-btn--primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--claim-brand), var(--claim-brand-2));
  box-shadow: 0 10px 24px rgba(230, 30, 77, .28);
}
.claim-btn--big { width: 100%; min-height: 56px; border-radius: 16px; font-size: 1.08rem; font-weight: 800; }
.claim-btn--block { width: 100%; margin: 0 0 10px; }
.claim-btn--ghost { margin-top: 8px; }
.claim-link {
  display: block; margin: 18px auto 0; padding: 8px 12px; border: 0; background: none;
  color: var(--claim-soft); font: inherit; font-size: .86rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center;
}

/* ---- 1. hero ---- */
.claim-hero { position: relative; margin: 0 0 20px; border-radius: 26px; overflow: hidden; background: color-mix(in srgb, var(--theme-text) 8%, transparent); }
.claim-hero__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 3; -webkit-overflow-scrolling: touch;
}
.claim-hero__track::-webkit-scrollbar { display: none; }
.claim-hero__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.claim-hero__badge {
  position: absolute; left: 14px; top: 14px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #111; font-size: .8rem; font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.claim-hero__badge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--claim-ok); vertical-align: 1px; }
.claim-hero__count {
  position: absolute; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .76rem; font-weight: 700; pointer-events: none;
}

.claim-head { margin: 0 0 18px; }
.claim-eyebrow { margin: 0 0 4px; color: var(--claim-brand); font-weight: 800; font-size: .95rem; }
.claim-title { margin: 0 0 8px; font-size: clamp(1.7rem, 6.4vw, 2.15rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.claim-sub { margin: 0 0 10px; font-size: 1rem; line-height: 1.4; }
.claim-sub span { color: var(--claim-soft); }
.claim-lead { margin: 0; color: var(--claim-soft); font-size: .96rem; line-height: 1.5; }

/* ---- «Porquê a Cribond»: their money first, then three lines ---- */
.claim-why { margin: 0 0 18px; padding: 16px; border-radius: 20px; border: 1px solid var(--claim-line); background: var(--claim-card); }
.claim-why__title { margin: 0 0 12px; font-size: 1.08rem; font-weight: 800; }
/* One grid for both rows, so the bars line up whatever the names' width. */
.claim-compare { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 9px 10px; font-size: .9rem; }
.claim-compare__row { display: contents; }
.claim-compare__label, .claim-compare__gain { grid-column: 1 / -1; }
.claim-compare__label { margin: 0 0 2px; color: var(--claim-soft); font-size: .88rem; font-weight: 650; }
.claim-compare__name { color: var(--claim-soft); font-weight: 650; white-space: nowrap; }
.claim-compare__bar { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--theme-text) 7%, transparent); overflow: hidden; }
.claim-compare__bar i {
  display: block; height: 100%; width: 85%; border-radius: inherit;
  background: color-mix(in srgb, var(--theme-text) 28%, transparent);
  transform-origin: left center; animation: claim-grow .9s cubic-bezier(.2, .8, .2, 1) .15s both;
}
.claim-compare__value { min-width: 4.2rem; white-space: nowrap; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.claim-compare__row--us .claim-compare__name { color: var(--theme-text); font-weight: 800; }
.claim-compare__row--us .claim-compare__bar i { width: 100%; background: linear-gradient(90deg, var(--claim-brand), var(--claim-brand-2)); }
.claim-compare__row--us .claim-compare__value { color: var(--claim-brand); font-weight: 800; font-size: 1.02rem; }
.claim-compare__gain { margin: 2px 0 0; color: var(--claim-soft); font-size: .86rem; line-height: 1.45; }
.claim-compare__gain strong { color: var(--claim-ok); font-size: .98rem; font-weight: 800; }
@keyframes claim-grow { from { transform: scaleX(0); } }
.claim-why__list { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--claim-line); display: grid; gap: 10px; font-size: .9rem; line-height: 1.45; }
.claim-why__list li { position: relative; padding-left: 28px; }
.claim-why__list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--claim-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.claim-why__list span { color: var(--claim-soft); }
.claim-why__list strong { font-weight: 800; }
#claimOfferPerk strong { color: var(--claim-brand); }

.claim-cta-block { margin: 0 0 26px; }

/* ---- the dock: the same button, fixed, while the real one is still ahead (claim.js, placeDock) ---- */
.claim-dock {
  position: fixed; z-index: 900; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  box-sizing: border-box; width: min(560px, calc(100% - 24px)); padding: 10px 10px 8px;
  border-radius: 22px; border: 1px solid var(--claim-line);
  background: color-mix(in srgb, var(--theme-surface) 96%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  transform: translateX(-50%); animation: claim-dock-in .22s ease-out both;
}
.claim-dock__btn { width: 100%; min-height: 52px; border-radius: 15px; font-size: 1.04rem; font-weight: 800; }
.claim-dock__note { margin: 6px 0 0; text-align: center; color: var(--claim-soft); font-size: .78rem; font-weight: 600; }
@keyframes claim-dock-in { from { transform: translate(-50%, 16px); opacity: 0; } }
@media (max-width: 900.98px) {
  body.has-mobile-tabbar .claim-dock { bottom: calc(var(--mobile-tabbar-offset, 0px) + 8px); }
}
@media (min-width: 900.99px) {
  body.has-desktop-sidebar .claim-dock { left: calc(50% + var(--desktop-sidebar-layout-space, 108px) / 2); }
}
.claim-cta-note { margin: 9px 0 0; text-align: center; color: var(--claim-soft); font-size: .84rem; font-weight: 600; }

/* ---- a manager's invitation: every house, each one ticked ---- */
.claim-houses { margin: 0 0 18px; padding: 16px 12px 10px; border-radius: 20px; border: 1px solid var(--claim-line); background: var(--claim-card); }
.claim-houses__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; }
.claim-houses__title { margin: 0; font-size: 1.02rem; font-weight: 800; }
.claim-houses__count { color: var(--claim-soft); font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.claim-houses__hint { margin: 2px 0 8px; padding: 0 4px; color: var(--claim-soft); font-size: .86rem; }
.claim-houses__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 400px; overflow-y: auto; overscroll-behavior: contain; }
.claim-houses__list--done { max-height: none; overflow: visible; margin: 0 0 18px; gap: 8px; text-align: left; }
.claim-house { display: flex; align-items: center; gap: 4px; }
.claim-house__main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: inherit; text-decoration: none; cursor: pointer; }
.claim-house__main:hover { background: color-mix(in srgb, var(--theme-text) 5%, transparent); }
.claim-houses .claim-house__check { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--claim-brand); }
.claim-house__main img, .claim-house__ph { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--claim-line); }
.claim-house__text { min-width: 0; display: grid; gap: 2px; }
.claim-house__text strong { overflow: hidden; font-size: .93rem; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.claim-house__text span { color: var(--claim-soft); font-size: .84rem; }
.claim-house__go { flex: 0 0 auto; margin-left: auto; padding: 8px 10px; color: var(--claim-brand); font-size: .86rem; font-weight: 750; text-decoration: none; }
.claim-house:has(.claim-house__check:not(:checked)) img,
.claim-house:has(.claim-house__check:not(:checked)) .claim-house__text { opacity: .45; }
.claim-house--done .claim-house__main { border: 1px solid var(--claim-line); background: var(--claim-card); }
.claim-house--done .claim-house__go { padding: 0 4px; }
.claim-house--done.is-live .claim-house__text span { color: var(--claim-ok); font-weight: 700; }


.claim-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--claim-brand) 7%, transparent); }
.claim-note__avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.claim-note__text { margin: 0 0 6px; font-size: .92rem; line-height: 1.5; }
.claim-note__name { margin: 0; font-weight: 750; font-size: .88rem; }
.claim-expiry { margin: 0; text-align: center; color: var(--claim-soft); font-size: .86rem; font-weight: 650; }

/* ---- steps ---- */
.claim-step__title { margin: 0 0 8px; font-size: clamp(1.5rem, 5.6vw, 1.9rem); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.claim-step__lead { margin: 0 0 20px; color: var(--claim-soft); font-size: .96rem; line-height: 1.5; }
.claim-feedback { min-height: 1.2em; margin: 10px 0 0; color: var(--claim-soft); font-size: .86rem; line-height: 1.45; }
.claim-feedback.is-error { color: #dc2626; }
.claim-feedback:empty { display: none; }

/* ---- 3/4. it's yours ---- */
.claim-step--center { text-align: center; padding-top: 18px; }
.claim-step--center .claim-step__lead { max-width: 420px; margin-left: auto; margin-right: auto; }
.claim-burst {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--claim-brand), var(--claim-brand-2));
  box-shadow: 0 0 0 10px rgba(230, 30, 77, .1), 0 16px 34px rgba(230, 30, 77, .3);
  animation: claim-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.claim-burst svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.claim-burst--live { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 0 0 10px rgba(22, 163, 74, .12), 0 16px 34px rgba(22, 163, 74, .3); }


@keyframes claim-pop { from { transform: scale(.4); opacity: 0; } }
.claim-cover { margin: 0 auto 20px; max-width: 420px; }
.claim-cover img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; }
.claim-fine { margin: 12px auto 0; max-width: 420px; color: var(--claim-soft); font-size: .78rem; line-height: 1.5; }
.claim-fine a { color: inherit; }
.claim-missing { margin: 0 auto; max-width: 420px; padding: 16px; border-radius: 20px; border: 1px solid var(--claim-line); background: var(--claim-card); text-align: left; }
.claim-missing p { margin: 0 0 8px; font-weight: 750; }
.claim-missing ul { margin: 0 0 14px; padding-left: 20px; color: var(--claim-soft); font-size: .9rem; line-height: 1.6; }
.claim-missing .claim-btn { width: 100%; }
.claim-next { display: grid; gap: 10px; margin: 22px auto 0; max-width: 420px; text-align: left; }
.claim-next__item { display: block; padding: 16px; border-radius: 20px; border: 1px solid var(--claim-line); background: var(--claim-card); color: var(--theme-text); text-decoration: none; transition: transform .12s ease; }
.claim-next__item:active { transform: scale(.99); }
.claim-next__item strong { display: block; margin: 0 0 4px; font-weight: 800; }
.claim-next__item strong::after { content: " →"; color: var(--claim-brand); }
.claim-next__item span { color: var(--claim-soft); font-size: .88rem; line-height: 1.45; }

/* ---- messages ---- */
.claim-message { padding: 56px 8px; text-align: center; }
.claim-message__title { margin: 0 0 10px; font-size: 1.5rem; font-weight: 800; }
.claim-message__text { margin: 0 auto 18px; max-width: 420px; color: var(--claim-soft); line-height: 1.5; }

/* ---- decline sheet (a top-level surface) ---- */
.claim-sheet[hidden] { display: none; }
.claim-sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); }
.claim-sheet__panel {
  box-sizing: border-box; width: min(520px, 100%); padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0; background: var(--theme-surface); color: var(--theme-text);
  animation: claim-sheet-in .22s ease-out both;
}
.claim-sheet__panel h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.claim-sheet__panel p { margin: 0 0 14px; color: var(--theme-text-muted); }
@keyframes claim-sheet-in { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 640px) {
  .claim-sheet { align-items: center; }
  .claim-sheet__panel { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .claim-burst, .claim-sheet__panel, .claim-skeleton__photo, .claim-skeleton__line, .claim-dock { animation: none; }
  .claim-compare__bar i { animation: none; }
}

/* ---- the house behind the invitation (claim.js, renderBackdrop) ---- */
.claim-backdrop {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: var(--theme-page-bg, #0b0b0c) center / cover no-repeat;
}
.claim-backdrop::before {
  content: ""; position: absolute; inset: -40px;
  background: inherit; filter: blur(26px) saturate(1.1);
}
.claim-backdrop iframe {
  position: absolute; left: -4%; top: -4%; width: 108%; height: 108%; border: 0;
  filter: blur(14px) saturate(1.1); opacity: 0; transition: opacity .6s ease;
}
.claim-backdrop.is-ready iframe { opacity: 1; }
.claim-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--theme-page-bg, #0b0b0c) 58%, transparent),
    color-mix(in srgb, var(--theme-page-bg, #0b0b0c) 84%, transparent));
}
body.has-claim-backdrop { background: var(--theme-page-bg, #0b0b0c); }
body.has-claim-backdrop main.claim { position: relative; z-index: 1; }
.claim-hero__view {
  position: absolute; right: 14px; top: 14px; padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--claim-brand), var(--claim-brand-2)); color: #fff;
  font-size: .8rem; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.claim-btn--view { margin: 10px 0 0; background: var(--claim-card); }
