/* OSFM landing — no external requests, system fonts, light theme */
:root {
  --primary: #0C4F86;
  --primary-dark: #093D6B;
  --primary-light: #E4EDF4;
  --text: #212121;
  --text-soft: #616161;
  --border: #E0E0E0;
  --bg: #ffffff;
  --bg-alt: #F5F5F5;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(12, 79, 134, .08), 0 4px 14px rgba(12, 79, 134, .06);
  --shadow-hover: 0 4px 10px rgba(12, 79, 134, .10), 0 10px 28px rgba(12, 79, 134, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; text-align: center; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; font-size: .8em; word-break: break-all; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
  text-align: center;
  white-space: nowrap;
}
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-disabled { background: var(--bg-alt); color: var(--text-soft); border-color: var(--border); cursor: not-allowed; pointer-events: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: .02em; }
.brand-logo { flex-shrink: 0; }
.site-nav { display: flex; gap: 1.1rem; margin-left: .5rem; }
.site-nav a { color: var(--text-soft); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: .35rem .7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

/* Account and features */
.opening-layout { max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 24px; }
.opening-panel { min-width: 0; padding: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.opening-panel h1, .opening-panel h2 { font-size: 1.4rem; text-align: left; margin-bottom: 8px; }
.account-panel p { color: var(--text-soft); margin-bottom: 16px; }
.account-actions { display: flex; flex-direction: column; gap: 12px; }
.features-panel .section-sub { text-align: left; max-width: none; margin: 0 0 16px; }
.grid.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-grid .card { padding: 16px; box-shadow: none; }
.feature-grid .feature-icon { font-size: 1.3rem; margin-bottom: 8px; }
.feature-grid h3 { font-size: 1rem; }
.feature-grid p { font-size: .9rem; }
.opening-layout .btn { border-radius: 4px; }
.btn:focus-visible, .site-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
#features, #download-grid { scroll-margin-top: 100px; }
.download-shortcut { text-align: center; }
#download .release-assurance { margin-bottom: 24px; }
@media (min-width: 900px) and (max-width: 1099px) {
  .grid.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .opening-layout { grid-template-columns: minmax(0, 1fr); }
  .account-actions { flex-direction: row; flex-wrap: wrap; }
  .grid.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.release-assurance {
  display: flex;
  justify-content: center;
  gap: .55rem 1.25rem;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: .75rem 1rem;
  list-style: none;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
}
.release-assurance li { display: flex; align-items: center; gap: .45rem; }
.release-assurance li::before {
  content: "";
  width: .45rem;
  height: .45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { text-align: center; color: var(--text-soft); max-width: 560px; margin: 0 auto 2.5rem; }

/* Grids & cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { color: var(--text-soft); font-size: .93rem; margin: 0; }
.feature-icon { font-size: 1.6rem; margin-bottom: .6rem; }

/* Pricing */
.pricing-grid { max-width: 720px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan-highlight { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .15rem .7rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.plan-name { font-size: 1.1rem; margin-bottom: .2rem; }
.plan-price { margin-bottom: 1rem; }
.plan-amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.plan-period { color: var(--text-soft); font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex-grow: 1; }
.plan-features li { padding: .4rem 0; border-bottom: 1px solid var(--bg-alt); font-size: .95rem; }
.plan-features li:last-child { border-bottom: none; }
.pricing-note { text-align: center; color: var(--text-soft); font-size: .88rem; margin: 1.5rem auto 0; max-width: 560px; }

/* Download */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.dl h3 { font-size: 1rem; margin-bottom: .8rem; }
.dl-flavor { color: var(--text-soft); font-weight: 500; font-size: .85rem; }
.dl-meta { font-size: .8rem; color: var(--text-soft); min-height: 1.2em; margin-top: .5rem; }
.dl-sha { margin-top: .5rem; font-size: .8rem; color: var(--text-soft); }
.dl-sha summary { cursor: pointer; }
.dl-sha code { display: block; margin-top: .3rem; }
.dl-primary { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.version-tag { color: var(--primary); font-weight: 600; }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .9rem 1.2rem; margin-bottom: .7rem;
}
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item summary::marker { color: var(--primary); }
.faq-item p { margin: .6rem 0 0; color: var(--text-soft); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 1.2rem; }
.footer-nav a { color: var(--text-soft); font-size: .9rem; }
.footer-nav a:hover { color: var(--primary); }
.copyright { margin: 0 0 0 auto; color: var(--text-soft); font-size: .85rem; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 3rem 20px 5rem; }
.legal h1 { font-size: 1.8rem; }
.legal .notice {
  background: var(--primary-light); border: 1px solid var(--primary);
  border-radius: var(--radius); padding: .8rem 1.1rem; color: var(--primary-dark); font-size: .92rem;
}
.not-found { text-align: center; padding-top: 6rem; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: 60px; padding: .45rem 0; gap: .5rem; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; order: 4; width: 100%; flex-direction: column; gap: .15rem; margin: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .65rem .2rem; }
  .header-actions { width: 100%; justify-content: flex-end; }
  .btn-ghost { display: inline-block; }
  .grid-3, .grid-2, .download-grid { grid-template-columns: 1fr; }
  .opening-panel { padding: 16px; }
  .grid.feature-grid { grid-template-columns: minmax(0, 1fr); }
  .opening-layout { padding-top: 16px; }
  .release-assurance { align-items: flex-start; flex-direction: column; width: min(100%, 22rem); }
  .section { padding: 3rem 0; }
  .copyright { margin-left: 0; }
}
