/*
  Homepage additions: hero "0% markup" mark, the "Replaces" strip, the
  countries marquee, "Here's what you get" (real product captures, see
  livewire/public/partials/product-shot.blade.php) and the Meta-fee section.
  Loaded on every public page by the layout's rc-site-*.css glob.
*/

/* Hero ------------------------------------------------------------------ */
.rc-hm-zero { padding: 1px 5px; border-radius: 6px; background: var(--whatsapp-bg); color: var(--brand-ink); font-weight: 700; white-space: nowrap; }

/* Replaces strip ---------------------------------------------------------- */
.rc-hm-reach { padding: 8px 0 72px; }
.rc-hm-replace { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-md); }
.rc-hm-replace-lead { display: inline-flex; align-items: center; gap: 14px; margin: 0; }
.rc-hm-replace-mark img { display: block; width: 40px; height: 40px; }
.rc-hm-replace-word { position: relative; display: inline-block; padding-bottom: 22px; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--ink); }
.rc-hm-replace-arrow { position: absolute; left: 2px; bottom: -6px; color: var(--ink-subtle); }
.rc-hm-replace-list { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0; padding: 0; list-style: none; }
.rc-hm-replace-all { margin-left: auto; white-space: nowrap; }

/* Competitor logos (their own files, public/images/competitors). Sized per
   logo in the markup so they read at the same visual weight. */
.rc-hm-logo { display: inline-flex; align-items: center; border-radius: 6px; transition: opacity .15s, transform .15s; }
.rc-hm-logo img { display: block; max-width: none; }
.rc-hm-replace-list:hover .rc-hm-logo { opacity: .55; }
.rc-hm-replace-list .rc-hm-logo:hover, .rc-hm-logo:focus-visible { opacity: 1; transform: translateY(-1px); }

/* Countries marquee ------------------------------------------------------- */
.rc-hm-countries { margin-top: 56px; text-align: center; }
.rc-hm-countries-title { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.rc-hm-countries-head p { max-width: 620px; margin: 0 auto 24px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.rc-hm-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rc-hm-marquee-track { display: flex; gap: 10px; width: max-content; margin: 0; padding: 4px 0; list-style: none; animation: rc-hm-marquee 60s linear infinite; }
.rc-hm-marquee:hover .rc-hm-marquee-track { animation-play-state: paused; }
.rc-hm-marquee-track li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.rc-hm-marquee-track b { font-size: 12px; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
@keyframes rc-hm-marquee { to { transform: translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) {
  .rc-hm-marquee { -webkit-mask-image: none; mask-image: none; }
  .rc-hm-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
  .rc-hm-marquee-track li[aria-hidden="true"] { display: none; }
}

/* Here's what you get ----------------------------------------------------- */
.rc-hm-get { padding-top: 24px; }
.rc-hm-get-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.rc-hm-get-card { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--brand-200); border-radius: 20px; color: inherit; text-decoration: none;
  background: radial-gradient(circle at 1px 1px, rgba(7,94,84,.09) 1px, transparent 0) 0 0 / 16px 16px, linear-gradient(180deg, var(--brand-100), #f4fbf7 60%);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.rc-hm-get-card--wide, .rc-hm-get-card--half { grid-column: span 3; }
.rc-hm-get-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.rc-hm-get-copy { display: block; padding: 28px 28px 20px; }
.rc-hm-get-copy h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.rc-hm-get-copy p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.rc-hm-get-card:hover h3 { color: var(--brand-700); }
.rc-hm-get-frame { position: relative; display: block; margin: auto 14px 0; padding-top: 22px; overflow: hidden; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface); box-shadow: 0 -2px 18px -8px rgba(16,32,28,.18);
  aspect-ratio: 16 / 10; }
.rc-hm-get-card--wide .rc-hm-get-frame { aspect-ratio: 16 / 9; }
.rc-hm-get-dots { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 5px; align-items: center; height: 22px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--surface-sunken); }
.rc-hm-get-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.rc-shot-media { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; background: var(--surface-sunken); }
/* Captures are full 1440×900 windows; zoom in (trimming the panel sidebar)
   so the text is readable in a card. --shot-x picks where to zoom. */
.rc-hm-get-frame .rc-shot-media { transform: scale(1.32); transform-origin: var(--shot-x, 67%) 0; }
.rc-hm-get-card:not(.rc-hm-get-card--wide):not(.rc-hm-get-card--half) .rc-shot-media { transform: scale(1.7); transform-origin: var(--shot-x, 60%) 0; }
@media (max-width: 1023px) {
  .rc-hm-get-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-hm-get-card, .rc-hm-get-card--wide, .rc-hm-get-card--half { grid-column: span 1; }
  .rc-hm-get-card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .rc-hm-reach { padding-bottom: 48px; }
  .rc-hm-replace { padding: 22px 20px; }
  .rc-hm-replace-list { display: grid; flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 20px 14px; }
  .rc-hm-replace-list li { min-width: 0; }
  .rc-hm-logo img { max-width: 100%; height: auto; }
  .rc-hm-replace-all { margin-left: 0; }
  .rc-hm-get-grid { grid-template-columns: 1fr; }
  .rc-hm-get-card, .rc-hm-get-card--wide, .rc-hm-get-card--half { grid-column: span 1; }
  .rc-hm-get-copy { padding: 22px 20px 16px; }
  .rc-hm-get-grid .rc-hm-get-card .rc-shot-media { transform: scale(1.45); transform-origin: 50% 0; }
}

/* Meta fees --------------------------------------------------------------- */
.rc-hm-fees-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.rc-hm-fees-copy .rc-mk-checks { margin: 20px 0 0; }
.rc-hm-fees-switch { margin: 24px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }
.rc-hm-fees-switch a { color: var(--brand-700); font-weight: 600; }
.rc-hm-fees-calc { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); }
.rc-hm-fees-calc .rc-sp-table table { min-width: 0; }
@media (max-width: 1023px) { .rc-hm-fees-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) {
  .rc-hm-fees-calc { padding: 16px; }
  .rc-hm-fees-calc .rc-fc-controls { grid-template-columns: 1fr; }
}
