/* ============================================================================
   AI for Excel — shared landing / site design system
   Green-grid aesthetic (matches 落地页-新设计样本.html). Used by index.html,
   and — via the tokens + primitives below — by app.html / admin.html
   (which also load account.css). Keep the :root variable NAMES stable:
   account.css depends on --bg, --page, --border, --radius, --shadow,
   --surface-muted, --muted, --text, --green, --red, --accent.
   ============================================================================ */

:root {
  color-scheme: light;

  /* brand palette */
  --green: #3a6b52;
  --green-strong: #2b5540;
  --green-soft: #eef4f0;
  --amber: #c8891f;
  --red: #c0392b;
  --blue: #2563eb;

  /* neutrals */
  --ink: #1b2a22;
  --text: #1b2a22;          /* alias used by account.css */
  --muted: #5c6b63;
  --faint: #8a978f;
  --line: #e2e8e4;
  --border: #e2e8e4;        /* alias used by account.css */
  --bg: #f7f9f7;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-muted: #eef4f0; /* alias used by account.css */
  --accent: #2563eb;        /* link accent used by account.css */

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 18px 46px rgba(43, 85, 64, 0.12);
  --shadow-sm: 0 12px 28px rgba(43, 85, 64, 0.10);
  --page: 1100px;

  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--green-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.section {
  width: min(var(--page), calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0;
}

.section__heading {
  max-width: 640px;
  margin: 0 auto 38px;
  text-align: center;
}

.section__heading .eyebrow { margin-bottom: 12px; }

.section__heading h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  letter-spacing: -0.4px;
  line-height: 1.18;
  margin-bottom: 10px;
}

.section__heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.01em;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(var(--page), calc(100% - 44px));
  margin: 0 auto;
  height: 62px;
  background: transparent;
}

