/* ViralX — inner pages (discover, explore, pricing, blog, auth, legal…). Loads after style.css and reuses its tokens. */

body.page { min-height: 100svh; display: flex; flex-direction: column; }
body.page main { position: relative; z-index: 2; flex: 1; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 820px; }

/* ---------------- shared header: active link, auth slot, mobile menu */
.nav-links a.on { color: #fff; }
.nav-links a.on::after { transform: scaleX(1); }
.nav-cta .nav-login { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; font-size: 14.5px; color: #d8d0dc; }
.nav-cta .nav-login:hover { color: #fff; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .3s, top .3s, opacity .2s; }
.menu-btn i:nth-child(1) { top: 14px; } .menu-btn i:nth-child(2) { top: 19px; } .menu-btn i:nth-child(3) { top: 24px; }
.menu-open .menu-btn i:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 39; background: rgba(7, 5, 10, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 96px var(--pad) 40px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 30px; font-weight: 600; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.mobile-menu .mm-cta a { font-size: 15px; border: 0; padding: 0; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-cta .nav-login { display: none; }
}

/* ---------------- page hero */
.p-hero { padding-block: clamp(56px, 11vh, 130px) clamp(40px, 7vh, 80px); text-align: center; }
.p-hero h1 { font-size: clamp(44px, 7.4vw, 108px); max-width: 1050px; margin: 0 auto; }
.p-hero .lede { max-width: 640px; margin: 22px auto 0; color: #cfc5d3; font-size: clamp(16px, 1.5vw, 19px); }
.p-hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.crumbs { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: .5; }

.sec { padding-block: clamp(50px, 9vh, 110px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 64px); max-width: 760px; }
.sec-head p { max-width: 420px; color: var(--muted); }

/* reveal on scroll (page.js toggles .in) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------------- filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.filters .chip { cursor: pointer; }
[data-hide] { display: none !important; }

/* ---------------- discover gallery */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gcard { position: relative; border-radius: var(--r); overflow: hidden; background: #120c15; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .5s; }
.gcard:hover { transform: translateY(-6px); border-color: rgba(255, 90, 100, .35); box-shadow: 0 30px 60px -30px rgba(255, 45, 61, .55); }
.gcard .media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #3a1224, #0e0a12 70%); }
.gcard.wide { grid-column: span 2; }
.gcard.wide .media { aspect-ratio: 16 / 9.4; }
.gcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.gcard .media img.contain { object-fit: contain; padding: 8%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.gcard:hover .media img { transform: scale(1.06); }
.gcard .badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(7, 5, 10, .7); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.gcard .badge.live { color: #ff8a7a; }
.gcard .ratio { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--mono); font-size: 10.5px; color: #fff; opacity: .8; }
.gcard .meta { padding: 18px 20px 20px; display: grid; gap: 6px; }
.gcard .meta h3 { font-size: 21px; letter-spacing: -.02em; }
.gcard .meta p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.gcard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gcard .tags span { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: #cfc5d3; }
.gcard .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .92); z-index: 2; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: transform .3s; }
.gcard .play::after { content: ''; position: absolute; left: 29px; top: 23px; border-left: 18px solid var(--red); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.gcard:hover .play { transform: scale(1.1); }
.gcard video { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- explore formats library */
.fmt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fmt { position: relative; padding: 22px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-height: 250px; transition: border-color .3s, background .3s; }
.fmt:hover { border-color: rgba(255, 120, 110, .35); background: linear-gradient(180deg, rgba(255, 60, 80, .08), rgba(255, 255, 255, .015)); }
.fmt .shape { height: 74px; display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.fmt .shape b { display: block; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .7); background: linear-gradient(160deg, rgba(255, 106, 61, .5), rgba(176, 22, 74, .5)); }
.fmt .shape .r916 { width: 40px; height: 72px; } .fmt .shape .r11 { width: 60px; height: 60px; } .fmt .shape .r169 { width: 96px; height: 54px; } .fmt .shape .r45 { width: 52px; height: 66px; } .fmt .shape .r219 { width: 112px; height: 48px; }
.fmt h3 { font-size: 19px; letter-spacing: -.02em; }
.fmt p { font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.fmt .spec { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: #ff9a8a; }
.fmt .spec span { padding: 4px 8px; border-radius: 6px; background: rgba(255, 45, 61, .1); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 30px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); }
.pillar .n { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; margin-bottom: 18px; }
.pillar h3 { font-size: 24px; margin-bottom: 10px; letter-spacing: -.02em; }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* ---------------- pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 32px 28px; border-radius: 26px; border: 1px solid var(--line); background: rgba(16, 11, 20, .72); display: flex; flex-direction: column; gap: 18px; }
.plan.hot { border-color: transparent; background: linear-gradient(rgba(20, 12, 22, .96), rgba(20, 12, 22, .96)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 40px 90px -40px rgba(255, 45, 61, .6); }
.plan .ribbon { position: absolute; top: -13px; left: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; }
.plan h3 { font-size: 26px; letter-spacing: -.02em; }
.plan .for { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan .price b { font-size: 28px; white-space: nowrap; font-weight: 600; letter-spacing: -.03em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; display: grid; gap: 11px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; color: #ddd4e0; }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(255, 45, 61, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.4L13 6.4' fill='none' stroke='%23ff8a7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan .btn { width: 100%; }
.plan-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: rgba(14, 10, 17, .6); }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.compare td:first-child { color: #ddd4e0; }
.compare td:not(:first-child) { color: #fff; }
.compare tr:last-child td { border-bottom: 0; }
.compare .y { color: #ff8a7a; }
.compare .n { color: #5d5363; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 10, 17, .6); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(255, 120, 110, .3); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: #ff8a7a; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: #cfc5d3; max-width: 720px; }

/* ---------------- CTA band */
.cta-band { position: relative; margin: clamp(40px, 8vh, 100px) auto; max-width: 1240px; border-radius: 32px; padding: clamp(40px, 7vw, 90px) var(--pad); text-align: center; overflow: hidden; background: radial-gradient(90% 120% at 50% 120%, rgba(255, 45, 61, .45), transparent 60%), #0f0912; border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(34px, 5vw, 70px); max-width: 820px; margin: 0 auto; }
.cta-band p { color: #cfc5d3; margin: 18px auto 30px; max-width: 520px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #110b14; transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 100, .35); }
.post-card .cover { aspect-ratio: 16 / 10; overflow: hidden; background: #1a0f1a; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.post-card:hover .cover img { transform: scale(1.06); }
.post-card .body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.post-card h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #ff8a7a; display: flex; gap: 12px; flex-wrap: wrap; }
.post-meta span { color: var(--muted); }
.post-card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.post-card.feature .cover { aspect-ratio: auto; min-height: 340px; }
.post-card.feature .body { padding: clamp(24px, 4vw, 48px); align-content: center; }
.post-card.feature h3 { font-size: clamp(28px, 3.4vw, 44px); }

.article { padding-bottom: 40px; }
.article .a-head { padding: clamp(50px, 10vh, 110px) 0 30px; }
.article h1 { font-size: clamp(38px, 5.6vw, 76px); margin-bottom: 20px; }
.article .a-cover { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); margin: 10px 0 50px; aspect-ratio: 16 / 8; }
.article .a-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; color: #ddd4e0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.9em; color: #fff; line-height: 1.15; }
.prose h3 { font-size: 22px; margin-top: 1.6em; color: #fff; letter-spacing: -.02em; }
.prose a { color: #ff9a8a; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose li::marker { color: #ff6a5a; }
.prose blockquote { border-left: 2px solid var(--red); padding: 4px 0 4px 22px; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; color: #fff; }
.prose strong { color: #fff; }
.prose code { font-family: var(--mono); font-size: .82em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose th { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.callout { border-radius: 18px; padding: 20px 22px; border: 1px solid rgba(255, 120, 110, .25); background: rgba(255, 45, 61, .07); font-size: 16px; }
.author { display: flex; align-items: center; gap: 12px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.author .vx { width: 44px; height: 44px; border-radius: 12px; }
.author b { display: block; }

/* ---------------- about / two-col */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.split2 h2 { font-size: clamp(32px, 4.4vw, 60px); }
.split2 p + p { margin-top: 14px; }
.split2 .lead { color: #cfc5d3; font-size: 18px; }
.media-frame { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #120c15; }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.value h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.02em; }
.value p { color: var(--muted); font-size: 14.5px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.facts div { background: #0d0910; padding: 26px; }
.facts b { display: block; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; font-weight: 600; }
.facts span { color: var(--muted); font-size: 14px; }

/* ---------------- forms (contact, auth, dashboard) */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; color-scheme: dark; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #ff4d6a; box-shadow: 0 0 0 4px rgba(255, 77, 106, .12); }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 12px; display: none; }
.form-msg.ok { display: block; background: rgba(60, 200, 120, .1); border: 1px solid rgba(60, 200, 120, .3); color: #9ff0c1; }
.form-msg.err { display: block; background: rgba(255, 45, 61, .1); border: 1px solid rgba(255, 45, 61, .3); color: #ffb3ba; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: #ff2d3d; }
.check a { color: #ff9a8a; text-decoration: underline; text-underline-offset: 2px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.panel { padding: clamp(22px, 3vw, 34px); border-radius: 26px; border: 1px solid var(--line); background: rgba(14, 10, 17, .72); }
.info-list { display: grid; gap: 14px; }
.info-list a, .info-list div { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .3s; }
.info-list a:hover { border-color: rgba(255, 120, 110, .35); }
.info-list .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 45, 61, .14); color: #ff8a7a; flex: none; font-size: 18px; }
.info-list small { display: block; color: var(--muted); font-size: 12.5px; }

/* auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 74px); }
.auth-side { position: relative; overflow: hidden; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(30px, 5vw, 60px); background: #0b070d; }
.auth-side video, .auth-side img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #07050a 8%, transparent 70%); }
.auth-side > div { position: relative; z-index: 1; }
.auth-side h2 { font-size: clamp(34px, 3.6vw, 56px); margin-bottom: 14px; }
.auth-side ul { list-style: none; display: grid; gap: 8px; color: #ddd4e0; font-size: 15px; margin-top: 18px; }
.auth-side li::before { content: '✦ '; color: #ff8a7a; }
.auth-main { display: grid; place-items: center; padding: clamp(30px, 5vw, 60px) var(--pad); }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-size: clamp(34px, 3.4vw, 46px); margin-bottom: 8px; }
.auth-card > p { color: var(--muted); margin-bottom: 26px; }
.oauth { display: grid; gap: 10px; margin-bottom: 18px; }
.oauth button { height: 50px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 15px; transition: background .2s; }
.oauth button:hover { background: rgba(255, 255, 255, .09); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-family: var(--mono); letter-spacing: .12em; margin: 4px 0 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-alt { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-alt a, .link { color: #ff9a8a; font-weight: 600; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.setup-note { margin-bottom: 18px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* dashboard */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 30px 0 80px; }
.dash-nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 4px; }
.dash-nav button, .dash-nav a { text-align: left; padding: 11px 14px; border-radius: 12px; color: #cfc5d3; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.dash-nav .on, .dash-nav button:hover, .dash-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dash-user { padding: 14px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.dash-user .av { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 700; flex: none; }
.dash-user small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1, .dash-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.kpi b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.kpi span { color: var(--muted); font-size: 13.5px; }
.proj-list { display: grid; gap: 10px; }
.proj { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(14, 10, 17, .7); }
.proj .thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #1c1020; }
.proj .thumb img { width: 100%; height: 100%; object-fit: contain; }
.proj h3 { font-size: 17px; letter-spacing: -.01em; }
.proj small { color: var(--muted); font-size: 13px; }
.status { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.status.brief { color: #ffd08a; } .status.production { color: #ff8a7a; } .status.review { color: #c9a6ff; } .status.delivered { color: #8ff0b6; }
.steps-bar { display: flex; gap: 4px; margin-top: 8px; }
.steps-bar i { height: 3px; flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.steps-bar i.on { background: var(--grad); }
.empty { text-align: center; padding: 50px 20px; border: 1px dashed rgba(255, 255, 255, .15); border-radius: 22px; color: var(--muted); }
.empty h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.dash-pane[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(5, 3, 7, .75); backdrop-filter: blur(8px); }
.modal[hidden] { display: none; }
.modal .panel { width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; }
.chips.pick .chip { cursor: pointer; }

/* ---------------- legal */
.legal .prose { font-size: 16.5px; }
.legal .prose h2 { font-size: 24px; }
.toc { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-size: 15px; columns: 2; gap: 30px; }
.toc a { display: block; padding: 3px 0; color: #cfc5d3; }
.toc a:hover { color: #fff; }

/* ---------------- Built with Claude */
.claude-hero .mark { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid rgba(217, 119, 87, .4); background: rgba(217, 119, 87, .1); color: #f3c2ad; font-size: 14px; margin-bottom: 26px; }
.claude-hero .mark i { width: 28px; height: 28px; border-radius: 50%; background: #d97757; display: grid; place-items: center; }
.claude-hero .mark i svg { width: 16px; height: 16px; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(217, 119, 87, .07), rgba(255, 255, 255, .015)); }
.use .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #f3a98c; margin-bottom: 14px; }
.use h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -.02em; }
.use p { color: var(--muted); font-size: 15px; }
.use.now .k::before { content: '● '; color: #8ff0b6; }
.use.next .k::before { content: '○ '; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.pipeline div { padding: 22px 18px; background: #0d0910; border-right: 1px solid var(--line); }
.pipeline div:last-child { border-right: 0; }
.pipeline b { display: block; font-family: var(--mono); font-size: 11px; color: #f3a98c; letter-spacing: .1em; margin-bottom: 10px; }
.pipeline h4 { font-size: 17px; margin-bottom: 6px; }
.pipeline p { font-size: 13.5px; color: var(--muted); }
.pipeline .who { margin-top: 10px; font-size: 12px; color: #cfc5d3; }
.codeblock { font-family: var(--mono); font-size: 13px; line-height: 1.7; padding: 22px; border-radius: 18px; background: #0a070c; border: 1px solid var(--line); overflow-x: auto; color: #e6dbe8; white-space: pre; }
.codeblock .c { color: #7a6d80; } .codeblock .s { color: #ffb38a; } .codeblock .k { color: #ff8aa8; }
.disclaimer { font-size: 13px; color: var(--muted); text-align: center; max-width: 700px; margin: 0 auto; }

/* ---------------- 404 */
.nf { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 40px var(--pad); }
.nf b { font-size: clamp(120px, 22vw, 300px); line-height: .85; letter-spacing: -.07em; font-weight: 800; }

/* ---------------- footer v2 */
.foot-cols.v2 { grid-template-columns: 1.7fr repeat(4, 1fr); }
.foot-news { margin-top: 20px; max-width: 340px; }
.foot-news form { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.foot-news input { flex: 1; min-width: 0; font: inherit; font-size: 14.5px; background: none; border: 0; outline: none; color: var(--ink); padding: 0 14px; }
.foot-news .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
.foot-news small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.foot-news .form-msg { margin-top: 8px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1300px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: #d8cfdc; transition: border-color .2s, color .2s; }
.socials a:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-cols .claude-link { display: inline-flex !important; align-items: center; gap: 6px; }
.foot-cols .claude-link::after { content: 'new'; font-family: var(--mono); font-size: 9.5px; padding: 2px 6px; border-radius: 6px; background: rgba(217, 119, 87, .2); color: #f3a98c; }

/* ---------------- responsive */
@media (max-width: 1100px) {
  .fmt-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-cols.v2 { grid-template-columns: repeat(4, 1fr); }
  .foot-cols.v2 > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .gal, .posts, .plans, .pillars, .uses { grid-template-columns: 1fr 1fr; }
  .fmt-grid, .values, .facts, .kpis { grid-template-columns: 1fr 1fr; }
  .post-card.feature, .split2, .contact-grid, .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; grid-template-columns: repeat(3, auto); overflow-x: auto; }
  .dash-user { grid-column: 1 / -1; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline div { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-cols.v2 { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .gal, .posts, .pillars, .uses, .fmt-grid, .values { grid-template-columns: 1fr; }
  .gcard.wide { grid-column: auto; }
  .gcard.wide .media { aspect-ratio: 4 / 5; }
  .form .row2 { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .proj { grid-template-columns: 44px 1fr; }
  .proj .thumb { width: 44px; height: 44px; }
  .proj .status { grid-column: 2; justify-self: start; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

[hidden] { display: none !important; }
