/* Trending Formats — components: header/nav, homepage sections, blog list, FAQ, CTA band, footer.
   Ported from design-pass/preview.html (approved 2026-09-30). */

/* ── Header + nav ─────────────────────────────────────────── */
.tf-header { position: relative; z-index: 50; }
.tf-top { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.tf-logo { font: 800 25px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; color: var(--text); }
.tf-logo b { color: var(--yellow); font-weight: 800; }
.tf-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.tf-nav-list { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 16px; }
.tf-nav-link { color: var(--dim); transition: color .12s; }
.tf-nav-link:hover { color: var(--text); }
.tf-nav-link[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.tf-top-cta { display: none; }
.tf-menu-btn { display: none; }

@media (max-width: 760px) {
  .tf-top { gap: 14px; padding-block: 18px; }
  .tf-logo { font-size: 22px; }
  .tf-nav { gap: 10px; }

  /* No-JS fallback: links wrap onto their own row under the wordmark. */
  html:not(.tf-js) .tf-top { flex-wrap: wrap; }
  html:not(.tf-js) .tf-nav { margin-left: 0; width: 100%; }
  html:not(.tf-js) .tf-nav-list { flex-wrap: wrap; gap: 10px 20px; }

  /* JS: menu button + full-width panel under the header. */
  .tf-js .tf-top-cta { display: inline-flex; }
  .tf-js .tf-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 44px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .tf-js .tf-menu-btn:hover { border-color: var(--gun-hi); }
  .tf-js .tf-nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 22px; box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
  }
  .tf-js .tf-header.is-open .tf-nav-list { display: flex; }
  .tf-js .tf-nav-list .tf-nav-link {
    display: flex; align-items: center; min-height: 54px;
    font-size: 19px; color: var(--text); border-bottom: 1px solid var(--line);
  }
  .tf-js .tf-nav-list .tf-nav-link[aria-current="page"] { color: var(--yellow); text-decoration: none; }
  .tf-nav-cta { margin-top: 18px; }
  .tf-nav-cta .tf-btn { width: 100%; height: 54px; font-size: 17px; }
}
@media (max-width: 400px) {
  .tf-top-cta.tf-btn--sm { padding: 0 13px; font-size: 15px; }
  .tf-top { gap: 10px; }
}

.tf-menu-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.tf-menu-icon, .tf-menu-icon::before, .tf-menu-icon::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .18s, background-color .18s;
}
.tf-menu-icon { position: relative; }
.tf-menu-icon::before, .tf-menu-icon::after { content: ""; position: absolute; left: 0; }
.tf-menu-icon::before { top: -6px; }
.tf-menu-icon::after { top: 6px; }
.tf-header.is-open .tf-menu-icon { background: transparent; }
.tf-header.is-open .tf-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.tf-header.is-open .tf-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Homepage: centered hero ──────────────────────────────── */
.tf-center { text-align: center; margin-inline: auto; }

/* Film grain over the whole homepage (3-4%). */
.tf-grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.tf-hero { position: relative; isolation: isolate; text-align: center; padding-top: clamp(12px, 2.6vh, 36px); }
.tf-home { position: relative; }
.tf-hero-in { position: relative; z-index: 1; }
.tf-hero-bg { position: absolute; left: 0; right: 0; top: -110px; height: 920px; z-index: -1; pointer-events: none; }
.tf-hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 42% 34% at 50% 30%, rgba(255, 214, 10, .13), rgba(255, 214, 10, .045) 55%, transparent 78%),
    radial-gradient(ellipse 30% 22% at 50% 64%, rgba(255, 154, 77, .05), transparent 70%);
}
.tf-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244, 245, 246, .11) 1px, transparent 1.5px);
  background-size: 26px 26px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 56% 52% at 50% 34%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 56% 52% at 50% 34%, #000 18%, transparent 74%);
}

.tf-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 15px 6px 12px;
  border: 1px solid rgba(255, 214, 10, .26); border-radius: 999px; background: rgba(255, 214, 10, .06);
  font: 600 14.5px/1.3 var(--body); color: var(--text);
}
.tf-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: 0 0 8px;
  box-shadow: 0 0 0 0 rgba(255, 214, 10, .55); animation: tf-pulse 2.2s ease-out infinite;
}
@keyframes tf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 214, 10, 0); }
}

.tf-hero .tf-h1 {
  margin: 16px auto 0; font-size: min(clamp(40px, 6.4vw, 76px), 8.3vh); line-height: 1.02;
  letter-spacing: -.03em; max-width: 21ch; text-wrap: balance;
}
.tf-hero .tf-lead { margin: 16px auto 0; max-width: 60ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; text-wrap: pretty; }
.tf-hero .tf-capture { margin: 24px auto 0; }
.tf-hero .tf-fine { margin-top: 12px; font-size: 14.5px; }

/* Orchestrated load: hero children rise in once. Only when JS ran and motion is allowed;
   the keyframe "from" state is the only thing hiding them, and site.js clears it after a timeout. */
@keyframes tf-rise-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .tf-js .tf-rise { animation: tf-rise-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .tf-js.tf-rise-done .tf-rise { animation: none; }
}

