/* Hallmark · shape: Feature Stack (/fisca, /quiz-brain) and a form-led Counter (/support) · genre: modern-minimal · theme: Cobalt (deal 3/3, seed portfolio-cyber-security-data-fcf6·72a74a2f·2026-11-12·r0) · cobalt: dark, derived · redesign: full
 * hero: Stage (/fisca), Stage reversed (/quiz-brain), Counter (/support) · nav: bar · footer: letter close · imagery: the user's own App Store screens, the generated field behind the app heroes · signature: the app's own screens set big beside one sentence and the store badge, each page in its own app colour (Fisca blue from the Cobalt signal, Quiz Brain orange kept from the page's own accent)
 * axes: dark/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · job: try · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: V, two app pages share a skeleton; they differ by mirrored hero, rows against steps, and a rail against four across · hero-review: in-thread · finish-review: in-thread */
@import url("./tokens.css");
@import url("./base.css");
@import url("./shared.css");


/* ---------- hero: stage ---------- */

.hero--app { padding-block: var(--space-xl); }
.hero--app h1 { font-variant-numeric: tabular-nums; font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1.02; text-wrap: balance; }
.hero--app .lead { max-width: 40ch; }
.store { margin-top: var(--space-sm); }
.store a { display: inline-block; border-radius: var(--radius-input); transition: transform var(--dur-micro) var(--ease-out); }
.store a:active { transform: translateY(1px); }
.store a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.store img { width: 150px; height: 50px; }
.tags { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.tags li { font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); }
.tags li + li { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule-2); }

.stage { grid-column: 7 / -1; margin: 0; }
.stage__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-items: center; }
.stage__pair img { width: 100%; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.stagecap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-lg); margin-top: var(--space-lg); }
.stagecap .tags { margin: 0; }
.lockup { display: flex; align-items: center; gap: var(--space-md); }
.lockup img, .glyph { flex-shrink: 0; width: var(--space-2xl); height: var(--space-2xl); border-radius: var(--radius-card); }
.glyph { display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink); }
.lockup strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); }
.lockup span:not(.glyph) { font-size: var(--text-sm); color: var(--color-muted); }

.hero--flip .hero__text { grid-column: 7 / -1; grid-row: 1; }
.hero--flip .stage { grid-column: 1 / span 6; grid-row: 1; }

.hero--counter { padding-block: var(--space-xl); }
.hero--counter h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); font-variant-numeric: tabular-nums; }
.hero--counter .hero__text { grid-column: 1 / span 4; }

/* ---------- features: rows (Fisca) and steps (Quiz Brain) ---------- */

.fwrap { align-items: start; }
.fwrap .head { grid-column: 1 / span 4; position: sticky; top: var(--space-3xl); }
.frows { grid-column: 5 / -1; list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: var(--rule-hair) solid var(--color-rule-2); }
.frows li { counter-increment: n; display: grid; grid-template-columns: 3rem minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--gap-columns); align-items: start; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.frows li::before { content: counter(n); font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-accent-2); }
.frows p { margin: 0; }

.steps { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; counter-reset: n; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule-hair) solid var(--color-rule-2); }
.steps li { counter-increment: n; padding: var(--space-lg) var(--space-lg) 0; border-left: var(--rule-hair) solid var(--color-rule); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps li::before { content: counter(n); display: block; margin-bottom: var(--space-xl); font-family: var(--font-display); font-size: var(--text-display-s); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.steps p { margin-top: var(--space-xs); }

/* ---------- screens: a rail (Fisca) and four across (Quiz Brain) ---------- */

.shots-head { align-items: end; margin-bottom: var(--space-2xl); }
.shots-head h2 { grid-column: 1 / span 7; }
.shots-head p { grid-column: 8 / -1; color: var(--color-muted); }
.rail { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 17%); gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.rail > li { scroll-snap-align: start; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.rail figure, .shots figure { margin: 0; }
.rail img, .shots img { width: 100%; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.rail figcaption, .shots figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* ---------- support band ---------- */

.band__row { align-items: center; }
.band__row h2 { grid-column: 1 / span 6; font-size: var(--text-section); }
.band__row p { grid-column: 8 / -1; margin: 0; font-size: var(--text-lg); }

/* ---------- support page ---------- */

.formwrap { grid-column: 5 / -1; padding: var(--space-md); }
.formwrap:focus-within, .formwrap.is-active { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.formwrap iframe:focus, .formwrap iframe:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.formwrap iframe { display: block; width: 100%; height: 700px; border: 0; border-radius: var(--radius-input); background: var(--color-paper-2); }

/* ---------- small screens ---------- */

@media (max-width: 60rem) {
  .stage, .hero--flip .stage { grid-column: 1 / -1; grid-row: auto; margin: var(--space-2xl) 0 0; }
  .hero--flip .hero__text, .hero--counter .hero__text { grid-column: 1 / -1; grid-row: auto; }
  .hero--counter .formwrap { margin-top: var(--space-xl); }
  .fwrap .head { grid-column: 1 / -1; position: static; margin-bottom: var(--space-xl); }
  .frows { grid-column: 1 / -1; }
  .shots-head h2, .shots-head p, .band__row h2, .band__row p, .formwrap { grid-column: 1 / -1; }
  .shots-head p, .band__row p { margin-top: var(--space-md); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { margin-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .hero--app h1, .hero--counter h1 { font-size: clamp(2.25rem, 10vw, 3rem); font-variant-numeric: tabular-nums; }
  .frows li { grid-template-columns: 2rem minmax(0, 1fr); row-gap: var(--space-xs); }
  .frows p { grid-column: 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:nth-child(n) { padding: var(--space-lg) 0 0; border-left: 0; margin-top: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .steps li:first-child { border-top: 0; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-auto-columns: 62%; }
  .formwrap iframe { height: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  .store a { transition: none; }
  .store a:active { transform: none; }
}
