/* Swift NX site: tokens and base components (Work Sprint #100-2, slice S1).
   Tokens from swift-nx src/assets/scss/_nxf-design-tokens.scss (light theme, commit 083b7b66), plus the
   site-only --sx-* set from the redesign spec (3.3). Lifted from the signed-off design boards
   (docs/landing/boards/swiftnx.css on ui/landing-plan); later slices add the shell, landing and page
   blocks. Light only (color-scheme: light); logical properties throughout; no build step. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  /* Swift tokens */
  --nxf-primary: #2756d5;
  --nxf-primary-700: #1f47b8;
  --nxf-primary-50: #eef3ff;
  --nxf-primary-100: #dde6ff;
  --nxf-text: #1d2433;
  --nxf-text-muted: #6b7385;
  --nxf-text-soft: #9aa2b1;
  --nxf-bg-card: #fff;
  --nxf-bg-subtle: #f7f8fb;
  --nxf-bg-app: #eef1f6;
  --nxf-border: #e6e8ee;
  --nxf-border-strong: #d8dbe3;
  --nxf-divider: #eef0f4;
  --nxf-success: #1f9d57;
  --nxf-success-text: #1a7f47;
  --nxf-danger: #d93636;
  --nxf-notice-danger-bg: #fdecec;
  --nxf-notice-danger-border: #f2d0d0;
  --nxf-notice-danger-text: #b42318;
  --nxf-notice-info-bg: #eef3ff;
  --nxf-notice-info-border: #d6e0fb;
  --nxf-notice-info-text: #1f47b8;
  --nxf-notice-warning-bg: #fff8ec;
  --nxf-notice-warning-border: #f5dfb8;
  --nxf-notice-warning-text: #7a4800;
  --nxf-banner-warning-bg: #fff4e5;
  --nxf-banner-warning-border: #f5d9a8;
  --nxf-banner-warning-text: #9a5b00;
  --nxf-banner-warning-action: #b45309;
  --nxf-radius-sm: 6px;
  --nxf-radius: 8px;
  --nxf-radius-lg: 12px;
  --nxf-shadow-sm: 0 1px 2px rgba(20, 30, 60, .04);
  --nxf-shadow: 0 4px 14px rgba(20, 30, 60, .07);
  --nxf-shadow-lg: 0 20px 60px rgba(20, 30, 60, .18);
  --nxf-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Site-only */
  --sx-ink: #0b2a55;
  --sx-ink-text: #e8eefc;
  --sx-ink-muted: #b4c2e0;
  --sx-logo: #2756d5; /* nx mark, same as --nxf-primary since board review R3 */
  --sx-input-border: rgba(145, 158, 171, .32);
  --sx-muted-on-subtle: #646c7e; /* --nxf-text-muted is 4.48:1 on #f7f8fb (fails AA); this is 4.96:1 there, 4.65:1 on #eef1f6 */
  --sx-wrap: 1200px;
  --sx-gutter: 32px;
  --sx-section: 96px;
  --sx-focus: 0 0 0 2px #fff, 0 0 0 4px var(--nxf-primary);
}
@media (max-width: 959.98px) { :root { --sx-gutter: 20px; --sx-section: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--nxf-font-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--nxf-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], .plain { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--nxf-primary); text-underline-offset: 3px; }
a:hover { color: var(--nxf-primary-700); }
:focus-visible { outline: 2px solid var(--nxf-primary); outline-offset: 2px; }
.on-ink :focus-visible, .on-ink:focus-visible { outline-color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Muted text on grey grounds: scoped override, reset inside white surfaces */
.section--subtle, .suffix, .empty-plans { --nxf-text-muted: var(--sx-muted-on-subtle); }
.section--subtle :is(.card, .plan, .step, .iso-diagram, .glance li, .pcard, .form-card) { --nxf-text-muted: #6b7385; }

/* Type scale (spec 3.3; S13 refresh, rolled out to every page): bold and tight, set like the books. */
.h1-hero { font-size: 76px; line-height: 74px; font-weight: 700; letter-spacing: -0.042em; }
.h1-band { font-size: 60px; line-height: 60px; font-weight: 700; letter-spacing: -0.036em; }
.h2 { font-size: 44px; line-height: 46px; font-weight: 700; letter-spacing: -0.032em; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 21px; line-height: 32px; letter-spacing: -0.006em; color: var(--nxf-text); }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--nxf-text-muted); }
.eyebrow { display: block; font-size: 13px; line-height: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--nxf-primary-700); }
@media (max-width: 959.98px) {
  .h1-hero { font-size: 44px; line-height: 44px; letter-spacing: -0.038em; }
  .h1-band { font-size: 38px; line-height: 40px; letter-spacing: -0.03em; }
  .h2 { font-size: 32px; line-height: 36px; letter-spacing: -0.028em; }
  .h3 { font-size: 18px; line-height: 26px; }
  .lead { font-size: 17px; line-height: 26px; letter-spacing: 0; }
}

