/* AppraiserBench — brand palette from the Brand Identity Concept.
   Graphite #18242B · Bench Teal #17A591 · Slate #68777F · Off-white #F7F9F8
   Calm, dense enough for professional work, no decorative real-estate imagery. */

:root {
  --graphite: #18242B;
  --graphite-2: #22323B;
  --teal: #17A591;
  --teal-dark: #128273;
  --teal-soft: #E6F5F2;
  --slate: #68777F;
  --offwhite: #F7F9F8;
  --surface: #FFFFFF;
  --sunk: #F0F3F3;
  --border: #DFE5E5;
  --hairline: #EBEFEF;
  --warn: #B07B12;
  --warn-soft: #FCF3E2;
  --danger: #C0392B;
  --danger-soft: #FBEDEB;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --r: 12px;
  --sh: 0 1px 2px rgba(24,36,43,.05), 0 6px 20px rgba(24,36,43,.06);
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--offwhite); color: var(--graphite);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.page { display: none; }
.page.on { display: block; }
.muted { color: var(--slate); }
[hidden] { display: none !important; }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px; background: var(--graphite);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: block; flex: none; }
.brand img { display: block; height: 30px; width: auto; }
.topnav { display: flex; gap: 4px; margin-right: auto; }
.navlink {
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px;
  color: rgba(255,255,255,.72); padding: 7px 12px; border-radius: 8px;
}
.navlink:hover { background: rgba(255,255,255,.08); color: #fff; }
.navlink.on { color: #fff; font-weight: 550; background: rgba(255,255,255,.12); }
.topright { display: flex; align-items: center; gap: 10px; }
.who { color: rgba(255,255,255,.72); font-size: 13px; }
.who strong { color: #fff; font-weight: 550; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-size: 14px; font-weight: 550; cursor: pointer;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--graphite); padding: 9px 16px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap;
}
.btn:hover { border-color: #C6D0D0; background: #FBFCFC; }
.btn:focus-visible, input:focus-visible, .navlink:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.dark { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn.dark:hover { background: var(--graphite-2); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.btn.lg { font-size: 15px; padding: 12px 22px; }
.btn.sm { font-size: 13px; padding: 6px 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.onlight.ghost { border-color: var(--border); color: var(--graphite); background: transparent; }
.btn.onlight.ghost:hover { background: var(--sunk); }

/* ---------- hero ---------- */
.hero { background: var(--graphite); color: #fff; padding: 76px 24px 84px; }
.hero-inner { max-width: 1120px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 14px; color: var(--teal); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 650;
  letter-spacing: -.025em; line-height: 1.06; max-width: 18ch; text-wrap: balance;
}
.lede { margin: 20px 0 0; font-size: 17px; color: rgba(255,255,255,.76); max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note {
  margin: 34px 0 0; color: rgba(255,255,255,.42); font-size: 12.5px;
  letter-spacing: .04em;
}

/* ---------- tool cards ---------- */
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; margin: -46px 0 32px;
}
#myTools, #marketingTools.flat { margin-top: 0; }
.tool {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh); padding: 24px; display: flex; flex-direction: column;
}
.tool-rule { width: 34px; height: 4px; border-radius: 3px; background: var(--teal); }
.tool h3 { margin: 16px 0 4px; font-size: 19px; font-weight: 620; letter-spacing: -.01em; }
.tool .tag {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--slate);
}
.tool p { margin: 12px 0 0; color: var(--slate); font-size: 14px; }
.tool-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline);
             display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .03em; padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.pill.active { background: var(--teal-soft); color: var(--teal-dark); }
.pill.trialing { background: var(--warn-soft); color: var(--warn); }
.pill.none { background: var(--sunk); color: var(--slate); }
.pill.running { background: var(--teal-soft); color: var(--teal-dark); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- panels / page heads ---------- */
.page-head { padding: 40px 0 22px; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -.02em; }
.page-head .sub { margin: 6px 0 0; color: var(--slate); font-size: 15px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh); padding: 22px 24px; margin-bottom: 24px;
}
.panel-head { margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 620; }
.panel-head p { margin: 3px 0 0; color: var(--slate); font-size: 13px; }

/* ---------- assignments ---------- */
.assign { display: flex; align-items: center; justify-content: space-between; gap: 16px;
          padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.assign:last-child { border-bottom: 0; }
.assign-addr { font-weight: 550; }
.assign-when { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.assign-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-chip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
             background: var(--graphite); color: #fff; }
.tool-chip.MarketAdjuster { background: var(--teal); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.price {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh); padding: 24px; display: flex; flex-direction: column;
}
.price.best { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--sh); }
.price-badge {
  align-self: flex-start; background: var(--teal); color: #fff; font-size: 11px;
  font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; margin-bottom: 12px;
}
.price h3 { margin: 0 0 4px; font-size: 17px; font-weight: 620; }
.price .grants { color: var(--slate); font-size: 13px; min-height: 38px; }
.price .amount {
  font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -.03em;
  margin: 14px 0 0; font-variant-numeric: tabular-nums;
}
.price .per { font-family: var(--sans); font-size: 14px; color: var(--slate); font-weight: 400; }
.price .mrr { color: var(--slate); font-size: 12.5px; margin-top: 4px; }
.price .cta { margin-top: 20px; }
.fineprint { color: var(--slate); font-size: 13px; margin: 22px 0 48px; max-width: 70ch; }

/* ---------- value props ---------- */
.valueprops { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
              gap: 18px; margin: 8px 0 56px; }
.vp { background: var(--graphite); color: #fff; border-radius: var(--r); padding: 20px 22px; }
.vp h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .07em;
         text-transform: uppercase; color: var(--teal); }
.vp p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.82); }

/* ---------- banners ---------- */
.banner { border-radius: var(--r); padding: 14px 18px; font-size: 13.5px; margin-bottom: 20px;
          border: 1px solid var(--border); background: var(--sunk); color: var(--slate); }
.banner strong { color: var(--graphite); font-weight: 620; }
.banner.warn { background: var(--warn-soft); border-color: #EFDFC0; color: #7A5A11; }
.banner.warn strong { color: #7A5A11; }

/* ---------- account ---------- */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0;
      border-bottom: 1px solid var(--hairline); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--slate); }
.kv .v { font-weight: 550; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(24,36,43,.5); display: none;
            align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal-bg.on { display: flex; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 420px;
         padding: 26px 28px; box-shadow: 0 20px 60px rgba(24,36,43,.3); }
.modal h2 { margin: 0 0 4px; font-size: 20px; font-weight: 640; letter-spacing: -.015em; }
.modal p.hint { margin: 0 0 20px; color: var(--slate); font-size: 13.5px; }
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
                   text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
input { font: inherit; font-size: 14px; width: 100%; padding: 10px 12px;
        border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
        color: var(--graphite); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.switch { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--slate); }
.switch button { background: none; border: 0; color: var(--teal-dark); font: inherit;
                 font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.formerr { background: var(--danger-soft); color: var(--danger); border-radius: 8px;
           padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 22px; right: 22px; z-index: 200;
         display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--graphite); color: #fff; padding: 11px 16px; border-radius: 9px;
         font-size: 13.5px; box-shadow: 0 10px 30px rgba(24,36,43,.3); max-width: 380px; }
.toast.bad { background: var(--danger); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 22px 0; margin-top: 40px; }
.footwrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
            font-size: 13px; color: var(--slate); }

.empty { padding: 28px 0; text-align: center; color: var(--slate); font-size: 14px; }

@media (max-width: 720px) {
  .topbar { gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; margin-right: 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 52px 16px 64px; }
  .tool-grid { margin-top: 24px; }
}
