/*
 * Tile Key: components
 * Needs tokens.css first. Every class starts with "tk-" so it can sit next to any other CSS.
 */

/* Base */
.tk { margin: 0; background: var(--tk-void); color: var(--tk-chalk); font-family: var(--tk-sans); font-size: var(--tk-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.tk *, .tk *::before, .tk *::after { box-sizing: border-box; }
.tk a:not([class]) { color: inherit; }
.tk ::selection { background: var(--tk-sky); color: var(--tk-action-ink); }

/* Frame: the page sits between two hairline rails. Section breaks get a corner square on each rail */
.tk-frame { position: relative; width: min(100% - 24px, var(--tk-frame)); margin-inline: auto; border-inline: var(--tk-hair); }
.tk-container { width: min(100% - 40px, var(--tk-container)); margin-inline: auto; }
.tk-narrow { width: min(100% - 40px, var(--tk-narrow)); margin-inline: auto; }
.tk-center { text-align: center; }
.tk-center .tk-lead { margin-inline: auto; }

.tk-section { padding-block: var(--tk-section); }
.tk-break { position: relative; height: 0; border-top: var(--tk-hair); }
.tk-break::before, .tk-break::after { content: ""; position: absolute; top: -4px; width: 7px; height: 7px; background: var(--tk-break, var(--tk-orchid)); }
.tk-break::before { left: -4px; }
.tk-break::after { right: -4px; }
.tk-break--ember { --tk-break: var(--tk-ember); }
.tk-break--lime { --tk-break: var(--tk-lime); }
.tk-break--sky { --tk-break: var(--tk-sky); }
.tk-break--amber { --tk-break: var(--tk-amber); }

/* Type: light grotesk headlines, mono caps labels */
.tk-hero-title, .tk-h2, .tk-h3 { margin: 0; font-family: var(--tk-sans); font-weight: 400; color: var(--tk-chalk); }
.tk-hero-title { font-size: var(--tk-text-hero); font-weight: 300; letter-spacing: var(--tk-tracking-hero); line-height: 1.04; }
.tk-h2 { font-size: var(--tk-text-h2); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.tk-h3 { font-size: var(--tk-text-h3); letter-spacing: -.01em; line-height: 1.2; }
.tk-lead { max-width: 520px; margin: 20px 0 0; color: var(--tk-dim); font-size: var(--tk-text-lead); line-height: 1.55; }
.tk-label { font-family: var(--tk-mono); font-size: var(--tk-text-label); font-weight: 400; letter-spacing: var(--tk-tracking-label); text-transform: uppercase; }
.tk-dim { color: var(--tk-dim); }

/* Key: the signature. A small solid square naming a category */
.tk-key { display: inline-block; flex: none; width: var(--tk-key); height: var(--tk-key); background: var(--tk-c, var(--tk-chalk)); }
.tk-key--lg { width: 18px; height: 18px; }
.tk-c-lime { --tk-c: var(--tk-lime); }
.tk-c-orchid { --tk-c: var(--tk-orchid); }
.tk-c-ember { --tk-c: var(--tk-ember); }
.tk-c-amber { --tk-c: var(--tk-amber); }
.tk-c-sky { --tk-c: var(--tk-sky); }
.tk-c-chalk { --tk-c: var(--tk-chalk); }

/* Tag: outlined mono caps in one key color */
.tk-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--tk-c, var(--tk-orchid)); color: var(--tk-c, var(--tk-orchid)); font-family: var(--tk-mono); font-size: var(--tk-text-label); letter-spacing: var(--tk-tracking-label); text-transform: uppercase; white-space: nowrap; text-decoration: none; }

/* Nav: one boxed bar of chips, each with its key square */
.tk-nav { display: flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; margin: 14px auto 0; padding: 4px; border: var(--tk-hair); background: var(--tk-panel); }
.tk-nav__logo { display: grid; place-items: center; width: 34px; height: 34px; border: var(--tk-hair-2); text-decoration: none; }
.tk-nav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--tk-panel-2); color: var(--tk-chalk); font-family: var(--tk-mono); font-size: var(--tk-text-label); letter-spacing: var(--tk-tracking-label); text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .15s var(--tk-snap); }
.tk-chip:hover { background: var(--tk-rule-2); }
.tk-nav .tk-btn { margin-left: 8px; }

