/* =====================================================================
   GUI direction — one white paper surface (communityservices.cc/GUI.md)
   Front door token layer, the yardstick made flesh. Self-contained:
   no CDN, no framework — this page renders on a dead connection.
   ===================================================================== */

:root {
  /* paper + ink */
  --paper: #fffefb;
  --ink: #101a2b;
  --muted: #5a6577;
  --line: #e6e1d8;          /* hairline rules, not gridlines */

  /* the ONE interactive accent; semantic colors are not defined here */
  --accent: #0e7490;
  --accent-deep: #0a596f;

  /* dark greeting band */
  --band: #0c1a2b;
  --band-2: #10222f;
  --band-ink: #eef4f7;
  --band-muted: #b6c6ce;

  /* density & type — senior-friendly base kept, simplicity ≠ smallness */
  --fs-base: 18px;
  --fs-lg: 22px;
  --fs-xl: clamp(2.05rem, 6.5vw, 3.4rem);
  --tap-min: 52px;

  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-base);
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 1.75rem);
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid rgb(14 116 144 / .4);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- dark greeting band ---------- */

.band-dark {
  background: linear-gradient(165deg, var(--band), var(--band-2) 62%, #0e2a33);
  color: var(--band-ink);
  padding: clamp(2.25rem, 7vw, 4rem) 0 clamp(2.5rem, 8vw, 4.5rem);
}

.brand {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1.6rem;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--band-muted);
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(14 116 144 / .18);
}

.greeting {
  font-size: var(--fs-xl);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.06;
  margin: 0;
  max-width: 20ch;
  color: #fff;
}

.lede {
  margin: 1.1rem 0 1.8rem;
  max-width: 52ch;
  font-size: var(--fs-lg);
  color: var(--band-muted);
}

.cta-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent); color: #fff;
  border-radius: 999px;
  padding: .85rem 1.6rem;
  font-weight: 700; font-size: var(--fs-lg);
  min-height: var(--tap-min);
  transition: background .15s ease;
}
.cta-pill:hover { background: var(--accent-deep); }
.cta-pill .arr { transition: transform .15s ease; }
.cta-pill:hover .arr { transform: translateX(3px); }

/* ---------- main paper bands ---------- */

main { padding: clamp(2rem, 6vw, 3.25rem) 0 clamp(1.5rem, 4vw, 2.5rem); }

.rule {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1.4rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* pill rows instead of panels — one idea per row */
.tool {
  display: flex; align-items: center; gap: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1.05rem 1.5rem;
  margin-bottom: .9rem;
  min-height: var(--tap-min);
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.tool:hover { border-color: var(--accent); }
.tool:active { transform: scale(.995); }

.tool .t-ico {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
}
.tool .t-ico svg { width: 24px; height: 24px; }

.tool .t-body { flex: 1; min-width: 0; }
.tool .t-body h3 { margin: 0 0 .1rem; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.tool .t-body p { margin: 0; font-size: 1rem; color: var(--muted); }

.tool .t-go { color: var(--muted); font-size: 1.3rem; transition: color .15s ease; }
.tool:hover .t-go { color: var(--accent); }

/* ---------- progressive disclosure — the rest of the family ---------- */

details.family { margin-top: .5rem; }

details.family summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.4rem;
  font-size: 1rem; font-weight: 600; color: var(--ink);
  min-height: 48px;
  transition: border-color .15s ease;
}
details.family summary::-webkit-details-marker { display: none; }
details.family summary:hover { border-color: var(--accent); }
details.family summary .chev { font-size: .8rem; color: var(--muted); transition: transform .15s ease; }
details.family[open] summary .chev { transform: rotate(90deg); }
details.family .hint { color: var(--muted); font-weight: 400; }

.family-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
  margin-top: 1rem;
}
@media (max-width: 600px) { .family-grid { grid-template-columns: 1fr; } }

.mini-pill {
  display: block;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .9rem 1.2rem;
  color: var(--ink);
  transition: border-color .15s ease;
}
.mini-pill strong { display: block; font-weight: 700; font-size: 1rem; }
.mini-pill span { font-size: .92rem; color: var(--muted); }
.mini-pill:hover { border-color: var(--accent); }

/* ---------- hairline foot — not a footer ---------- */

.app-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
  padding: 2rem 0 2.5rem;
}
.app-foot .wrap { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }