/* ============================================================= *
 *  Shipmoor SEO page — shared styles
 *  Mirrors shipmoor-website/src/styles/global.css tokens and the
 *  agent-skills.astro section system, plus the animated harness hero
 *  (sibling of AgentHarnessHero.astro) and a few page-specific blocks.
 * ============================================================= */

:root {
  --rgb-white: 255, 255, 255;
  --rgb-text: 13, 35, 42;        /* #0d232a */
  --rgb-text-alt: 86, 106, 112;  /* #566a70 */
  --rgb-brand-1: 20, 116, 102;   /* #147466 teal */
  --rgb-brand-2: 227, 238, 223;  /* #e3eedf */
  --rgb-brand-3: 235, 242, 240;  /* #ebf2f0 */
  --rgb-brand-4: 240, 178, 79;   /* #f0b24f gold */
  --rgb-brand-5: 199, 67, 63;    /* #c7433f red */

  --color-white: rgb(var(--rgb-white));
  --color-text: rgb(var(--rgb-text));
  --color-text-alt: rgb(var(--rgb-text-alt));
  --color-brand-1: rgb(var(--rgb-brand-1));
  --color-brand-2: rgb(var(--rgb-brand-2));
  --color-brand-3: rgb(var(--rgb-brand-3));
  --color-brand-4: rgb(var(--rgb-brand-4));
  --color-brand-5: rgb(var(--rgb-brand-5));
  --color-bg: #f6f8f4;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --font-size-lg: 1.1rem;
  --font-size-md: 1rem;
  --font-size-sm: 0.9rem;
  --font-size-xs: 0.8rem;

  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 18px/1.4 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 920px) { html, body { font-size: 17px; } }
@media (max-width: 560px) { html, body { font-size: 16px; } }

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

.u-container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 560px) { .u-container { padding: 0 1.4rem; } }

/* ===================== SITE CHROME ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(var(--rgb-text), 0.07);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 4.2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.brand-spark {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: radial-gradient(circle at 50% 38%, #1c9a86, var(--color-brand-1) 58%, #0c3a33);
  color: #eafff7;
}
.brand-spark svg { width: 1rem; height: 1rem; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-alt);
}
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--color-text); }
.site-nav a[aria-current] { color: var(--color-brand-1); font-weight: 700; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #111618;
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
}
.nav-cta:hover { background: #1a2024; }
@media (max-width: 760px) { .site-nav .nav-link { display: none; } }

.site-footer {
  border-top: 1px solid rgba(var(--rgb-text), 0.08);
  padding: 2.6rem 0;
  color: var(--color-text-alt);
  font-size: 0.86rem;
}
.site-footer .bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.site-footer .links {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-footer a:hover { color: var(--color-text); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-brand-1); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--color-brand-1) 88%, #000); }
.btn--alt {
  background: #fff;
  color: var(--color-text);
  border-color: rgba(var(--rgb-text), 0.14);
}
.btn--alt:hover { border-color: rgba(var(--rgb-text), 0.3); }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ===================== ARTICLE / HERO ===================== */
.cli { display: block; padding-bottom: 4rem; }

.hero { padding: 5rem 0 3.5rem; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--rgb-brand-2), 0.7);
  border: 1px solid rgba(var(--rgb-brand-1), 0.22);
  color: var(--color-brand-1);
  font: 700 0.72rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.eyebrow-dot {
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: var(--color-brand-1);
  box-shadow: 0 0 0 0.22rem rgba(var(--rgb-brand-1), 0.18);
}

.hero-h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 auto 1rem;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-h1 b { color: var(--color-brand-1); font-weight: 800; }

.hero-sub {
  font-size: var(--font-size-lg);
  line-height: 1.5;
  color: var(--color-text-alt);
  max-width: 40em;
  margin: 0 auto 1.8rem;
  text-wrap: pretty;
}

.hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.trust-list {
  font-size: var(--font-size-xs);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem;
  padding: 0; margin: 1.6rem auto 0;
  list-style: none;
  color: var(--color-text-alt);
}
.trust-list li {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(var(--rgb-text), 0.12);
  border-radius: 999px;
  background: rgba(var(--rgb-white), 0.6);
}

