/* btw.bio - home page only (views/landing.ts). Loaded after landing.css; flat panels like the dashboard. */

/* ---------- Full-screen panels: every home section fills the screen, its content centered ----------
   Plain scrolling: no snapping and no paging (both made the page stick). */
.home main > section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(76px + clamp(12px, 3vh, 32px)) clamp(12px, 3vh, 32px); box-sizing: border-box; scroll-margin-top: 0; }
/* The home page: the pill floats over the full-screen sections (their top padding leaves room for it). */
.home > .site-nav { position: fixed; inset-inline: 0; }
.home main > section.hero { padding-block: calc(76px + clamp(8px, 2vh, 24px)) clamp(12px, 2.5vh, 28px); }
.home main .section-head { margin-bottom: clamp(20px, 3.6vh, 40px); }
.home main .section-head h2 { font-size: clamp(28px, min(4vw, 5.4vh), 46px); }
.home main > section > * { width: 100%; }

.home main > section.faq-wrap { display: grid; align-content: center; }
.home main > section.faq-wrap > * { width: auto; }
@media (max-width: 900px) { .home .faq-wrap .section-head { position: static; } }

/* ---------- Hero: wordmark, headline and claim box centered (like the live site), then the sliding pages ---------- */
.hh-main { display: grid; gap: clamp(12px, 1.8vh, 20px); justify-items: center; text-align: center; }
.hh-logo { display: block; width: clamp(170px, 24vw, 300px); height: auto; }
.home-hero h1 { font-size: clamp(38px, min(5.6vw, 7.4vh), 72px); max-width: 14ch; margin-inline: auto; }
.home-hero .lead { max-width: 560px; margin-inline: auto; }
.home .claim { justify-items: center; width: 100%; max-width: 520px; margin-inline: auto; }
.home .claim-hint { text-align: center; }
.home-hero .stats { margin-top: clamp(12px, 2.6vh, 36px); }
.home-hero .stat { padding-block: 18px; }
.home-hero .pages { margin-top: clamp(14px, 3vh, 40px); }

