/* Fornace Software Suite, Board 01. Flat colour, 1px hairlines, no blur. */
:root {
  color-scheme: dark;
  --bg: #141517;
  --card: #1b1d20;
  --surface: #22252a;
  --ink: #f1ecdd;
  --muted: #a6a092;
  --line: #2e3035;
  --control-line: #45484f;
  --accent: #f29f18;
  --accent-hover: #f7b23f;
  --accent-pressed: #d98e12;
  --accent-soft: #2a2418;
  --accent-ink: #f29f18;
  --on-accent: #141517;
  --disabled-bg: #1f2124;
  --disabled-ink: #8c8779;
  --error: #f2a69b;
  --error-bg: #33221e;
  --seg-favilla: #f29f18;
  --seg-imagineer: #9cc3ff;
  --seg-create: #ef5d39;
  --seg-ciao: #f2c96b;
  --seg-sentia: #2bb3b1;
  --seg-payme: #7fd19b;
  --seg-analisi: #d99b43;
  --max: 1200px;
  --edge: clamp(20px, 4vw, 40px);
  --pad: max(var(--edge), calc((100% - var(--max)) / 2));
  --s1: .25rem;
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.5;
  scrollbar-color: var(--control-line) var(--bg);
}
body.accent-imagineer { --accent: #9cc3ff; --accent-hover: #b7d4ff; --accent-pressed: #7fb0f5; --accent-soft: #1e2733; --accent-ink: #9cc3ff; --on-accent: #10151d; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, .button-link { color: var(--ink); background: var(--card); border: 1px solid var(--control-line); border-radius: 2px; min-height: 44px; padding: .625rem .875rem; }
input, select, textarea { width: 100%; min-width: 0; caret-color: var(--accent); }
textarea { display: block; resize: vertical; line-height: 1.6; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
button, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); white-space: nowrap; font-weight: 600; line-height: 1.25; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
button { appearance: none; }
button:not(:disabled):hover, .button-link:hover { border-color: var(--ink); background: var(--surface); }
button:not(:disabled):active, .button-link:active { background: var(--disabled-bg); }
button:disabled, input:disabled, select:disabled, textarea:disabled { color: var(--disabled-ink); background: var(--disabled-bg); border-color: var(--line); cursor: not-allowed; opacity: 1; -webkit-text-fill-color: var(--disabled-ink); }
:where(a, button, input, select, textarea, summary):focus-visible, .upload-label:has(+ input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: var(--on-accent); background: var(--accent); }
.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.primary:not(:disabled):hover, .button-link.primary:hover { background: var(--accent-hover); color: var(--on-accent); border-color: var(--accent-hover); }
.primary:not(:disabled):active, .button-link.primary:active { background: var(--accent-pressed); color: var(--on-accent); border-color: var(--accent-pressed); }
.quiet { background: transparent; border-color: transparent; }
.icon { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.emblem { display: block; flex: none; border-radius: 10px; }
.wordmark { display: block; height: auto; }
.skip-link { position: fixed; top: var(--s3); left: var(--s4); z-index: 10; padding: var(--s3) var(--s4); color: var(--on-accent); background: var(--accent); border-radius: 2px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Suite header */
header.product-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-inline: var(--pad); border-bottom: 1px solid var(--line); background: var(--bg); }
.suite-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex: none; }
.brand-name { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.suite-link { margin-right: auto; padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted); font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }
.suite-link:hover { color: var(--ink); }
.product-navigation { display: flex; align-items: center; gap: 28px; font-size: .875rem; }
.product-navigation a:not(.button-link) { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.product-navigation a:not(.button-link):hover, .product-navigation a[aria-current="page"] { color: var(--ink); }
.product-navigation a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.nav-cta { padding-inline: 1.125rem; font-size: .875rem; }

/* Main and type */
main { flex: 1; width: 100%; padding: var(--s12) var(--pad) var(--s16); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); font-weight: 650; letter-spacing: -.038em; line-height: 1.04; margin-bottom: 0; }
h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 620; letter-spacing: -.03em; line-height: 1.15; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
p { line-height: 1.6; }
.accent { color: var(--accent); }
.detail { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--control-line); font-size: .9375rem; }
.text-link:hover { text-decoration-color: currentColor; }
.back { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: .875rem; color: var(--muted); }
.back:hover { color: var(--ink); }
.badge { display: inline-block; vertical-align: middle; border: 1px solid var(--control-line); border-radius: 2px; padding: 3px 7px; font-size: .75rem; line-height: 1.2; font-weight: 500; color: var(--muted); }
.status-message { font-size: .875rem; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
.error, .job-error { color: var(--error); background: var(--error-bg); border: 1px solid var(--error); border-radius: 2px; padding: var(--s3) var(--s4); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
#status:empty, #payment-status:empty, #studio-status:empty, #quote-status:empty, #history-status:empty { display: none; }
.visually-hidden, .file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product { padding-top: var(--s6); }
.product h1 { font-size: 2.5rem; margin-bottom: var(--s6); }

/* Apps hub */
.hub { padding-top: 0; }
.hub-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.hub-hero h1 { max-width: 14ch; }
.lead { color: var(--muted); font-size: 1.1875rem; line-height: 1.6; max-width: 56ch; margin: var(--s6) 0 var(--s8); }
.lead strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.hub-actions .button-link { min-height: 48px; padding-inline: 1.5rem; }
.hub-mark { margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.hub-mark-art { display: grid; place-items: center; padding: var(--s10); border-bottom: 1px solid var(--line); }
.hub-mark-art .emblem { border-radius: 22px; }
.ledger { margin: 0; display: grid; }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s4) var(--s6); border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ledger div:first-child { border-top: 0; }
.ledger dt { color: var(--muted); font-size: .875rem; }
.ledger dd { margin: 0; font-size: .9375rem; font-weight: 600; text-align: right; }
.hub-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; border-top: 1px solid var(--line); padding: 72px 0; scroll-margin-top: 16px; }
.hub-section-head p { color: var(--muted); max-width: 34ch; margin: var(--s4) 0 0; }
.directory { display: grid; border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 20px; align-items: center; gap: 20px; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background-color 160ms ease; }
.entry:hover { background: var(--card); }
.entry:hover .entry-go { color: var(--ink); }
.entry .emblem { width: 56px; height: 56px; }
.entry-copy { display: grid; gap: 2px; min-width: 0; }
.entry-name { font-size: 1.25rem; font-weight: 620; letter-spacing: -.02em; }
.entry-detail { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.tag { display: inline-block; border: 1px solid var(--control-line); border-radius: 2px; padding: 4px 8px; font-size: .75rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.entry-go { color: var(--muted); display: inline-flex; }
.hub-note { margin: var(--s6) 0 0; color: var(--muted); font-size: .9375rem; }
.hub-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--control-line); text-underline-offset: 4px; }
.hub-note a:hover { text-decoration-color: currentColor; }
.wallet-spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; border-top: 1px solid var(--line); padding: 72px 0 0; }
.rate { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; margin: var(--s6) 0 var(--s6); }
.rate span { color: var(--accent); }
.spec-rows { margin: 0; border-top: 1px solid var(--line); }
.spec-rows div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s6); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.spec-rows dt { font-weight: 620; font-size: 1.0625rem; }
.spec-rows dd { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; font-variant-numeric: tabular-nums; }

