/* BD Golf League Coach — Country club theme (Polish v2) */

:root {
  --green-900: #143426;
  --green-800: #1b3a2a;
  --green-700: #266345;
  --green-500: #3a8b66;
  --green-400: #5fa783;
  --green-100: #e2efe7;
  --gold:      #b8985a;
  --cream:     #f6f1e4;
  --paper:     #ffffff;
  --ink:       #1f1f1f;
  --muted:     #6b6b6b;
  --line:      rgba(27, 58, 42, 0.12);
  --shadow:    0 2px 6px rgba(27, 58, 42, 0.08), 0 12px 28px rgba(27, 58, 42, 0.07);
  --radius:    14px;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
  /* Topographic / course-contour background pattern (CSS-only) */
  background-image:
    radial-gradient(800px 360px at 92% 4%, rgba(58,139,102,0.10), transparent 60%),
    radial-gradient(720px 320px at 6% 96%, rgba(20,52,38,0.08), transparent 60%),
    repeating-linear-gradient(115deg,
      transparent 0 60px,
      rgba(27,58,42,0.02) 60px 61px);
  background-color: var(--cream);
  background-attachment: fixed;
}

a { color: var(--green-700); }

/* ---------- Login ---------- */
.login-page {
  display: grid; place-items: center; min-height: 100vh;
  position: relative; overflow: hidden;
}
/* Full-page golf course sunrise behind the login card */
.login-backdrop {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(27,58,42,0.55) 0%, rgba(27,58,42,0.78) 100%),
    url('/static/img/hero-sunrise.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.login-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  width: min(440px, calc(100% - 32px));
  padding: 44px 36px 32px;
  text-align: center;
  border-top: 4px solid var(--green-700);
  position: relative;
  z-index: 1;
}
.login-logo { display: flex; justify-content: center; color: var(--green-700); margin-bottom: 6px; }
.login-card h1 {
  font-family: var(--font-display);
  margin: 8px 0 0;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 0;
  color: var(--green-900);
}
.login-card .tagline { color: var(--muted); margin: 4px 0 28px; font-size: 0.95rem; }
.login-card label {
  display: block; text-align: left; font-size: 0.8rem;
  color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase;
}
.login-card input[type=password] {
  width: 100%; padding: 12px 14px;
  font-size: 1rem; font-family: var(--font-sans);
  border: 1px solid var(--line); border-radius: 10px;
  background: #fafafa; color: var(--ink);
}
.login-card input[type=password]:focus {
  outline: 2px solid var(--green-500); outline-offset: 2px; background: #fff;
}
.login-card button {
  width: 100%; margin-top: 16px; padding: 12px 16px;
  font-size: 1rem; font-weight: 600;
  font-family: var(--font-sans);
  background: var(--green-700); color: white;
  border: none; border-radius: 10px; cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  letter-spacing: 0.02em;
}
.login-card button:hover { background: var(--green-900); }
.login-card button:active { transform: translateY(1px); }
.login-card .err { color: #b03030; margin-top: 12px; font-size: 0.9rem; }
.login-card .footnote { margin-top: 28px; color: var(--muted); font-size: 0.8rem; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .brand-flag { color: white; flex-shrink: 0; }
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.1;
  letter-spacing: 0.01em;
}
.brand .sub {
  display: block; color: rgba(255,255,255,0.65);
  font-size: 0.75rem; margin-top: 2px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.logout button {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 12px; border-radius: 8px; font-size: 0.82rem; cursor: pointer;
  font-family: inherit; letter-spacing: 0.02em;
}
.logout button svg { opacity: 0.7; }
.logout button:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.5); }
.logout button:hover svg { opacity: 1; }

/* Voice controls in the topbar */
.voice-controls {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; margin-right: 12px;
}
.voice-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem; font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.voice-toggle:hover { color: white; border-color: rgba(255,255,255,0.5); }
.voice-toggle.on {
  background: var(--green-500);
  color: white;
  border-color: var(--green-400);
}
.voice-toggle .ic { opacity: 0.85; }

