/* T.O. Pro — coming soon. Slate, steel blue, a settings-table form. Written by hand. */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #12161c;
  --muted: #6b7480;
  --line: #e3e6ea;
  --steel: #3a6ea5;
  --steel-deep: #2b5581;
  --steel-soft: #e9f0f7;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--steel-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 5px; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* bar */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 790; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand b {
  font-size: 1rem; font-weight: 800;
}
.brand s {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--steel);
  color: var(--steel);
  font-size: .62rem; font-weight: 800; letter-spacing: .14em;
  text-decoration: none;
}
.bar nav { display: flex; gap: 22px; }
.bar nav a { color: var(--muted); font-size: .85rem; }
.bar nav a:hover, .bar nav a.active { color: var(--steel-deep); }

/* head */
.head { padding: clamp(34px, 6vw, 64px) 0 clamp(22px, 3.4vw, 34px); }
.kicker {
  margin: 0 0 14px;
  color: var(--steel);
  font-size: .7rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  max-width: 26ch;
  font-size: clamp(1.9rem, 4.8vw, 2.9rem);
  line-height: 1.1; letter-spacing: -.035em; font-weight: 780;
}
h1 span { box-shadow: inset 0 -.18em 0 var(--steel-soft); }
.lede { margin: 0; max-width: 62ch; color: #3d454f; }

/* settings table */
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}
.sheet > header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.sheet > header h2 {
  margin: 0; font-size: .92rem; font-weight: 760; letter-spacing: -.01em;
}
.sheet > header span { color: var(--muted); font-size: .8rem; }

.row {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
}
.row:last-of-type { border-bottom: 0; }
.row > label, .row > .key {
  padding: 15px 22px;
  color: var(--muted);
  font-size: .82rem;
  border-right: 1px solid var(--line);
  background: #fcfcfd;
}
.row > .val { padding: 13px 22px; }
.row input, .row textarea {
  width: 100%;
  padding: 6px 0;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  transition: border-color .18s;
}
.row textarea { resize: vertical; min-height: 88px; }
.row input:focus, .row textarea:focus { outline: none; border-bottom-color: var(--steel); }
.row .invalid { border-bottom-color: #b23a2f; background: #fdf4f2; }

.actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 26px;
  font: inherit; font-size: .88rem; font-weight: 750;
  color: #fff; background: var(--steel);
  border: 0; border-radius: 6px;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--steel-deep); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.2em; font-size: .86rem; }
.status.ok { color: #1f7a4d; font-weight: 600; }
.status.err { color: #b23a2f; font-weight: 600; }

.facts .row > .val { font-weight: 640; padding-top: 15px; padding-bottom: 15px; }

/* footer */
.base {
  padding: 22px 0 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .82rem;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--steel-deep); }
.base p { margin: 0; }

/* legal */
.doc { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 40px; }
.doc .sheet > div.inner { padding: clamp(22px, 4vw, 40px); }
.doc h1 { margin: 16px 0 10px; font-size: clamp(1.8rem, 4.4vw, 2.4rem); }
.stamp { margin: 0 0 26px; color: var(--muted); font-size: .78rem; }
.doc h2 {
  margin: 28px 0 8px;
  font-size: 1rem; font-weight: 770; letter-spacing: -.01em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #3d454f; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.ghost { background: var(--steel-soft); color: var(--steel-deep); }
.ghost:hover { background: #dbe7f2; }

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .row > label, .row > .key { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .base { flex-direction: column; }
}
