/* GroundForce NDA Redline — visual language borrowed from Superstar v2,
   re-skinned for a financial/PE feel: cream background, ink black, deep
   forest accent. DM Sans for everything. */

:root {
  --bg:        #fafaf7;
  --bg-alt:    #f3f3ee;
  --surface:   #ffffff;
  --ink:       #0e0e0c;
  --ink-2:     #44443f;
  --ink-3:     #87877f;
  --ink-4:     #b8b8af;
  --line:      #e7e7e0;
  --line-2:    #d6d6cf;

  /* GroundForce-y accent — deep forest / Mill Valley dark teal */
  --accent:    #1a3a2c;
  --accent-d:  #0e2519;
  --accent-l:  #cfe1d6;
  --accent-xl: #e7f0eb;

  --warn:      #b3493a;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(20,20,15,.04), 0 8px 24px -16px rgba(20,20,15,.18);
  --shadow-soft: 0 1px 0 rgba(20,20,15,.04), 0 2px 8px rgba(20,20,15,.04);

  --container: 1180px;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(36px, 4.6vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
p  { margin: 0; }
code {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.92em;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}
.muted { color: var(--ink-2); }
.tiny  { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.hidden { display: none !important; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 84px 0; }

/* ─── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 68px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
}
.logo img { height: 28px; width: auto; }
.logo-text {
  font-size: 18px;
  letter-spacing: 0.01em;
  font-weight: 800;
  color: var(--ink);
}
.logo-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  text-transform: uppercase;
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--ink); }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s, color .15s, border-color .15s;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn:active { transform: translateY(1px); }
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero { padding: 64px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-sub {
  margin-top: 18px;
  color: var(--ink-2);
  max-width: 56ch;
  font-size: 18px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.hero-stat .ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--accent-xl);
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Dropzone ───────────────────────────────────────── */
.dropzone-wrap {
  margin-top: 32px;
}
.dropzone {
  border: 2px dashed var(--line-2);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.dropzone:hover, .dropzone:focus { border-color: var(--accent); background: var(--accent-xl); outline: none; }
.dropzone.drag { border-color: var(--accent); background: var(--accent-xl); }
.dz-icon {
  width: 64px; height: 64px;
  color: var(--accent);
}
.dz-text strong { display: block; font-size: 18px; margin-bottom: 4px; }
.dz-text span { color: var(--ink-2); font-size: 14px; }

.sample-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--accent-xl);
  border: 1px solid var(--accent-l);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.sample-banner strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--ink);
}
.sample-banner span {
  color: var(--ink-2);
  font-size: 14px;
}

/* ─── Status / Result ────────────────────────────────── */
.status {
  margin-top: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}
.status-row { display: flex; align-items: center; gap: 16px; }
.status-row strong { display: block; margin-bottom: 2px; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--accent-xl);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result {
  margin-top: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.result-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.result-meta {
  color: var(--ink-2);
  margin-top: 6px;
  font-size: 14px;
}
.result-notes {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
}
.result-notes strong { color: var(--ink); }
.result-actions { margin-top: 22px; }

/* ─── Refine chat ────────────────────────────────────────────── */
.refine {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.refine-head h4 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.refine-head .muted {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.refine-history {
  margin: 16px 0 12px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.refine-history:empty { display: none; }
.refine-turn {
  padding: 12px 14px;
  border-radius: var(--r);
  font-size: 14px;
  line-height: 1.5;
}
.refine-turn-user {
  background: var(--bg-alt);
  align-self: flex-end;
  max-width: 80%;
  border: 1px solid var(--line);
}
.refine-turn-assistant {
  background: var(--accent-xl);
  border: 1px solid var(--accent-l);
  max-width: 90%;
}
.refine-turn-pending {
  background: var(--surface);
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-style: italic;
}
.refine-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 4px;
}
.refine-turn-user .refine-label { color: var(--ink-2); }
.refine-turn-assistant .refine-label { color: var(--accent); }
.refine-body { color: var(--ink); }
.refine-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.refine-form {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: flex-end;
}
.refine-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  resize: none;
  min-height: 48px;
  max-height: 240px;
  overflow-y: auto;
  display: block;
  width: 100%;
}
.refine-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-xl);
}
.refine-input:disabled { background: var(--bg-alt); color: var(--ink-3); cursor: not-allowed; }
.refine-input::placeholder { color: var(--ink-3); }
.refine-form .btn {
  flex-shrink: 0;
  height: 48px;
}
.refine-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Learning loop ──────────────────────────────────────────── */
.learn {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.learn-head h4 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.learn-head .muted {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.learn-drop {
  border: 2px dashed var(--line-2);
  background: var(--surface);
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.learn-drop:hover, .learn-drop:focus { border-color: var(--accent); background: var(--accent-xl); outline: none; }
.learn-drop.drag { border-color: var(--accent); background: var(--accent-xl); }
.learn-drop-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.learn-drop-text span { color: var(--ink-2); font-size: 14px; }
.learn-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 14px;
}
.learn-result {
  margin-top: 14px;
}
.learn-success {
  background: var(--accent-xl);
  border: 1px solid var(--accent-l);
  border-radius: var(--r);
  padding: 18px 20px;
}
.learn-success strong { font-size: 15px; color: var(--ink); }
.learn-success p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 6px 0 14px;
}
.learn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.learn-stat {
  background: var(--surface);
  border: 1px solid var(--accent-l);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
}
.learn-stat .num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.learn-stat .lbl {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: 4px;
}
.learn-detail {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.learn-detail strong { color: var(--ink); }
.learn-detail ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.learn-detail li {
  margin: 4px 0;
  line-height: 1.45;
}
.learn-error {
  padding: 14px 16px;
  background: #fbe9e6;
  border: 1px solid #f0c3bc;
  color: #6b231a;
  border-radius: var(--r);
  font-size: 14px;
}
@media (max-width: 720px) {
  .learn-stats { grid-template-columns: repeat(2, 1fr); }
}

.error {
  margin-top: 18px;
  padding: 18px;
  background: #fbe9e6;
  border: 1px solid #f0c3bc;
  color: #6b231a;
  border-radius: var(--r);
  font-size: 14px;
}

/* ─── How it works ───────────────────────────────────── */
.how-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.how-num {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.how-step h3 { margin-bottom: 8px; }
.how-step p { color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ─── History ────────────────────────────────────────── */
.history-head { margin-bottom: 20px; }
.history-head h2 { margin-bottom: 6px; }
.history-head p { color: var(--ink-2); font-size: 15px; margin: 0; }
.history-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.history-row { border-top: 1px solid var(--line); }
.history-row:first-child { border-top: none; }

.history-row-toggle {
  width: 100%;
  cursor: pointer;
  transition: background-color 120ms;
}
.history-row-toggle:hover { background: var(--bg-alt); }
.history-row-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.history-row-main {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 22px;
}
.history-row-text { min-width: 0; }
.history-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-sub {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-when { color: var(--ink-2); font-size: 13px; white-space: nowrap; }

.history-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.55;
  transition: opacity 120ms;
}
.history-row-toggle:hover .history-row-actions,
.history-row.is-open .history-row-actions { opacity: 1; }
.history-action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms, color 120ms;
}
.history-action svg { width: 16px; height: 16px; }
.history-action:hover { background: var(--surface); color: var(--ink); }
.history-action-del:hover { color: var(--warn); }
.history-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.history-action[disabled] { opacity: 0.4; cursor: not-allowed; }

.history-chev {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  transition: transform 180ms ease, color 120ms;
}
.history-row.is-open .history-chev { transform: rotate(180deg); color: var(--accent); }
.history-row.is-open .history-row-toggle { background: var(--bg-alt); }

.history-row.is-removing {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 180ms ease, max-height 200ms ease 20ms;
}

.history-detail {
  padding: 4px 22px 22px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.history-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.history-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink-2);
}
.history-chip strong { color: var(--ink); font-weight: 600; }
.history-notes-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 8px;
}
.history-notes {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.history-notes p { margin: 0 0 10px; }
.history-notes ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.history-notes li::marker { color: var(--accent); font-weight: 600; }
.history-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 140ms, transform 140ms, box-shadow 140ms;
  cursor: pointer;
}
.btn-dl:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(20,20,15,.4);
}
.btn-dl:active { transform: translateY(0); }
.btn-dl svg { width: 14px; height: 14px; }

.history-empty { padding: 28px 22px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 640px) {
  .history-row-main { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .history-when { grid-column: 1; grid-row: 2; }
  .history-row-actions { grid-column: 2; grid-row: 2; opacity: 1; }
  .history-chev { grid-column: 2; grid-row: 1; }
}

/* ─── Footer ─────────────────────────────────────────── */
.foot {
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
.foot .container { display: flex; align-items: center; gap: 12px; }
.foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-sep { color: var(--ink-4); }

/* ─── Auth (login page) ──────────────────────────────── */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26,58,44,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(26,58,44,0.06), transparent 60%),
    var(--bg);
  display: flex;
  flex-direction: column;
}
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 420px;
  padding: 36px 36px 32px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-logo img { height: 32px; width: auto; }
.auth-logo-text {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.auth-title {
  font-size: 28px;
  margin-bottom: 6px;
}
.auth-sub {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 6px; }
.auth-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.auth-field input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 140ms, box-shadow 140ms, background 140ms;
}
.auth-field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(26,58,44,0.10);
}
.btn-block { display: block; width: 100%; text-align: center; padding-top: 12px; padding-bottom: 12px; }
.auth-error {
  background: rgba(179, 73, 58, 0.08);
  color: var(--warn);
  border: 1px solid rgba(179, 73, 58, 0.20);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.auth-foot {
  margin-top: 22px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* ─── Tools landing ──────────────────────────────────── */
.nav-user {
  color: var(--ink-3);
  font-size: 13px;
}
.nav-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}
.nav-linkbtn:hover { color: var(--ink); text-decoration-color: var(--ink-3); }

.hero-tight { padding: 56px 0 28px; }
.hero-tight h1 { font-size: clamp(30px, 3.4vw, 44px); }
.hero-tight .hero-sub { max-width: 60ch; }
.section-tight { padding: 24px 0 64px; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position: relative;
  min-height: 240px;
}
a.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-l);
  box-shadow: var(--shadow-card);
}
a.tool-card:hover .tool-card-open {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tool-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-xl);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.tool-card-icon svg { width: 26px; height: 26px; }
.tool-card-body { flex: 1; }
.tool-card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 10px;
}
.tool-card h3 { margin-bottom: 8px; }
.tool-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.tool-card-open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  transition: background 160ms, color 160ms, border-color 160ms;
}

.tool-card-placeholder {
  background: transparent;
  border: 1px dashed var(--line-2);
  box-shadow: none;
  cursor: default;
}
.tool-card-placeholder .tool-card-icon {
  background: transparent;
  color: var(--ink-4);
  border: 1px dashed var(--line-2);
}
.tool-card-placeholder h3 { color: var(--ink-2); }
.tool-card-placeholder p { color: var(--ink-3); }
