/* ════════════════════════════════════════════════════════════
   TT facelift kit. One file, per-site brand tokens at the top. Loaded AFTER the app's own CSS; works in light and dark.
   Adds: warm hero glow, lifting cards, shine buttons, ripple, scroll reveal, friendly explainer blocks (fl-*).
   Motion is off for prefers-reduced-motion. If this file or facelift.js fails, the site looks exactly as before.
   ════════════════════════════════════════════════════════════ */
:root {
  --fl-brand: #f97316;          /* RentMeTT orange */
  --fl-brand-2: #0ea5e9;
  --fl-accent: #fbbf24;
  --fl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fl-glow: color-mix(in srgb, var(--fl-brand) 32%, transparent);
  --fl-line: color-mix(in srgb, var(--fl-brand) 22%, transparent);
  --fl-card: color-mix(in srgb, var(--bg-card, #fff) 92%, transparent);
}

/* Soft colour glow behind the page */
body::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34vmax 34vmax at 10% 6%, color-mix(in srgb, var(--fl-brand) 16%, transparent), transparent 62%),
    radial-gradient(30vmax 30vmax at 92% 12%, color-mix(in srgb, var(--fl-brand-2) 14%, transparent), transparent 62%),
    radial-gradient(34vmax 34vmax at 70% 96%, color-mix(in srgb, var(--fl-accent) 12%, transparent), transparent 62%);
  animation: fl-drift 30s ease-in-out infinite alternate;
}
@keyframes fl-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(2vmax, -2vmax, 0) scale(1.08); } }

/* Header */
.sov-nav-wrap, header.sticky { transition: box-shadow 0.3s var(--fl-ease), backdrop-filter 0.3s; }
.sov-nav-wrap.fl-scrolled, header.sticky.fl-scrolled { box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.35); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }

/* Hero */
.tt-home-hero { position: relative; overflow: hidden; }
.tt-home-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -150px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--fl-brand) 45%, transparent), color-mix(in srgb, var(--fl-accent) 35%, transparent), color-mix(in srgb, var(--fl-brand-2) 40%, transparent), color-mix(in srgb, var(--fl-brand) 45%, transparent));
  filter: blur(70px); opacity: 0.5; animation: fl-spin 24s linear infinite;
}
@keyframes fl-spin { to { transform: rotate(360deg); } }
.tt-home-hero > * { position: relative; }
.tt-home-hero h1 { letter-spacing: -0.03em; }
.tt-home-eyebrow, .tt-home-post-kicker { letter-spacing: 0.16em; font-weight: 800; }

/* Cards */
.listing-card, .tt-funnel-card, .tt-home-post-card, .fl-card {
  transition: transform 0.35s var(--fl-ease), box-shadow 0.35s var(--fl-ease), border-color 0.25s;
  will-change: transform;
}
.listing-card:hover, .tt-funnel-card:hover, .fl-card:hover { box-shadow: 0 24px 48px -22px var(--fl-glow); border-color: var(--fl-line); }
.listing-card .image-placeholder img { transition: transform 0.8s var(--fl-ease); }
.listing-card:hover .image-placeholder img { transform: scale(1.07); }
.listing-card .price { font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tt-funnel-icon { transition: transform 0.35s var(--fl-ease); }
.tt-funnel-card:hover .tt-funnel-icon { transform: scale(1.18) rotate(-6deg); }

/* Buttons */
.btn-primary, .btn, button[type="submit"], .fl-btn {
  position: relative; overflow: hidden;
  transition: transform 0.2s var(--fl-ease), box-shadow 0.25s var(--fl-ease), filter 0.2s;
}
.btn-primary:hover, .fl-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 30px -10px var(--fl-glow); }
.btn-primary:active, .fl-btn:active { transform: scale(0.97); }
.btn-primary::after, .fl-btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-20deg);
  animation: fl-shine 5s ease-in-out infinite;
}
@keyframes fl-shine { 0%, 65% { left: -120%; } 100% { left: 160%; } }
.fl-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, 0.5); transform: scale(0); animation: fl-ripple 0.65s ease-out forwards; }
@keyframes fl-ripple { to { transform: scale(4); opacity: 0; } }

/* Search and inputs */
.tt-home-search input:focus, input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--fl-glow); }
.badge { letter-spacing: 0.06em; }

/* Scroll reveal (class added by facelift.js) */
.fl-rv { opacity: 0; transform: translateY(24px) scale(0.985); }
.fl-rv.fl-in { opacity: 1; transform: none; transition: opacity 0.7s var(--fl-ease), transform 0.7s var(--fl-ease); transition-delay: var(--fl-d, 0s); }
.listing-card.fl-tilt { transition: transform 0.12s linear, box-shadow 0.3s; }

