/* symantix.ai — placeholder site.
   Palette and type match the solving UI (demos/ui/style.css) so the page and
   the boards read as one object. Light only: the boards draw their own colors
   as SVG attributes, so a dark theme would break them. */

:root {
  color-scheme: light;
  --ink:    #16181d;
  --mid:    #4b5563;
  --dim:    #6b7280;
  --faint:  #9ca3af;
  --line:   #e5e7eb;
  --wash:   #f9fafb;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 13vh 20px 90px;
  text-align: center;
}

.wordmark {
  font-size: 14px; font-weight: 650; letter-spacing: 0.02em;
  color: var(--dim);
  margin: 0 0 42px;
}

h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 14px;
}

.lede {
  font-size: 17px;
  color: var(--mid);
  margin: 0 auto;
  max-width: 25em;
}

/* ---------------- signup ---------------- */

.signup { margin-top: 30px; }
.signup form {
  display: flex; gap: 8px;
  max-width: 380px; margin: 0 auto;
}
.signup input[type=email] {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 15px;
  padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
}
.signup input[type=email]::placeholder { color: var(--faint); }
.signup input[type=email]:focus { outline: none; border-color: var(--ink); }
.signup button {
  flex: 0 0 auto;
  font: inherit; font-size: 15px; font-weight: 550;
  padding: 10px 18px;
  border: 1px solid var(--ink); border-radius: 8px;
  background: var(--ink); color: #fff;
  cursor: pointer;
}
.signup button:hover { background: #000; }
.signup button:disabled { opacity: 0.4; cursor: default; }
.signup .msg { font-size: 14px; margin: 12px 0 0; min-height: 1.4em; color: var(--dim); }
.signup .msg.ok { color: #047857; }
.signup .msg.err { color: #b91c1c; }
.hp { position: absolute; left: -9999px; }

/* ---------------- the board ---------------- */

.playSection { margin-top: 76px; }
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--faint);
  margin: 0 0 16px;
}

.tabs { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  font: inherit; font-size: 14px;
  padding: 6px 13px;
  border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--dim);
  cursor: pointer;
}
.tabs button:hover { color: var(--ink); border-color: var(--faint); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.play {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--wash);
  padding: 16px;
  text-align: left;
}
.play .head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 7px; }
.play .head .name { font-weight: 650; font-size: 15px; }
.play .head .label {
  font-size: 12.5px; color: var(--faint);
  text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0;
}
.play .head #timer { margin-left: auto; font-size: 13.5px; color: var(--dim); font-variant-numeric: tabular-nums; }

#rules { color: var(--mid); font-size: 13.5px; margin: 0 0 14px; }
#board { display: flex; justify-content: center; }
#board svg { display: block; width: min(72vw, 360px); height: auto; }
#board svg text { user-select: none; }

#controls { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
#controls button {
  font: inherit; font-size: 13.5px;
  padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink); cursor: pointer;
}
#controls button:hover { border-color: var(--faint); }
#controls button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

#banner {
  margin: 14px auto 0; width: fit-content;
  padding: 6px 15px; border-radius: 8px;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
  font-weight: 600; font-size: 14.5px;
}
#hints { color: var(--faint); font-size: 12px; margin: 14px 0 0; text-align: center; }

@media (max-width: 560px) {
  .wrap { padding: 8vh 18px 70px; }
  .wordmark { margin-bottom: 32px; }
  .playSection { margin-top: 58px; }
  .play { padding: 14px 11px; }
}