.voice-picker {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.78rem; font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.voice-picker:hover { border-color: rgba(255,255,255,0.5); }
.voice-picker option { color: var(--ink); background: white; }

@media (max-width: 720px) {
  .voice-controls .lbl { display: none; }
  .voice-picker { max-width: 110px; }
}

/* ---------- Layout ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 160px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-areas:
    "sg     hero"
    "sg     stream"
    "sg     thinking"
    "sg     ask";
  column-gap: 28px;
  align-items: start;
}

/* ---------- Suggestions panel (left sidebar) ---------- */
.suggestions {
  grid-area: sg;
  position: sticky;
  top: 82px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 2px rgba(27,58,42,0.04);
}
.suggestions.collapsed { padding-bottom: 14px; }
.suggestions-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.suggestions-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.85rem;
  color: var(--green-900);
  letter-spacing: 0.02em;
}
.suggestions-title svg { color: var(--green-700); }
.suggestions-actions { display: flex; gap: 4px; }
.sg-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 1px solid transparent;
  border-radius: 8px; padding: 5px 8px;
  font-size: 0.75rem; color: var(--green-700); cursor: pointer;
  font-family: inherit;
}
.sg-btn:hover { background: var(--cream-200); border-color: var(--line); color: var(--green-900); }
.sg-btn.collapse-btn { padding: 5px 6px; }
.sg-btn svg { transition: transform 0.2s; }

.suggestions-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.suggestions-list .seed {
  width: 100%; text-align: left;
  background: var(--cream-100); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 9px 12px; font-size: 0.82rem;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.05s;
  font-family: inherit;
  line-height: 1.35;
}
.suggestions-list .seed:hover {
  background: var(--paper); border-color: var(--green-500);
  transform: translateY(-1px);
}
.suggestions-foot {
  margin: 10px 2px 0;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}

/* Empty-state hero (kept for fallback if seeds shown inline) */
.hero { text-align: center; margin: 8px 0 22px; color: var(--green-700); }
.hero-contour { display: block; margin: 0 auto 6px; color: var(--green-500); }
.hero h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--green-900);
  margin: 6px 0 4px;
}
.hero .hint { color: var(--muted); margin: 0 0 6px; }

/* Legacy .seeds (now unused but kept for safety) */
.seeds ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.seed-icon { color: var(--green-700); flex-shrink: 0; }

/* Stream + ask take the right column */
#stream { grid-area: stream; }
#thinking { grid-area: thinking; }
#ask-form { grid-area: ask; }

/* Responsive: stack vertically on narrow viewports.
   The suggestions panel becomes a collapsible card above the chat. */
@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sg"
      "hero"
      "stream"
      "thinking"
      "ask";
    max-width: 720px;
  }
  .suggestions {
    position: static;
    top: auto;
  }
  .suggestions-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .suggestions-list { grid-template-columns: 1fr; }
}

/* ---------- Chat stream ---------- */
.stream { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.turn { display: flex; flex-direction: column; gap: 10px; }

.msg .who {
  font-size: 0.75rem; color: var(--muted); margin: 0 4px 4px;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.msg.coach .who { color: var(--green-700); }
.msg.coach .who svg { color: var(--green-700); }

.msg .bubble {
  background: var(--paper); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid var(--line);
  word-wrap: break-word;
}
.msg.user .bubble {
  background: var(--green-100); border-color: rgba(38,99,69,0.25);
}
/* Coach bubble: avatar on the left, body to the right */
.msg.coach {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}
.msg.user { display: block; }   /* user bubbles stay simple */
.caddie-avatar {
  width: 64px; height: 64px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 4px;
}
.caddie-avatar svg {
  filter: drop-shadow(0 1px 2px rgba(27,58,42,0.15));
}
.caddie-avatar img {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(27,58,42,0.18));
}
.msg-body { min-width: 0; }     /* needed so charts/tables can shrink */
.msg-body .who { margin-left: 4px; }
.msg-body > .bubble { margin-top: 2px; }

/* Listen button */
.speak-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px;
  padding: 2px 10px;
  background: transparent;
  color: var(--green-700);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  font-family: inherit;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  transition: all 0.15s;
}
.speak-btn:hover {
  border-color: var(--green-500);
  background: var(--green-100);
}
.speak-btn[data-state="playing"] {
  background: var(--green-700);
  color: white;
  border-color: var(--green-700);
}
.speak-btn[data-state="playing"] .speak-on { display: none !important; }
.speak-btn[data-state="playing"] .speak-off { display: inline-block !important; }
.speak-btn[data-state="loading"] { opacity: 0.6; cursor: wait; }
.speak-btn[data-state="loading"] .speak-label::after { content: "…"; }