/* ── Friendly explainer blocks (use on How it works / Sell pages): big steps, plain words ── */
.fl-hero { text-align: center; padding: clamp(20px, 4vw, 48px) 0 8px; }
.fl-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.03em; }
.fl-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--fl-brand), var(--fl-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fl-lead { max-width: 52ch; margin: 12px auto 0; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; color: var(--text-secondary, inherit); }
.fl-section { margin-top: clamp(34px, 6vw, 64px); }
.fl-section > h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.fl-sub { margin: 0 0 22px; font-size: 1.05rem; color: var(--text-muted, inherit); }
.fl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fl-step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: clamp(16px, 3vw, 26px); border-radius: 24px; background: var(--fl-card); border: 1px solid var(--fl-line); transition: transform 0.3s var(--fl-ease), box-shadow 0.3s var(--fl-ease); }
.fl-step:hover { transform: translateX(6px); box-shadow: 0 20px 44px -22px var(--fl-glow); }
.fl-num { width: clamp(48px, 8vw, 66px); height: clamp(48px, 8vw, 66px); border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); background: linear-gradient(135deg, var(--fl-brand), color-mix(in srgb, var(--fl-brand) 55%, var(--fl-accent))); box-shadow: 0 12px 26px -10px var(--fl-glow); }
.fl-step:nth-child(2) .fl-num { background: linear-gradient(135deg, var(--fl-brand-2), color-mix(in srgb, var(--fl-brand-2) 60%, #22d3ee)); }
.fl-step:nth-child(3) .fl-num { background: linear-gradient(135deg, var(--fl-accent), color-mix(in srgb, var(--fl-accent) 60%, var(--fl-brand))); }
.fl-step:nth-child(4) .fl-num { background: linear-gradient(135deg, #16a34a, #4ade80); }
.fl-step h3 { margin: 2px 0 6px; font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.fl-step p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.fl-tip { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 12px; border: 1px dashed var(--fl-line); background: color-mix(in srgb, var(--fl-brand-2) 10%, transparent); font-weight: 600; font-size: 0.95rem; }
.fl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.fl-fact { padding: 22px; border-radius: 22px; background: var(--fl-card); border: 1px solid var(--fl-line); }
.fl-fact .ic { font-size: 2.3rem; line-height: 1; display: block; margin-bottom: 10px; }
.fl-fact h3 { margin: 0 0 6px; font-size: 1.2rem; }
.fl-fact p { margin: 0; line-height: 1.55; }
.fl-example { padding: clamp(18px, 3.4vw, 30px); border-radius: 26px; border: 1px solid var(--fl-line); background: linear-gradient(135deg, color-mix(in srgb, var(--fl-brand) 12%, transparent), var(--fl-card)); }
.fl-ledger { display: grid; border-radius: 18px; overflow: hidden; border: 1px solid var(--fl-line); }
.fl-ledger > div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; font-size: 1.05rem; background: var(--fl-card); }
.fl-ledger > div:nth-child(even) { background: color-mix(in srgb, var(--fl-brand) 6%, var(--fl-card)); }
.fl-ledger b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-ledger > div.total { background: linear-gradient(135deg, var(--fl-brand), color-mix(in srgb, var(--fl-brand) 60%, var(--fl-accent))); color: #fff; font-weight: 800; }
.fl-faq { display: grid; gap: 10px; }
.fl-faq details { border-radius: 18px; background: var(--fl-card); border: 1px solid var(--fl-line); }
.fl-faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 800; font-size: 1.1rem; position: relative; min-height: 56px; }
.fl-faq summary::-webkit-details-marker { display: none; }
.fl-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--fl-brand) 18%, transparent); font-size: 1.3rem; }
.fl-faq details[open] summary::after { content: "–"; }
.fl-faq details > div { padding: 0 20px 18px; line-height: 1.6; font-size: 1.05rem; }
.fl-cta { text-align: center; padding: clamp(26px, 5vw, 52px); border-radius: 28px; border: 1px solid var(--fl-line); background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--fl-brand) 24%, transparent), transparent 70%), var(--fl-card); }
.fl-cta h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.fl-cta p { margin: 0 auto 20px; max-width: 46ch; font-size: 1.1rem; }

@media (max-width: 560px) { .fl-step { grid-template-columns: 1fr; } .fl-step:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body::before, .tt-home-hero::before, .btn-primary::after, .fl-btn::after { animation: none !important; }
  .fl-rv { opacity: 1; transform: none; }
  .listing-card:hover, .btn-primary:hover { transform: none; }
}

/* Self-contained buttons for the explainer pages (apps without a .btn class) */
.fl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--fl-brand), color-mix(in srgb, var(--fl-brand) 60%, var(--fl-accent))); box-shadow: 0 10px 26px -12px var(--fl-glow); }
.fl-btn.ghost { color: inherit; background: var(--fl-card); border: 1px solid var(--fl-line); box-shadow: none; }
.fl-btn.ghost:hover { background: color-mix(in srgb, var(--fl-brand) 12%, var(--fl-card)); }

/* Compact steps strip above the Post forms, and slightly larger form text */
.fl-steps-compact { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.fl-steps-compact .fl-step { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border-radius: 18px; }
.fl-steps-compact .fl-step:hover { transform: none; }
.fl-steps-compact .fl-num { width: 40px; height: 40px; border-radius: 14px; font-size: 1.2rem; }
.fl-steps-compact h3 { font-size: 1.05rem; margin: 0 0 3px; }
.fl-steps-compact p { font-size: 0.92rem; line-height: 1.45; }
main form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), main form select, main form textarea { font-size: 1rem; }