/* ---------- Short names ---------- */
.nm-grid { display: grid; max-width: 760px; margin-inline: auto; }
.nm-copy .section-head { margin-bottom: 28px; }
.nm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.nm-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); }
.nm-len { color: var(--faint); font-size: 13px; }
.nm-url { color: var(--faint); font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.nm-url b { color: var(--text); }
/* Rolling example name: the old one drops down and tips away, the new one falls in from above (landing.js). */
.nm-name { display: inline-grid; vertical-align: bottom; overflow: hidden; perspective: 400px; }
.nm-name > span { grid-area: 1 / 1; transform-origin: 50% 0; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease; }
.nm-name > span.nm-in { transform: translateY(-90%) rotateX(70deg); opacity: 0; }
.nm-name > span.nm-out { transform: translateY(90%) rotateX(-70deg); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .nm-name > span { transition: none; } }
.nm-tag { color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- Dashboard tour ---------- */
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tour-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.tour-tab:hover { color: var(--text); border-color: var(--border-3); }
.tour-tab[aria-selected="true"] { background: #fff; border-color: #fff; color: #0b0b10; }
.tour-tab[aria-selected="true"] .tour-n { color: #6d6d82; }
.tour-tab .tour-n { margin-inline-end: 8px; }
.tour-n { font-size: 12px; font-weight: 600; color: #ff6b75; font-variant-numeric: tabular-nums; }
.tour-panels { display: grid; gap: 14px; margin-top: clamp(16px, 2.6vh, 28px); }
.tour-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; padding: clamp(18px, 2.6vh, 28px); border-radius: 20px; border: 1px solid var(--border); background: var(--bg-2); }
.tour-panel[hidden] { display: none; }
.tour-panel:focus-visible { outline: 2px solid var(--border-3); outline-offset: 2px; }
.tour-copy { display: grid; gap: 10px; align-content: start; }
.tour-copy h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.tour-copy p { font-size: 15px; line-height: 1.6; }
.tour-mock { display: grid; gap: 12px; min-width: 0; }
.tm-card { padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); min-width: 0; }
.tm-head { display: grid; gap: 2px; }
.tm-head b { font-size: 14px; }
.tm-head span { font-size: 12.5px; }
.tm-spark { display: block; width: 100%; height: 72px; margin-top: 12px; color: var(--accent); }
.tm-tasks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 13.5px; color: var(--muted); }
.tm-tasks li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-check { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border-2); }
.tm-check.done { background: var(--success); border-color: var(--success); color: #0b0b10; }
.tm-check .icon { width: 12px; height: 12px; stroke-width: 3; }
.tm-rows { display: grid; padding-block: 6px; }
.tm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13.5px; color: var(--muted); }
.tm-row + .tm-row { border-top: 1px solid var(--border); }
.tm-val { color: var(--text); font-weight: 600; text-align: end; }
.tm-swatches { display: flex; gap: 6px; }
.tm-swatches i { width: 16px; height: 16px; border-radius: 5px; background: #ff1f2e; }
.tm-swatches i:nth-child(2) { background: #f4f4f7; } .tm-swatches i:nth-child(3) { background: #7c3aed; } .tm-swatches i:nth-child(4) { background: #09090b; border: 1px solid var(--border-2); }
.tm-preview { display: grid; gap: 10px; font-size: 12.5px; }
.tm-mini, .fx-mini { display: grid; justify-items: center; gap: 8px; width: min(200px, 100%); margin: 0 auto; padding: 18px 16px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--panel-3); }
.tm-mini-mark, .fx-mini-mark { width: 40px; height: 40px; }
.tm-mini b, .fx-mini b { font-size: 15px; }
.tm-line { display: block; width: 72%; height: 7px; border-radius: 4px; background: var(--track); }
.tm-line.short { width: 46%; }
.tm-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.tm-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; min-width: 0; }
.tm-list li + li { border-top: 1px solid var(--border); }
.tm-list li > span:not([class]) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-list .icon { width: 18px; height: 18px; flex: none; }
.tm-list .tm-grip { width: 15px; height: 15px; color: var(--faint); }
.tm-bar { flex: none; display: block; width: 96px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.tm-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tm-bar.l1 i { width: 92%; } .tm-bar.l2 i { width: 74%; } .tm-bar.l3 i { width: 57%; } .tm-bar.l4 i { width: 41%; } .tm-bar.l5 i { width: 26%; }
.tm-on { flex: none; display: flex; justify-content: flex-end; width: 34px; height: 20px; padding: 3px; border-radius: 999px; background: var(--success); }
.tm-on i { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
[dir="rtl"] .tm-on { justify-content: flex-start; }
.tm-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tm-split > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.tm-split b { font-size: 13px; }
.tm-split .tm-bar { width: 100%; }

/* ---------- Scenes (under the widget wall) ---------- */
.scenes-head { margin-top: 0; }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.scene { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-2); min-width: 0; }
.scene h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.scene > p { font-size: 14px; line-height: 1.55; }
.scene-tags, .fx-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.scene-tags li, .fx-chips li, .fx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.scene-tags .icon { width: 14px; height: 14px; flex: none; color: var(--text); }

/* ---------- Effects ---------- */
.fx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fx-card { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-2); min-width: 0; }
.fx-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.fx-card > p { font-size: 14px; line-height: 1.55; }
.fx-wide { grid-column: span 2; grid-row: span 2; }
.fx-chip { min-height: 36px; padding: 0 12px; background: transparent; font: inherit; font-size: 13px; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.fx-chip:hover { color: var(--text); border-color: var(--border-3); }
.fx-chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0b0b10; }
.fx-stage { display: grid; place-items: center; min-height: clamp(120px, 17vh, 170px); padding: 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); overflow: hidden; }
/* The same entrances as a profile card (profile.css), replayed by landing.js. */
.fx-mini.in-rise { animation: hx-rise 0.8s cubic-bezier(.2, .8, .2, 1) backwards; }
.fx-mini.in-fade { animation: hx-fade 0.9s ease backwards; }
.fx-mini.in-zoom { animation: hx-zoom 0.7s cubic-bezier(.2, .9, .25, 1.1) backwards; }
.fx-mini.in-blur { animation: hx-blur 0.9s ease backwards; }
.fx-mini.in-drop { animation: hx-drop 0.85s cubic-bezier(.25, 1.35, .45, 1) backwards; }
.fx-mini.in-flip { animation: hx-flip 0.9s cubic-bezier(.2, .85, .25, 1) backwards; transform-origin: 50% 0; }
.fx-mini.in-slide { animation: hx-slide 0.8s cubic-bezier(.2, .85, .25, 1) backwards; }
.fx-mini.in-swing { animation: hx-swing 1s cubic-bezier(.3, 1.4, .5, 1) backwards; transform-origin: 50% 0; }
.fx-mini.in-bounce { animation: hx-bounce 0.9s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.fx-mini.in-spin { animation: hx-spin 0.9s cubic-bezier(.2, .85, .25, 1) backwards; }
.fx-mini.in-unfold { animation: hx-unfold 0.8s cubic-bezier(.2, .85, .25, 1) backwards; }
@keyframes hx-rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes hx-fade { from { opacity: 0; } }
@keyframes hx-zoom { from { opacity: 0; transform: scale(0.86); } }
@keyframes hx-blur { from { opacity: 0; filter: blur(16px); transform: scale(1.03); } }
@keyframes hx-drop { from { opacity: 0; transform: translateY(-46px); } }
@keyframes hx-flip { from { opacity: 0; transform: perspective(900px) rotateX(-38deg) translateY(14px); } }
@keyframes hx-slide { from { opacity: 0; transform: translateX(-60px); } }
@keyframes hx-swing { from { opacity: 0; transform: perspective(900px) rotateX(70deg); } }
@keyframes hx-bounce { from { opacity: 0; transform: translateY(60px) scale(0.9); } }
@keyframes hx-spin { from { opacity: 0; transform: perspective(900px) rotateY(-90deg); } }
@keyframes hx-unfold { from { opacity: 0; transform: scaleY(0.05); } 40% { opacity: 1; } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-wide { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 900px) {
  .tour-panel { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
}
@media (max-width: 640px) {
  .home .claim { justify-items: stretch; }
  .home main > section { min-height: auto; padding-block: 72px; }
  .home main > section.hero { min-height: 100svh; padding-block: 88px 32px; }
  .nm-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .nm-len { grid-column: 1 / -1; }
  .scenes, .fx-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-tasks { grid-template-columns: minmax(0, 1fr); }
  .tm-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tour-tab { padding: 0 14px; font-size: 13.5px; }
  .fx-stage { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-mini { animation: none !important; }
}

/* Last effects card fills the row; the showcase keeps its cards but not the red glow under them (flat look). */
.fx-span2 { grid-column: span 2; }
.home .stage::after { display: none; }
@media (max-width: 640px) { .fx-span2 { grid-column: auto; } }

/* Short screens (laptops around 768 px tall): everything a little tighter so each panel still fits one screen. */
@media (max-height: 860px) and (min-width: 641px) {
  .hh-main { gap: 12px; }
  .hh-logo { width: auto; height: clamp(34px, 5.5vh, 48px); }
  .home-hero h1 { font-size: clamp(36px, min(5.6vw, 7.6vh), 72px); }
  .home-hero .pages { margin-top: 18px; gap: 10px; }
  .home .page-card { width: clamp(170px, 14vw, 210px); }
  .home-hero .stats { margin-top: 14px; }
  .home-hero .stat { padding-block: 10px; }
  .home-hero .stat b { font-size: 26px; }
  .tm-spark { height: 48px; margin-top: 8px; }
  .tm-card { padding: 12px 14px; }
  .tm-row, .tm-list li { padding-block: 7px; }
  .tm-tasks { margin-top: 8px; gap: 6px 16px; }
  .home .wall { min-height: 600px; }
  .home .wall-head { top: 150px; }
  .fx-card { padding: 14px 16px; gap: 6px; }
  .fx-chip { min-height: 32px; }
  .free-card, .support-card { padding: 20px; gap: 12px; }
  .support-item { padding-block: 9px; }
  .home .supporters { padding: 14px 18px; gap: 10px; }
  .home .free-col { gap: 12px; }
  .home .supporters-empty { padding: 10px; }
  .home .free-features { gap: 8px 16px; }
  .home .free-grid { gap: 12px; }
}
/* Laptop-height screens: the pricing section (plans, supporters, support card) still fits one screen. */
@media (max-height: 960px) and (min-width: 641px) {
  .home .free .section-head { margin-bottom: 14px; }
  .home .free .section-head p { display: none; }
}

/* ---------- btw.bio vs guns.lol: the copy beside the vertical comparison video ---------- */
.vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center; }
.vs-copy .section-head { margin-bottom: 24px; }
.vs-points { flex: none; margin: 0 0 28px; gap: 12px; }
.vs-points li { font-size: 15px; }
.vs-video { position: relative; margin: 0; height: min(calc(100svh - 190px), 700px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.vs-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vs-sound { position: absolute; inset-inline-end: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(10, 10, 14, 0.78); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.vs-sound:hover { background: rgba(10, 10, 14, 0.92); }
.vs-sound .icon { width: 16px; height: 16px; }
.vs-sound .vs-on, .vs-sound[aria-pressed="true"] .vs-off { display: none; }
.vs-sound[aria-pressed="true"] .vs-on { display: block; }

/* ---------- Partner perks: four plain cards, then how to apply ---------- */
.pt-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pt-perk { display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.pt-ico { width: 26px; height: 26px; color: #22d3ee; }
.pt-text b { display: block; font-size: 16px; }
.pt-text .muted { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; }
.pt-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 14px 14px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.pt-foot p { margin: 0; }
.pt-foot .btn { flex: none; }

@media (max-width: 900px) {
  .vs-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .vs-copy { justify-self: stretch; }
  .vs-video { height: auto; width: min(100%, 340px); }
  .pt-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pt-perks { grid-template-columns: minmax(0, 1fr); }
  .pt-foot { flex-direction: column; align-items: stretch; text-align: center; padding: 18px; }
  .pt-foot .btn { justify-content: center; }
}
