/* FlareGrid site — Blueprint identity. Layout: single centred column, plan-drawing details, one amber point per view. */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1F3A4D;
  --muted: #4F6372;
  --line: #D5DCE1;
  --steel: #8A99A6;
  --amber: #F2A900;
  --band: #1F3A4D;
  --on-band: #F7F5F0;
  --on-band-muted: #C9D3DA;
  --btn-bg: #1F3A4D;
  --btn-fg: #FFFFFF;
  --focus: #F2A900;
  --font-sans: "IBM Plex Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --max: 1180px;
  --radius: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A22; --surface: #16242E; --ink: #E8ECEF; --muted: #A9B6C0; --line: #2A3B47; --steel: #6F8190;
    --band: #0A141B; --on-band: #E8ECEF; --on-band-muted: #A9B6C0; --btn-bg: #F2A900; --btn-fg: #1F3A4D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A22; --surface: #16242E; --ink: #E8ECEF; --muted: #A9B6C0; --line: #2A3B47; --steel: #6F8190;
  --band: #0A141B; --on-band: #E8ECEF; --on-band-muted: #A9B6C0; --btn-bg: #F2A900; --btn-fg: #1F3A4D; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 64px; }
.surface { background: var(--surface); border-block: 1px solid var(--line); }
.band { background: var(--band); color: var(--on-band); }
.band a { color: var(--on-band); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.band .eyebrow { color: var(--on-band-muted); }
.lead { font-size: 19px; color: var(--ink); max-width: 62ch; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mono { font-family: var(--font-mono); }
.small { font-size: 14px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; font-size: 16px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-amber { background: var(--amber); color: #1F3A4D; }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.band .btn-outline { color: var(--on-band); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.nav .btn { color: var(--btn-fg); }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 44px; align-items: center; padding-block: 56px 48px; }
.hero > * { min-width: 0; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo .tag { position: absolute; left: 10px; bottom: 10px; background: rgba(15, 26, 34, 0.78); color: #F7F5F0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 3px; }
.trust-line { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* grids and cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid > *, .grid-2 > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.bg-surface .card { background: var(--bg); }
.card.featured { border: 2px solid var(--ink); }
a.card { text-decoration: none; color: var(--ink); }
.price { font-size: 22px; font-weight: 700; margin-top: auto; padding-top: 8px; }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { border-top: 2px solid var(--steel); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps .mono { font-size: 13px; }
.placeholder { border: 1.5px dashed var(--steel); border-radius: 6px; padding: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); min-height: 140px; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--band); color: var(--on-band); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* faq */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details.faq p { margin-top: 10px; }

/* forms */
.form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea { min-height: 48px; padding: 0 12px; border: 1px solid var(--steel); border-radius: var(--radius); font-size: 16px; font-family: inherit; background: var(--surface); color: var(--ink); width: 100%; }
textarea { padding: 10px 12px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--steel); border-radius: var(--radius); cursor: pointer; font-size: 15px; background: var(--surface); }
.chips input { width: 18px; height: 18px; accent-color: #1F3A4D; }
.chips label:has(input:checked) { border-color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; }
.form-done { padding: 22px; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); }

/* checker */
.result { margin-top: 16px; padding: 16px; background: var(--bg); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* news */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--steel); background: var(--surface); color: var(--ink); font-family: inherit; font-size: 14px; cursor: pointer; }
.filter-row button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); font-weight: 600; }
.news-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* roles */
details.role { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
details.role summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
details.role summary::-webkit-details-marker { display: none; }
details.role .body { padding: 0 24px 24px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--line); padding-top: 18px; }

/* cta band */
.cta { background: var(--band); color: var(--on-band); border-radius: 6px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta > div { flex: 1 1 380px; min-width: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .wrap { padding-block: 40px 96px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); font-size: 14px; line-height: 1.8; }
.site-footer .wrap > * { min-width: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-title { font-weight: 700; font-size: 15px; }

/* mobile contact bar */
.contact-bar { display: none; }
@media (max-width: 720px) {
  .contact-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .contact-bar a { min-height: 52px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
  .contact-bar a + a { border-left: 1px solid var(--line); }
  .contact-bar a:last-child { background: var(--btn-bg); color: var(--btn-fg); }
  .section { padding-block: 48px; }
  .cta { padding: 28px 22px; }
}
.notice { background: var(--amber); color: #1F3A4D; font-size: 13px; text-align: center; padding: 6px 12px; font-weight: 500; }
