/* FloorSync: the product pages' shared look (the landing page's colours, fonts and square edges). */
/* The fonts load from each page's <head> (a non-blocking link), never an @import here: an @import holds the page blank
   until Google's stylesheet and fonts arrive. */

:root {
  --accent: #1F5C7A;
  --accent-dark: #164359;
  --accent-light: #EBF3F7;
  --accent-border: #8CB3C7;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #D1D5DB;
  --text: #111827;
  --text-muted: #4B5563;
  --ok: #065F46;
  --ok-bg: #D1FAE5;
  --bad: #991B1B;
  --bad-bg: #FEE2E2;
  --warn: #92400E;
  --warn-bg: #FEF3C7;
  --code-bg: #0F172A;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--sans); letter-spacing: -0.02em; font-weight: 700; color: var(--text); }
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 21px; line-height: 1.3; }
h3 { font-size: 16px; }
p, li { color: var(--text-muted); text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.hint code { font-size: 12px; }
a { color: var(--accent); }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 0.88em; background: #EEF2F6; padding: 1px 5px; }

.topnav {
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}
.topnav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.topnav .brand img { width: 28px; height: 28px; display: block; }
.topnav .brand { min-height: 44px; }
.topnav .links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.topnav .links a { font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--text-muted); padding: 12px 8px; white-space: nowrap; }
@media (max-width: 420px) { .topnav .links a { font-size: 12px; padding: 12px 6px; } }
.topnav .links a:hover, .topnav .links a[aria-current] { color: var(--accent); }
/* the header's sign-up button: the long words on a computer, the short ones on a phone */
.topnav .links a.key { background: var(--accent); color: #fff; border: 1px solid var(--accent); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; margin-left: 6px; }
.topnav .links a.key:hover { background: var(--accent-dark); color: #fff; }
.topnav .key .short { display: none; }
@media (max-width: 520px) {
  .topnav .key .long { display: none; }
  .topnav .key .short { display: inline; }
  .topnav .links a.key { padding: 0 10px; }
  .topnav .links a.opt { display: none; }
}

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 20px 56px; }
main.narrow { max-width: 460px; padding-top: 48px; }

.card { background: var(--surface); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.card.accent { border-color: var(--accent); background: var(--accent-light); }
.card h2 { margin-bottom: 6px; }
.card > p { margin-bottom: 14px; }
.label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; display: block; margin-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  height: 46px; padding: 0 20px; cursor: pointer; text-decoration: none; white-space: nowrap; border-radius: 0;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn.ghost { background: var(--surface); color: var(--accent); }
.btn.ghost:hover { background: var(--accent-light); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #FCA5A5; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.full { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

form .field { margin-bottom: 16px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.hint.bad, .field-err { color: var(--bad); }
.field-err { font-size: 13px; margin-top: 4px; }
input[aria-invalid="true"] { border-color: var(--bad); }
ul.gets { list-style: none; margin: 12px 0 24px; border-top: 1px solid var(--border); }
ul.gets li { font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--border); }
ul.gets b { color: var(--text); }
p.for { font-size: 16px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.card.accent p { max-width: 65ch; }
.card.before { margin-top: 28px; }
.card.before ul.gets { margin: 4px 0 14px; }
.card.before ul.gets li { font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; height: 46px; border: 1px solid var(--border); background: var(--surface); padding: 0 12px;
  font-family: var(--mono); font-size: 14px; color: var(--text); border-radius: 0;
}
textarea { height: auto; min-height: 180px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; }
fieldset.share { border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 14px 16px 6px; margin: 0 0 18px; min-width: 0; }
fieldset.share legend { font-weight: 700; padding: 0 6px; }
fieldset.share .check { align-items: flex-start; font-weight: 600; cursor: pointer; margin-bottom: 4px; }
fieldset.share .check input { flex: none; margin-top: 2px; accent-color: var(--accent); }
ul.bench { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
ul.bench li { border-left: 3px solid var(--border); padding: 6px 12px; font-size: 14px; }
ul.bench li.top { border-left-color: var(--ok); }
ul.bench li span { color: var(--text-muted); }
fieldset.share .hint { max-width: 68ch; }
#benchBody p + p { margin-top: 10px; }
#refStats { grid-template-columns: repeat(3, 1fr); }

.msg { padding: 12px 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.msg.ok { background: var(--ok-bg); color: var(--ok); border-color: #6EE7B7; }
.msg.bad { background: var(--bad-bg); color: var(--bad); border-color: #FCA5A5; }
.msg.info { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent-border); }
.msg.warn { background: var(--warn-bg); color: var(--warn); border-color: #FCD34D; }
[hidden] { display: none !important; }

.pill { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.04em; background: #E5E7EB; color: #374151; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: var(--accent-light); color: var(--accent-dark); }

pre.code {
  background: var(--code-bg); color: #E2E8F0; padding: 14px 16px; font-size: 12.5px; line-height: 1.55;
  overflow: auto; max-height: 420px; white-space: pre; border: 1px solid #111827;
}
.keybox { font-family: var(--mono); font-size: 14px; background: var(--code-bg); color: #A7F3D0; padding: 12px 14px; word-break: break-all; border: 1px solid #111827; }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid2 > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 12px 0; }
.stat { background: var(--surface); padding: 12px 14px; }
.stat b { display: block; font-size: 22px; font-family: var(--sans); color: var(--text); }
.stat span { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }

table.log { width: 100%; border-collapse: collapse; font-size: 13px; }
table.log th, table.log td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.log th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
table.log td { color: var(--text); }
table.log td.mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.scroll { overflow-x: auto; }

.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--mono); font-weight: 700; color: var(--accent); }
.steps li.done::before { content: '[✓]'; }

.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }
.foot a { color: var(--text-muted); padding: 8px 2px; }
.syng-legal-links { font-size: 13px; }

.center { text-align: center; }
.muted { color: var(--text-muted); font-size: 14px; }
.spacer { height: 12px; }

@media (min-width: 820px) {
  .topnav { padding: 0 40px; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
