/*
 * FormDoc marketing site. Ink + off-white sections, serif display headings, pill buttons.
 * FormDoc orange is an accent only (links, numbers, icons). No gradients.
 */
:root {
  --ink: #141317;
  --ink-2: #1d1c21;
  --ink-line: #2e2d33;
  --on-ink: #f5f5f4;
  --on-ink-muted: #b4b2ba;
  --paper: #ffffff;
  --paper-2: #f6f5f3;
  --text: #18171b;
  --muted: #5e5c64;
  --line: #e6e4e0;
  --accent: #ea580c;
  --accent-ink: #fb923c;
  --code-bg: #27272a;
  --code-text: #f4f4f5;
  --radius: 18px;
  --max: 72rem;
  --serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: 46rem; }
main { padding: 3rem 0 5rem; }
main.home { padding: 0; }

/* Type */
h1, h2, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 3rem 0 1rem; }
h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; letter-spacing: -0.01em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Header (ink, every page) */
.site-header { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand img { height: 38px; width: auto; display: block; }
@media (max-width: 860px) { .brand img { height: 34px; } }
.main-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; flex: 1; }
.main-nav a { color: var(--on-ink-muted); text-decoration: none; font-size: 0.95rem; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--on-ink); }
.header-actions { display: flex; gap: 0.6rem; align-items: center; }

/* Mobile menu (<details>): hidden on wide screens */
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--ink-line); color: var(--on-ink);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 2px; }
.mobile-menu .icon-close, .mobile-menu[open] .icon-open { display: none; }
.mobile-menu[open] .icon-close { display: block; }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-top: 1px solid var(--ink-line);
  padding: 1rem 1.5rem 1.75rem; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.mobile-panel nav { display: grid; }
.mobile-panel nav a {
  color: var(--on-ink); text-decoration: none; font-family: var(--serif); font-size: 1.6rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--ink-line);
}
.mobile-panel nav a[aria-current="page"] { color: var(--accent-ink); }
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 1rem; }
  /* Phones: logo + menu only. The hero and footer carry the sign-up links. */
  .main-nav, .header-actions { display: none; }
  .mobile-menu { display: block; }
}