.wrap { max-width: calc(var(--sx-wrap) + 2 * var(--sx-gutter)); margin-inline: auto; padding-inline: var(--sx-gutter); }
.section { padding-block: var(--sx-section); }
.section--subtle { background: var(--nxf-bg-subtle); }
.section-head { max-width: 720px; margin-block-end: 48px; }
.section-head .h2 { max-width: 18ch; }
.section-head .h2 + p { margin-block-start: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* Buttons: Swift's shape, 44 px on the site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--nxf-radius-sm);
  font-size: 15px; line-height: 22px; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--nxf-primary); border-color: var(--nxf-primary); color: #fff; }
.btn-primary:hover, .btn-primary.is-hover { background: var(--nxf-primary-700); border-color: var(--nxf-primary-700); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--nxf-border-strong); color: var(--nxf-text); }
.btn-secondary:hover, .btn-secondary.is-hover { border-color: var(--nxf-primary); color: var(--nxf-primary-700); background: var(--nxf-primary-50); }
.btn-on-ink { background: #fff; border-color: #fff; color: var(--nxf-primary); }
.btn-on-ink:hover, .btn-on-ink.is-hover { background: var(--nxf-primary-50); border-color: var(--nxf-primary-50); color: var(--nxf-primary-700); }
.btn-outline-ink { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-ink:hover, .btn-outline-ink.is-hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--nxf-primary); outline-offset: 2px; }
.on-ink .btn:focus-visible, .on-ink .btn.is-focus { outline-color: #fff; }
.btn:disabled, .btn.is-disabled { background: var(--nxf-bg-app); border-color: var(--nxf-border-strong); color: var(--nxf-text-muted); cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.text-link { color: var(--nxf-primary); font-weight: 600; text-decoration: none; }
.text-link:hover, .text-link.is-hover { color: var(--nxf-primary-700); text-decoration: underline; }
.text-link.is-focus { outline: 2px solid var(--nxf-primary); outline-offset: 2px; border-radius: 2px; }
.arrow-link::after { content: " \2192"; }
.nav-link { color: var(--nxf-text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-link:hover { color: var(--nxf-primary); }
.nav-link[aria-current] { color: var(--nxf-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Forms: the sign-in field, 44 px on the site */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-block-start: 18px; }
.label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--nxf-text); }
.label .opt { font-weight: 400; color: var(--nxf-text-muted); }
.help { font-size: 13px; line-height: 18px; color: var(--nxf-text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 9px 14px;
  border: 1px solid var(--sx-input-border); border-radius: var(--nxf-radius-sm);
  background: #fff; color: var(--nxf-text); font-size: 15px; line-height: 24px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--nxf-text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: #919eab; }
.input:focus, .select:focus, .textarea:focus, .input.is-focus, .select.is-focus {
  outline: none; border-color: var(--nxf-primary); box-shadow: 0 0 0 3px rgba(39, 86, 213, .18);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7385' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--nxf-notice-danger-text); }
.field.is-error .input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .16); }
.error-text { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--nxf-notice-danger-text); }
.error-text svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--sx-input-border); border-radius: var(--nxf-radius-sm); background: #fff; }
.input-group .input { border: 0; border-radius: var(--nxf-radius-sm) 0 0 var(--nxf-radius-sm); min-width: 0; }
.input-group .input:focus { box-shadow: none; }
.input-group:focus-within, .input-group.is-focus { border-color: var(--nxf-primary); box-shadow: 0 0 0 3px rgba(39, 86, 213, .18); }
.suffix { display: flex; align-items: center; padding-inline: 12px; border-inline-start: 1px solid var(--nxf-border); background: var(--nxf-bg-subtle); color: var(--nxf-text-muted); font-size: 14px; white-space: nowrap; border-radius: 0 var(--nxf-radius-sm) var(--nxf-radius-sm) 0; }
.field.is-error .input-group { border-color: var(--nxf-notice-danger-text); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; cursor: pointer; }
.choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--nxf-primary); }
.choice-list { display: grid; gap: 10px; margin-block-start: 10px; }
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block-start: 10px; }
.choice-card { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--nxf-border-strong); border-radius: var(--nxf-radius); font-size: 15px; font-weight: 500; cursor: pointer; }
.choice-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--nxf-primary); }
.choice-card:has(input:checked), .choice-card.is-checked { border-color: var(--nxf-primary); background: var(--nxf-primary-50); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--nxf-primary); outline-offset: 2px; }
@media (max-width: 599.98px) { .choice-cards { grid-template-columns: 1fr; } }

