/* FEA Studio website. One blue accent on white and navy; Space Grotesk headings, Inter text,
   JetBrains Mono for labels. Every text colour here passes 4.5:1 on its background. */
:root {
  color-scheme: light;
  --ink: #0B1424;
  --text: #1E293B;
  --muted: #4A5568;
  --faint: #5B6577;
  --line: #E3E8EF;
  --line-strong: #C9D3E0;
  --soft: #F5F7FA;
  --accent: #1557C9;
  --accent-dark: #0E3F96;
  --accent-soft: #E8F0FD;
  --dark: #0B1424;
  --dark-line: #22314A;
  --dark-chip: #15233A;
  --dark-text: #A9B6CA;
  --warn-bg: #FFF6E8;
  --warn-line: #F1D9AE;
  --warn-ink: #4A3200;
  --open: #9A4A00;
  --radius: 12px;
  --shadow: 0 16px 48px rgba(11, 20, 36, 0.12);
  --display: "Space Grotesk", "Malgun Gothic", system-ui, sans-serif;
  --body: Inter, "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FFFFFF; color: var(--text); font: 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 900px; }
.muted { color: var(--faint); }

/* ---------- header & footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 700 19px var(--display); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #334155; font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .btn { margin-left: 8px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .js .site-nav .btn { margin: 8px 0 0; }
}
.site-footer { background: var(--dark); color: var(--dark-text); padding: 64px 0 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-about { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer-about p { font-size: 15px; max-width: 320px; }
.footer-brand { font: 700 20px var(--display); color: #fff; }
.site-footer nav { flex: 0 1 160px; display: flex; flex-direction: column; gap: 2px; }
.site-footer h2 { font: 600 13px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; color: #C6D1E1; text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--dark-line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------- type & buttons */
.eyebrow { display: block; font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.display { font-weight: 700; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
.display-xl { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); }
.h2-sm { font-size: clamp(24px, 2.8vw, 32px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1px solid transparent; font: 600 16px var(--body); text-decoration: none; cursor: pointer; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

/* ---------- sections */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.band-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: #E7ECF4; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead { color: var(--dark-text); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head { padding: 80px 0 56px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .stack { gap: 20px; }
.hero { padding: 88px 0 0; background: var(--soft); border-bottom: 1px solid var(--line); text-align: center; }
.hero .stack { align-items: center; gap: 24px; }
.hero h1 { max-width: 940px; }
.hero .lead { max-width: 700px; font-size: 19px; }
.hero-shot { width: 100%; max-width: 1200px; margin-top: 40px; border-radius: 12px 12px 0 0; border: 1px solid #D5DDE8; border-bottom: 0; box-shadow: 0 -2px 60px rgba(11, 20, 36, 0.1); }

/* ---------- media rows */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split.reverse { flex-direction: row-reverse; }
.split-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.split-text p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.split-media { flex: 1 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.split-media img { border-radius: var(--radius); border: 1px solid #D5DDE8; box-shadow: var(--shadow); background: #fff; }
.split-media figcaption { font-size: 14px; color: var(--faint); }
.split-text ul, .split-text ol { margin: 0; padding-left: 22px; line-height: 1.75; }
.rows { display: flex; flex-direction: column; gap: 112px; }

/* ---------- grids & cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card.tint { background: #F5F8FE; }
.card .status { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.card-links { display: flex; gap: 20px; margin-top: auto; padding-top: 4px; }
.card-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tiles > div { background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tiles .num { font: 500 13px var(--mono); color: var(--accent); }
.tiles h3 { font-size: 20px; }
.tiles p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.stat { font: 700 44px var(--display); color: var(--ink); line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 13px var(--mono); padding: 6px 10px; border-radius: 6px; background: var(--dark-chip); color: #DCE5F2; }
.code-group { border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.code-group h3 { font: 600 15px var(--body); }
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.pill-nav a:hover { border-color: var(--accent); color: var(--accent); }
.cta { border-radius: 16px; background: var(--accent); color: #fff; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta.dark { background: var(--dark); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta p { color: #DCE7FB; font-size: 17px; max-width: 640px; margin-top: 10px; }
.cta.dark p { color: var(--dark-text); }

/* ---------- guide steps */
.step-index { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.step-index a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #D5DDE8; background: #fff; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.step-index a:hover { border-color: var(--accent); }
.step-index span, .step-num { font: 500 13px var(--mono); color: var(--accent); }
.step { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.step .split-text { flex-basis: 400px; gap: 18px; }
.step-title { display: flex; align-items: center; gap: 14px; }
.step-title .step-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; }
.step-title h2 { font-size: clamp(24px, 2.8vw, 32px); }

/* ---------- tables, callouts, FAQ */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; }
thead th { background: var(--soft); color: var(--ink); font-weight: 600; }
tbody tr + tr, thead + tbody tr { border-top: 1px solid #EEF1F5; }
tbody th { color: var(--ink); font-weight: 600; width: 34%; }
.wide-table { min-width: 640px; }
.diff { font: 14px var(--mono); white-space: nowrap; color: var(--ink); }
.diff.open { color: var(--open); }
kbd { font: 13px var(--mono); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--soft); color: var(--ink); overflow-wrap: anywhere; }
.callout { border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.callout.info { background: #EEF3FC; color: var(--text); }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); flex-direction: column; gap: 6px; }
.callout.warn h3 { font: 600 16px var(--body); color: #5C3B00; }
.callout svg { flex: none; margin-top: 2px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 20px; }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px var(--body); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: #fff; }
.plan.lead-plan { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(21, 87, 201, 0.14); }
.plan h2 { font-size: 24px; }
.plan .who { font-size: 15px; color: var(--muted); }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan .price strong { font: 700 40px var(--display); color: var(--ink); }
.plan .price span { font-size: 15px; color: var(--faint); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='%231557C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- download */
.download-card { background: #fff; border: 1px solid #D5DDE8; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px rgba(11, 20, 36, 0.08); }
.download-card .version { font: 700 26px var(--display); color: var(--ink); }
.download-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.download-card dt { color: var(--faint); }
.download-card dd { margin: 0; font: 13px var(--mono); color: var(--text); word-break: break-all; }
.note { gap: 12px; padding: 28px; }
.note-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.note h3 { font-size: 22px; }
.note ul { margin: 0; padding-left: 20px; line-height: 1.75; }

/* ---------- forms */
.form-card { background: #fff; border: 1px solid #D5DDE8; border-radius: 16px; padding: 32px; box-shadow: 0 20px 50px rgba(11, 20, 36, 0.08); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form-grid .full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { min-height: 44px; padding: 0 12px; border: 1px solid #B9C5D6; border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 110px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B42318; font-size: 15px; }
.form-error:empty { display: none; }
.thanks { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }

/* ---------- legal */
.legal { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.legal-toc { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc .toc-title { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.legal-toc a { display: inline-flex; align-items: center; min-height: 36px; color: #334155; font-size: 15px; text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-body { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 40px; }
.legal-body article { display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 { font-size: 24px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; }
.legal-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.summary-box { border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.summary-box > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.summary-box h2 { font: 600 16px var(--body); }
.summary-box ul { gap: 0; }
.summary-box li { font-size: 15px; line-height: 1.7; }

/* ---------- about */
.placeholder-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); background: #EEF2F7; border: 1px dashed #B9C5D6; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--faint); }

/* ---------- Products menu (header) */
.products-menu { position: static; }
.products-menu summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; color: #334155; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; border-radius: 8px; }
.products-menu summary::-webkit-details-marker { display: none; }
.products-menu summary:hover, .products-menu[open] summary { color: var(--accent); }
.products-menu summary[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.products-menu[open] summary svg { transform: rotate(180deg); }
.site-header { position: relative; z-index: 20; }
.mega { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% - 4px); width: min(1200px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 20, 36, 0.16); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.mega-col { padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid #EEF1F5; }
.mega-learn { background: var(--soft); border-right: 0; }
.mega-title { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 12px 8px; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.mega-item:hover, .mega-item[aria-current="page"] { background: var(--soft); color: var(--text); }
.mega-item strong { display: block; font: 600 16px var(--display); color: var(--ink); }
.mega-item > span > span { display: block; font-size: 14px; line-height: 1.45; color: var(--faint); margin-top: 2px; }
.mega-learn a:not(.text-link) { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.mega-learn a:not(.text-link):hover { background: #EAEFF5; color: var(--ink); }
.mega-learn .text-link { margin-top: auto; padding: 0 12px; }
@media (max-width: 900px) {
  .mega { position: static; transform: none; width: auto; grid-template-columns: minmax(0, 1fr); box-shadow: none; margin: 4px 0 8px; }
  .mega-col { border-right: 0; border-bottom: 1px solid #EEF1F5; }
  .js .site-nav .products-menu summary[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
}

/* ---------- product family */
.ico { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.product-card:hover { border-color: var(--accent); color: var(--text); box-shadow: 0 12px 32px rgba(11, 20, 36, 0.08); }
.product-card h3 { font-size: 22px; }
.product-card .sub { font-size: 14px; color: var(--faint); }
.product-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.product-card .go { margin-top: auto; font-weight: 600; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; }
.product-card .who { display: flex; align-items: center; gap: 14px; }
.product-card.featured { grid-column: span 2; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: hidden; }
.product-card.featured > div { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.product-card.featured img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; border-left: 1px solid var(--line); }
.product-card ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.75; }
.hero-shots { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; margin-top: 48px; text-align: left; }
.hero-shots > div { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.hero-shots img { border-radius: 12px; border: 1px solid #D5DDE8; box-shadow: var(--shadow); background: #fff; width: 100%; object-fit: cover; object-position: left top; }
.hero-shots > img { height: 100%; }
.hero-shots > div img { flex: 1 1 0; min-height: 0; height: 0; }
.chooser { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 28px; }
.chooser a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.chooser a:first-child { border-top: 0; }
.chooser a strong { color: var(--accent); white-space: nowrap; }
.chooser a:hover span { color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.pillars > div { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.pillars h3 { font-size: 20px; }
.pillars p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- product pages */
.crumbs { font-size: 14px; color: var(--faint); }
.crumbs a { text-decoration: none; }
.product-head { padding: 48px 0 72px; border-bottom: 1px solid var(--line); }
.product-head .split-text { gap: 18px; }
.product-head .split-text p { font-size: 19px; color: #334155; }
.subnav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; color: #334155; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.subnav a:hover { color: var(--accent); }
[id] { scroll-margin-top: 64px; }
.tut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tut { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); background: #fff; }
a.tut:hover { border-color: var(--accent); color: var(--text); }
.tut h3 { font-size: 19px; }
.tut p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tut .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: 0.02em; background: #F1F5F9; color: #334155; }
.tag.beg { background: #E6F4EA; color: #14532D; }
.tag.int { background: var(--accent-soft); color: var(--accent-dark); }
.tag.adv { background: #FDEEE3; color: #7A3608; }
.tut .go { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 15px; }
.doc-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.doc-groups div { display: flex; flex-direction: column; }
.doc-groups h3 { font: 600 15px var(--body); color: var(--ink); margin-bottom: 6px; }
.doc-groups a { display: flex; align-items: center; min-height: 40px; border-bottom: 1px solid #EEF1F5; color: var(--text); text-decoration: none; font-size: 15px; }
.doc-groups a:hover { color: var(--accent); }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat-cards > div { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stat-cards strong { font: 600 34px var(--display); color: var(--ink); }
.stat-cards span { font-size: 15px; }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px dashed #B9C5D6; background: #EEF2F7; color: var(--faint); font: 13px var(--mono); }
.req-table th { width: 30%; }
.family { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.family a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.family a:hover { border-color: var(--accent); }

/* ---------- tutorial & documentation articles */
.article { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.article-toc { flex: 1 1 220px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.article-toc .toc-title { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.article-toc a { display: inline-flex; align-items: center; min-height: 36px; color: #334155; font-size: 15px; text-decoration: none; }
.article-toc a:hover { color: var(--accent); }
.article-body { flex: 999 1 560px; min-width: 0; max-width: 800px; display: flex; flex-direction: column; gap: 44px; }
.article-body section { display: flex; flex-direction: column; gap: 14px; }
.article-body h2 { font-size: clamp(22px, 2.4vw, 28px); }
.article-body h3 { font-size: 19px; }
.article-body p, .article-body li { font-size: 16px; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article-body figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article-body figure img { border-radius: var(--radius); border: 1px solid #D5DDE8; }
.article-body figcaption { font-size: 14px; color: var(--faint); }
.tstep, .article-body .tstep { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.tstep > .n { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 500 14px var(--mono); }
.tstep h3 { align-self: center; }
.tstep > div { display: flex; flex-direction: column; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.facts > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.facts dt, .facts .k { font-size: 13px; color: var(--faint); }
.facts .v { font-weight: 600; color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.pager a { display: inline-flex; flex-direction: column; min-height: 44px; text-decoration: none; font-weight: 600; }
.pager a span { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

@media (max-width: 960px) {
  .product-grid, .tut-grid, .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card.featured { grid-column: span 2; }
  .doc-groups, .stat-cards, .family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-toc { position: static; }
}
@media (max-width: 640px) {
  .product-grid, .tut-grid, .pillars, .doc-groups, .stat-cards, .family { grid-template-columns: minmax(0, 1fr); }
  .product-card.featured { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .product-card.featured img { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .hero-shots { grid-template-columns: minmax(0, 1fr); }
  .chooser { padding: 4px 20px; }
  .chooser a { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .page-head { padding: 56px 0 40px; }
  .rows { gap: 72px; }
  .cta, .form-card, .download-card, .plan { padding: 24px; }
  .split, .step { gap: 32px; }
}

/* "A new version is available" (site.js): floating at the top centre, dark with white text. */
.update-banner {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px; border: 1px solid transparent; border-radius: 8px;
  background: #1f1f1f; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  animation: update-banner-in 160ms ease-out;
}
.update-banner__text { flex: 1 1 auto; }
.update-banner button { border: 1px solid transparent; border-radius: 4px; font: inherit; cursor: pointer; }
.update-banner__reload { padding: 4px 12px; background: #fff; color: #1f1f1f; font-weight: 600; }
.update-banner__reload:hover { background: #e6e6e6; }
.update-banner__reload:disabled { opacity: 0.6; cursor: progress; }
.update-banner__close { width: 28px; height: 28px; background: transparent; color: #fff; font-size: 18px; line-height: 1; }
.update-banner__close:hover { background: rgb(255 255 255 / 0.12); }
.update-banner button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes update-banner-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .update-banner { animation: none; } }
@media (forced-colors: active) {
  .update-banner { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .update-banner__reload { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .update-banner__close { color: CanvasText; }
}

/* ---------- FEA Studio user manual (content/studio/manual, from docs/manual/src/build-manuals.mjs) */
.manual-downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.manual-toc { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; }
.manual-toc a { min-height: 32px; font-weight: 500; }
.manual-toc a.sub { min-height: 28px; padding-left: 14px; font-size: 14px; font-weight: 400; color: #475569; }
.manual-body h3 { scroll-margin-top: 16px; }
.manual-body section { scroll-margin-top: 16px; }
.manual-body h4 { font-size: 17px; }
.manual-body figure img { width: auto; max-width: 100%; height: auto; }
.manual-body code { font: 14px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--soft); color: var(--ink); overflow-wrap: anywhere; }
.manual-body li > ul { margin-top: 6px; }
.manual-body td, .manual-body th { vertical-align: top; }
.manual-pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 500; }
@media (max-width: 960px) {
  .manual-toc { max-height: none; overflow: visible; }
  .manual-toc a.sub { display: none; }
}