/* Buttons: pills */
.button {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--text);
  color: var(--paper);
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { color: var(--paper); background: #000; transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover { border-color: var(--text); color: var(--text); }
/* On ink: white pill and outlined ghost */
.on-ink .button, .site-header .button { background: var(--on-ink); color: var(--ink); }
.on-ink .button:hover, .site-header .button:hover { background: #ffffff; color: var(--ink); }
.on-ink .button.ghost, .site-header .button.ghost { background: transparent; color: var(--on-ink); border-color: var(--ink-line); }
.on-ink .button.ghost:hover, .site-header .button.ghost:hover { border-color: var(--on-ink); }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; }

/* Code: dark grey blocks */
pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
:not(pre) > code { background: var(--paper-2); border: 1px solid var(--line); padding: 0.05rem 0.35rem; border-radius: 6px; font-size: 0.88em; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; border-bottom: 2px solid var(--text); }
tbody tr:hover { background: var(--paper-2); }
/* Small screens: wide tables scroll inside themselves instead of widening the page. */
@media (max-width: 860px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { min-width: 7rem; }
}
pre { max-width: 100%; }

/* Home: full-bleed bands */
.band { padding: 6rem 0; }
.band.paper-2 { background: var(--paper-2); }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink a { color: var(--on-ink); }
.on-ink .lead, .on-ink .section-lead, .on-ink .note { color: var(--on-ink-muted); }
.on-ink .eyebrow { color: var(--accent-ink); }

.hero { text-align: center; padding: 6.5rem 0 5rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); max-width: 11ch; margin: 0 auto 1.5rem; }
.hero .lead { max-width: 38rem; margin: 0 auto; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .hero-actions, .hero-actions.center { justify-content: center; }
.hero .note { font-size: 0.9rem; margin-top: 1rem; }
/* Hero: code in a browser window, editor colours, typed in line by line */
.browser { position: relative; max-width: 46rem; margin: 3.5rem auto 0; text-align: left; border-radius: 16px; overflow: hidden; background: #1e1e1e; border: 1px solid var(--ink-line); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.browser-bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; background: #2b2b30; border-bottom: 1px solid #3a3a40; font: 500 0.78rem/1 var(--sans); color: #a9a9b2; }
.browser .dots { display: flex; gap: 0.4rem; }
.browser .dots i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #ff5f57; }
.browser .dots i:nth-child(2) { background: #febc2e; }
.browser .dots i:nth-child(3) { background: #28c840; }
.browser pre.code { margin: 0; border-radius: 0; background: #1e1e1e; color: #d4d4d4; padding: 1.25rem 1.4rem 4rem; font-size: 0.85rem; line-height: 1.7; white-space: pre; overflow-x: auto; border: 0; }
.code .ln { display: block; min-height: 1.75em; }
.t-tag { color: #569cd6; }
.t-attr { color: #9cdcfe; }
.t-val { color: #ce9178; }
.t-punc { color: #808080; }
.t-com { color: #6a9955; font-style: italic; }
/* Typing: each line is revealed left to right, one after another. */
.code .ln { clip-path: inset(0 100% 0 0); animation: type 0.32s steps(24, end) forwards; }
.code .ln:nth-child(1) { animation-delay: 0.30s; }
.code .ln:nth-child(2) { animation-delay: 0.62s; }
.code .ln:nth-child(3) { animation-delay: 2.84s; }
.code .ln:nth-child(4) { animation-delay: 3.16s; }
.code .ln:nth-child(5) { animation-delay: 3.48s; }
.code .ln:nth-child(6) { animation-delay: 3.80s; }
.code .ln:nth-child(7) { animation-delay: 4.12s; }
.code .ln:nth-child(8) { animation-delay: 4.44s; }
.code .ln:nth-child(9) { animation-delay: 4.76s; }
.code .ln:nth-child(10) { animation-delay: 5.08s; }
.code .ln:nth-child(11) { animation-delay: 5.40s; }
.code .ln:nth-child(12) { animation-delay: 5.72s; }
.code .ln:nth-child(13) { animation-delay: 6.04s; }
.code .ln:nth-child(14) { animation-delay: 6.36s; }
.code .ln:nth-child(15) { animation-delay: 6.68s; }
.code .ln:nth-child(16) { animation-delay: 7.00s; }
.code .ln:nth-child(17) { animation-delay: 7.32s; }
.code .ln:nth-child(18) { animation-delay: 7.64s; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
/* The action URL (35 characters with quotes) types itself in after its line appears. */
.code .typed {
  display: inline-block; vertical-align: bottom; overflow: hidden; white-space: pre;
  width: 0; border-right: 2px solid #d4d4d4;
  animation: url-type 1.75s steps(35, end) 1s forwards, caret 0.6s step-end 1s 5, caret-off 0s 4.2s forwards;
}
@keyframes url-type { to { width: 35ch; } }
@keyframes caret { 50% { border-right-color: transparent; } }
@keyframes caret-off { to { border-right-color: transparent; } }
.toast { position: absolute; right: 1rem; bottom: 1rem; background: #16a34a; color: #fff; font: 600 0.85rem/1 var(--sans); padding: 0.7rem 0.95rem; border-radius: 10px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(8px); animation: toast 0.4s ease-out 7.7s forwards; }
@keyframes toast { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { .toast { left: 1rem; right: 1rem; text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  .code .ln { clip-path: none; animation: none; }
  .code .typed { width: auto; border: 0; animation: none; }
  .toast { animation: none; opacity: 1; transform: none; }
}

/* Home intro: what FormDoc is, AI-built forms, compatibility */
.what-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.what-grid h2 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.what-body p { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.45; margin: 0; color: var(--text); letter-spacing: -0.01em; }
.pills { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pills li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 500; }
.pills .icon { width: 18px; height: 18px; color: var(--accent); }

.intro-ai { background: var(--paper-2); }
.intro-ai h2 { margin-top: 0; }
.intro-ai p { color: var(--muted); }
.compare { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.compare-card { border-radius: var(--radius); padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); }
.compare-card.good { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12); }
.compare-label { display: block; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.compare-card.good .compare-label { color: #15803d; }
.mini-form { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.mini-form i { display: block; height: 0.75rem; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--line); }
.mini-form i.tall { height: 2rem; }
.mini-form b { justify-self: start; font: 600 0.75rem/1 var(--sans); padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--text); color: var(--paper); }
.compare-card p { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; font-size: 0.92rem; color: var(--text); }
.compare-card .icon { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; }
.compare-card.bad .icon { color: #b91c1c; }
.compare-card.good .icon { color: #15803d; }
.compare-card.bad b { background: var(--muted); }

.works { max-width: 52rem; text-align: center; }
.works h2 { margin-top: 0; }
.works p { color: var(--muted); font-size: 1.1rem; }
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.chips li { padding: 0.55rem 1rem; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); font-size: 0.95rem; font-weight: 500; }

@media (max-width: 860px) {
  .what-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .compare { grid-template-columns: 1fr; }
}

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head h2 { margin: 0 0 0.75rem; }
.section-lead { color: var(--muted); margin: 0; font-size: 1.1rem; }
.illustration { display: block; width: 100%; max-width: 40rem; margin: 0 auto; }
.illus-frame { background: var(--paper); border-radius: var(--radius); padding: 2rem; max-width: 44rem; margin: 0 auto 3rem; }
.split { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split h2 { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .band { padding: 4rem 0; } }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.cards li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--paper); transition: border-color 0.2s, transform 0.2s; }
.cards li:hover { border-color: var(--text); transform: translateY(-3px); }
.cards h3 { margin: 1.1rem 0 0.4rem; }
.cards p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--paper-2); color: var(--accent); border: 1px solid var(--line); }
.on-ink .cards li { background: var(--ink-2); border-color: var(--ink-line); }
.on-ink .cards li:hover { border-color: var(--on-ink-muted); }
.on-ink .cards p { color: var(--on-ink-muted); }
.on-ink .card-icon { background: var(--ink); border-color: var(--ink-line); color: var(--accent-ink); }
.step-no { color: var(--accent); }
.on-ink .step-no { color: var(--accent-ink); }

.cta { border-radius: 28px; padding: 4.5rem 1.5rem; text-align: center; }
.cta h2 { margin: 0 0 0.75rem; font-size: clamp(2rem, 4vw, 3rem); }
.cta p { color: var(--on-ink-muted); margin: 0; }
@media (prefers-reduced-motion: reduce) { .cards li, .button { transition: none; } .cards li:hover, .button:hover { transform: none; } }

/* Blog list */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.post-list a { text-decoration: none; }
.post-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; display: block; }
.post-list time { color: var(--muted); font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }
.post-list p { color: var(--muted); margin: 0.4rem 0 0; }
.byline { color: var(--muted); font-size: 0.9rem; }

/* Contact form */
.contact-form { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 2rem; }
.contact-form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 0.4rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 0.75rem 0.9rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--text); outline-offset: 1px; border-color: transparent; }
.contact-form .button { justify-self: start; }
.contact-status { margin: 0; color: var(--muted); min-height: 1.5em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer (ink) */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 4rem 0 2.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h2 { font: 600 0.75rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-ink); margin: 0 0 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--on-ink-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--on-ink); }
.footer-grid img { height: 36px; width: auto; }
.footer-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line); font-size: 0.875rem; }

/* Docs: sidebar + content */
.prose:has(.docs-grid) { max-width: none; }
.docs-grid { display: grid; gap: 3rem; grid-template-columns: 13rem minmax(0, 46rem); align-items: start; }
.docs-nav { position: sticky; top: 6rem; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.docs-nav a { display: block; padding: 0.4rem 0.75rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.docs-nav a:hover { color: var(--text); background: var(--paper-2); }
.docs-nav a[aria-current="page"] { color: var(--text); background: var(--paper-2); font-weight: 600; }
.docs-body h1 { margin-top: 0; }
@media (max-width: 860px) {
  .docs-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .docs-nav { position: static; }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .docs-nav a { border: 1px solid var(--line); padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.875rem; }
}

/* Wide content pages (Features, Templates) */
.prose:has(.wide) { max-width: none; }
.wide > h1, .wide > p { max-width: 46rem; }
.section-head.left { text-align: left; margin: 0 0 2rem; max-width: 46rem; }
.feature-group { margin-top: 4rem; }
.feature-group .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .feature-group .cards { grid-template-columns: 1fr; } }
.feature-note { margin-top: 3rem; padding: 1rem 1.25rem; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); }

/* Template library */
.tpl-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tpl-list { grid-template-columns: 1fr; } }
.tpl-list a { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.tpl-list a:hover { border-color: var(--text); transform: translateY(-3px); color: var(--text); }
.tpl-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.tpl-list span { color: var(--muted); font-size: 0.95rem; }
.tpl-list .tpl-fields { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tpl-list .tpl-link { margin-top: auto; color: var(--text); font-weight: 600; }

/* Template page */
.tpl-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; margin-top: 2.5rem; }
@media (max-width: 960px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-preview { display: grid; gap: 1rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 20px 40px rgba(20, 19, 23, 0.06); }
.pv-field { display: grid; gap: 0.4rem; }
.pv-label { font-weight: 600; font-size: 0.92rem; }
.pv-label b { color: var(--accent); }
.pv-input { min-height: 2.6rem; border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.8rem; color: #a3a3a3; font-size: 0.9rem; background: var(--paper); }
.pv-input.tall { min-height: 6rem; }
.pv-radios { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-size: 0.92rem; }
.pv-radios span { display: inline-flex; align-items: center; gap: 0.4rem; }
.pv-radios i { width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid var(--muted); }
.pv-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.pv-box { width: 1rem; height: 1rem; border-radius: 4px; border: 1.5px solid var(--muted); flex: none; margin-top: 0.2rem; }
.pv-button { justify-self: start; padding: 0.65rem 1.3rem; border-radius: 999px; background: var(--text); color: var(--paper); font-weight: 600; font-size: 0.92rem; }
.tpl-use { color: var(--muted); margin-top: 1.25rem; }
.tpl-code-head { display: flex; align-items: center; justify-content: space-between; }
.tpl-code-head .eyebrow { margin: 0; }
.copy-button { font: 600 0.85rem/1 var(--sans); padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; }
.copy-button:hover { border-color: var(--text); }
.tpl-code { margin-top: 0.75rem; background: #1e1e1e; color: #d4d4d4; font-size: 0.8rem; line-height: 1.65; white-space: pre; max-height: 34rem; overflow: auto; }
.tpl-code .ln { display: block; }
.tpl-steps { color: var(--muted); padding-left: 1.2rem; }
.tpl-steps li { margin-bottom: 0.4rem; }