.proof-strip {
  font-size: var(--font-size-xs);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.45rem;
  padding: 0; margin: 2.2rem auto 0;
  list-style: none;
  max-width: 52rem;
}
.proof-strip li {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(var(--rgb-brand-1), 0.2);
  border-radius: 999px;
  background: rgba(var(--rgb-brand-2), 0.45);
  color: var(--color-brand-1);
  font-family: var(--font-mono);
  font-weight: 600;
}

.hero-visual { margin: 2.8rem auto 0; text-align: left; }

.intro {
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 38em;
  margin: 2.4rem auto 2rem;
}
.intro p { margin: 0 0 1rem; }
.intro p:last-child { margin-bottom: 0; }

/* ===================== SECTION BASE ===================== */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(var(--rgb-text), 0.07);
}
.section-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-head h2 b { color: var(--color-brand-1); }
.section-head p {
  font-size: var(--font-size-md);
  line-height: 1.55;
  color: var(--color-text-alt);
  margin: 0;
  text-wrap: pretty;
}
.section-closing {
  font-size: var(--font-size-md);
  line-height: 1.55;
  max-width: 44rem;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--color-text-alt);
}
.section-closing b { color: var(--color-brand-1); font-weight: 600; }

/* ===================== TERMINAL PREVIEW ===================== */
.section--terminal { padding: 1.5rem 0 3.5rem; border-top: none; }
.terminal {
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #0d232a;
  box-shadow: 0 1.4rem 3rem rgba(18, 39, 63, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #0a1c22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-bar span { width: 0.65rem; height: 0.65rem; border-radius: 50%; }
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal-bar strong {
  margin-left: auto;
  font: 700 0.7rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}
.terminal-body {
  margin: 0;
  padding: 1.1rem 1.4rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e2efe9;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
}
.terminal-body code { display: flex; flex-direction: column; }
.tline { display: block; white-space: pre; }
.tline--prompt { color: #7dd8a4; }
.tline--err { color: #ff6b6b; }
.tline--warn { color: #f0b24f; }
.tline--ok { color: #7dd8a4; }
.tline--info { color: #5dd6c3; }
.tline--dim { color: rgba(226, 239, 233, 0.5); }
.tline--rule { color: rgba(226, 239, 233, 0.22); }
.tline--blank { height: 0.4rem; }
.terminal-caption {
  font-size: var(--font-size-xs);
  margin: 1rem auto 0;
  max-width: 40em;
  text-align: center;
  color: var(--color-text-alt);
  font-family: var(--font-mono);
}
@media (max-width: 640px) {
  .terminal-body { font-size: 0.7rem; padding: 0.9rem 1rem 1.1rem; }
}

/* ===================== LAYER / STATE CARDS (3-up) ===================== */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 66rem;
}
.layer-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid rgba(var(--rgb-text), 0.1);
  border-radius: 0.95rem;
  background: var(--color-white);
  height: 100%;
}
.layer-card .num {
  font: 700 0.72rem/1 var(--font-mono);
  color: var(--color-text-alt);
  letter-spacing: 0.06em;
}
.layer-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.layer-card p {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-alt);
  margin: 0;
}
.state-badge {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 700 0.68rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}
.state-badge .d { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.state-badge--live { color: var(--color-brand-1); background: rgba(var(--rgb-brand-1), 0.1); }
.state-badge--soft { color: #b07d12; background: rgba(var(--rgb-brand-4), 0.16); }

/* ===================== HOOK / FEATURE LIST ===================== */
.hook-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 50rem;
}
.hook-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(var(--rgb-text), 0.1);
  border-radius: 0.75rem;
  background: var(--color-white);
}
.hook-list .hk {
  grid-row: 1 / span 2;
  align-self: center;
  font: 700 0.8rem/1 var(--font-mono);
  color: var(--color-brand-1);
  background: rgba(var(--rgb-brand-2), 0.6);
  border: 1px solid rgba(var(--rgb-brand-1), 0.2);
  border-radius: 0.45rem;
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
}
.hook-list .hk-name { font-weight: 700; font-size: var(--font-size-md); }
.hook-list .hk-desc { font-size: var(--font-size-sm); line-height: 1.5; color: var(--color-text-alt); }

/* ===================== CODE BLOCK (ci snippet) ===================== */
.code-block {
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #0d232a;
  box-shadow: 0 1.4rem 3rem rgba(18, 39, 63, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.code-filename {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #0a1c22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.code-filename .dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; }
.code-filename .dot:nth-child(1) { background: #ff5f56; }
.code-filename .dot:nth-child(2) { background: #ffbd2e; }
.code-filename .dot:nth-child(3) { background: #27c93f; }
.code-filename strong {
  margin-left: auto;
  font: 700 0.7rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}
.code-block pre {
  margin: 0;
  padding: 1.2rem 1.4rem;
  color: #e2efe9;
  font: 500 0.82rem/1.6 var(--font-mono);
  overflow-x: auto;
}
.code-block pre .c { color: #5f8c83; }
.code-block pre .k { color: #7dd8a4; }
.code-block pre .s { color: #f0b24f; }

/* ===================== DETERMINISTIC CALLOUT ===================== */
.det-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.2rem 2.2rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(var(--rgb-brand-1), 0.22);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(var(--rgb-brand-2), 0.5), transparent 60%),
    var(--color-white);
}
.det-row { display: flex; align-items: flex-start; gap: 1rem; }
.det-shield {
  flex: none;
  width: 2.8rem; height: 2.8rem;
  border-radius: 0.8rem;
  display: grid; place-items: center;
  background: var(--color-brand-1);
  color: #fff;
}
.det-shield svg { width: 1.5rem; height: 1.5rem; }
.det-card h3 { font-size: 1.3rem; font-weight: 700; margin: 0.2rem 0 0.6rem; letter-spacing: -0.01em; }
.det-card p { font-size: var(--font-size-md); line-height: 1.6; color: var(--color-text-alt); margin: 0 0 0.9rem; }
.det-card p:last-child { margin-bottom: 0; }
.det-card .scope {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(var(--rgb-text), 0.1);
  font-size: var(--font-size-sm);
}
.det-card strong { color: var(--color-text); font-weight: 700; }

/* ===================== CLAIM CHECK CARD ===================== */
.claim-card {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  padding: 1.8rem 1.9rem;
  border: 1px solid rgba(var(--rgb-text), 0.1);
  border-radius: 1.1rem;
  background: var(--color-white);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.claim-card:hover { border-color: rgba(var(--rgb-brand-1), 0.45); transform: translateY(-2px); }
.claim-ic {
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 0.8rem;
  display: grid; place-items: center;
  background: rgba(var(--rgb-brand-1), 0.1);
  color: var(--color-brand-1);
  border: 1px solid rgba(var(--rgb-brand-1), 0.2);
}
.claim-ic svg { width: 1.6rem; height: 1.6rem; }
.claim-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; }
.claim-card p { font-size: var(--font-size-sm); line-height: 1.5; color: var(--color-text-alt); margin: 0; }
.claim-card .arr {
  flex: none;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(var(--rgb-brand-1), 0.1);
  color: var(--color-brand-1);
  transition: transform 0.18s ease, background 0.18s ease;
}
.claim-card:hover .arr { transform: translateX(3px); background: var(--color-brand-1); color: #fff; }
@media (max-width: 560px) {
  .claim-card { grid-template-columns: auto 1fr; }
  .claim-card .arr { display: none; }
}

/* ===================== LOCAL-FIRST CARD ===================== */
.local-card {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.6rem 2.2rem;
  background: var(--color-brand-1);
  border-radius: 1.2rem;
  text-align: center;
}
.local-card h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}
.local-card p {
  font-size: var(--font-size-md);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40em;
  margin: 0 auto;
}
.local-card .langs {
  margin: 1.6rem auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.local-card .langs span {
  font: 600 0.78rem/1 var(--font-mono);
  color: #eafff7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
}

/* ===================== START FREE + COMMANDS ===================== */
.start-free-card {
  max-width: 46rem;
  margin: 0 auto 2rem;
  padding: 1.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(var(--rgb-text), 0.1);
  background: var(--color-white);
  text-align: center;
}
.start-free-cmd {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border-radius: 0.5rem;
  background: #0d232a;
  color: #d9f4e8;
  font: 600 0.95rem/1 var(--font-mono);
}
.start-free-note { font-size: var(--font-size-sm); margin: 1.1rem 0 0; color: var(--color-text-alt); }

.step-list {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.7rem;
}
.step-list li {
  counter-increment: step;
  padding: 0.9rem 1rem 0.9rem 3rem;
  position: relative;
  border-radius: 0.55rem;
  background: rgba(var(--rgb-brand-3), 0.6);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem; top: 50%;
  transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--color-brand-1);
  color: #fff;
  display: grid; place-items: center;
  font: 700 0.78rem/1 var(--font-mono);
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 56rem;
}
.cmd-card {
  padding: 1.3rem 1.3rem 1.15rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(var(--rgb-text), 0.1);
  background: var(--color-white);
}
.cmd-label { font-size: 0.78rem; color: var(--color-text-alt); margin: 0 0 0.6rem; }
.cmd-code {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.45rem;
  background: #0d232a;
  color: #d9f4e8;
  font: 600 0.83rem/1.4 var(--font-mono);
  overflow-x: auto;
}
.cmd-code .opt { color: #7fa39b; }

.pricing-note {
  font-size: var(--font-size-sm);
  text-align: center;
  max-width: 42rem;
  margin: 2.2rem auto 0;
  color: var(--color-text-alt);
}
.pricing-note b { color: var(--color-text); font-weight: 700; }

/* ===================== CLOSING CTA ===================== */
.section--closing { border-top: none; padding: 4rem 0 4.5rem; }
.closing-card {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3.4rem 2rem 3rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(var(--rgb-brand-2), 0.65) 0%, var(--color-white) 100%);
  border: 1px solid rgba(var(--rgb-brand-1), 0.2);
  text-align: center;
}
.closing-card h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.closing-card > p {
  font-size: var(--font-size-md);
  line-height: 1.55;
  max-width: 40em;
  margin: 0 auto 2rem;
  color: var(--color-text-alt);
}
.install-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--rgb-text), 0.04);
  border: 1px solid rgba(var(--rgb-text), 0.1);
  box-shadow: 0 1rem 2.5rem rgba(18, 39, 63, 0.06);
  max-width: 100%;
}
.install-btn {
  flex: none;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: none;
  background: #111618;
  color: #fff;
  font: 600 0.85rem/1 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}
.install-btn:hover { background: #1a2024; }
.install-cmd {
  font: 500 0.86rem/1 var(--font-mono);
  color: var(--color-text);
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 0.4rem;
  scrollbar-width: none;
}
/* The plain copy-source command is hidden; the styled aria-hidden one is shown. */
.install-cmd[data-install-command] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.install-cmd::-webkit-scrollbar { display: none; }
.install-cmd .tk-cmd { color: var(--color-brand-5); font-weight: 600; }
.install-cmd .tk-pipe { color: var(--color-brand-1); font-weight: 600; }
.install-copy {
  flex: none;
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(var(--rgb-text), 0.55);
  display: grid; place-items: center;
  cursor: pointer;
}
.install-copy:hover { color: var(--color-text); background: rgba(var(--rgb-text), 0.07); }
.closing-docs { margin: 1.3rem 0 0; font-size: var(--font-size-xs); }
.closing-docs a { color: var(--color-brand-1); font-weight: 700; }

/* ===================== FAQ ===================== */
.faq-wrap { max-width: 52rem; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(var(--rgb-text), 0.1);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  position: relative;
  color: var(--color-brand-1);
  transition: transform 0.2s ease;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.faq-item summary .plus::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-item summary .plus::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item[open] summary .plus { transform: rotate(135deg); }
.faq-item .ans {
  padding: 0 0 1.4rem;
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--color-text-alt);
  max-width: 46em;
}

/* ===================== INTERNAL LINKS ===================== */
.section--links { padding-top: 0; border-top: none; }
.links-title {
  font: 700 0.8rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-text-alt);
  margin: 0 0 1.5rem;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 60rem;
}
.link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.3rem 0.8rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(var(--rgb-text), 0.1);
  border-radius: 0.7rem;
  background: var(--color-white);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.link-card:hover { border-color: var(--color-brand-1); transform: translateY(-2px); }
.link-card .t { font-size: var(--font-size-sm); font-weight: 700; grid-column: 1; }
.link-card .d { font-size: var(--font-size-xs); grid-column: 1; color: var(--color-text-alt); }
.link-card .a {
  grid-column: 2; grid-row: 1 / span 2;
  font-size: 1.1rem; color: var(--color-brand-1);
  align-self: center;
  transition: transform 0.18s ease;
}
.link-card:hover .a { transform: translateX(4px); }

@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  .section { padding: 3.2rem 0; }
  .section-head { margin-bottom: 2rem; }
  .closing-card { padding: 2.5rem 1.2rem 2.2rem; }
  .local-card { padding: 2rem 1.5rem; }
  .det-card { padding: 1.8rem 1.4rem; }
}