.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--nxf-radius); background: var(--nxf-bg-app); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; min-width: 96px; padding: 7px 16px; border-radius: var(--nxf-radius-sm); text-align: center; font-size: 14px; font-weight: 600; color: var(--nxf-text); }
.segmented input:checked + span { background: #fff; color: var(--nxf-primary-700); box-shadow: var(--nxf-shadow-sm), 0 0 0 1px var(--nxf-border); }
.segmented input:focus-visible + span, .segmented span.is-focus { outline: 2px solid var(--nxf-primary); outline-offset: 2px; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 600; background: var(--nxf-primary-50); color: var(--nxf-primary-700); }
.chip--neutral { background: var(--nxf-bg-app); color: var(--nxf-text); }
.chip--success { background: #e7f6ee; color: var(--nxf-success-text); }
.chip--warning { background: var(--nxf-notice-warning-bg); color: var(--nxf-notice-warning-text); box-shadow: inset 0 0 0 1px var(--nxf-notice-warning-border); }
.chip--danger { background: var(--nxf-notice-danger-bg); color: var(--nxf-notice-danger-text); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--nxf-border); border-radius: var(--nxf-radius); padding: 24px; }
.card--lift { box-shadow: var(--nxf-shadow); }
.card:focus-within, .card.is-focus { border-color: var(--nxf-primary); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--nxf-radius); background: var(--nxf-primary-50); color: var(--nxf-primary); }
.icon-tile svg { width: 24px; height: 24px; }
.icon { width: 20px; height: 20px; flex: none; }
.tick { width: 20px; height: 20px; flex: none; color: var(--nxf-success); }


