/* Shared sales layer — ribbon, add-on tags, carousel, Easter egg. Sites theme everything else. */
.tf-ribbon {
  background: #0f1720;
  color: #cfe9e4;
  font: 500 13px/1.4 system-ui, sans-serif;
  text-align: center;
  padding: 7px 16px;
}
.tf-ribbon a { color: #7dd3c7; }
.tf-ribbon strong { color: #ffd34d; font-weight: 600; }

.tf-addon-host { position: relative; }
.tf-addon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: #ffd34d;
  color: #1a1a1a;
  font: 600 12px/1 system-ui, sans-serif;
  letter-spacing: 0.02em;
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
  text-decoration: none;
  transform: rotate(2deg);
  transition: transform 0.15s;
}
.tf-addon:hover { transform: rotate(0) scale(1.05); }

.tf-carousel { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 3 / 2; background: #ddd; }
.tf-carousel > figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.tf-carousel > figure.on { opacity: 1; }
.tf-carousel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-carousel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 40px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.7));
  color: #fff;
  font-size: 1.05rem;
}
.tf-carousel figcaption small { display: block; opacity: 0.8; margin-top: 4px; font-size: 0.85rem; }
.tf-prev, .tf-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.tf-prev { left: 12px; }
.tf-next { right: 12px; }
.tf-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 4; }
.tf-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.5); cursor: pointer; }
.tf-dots button.on { background: #fff; }

.tf-form-note { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fff7d6; color: #3d3200; font-size: 0.95rem; }

[data-egg] { cursor: default; user-select: none; }
.tf-egg {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(10 15 20 / 0.6);
  animation: tf-fade 0.25s ease;
}
.tf-egg-card {
  max-width: 420px;
  background: #0f1720;
  color: #e8f3f1;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  font-family: system-ui, sans-serif;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.4);
  animation: tf-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.tf-egg-peak { font-size: 42px; color: #7dd3c7; }
.tf-egg-card h2 { margin: 8px 0; font-size: 1.6rem; }
.tf-egg-card code { background: #ffd34d; color: #111; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.tf-egg-small { font-size: 0.85rem; opacity: 0.7; }
.tf-egg-cta { display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: #7dd3c7; color: #0f1720; font-weight: 700; text-decoration: none; }
.tf-egg-card button { margin-left: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid #44525e; background: none; color: inherit; cursor: pointer; }
@keyframes tf-fade { from { opacity: 0; } }
@keyframes tf-pop { from { transform: scale(0.8); opacity: 0; } }

/* Reader egg — deliberately faint, readable if you look. */
.tf-reader-egg {
  margin: 56px 0 8px;
  font: 400 11px/1.5 system-ui, sans-serif;
  letter-spacing: 0.02em;
  opacity: 0.38;
  text-align: center;
  transition: opacity 0.3s;
}
.tf-reader-egg:hover { opacity: 1; }
.tf-reader-egg code { font-weight: 700; }

/* Language button in the ribbon */
.tf-ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.tf-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1px solid #44525e; border-radius: 999px;
  background: none; color: #e8f3f1; font: inherit; cursor: pointer;
}
.tf-lang-btn:hover { border-color: #7dd3c7; }
.tf-lang-btn img { width: 18px; height: 13.5px; border-radius: 2px; }

/* Language picker — opens on first visit */
.tf-lang {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center; padding: 16px;
  background: rgb(10 15 20 / 0.65); backdrop-filter: blur(4px);
  animation: tf-fade 0.25s ease;
  font-family: system-ui, sans-serif;
}
.tf-lang-card {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #0f1720; color: #e8f3f1; border-radius: 22px; padding: 28px 24px 24px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.45);
  animation: tf-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.tf-lang-card h2 { margin: 0 0 6px; font-size: 1.5rem; }
.tf-lang-sale { margin: 0 0 18px; color: #b9cdc8; font-size: 0.95rem; }
.tf-lang-sale strong { color: #ffd34d; }
.tf-lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tf-lang-grid button {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px 12px; border-radius: 12px; border: 1px solid #2b3a46;
  background: #16222c; color: inherit; font: inherit; text-align: start; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.tf-lang-grid button:hover, .tf-lang-grid button:focus-visible { border-color: #7dd3c7; transform: translateY(-1px); }
.tf-lang-grid button.on { border-color: #ffd34d; }
.tf-lang-grid img, .tf-lang-pitch img, .tf-lang-go img { width: 28px; height: 21px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.tf-lang-grid .n { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-lang-grid .b { flex: none; font-size: 0.75rem; padding: 2px 7px; border-radius: 999px; }
.tf-lang-grid .free .b { background: #1f4d45; color: #9ff0e2; }
.tf-lang-grid .paid .b { background: #ffd34d; color: #1a1a1a; font-weight: 700; }
.tf-lang-pitch { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #1b2731; }
.tf-lang-pitch p { margin: 0 0 12px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.tf-lang-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-lang-actions > * {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font: 600 0.9rem system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.tf-lang-ask { background: #ffd34d; color: #1a1a1a; }
.tf-lang-go { background: none; border: 1px solid #44525e; color: inherit; }
.tf-lang-go img { width: 20px; height: 15px; }
.tf-lang-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #1b2731; color: #e8f3f1; font-size: 22px; line-height: 1; cursor: pointer;
}
@media (max-width: 420px) { .tf-lang-grid { grid-template-columns: 1fr; } }

/* Picker with ~40 languages: wider card, search, three columns on desktop. */
.tf-lang-card { width: min(780px, 100%); }
.tf-lang-search {
  width: 100%; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid #2b3a46; background: #16222c; color: #e8f3f1; font: inherit;
}
.tf-lang-search::placeholder { color: #8fa3a0; }
.tf-lang-search:focus-visible { outline: 2px solid #7dd3c7; outline-offset: 1px; }
@media (min-width: 680px) { .tf-lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf-lang-none { margin: 10px 0 0; color: #b9cdc8; font-size: 0.95rem; }

/* Site stylesheets style h2/p globally; keep the overlays readable on every sample. */
.tf-lang-card h2, .tf-egg-card h2 { color: #e8f3f1; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; }
.tf-lang-card p, .tf-egg-card p { color: inherit; }
.tf-lang-sale { color: #b9cdc8; }

/* Contact buttons: neutral cards that sit inside any sample's palette. */
.tf-cb { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.tf-cb-btn {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 14px 16px; border-radius: 14px;
  background: #ffffff; color: #17212b; border: 1px solid rgb(23 33 43 / 0.14);
  text-decoration: none; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tf-cb-btn:hover, .tf-cb-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(0 0 0 / 0.1); border-color: rgb(23 33 43 / 0.3); }
.tf-cb-btn:focus-visible { outline: 3px solid #7dd3c7; outline-offset: 2px; }
.tf-cb-btn svg { flex: none; }
.tf-cb-email svg { color: #1c5d7c; }
.tf-cb-phone svg { color: #2c7a4c; }
.tf-cb-whatsapp svg { color: #1f9e52; }
.tf-cb-sms svg { color: #a8501b; }
.tf-cb-text { display: grid; min-width: 0; flex: 1; }
.tf-cb-label { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.tf-cb-value { font-size: 0.85rem; color: #4b5866; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-cb-price { flex: none; font: 700 11px/1 system-ui, sans-serif; padding: 5px 8px; border-radius: 999px; background: #ffd34d; color: #1a1a1a; }
.tf-cb-note { grid-column: 1 / -1; margin: 4px 0 0; font: 13px/1.5 system-ui, sans-serif; color: inherit; opacity: 0.8; }
.tf-cb-pop-icon { color: #7dd3c7; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .tf-cb-btn { transition: none; } }