/* full-bleed frosted bar behind the (centered) header content */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: rgba(247, 249, 247, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover { color: var(--green); }

.language-select {
  font: inherit;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.button:hover { transform: translateY(-1px); }

.button--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 26px rgba(43, 85, 64, 0.22);
}
.button--primary:hover { background: var(--green-strong); }

.button--secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.button--secondary:hover { border-color: var(--green); color: var(--green); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
/* The homepage ships a background <img> + shade; the new look replaces them
   with a clean CSS field, so hide those elements. */
.hero__image,
.hero__shade { display: none !important; }

.hero {
  position: relative;
  width: min(var(--page), calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0 52px;
}

.hero__content { max-width: 680px; }

.hero .eyebrow,
.hero__content .eyebrow { margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.hero h1 b { color: var(--green); }

.hero__lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__proof span {
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 8px;
}

/* ── Launch strip ─────────────────────────────────────────────────────────── */
.launch-strip {
  width: min(var(--page), calc(100% - 44px));
  margin: 0 auto;
}

.launch-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.launch-strip__grid article {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
}
.launch-strip__grid article + article { border-left: 1px solid var(--line); }

.launch-strip__grid strong { font-size: 14px; }
.launch-strip__grid span { color: var(--muted); font-size: 13px; }

/* ── Use-case cards ───────────────────────────────────────────────────────── */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.use-case-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.use-case-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.use-case-card > span {
  display: inline-flex;
  width: fit-content;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 760;
}

.use-case-card h3 { margin-top: 14px; font-size: 16px; }
.use-case-card p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

/* ── Feature cards ────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.feature-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 14px;
}
.feature-card__icon svg { width: 20px; height: 20px; }

.feature-card h3 { font-size: 16px; margin-bottom: 7px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

/* ══ SHOWCASE / DEMO: Excel workbook + chat (choreographed) ═══════════════════ */
.demo-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: stretch;
  width: min(var(--page), calc(100% - 44px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background:
    radial-gradient(circle at 88% 6%, rgba(58, 107, 82, 0.08), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(238, 244, 240, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* workbook */
.demo-workbook {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dce3de;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.workbook-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #f2f5f2;
  border-bottom: 1px solid #e6ebe7;
}
.workbook-toolbar span {
  width: 10px; height: 10px; border-radius: 99px; background: #cfd8d2;
}
.workbook-toolbar span:nth-child(1) { background: #ec6a5e; }
.workbook-toolbar span:nth-child(2) { background: #f4bf4f; }
.workbook-toolbar span:nth-child(3) { background: #61c454; }
.workbook-toolbar strong {
  margin-left: 8px; font-size: 12.5px; color: #5c6b63; font-weight: 600;
}

.formula-bar {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #eef1ee;
  background: #fbfdfb;
  font-size: 12px;
}
.formula-bar span { color: var(--green); font-style: italic; font-weight: 800; }
.formula-bar strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-weight: 600;
  animation: formulaPulse 13s ease-in-out infinite;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 0.78fr 0.9fr repeat(3, minmax(64px, 1fr)) 0.9fr;
}

.sheet-cell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border-right: 1px solid #eef1ee;
  border-bottom: 1px solid #eef1ee;
  background: #fff;
  color: #33413a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-head {
  min-height: 34px;
  background: #eef4f0;
  color: #1f5a3e;
  font-weight: 700;
  font-size: 11.5px;
}

.sheet-formula {
  color: var(--green);
  font-weight: 700;
  animation: writeBack 13s ease-in-out infinite;
}

.sheet-highlight { color: var(--amber); font-weight: 700; }
.sheet-ok { justify-content: center; color: #2f8a52; font-size: 11px; font-weight: 600; }
.sheet-fix { color: #2f8a52; }
.sheet-dirty { color: var(--red); animation: cleanCell 13s ease-in-out infinite; }

/* scanning box that sweeps across cells the AI inspects */
.sheet-dirty::after,
.sheet-fix::after,
.sheet-highlight::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(58, 107, 82, 0.4);
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
}
.sheet-dirty::after { animation: scanCell 13s ease-in-out infinite; }
.sheet-fix::after { animation: scanCell 13s ease-in-out 0.55s infinite; }
.sheet-highlight::after {
  border-color: rgba(200, 137, 31, 0.5);
  animation: scanCell 13s ease-in-out 1.1s infinite;
}

.sheet-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-top: 1px solid #eef1ee;
  background: #fbfdfb;
  margin-top: auto;
}
.sheet-insights div {
  background: #fff;
  border: 1px solid #e6ebe7;
  border-radius: 10px;
  padding: 10px 12px;
  transform-origin: bottom;
  animation: insightRise 13s ease-in-out infinite;
}
.sheet-insights div:nth-child(2) { animation-delay: 0.16s; }
.sheet-insights div:nth-child(3) { animation-delay: 0.32s; }
.sheet-insights span { display: block; font-size: 11px; color: var(--muted); }
.sheet-insights strong { display: block; margin-top: 2px; font-size: 18px; color: var(--green-strong); }

/* chat */
.demo-chat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce3de;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.chat-header {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1ee;
}
.chat-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.chat-header strong { display: block; font-size: 13px; color: var(--green-strong); }
.chat-header span { display: block; font-size: 11px; color: var(--muted); }

.chat-message {
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.5;
}
.chat-message--user {
  align-self: flex-end;
  max-width: 92%;
  background: var(--green-strong);
  color: #fff;
  border-radius: 11px 11px 3px 11px;
}
.typing-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  animation: typePrompt 13s steps(24, end) infinite;
}

/* pulsing "thinking" dots */
.chat-progress { display: flex; gap: 6px; padding-left: 2px; }
.chat-progress span {
  width: 8px; height: 8px; border-radius: 99px; background: var(--green);
  animation: dotPulse 1s ease-in-out infinite;
}
.chat-progress span:nth-child(2) { animation-delay: 0.16s; }
.chat-progress span:nth-child(3) { animation-delay: 0.32s; }

/* sequential action steps */
.chat-actions { display: flex; flex-direction: column; gap: 8px; }
.chat-actions span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #24513d;
  background: rgba(58, 107, 82, 0.07);
  border: 1px solid rgba(58, 107, 82, 0.18);
  border-radius: 9px;
  padding: 8px 11px;
  opacity: 0.28;
  transform: translateY(8px);
  animation: actionStep 13s ease-in-out infinite;
}
.chat-actions span::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
}
.chat-actions span:nth-child(2) { animation-delay: 0.45s; }
.chat-actions span:nth-child(3) { animation-delay: 0.9s; }
.chat-actions span:nth-child(4) { animation-delay: 1.35s; }

.chat-result {
  margin-top: auto;
  background: #eef7f2;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 4px 10px 10px 4px;
  padding: 11px 13px;
  opacity: 0;
  transform: translateY(10px);
  animation: resultReveal 13s ease-in-out infinite;
}
.chat-result strong { color: var(--green-strong); font-size: 13px; }
.chat-result p { margin-top: 5px; font-size: 12px; color: var(--muted); }

/* demo keyframes */
@keyframes formulaPulse { 0%,38%{color:var(--muted);} 50%,80%{color:var(--green);} 96%,100%{color:var(--muted);} }
@keyframes cleanCell { 0%,26%{background:transparent;color:var(--red);} 38%,78%{background:rgba(58,107,82,.10);color:#2f8a52;} 94%,100%{background:transparent;color:var(--red);} }
@keyframes scanCell { 0%,20%{opacity:0;transform:scale(1.04);} 28%,40%{opacity:1;transform:scale(1);} 54%,100%{opacity:0;transform:scale(.98);} }
@keyframes writeBack { 0%,32%{background:#fff;} 44%,76%{background:rgba(58,107,82,.12);} 94%,100%{background:#fff;} }
@keyframes insightRise { 0%,40%{opacity:.5;transform:scaleY(.92);} 52%,82%{opacity:1;transform:scaleY(1);} 94%,100%{opacity:.5;transform:scaleY(.92);} }
@keyframes typePrompt { 0%,8%{max-width:0;} 24%,78%{max-width:320px;} 92%,100%{max-width:0;} }
@keyframes dotPulse { 0%,100%{opacity:.3;transform:translateY(0);} 50%{opacity:1;transform:translateY(-3px);} }
@keyframes actionStep { 0%,20%{opacity:.28;transform:translateY(8px);} 30%,74%{opacity:1;transform:translateY(0);} 92%,100%{opacity:.28;transform:translateY(8px);} }
@keyframes resultReveal { 0%,48%{opacity:0;transform:translateY(10px);} 60%,82%{opacity:1;transform:translateY(0);} 96%,100%{opacity:0;transform:translateY(10px);} }

/* ── Split section (security / flow) ──────────────────────────────────────── */
.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
  text-align: left;
}
.section--split .section__heading { text-align: left; margin: 0; max-width: none; }

.flow-list { display: grid; gap: 12px; list-style: none; }
.flow-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.flow-list li > span {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.flow-list h3 { font-size: 15px; margin-bottom: 5px; }
.flow-list p { font-size: 13px; color: var(--muted); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pricing-card {
  display: grid;
  align-content: start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.pricing-card > span {
  width: fit-content;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 760;
}
.pricing-card h3 { font-size: 17px; }
.pricing-card strong { font-size: clamp(30px, 5vw, 44px); line-height: 1; color: var(--ink); }
.pricing-card p { color: var(--muted); font-size: 13.5px; }
.pricing-card .button { width: fit-content; margin-top: 6px; }
.pricing-card--muted {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0)), #fff;
}

/* ── Panel section (install) ──────────────────────────────────────────────── */
.section--panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(58, 107, 82, 0.07), rgba(37, 99, 235, 0.04)), #fff;
  padding: 40px;
}
.section--panel .section__heading { text-align: center; }

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.install-step {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.install-step > span {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
.install-step h3 { font-size: 15px; margin-bottom: 6px; }
.install-step p { font-size: 13px; color: var(--muted); }
.install-step a {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 660;
}
.install-step a:hover { text-decoration: underline; }

/* ── Policy grid (privacy) ────────────────────────────────────────────────── */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.policy-grid > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.policy-grid h3 { font-size: 15px; margin-bottom: 8px; }
.policy-grid p { font-size: 13.5px; color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-grid details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-grid summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14.5px;
  list-style-position: inside;
}
.faq-grid details p {
  border-top: 1px solid var(--line);
  padding: 14px 20px 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(var(--page), calc(100% - 44px));
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--green-strong);
  color: #fff;
  padding: 40px;
}
.cta-band .eyebrow { background: rgba(255, 255, 255, 0.15); color: #cdeeda; }
.cta-band h2 { font-size: clamp(24px, 3vw, 30px); margin: 12px 0 8px; }
.cta-band p:not(.eyebrow) { color: rgba(255, 255, 255, 0.82); font-size: 15px; max-width: 640px; }
.cta-band .button--primary { background: #fff; color: var(--green-strong); box-shadow: none; }
.cta-band .button--primary:hover { background: #eaf3ee; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: min(var(--page), calc(100% - 44px));
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer > div { display: grid; gap: 4px; }
.site-footer .brand { color: var(--ink); }
.site-footer p { color: var(--muted); }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-left: auto;
}
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--green); }

/* ── Reveal-on-scroll (landing.js toggles .visible) ───────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.52s ease, transform 0.52s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-stage { grid-template-columns: 1fr; }
  .section--split { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .launch-strip__grid,
  .use-case-grid,
  .feature-grid,
  .pricing-grid,
  .install-grid,
  .policy-grid { grid-template-columns: 1fr; }
  .launch-strip__grid article + article { border-left: none; border-top: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer nav { margin-left: 0; }
  .section--panel { padding: 26px; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sheet-cell,
  .sheet-insights div,
  .formula-bar strong,
  .typing-text,
  .chat-progress span,
  .chat-actions span,
  .chat-result {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    max-width: none !important;
  }
  .sheet-cell::after { display: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
