/* dfyfilm landing. Dark theme locked. One accent (cyan). Radius rule: containers 20px, interactive pills. */

:root {
  --bg: #090D16;
  --surface: #1E293B;
  --surface-soft: rgba(30, 41, 59, .5);
  --line: rgba(248, 250, 252, .09);
  --text: #F8FAFC;
  --muted: #A5B1C4;
  --accent: #00F2FE;
  --accent-ink: #04141A;
  --accent-soft: rgba(0, 242, 254, .12);

  --r: 20px;
  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }

/* ---------- Type helpers ---------- */
.eyebrow { font: 500 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.head p:not(.eyebrow) { color: var(--muted); margin-top: 16px; max-width: 62ch; font-size: 1.05rem; }
.fine { color: var(--muted); font-size: .85rem; max-width: 70ch; margin-top: 24px; }

/* Blank slots the user will fill in */
.blank { display: inline-block; min-width: 1.8em; height: 1em; vertical-align: -.12em; border-bottom: 2px dashed rgba(0, 242, 254, .5); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 .95rem/1 var(--font-body); border: 1px solid transparent; transition: transform .2s, background-color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #5cf7ff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(248, 250, 252, .22); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(0, 242, 254, .35); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9, 13, 22, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.nav.is-scrolled { border-color: var(--line); background: rgba(9, 13, 22, .85); }
.nav__bar { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__word { font: 700 1.35rem/1 var(--font-head); letter-spacing: -.02em; color: #fff; }
.logo__word span { color: var(--accent); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .93rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { min-height: 42px; padding: 0 20px; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 49; display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 32px; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 14px 0; font: 600 1.15rem/1 var(--font-head); border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; background: radial-gradient(60% 70% at 78% 10%, rgba(0, 242, 254, .09), transparent 70%); pointer-events: none; }
.hero h1 { font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; max-width: 24ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(28px, 4vw, 48px); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Video player facade ---------- */
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: linear-gradient(150deg, #16213a 0%, #0c1322 60%, #0a1019 100%); background-size: cover; background-position: center; isolation: isolate; }
.player { box-shadow: 0 0 0 1px rgba(0, 242, 254, .06), 0 0 28px -8px rgba(0, 242, 254, .16), 0 0 64px -24px rgba(0, 242, 254, .12); }
.player--short { aspect-ratio: 9 / 16; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__mark { position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 1; background: var(--surface); clip-path: polygon(22% 10%, 22% 90%, 92% 50%); opacity: .35; z-index: -1; }
.player__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); transition: transform .25s; }
.player__play::after { content: ""; position: absolute; inset: 0; background: var(--accent-ink); clip-path: polygon(38% 28%, 38% 72%, 74% 50%); }
.player:hover .player__play { transform: scale(1.08); }
.player.is-loaded .player__play, .player.is-loaded .player__mark { display: none; }

/* ---------- Problem ---------- */
.problems { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.problems .card { grid-column: span 6; }
.problems__a { grid-column: span 7 !important; }
.problems .card:nth-child(2) { grid-column: span 5; }
.problems .card:nth-child(3) { grid-column: span 5; }
.problems__d { grid-column: span 7 !important; }

.bridge { margin-top: clamp(32px, 5vw, 56px); max-width: 30ch; font: 600 clamp(1.3rem, 2.6vw, 1.9rem)/1.3 var(--font-head); letter-spacing: -.015em; color: var(--text); text-wrap: balance; }

/* ---------- Who it is for ---------- */
.who { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.who > div { border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); }
.who__yes { background: linear-gradient(145deg, rgba(0, 242, 254, .13), rgba(30, 41, 59, .5) 70%); border-color: rgba(0, 242, 254, .3) !important; }
.who__no { background: var(--surface-soft); }
.who h3 { margin-bottom: 20px; font-size: 1.3rem; }
.who li { position: relative; padding: 0 0 16px 30px; color: var(--muted); }
.who li:last-child { padding-bottom: 0; }
.who__yes li { color: var(--text); }
.who__yes li::before { content: ""; position: absolute; left: 3px; top: .4em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.who__no li::before, .who__no li::after { content: ""; position: absolute; left: 1px; top: .78em; width: 14px; height: 2px; background: #7c8aa0; transform: rotate(45deg); }
.who__no li::after { transform: rotate(-45deg); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento__niche { grid-column: span 4; background: linear-gradient(135deg, rgba(0, 242, 254, .16), rgba(30, 41, 59, .5) 65%); }
.bento__scripts { grid-column: span 2; }
.bento__voice { grid-column: span 2; }
.bento__edit { grid-column: span 4; position: relative; overflow: hidden; }
.bento__edit::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 260px; height: 260px; background: var(--surface); clip-path: polygon(22% 10%, 22% 90%, 92% 50%); opacity: .55; z-index: -1; }
.bento__edit { isolation: isolate; }
.bento__thumbs { grid-column: span 3; }
.bento__seo { grid-column: span 3; background: linear-gradient(160deg, rgba(30, 41, 59, .9), rgba(30, 41, 59, .35)); }
.bento .card { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento .card p { max-width: 46ch; }
.extras, .checks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; color: var(--muted); font-size: .95rem; }
.extras li, .checks li { position: relative; padding-left: 24px; }
.extras li::before, .checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* ---------- Visual styles ---------- */
.styles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.style { flex: 0 0 calc((100% - 48px) / 4); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s; }
.style:hover { border-color: rgba(0, 242, 254, .35); }
.style__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #16213a, #0c1322); overflow: hidden; }
.style__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.style__media .fade { opacity: 0; will-change: opacity; animation: styleFade 9s ease-in-out infinite; animation-delay: calc(var(--i) * -.75s); }
@keyframes styleFade { 0%, 36% { opacity: 0; } 48%, 86% { opacity: 1; } 98%, 100% { opacity: 0; } }
.style__body { padding: 18px 20px 22px; }
.style__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.style__body p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---------- Thumbnails ticker (horizontal on desktop, vertical on phones) ---------- */
.thumbs { overflow: hidden; }
.ticker { --gap: 14px; display: grid; gap: var(--gap); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__row { overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: tickerX 80s linear infinite; }
.ticker__row--rev .ticker__track { animation-name: tickerXRev; animation-duration: 95s; }
.ticker__set { display: flex; flex: none; }
.ticker__set img { flex: none; width: clamp(240px, 27vw, 340px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-right: var(--gap); border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.ticker__foot .btn { min-height: 40px; padding: 0 20px; }
@keyframes tickerX { to { transform: translateX(-50%); } }
@keyframes tickerXRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes tickerY { to { transform: translateY(-50%); } }
@keyframes tickerYRev { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.steps h3 { margin-bottom: 10px; font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: .97rem; }
.time { display: inline-block; margin-top: 16px; font-size: .85rem; color: var(--accent); }

/* ---------- Niches ---------- */
.niches { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.niche { display: flex; flex-direction: column; min-height: 170px; padding: clamp(20px, 2.4vw, 28px); }
.niche h3 { font-size: 1.1rem; }
.niche .rpm { font: 700 1.35rem/1.3 var(--font-head); color: var(--text); margin: auto 0 6px; padding-top: 20px; }
.niche p:last-child { font-size: .88rem; }
.n6 { grid-column: span 6; }
.n4 { grid-column: span 4; }
.n3 { grid-column: span 3; }
.niche--hero { background: linear-gradient(135deg, rgba(0, 242, 254, .15), rgba(30, 41, 59, .5) 70%); }
.niche--hero .rpm { font-size: 2rem; }
.niche--alt { background: linear-gradient(200deg, rgba(30, 41, 59, .95), rgba(30, 41, 59, .3)); }

/* ---------- Samples ---------- */
.samples__label { font-size: 1.1rem; margin-bottom: 16px; }
.samples__long { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 0; margin-bottom: clamp(20px, 4vw, 40px); }
.samples__short { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 0; }
.samples__long > div, .samples__short > div { margin-bottom: 16px; min-width: 0; }
.caption { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan--featured { border-color: rgba(0, 242, 254, .45); background: linear-gradient(180deg, rgba(0, 242, 254, .09), rgba(30, 41, 59, .55) 40%); }
.tag { position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 500; }
.plan__for { margin-top: 4px; }
.price__from { margin: 22px 0 0 !important; font-size: .9rem; color: var(--muted); }
.price { margin: 2px 0 18px !important; color: var(--muted); }
.price b { font: 700 2.8rem/1 var(--font-head); color: var(--text); letter-spacing: -.03em; margin-right: 4px; }
.price .blank { min-width: 1.4em; height: .75em; }
.plan__list { margin-bottom: 26px; flex: 1; }
.plan__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; font-size: .95rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.plan__list li:last-child { border-bottom: 0; }
.plan__feats { margin: 0 0 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan__feats li { position: relative; padding: 0 0 12px 28px; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.plan__feats li:last-child { padding-bottom: 0; }
.plan__feats li::before { content: ""; position: absolute; left: 3px; top: .22em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.plan__feats strong { color: var(--text); font-weight: 600; }

/* ---------- Plan modal ---------- */
.modal { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid rgba(0, 242, 254, .28); border-radius: var(--r); background: #0d1424; color: var(--text); overflow: hidden; }
.modal::backdrop { background: rgba(4, 7, 13, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open]::backdrop { animation: modalFade .25s ease-out; }
@keyframes modalFade { from { opacity: 0; } }
.modal__panel { position: relative; padding: clamp(24px, 4vw, 36px); max-height: calc(100dvh - 26px); overflow-y: auto; overscroll-behavior: contain; }
.modal__panel h2 { font-size: 1.7rem; padding-right: 40px; }
.modal__lead { color: var(--muted); margin: 8px 0 20px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; }
.modal__close::before, .modal__close::after { content: ""; position: absolute; left: 11px; top: 19px; width: 18px; height: 2px; background: var(--text); transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { background: rgba(248, 250, 252, .08); }
.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--surface); }
.switch button { position: relative; z-index: 1; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 .9rem/1.2 var(--font-body); transition: color .25s; }
.switch button[aria-checked="true"] { color: var(--accent-ink); }
.switch__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.switch.is-full .switch__thumb { transform: translateX(100%); }
.modal__explain { margin: 18px 0 14px; color: var(--muted); min-height: 5.2em; transition: opacity .2s; }
.modal__explain.is-swapping { opacity: 0; }
.modal__sub { font: 600 .85rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.modal .plan__list { margin-bottom: 4px; }
.modal .plan__feats { margin: 16px 0 0; }
.modal__price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.modal__price b { font: 700 2.2rem/1 var(--font-head); letter-spacing: -.02em; color: var(--text); }
.modal .checks { margin: 18px 0 28px; gap: 8px 22px; font-size: .9rem; }
.modal #planSubscribe { position: sticky; bottom: 4px; z-index: 2; box-shadow: 0 0 0 10px #0d1424; }

/* ---------- Comparison ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-soft); }
.compare table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; }
.compare thead th { font: 600 .9rem/1.3 var(--font-body); color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--text); width: 22%; }
.compare td { color: var(--muted); }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare .us { background: var(--accent-soft); color: var(--text); font-weight: 500; }
.compare thead .us { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 1.05rem; font-weight: 600; }
.faq__item button { width: 100%; text-align: left; background: none; border: 0; padding: 22px 44px 22px 0; position: relative; font: 600 1.05rem/1.4 var(--font-head); letter-spacing: -.01em; }
.faq__item button::before, .faq__item button::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--accent); transition: transform .3s; }
.faq__item button::after { transform: rotate(90deg); }
.faq__item button[aria-expanded="true"]::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--muted); padding: 0 44px 24px 0; max-width: 64ch; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Final CTA ---------- */
.final__box { text-align: center; border: 1px solid rgba(0, 242, 254, .3); border-radius: var(--r); padding: clamp(40px, 7vw, 88px) var(--gutter); background: radial-gradient(70% 120% at 50% 0%, rgba(0, 242, 254, .12), rgba(30, 41, 59, .4) 70%); }
.final__box h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.final__box p { color: var(--muted); margin: 16px auto 32px; max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: .9rem; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a:hover { color: var(--text); }
.footer__legal { margin-top: 32px; font-size: .78rem; max-width: 90ch; opacity: .8; }

/* ---------- Animation initial states (only when GSAP runs) ---------- */
.js-anim [data-hero], .js-anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-anim [data-hero-media] { opacity: 0; transform: translateY(36px) scale(.97); }
.js-anim [data-reveal="scale"] { transform: translateY(28px) scale(.97); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .who { grid-template-columns: 1fr; }
  .style { flex-basis: calc((100% - 32px) / 3); }
  .niches { grid-template-columns: repeat(6, 1fr); }
  .n6 { grid-column: span 6; }
  .n4 { grid-column: span 2; }
  .n3 { grid-column: span 3; }
}

@media (max-width: 720px) {
  .problems { grid-template-columns: 1fr; }
  .problems .card, .problems__a, .problems__d { grid-column: auto !important; }
  .bento { grid-template-columns: 1fr; }
  .bento .card, .bento__niche, .bento__edit, .bento__thumbs, .bento__seo { grid-column: auto; min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 20px; border-left: 1px solid var(--line); }
  .steps li { border-top: 0; padding: 0 0 32px 20px; }
  .steps li::before { top: 6px; left: -22px; width: 3px; height: 24px; }
  /* Styles become a swipeable carousel on phones */
  .styles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .styles::-webkit-scrollbar { display: none; }
  .style { flex: 0 0 78%; scroll-snap-align: start; }

  /* Thumbnails: two vertical columns scrolling in opposite directions */
  .ticker { --gap: 12px; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); overflow: hidden; height: min(560px, 72vh); margin-inline: var(--gutter); -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
  .ticker__track { flex-direction: column; width: auto; animation-name: tickerY; animation-duration: 55s; }
  .ticker__row--rev .ticker__track { animation-name: tickerYRev; animation-duration: 65s; }
  .ticker__set { flex-direction: column; }
  .ticker__set img { width: 100%; margin-right: 0; margin-bottom: var(--gap); }

  /* GSAP card stack (JS adds .stack-on; the carousel above is the fallback) */
  .stack-on .styles { display: grid; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 44px 44px 0 0; gap: 0; justify-content: stretch; }
  .stack-on .style { grid-area: 1 / 1; flex: none; width: auto; scroll-snap-align: none; background: #141c2d; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; }
  .stack-actions { margin-top: 28px; text-align: center; }
  .niches { grid-template-columns: repeat(2, 1fr); }
  .n6, .n4, .n3 { grid-column: auto; }
  .niche { min-height: 150px; }
  .niche--hero, .niche:last-child { grid-column: span 2; }
  .niche .rpm { font-size: 1.15rem; }
  .niche--hero .rpm { font-size: 1.6rem; }
  .samples__long { grid-template-columns: 1fr; }
  .samples__short { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .samples__long > div, .samples__short > div { margin-bottom: 16px; }
  .player__play { width: 56px; height: 56px; }
  .player { box-shadow: 0 0 0 1px rgba(0, 242, 254, .06), 0 0 20px -8px rgba(0, 242, 254, .16), 0 0 44px -20px rgba(0, 242, 254, .12); }
  .hero__cta .btn { flex: 1 1 140px; }

  /* Comparison table becomes stacked cards */
  .compare { background: none; border: 0; }
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody tr { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-soft); margin-bottom: 14px; padding: 8px 0; overflow: hidden; }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare tbody th { width: 100%; padding: 14px 18px 8px; font: 600 1.05rem/1.3 var(--font-head); }
  .compare td { display: flex; justify-content: space-between; gap: 16px; padding: 10px 18px; font-size: .92rem; }
  .compare td::before { content: attr(data-label); color: var(--text); opacity: .6; flex: none; }
  .compare td { text-align: right; }
  .compare td.us { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .style__media .fade { animation: none; opacity: 0; }
  * { transition-duration: .01ms !important; }
  .ticker__track { animation: none !important; }
  .ticker__set[aria-hidden="true"], .ticker__foot .btn { display: none; }
  .ticker__row { overflow-x: auto; }
  .ticker { height: auto; -webkit-mask-image: none; mask-image: none; }
}
