/* www.facilitysystem.com — one stylesheet, system fonts, no JavaScript needed. */
:root {
  --brand: #1f6feb; --brand-d: #1753b5; --brand-l: #e8f0fe; --accent: #e5484d;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --bg-2: #f6f8fb;
  --hero: #0b1a33; --hero-2: #10284f; --ok: #15803d; --warn: #b45309;
  --radius: 12px; --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "PingFang TC", "Hiragino Sans", "Microsoft YaHei", "Microsoft JhengHei", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .3em 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav summary { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: .94rem; white-space: nowrap; cursor: pointer; }
.nav > a:hover, .nav summary:hover { background: var(--bg-2); text-decoration: none; }
.nav > a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-p { background: var(--brand); color: #fff; }
.btn-p:hover { background: var(--brand-d); }
.btn-o { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-o:hover { border-color: var(--brand); color: var(--brand); }
.btn-l { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-l:hover { background: rgba(255,255,255,.1); }
.nav .btn { margin-left: 6px; padding: 8px 14px; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .panel { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.12); padding: 6px; min-width: 180px; }
details.menu .panel a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
details.menu .panel a:hover { background: var(--bg-2); text-decoration: none; }
details.menu .panel a[aria-current="true"] { color: var(--brand); font-weight: 600; }
.mobile { display: none; margin-left: auto; }
.mobile > summary { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.mobile .panel { width: min(88vw, 320px); }
@media (max-width: 1100px) {
  .nav .hide-md { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .mobile { display: block; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1f6feb55, transparent 60%), linear-gradient(160deg, var(--hero), var(--hero-2)); color: #e6edf7; padding: 72px 0 64px; }
.hero h1 { color: #fff; max-width: 860px; }
.hero .lead { font-size: 1.15rem; color: #c3d0e4; max-width: 820px; }
.eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #8fb4ff; font-weight: 600; margin-bottom: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero { background: linear-gradient(160deg, var(--hero), var(--hero-2)); color: #c3d0e4; padding: 44px 0 40px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { font-size: 1.08rem; max-width: 860px; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #8fa3c2; }
.crumbs a { color: #a9c3ee; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #6b819f; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 40px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.9rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .88rem; color: #a9bad3; }

/* sections */
section.band { padding: 56px 0; }
section.band.alt { background: var(--bg-2); }
.band > .wrap > h2:first-child { margin-top: 0; }
.lead2 { color: var(--ink-2); max-width: 860px; font-size: 1.05rem; }
main { display: block; }
.content { padding: 40px 20px 56px; }
.content h2:first-child { margin-top: 0; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 20px 0; }
.grid.g2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(31,111,235,.12); text-decoration: none; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--brand-l); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--brand); font-size: .92rem; }
.num { counter-increment: step; }
.steps { counter-reset: step; }
.steps .card h3::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0; counter-reset: f; }
.flow li { counter-increment: f; background: var(--brand-l); color: var(--brand-d); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; margin: 0; }
.flow li::before { content: counter(f) ". "; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips li, .chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; color: var(--ink-2); display: inline-block; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 1px 8px; vertical-align: middle; white-space: nowrap; }
.b-core { background: #dcfce7; color: var(--ok); }
.b-common { background: var(--brand-l); color: var(--brand-d); }
.b-optional { background: #f1f5f9; color: var(--muted); }
.b-safe { background: #fee2e2; color: #b91c1c; }
.b-pend { background: #fef3c7; color: var(--warn); }
.note { border-left: 4px solid var(--brand); background: var(--brand-l); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink-2); margin: 18px 0; }
.note.safe { border-color: var(--accent); background: #fff1f1; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.toc { font-size: .92rem; background: var(--bg-2); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; }
.toc ul { columns: 2; margin: 6px 0 0; }
@media (max-width: 640px) { .toc ul { columns: 1; } }

/* tables */
.tbl { width: 100%; overflow-x: auto; margin: 14px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* brands */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 24px; padding: 0; list-style: none; }
.letters li { margin: 0; }
.letters a { display: inline-block; min-width: 34px; text-align: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.brandlist { columns: 4 220px; column-gap: 24px; padding: 0; list-style: none; }
.brandlist li { break-inside: avoid; margin: 0 0 4px; }
.brandlist .c { color: var(--muted); font-size: .82rem; }
.typelist { list-style: none; padding: 0; }
.typelist > li { border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0; }
.typelist h3 { margin-bottom: .25em; }
.typelist p { margin: 0 0 .5em; color: var(--ink-2); }
.typelist .brands { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin: 10px 0; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* CTA + footer */
.cta { background: linear-gradient(135deg, var(--brand), #3b5bdb); color: #e8efff; padding: 48px 0; }
.cta h2 { color: #fff; margin-top: 0; }
.cta .btn-p { background: #fff; color: var(--brand-d); }
footer { background: #0b1220; color: #9aa8bd; padding: 48px 0 28px; font-size: .92rem; }
footer a { color: #c9d4e5; }
footer h2 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.fbottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
address { font-style: normal; }
.langs-inline a { margin-right: 12px; }

/* ---- touch, phones and tablets ---- */
html { -webkit-tap-highlight-color: rgba(31,111,235,.15); }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.btn, .nav > a, .nav summary, details.menu .panel a, details.menu > summary, .letters a, .sv-nav button { min-height: 44px; }
.btn { justify-content: center; }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.chips li a { display: inline-block; padding: 6px 2px; }
footer li a, .brandlist li a { display: inline-block; padding: 3px 0; }
.top-tools { display: none; align-items: center; gap: 8px; margin-left: auto; }
.top-tools .menu > summary { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; }
details.menu .panel { max-height: calc(100vh - 90px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mnav details > summary { padding: 10px 12px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.mnav details > summary::after { content: "+"; color: var(--muted); }
.mnav details[open] > summary::after { content: "−"; }
.mnav details > summary::-webkit-details-marker { display: none; }
.mnav details a { padding-left: 24px !important; }
@media (max-width: 1600px) { .nav .hide-lg { display: none; } }
@media (max-width: 1440px) { .nav .hide-md { display: none; } }
@media (max-width: 1280px) {
  .nav { display: none; }
  .top-tools { display: flex; }
  .mobile { display: block; margin-left: 0; }
  .top-tools .panel { right: 0; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .page-hero { padding: 32px 0 28px; }
  section.band { padding: 40px 0; }
  .grid, .grid.g2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-row .btn { flex: 1 1 100%; }
  th, td { padding: 8px 10px; }
  .fgrid { grid-template-columns: 1fr; }
  .logo span { font-size: 1.05rem; }
}
@media (hover: none) { a.card:hover { box-shadow: none; } }

/* ---- brand-neutral, advantages, comparison ---- */
.neutral { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .neutral { grid-template-columns: 1fr; } }
.mix { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.mix .devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mix .dev { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; background: var(--bg-2); }
.mix .dev b { display: block; color: var(--ink); }
.mix .dev span { color: var(--muted); font-size: .82rem; }
.mix .arrow { text-align: center; color: var(--brand); font-size: 1.4rem; line-height: 1; margin: 8px 0; }
.mix .gw, .mix .plat { border-radius: 10px; padding: 10px 14px; text-align: center; font-weight: 600; }
.mix .gw { background: var(--brand-l); color: var(--brand-d); }
.mix .plat { background: var(--hero); color: #fff; }
.adv h3 { display: flex; gap: 10px; align-items: baseline; }
.compare td:nth-child(3) { background: #f2f8ff; }
.compare td:first-child { font-weight: 600; white-space: nowrap; }
.deliver { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0; counter-reset: d; }
.deliver li { counter-increment: d; margin: 0; }
.deliver a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink-2); background: #fff; }
.deliver a::before { content: counter(d) ". "; color: var(--brand); font-weight: 700; }
.fbrands { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 24px; }
.fbrands h2 { margin-bottom: 14px; }
.fbgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; }
@media (max-width: 900px) { .fbgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fbgrid { grid-template-columns: 1fr; } }
.fbgrid h3 { color: #cbd5e1; font-size: .85rem; margin: 0 0 6px; }
.fbgrid p { margin: 0; line-height: 1.8; }
.fbgrid a { color: #9aa8bd; }
.tm { font-size: .8rem; color: #7c8aa0; margin-top: 14px; }

/* ---- survey ---- */
.survey { max-width: 980px; }
.sv-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.sv-fill { height: 100%; width: 0; background: var(--brand); transition: width .25s; }
.sv-progress { margin: 8px 0 12px; }
.sv-nav { display: none; list-style: none; padding: 0; margin: 0 0 20px; gap: 6px; flex-wrap: wrap; }
.sv-ready .sv-nav { display: flex; }
.sv-nav li { margin: 0; }
.sv-nav button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; color: var(--muted); cursor: pointer; }
.sv-nav button.done { color: var(--brand-d); border-color: #bcd3fb; }
.sv-nav button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 760px) { .sv-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } .sv-nav button { white-space: nowrap; } }
.sv-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 18px; background: #fff; }
.sv-ready .sv-step { display: none; }
.sv-ready .sv-step.on { display: block; }
.sv-step h2 { margin-top: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.sv-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .95rem; align-items: center; justify-content: center; flex: none; }
.grid-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
@media (max-width: 680px) { .grid-f { grid-template-columns: 1fr; } }
.grid-f > .wide, .grid-f > fieldset, .grid-f > p, .grid-f > .choice, .grid-f > .hp, .grid-f > datalist { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; padding: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; width: 100%; font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.invalid { border-color: #dc2626 !important; background: #fff5f5 !important; outline-color: #dc2626 !important; }
.req { color: #dc2626; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
/* .field .choice: a choice inside a field outranks ".field label" (column, no padding). */
.choice, .field .choice { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-height: 44px; cursor: pointer; font-weight: 400; color: var(--ink); background: #fff; }
.choice input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; accent-color: var(--brand); }
.choice.wide, .field .choice.wide { display: flex; margin: 8px 0; align-items: flex-start; }
.choice.wide input { margin-top: 3px; }
.row-card { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 14px; margin: 0 0 12px; background: var(--bg-2); }
.row-card h4 { margin: 0 0 10px; }
.row-card .btn { margin-top: 10px; }
.filelist { list-style: none; padding: 0; }
.linkbtn { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 8px 4px; min-height: 40px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sv-msg { color: #b91c1c; font-weight: 600; min-height: 1.4em; }
.sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: sticky; bottom: 0; background: rgba(255,255,255,.96); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sv-actions .sv-saved { flex: 1; }
.sv-actions [hidden] { display: none; }
.field > label[for] { display: block; }
.field > label[for] + input, .field > label[for] + select { margin-top: 0; }
