/* T.O. — coming soon. Vertical rail on the left. Written by hand. */

:root {
  --bg: #f7f8fa;
  --ink: #10141c;
  --muted: #6d7686;
  --line: #e2e5ec;
  --rail: #10141c;
  --rail-ink: #f2f4f8;
  --accent: #1f5fd0;
  --accent-soft: #e8effb;
  --card: #ffffff;
  --rail-w: 92px;
}

*, *::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.64;
  -webkit-font-smoothing: antialiased;
}

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

.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }

/* the rail */
.rail {
  background: var(--rail); color: var(--rail-ink);
  display: flex; flex-direction: column; align-items: center;
  gap: 22px; padding: 26px 0;
  position: sticky; top: 0; height: 100vh;
}
.rail .dot {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 800;
}
.rail .name {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin: auto 0;
}
.rail .name:hover { color: #fff; text-decoration: none; }
.rail .rule { width: 1px; flex: 1; background: rgba(255, 255, 255, .16); }
.rail .legal {
  writing-mode: vertical-rl;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.rail .legal:hover { color: #fff; text-decoration: none; }

/* content */
.body { padding: clamp(30px, 5vw, 64px) clamp(22px, 5vw, 72px); max-width: 880px; }

.topline {
  display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(38px, 7vw, 74px);
}
.topline a { color: var(--muted); font-size: .83rem; }
.topline a:hover, .topline a.active { color: var(--accent); }

.kicker {
  display: inline-block; margin: 0 0 20px;
  padding: 5px 12px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
h1 {
  margin: 0 0 20px;
  max-width: 24ch;
  font-size: clamp(2.1rem, 5.6vw, 3.4rem);
  line-height: 1.05; letter-spacing: -.04em; font-weight: 760;
}
h1 span { color: var(--accent); }
.tagline { margin: 0 0 14px; color: #3c4553; font-size: 1.06rem; }
.intro { margin: 0 0 clamp(30px, 5vw, 48px); max-width: 58ch; color: var(--muted); }

.panes { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 46px); align-items: start; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 3.2vw, 30px);
}
.card h2 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.card .hint { margin: 0 0 20px; color: var(--muted); font-size: .89rem; }

.field { margin-bottom: 15px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .79rem; font-weight: 600; color: #38414f;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field .invalid { border-color: #c0392b; background: #fff6f4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 50px; padding: 0 24px;
  font: inherit; font-size: .95rem; font-weight: 700;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(31, 95, 208, .22);
  transition: transform .18s, background .18s;
}
.btn:hover { background: #1a4fb0; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 13px 0 0; min-height: 1.2em; font-size: .88rem; }
.status.ok { color: #1f7a4d; font-weight: 600; }
.status.err { color: #b23a2f; font-weight: 600; }

.facts { margin: 0; }
.facts > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; text-align: right; font-weight: 600; font-size: .91rem; word-break: break-word; }

.base {
  margin-top: clamp(34px, 5vw, 56px); padding-top: 22px;
  border-top: 1px solid var(--line);
  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(--accent); }
.base p { margin: 0; }

/* legal */
.doc { padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 72px); max-width: 820px; }
.doc h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
.stamp {
  display: inline-block; margin: 0 0 30px;
  padding: 5px 12px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent); font-size: .78rem;
}
.doc h2 {
  margin: 30px 0 10px;
  font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #3f4854; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 38px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.doc-actions .btn { width: auto; min-width: 165px; }
.soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.soft:hover { background: #dbe6fa; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto;
    flex-direction: row; gap: 16px; padding: 14px 20px;
  }
  .rail .name { writing-mode: horizontal-tb; transform: none; margin: 0; letter-spacing: .18em; }
  .rail .rule { width: auto; height: 1px; flex: 1; }
  .rail .legal { writing-mode: horizontal-tb; letter-spacing: .1em; }
  .panes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .base { flex-direction: column; }
}