/* Briefly highlight a coach bubble while it's being spoken */
.msg.coach .bubble.speaking {
  box-shadow:
    0 2px 6px rgba(27,58,42,0.08),
    0 12px 28px rgba(27,58,42,0.07),
    0 0 0 2px rgba(58,139,102,0.35);
  transition: box-shadow 0.2s;
}
.voice-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px dashed rgba(38,99,69,0.4);
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}
.msg .err { color: #b03030; margin: 0; }

/* Markdown content inside a coach bubble */
.markdown { font-size: 0.98rem; }
.markdown p { margin: 0 0 10px; }
.markdown p:last-child { margin-bottom: 0; }
.markdown strong { color: var(--green-900); font-weight: 600; }
.markdown ul, .markdown ol { margin: 0 0 10px 22px; padding: 0; }
.markdown li { margin: 4px 0; }
.markdown code {
  background: rgba(20,52,38,0.06); padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.88em;
}

.chart-wrap { position: relative; height: 280px; margin: 14px 0 6px; }

.table-details, .sql-details {
  margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px;
}
.table-details summary, .sql-details summary {
  cursor: pointer; font-size: 0.82rem; color: var(--green-700); padding: 4px 0;
  letter-spacing: 0.02em;
}
.table-scroll { overflow-x: auto; margin-top: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th {
  text-align: left; padding: 7px 10px;
  background: var(--green-100); color: var(--green-900); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 6px 10px; border-top: 1px solid var(--line); }
.trim { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

pre {
  background: #0f1a14; border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: 0.82rem; margin: 6px 0;
  font-family: var(--font-mono);
  border: 1px solid rgba(255,255,255,0.05);
}
pre code, pre code.hljs { background: transparent !important; padding: 0 !important; }

/* ---------- Ask form (fixed bottom) ---------- */
.ask {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(246,241,228,0) 0%, var(--cream) 40%);
  padding: 24px 20px 20px;
  display: flex; gap: 10px; align-items: stretch;
  max-width: 860px; margin: 0 auto;
  z-index: 4;
}
.ask-input-wrap {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.ask input[type=text] {
  width: 100%;
  padding: 14px 18px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow);
  font-family: inherit;
}
.ask input[type=text]:focus {
  outline: 2px solid var(--green-500); outline-offset: 2px;
}
.ask .ask-submit {
  padding: 0 22px; font-size: 1rem; font-weight: 600;
  background: var(--green-700); color: white;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: var(--shadow);
  font-family: inherit; letter-spacing: 0.02em;
  align-self: flex-start;
  min-height: 50px;
  display: inline-flex; align-items: center; gap: 8px;
}
.ask .ask-submit svg { opacity: 0.95; }
.ask .ask-submit:hover { background: var(--green-900); }

/* Mode toggle pills under the input */
.mode-toggle {
  display: inline-flex; gap: 6px;
  padding: 0 2px;
}
.mode-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.mode-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.mode-pill:hover { color: var(--green-900); border-color: var(--green-500); }
.mode-pill.active {
  background: var(--green-100);
  color: var(--green-900);
  border-color: rgba(38,99,69,0.4);
  font-weight: 500;
}
.mode-pill.active .dot { background: var(--green-700); box-shadow: 0 0 0 3px rgba(58,139,102,0.15); }

/* Mode tag shown on each coach bubble */
.mode-tag {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  vertical-align: middle;
}
.mode-tag-agent {
  background: var(--green-700); color: white;
}
.mode-tag-chat {
  background: rgba(27,58,42,0.08); color: var(--green-700);
}

.htmx-request .ask .ask-submit { opacity: 0.6; cursor: wait; }
.htmx-request .ask .ask-submit .label::after { content: " …"; }

/* ---------- Thinking indicator ---------- */
.thinking {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 110px;            /* sit above the taller ask bar (input + pills) */
  z-index: 5;
  padding: 0 20px;
  pointer-events: none;
}
.thinking.htmx-request { display: block; }

.thinking-card {
  max-width: 860px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  position: relative;
  overflow: hidden;
}
.thinking-ball {
  color: var(--green-700);
  animation: swing 1.1s ease-in-out infinite alternate;
  transform-origin: 50% 0;
  display: flex; align-items: center;
}
@keyframes swing {
  from { transform: rotate(-18deg); }
  to   { transform: rotate(18deg); }
}
.thinking-text { display: flex; flex-direction: column; line-height: 1.2; }
.thinking-text strong { color: var(--green-900); font-size: 0.95rem; }
.thinking-text span {
  color: var(--muted); font-size: 0.85rem; margin-top: 2px;
  font-style: italic;
}
.thinking-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(38,99,69,0.10);
  overflow: hidden;
}
.thinking-bar span {
  display: block; height: 100%;
  width: 35%;
  background: linear-gradient(90deg,
              rgba(58,139,102,0) 0%,
              rgba(38,99,69,0.95) 50%,
              rgba(58,139,102,0) 100%);
  animation: slide 1.4s linear infinite;
}
@keyframes slide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(380%); }
}