/* Native models */
.models { border-top: 1px solid var(--line); padding: 88px 0 72px; scroll-margin-top: 16px; }
.models-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 48px; margin-bottom: 48px; }
.models-head h2 { margin: 0; }
.models-head p { margin: 0; color: var(--muted); }
.model-list { display: grid; gap: 24px; }
.model { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: start; padding: 40px; background: #1c1e22; border: 1px solid var(--line); border-radius: 8px; scroll-margin-top: 16px; }
.model-copy { display: grid; justify-items: start; gap: 20px; min-width: 0; }
.model-title { display: flex; align-items: center; gap: 16px; }
.model-title h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 640; letter-spacing: -.025em; line-height: 1.15; }
.model-pitch { margin: 0; max-width: 40ch; font-size: 1.0625rem; line-height: 1.55; }
.facts, .model-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 6px 10px; border: 1px solid var(--control-line); border-radius: 2px; background: var(--bg); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.model-link { margin-top: -4px; }
.model-link .icon { width: 14px; height: 14px; }
.sample { display: grid; gap: 16px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { min-height: 44px; padding: .5rem .875rem; font-size: .875rem; font-weight: 560; color: var(--muted); background: var(--bg); border-color: var(--line); }
.pills button:not(:disabled):hover { color: var(--ink); background: var(--bg); border-color: var(--control-line); }
.pills button[aria-selected="true"], .pills button[aria-pressed="true"], .pills button[aria-selected="true"]:hover, .pills button[aria-pressed="true"]:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.sample-panel { min-height: 152px; }
.exchange { margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exchange div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 16px 0; }
.exchange div:has(.exchange-media) { align-items: center; }
.exchange div + div { border-top: 1px solid var(--line); }
.exchange dt { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.exchange dd { margin: 0; line-height: 1.55; }
.exchange-media { display: flex; align-items: center; gap: 14px; }
.exchange-media img { flex: none; width: 92px; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.exchange-out { font-weight: 600; }
.exchange-out span { color: var(--accent); font-variant-numeric: tabular-nums; }
.exchange-warm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-variant-numeric: tabular-nums; }
.bench strong { color: var(--accent); font-weight: 700; }
.bench-vs { color: var(--muted); font-size: .875rem; }
.sample-foot { margin: 0; color: var(--muted); font-size: .8125rem; }
.sample .stage { position: relative; margin: 0; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.sample .stage img, .sample .stage video { display: block; width: 100%; height: auto; }
.sample-image .stage { aspect-ratio: 4 / 3; }
.sample-image .stage img { height: 100%; object-fit: cover; }
.stage-badge { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sample-control { justify-self: start; min-height: 44px; padding: .5rem 1rem; font-size: .875rem; }
.sample-control[aria-pressed="true"], .sample-control[aria-pressed="true"]:not(:disabled):hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.script { display: grid; align-content: start; gap: 8px; min-height: 124px; margin: 0; padding: 0; list-style: none; }
.script li { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); transition: border-color 160ms ease, color 160ms ease; }
.script li.speaking { color: var(--ink); border-color: var(--accent); }
.speaker { font-size: .8125rem; font-weight: 650; }
.script li.speaking .speaker { color: var(--accent); }
.line { font-size: 1.0625rem; line-height: 1.5; }
.cue { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--accent); margin-right: 3px; }
.player { display: grid; grid-template-columns: auto minmax(0, 1fr) 54px; align-items: center; gap: 16px; }
.player .sample-control { min-width: 84px; }
.player-track { position: relative; height: 3px; background: var(--line); overflow: hidden; }
.player-track span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.player-time { color: var(--muted); font-size: .8125rem; text-align: right; font-variant-numeric: tabular-nums; }
.models-more { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 24px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.models-more span { max-width: 72ch; }
.models-more .icon { flex: none; margin-top: 3px; }
.models-more:hover { color: var(--ink); }

/* Shared Suite Footer */
.suite-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.spectrum { display: grid; grid-template-columns: repeat(7, 1fr); height: 3px; }
.seg-favilla { background: var(--seg-favilla); }
.seg-imagineer { background: var(--seg-imagineer); }
.seg-create { background: var(--seg-create); }
.seg-ciao { background: var(--seg-ciao); }
.seg-sentia { background: var(--seg-sentia); }
.seg-payme { background: var(--seg-payme); }
.seg-analisi { background: var(--seg-analisi); }
.suite-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px var(--pad) 48px; }
.footer-brand p { margin: var(--s5) 0 var(--s2); max-width: 30ch; line-height: 1.55; }
.footer-brand > a:first-child { display: inline-flex; min-height: 44px; align-items: center; }
.footer-studio { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--ink); }
.footer-studio .icon { width: 14px; height: 14px; }
.suite-footer h2 { font-size: .875rem; font-weight: 650; letter-spacing: 0; line-height: 1.4; color: var(--ink); margin: 0 0 var(--s3); }
.suite-footer ul { list-style: none; margin: 0; padding: 0; }
.suite-footer li a { display: flex; align-items: center; min-height: 44px; }
.suite-footer li a:hover, .footer-studio:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); padding: var(--s5) var(--pad) max(var(--s6), env(safe-area-inset-bottom)); font-size: .8125rem; }
.colophon p { margin: 0; }