/* Banners and notices */
.env-banner { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px var(--sx-gutter); background: var(--nxf-banner-warning-bg); border-block-end: 1px solid var(--nxf-banner-warning-border); color: var(--nxf-banner-warning-text); font-size: 13px; line-height: 18px; font-weight: 600; text-align: center; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid; border-radius: var(--nxf-radius); font-size: 15px; line-height: 22px; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.notice--danger { background: var(--nxf-notice-danger-bg); border-color: var(--nxf-notice-danger-border); color: var(--nxf-notice-danger-text); }
.notice--success { background: #e7f6ee; border-color: #bfe5cf; color: var(--nxf-success-text); }
.notice--info { background: var(--nxf-notice-info-bg); border-color: var(--nxf-notice-info-border); color: var(--nxf-notice-info-text); }
.notice--warning { background: var(--nxf-notice-warning-bg); border-color: var(--nxf-notice-warning-border); color: var(--nxf-notice-warning-text); }
.notice b { font-weight: 600; }
.notice a { color: inherit; font-weight: 600; }
.error-summary { padding: 16px 18px; border: 1px solid var(--nxf-notice-danger-border); border-inline-start: 4px solid var(--nxf-notice-danger-text); border-radius: var(--nxf-radius); background: var(--nxf-notice-danger-bg); color: var(--nxf-notice-danger-text); }
.error-summary h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.error-summary ul { margin: 6px 0 0; padding-inline-start: 20px; font-size: 15px; line-height: 22px; }
.error-summary a { color: inherit; font-weight: 500; }
.success-panel { padding: 32px; border: 1px solid var(--nxf-border); border-radius: var(--nxf-radius-lg); background: #fff; }
.success-panel .ok-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 999px; background: #e7f6ee; color: var(--nxf-success-text); margin-block-end: 16px; }
.success-panel .ok-icon svg { width: 24px; height: 24px; }
.success-panel h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
.success-panel p { margin-block-start: 8px; }

/* Interior band (S13 look): white and left-set; the headline is large and tight across two thirds of the
   page, the eyebrow is a ruled label (no blue caps), and the band's one ornament is the landing's ledger
   ruling with its double margin rule, on the right third only. A heavy rule closes the band. */
.band { position: relative; overflow: hidden; background: #fff; border-block-end: 2px solid var(--nxf-text); padding-block: 88px 56px; }
/* The ruling starts past the lead's widest line (34em at 21 px, about 720 px, from the wrap's content edge),
   and never left of two thirds of the page. */
.band::before { content: ""; position: absolute; inset: 0 0 0 max(66%, calc(max(var(--sx-gutter), (100% - var(--sx-wrap)) / 2) + 760px)); background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--nxf-divider) 31px 32px); border-inline-start: 3px double var(--nxf-primary-100); pointer-events: none; }
.band .wrap { position: relative; }
.band .eyebrow { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--nxf-text-muted); }
.band .eyebrow::before { content: ""; width: 32px; border-block-start: 2px solid var(--nxf-text); }
.band .h1-band { margin-block-start: 18px; max-width: 15ch; }
.band .eyebrow + .h1-band { margin-block-start: 18px; }
.band .h1-band:first-child { margin-block-start: 0; }
.band .lead { margin-block-start: 24px; max-width: 34em; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-block-start: 32px; }
@media (max-width: 959.98px) { .band { padding-block: 48px 36px; } .band::before { display: none; } }

/* Shell (slice S2, board B2): skip link, header, mobile menu, app header, footer */
.skip-link { position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--nxf-radius-sm); background: var(--nxf-primary); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { inset-block-start: 8px; color: #fff; }
main:focus { outline: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block-end: 1px solid var(--nxf-border); }
.site-header.is-top { border-block-end-color: transparent; }
.header-in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo-link { display: inline-flex; flex: none; border-radius: 4px; }
.logo-link img { height: 34px; width: auto; }
.logo-mark { display: none; }
.main-nav ul { display: flex; gap: 28px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.header-actions .text-link { margin-inline-end: 8px; color: var(--nxf-text); font-weight: 500; font-size: 15px; }
.header-actions .text-link:hover { color: var(--nxf-primary); }
.menu-btn { display: none; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--nxf-border-strong); border-radius: var(--nxf-radius-sm); background: #fff; color: var(--nxf-text); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.menu-btn > span { display: inline-flex; align-items: center; gap: 6px; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .menu-close, .menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline-flex; }
.header-compact, .site-menu { display: none; }
@media (max-width: 959.98px) {
  .header-in { gap: 12px; min-height: 64px; }
  .logo-link img { height: 28px; }
  .main-nav, .header-actions { display: none; }
  .header-compact { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
  .menu-btn { display: inline-flex; }
  .site-menu:target, .site-menu.is-open { display: block; border-block-start: 1px solid var(--nxf-border); background: #fff; padding-block: 8px 24px; }
  .site-menu.js-menu:not(.is-open) { display: none; }
  .site-menu ul { display: grid; }
  .site-menu .m-link { display: flex; align-items: center; min-height: 52px; border-block-end: 1px solid var(--nxf-divider); color: var(--nxf-text); font-size: 17px; font-weight: 600; text-decoration: none; }
  .site-menu .m-link[aria-current] { color: var(--nxf-primary); }
  .site-menu .m-actions { display: grid; gap: 12px; margin-block-start: 20px; }
  .site-menu .m-close { display: inline-flex; align-items: center; justify-self: center; gap: 6px; min-height: 44px; }
  .site-menu.js-menu .m-close { display: none; }
}
@media (max-width: 359.98px) { .logo-full { display: none; } .logo-mark { display: block; } .logo-link .logo-mark { height: 24px; } }
.app-header .header-in { min-height: 64px; }
.app-actions { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; font-size: 15px; }
.app-actions a { color: var(--nxf-text); font-weight: 500; text-decoration: none; }
.app-actions a[aria-current] { color: var(--nxf-primary-700); font-weight: 600; }
@media (max-width: 599.98px) { .app-actions .hide-sm { display: none; } }
.band-actions .band-link { align-self: center; }

.site-footer { background: var(--sx-ink); color: var(--sx-ink-text); padding-block: 64px 32px; font-size: 15px; line-height: 24px; }
.site-footer a { color: var(--sx-ink-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid.no-sister { grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-block-start: 16px; max-width: 320px; color: var(--sx-ink-muted); font-size: 15px; }
.footer-col h2 { font-size: 13px; line-height: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--sx-ink-muted); margin-block-end: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid rgba(180, 194, 224, .25); color: var(--sx-ink-muted); font-size: 14px; }
.footer-bottom .rel { margin-inline-start: auto; }
.footer-bottom .publisher a { text-decoration: underline; } /* a link inside a sentence */
@media (max-width: 959.98px) {
  .footer-grid, .footer-grid.no-sister { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .rel { margin-inline-start: 0; }
}

/* Landing (slice S3, board B3): product cards (style guide), isolation. Lifted from the board CSS.
   The S13 hero, tour, vignettes and showcase are in landing.css, loaded by the landing only. */
.section--line { border-block-start: 1px solid var(--nxf-border); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards .card h3 { margin-block-start: 18px; }
.cards .card p { margin-block-start: 8px; color: var(--nxf-text-muted); font-size: 15px; line-height: 24px; }
.iso-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.iso-grid > * { min-width: 0; }
.iso-grid .lead { margin-block-start: 16px; }
.points { display: grid; gap: 20px; margin-block-start: 28px; }
.points h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.points p { margin-block-start: 2px; color: var(--nxf-text-muted); font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.iso-more { margin-block-start: 28px; }
.iso-diagram { background: #fff; border: 1px solid var(--nxf-border); border-radius: var(--nxf-radius-lg); padding: 28px; }
.iso-svg { display: block; width: 100%; height: auto; }
.iso-svg text { font-family: inherit; text-anchor: middle; fill: var(--nxf-text); }
.iso-co { fill: #fff; stroke: var(--nxf-primary); stroke-width: 2; }
.iso-line { stroke: var(--nxf-primary); stroke-width: 2; }
.iso-db { fill: var(--nxf-primary-50); stroke: var(--nxf-primary); stroke-width: 2; }
.iso-db-top { fill: var(--nxf-primary-100); stroke: var(--nxf-primary); stroke-width: 2; }
.iso-rule { stroke: var(--nxf-border); stroke-width: 1.5; stroke-dasharray: 6 6; }
.iso-co-off { fill: var(--nxf-bg-subtle); stroke: #b9c0cf; stroke-width: 1.5; }
.iso-line-off { stroke: #b9c0cf; stroke-width: 1.5; }
.iso-db-off { fill: #f3f5f9; stroke: #b9c0cf; stroke-width: 1.5; }
.iso-db-off-top { fill: #eef1f6; stroke: #b9c0cf; stroke-width: 1.5; }
.iso-strike { stroke: #b42318; stroke-width: 3; stroke-linecap: round; }
.iso-svg .iso-off { fill: var(--nxf-text-muted); text-decoration: line-through; }
.iso-stack { display: none; }
@media (max-width: 959.98px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iso-grid { grid-template-columns: 1fr; gap: 40px; }
  .iso-diagram { padding: 16px; }
  .iso-wide { display: none; }
  .iso-stack { display: block; }
}
@media (max-width: 599.98px) { .cards { grid-template-columns: 1fr; } }


/* Landing part 2 (slice S4, board B3/B1): getting started and support facts, proof and testimonials
   (hidden until config supplies them), plan cards and currency selector, FAQ, CTA band. Lifted from the board CSS. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 959.98px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 28px 28px; background: #fff; border: 1px solid var(--nxf-border); border-block-start: 3px solid var(--nxf-text); border-radius: 0 0 var(--nxf-radius) var(--nxf-radius); }
.plan--featured { border-block-start-color: var(--nxf-primary); border-block-start-width: 6px; padding-block-start: 23px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.plan-tier { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nxf-text-muted); }
.plan-name { font-size: 22px; line-height: 28px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price b { font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.035em; }
.price .cur { font-size: 16px; font-weight: 600; color: var(--nxf-text); }
.price .per { font-size: 15px; color: var(--nxf-text-muted); }
.converted { font-size: 14px; line-height: 20px; color: var(--nxf-text-muted); font-variant-numeric: tabular-nums; }
.plan .btn { margin-block-start: auto; }
.currency { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.currency .label { font-weight: 500; white-space: nowrap; }
.currency .select { width: auto; min-width: 140px; min-height: 40px; padding-block: 7px; }
.currency .btn { min-height: 40px; }
/* With swiftnx.js the prices follow the select; the button stays for no-JS visitors (see currency_select). */
.js-prices [data-sx-currency-go] { display: none; }
.faq { border-block-start: 2px solid var(--nxf-text); border-block-end: 3px double var(--nxf-text); }
.faq details + details { border-block-start: 1px solid var(--nxf-border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; list-style: none; font-size: 17px; line-height: 26px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; color: var(--nxf-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq details[open] summary::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq summary:hover { color: var(--nxf-primary-700); }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 4px; }
.faq .answer { padding: 0 4px 22px; max-width: 760px; color: var(--nxf-text); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--nxf-border); border-radius: var(--nxf-radius); background: #fff; }
.step-n { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 999px; background: var(--nxf-primary); color: #fff; font-weight: 700; font-size: 16px; }
.step h3 { margin-block-start: 16px; }
.step p { margin-block-start: 8px; color: var(--nxf-text-muted); font-size: 15px; line-height: 24px; }
.under-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block-start: 28px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-block-start: 64px; padding-block-start: 48px; border-block-start: 1px solid var(--nxf-border); }
.fact h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin-block-start: 14px; }
.fact p { margin-block-start: 6px; color: var(--nxf-text-muted); font-size: 15px; line-height: 24px; }
.fact .icon { color: var(--nxf-primary); width: 24px; height: 24px; }
@media (max-width: 959.98px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 22px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-block-start: 48px; padding-block-start: 40px; }
}
@media (max-width: 599.98px) { .facts { grid-template-columns: 1fr; } .under-steps .btn { width: 100%; } }
.teaser-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-block-end: 40px; }
.teaser-head p { margin-block-start: 12px; }
.center-link { margin-block-start: 32px; text-align: center; }
.faq-wrap { max-width: 860px; }
.cta-band { background: var(--sx-ink); color: #fff; padding-block: 80px; text-align: center; }
.cta-band .h2 { color: #fff; }
.cta-band p { margin-block-start: 14px; color: var(--sx-ink-text); font-size: 18px; line-height: 28px; }
.cta-band .cta-row { justify-content: center; }
@media (max-width: 959.98px) { .cta-band { padding-block: 56px; } }
.proof { padding-block: 40px; border-block-end: 1px solid var(--nxf-border); }
.proof p { text-align: center; font-size: 14px; font-weight: 600; color: var(--nxf-text-muted); }
.proof-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px; margin-block-start: 20px; }
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0; font-size: 26px; line-height: 38px; font-weight: 500; letter-spacing: -0.01em; }
.quote figcaption { margin-block-start: 20px; font-size: 15px; color: var(--nxf-text-muted); }
.quote figcaption b { color: var(--nxf-text); font-weight: 600; }
.empty-plans { max-width: 640px; margin-inline: auto; padding: 40px; text-align: center; border: 1px dashed var(--nxf-border-strong); border-radius: var(--nxf-radius-lg); background: var(--nxf-bg-subtle); }
.empty-plans p { font-size: 18px; line-height: 28px; }
.empty-plans .btn { margin-block-start: 20px; }
.proof-logos img { height: 32px; width: auto; filter: grayscale(1); opacity: .8; }
.quotes { display: grid; gap: 56px; }
.quote-logo { height: 32px; width: auto; margin: 0 auto 20px; }
.quote figcaption { display: flex; align-items: center; justify-content: center; gap: 12px; }
.quote-photo { border-radius: 50%; object-fit: cover; }
.faq-more { margin-block-start: 28px; }
@media (max-width: 959.98px) { .quote blockquote { font-size: 21px; line-height: 32px; } .teaser-head .currency { width: 100%; } }

/* Pricing page (S5, board B4) */
.plan-list { display: grid; font-size: 15px; line-height: 22px; border-block-start: 1px solid var(--nxf-text); font-variant-numeric: tabular-nums; }
.plan-list li { display: flex; gap: 10px; padding-block: 9px; border-block-end: 1px solid var(--nxf-divider); }
.plan .chip-row .chip { border-radius: var(--nxf-radius-sm); }
.plan-included { font-size: 14px; line-height: 20px; color: var(--nxf-text-muted); }
/* Without JS both prices show, the yearly one as a smaller line; the billing toggle (data-period) swaps them. */
.p-yearly .price b { font-size: 20px; line-height: 28px; letter-spacing: 0; }
[data-period="monthly"] .p-yearly { display: none; }
[data-period="yearly"] .has-yearly .p-monthly { display: none; }
[data-period="yearly"] .p-yearly .price b { font-size: 48px; line-height: 48px; letter-spacing: -0.035em; }
.rate-note { margin-block-start: 20px; font-size: 14px; line-height: 20px; color: var(--nxf-text-muted); text-align: center; }
.pricing-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-block-end: 32px; }
.pricing-tools .currency { margin-inline-start: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.compare caption { text-align: start; font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.028em; padding-block-end: 24px; }
.compare th, .compare td { padding: 14px 16px; border-block-end: 1px solid var(--nxf-border); text-align: start; }
.compare :is(th, td):first-child { padding-inline-start: 0; }
.compare thead :is(th, td) { border-block-end: 2px solid var(--nxf-text); }
.compare thead th { font-size: 15px; font-weight: 700; }
.compare tbody tr:last-child :is(th, td) { border-block-end: 3px double var(--nxf-text); }
.compare tbody th { font-weight: 500; color: var(--nxf-text); width: 28%; }
:is(.compare, .compare-stack) .yes { display: inline-flex; gap: 6px; align-items: center; color: var(--nxf-success-text); font-weight: 500; }
:is(.compare, .compare-stack) .no { color: var(--nxf-text-muted); }
.compare-stack { display: none; }
.compare-stack > .h3 { font-size: 22px; line-height: 30px; font-weight: 700; }
@media (max-width: 959.98px) {
  .compare { display: none; }
  .compare-stack { display: grid; gap: 16px; }
  .compare-stack dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin-block: 8px 0; font-size: 15px; }
  .compare-stack dt, .compare-stack dd { margin: 0; padding-block: 10px; border-block-end: 1px solid var(--nxf-divider); }
  .compare-stack dd { text-align: end; font-weight: 500; font-variant-numeric: tabular-nums; }
  .pricing-tools .currency { margin-inline-start: 0; }
}
.strip { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 20px 48px; margin-block-start: 72px; padding-block: 28px 0; border-block-start: 2px solid var(--nxf-text); }
.strip .btn { justify-self: start; }
.strip h2 { font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.028em; max-width: 18ch; }
.strip p { margin-block-start: 6px; }
@media (max-width: 959.98px) { .strip { grid-template-columns: minmax(0, 1fr); } .strip h2 { font-size: 24px; line-height: 30px; } }
@media (max-width: 599.98px) { .strip .btn { width: 100%; } }

/* FAQ page (S5, board B4) */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-toc { position: sticky; top: 112px; font-size: 15px; }
.faq-toc ol { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: grp; border-block-start: 2px solid var(--nxf-text); }
/* The number is on the item, not the link, so it stays out of the link's accessible name. list-style: none drops
   the list role in Safari, so faq.html sets role="list" on the <ol>. */
.faq-toc li { counter-increment: grp; display: grid; grid-template-columns: 32px minmax(0, 1fr); padding-block: 10px; border-block-end: 1px solid var(--nxf-border); }
.faq-toc li::before { content: counter(grp, decimal-leading-zero); color: var(--nxf-text-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.faq-toc a { color: var(--nxf-text); text-decoration: none; }
.faq-toc a:hover { color: var(--nxf-primary-700); text-decoration: underline; }
.faq-group { scroll-margin-top: 96px; }
.faq-group + .faq-group { margin-block-start: 56px; }
.faq-group h2 { font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.028em; margin-block-end: 20px; }
.faq details { scroll-margin-top: 96px; }
@media (max-width: 959.98px) { .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } .faq-toc { position: static; } .faq-group h2 { font-size: 24px; line-height: 30px; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Contact /contact (S7, board B5) */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.contact-grid .form-card { padding: 34px 36px 36px; border: 1px solid var(--nxf-border); border-block-start: 3px solid var(--nxf-text); border-radius: 0 0 var(--nxf-radius) var(--nxf-radius); background: #fff; }
.contact-grid .error-summary { margin-block-end: 24px; }
.contact-grid :is(input, select, textarea, .error-summary, .notice, h2) { scroll-margin-block: 96px 24px; } /* below the sticky header */
.contact-grid .error-summary:focus, .contact-grid .notice:focus, .success-panel h2:focus { outline: 2px solid var(--nxf-primary); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-block-start: 24px; }
.form-grid .field + .field { margin: 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-label { font-size: 15px; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-block-start: 10px; }
.topic-set .error-text, #f-modules .error-text { margin-block-start: 8px; }
fieldset.is-error .choice-card { border-color: var(--nxf-notice-danger-text); }
fieldset.is-error .choice input { outline: 1px solid var(--nxf-notice-danger-text); outline-offset: 1px; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.privacy-line { font-size: 14px; line-height: 20px; color: var(--nxf-text-muted); }
.side { display: grid; gap: 28px; }
.side h2 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.side .ticks { display: grid; margin-block-start: 14px; font-size: 15px; line-height: 22px; counter-reset: cover; border-block-start: 2px solid var(--nxf-text); border-block-end: 3px double var(--nxf-text); }
.side .ticks li { counter-increment: cover; display: grid; grid-template-columns: 32px minmax(0, 1fr); padding-block: 10px; }
.side .ticks li + li { border-block-start: 1px solid var(--nxf-border); }
.side .ticks li::before { content: counter(cover, decimal-leading-zero); color: var(--nxf-text-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.side-block { padding-block-start: 24px; border-block-start: 1px solid var(--nxf-border); }
.side-block p { margin-block-start: 6px; font-size: 15px; overflow-wrap: anywhere; }
.honeypot { position: absolute; inset-inline-start: -9999px; }
@media (max-width: 959.98px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid .form-card { padding: 20px 0; border: 0; }
}
@media (max-width: 599.98px) { .form-grid, .choice-grid { grid-template-columns: 1fr; } }
