/* Best Broom — coming soon. Airy light page with an icon rail down the side. Written by hand. */

:root {
  --bg: #f7fbfd;
  --card: #ffffff;
  --ink: #10202a;
  --muted: #5f7280;
  --line: #e0ebf1;
  --sky: #1c86b8;
  --sky-deep: #146a94;
  --sky-soft: #e3f2f9;
  --radius: 18px;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(900px 380px at 12% -8%, rgba(28, 134, 184, .10), transparent 68%),
    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(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 7px; }

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

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 22px 0 clamp(24px, 4vw, 40px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 790; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand b {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--sky); color: #fff;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 800;
}
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); font-size: .86rem; }
.top nav a:hover, .top nav a.active { color: var(--sky-deep); }

/* rail + content */
.layout {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(20px, 3.4vw, 44px);
  align-items: start;
  padding-bottom: clamp(30px, 5vw, 48px);
}
.rail { display: grid; gap: 12px; }
.rail div {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--sky);
  box-shadow: 0 8px 20px rgba(16, 32, 42, .05);
}
.rail svg { width: 26px; height: 26px; }
.rail div:nth-child(2) { background: var(--sky); color: #fff; border-color: var(--sky); }
.rail div:nth-child(3) { background: var(--sky-soft); }

.chip {
  display: inline-block; margin: 0 0 18px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--sky-soft); color: var(--sky-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  max-width: 22ch;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.05; letter-spacing: -.042em; font-weight: 800;
}
h1 span { color: var(--sky); }
.lede { margin: 0 0 14px; color: #2d414d; }
.lede.quiet { color: var(--muted); }

/* form + facts */
.columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(16, 32, 42, .06);
  padding: clamp(22px, 3.4vw, 32px);
}
.card h2 { margin: 0 0 4px; font-size: 1.06rem; font-weight: 770; letter-spacing: -.02em; }
.card .hint { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }

.field { margin-bottom: 15px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .79rem; font-weight: 620; color: #2a3d48;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: #fafdff;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-soft);
}
.field .invalid { border-color: #b23a2f; 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: 750;
  color: #fff; background: var(--sky);
  border: 0; border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(28, 134, 184, .24);
  transition: transform .18s, background .18s;
}
.btn:hover { background: var(--sky-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: 12px 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: .84rem; }
.facts dd { margin: 0; text-align: right; font-weight: 660; font-size: .92rem; word-break: break-word; }

/* footer */
.base {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .83rem;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--sky-deep); }
.base p { margin: 0; }

/* legal */
.doc { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.doc .sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(16, 32, 42, .06);
  padding: clamp(26px, 4.4vw, 44px);
}
.doc h1 { margin: 14px 0 12px; font-size: clamp(1.9rem, 4.6vw, 2.5rem); }
.stamp {
  display: inline-block; margin: 0 0 28px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--sky-soft); color: var(--sky-deep); font-size: .78rem;
}
.doc h2 {
  margin: 30px 0 10px;
  font-size: 1.04rem; font-weight: 770; letter-spacing: -.015em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #2d414d; }
.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(--sky-soft); color: var(--sky-deep); box-shadow: none; }
.soft:hover { background: #d3eaf6; box-shadow: none; }

@media (max-width: 820px) {
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(4, 56px); }
  .rail div { aspect-ratio: 1; border-radius: 14px; }
}
@media (max-width: 540px) {
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .base { flex-direction: column; }
}