/* First-fold panel: problem / fix / what you get */
.tf-fold { margin-top: clamp(22px, 3.2vh, 36px); display: flex; flex-direction: column; }
.tf-panel {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.08fr; text-align: left;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(42, 52, 57, .55), rgba(17, 19, 21, .72));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 60px -34px rgba(0, 0, 0, .8);
}
.tf-pcol { padding: 18px 26px 20px; min-width: 0; }
.tf-pcol + .tf-pcol { border-left: 1px solid var(--line); }
.tf-ph { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; color: var(--text); }
.tf-pcol p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--dim); }
.tf-checks { margin-top: 10px; display: grid; gap: 5px; }
.tf-checks li { display: flex; align-items: flex-start; gap: 9px; font-size: 15.5px; line-height: 1.4; color: var(--text); }
.tf-check { flex: 0 0 18px; margin-top: 2px; color: var(--yellow); }

/* ── Marquee: two endless rows of real format cards ───────── */
.tf-mq { margin-top: clamp(20px, 3vh, 32px); display: grid; gap: 16px; text-align: left; }
.tf-mq-row {
  overflow: hidden; padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tf-mq-track { display: flex; width: max-content; animation: tf-mq-left 70s linear infinite; will-change: transform; }
.tf-mq-row--a .tf-mq-track { animation-name: tf-mq-left; }
.tf-mq-row--b .tf-mq-track { animation-name: tf-mq-right; animation-duration: 85s; }
.tf-mq-row:hover .tf-mq-track, .tf-mq-row:focus-within .tf-mq-track { animation-play-state: paused; }
@keyframes tf-mq-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes tf-mq-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.tf-mq-set { display: flex; gap: 16px; padding-right: 16px; }

.tf-mcard { flex: 0 0 300px; display: flex; }
.tf-mcard-link {
  display: flex; flex-direction: column; width: 100%; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .15s, background-color .15s;
}
.tf-mcard-link:hover { border-color: var(--gun-hi); background: #1b1e21; }
.tf-mcard-link:focus-visible { outline-offset: -3px; border-radius: 16px; }
.tf-mcard-th { display: block; aspect-ratio: 16 / 9; background: var(--raised); overflow: hidden; }
.tf-mcard-th img { width: 100%; height: 100%; object-fit: cover; }
.tf-mcard-body { display: flex; flex-direction: column; padding: 13px 16px 16px; flex: 1; }
.tf-mcard-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tf-mcard-rise { font-size: 13.5px; font-weight: 600; color: var(--faint); }
.tf-mcard-fmt { margin-top: 10px; font: 800 19px/1.2 var(--display); letter-spacing: -.02em; color: var(--text); }
.tf-slotx { color: var(--yellow); }
.tf-mcard-ex {
  margin-top: 9px; font-size: 14.5px; line-height: 1.4; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tf-mcard-ch { margin-top: auto; padding-top: 5px; font-size: 13.5px; color: var(--faint); }
.tf-mq-note { margin-top: 6px; text-align: center; font-size: 14.5px; color: var(--faint); padding-inline: var(--gutter); }

/* Outlier pills: yellow 2-5x, amber 5-10x, ember 10-50x, white 50x+, grey under 2x. */
.tf-opill { padding: 3px 10px; border-radius: 999px; font: 800 13.5px/1.35 var(--body); background: var(--yellow); color: var(--black); white-space: nowrap; }
.tf-opill--t1 { background: var(--yellow); }
.tf-opill--t2 { background: var(--amber); }
.tf-opill--t3 { background: var(--ember); }
.tf-opill--t4 { background: var(--text); }
.tf-opill--n { background: var(--gun-hi); color: var(--text); }

/* Reduced motion: no animation; rows become native horizontal scrollers with snap. */
@media (prefers-reduced-motion: reduce) {
  .tf-mq-row {
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter); padding-inline: var(--gutter);
    -webkit-mask-image: none; mask-image: none;
  }
  .tf-mq-row::-webkit-scrollbar { display: none; }
  .tf-mq-track { animation: none; will-change: auto; }
  .tf-mq-set[aria-hidden="true"] { display: none; }
  .tf-mcard { scroll-snap-align: start; }
}

@media (max-width: 760px) {
  .tf-panel-wrap { order: 2; margin-top: 36px; }
  .tf-mq { order: 1; margin-top: 0; }
  .tf-panel { grid-template-columns: 1fr; }
  .tf-pcol + .tf-pcol { border-left: 0; border-top: 1px solid var(--line); }
  .tf-pcol { padding: 18px 20px 20px; }
  .tf-mcard { flex-basis: 272px; }
  .tf-mcard-fmt { font-size: 18px; }
}

/* ── Sections ─────────────────────────────────────────────── */
.tf-blk { padding-block: clamp(64px, 9vw, 120px); }
.tf-blk--flush { padding-top: 0; }
.tf-posts--home { max-width: 880px; margin-inline: auto; margin-top: 40px; }

/* Steps: the only numbered element on the page. */
.tf-steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tf-step {
  padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(42, 52, 57, .4), rgba(23, 25, 28, .2));
}
.tf-n {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 214, 10, .45); color: var(--yellow); font: 800 19px/1 var(--display);
}
.tf-step h3 { margin-top: 18px; font: 800 23px/1.2 var(--display); letter-spacing: -.025em; }
.tf-step p { margin-top: 10px; color: var(--dim); font-size: 16.5px; }

