/* Five sums landing page and its setup guide. Standalone: same brand tokens as home.css,
   none of the homepage layout. One ink page, offer and form on the left, the skill's
   real output on the right, then ruled sections. */

:root {
  color-scheme: dark;
  --ink: #0C1215;
  --ink-2: #111A1E;
  --ink-3: #18242A;
  --cream: #F3EFE6;
  --fog: #B4BEBC;
  --teal: #1FB8A6;
  --mint: #7FE3D6;
  --amber: #E8A94A;
  --line: color-mix(in srgb, var(--cream) 12%, transparent);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Manrope", "Geist", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--font-text);
}
h1, h2, p, ul, ol, pre { margin: 0; }
a { color: var(--mint); }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.fs-wrap { max-width: 70rem; margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }

.fs-top { padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--cream); }
.brand svg { display: block; width: 140px; height: 30px; overflow: visible; }
.brand-text { font-family: var(--font-logo); font-weight: 800; font-size: 22px; fill: currentColor; letter-spacing: -0.03em; }
.brand-loop, .brand-arrow { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.fs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.fs-kicker { font: 500 0.8125rem/1.4 var(--font-mono); color: var(--mint); margin-bottom: 1.1rem; }
.fs-hero h1 {
  font: 700 clamp(2.8rem, 6vw, 4.6rem)/0.96 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.fs-lede { max-width: 34em; margin-top: 1.4rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; }

.fs-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 32rem; margin-top: 1.9rem; }
.fs-form label { flex-basis: 100%; font-weight: 600; font-size: 0.9rem; color: var(--fog); }
.fs-form input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--cream) 28%, transparent);
  background: var(--ink-2);
  color: var(--cream);
  font: inherit;
}
.fs-form input::placeholder { color: var(--fog); opacity: 0.7; }
.fs-form input[aria-invalid="true"] { border-color: var(--amber); }
.fs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 10px;
  font: 600 1.0625rem/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: var(--cream);
  color: var(--ink);
  transition: background-color 200ms ease;
}
.btn:hover { background: var(--mint); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.fs-status { max-width: 32rem; min-height: 1.6em; margin-top: 0.9rem; font-weight: 600; }
.fs-status.is-ok { color: var(--mint); }
.fs-status.is-err { color: var(--amber); }
.fs-note { max-width: 32rem; margin-top: 0.6rem; font-size: 0.875rem; color: var(--fog); }

.fs-result { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fs-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font: 400 0.75rem/1.4 var(--font-mono);
  color: var(--fog);
}
.fs-rows { list-style: none; margin: 0; padding: 12px 18px; font: 400 0.8125rem/1.6 var(--font-mono); color: var(--cream); }
.fs-rows li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.75rem; padding-block: 6px; }
.fs-rows small { display: block; font-size: inherit; color: var(--fog); }
.fs-pass { color: var(--mint); }
.fs-hold { color: var(--amber); }
.fs-dim { color: var(--fog); }
.fs-verdict { padding: 16px 18px; border-top: 1px solid var(--line); font: 500 0.9rem/1.4 var(--font-mono); color: var(--amber); }
.fs-caption { margin: 12px 2px 0; font-size: 0.875rem; color: var(--fog); }

.fs-section { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.fs-two { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); }
.fs-section h2 { font: 700 clamp(1.9rem, 3.2vw, 2.6rem)/1.02 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.fs-prose p { max-width: 36em; margin-top: 1rem; color: var(--fog); }
.fs-prose p:first-child { margin-top: 0; }
.fs-figure {
  max-width: 20em;
  font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.08 var(--font-display);
  color: var(--cream) !important;
}
.fs-figure em { font-style: normal; color: var(--amber); }

.fs-sums { list-style: none; padding: 0; }
.fs-sums li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.fs-sums li:first-child { padding-top: 0; }
.fs-sums li:last-child { border-bottom: 0; padding-bottom: 0; }
.fs-n { font-family: var(--font-mono); color: var(--mint); font-variant-numeric: tabular-nums; }
.fs-q { font-weight: 600; }
.fs-c { color: var(--fog); }

.fs-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; max-width: 36em; color: var(--fog); }
.fs-list li { position: relative; padding-left: 1.4rem; }
.fs-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; background: var(--teal); }
.fs-back { margin-top: 1.9rem; }

.fs-footer { border-top: 1px solid var(--line); padding-block: 2.25rem 3.5rem; font-size: 0.875rem; color: var(--fog); }
.fs-footer p { max-width: 46em; margin-top: 0.5rem; }
.fs-footer p:first-child { margin-top: 0; }
.fs-footer strong { color: var(--cream); font-weight: 600; }

/* Setup guide */
.fs-guide { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem); }
.fs-guide h1 { font: 700 clamp(2.6rem, 5.4vw, 4rem)/0.98 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.fs-guide h2 {
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  font: 700 clamp(1.8rem, 3vw, 2.3rem)/1.04 var(--font-display);
  letter-spacing: -0.01em;
}
.fs-guide p { margin-top: 1rem; color: var(--fog); }
.fs-guide p.fs-lead { color: var(--cream); font-size: 1.15rem; line-height: 1.5; }
.fs-guide ol, .fs-guide ul { display: grid; gap: 0.6rem; margin-top: 1rem; padding-left: 1.4rem; color: var(--fog); }
.fs-guide li::marker { color: var(--teal); }
.fs-guide code { font: 400 0.9em var(--font-mono); color: var(--cream); background: var(--ink-3); padding: 0.1em 0.4em; border-radius: 5px; }
.fs-guide pre {
  margin-top: 1rem;
  padding: 18px;
  overflow-x: auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 400 0.8125rem/1.7 var(--font-mono);
  color: var(--cream);
}
.fs-download { margin-top: 1.75rem; }
.fs-table-wrap { margin-top: 1.1rem; overflow-x: auto; }
.fs-guide table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.fs-guide th, .fs-guide td { padding: 0.75rem 1rem 0.75rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fs-guide th { font-weight: 600; color: var(--cream); }
.fs-guide td { color: var(--fog); }
.fs-guide td:first-child { color: var(--cream); font-variant-numeric: tabular-nums; }
.fs-cta { margin-top: 1.75rem; }

@media (max-width: 860px) {
  .fs-hero, .fs-two { grid-template-columns: minmax(0, 1fr); }
  .fs-sums li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .fs-sums .fs-c { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Quiet link to the main site, in the footer */
.btn-quiet { background: transparent; color: var(--cream); border: 1px solid color-mix(in srgb, var(--cream) 28%, transparent); }
.btn-quiet:hover { background: transparent; border-color: var(--mint); color: var(--mint); }
.fs-footer p.fs-site { margin-top: 1.5rem; }
