/* Tabkyra product page: the helm, brass on ink. Palette and type from the tabkyra repo's
   media/brand/BRAND.md. Fonts are OFL (assets/licenses). */
@font-face { font-family: "Instrument Sans"; src: url(/assets/tabkyra-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/tabkyra-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/tabkyra-serif-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/assets/tabkyra-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0f1b24;
  --ink-2: #142430;
  --ink-3: #1c3140;
  --line: #24394a;
  --brass: #e3a93b;
  --tide: #43b3a0;
  --paper: #f6f2ea;
  --muted: #a9b8c3;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.tk { margin: 0; background: var(--ink); color: var(--paper); font: 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(70% 50% at 15% -5%, rgba(28, 49, 64, .9), transparent 70%), radial-gradient(50% 40% at 100% 20%, rgba(227, 169, 59, .06), transparent 70%); background-repeat: no-repeat; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
svg { width: 1em; height: 1em; }
.tk-handle { font-family: var(--mono); font-size: .9em; letter-spacing: -.02em; }
.tk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .6rem 1rem; border-radius: 10px; background: var(--brass); color: var(--ink); font-weight: 600; text-decoration: none; }
.tk-skip:focus { top: 1rem; }
code { font: .86em var(--mono); background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
h1, h2 { font-weight: 400; margin: 0; }
h2 em, h1 em { font-family: var(--serif); font-style: italic; color: var(--brass); font-weight: 400; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }

/* The mark. */
.tk-tile { display: inline-grid; place-items: center; flex: none; background: var(--brass); color: var(--ink); border-radius: 23.4%; }
.tk-tile-helm { width: 100%; height: 100%; }
.tk-helm { color: var(--brass); }

/* Navigation. */
.tk-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100% - var(--wrap)) / 2 + 24px)); border-bottom: 1px solid rgba(36, 57, 74, .6); background: rgba(15, 27, 36, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tk-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.035em; }
.tk-nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.tk-nav nav a { text-decoration: none; color: var(--muted); }
.tk-nav nav a:hover { color: var(--paper); }
.tk-nav-cta { padding: 8px 14px !important; font-size: 14px !important; }

/* Buttons. */
.tk-button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--brass); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--brass); min-height: 44px; }
.tk-button:hover { background: #ecb851; }
.tk-button-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.tk-button-ghost:hover { background: var(--ink-2); border-color: #35506a; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero. */
.tk-hero { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 72px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.tk-emblem { margin-bottom: 26px; filter: drop-shadow(0 10px 34px rgba(227, 169, 59, .28)); }
.tk-eyebrow { color: var(--brass); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin: 0 0 14px; }
.tk-hero h1 { font-size: clamp(44px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; margin-bottom: 22px; }
.tk-hero h1 span { display: block; }
.tk-hero h1 em { display: block; font-weight: 400; letter-spacing: -.01em; line-height: 1.04; }
.tk-lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.tk-meta { margin: 22px 0 0; font: 13px/1.5 var(--mono); color: var(--muted); }
.tk-demo { margin: 0; }
.tk-window { border-radius: 14px; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .45); }
.tk-window img, .tk-video { width: 100%; aspect-ratio: 960 / 464; object-fit: contain; background: var(--ink); }
.tk-video { aspect-ratio: 16 / 9; }
.tk-demo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Sections. */
.tk-section { max-width: var(--wrap); margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.tk-kicker { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; }
.tk-section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; margin-bottom: 20px; max-width: 22em; }
.tk-intro { font-size: 18px; color: var(--muted); max-width: 40em; margin: 0 0 28px; }
.tk-prose { max-width: 42em; font-size: 19px; }
.tk-prose p { margin: 0 0 1em; }
.tk-prose em { font-family: var(--serif); font-size: 1.15em; color: var(--brass); }
.tk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 56px; align-items: start; }
.tk-split-reverse { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.tk-library .tk-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tk-card p { margin: 0; color: var(--muted); font-size: 16px; }
.tk-card h3 a { text-decoration-color: rgba(227, 169, 59, .5); text-underline-offset: 3px; }
.tk-card .tk-repo { font: 13px var(--mono); margin-bottom: 10px; }
.tk-shot { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .4); }

/* How it works. */
.tk-steps { list-style: none; padding: 0; margin: 12px 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.tk-steps li { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tk-steps p { margin: 0; color: var(--muted); font-size: 16px; }
.tk-step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brass); color: var(--ink); font-weight: 600; margin-bottom: 16px; }
.tk-flow { list-style: none; padding: 0; margin: 0; display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px 0; }
.tk-flow li { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.tk-flow-arrow { color: var(--brass); padding: 0 8px; flex: none; font-size: 18px; display: grid; }
.tk-node { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--ink-2); height: 100%; }
.tk-node b { display: block; font: 600 15px/1.3 var(--sans); }
.tk-node span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.tk-node.is-tabs { border-color: rgba(227, 169, 59, .55); background: rgba(227, 169, 59, .08); }
.tk-fine { color: var(--muted); font-size: 15px; max-width: 46em; margin: 18px 0 0; }

/* Skills. */
.tk-skill-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tk-skill-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tk-skill-list code { justify-self: start; color: var(--brass); background: transparent; border-color: rgba(227, 169, 59, .35); height: fit-content; }
.tk-skill-list span { color: var(--muted); }
.tk-callout { display: flex; gap: 16px; align-items: flex-start; border: 1px solid rgba(67, 179, 160, .4); background: rgba(67, 179, 160, .07); border-radius: var(--radius); padding: 20px 22px; max-width: 54em; }
.tk-callout p { margin: 0; }
.tk-callout-icon { color: var(--tide); font-size: 22px; flex: none; display: grid; padding-top: 2px; }

/* Safety. */
.tk-limits { margin-top: 32px; border-left: 3px solid var(--brass); padding: 4px 0 4px 22px; max-width: 54em; }
.tk-limits h3 { color: var(--brass); font-size: 17px; }
.tk-limits p { margin: 0; }

/* Lists with checks. */
.tk-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tk-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.tk-points li > span:first-child { color: var(--tide); flex: none; display: grid; padding-top: 4px; }

/* Code blocks. */
.tk-code { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0b141b; min-width: 0; }
.tk-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; background: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: .04em; min-height: 40px; }
.tk-code pre { margin: 0; padding: 16px; overflow-x: auto; }
.tk-code code { background: none; border: 0; padding: 0; font: 14px/1.65 var(--mono); color: var(--paper); white-space: pre; overflow-wrap: normal; }
#tk-prompt { white-space: pre-wrap; overflow-wrap: anywhere; display: block; max-height: 340px; overflow-y: auto; }
.tk-install-card #tk-prompt { font-size: 13px; }
.tk-copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--paper); border-radius: 8px; padding: 4px 10px; font: 600 13px var(--sans); cursor: pointer; min-height: 30px; }
.tk-copy:hover { background: var(--ink-3); }
.tk-copy svg { width: 15px; height: 15px; }
.tk-done-icon { display: none; color: var(--tide); }
.tk-copy.is-done .tk-done-icon { display: inline-flex; }
.tk-copy.is-done .tk-copy-icon { display: none; }
.tk-copy-icon, .tk-done-icon { line-height: 0; }