[disabled], .htmx-request [disabled] { opacity: 0.55; cursor: wait; }

/* Subtle entrance animation for new turns */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.turn { animation: fadeUp 0.25s ease-out; }


/* Alpine: hide x-cloak'd elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* ---------- Hero band (empty-state above chat) ---------- */
.hero-band {
  grid-area: hero;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 180px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--cream-100);
  box-shadow: 0 4px 16px rgba(27,58,42,0.12);
}
/* Hide hero once the chat has any answer rendered.
   Set by app.js on htmx:afterSwap of #stream. */
body.has-answer .hero-band { display: none; }
.hero-band-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(95deg, rgba(27,58,42,0.62) 0%, rgba(27,58,42,0.35) 60%, rgba(27,58,42,0.55) 100%),
    url('/static/img/hero-sunrise.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  filter: saturate(1.05);
}
.hero-band-inner {
  position: relative;
  padding: 22px 28px;
  max-width: 640px;
}
.hero-band-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin: 0 0 6px;
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.hero-band-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* The new brand mark is stroke-based (Tabler golf) — inherit white via currentColor */
.brand .brand-flag { color: white; stroke: currentColor; }

@media (max-width: 980px) {
  .hero-band { min-height: 140px; margin-bottom: 12px; }
  .hero-band-inner h2 { font-size: 1.5rem; }
}

/* ---------- About button + modal ---------- */
.about-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 12px; border-radius: 8px;
  font-size: 0.82rem; font-family: inherit; letter-spacing: 0.02em;
  cursor: pointer;
  margin-right: 8px;
}
.about-btn svg { opacity: 0.7; }
.about-btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.5); }
.about-btn:hover svg { opacity: 1; }

/* Weekly-recap variant of .about-btn — cream fill so it reads as a primary action */
.about-btn.recap-btn {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.about-btn.recap-btn svg { opacity: 0.95; }
.about-btn.recap-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: white;
}

.about-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 40, 30, 0.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px;
  backdrop-filter: blur(2px);
  overflow-y: auto;
}
.about-card {
  background: var(--paper);
  border-radius: 14px;
  width: min(640px, 100%);
  padding: 28px 30px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  border-top: 4px solid var(--green-700);
}
.about-close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none;
  color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 6px;
  line-height: 0;
}
.about-close:hover { background: var(--cream-200); color: var(--ink); }

.about-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.about-mark {
  width: 54px; height: 54px;
  background: var(--green-700);
  border-radius: 10px;
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0;
  color: var(--green-900);
}
.about-ver {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.about-purpose {
  color: var(--ink);
  line-height: 1.5;
  margin: 14px 0 18px;
}
.about-card h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  margin: 18px 0 8px;
  font-weight: 600;
}
.about-caps {
  margin: 0 0 4px;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.92rem;
}
.about-caps li { margin-bottom: 2px; }

.about-stack {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.about-stack th, .about-stack td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.about-stack th {
  width: 38%;
  font-weight: 600;
  color: var(--green-900);
  padding-right: 16px;
}
.about-stack td { color: var(--ink); }
.about-stack tr:last-child th, .about-stack tr:last-child td { border-bottom: none; }

.about-foot {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}