/* Buttons: square-cornered, mono caps, a chevron on the right */
.tk-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--tk-radius); font-family: var(--tk-mono); font-size: var(--tk-text-label); font-weight: 500; letter-spacing: var(--tk-tracking-label); text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .15s var(--tk-snap), background .15s var(--tk-snap); }
.tk-btn::after { content: "\203A"; font-size: 15px; line-height: 1; }
.tk-btn--primary { background: var(--tk-action); color: var(--tk-action-ink); }
.tk-btn--primary:hover { filter: brightness(1.12); }
.tk-btn--light { background: var(--tk-chalk); color: var(--tk-void); }
.tk-btn--light:hover { filter: brightness(.9); }
.tk-btn--line { border-color: var(--tk-rule-2); background: transparent; color: var(--tk-chalk); }
.tk-btn--line:hover { background: var(--tk-panel-2); }
.tk-btn--block { width: 100%; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tk-center .tk-actions { justify-content: center; }

/* Hero */
.tk-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.tk-hero .tk-lead { margin-inline: auto; }
.tk-hero .tk-actions { justify-content: center; }

/* Tabs: a strip of equal cells over the board. The active cell is tinted with its key color */
.tk-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: var(--tk-void); }
.tk-tab { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 0; background: var(--tk-panel); color: var(--tk-chalk); font-family: var(--tk-mono); font-size: var(--tk-text-label); letter-spacing: var(--tk-tracking-label); text-transform: uppercase; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.tk-tab[aria-selected="true"] { background: color-mix(in srgb, var(--tk-c) 22%, var(--tk-panel)); }

/* Board: the measured canvas. Hairline grid, a red horizontal axis, a green vertical axis, dimension labels */
.tk-board { position: relative; overflow: hidden; min-height: 420px; background-color: var(--tk-void); background-image: linear-gradient(var(--tk-rule) 1px, transparent 1px), linear-gradient(90deg, var(--tk-rule) 1px, transparent 1px); background-size: var(--tk-grid) var(--tk-grid); background-position: -1px -1px; }
.tk-board__axis-x { position: absolute; left: 0; right: 0; height: 1px; background: var(--tk-axis-x); }
.tk-board__axis-y { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--tk-axis-y); }
.tk-dim-label { position: absolute; padding: 2px 6px; background: var(--tk-panel-2); color: var(--tk-chalk); font-family: var(--tk-mono); font-size: 11px; white-space: nowrap; }
.tk-block { position: absolute; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--tk-c); background: color-mix(in srgb, var(--tk-c) 10%, transparent); color: var(--tk-chalk); font-family: var(--tk-mono); font-size: 11px; letter-spacing: .03em; }
.tk-block b { color: var(--tk-c); font-weight: 500; text-transform: uppercase; }

/* Feature rows: a picture panel beside a key square, a heading and a short paragraph */
.tk-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 40px; }
.tk-feature + .tk-feature { border-top: var(--tk-hair); }
.tk-feature .tk-key--lg { margin-bottom: 18px; }
.tk-feature p { max-width: 360px; margin: 14px 0 0; color: var(--tk-dim); }
.tk-panel { position: relative; overflow: hidden; border: var(--tk-hair); background: var(--tk-panel); }

/* Cards and lists */
.tk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: var(--tk-hair); background: var(--tk-rule); }
.tk-cell { padding: 24px; background: var(--tk-void); }
.tk-cell h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 500; }
.tk-cell p { margin: 0; color: var(--tk-dim); font-size: var(--tk-text-small); }
.tk-spec { margin: 0; padding: 0; list-style: none; border-top: var(--tk-hair); }
.tk-spec li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: var(--tk-hair); font-size: var(--tk-text-small); }
.tk-spec li span:last-child { color: var(--tk-dim); font-family: var(--tk-mono); font-size: 12px; text-align: right; }

/* Download row: outlined link boxes with an icon slot and a chevron */
.tk-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin: 24px auto 0; }
.tk-linkbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: var(--tk-hair-2); font-family: var(--tk-mono); font-size: var(--tk-text-label); letter-spacing: var(--tk-tracking-label); text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tk-linkbox::after { content: "\203A"; margin-left: auto; text-decoration: none; }

