/* The homepage. Built on site.css's tokens (the studio's JustGains register:
   paper neutrals, racing yellow, ink pills, Montserrat). No gradients; depth
   comes from surface steps and one soft shadow on floating chips. */
:root { --brand-yellow: #ffd51a; --glass: rgba(23, 23, 23, .58); --hf: #2a78d6; --hf-band: rgba(42, 120, 214, .2); --own: #eda100; --page: 1240px; }
:root[data-theme='dark'] { --glass: rgba(12, 12, 11, .66); --hf: #3987e5; --hf-band: rgba(57, 135, 229, .24); --own: #c98500; }
.home { overflow-x: hidden; }
.home main { max-width: var(--page); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.h-nav { position: sticky; top: 0; z-index: 40; max-width: var(--page); margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.h-nav nav { display: flex; align-items: center; gap: 18px; font-size: 13.5px; font-weight: 700; }
.h-nav .nav-link { color: var(--text-2); }
.h-nav .nav-link:hover { color: var(--text); }
.nav-pill { background: var(--ink); color: var(--ink-text); padding: 10px 18px; border-radius: 999px; font-weight: 800; transition: transform .2s var(--ease), opacity .2s; }
.nav-pill:hover { opacity: .9; transform: translateY(-1px); }
.brand .mark { border-radius: 11px; }

/* ---------- hero ---------- */
.h-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px 56px; align-items: center; padding: 44px 0 72px; }
.h-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.h-kinds span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 800; }
.h-kinds svg { color: var(--text); }
.h-hero h1 { font-size: clamp(46px, 6vw, 84px); line-height: .98; letter-spacing: -.05em; font-weight: 900; margin: 0; text-wrap: balance; }
.h-hero h1 em { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.h-hero h1 em::after { content: ''; position: absolute; z-index: -1; left: -.04em; right: -.06em; bottom: .06em; height: .34em; background: var(--brand-yellow); border-radius: .08em; transform: skewX(-8deg); }
:root[data-theme='dark'] .h-hero h1 em::after { opacity: .9; }
.h-lede { margin: 26px 0 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.h-art { position: relative; margin: 0; }
.h-art img { display: block; width: 100%; height: auto; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: 30px; background: var(--surface-2); }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--glass); color: #f4f1ea; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(15, 14, 12, .18); }
.float-chip b { font-weight: 800; }
.float-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cast-chip { left: 18px; bottom: 18px; animation: bob 6s var(--ease) infinite; }
.model-chip { right: 18px; top: 18px; padding: 8px 14px; font-weight: 800; animation: bob 6s var(--ease) -3s infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* ---------- the two ways in ---------- */
.h-options { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.h-option { border-radius: 30px; padding: 34px 34px 28px; display: flex; flex-direction: column; min-height: 440px; }
.h-option.own { background: var(--surface); border: 1px solid var(--border); }
.h-option.acct { background: var(--ink); color: var(--ink-text); }
.h-option-top { display: flex; align-items: center; justify-content: space-between; }
.h-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-yellow); color: #171717; }
.h-tag { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.acct .h-tag { background: rgba(244, 241, 234, .12); color: var(--ink-text); }
:root[data-theme='dark'] .acct .h-tag { background: rgba(23, 23, 23, .08); }
.h-option h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -.035em; margin: 26px 0 12px; }
.h-option > p { font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.acct > p { color: color-mix(in srgb, var(--ink-text) 78%, transparent); }
.h-points { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; font-size: 14px; font-weight: 700; }
.h-points li { display: flex; align-items: center; gap: 10px; }
.h-points svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand-yellow); color: #171717; stroke-width: 3; }
.h-cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; height: 58px; padding: 0 22px 0 26px; border-radius: 999px; background: var(--brand-yellow); color: #171717; font-size: 16px; font-weight: 900; letter-spacing: -.01em; transition: transform .2s var(--ease), background .2s; }
.h-cta:hover { background: var(--accent-2); transform: translateY(-2px); }
.h-cta svg { transition: transform .2s var(--ease); }
.h-cta:hover svg { transform: translateX(3px); }
.h-cta.ink { background: var(--ink); color: var(--ink-text); }
.h-cta.ink:hover { background: var(--ink); opacity: .9; }
.h-small { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-top: 14px; font-size: 12.5px; line-height: 1.5; font-weight: 600; color: var(--text-3); text-align: center; }
.h-small svg { flex: none; margin-top: 1px; }
.own .h-small { justify-content: flex-start; text-align: left; padding: 0 6px; }
.acct .h-small { color: color-mix(in srgb, var(--ink-text) 70%, transparent); }
.h-small a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.acct .h-small a { color: var(--brand-yellow); }
:root[data-theme='dark'] .acct .h-small a { color: #7a5c00; }

/* ---------- sections ---------- */
.h-section { padding: 88px 0 0; }
.h-head { max-width: 760px; margin-bottom: 34px; }
.h-head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -.045em; margin: 16px 0 14px; text-wrap: balance; }
.h-head h2 span { color: var(--text-3); }
.h-head > p:last-child { font-size: 16.5px; line-height: 1.65; color: var(--text-2); max-width: 640px; }

/* ---------- showcase ---------- */
.h-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: var(--surface-2); }
.tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-video { grid-column: span 8; aspect-ratio: 16 / 9; }
.t-photo { grid-column: span 4; }
.t-cap { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t-kind { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--brand-yellow); color: #171717; font-size: 12.5px; font-weight: 900; }
.t-model { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--glass); color: #f4f1ea; font-size: 12px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.t-sound { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--glass); color: #f4f1ea; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .2s var(--ease); }
.t-sound:hover { transform: scale(1.06); }
.t-sound .on, .t-sound[aria-pressed='true'] .off { display: none; }
.t-sound[aria-pressed='true'] .on { display: grid; }
.t-audio { grid-column: span 6; display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 22px 16px 16px; background: var(--surface); border: 1px solid var(--border); }
.t-audio .t-cover { width: 172px; height: 172px; border-radius: 18px; }
.t-body { min-width: 0; }
.t-labels { display: flex; flex-wrap: wrap; gap: 8px; }
.t-audio .t-model { background: var(--surface-2); color: var(--text-2); backdrop-filter: none; }
.t-title { margin: 12px 0 14px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.t-player { display: flex; align-items: center; gap: 12px; }
.t-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--ink-text); transition: transform .2s var(--ease); }
.t-play:hover { transform: scale(1.06); }
.t-wave { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 2px; cursor: pointer; border-radius: 6px; }
.t-wave i { flex: 1; min-width: 1px; height: calc(var(--h) * 100%); border-radius: 2px; background: var(--border-strong); transition: background .15s; }
.t-wave i.on { background: var(--ink); }
.t-wave:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.t-time { flex: none; width: 34px; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.t-line { margin: 12px 0 0; min-height: 44px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.t-line.live { color: var(--text); font-weight: 700; }

/* ---------- cast ---------- */
.cast-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.cast-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 18px 14px 16px; display: flex; flex-direction: column; }
.cp-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 12px; }
.cp-head span:first-child { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cp-new { font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--ink-text); }
.cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; }
.cp-row img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; background: var(--surface-2); }
.cp-name { display: grid; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.cp-name small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.cp-row.open { background: var(--accent-soft); }
.cp-detail { padding: 4px 10px 12px; }
.cp-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cp-refs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.cp-detail p { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.cp-foot { margin: auto 8px 0; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cp-foot svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand-yellow); color: #171717; stroke-width: 3; }
.cast-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.t-scene { aspect-ratio: 1; }
.t-prompt { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 16px; background: var(--glass); color: #f4f1ea; font-size: 13px; font-weight: 600; line-height: 1.4; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.t-prompt b { color: var(--brand-yellow); font-weight: 800; }

/* ---------- pricing ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px 26px; display: grid; gap: 6px; align-content: start; }
.stat b { font-size: 50px; line-height: 1; font-weight: 900; letter-spacing: -.045em; }
.stat b small { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--text-3); }
.stat > span { font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; }
.stat > small { font-size: 13px; color: var(--text-3); font-weight: 600; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 26px 26px 20px; }
.chart-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 30px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.chart-top h3 { font-size: 20px; letter-spacing: -.02em; }
.chart-top p { margin-top: 4px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 9px; }
.lg-band { fill: var(--hf-band); } .lg-hf { fill: var(--hf); stroke: var(--surface); stroke-width: 2; } .lg-half { fill: var(--surface); stroke: var(--hf); stroke-width: 2.4; } .lg-own { fill: var(--own); stroke: var(--surface); stroke-width: 2; }
.chart-scroll { overflow-x: auto; }
.chart table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.chart thead th { padding: 16px 10px 10px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); text-align: left; vertical-align: bottom; }
.chart thead th small { display: block; margin-top: 3px; font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.chart thead th.v { text-align: right; }
.chart thead th.own-h { color: var(--text); }
.chart tbody tr { border-top: 1px solid var(--border); transition: background .15s; }
.chart tbody tr:hover { background: var(--bg); }
.chart tbody th { padding: 12px 10px; text-align: left; font-size: 14px; font-weight: 800; white-space: nowrap; text-transform: none; letter-spacing: 0; color: var(--text); border: 0; }
.chart td { border: 0; }
.m-name { display: block; font-size: 15px; letter-spacing: -.01em; }
.m-name sup { color: var(--text-3); font-weight: 600; margin-left: 2px; }
.m-set { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.chart td.v { padding: 12px 10px; text-align: right; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart td.v.low { color: var(--text); font-weight: 900; }
.low-mark { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; font-weight: 800; color: var(--text-2); }
.low-mark svg { width: 13px; height: 13px; stroke-width: 3; }
.c-track { width: 38%; padding: 0 18px; }
.trk { position: relative; height: 34px; }
.trk .tk { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.trk .band { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--hf-band); }
.trk .mk { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--hf); box-shadow: 0 0 0 2px var(--surface); cursor: default; }
.trk .mk::before { content: ''; position: absolute; inset: -8px; }
.trk .mk.half { background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--hf), 0 0 0 2px var(--surface); }
.trk .mk.own { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 2px; background: var(--own); transform: rotate(45deg); z-index: 1; }
.trk .mk:hover, .trk .mk.hot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.trk .mk.half:hover, .trk .mk.half.hot { box-shadow: inset 0 0 0 2.5px var(--hf), 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.chart tfoot td { padding: 0; }
.chart tfoot td.c-track { padding: 0 18px; }
.axis { position: relative; height: 30px; }
.axis span { position: absolute; top: 8px; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chart-note { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.chart-note p + p { margin-top: 6px; }
.chart-note b { color: var(--text-2); }
.chart-note a { color: var(--text-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tip { position: fixed; z-index: 60; pointer-events: none; max-width: 280px; padding: 9px 12px; border-radius: 12px; background: var(--ink); color: var(--ink-text); font-size: 12.5px; line-height: 1.45; box-shadow: 0 12px 32px rgba(15, 14, 12, .24); }
.tip b { display: block; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- final call, JustGains, footer ---------- */
.h-final { margin: 96px 0 0; padding: 60px 32px; border-radius: 34px; background: var(--surface); border: 1px solid var(--border); text-align: center; display: grid; justify-items: center; }
.h-final .mark.big { border-radius: 17px; }
.h-final h2 { margin: 22px 0 10px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.045em; line-height: 1.02; }
.h-final h2 span { color: var(--text-3); }
.h-final p { max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.h-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.h-final-actions .h-cta { margin: 0; min-width: 250px; }
.h-jg { margin: 16px 0 0; border-radius: 34px; background: var(--brand-yellow); color: #171717; }
.jg-inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px 48px; align-items: center; padding: 52px 56px; }
.jg-logo { display: grid; justify-items: start; gap: 18px; }
.jg-logo img { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 0 0 3px #171717; }
.jg-word { width: 220px; height: auto; color: #171717; }
.jg-copy .eyebrow { color: #2f2908; }
.jg-copy h2 { margin: 14px 0 12px; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.04em; line-height: 1.05; }
.jg-copy p { max-width: 640px; font-size: 16px; line-height: 1.65; color: #2f2908; }
.jg-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 22px; font-size: 14px; font-weight: 800; }
.jg-links a:not(.jg-btn) { text-decoration: underline; text-underline-offset: 3px; }
.jg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #171717; color: #f4f1ea; }
.jg-btn:hover { opacity: .9; }
.h-foot { max-width: var(--page); margin: 0 auto; padding: 36px 32px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.h-foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.h-foot nav a:hover { color: var(--text); }

/* ---------- motion ---------- */
/* Only hidden once the script is known to be running. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cast-chip, .model-chip { animation: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .h-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 28px; }
  .h-lede { max-width: 640px; }
  .t-video { grid-column: span 12; }
  .t-photo { grid-column: span 12; aspect-ratio: 4 / 3; }
  .t-audio { grid-column: span 12; }
  .cast-grid { grid-template-columns: 1fr; }
  .jg-inner { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 760px) {
  .home main, .h-nav, .h-foot { padding-left: 18px; padding-right: 18px; }
  .h-kinds { gap: 6px; }
  .h-kinds span { gap: 5px; padding: 6px 10px 6px 8px; font-size: 11.5px; }
  .h-options { grid-template-columns: 1fr; }
  .h-option { min-height: 0; padding: 26px 22px 22px; border-radius: 26px; }
  .h-hero h1 em { white-space: normal; }
  .h-art img { border-radius: 22px; }
  .model-chip { display: none; }
  .t-audio { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .t-audio .t-cover { width: 96px; height: 96px; border-radius: 14px; align-self: start; }
  .t-title { margin: 8px 0 10px; font-size: 15px; }
  .cast-scenes { gap: 10px; }
  .t-prompt { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: 11.5px; border-radius: 12px; }
  .stats { grid-template-columns: 1fr; }
  /* Phones: the model, Higgsfield at its best, and your key. The half-used
     column's story is carried by the stat above. */
  .c-track, .chart th:nth-child(4), .chart td:nth-child(4) { display: none; }
  .chart { padding: 18px 12px 14px; }
  .chart table { min-width: 0; font-size: 13px; }
  .chart tbody th { white-space: normal; padding-left: 4px; }
  .chart thead th { padding: 12px 6px 8px; }
  .chart td.v { padding: 12px 6px; }
  .m-name { font-size: 14px; }
  .legend li:first-child svg { width: 34px; }
  .t-player { gap: 8px; }
  .t-play { width: 40px; height: 40px; }
  .t-time { width: 30px; font-size: 11px; }
  .t-line { min-height: 0; font-size: 12.5px; }
  .h-final { padding: 44px 20px; border-radius: 26px; }
  .h-final-actions .h-cta { min-width: 0; width: 100%; }
  .jg-inner { padding: 32px 24px; }
  .h-section { padding-top: 64px; }
}
