/* Flyx product page. Builds on /styles.css; brand tokens from enwove-brand.md. */
:root {
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --paper: #FBF9F4;            /* light surface */
  --accent: #26704F;           /* green text on light grounds */
  --fx-green: #00814F;         /* widest Flyx bar, light ground */
}

.product { justify-content: flex-start; }
.product a:not(.btn):not(.link) { color: var(--accent); text-underline-offset: 3px; }
.product h3 { margin: 0; }
.product code { font: 400 .875em/1.4 var(--mono); }

/* hero */
.fx-hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.fx-lockup { display: block; height: 48px; width: auto; margin-bottom: 1.75rem; }
.fx-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); }
.fx-hero .lede { max-width: 38ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.fx-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.fx-actions .btn { margin-top: 0; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-quiet:hover { opacity: 1; background: rgba(18, 53, 42, .06); }

.fx-specs { margin: 0; justify-self: end; width: 100%; max-width: 26rem; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fx-specs div { padding: 1.25rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.fx-specs div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.fx-specs div:nth-child(even) { padding-left: 1.25rem; }
.fx-specs dt { font: 500 .75rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.fx-specs dd { margin: .5rem 0 0; font: 700 clamp(2rem, 3.4vw, 2.75rem)/1 var(--mono); color: var(--text); letter-spacing: -0.02em; }
.fx-specs dd small { margin-left: .25em; font-size: .4em; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* screenshot */
.fx-shot figure { margin: 0; }
.fx-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.fx-shot figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }

/* sections */
.fx-section { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.fx-label { margin-bottom: 1.25rem; font: 500 .8125rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; padding-block: 1.75rem 0; }
.fx-grid h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.fx-grid p { margin-top: .5rem; font-size: 1rem; color: var(--muted); max-width: 40ch; }
.fx-intro { max-width: 60ch; color: var(--muted); }
.fx-note { margin-top: 1rem; font-size: .9375rem; color: var(--muted); }

/* performance table */
.fx-table { margin-top: 1.5rem; overflow-x: auto; border-top: 1px solid var(--line); }
.fx-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; }
.fx-table th, .fx-table td { padding: .8rem 1rem .8rem 0; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fx-table thead th { font: 500 .75rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.fx-table tbody th { font-weight: 700; }
.fx-table tbody th span { margin-left: .4em; font-weight: 400; color: var(--muted); font-size: .875em; }
.fx-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fx-table tbody td.num { font-weight: 700; }
.fx-table td code { color: var(--muted); }

/* quick start */
.fx-steps { margin: 0; padding: 1.75rem 0 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; border-top: 1px solid var(--line); }
.fx-steps li { counter-increment: s; }
.fx-steps h3 { font-size: 1.0625rem; font-weight: 700; }
.fx-steps h3::before { content: "0" counter(s); display: block; margin-bottom: .5rem; font: 400 .875rem/1 var(--mono); color: var(--accent); }
.fx-steps p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }
.fx-code { margin: 2rem 0 0; padding: 1.25rem 1.5rem; overflow-x: auto; border-radius: 12px; background: #0B221B; color: #F3EFE3; font: 400 .875rem/1.7 var(--mono); }
.fx-code code { font: inherit; }
.fx-code .c { color: #A3B8AD; }

/* FAQ */
.fx-faq { border-top: 1px solid var(--line); }
.fx-faq details { border-bottom: 1px solid var(--line); }
.fx-faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; list-style: none; position: relative; }
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: "+"; position: absolute; right: 0; top: 1rem; font: 400 1.25rem/1 var(--mono); color: var(--muted); }
.fx-faq details[open] summary::after { content: "−"; }
.fx-faq p { padding-bottom: 1.25rem; max-width: 70ch; color: var(--muted); }

/* closing call to action */
.fx-cta { padding-block: clamp(3rem, 7vw, 5.5rem); }
.fx-cta h2 { font: 500 clamp(1.75rem, 3.6vw, 2.75rem)/1.1 var(--display); }
.fx-cta p { margin-top: 1rem; color: var(--muted); }

@media (max-width: 64rem) {
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  /* code: wrap long lines instead of cutting them off at the card edge */
  .fx-code { padding: 1rem 1.125rem; font-size: .8125rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
  /* table: GPU and the three decode speeds fit a phone; quant and retrieval move out */
  .fx-table table { min-width: 0; font-size: .875rem; }
  .fx-table th:nth-child(2), .fx-table td:nth-child(2),
  .fx-table th:nth-child(6), .fx-table td:nth-child(6) { display: none; }
  .fx-table th, .fx-table td { padding-right: .75rem; }
  .fx-table th:last-of-type, .fx-table td.num:nth-child(5) { padding-right: 0; }
  .fx-table tbody th span { display: block; margin: .15rem 0 0; }
  .fx-hero { grid-template-columns: minmax(0, 1fr); }
  .fx-lockup { height: 40px; margin-bottom: 1.25rem; }
  .fx-specs { justify-self: stretch; max-width: none; }
  .fx-grid, .fx-steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .fx-grid { padding-block: 1.25rem 0; }
  .fx-grid p { max-width: none; }
  .fx-actions .btn { flex: 1 1 auto; justify-content: center; }
}
