/* www/public/css/visuals.css — home-page visual layer: sprite icons (img/icons.svg), trust badges, section
   dividers, step + waitlist Lotties, stakes icons, success list, sample-testimonial stars/avatars/award badge,
   compare-table glyphs and pricing feature icons. Loaded after home.css / compare.css.
   RTL-safe: logical properties only. Never select on data-placeholder (check-placeholders.sh greps for it). */

/* Base size for an inline sprite icon: <svg class="ico"><use href="/img/icons.svg#id" /></svg> */
.ico {
  flex: none;
  width: 28px;
  height: 28px;
}

/* Trust badges under the hero */
.trust {
  list-style: none;
  padding: 0;
  margin-block: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 14px;
  font-weight: 800;
}

/* Divider ornament on the line between two sections */
.divider {
  position: relative;
  z-index: 1;
  height: 0;
  display: flex;
  justify-content: center;
}
.divider span {
  align-self: flex-start;
  margin-top: -21px;
  padding: 7px 18px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--color-border);
}
.divider svg {
  display: block;
  width: 160px;
  height: 24px;
}

/* How it works: Lottie over its static drawing; the drawing hides once the Lottie is live */
.step {
  padding-top: 26px;
}
.step-icon > * {
  grid-area: 1 / 1;
}
.step-icon .icon-still {
  width: 68px;
  height: 68px;
  transition: opacity 0.3s;
}
.step-icon .lottie.is-live + .icon-still {
  opacity: 0;
}

/* Envelope Lottie at the top of both waitlist cards */
.mail-accent {
  width: 76px;
  height: 76px;
  margin: -6px auto 4px;
}
.mail-accent .lottie {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}
.mail-accent .lottie.is-live {
  opacity: 1;
}

/* Stakes */
.stat .ico-lg {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: block;
}
.stakes-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
  font-weight: 800;
  color: var(--color-text-2);
}

/* Success: cheering Gilda (correct.json, 512×640) laid over the static celebrate pose */
.gilda-cheer {
  position: absolute;
  width: 160%;
  aspect-ratio: 512 / 640;
  inset-inline-start: -30%;
  bottom: -12%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gilda-cheer.is-live {
  opacity: 1;
}
.gilda-cheer + img {
  transition: opacity 0.3s;
}
.gilda-cheer.is-live + img {
  opacity: 0;
}
.icon-list {
  list-style: none;
  padding: 0;
  margin: 4px auto 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  width: 100%;
  max-width: 660px;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-sunken);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}
.icon-list .ico {
  width: 36px;
  height: 36px;
}
.success-end {
  margin: 18px 0 0;
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  color: var(--color-brand-lip);
}

/* Sample testimonials: award badge, stars, avatar captions */
.award {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px auto 28px;
  color: #c9971a;
}
.laurel {
  width: 34px;
  height: 74px;
}
.laurel-end {
  transform: scaleX(-1);
}
.award-body {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--color-text);
}
.award-body b {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.award-body small {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-2);
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: #e6b422;
}
.stars svg {
  width: 18px;
  height: 18px;
}
.quotes {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
/* Attribution row: avatar · name + country flag / "lives in …" / Beta user tag, aligned across the row. */
.quote figcaption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 2px dashed var(--color-border);
  padding-top: 14px;
}
.quote figcaption img {
  width: 48px;
  height: 48px;
  flex: none;
}
.quote .who {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.quote .who-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 15px;
}
.quote .who-name .flag {
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(59, 51, 48, 0.12);
}
.quote .who-meta {
  font-size: 14px;
  color: var(--color-text-2);
}
.quote .beta-tag {
  width: max-content;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-success-bg);
  color: var(--color-primary-lip);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Vs alternatives: option glyphs + fit marks */
/* Floated so a wrapped option name stays aligned beside its icon. */
.compare .opt-ico {
  float: inline-start;
  margin-top: -3px;
  width: 28px;
  height: 28px;
  margin-inline-end: 10px;
}
.compare .mark {
  display: inline-block;
  vertical-align: -5px;
  width: 20px;
  height: 20px;
  margin-inline-end: 6px;
}
.sourced-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -12px 0 24px;
  padding: 4px 14px 4px 6px;
  background: var(--color-surface-sunken);
  border: 2px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-2);
}

/* Pricing icons */
.plan-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  display: block;
}
.plan-feats {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  text-align: start;
}
.plan-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-2);
}
.plan-feats svg {
  flex: none;
  width: 24px;
  height: 24px;
}
