/* =========================================================
   Industry pages (/for/* and the /for/ hub), generated by tools/industries.mjs.
   Loaded after home.css (tokens, nav, buttons, sections, FAQ, CTA, footer) and pages.css (.pick card).
   The hero is the sample site itself, live in a desktop frame and a phone (assets/for-stage.js).
   ========================================================= */

/* ---------- hero ---------- */
.fhero { position: relative; overflow: clip; isolation: isolate; background: var(--bg); color: var(--fg); padding: clamp(112px, 9vw, 128px) 0 clamp(64px, 7vw, 96px); }
.fhero::before { content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(42% 46% at 72% 74%, color-mix(in srgb, var(--glow, #c6ff3d) 22%, transparent), transparent 72%),
    radial-gradient(36% 40% at 22% 88%, color-mix(in srgb, var(--glow-2, #7c8cff) 16%, transparent), transparent 70%),
    radial-gradient(40% 36% at 12% 0%, rgb(198 255 61 / .06), transparent 70%); }
.fhero .hero__grid { mask-image: linear-gradient(to bottom, #000, transparent 60%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%); }
.fhero__top { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 28px clamp(40px, 5vw, 72px); align-items: end; }
.fhero__title { margin-top: 22px; max-width: 18ch; font: 600 clamp(40px, 4.3vw, 62px)/1 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.fhero__lede { max-width: 46ch; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.55; color: var(--dim); text-wrap: pretty; }
.fhero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.fhero__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); font-weight: 520; text-decoration: underline; text-decoration-color: rgb(244 244 241 / .35); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.fhero__link:hover { text-decoration-color: var(--volt); }
.fhero .hero__fine { margin-top: 20px; }

/* ---------- the stage: desktop frame + phone, live ---------- */
.fstage { position: relative; margin-top: clamp(36px, 4vw, 52px); }
.fstage__room { position: relative; padding-right: 9%; }
.fstage__desk { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #111114;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 70px 140px -60px #000, 0 40px 120px -70px color-mix(in srgb, var(--glow, #c6ff3d) 60%, transparent); }
.fstage__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #17171b; border-bottom: 1px solid rgb(255 255 255 / .07); }
.fstage__dots { display: inline-flex; gap: 6px; }
.fstage__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.fstage__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--dim-2); }
.fstage__live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 999px; background: rgb(255 255 255 / .06); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.fstage__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim-2); }
.fstage.is-live .fstage__live::before { background: var(--volt); box-shadow: 0 0 10px rgb(198 255 61 / .8); }
.fstage__screen, .fstage__pscreen { position: relative; overflow: hidden; background: #0d0d10; }
.fstage__screen { aspect-ratio: 16 / 9.4; }
.fstage__screen img, .fstage__pscreen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .6s var(--ease); }
.fstage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.fstage [data-frame].is-ready iframe { opacity: 1; }
.fstage [data-frame].is-ready picture img { opacity: 0; }
.fstage__phone { position: absolute; right: 0; bottom: -7%; width: 21%; margin: 0; padding: 9px; border-radius: 38px; background: #0b0b0d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .16), inset 0 0 0 1px rgb(255 255 255 / .06), 0 50px 90px -30px #000, 0 30px 90px -50px color-mix(in srgb, var(--glow-2, #c6ff3d) 70%, transparent); }
.fstage__pscreen { aspect-ratio: 390 / 844; border-radius: 30px; }

/* tour stops */
.fstage__tour { display: flex; flex-wrap: wrap; gap: 8px; max-width: 76%; margin-top: 26px; }
.fstage__stop, .fstage__play { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .03);
  box-shadow: inset 0 0 0 1px var(--line-d2); color: var(--dim); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
.fstage__stop i { font-style: normal; color: var(--dim-2); }
.fstage__stop:hover, .fstage__play:hover { color: var(--fg); background: rgb(255 255 255 / .07); }
.fstage__stop[aria-pressed="true"] { color: var(--fg); background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(198 255 61 / .5); }
.fstage__stop[aria-pressed="true"] i { color: var(--volt); }
.fstage__stop::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--volt); }
.fstage.is-touring .fstage__stop[aria-pressed="true"]::after { animation: fstageBar var(--tour-ms, 5200ms) linear forwards; }
@keyframes fstageBar { to { width: 100%; } }
.fstage__play { background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(244 244 241 / .3); }
.fstage__cap { margin-top: 18px; max-width: 76%; font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim-2); }
.fstage__cap a { color: var(--dim); }

/* ---------- headings on these pages run longer (plain titles, not slogans) ---------- */
.fh2 { max-width: 20ch; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.02; }

/* ---------- how customers choose ---------- */
.fchoose { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; counter-reset: none; }
.fchoose__item { display: flex; flex-direction: column; padding-top: 22px; border-top: 1px solid var(--line-2); }
.fchoose__n { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.fchoose__item h3 { margin-top: 18px; font: 600 clamp(21px, 1.7vw, 24px)/1.12 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.fchoose__item > p:not([class]) { margin: 12px 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
.fchoose__stat { margin-top: auto; padding: 18px 18px 16px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.fchoose__stat b { display: block; margin-bottom: 6px; font: 600 38px/1 var(--display); letter-spacing: -.055em; color: var(--ink); }
.fchoose__stat cite { display: block; margin-top: 10px; font: normal 500 10.5px/1.45 var(--mono); letter-spacing: .02em; }
.fchoose__stat cite a { color: var(--muted); }

/* ---------- what the sample site does ---------- */
.fsample { position: relative; overflow: clip; isolation: isolate; }
.fsample::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 30% at 70% 30%, color-mix(in srgb, var(--glow, #c6ff3d) 10%, transparent), transparent 70%); }
.fmoments { display: grid; gap: clamp(64px, 8vw, 120px); }
.fmoment { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .62fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.fmoment--flip { grid-template-columns: minmax(0, .62fr) minmax(0, 1.5fr); }
.fmoment--flip .fmoment__shot { order: 2; }
.fmoment__shot { margin: 0; border-radius: 16px; overflow: hidden; background: #111114; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 60px 120px -60px #000, 0 30px 100px -70px color-mix(in srgb, var(--glow, #c6ff3d) 55%, transparent); }
.fmoment__shot img { display: block; width: 100%; height: auto; }
.fmoment__k { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.fmoment__copy h3 { margin-top: 16px; font: 600 clamp(26px, 2.4vw, 36px)/1.06 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.fmoment__copy > p:not([class]) { margin-top: 16px; color: var(--dim); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.fmoment__go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; color: var(--fg); font-weight: 520; text-decoration: underline; text-decoration-color: rgb(244 244 241 / .35); text-underline-offset: 5px; }
.fmoment__go:hover { text-decoration-color: var(--volt); }
.fsample .footnote { margin-top: clamp(56px, 6vw, 80px); }

/* ---------- what we run ---------- */
/* a hairline grid, not a wall of cards */
.frun { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.frun li { padding: 34px clamp(20px, 2.6vw, 40px) 38px; border-bottom: 1px solid var(--line-2); }
.frun li:nth-child(3n+1) { padding-left: 0; }
.frun li:not(:nth-child(3n+1)) { border-left: 1px solid var(--line-2); }
.frun__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); }
.frun__ico svg { width: 19px; height: 19px; fill: none; stroke: var(--volt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.frun h3 { margin-top: 26px; font: 600 22px/1.15 var(--display); letter-spacing: -.035em; }
.frun p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }

/* ---------- how it works + the plan ---------- */
.fplan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.fsteps { display: grid; gap: 0; margin-top: clamp(32px, 4vw, 48px); counter-reset: fstep; }
.fsteps li { position: relative; display: grid; gap: 6px; padding: 22px 0 22px 64px; border-top: 1px solid var(--line-2); counter-increment: fstep; }
.fsteps li::before { content: counter(fstep, decimal-leading-zero); position: absolute; left: 0; top: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--volt); font: 500 12px/1 var(--mono); }
.fsteps b { font: 600 21px/1.2 var(--display); letter-spacing: -.035em; }
.fsteps span { color: var(--muted); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
.fplan__card { position: sticky; top: 104px; }
.fplan__k { margin-bottom: 14px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- final CTA: one centred column, tight ---------- */
.fcta { gap: 0; }
.fcta .cta__lede { margin: 22px auto 30px; }
.fcta__title { max-width: 18ch; font-size: clamp(36px, 4.6vw, 66px); }

/* ---------- /for/ hub ---------- */
.fhero--hub { padding-bottom: clamp(72px, 8vw, 112px); }
.fhub__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fhub__card { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--fg); box-shadow: 0 30px 60px -40px rgb(9 9 11 / .6); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.fhub__card:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgb(9 9 11 / .7), 0 0 0 1px rgb(198 255 61 / .35); }
.fhub__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(70% 80% at 50% 100%, color-mix(in srgb, var(--glow) 35%, transparent), transparent 70%), #0d0d10; }
.fhub__shot img { position: absolute; left: 7%; top: 9%; width: 86%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 30px 60px -20px #000; transition: transform .6s var(--ease); }
.fhub__card:hover .fhub__shot img { transform: translateY(-6px); }
.fhub__copy { display: grid; gap: 10px; padding: 22px 24px 26px; }
.fhub__k { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.fhub__copy h2 { font: 600 21px/1.2 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.fhub__link { color: inherit; text-decoration: none; }
.fhub__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fhub__link:focus-visible { outline: none; }
.fhub__card:has(.fhub__link:focus-visible) { box-shadow: 0 0 0 2px var(--volt); }
.fhub__s { font: 500 11px/1.5 var(--mono); letter-spacing: .04em; color: var(--dim-2); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1080px) {
  .fchoose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frun, .fhub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frun li:nth-child(n) { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line-2); }
  .frun li:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 899px) {
  .fhero__top { grid-template-columns: 1fr; }
  .fhero__title { max-width: 18ch; }
  .fstage { margin-top: 44px; }
  .fstage__room { padding: 0; }
  .fstage__desk { display: none; }
  .fstage__phone { position: relative; right: auto; bottom: auto; width: min(330px, 80vw); margin-inline: auto; }
  .fstage__tour, .fstage__cap { max-width: none; justify-content: center; text-align: center; }
  .fmoment, .fmoment--flip { grid-template-columns: 1fr; }
  .fmoment--flip .fmoment__shot { order: 0; }
  .fplan { grid-template-columns: 1fr; }
  .fplan__card { position: static; }
}
@media (max-width: 760px) {
  .fhero { padding-top: 108px; }
  .fhero__title { font-size: clamp(36px, 10vw, 44px); }
  .fhero__cta .btn { width: 100%; }
  .fhero .hero__fine, .fcta .hero__fine { justify-content: center; gap: 8px 0; font-size: 11px; letter-spacing: .04em; }
  .fhero .hero__fine > span + span::before, .fcta .hero__fine > span + span::before { margin: 0 8px; }
  .fhero__cta { gap: 6px 24px; }
  .fstage__tour { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .fstage__tour::-webkit-scrollbar { display: none; }
  .fstage__stop, .fstage__play { flex: none; }
  .fchoose, .frun, .fhub__grid { grid-template-columns: 1fr; }
  .fchoose { gap: 28px; }
  .frun li:nth-child(n) { padding: 26px 0 28px; border-left: 0; }
  .fsteps li { padding-left: 56px; }
  .fmoment__copy h3 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .fstage iframe, .fstage__screen img, .fstage__pscreen img, .fhub__card, .fhub__shot img { transition: none; }
}
