.termlink-page section[id],
.termlink-page main[id] {
  scroll-margin-top: 88px;
}

.termlink-page a:focus-visible,
.termlink-page summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 20;
  padding: 10px 18px;
  background: var(--bg);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.termlink-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  padding-top: 56px;
  gap: 56px;
}

.termlink-page .termlink-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  font-size: 1.5rem;
  font-weight: 760;
  color: var(--text);
}

.termlink-wordmark img { border-radius: 12px; }

.termlink-hero h1 {
  font-size: clamp(3.5rem, 7vw, 5.7rem);
  line-height: 1.12;
}

.termlink-page .termlink-tagline {
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
}

.termlink-page .eyebrow { color: var(--accent); }

.termlink-page .button--primary {
  background: var(--accent);
  color: #07151b;
}

.termlink-hero .meta-list {
  grid-template-columns: auto 1fr;
  font-size: 0.9rem;
  gap: 8px 24px;
}

.termlink-preview {
  width: min(330px, 100%);
  justify-self: end;
  margin: 0;
}

.termlink-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.termlink-preview figcaption,
.termlink-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.termlink-preview figcaption {
  margin-top: 14px;
  text-align: center;
}

.termlink-page h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.3;
}

.termlink-page h3 { line-height: 1.5; }

.termlink-page .feature-subtitle {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

.termlink-page code {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.termlink-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.termlink-steps li {
  counter-increment: step;
  border-top: 2px solid var(--accent);
  padding-top: 22px;
}

.termlink-steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: monospace;
}

.termlink-steps p,
.termlink-example p,
.termlink-plan > p,
.termlink-plan li { color: var(--muted); }

.termlink-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 32px 0 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--terminal);
}

.termlink-example pre {
  margin: 0;
  color: var(--terminal-text);
  white-space: pre-wrap;
}

.termlink-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.termlink-plan {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.termlink-plan--pro {
  border-color: rgba(0, 217, 255, 0.6);
  background: linear-gradient(145deg, rgba(0, 217, 255, 0.09), var(--surface));
}

.termlink-plan .termlink-price {
  color: var(--text);
  font-size: 2.8rem;
  font-weight: 750;
  margin: 18px 0;
}

.termlink-price small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.termlink-plan ul { padding-left: 1.2em; }
.termlink-plan li + li { margin-top: 8px; }
.policy-card ul { padding-left: 1.2em; color: var(--muted); }
.policy-card li + li { margin-top: 8px; }
.termlink-prose { max-width: 860px; }
.termlink-prose h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }

.termlink-prose p,
.termlink-prose li { overflow-wrap: anywhere; }

.termlink-faq {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.termlink-faq summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
}

.termlink-faq p { color: var(--muted); }

@media (max-width: 840px) {
  .termlink-hero { grid-template-columns: 1fr; gap: 40px; }
  .termlink-preview { justify-self: center; width: min(300px, 100%); }
  .termlink-steps,
  .termlink-example,
  .termlink-plans { grid-template-columns: 1fr; }
  .termlink-page .section-head > p { margin-top: 22px; }
  .termlink-page .stacked-title .title-wide { display: none; }
  .termlink-page .stacked-title .title-narrow { display: block; }
}

@media (max-width: 480px) {
  .termlink-page .nav { gap: 12px; }
  .termlink-page .brand { font-size: 0.85rem; gap: 7px; }
  .termlink-page .brand-mark { width: 22px; height: 22px; }
  .termlink-page .nav-links { gap: 10px; font-size: 0.78rem; }
  .termlink-hero .meta-list { grid-template-columns: 1fr; gap: 4px; }
  .termlink-hero .meta-list dd + dt { margin-top: 8px; }
  .termlink-plan,
  .termlink-example { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.termlink-page) { scroll-behavior: auto; }
  .termlink-page .button { transition: none; }
}