/* Pricing */
.tk-toggle { display: inline-flex; border: var(--tk-hair-2); }
.tk-toggle button { padding: 8px 14px; border: 0; background: transparent; color: var(--tk-dim); font-family: var(--tk-mono); font-size: var(--tk-text-label); letter-spacing: var(--tk-tracking-label); text-transform: uppercase; cursor: pointer; }
.tk-toggle button[aria-pressed="true"] { background: var(--tk-chalk); color: var(--tk-void); }
.tk-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: var(--tk-hair); background: var(--tk-rule); }
.tk-plan { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; background: var(--tk-void); }
.tk-plan--pick { background: var(--tk-panel); box-shadow: inset 0 2px 0 var(--tk-c, var(--tk-sky)); }
.tk-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-price { font-size: 48px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.tk-price small { margin-left: 6px; color: var(--tk-dim); font-family: var(--tk-mono); font-size: 12px; letter-spacing: 0; }
.tk-checks { flex: 1; margin: 0; padding: 0; list-style: none; font-size: var(--tk-text-small); }
.tk-checks li { display: flex; gap: 10px; padding: 7px 0; border-top: var(--tk-hair); }
.tk-checks li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; background: var(--tk-c, var(--tk-sky)); }
.tk-table { width: 100%; border-collapse: collapse; font-size: var(--tk-text-small); }
.tk-table th, .tk-table td { padding: 12px 10px; border-bottom: var(--tk-hair); text-align: left; }
.tk-table th { color: var(--tk-dim); font-family: var(--tk-mono); font-size: var(--tk-text-label); font-weight: 400; letter-spacing: var(--tk-tracking-label); text-transform: uppercase; }
.tk-table td + td, .tk-table th + th { text-align: center; }
.tk-faq details { border-bottom: var(--tk-hair); }
.tk-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 17px; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; color: var(--tk-dim); font-family: var(--tk-mono); }
.tk-faq details[open] summary::after { content: "\2212"; }
.tk-faq p { margin: 0 0 16px; color: var(--tk-dim); }

/* Article */
.tk-article { font-size: 17px; line-height: 1.7; }
.tk-article h2 { margin: 48px 0 12px; font-size: 28px; font-weight: 400; letter-spacing: -.015em; line-height: 1.2; }
.tk-article p { margin: 0 0 20px; color: #d6d4ce; }
.tk-article blockquote { margin: 32px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--tk-orchid); color: var(--tk-chalk); font-size: 22px; font-weight: 300; line-height: 1.4; }
.tk-article code { padding: 1px 5px; background: var(--tk-panel-2); font-family: var(--tk-mono); font-size: .85em; }
.tk-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; color: var(--tk-dim); }
.tk-figure { margin: 36px 0; }
.tk-figure figcaption { margin-top: 10px; color: var(--tk-faint); }
.tk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tk-legend span { display: inline-flex; align-items: center; gap: 8px; }

/* Forms */
.tk-form { display: grid; gap: 16px; }
.tk-field { display: grid; gap: 6px; }
.tk-field label { color: var(--tk-dim); }
.tk-input, .tk-select { width: 100%; padding: 11px 12px; border: var(--tk-hair-2); border-radius: var(--tk-radius); background: var(--tk-panel); color: var(--tk-chalk); font: 400 15px var(--tk-sans); outline: none; }
.tk-input::placeholder { color: var(--tk-faint); }
.tk-input:focus, .tk-select:focus { border-color: var(--tk-sky); box-shadow: 0 0 0 1px var(--tk-sky); }
.tk-pickgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tk-pick { position: relative; }
.tk-pick input { position: absolute; opacity: 0; }
.tk-pick span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: var(--tk-hair-2); font-family: var(--tk-mono); font-size: var(--tk-text-label); letter-spacing: var(--tk-tracking-label); text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.tk-pick input:checked + span { border-color: var(--tk-c); background: color-mix(in srgb, var(--tk-c) 16%, transparent); }
.tk-pick input:focus-visible + span { outline: 1px solid var(--tk-sky); outline-offset: 2px; }
.tk-check { display: flex; gap: 10px; align-items: flex-start; color: var(--tk-dim); font-size: var(--tk-text-small); }
.tk-check input { accent-color: var(--tk-sky); margin-top: 4px; }

/* Footer */
.tk-footer { padding: 40px 0 48px; border-top: var(--tk-hair); color: var(--tk-dim); font-size: var(--tk-text-small); }
.tk-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.tk-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tk-footer a { text-decoration: none; }
.tk-footer a:hover { color: var(--tk-chalk); }

/* Phone */
@media (max-width: 760px) {
  .tk-nav { width: auto; margin-inline: 8px; }
  .tk-nav__links .tk-chip:nth-child(n+3) { display: none; }
  .tk-nav .tk-btn { margin-left: auto; }
  .tk-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tk-tab { justify-content: center; padding: 10px 0; font-size: 0; }
  .tk-feature, .tk-grid-3, .tk-plans { grid-template-columns: 1fr; }
  .tk-links, .tk-pickgrid { grid-template-columns: 1fr 1fr; }
  .tk-board { min-height: 360px; }
}