/* Install. */
.tk-install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tk-install-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.tk-install-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.tk-install-card h4 { font-size: 16px; margin: 24px 0 10px; }
.tk-install-card > p { color: var(--muted); font-size: 16px; }
.tk-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brass); color: var(--ink); font-size: 14px; }
.tk-note { margin: 24px 0 0; color: var(--muted); max-width: 54em; }
.tk-note a, .tk-support a:not(.tk-button), .tk-footer a { text-decoration-color: rgba(227, 169, 59, .6); text-underline-offset: 3px; }

/* FAQ. */
.tk-faq details { border-bottom: 1px solid var(--line); max-width: 54em; }
.tk-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; min-height: 48px; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-plus { color: var(--brass); font-size: 22px; display: grid; transition: transform .2s; flex: none; }
.tk-faq details[open] .tk-plus { transform: rotate(45deg); }
.tk-faq details p { margin: 0 0 20px; color: var(--muted); }

/* Support and closing. */
.tk-support { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tk-support > div { max-width: 44em; }
.tk-support p:not(.tk-kicker) { color: var(--muted); margin: 0; }
.tk-support h2 { font-size: clamp(28px, 3vw, 38px); }
.tk-closing { text-align: center; padding: 96px 24px 88px; border-top: 1px solid var(--line); max-width: var(--wrap); margin: 0 auto; }
.tk-closing-helm { width: 76px; height: 76px; color: var(--brass); margin: 0 auto 22px; display: block; }
.tk-closing h2 { font-family: var(--serif); font-style: italic; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin-bottom: 14px; }
.tk-closing p { color: var(--muted); font-size: 19px; margin: 0 auto 28px; max-width: 30em; }
.tk-closing .tk-actions { justify-content: center; }
.tk-footer { max-width: var(--wrap); margin: 0 auto; padding: 28px 24px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.tk-footer p { margin: 0; max-width: 40em; }
.tk-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Tablet. */
@media (max-width: 1000px) {
  .tk-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .tk-split, .tk-split-reverse, .tk-library .tk-split { grid-template-columns: 1fr; gap: 36px; }
  .tk-shot { position: static; max-width: 380px; }
  .tk-split-reverse .tk-shot { order: 2; }
  .tk-grid-3 { grid-template-columns: 1fr; }
  .tk-flow { flex-direction: column; }
  .tk-flow li { flex-direction: column; align-items: stretch; }
  .tk-flow-arrow { transform: rotate(90deg); justify-content: center; padding: 6px 0; }
  .tk-skill-list { grid-template-columns: 1fr; }
  .tk-install-grid { grid-template-columns: 1fr; }
}
/* Phone. */
@media (max-width: 720px) {
  body.tk { font-size: 16px; }
  .tk-nav { gap: 12px; padding: 12px 16px; }
  .tk-nav nav { display: none; }
  .tk-nav-cta { margin-left: auto; }
  .tk-hero { padding: 28px 16px 48px; }
  .tk-emblem .tk-tile { width: 56px !important; height: 56px !important; }
  .tk-lede { font-size: 17px; }
  .tk-section { padding: 56px 16px; }
  .tk-grid, .tk-steps { grid-template-columns: 1fr; }
  .tk-skill-list li { grid-template-columns: 1fr; gap: 6px; }
  .tk-support { flex-direction: column; align-items: flex-start; }
  .tk-install-card { padding: 18px; }
  .tk-code pre { padding: 14px; }
  .tk-code code { font-size: 13px; }
  .tk-closing { padding: 72px 16px; }
  .tk-footer { padding: 24px 16px 40px; }
}