/* Blog rows */
.tf-posts { margin-top: 36px; }
.tf-postrow { display: grid; grid-template-columns: 1fr auto; gap: 6px 30px; padding: 24px 0; border-top: 1px solid var(--line); }
.tf-postrow:last-child { border-bottom: 1px solid var(--line); }
.tf-postrow h3 { font: 800 clamp(22px, 2.4vw, 29px)/1.2 var(--display); letter-spacing: -.03em; transition: color .12s; }
.tf-postrow:hover h3 { color: var(--yellow); }
.tf-postrow p { grid-column: 1; color: var(--dim); font-size: 17px; max-width: 66ch; }
.tf-rt { grid-row: 1; grid-column: 2; color: var(--faint); font-size: 15px; white-space: nowrap; align-self: start; padding-top: 8px; }

/* FAQ */
.tf-faq { margin: 40px auto 0; max-width: 820px; }
.tf-faq details { border-top: 1px solid var(--line); }
.tf-faq details:last-child { border-bottom: 1px solid var(--line); }
.tf-faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0;
  font: 700 21px/1.3 var(--display); letter-spacing: -.02em; position: relative;
}
.tf-faq summary::-webkit-details-marker { display: none; }
.tf-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font: 500 32px/1 var(--body); color: var(--yellow); transition: transform .2s;
}
.tf-faq details[open] summary::after { transform: rotate(45deg); }
.tf-faq details p { padding: 0 44px 24px 0; color: var(--dim); font-size: 17.5px; max-width: 64ch; }

/* Yellow CTA band */
.tf-band { background: var(--yellow); color: var(--black); padding-block: 104px; text-align: center; }
.tf-band .tf-h2 { color: var(--black); max-width: 16ch; margin-inline: auto; }
.tf-band .tf-sub { color: #2b2500; margin-inline: auto; }
.tf-band .tf-capture {
  margin: 30px auto 0; background: #fff; border-color: rgba(12, 13, 14, .14);
  box-shadow: 0 18px 40px -18px rgba(90, 70, 0, .55);
}
.tf-band .tf-capture:hover { border-color: rgba(12, 13, 14, .3); }
.tf-band .tf-capture:focus-within { border-color: var(--black); box-shadow: 0 0 0 4px rgba(12, 13, 14, .18); }
.tf-band .tf-capture input { color: var(--black); }
.tf-band .tf-capture input::placeholder { color: #5f5a45; }
.tf-band .tf-btn { background: var(--black); color: var(--yellow); }
.tf-band .tf-fine { color: #3a3200; }
.tf-band :focus-visible { outline-color: var(--black); }

/* Pagination */
.tf-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tf-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--dim); font-weight: 600;
}
.tf-pagination a.page-numbers:hover { color: var(--text); border-color: var(--gun-hi); }
.tf-pagination .current { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.tf-pagination .dots { border-color: transparent; }
.tf-pagination .prev, .tf-pagination .next { color: var(--text); }

/* Footer */
.tf-footer { padding-block: 44px 56px; color: var(--faint); font-size: 15.5px; }
.tf-footer-in { display: flex; gap: 18px 34px; flex-wrap: wrap; align-items: center; }
.tf-footer .tf-logo { font-size: 21px; }
.tf-footer-nav { margin-left: auto; display: flex; gap: 26px; }
.tf-footer-nav a { display: inline-flex; align-items: center; min-height: 32px; }
.tf-footer-nav a:hover, .tf-footer-nav a[aria-current="page"] { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .tf-band { padding-block: 64px; }
  .tf-steps { grid-template-columns: 1fr; }
  .tf-postrow { grid-template-columns: 1fr; }
  .tf-rt { grid-row: auto; grid-column: 1; padding-top: 0; }
}
@media (max-width: 560px) {
  .tf-footer-nav { margin-left: 0; }
}

/* Endless marquee (JS on): the script drives the track, drag / swipe / trackpad wrap forever. */
.tf-mq-js .tf-mq-row { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.tf-mq-js .tf-mq-row.is-drag { cursor: grabbing; }
.tf-mq-js .tf-mq-track { animation: none !important; }
.tf-mq-js .tf-mcard img { -webkit-user-drag: none; }

/* "100% Free" feature badge under every email box */
.tf-free {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin: 18px auto 0; padding: 12px 26px 12px 20px;
  border-radius: 999px; background: rgba(255, 214, 10, .13); border: 1px solid rgba(255, 214, 10, .6); color: var(--yellow);
  font: 800 clamp(20px, 2.4vw, 26px)/1 var(--display); letter-spacing: -.01em;
  box-shadow: 0 0 44px rgba(255, 214, 10, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tf-free-ico { flex: none; }
.tf-band .tf-free { background: var(--black); border-color: var(--black); color: var(--yellow); box-shadow: none; }
.tf-endcap .tf-free { margin-inline: 0; }