@media (max-width: 900px) {
  .hub-section { padding: 48px 0; }
  .wallet-spec { padding-top: 48px; }
  .hub-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hub-hero h1 { max-width: 16ch; }
  .hub-mark { max-width: 440px; }
  .hub-section, .wallet-spec { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .model { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .models { padding-top: 56px; padding-bottom: 48px; }
  .suite-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-extra { display: none !important; }
  header.product-header { min-height: 68px; gap: 12px; }
  .product-navigation { gap: 16px; }
}
@media (max-width: 560px) {
  .entry { grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; padding-inline: 0; }
  .entry .emblem { width: 48px; height: 48px; }
  .entry-tags { grid-column: 2; grid-row: 2; }
  .entry-go { grid-column: 3; grid-row: 1; }
  .hub-mark-art { padding: var(--s6); }
  .hub-mark-art .emblem { width: 96px; height: 96px; border-radius: 16px; }
  .model { padding: 24px 20px; gap: 28px; }
  .model-title .emblem { width: 44px; height: 44px; }
  .exchange div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .script { min-height: 0; }
  .script li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; }
  .sample-image .stage { aspect-ratio: 1; }
  .models-head { margin-bottom: 32px; }
  .spec-rows div { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .suite-footer-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 32px; }
  .colophon { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
