/* The seven questions (/start/). Direction B "Dependable software": white, blue #1747D4, ink #0E1A2B; Schibsted
   Grotesk headings, Atkinson Hyperlegible Next body (18px and up), IBM Plex Mono for figures. Tokens from site.css.
   Mobile first: on a phone each question fills the screen, with Back and Next held at the bottom. Without JavaScript
   every question shows in one plain form (.fn-root without .fn-on). Motion is a short slide between questions, and
   none at all under prefers-reduced-motion. */

/* ---------- the intro ---------- */
.fn-intro { padding: 48px 0 24px; }
.fn-wrap { max-width: 800px; }
.fn-intro h1 { font-size: 52px; line-height: 1.04; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; margin-bottom: 16px; }
.fn-intro .lede { max-width: 34em; margin-bottom: 0; }
.fn-note { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); font-size: 18px; }

/* ---------- the question card ---------- */
.fn-stage { padding: 8px 0 80px; overflow-x: clip; }
.fn-card { background: #fff; border: 2px solid var(--blue); border-radius: 16px; padding: 28px 32px 26px; box-shadow: var(--shadow-3); }
.fn-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fn-kicker { font-size: 17px; font-weight: 700; color: var(--blue); }
.fn-count { font-size: 15px; color: var(--muted); white-space: nowrap; }
.fn-bar { height: 8px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 28px; }
.fn-bar span { display: block; height: 100%; width: 14%; background: var(--blue); border-radius: 4px; transition: width .3s ease; }

.fn-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.fn-q { display: flex; gap: 14px; align-items: baseline; padding: 0; margin: 0 0 20px; width: 100%; }
.fn-q:focus { outline: none; }
.fn-q-n { flex: none; font-size: 15px; font-weight: 600; color: var(--blue); }
.fn-q-t { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 32px; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.fn-help { margin: -8px 0 16px; color: var(--muted); font-size: 18px; }

.fn-opts { display: grid; gap: 12px; }
.fn-opt { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 64px; padding: 14px 18px; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; color: var(--ink); font-size: 19px; line-height: 1.3; transition: border-color .12s ease, background-color .12s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
.fn-opt:hover { border-color: #8FA9F2; }
.fn-opt:active { transform: scale(.99); }
.fn-opt input { position: absolute; left: 18px; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; }
.fn-opt-box { width: 24px; height: 24px; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; position: relative; }
.fn-opt input[type="checkbox"] + .fn-opt-box { border-radius: 6px; }
.fn-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.fn-opt input:checked + .fn-opt-box { border-color: var(--blue); background: var(--blue); }
.fn-opt input[type="radio"]:checked + .fn-opt-box::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.fn-opt input[type="checkbox"]:checked + .fn-opt-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.fn-opt:has(input:focus-visible) { outline: 3px solid #8FA9F2; outline-offset: 2px; }
.fn-opt-l { font-weight: 500; }

.fn-field { display: grid; gap: 8px; }
.fn-label { font-weight: 700; color: var(--ink); font-size: 18px; line-height: 1.3; }
.fn-field input { font: inherit; font-size: 20px; color: var(--ink); background: #fff; width: 100%; min-height: 58px; padding: 12px 14px; border: 2px solid var(--line-2); border-radius: 12px; }
.fn-field input:focus { outline: 3px solid #C9D6FA; outline-offset: 0; border-color: var(--blue); }
.fn-sum { margin-top: 26px; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.fn-sum-h { font-weight: 700; color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.fn-sum .fn-help { margin: 0 0 14px; }
.fn-sumrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px 12px; align-items: end; }
.fn-sumrow input { font-family: var(--mono); font-weight: 600; font-size: 22px; }
.fn-op { font: 600 24px/58px var(--mono); color: var(--muted); }
.fn-op--30 { grid-column: 1 / -1; font-size: 17px; line-height: 1.4; color: var(--body); }

.fn-msg { color: var(--missed); font-weight: 700; margin: 16px 0 0; font-size: 18px; }
.fn-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.fn-nav .btn { min-width: 140px; }
.fn-next { margin-left: auto; }

/* The slide between questions (forward from the right, back from the left). */
@keyframes fn-in-fwd { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes fn-in-back { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.fn-step.is-in.is-fwd { animation: fn-in-fwd .32s cubic-bezier(.2, .7, .2, 1) both; }
.fn-step.is-in.is-back { animation: fn-in-back .32s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .fn-step.is-in { animation: none !important; }
  .fn-bar span, .fn-opt { transition: none; }
}

/* Without JavaScript: every question in one plain form, the contact fields under it. */
.fn-root:not(.fn-on) .fn-step + .fn-step { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.fn-root:not(.fn-on) .fn-nav, .fn-root:not(.fn-on) .fn-bar, .fn-root:not(.fn-on) .fn-top { display: none; }
.fn-root:not(.fn-on) .fn-stage { padding-bottom: 40px; }

/* ---------- the result ---------- */
.fn-root.is-done .fn-intro { display: none; }
.fn-result { background: var(--paper); padding-top: 52px; scroll-margin-top: 80px; }
.fn-res-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: end; padding-bottom: 44px; }
.fn-res-copy h2 { font-size: 46px; line-height: 1.07; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; margin-bottom: 18px; }
.fn-res-copy h2:focus { outline: none; }
.fn-sub { max-width: 40em; margin-bottom: 0; }
.fn-ctas { flex-direction: column; }
.fn-ctas .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
.fn-cta-note { margin-top: 14px; font-size: 17px; color: var(--body); }
.fn-link { margin-top: 16px; background: none; border: 0; padding: 0; font: 700 17px/1.4 var(--text); color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fn-link:hover { color: var(--blue-dk); }

.fn-visual-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0 52px; }
.fn-visual--cover, .fn-visual--app { max-width: 760px; }
.fn-visual--cover .night-card { border-radius: 16px; box-shadow: var(--shadow-3); }
.fn-proof { margin-top: 32px; max-width: 760px; background: #fff; border: 1px solid var(--line-2); border-left: 4px solid var(--blue); border-radius: 12px; padding: 20px 24px; }
.fn-proof-h { font-weight: 700; color: var(--blue); font-size: 17px; margin-bottom: 6px; }
.fn-proof p + p { color: var(--ink); }

.fn-res-body { padding-top: 72px; padding-bottom: 80px; }
.fn-h3 { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 26px; }
.fn-ww-pair { display: contents; }
.fn-ww .ww-col-h h4 { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 26px; line-height: 1.15; letter-spacing: -.015em; margin: 0; }
.fn-ww .ww-col-h.is-with h4 { color: #fff; }
.fn-ww .ww-col-h { padding-top: 22px; }

.fn-sum-card { margin-top: 28px; max-width: 760px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 22px 26px 24px; }
.fn-sum-card-h { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 22px; margin-bottom: 6px; }
.fn-sum-big { font-size: 52px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.02em; margin: 8px 0 12px; }
.fn-sum-line { color: var(--ink); margin-bottom: 6px; }
.fn-sum-working { font-size: 16px; color: var(--muted); }

.fn-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; margin-top: 72px; align-items: start; }
.fn-works { margin: 0; }
.fn-side .fn-h3 { margin-bottom: 20px; }
.fn-plan-card { margin-bottom: 16px; }
.fn-plan-card .plan-t { margin-top: 12px; }
.fn-plan .running { margin: 0 0 20px; }
.fn-plan-small { margin: 0 0 16px; padding: 14px 18px; background: #FFF8E6; border: 1px solid #F0D58A; border-radius: 10px; color: var(--ink); font-size: 18px; }
.fn-plan-over { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
.fn-offer { margin-top: 56px; background: var(--blue-tint); border-radius: var(--r); padding: 32px 36px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px 40px; color: var(--ink); }
.fn-offer .label { margin-bottom: 8px; }
.fn-offer-big { font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.fn-offer-r { display: grid; gap: 12px; }
.fn-offer-r2 { font-weight: 700; }

/* ---------- the details ---------- */
.fn-contact { background: var(--surface); border-top: 1px solid var(--line); padding: 72px 0 80px; scroll-margin-top: 72px; }
.fn-root:not(.fn-on) .fn-contact { padding-top: 56px; }
.fn-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 56px; align-items: start; }
.fn-contact-copy h2 { font-size: 42px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.fn-contact-copy h2:focus { outline: none; }
.fn-contact-copy > p { max-width: 32em; }
.fn-lead .fn-tick { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 400; color: var(--ink); cursor: pointer; font-size: 18px; flex-direction: row; }
.fn-lead .fn-tick input { width: 22px; min-height: 0; height: 22px; margin: 3px 0 0; padding: 0; accent-color: var(--blue); }
.fn-lead .fine a { white-space: nowrap; }
/* The button's words are longer than a phone's form is wide: let them wrap rather than widen the form. */
.fn-lead { grid-template-columns: minmax(0, 1fr); }
.fn-lead .btn { white-space: normal; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1120px) {
  .fn-res-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; }
  .fn-res-copy h2 { font-size: 40px; }
  .fn-grid { gap: 40px; }
}
@media (max-width: 980px) {
  .fn-res-top, .fn-grid, .fn-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fn-res-top { align-items: start; padding-bottom: 36px; }
  .fn-result { padding-top: 36px; }
  .fn-res-copy h2 { font-size: clamp(30px, 7vw, 40px); }
  .fn-res-body { padding-top: 52px; padding-bottom: 56px; }
  .fn-h3 { font-size: 30px; }
  .fn-grid { margin-top: 52px; }
  .fn-offer { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .fn-contact { padding: 52px 0 60px; }
  .fn-contact-copy h2 { font-size: 34px; }
  .fn-visual-band { padding: 32px 0 36px; }
}
@media (max-width: 640px) {
  /* Step 1 shares the screen with the intro, so the intro is short: no eyebrow, a smaller headline. */
  .fn-intro { padding: 18px 0 4px; }
  .fn-intro .eyebrow { display: none; }
  .fn-intro h1 { font-size: 30px; letter-spacing: -.025em; margin-bottom: 8px; }
  .fn-intro .lede { font-size: 18px; line-height: 1.45; }
  .fn-on .fn-kicker { display: none; }
  .fn-on .fn-top { justify-content: flex-end; margin-bottom: 8px; }
  .fn-bar { margin-bottom: 20px; }
  .fn-res-copy h2 { font-size: 28px; line-height: 1.12; }
  .fn-root.is-started .fn-intro { display: none; }
  .fn-stage { padding: 4px 0 0; }
  /* A question fills the screen; Back and Next stay at the bottom of it. */
  .fn-on .fn-card { border: 0; box-shadow: none; border-radius: 0; padding: 16px 0 0; min-height: calc(100svh - 64px); display: flex; flex-direction: column; }
  .fn-on .fn-nav { position: sticky; bottom: 0; z-index: 5; margin: auto -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
  .fn-on .fn-msg { margin-bottom: 4px; }
  .fn-root:not(.fn-on) .fn-card { border: 0; box-shadow: none; padding: 8px 0 0; }
  .fn-q { gap: 10px; margin-bottom: 16px; }
  .fn-q-t { font-size: 26px; }
  .fn-help { margin-left: 0; }
  .fn-opts { gap: 10px; }
  .fn-opt { min-height: 58px; padding: 12px 14px; gap: 14px; font-size: 18px; }
  .fn-nav .btn { flex: 1; min-width: 0; }
  .fn-sumrow { grid-template-columns: minmax(0, 1fr); }
  .fn-sumrow .fn-op:not(.fn-op--30) { display: none; }
  .fn-sum { padding: 16px 14px; }
  .fn-proof { padding: 16px 18px; }
  .fn-sum-card { padding: 18px 18px 20px; }
  .fn-sum-big { font-size: 44px; }
  .fn-offer { padding: 22px 20px 24px; }
  .fn-offer-big { font-size: 26px; }
  .fn-h3 { font-size: 27px; }
  .fn-contact-copy h2 { font-size: 30px; }
}
