@font-face{font-family:'Archivo';src:url('fonts/archivo.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Inter';src:url('fonts/inter.woff2') format('woff2');font-weight:100 900;font-display:swap}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
h1,h2,.brand,.wordmark,.hero-title{font-family:'Archivo','Inter',system-ui,sans-serif;letter-spacing:-.01em}
/* Tools Shelf v1.2 — premium dark shelf. Static page, no JS. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #eef2f7;
  --ink-dim: #9fb0c3;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --gold: #f5b83d;
  /* Device top inset, read once (v2.4). The hero consumes it via var(--sat);
     tests override --sat to simulate different devices. */
  --sat: env(safe-area-inset-top, 0px);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #060d1f;
  background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(245, 184, 61, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(59, 130, 246, 0.16), transparent 55%),
    linear-gradient(180deg, #081226 0%, #060d1f 55%, #050a18 100%);
  color: var(--ink);
  min-height: 100vh;
  padding: 0 18px 34px; /* v2.4: top gap lives ONLY in .hero padding-top now */
}

/* ---------- Top line (v2.41: banner + hero pill merged) ---------- */

.top-line {
  max-width: 680px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 680px;
  margin: 0 auto 14px;
  /* v2.4 TOP GAP FIX: one single gap = small fixed base + the device inset,
     counted ONCE (capped at 59px so an over-reporting webview can't blow it
     open). v2.3 stacked env() on body's 40px padding + hero's 10px margin,
     which ballooned to a ~150px blank hole above the logo.
     v2.41: base trimmed 24px → 10px — the merged top line + account row
     now sit above the hero and carry their own small margins. */
  padding-top: calc(10px + min(var(--sat), 59px));
  text-align: center;
}

/* v2.41: logo + eyebrow on ONE compact row */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 12px;
}

.hero-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(30px, 7.6vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Shelf ---------- */

.shelf {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 620px) {
  .shelf { grid-template-columns: 1fr 1fr; }
}

.section-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 2px 0;
}

.section-title:first-child { margin-top: 0; }

.tool {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tool:hover, .tool:active {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--accent);
}

.tool-tile {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0b1220;
  background: linear-gradient(145deg, var(--accent), var(--accent));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.tool-body { flex: 1 1 auto; min-width: 0; }

.tool-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 6px;
  vertical-align: 2px;
}

.tool-desc {
  display: block;
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.tool-arrow {
  flex: 0 0 auto;
  font-size: 19px;
  color: var(--ink-dim);
  transition: transform 0.15s ease, color 0.15s ease;
}

.tool:hover .tool-arrow { transform: translateX(3px); color: var(--ink); }

.tool.homeowner {
  border-style: dashed;
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.06);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 680px;
  margin: 34px auto 0;
  text-align: center;
}

.foot-tag {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.foot-site {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

.foot-site a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.foot-site a:hover { text-decoration: underline; }

.foot-ver {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
