/* Kiln's website: Kiln Studio's look as a workshop drawing sheet.
   Steel ground, blueprint grid, cyan dimension lines, safety-orange actions. */

@font-face { font-family: "Sora"; font-weight: 600 800; font-display: swap; src: url(fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-weight: 600 800; font-display: swap; src: url(fonts/sora-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --ground: #0b1015;
  --sheet: #10161c;
  --panel: #151b22;
  --raised: #1e2329;
  --line: #2c3640;
  --line-strong: #3b4754;
  --muted: #83909d;
  --text-soft: #9aa6b2;
  --text-body: #c7ced6;
  --text: #f4f6f8;
  --orange: #ff6a00;
  --orange-strong: #e85d00;
  --orange-text: #ff8a3d;
  --cyan: #61d5e0;
  --cyan-dim: rgba(97, 213, 224, 0.35);
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text-body);
  font: 400 16px/1.6 var(--ui);
  font-feature-settings: "tnum" 0, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The drawing sheet's grid: fine lines every 24 px, heavy every 120 px, fading out below the fold. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 71, 84, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 71, 84, 0.24) 1px, transparent 1px),
    linear-gradient(rgba(59, 71, 84, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 71, 84, 0.1) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 65% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 65% at 65% 0%, #000 25%, transparent 80%);
}

a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--text); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--orange); color: var(--ground); padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 16, 21, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.wordmark {
  font: italic 800 22px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); padding-bottom: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font: 700 16px/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--ground); box-shadow: 0 10px 30px -12px rgba(255, 106, 0, 0.7); }
.btn-primary:hover { background: #ff7a1a; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(21, 27, 34, 0.7); }
.btn-ghost:hover { border-color: var(--text-soft); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn small { font: 600 13px/1 var(--ui); opacity: 0.72; letter-spacing: 0; }

/* ---------- drawing vocabulary ---------- */
.sheet-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-label b { color: var(--orange-text); font-weight: 700; }
.sheet-label { white-space: nowrap; }
.sheet-label::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); flex: none; }
.dim { font-variant-numeric: tabular-nums; color: var(--cyan); font-weight: 600; }
.balloon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font: 700 15px/1 var(--display);
  flex: none;
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 18px 0 22px;
}
.hero h1 .line { white-space: nowrap; }
.hero h1 span:not(.line) { display: block; color: var(--orange); font-style: italic; padding-right: 0.08em; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-body); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-note .dim { font-weight: 700; }

/* The screenshot as a figure on the drawing, measured with dimension lines. */
.figure { position: relative; padding: 34px 0 30px 34px; }
.figure-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(21, 27, 34, 0.6);
}
.figure-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dimline { position: absolute; color: var(--cyan); font: 600 12px/1 var(--ui); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.dimline::before { content: ""; position: absolute; background: var(--cyan-dim); }
.dimline span { position: relative; background: var(--ground); padding: 3px 7px; border: 1px solid var(--cyan-dim); border-radius: 6px; }
.dimline.top { left: 34px; right: 0; top: 6px; display: flex; justify-content: center; }
.dimline.top::before { left: 0; right: 0; top: 9px; height: 1px; transform-origin: left; animation: draw-x 900ms 300ms var(--ease) both; }
.dimline.top::after { content: ""; position: absolute; inset: 3px 0 auto 0; height: 13px; border-left: 1px solid var(--cyan-dim); border-right: 1px solid var(--cyan-dim); }
.dimline.left { top: 34px; bottom: 30px; left: 4px; display: flex; align-items: center; }
.dimline.left::before { top: 0; bottom: 0; left: 9px; width: 1px; transform-origin: top; animation: draw-y 900ms 450ms var(--ease) both; }
.dimline.left::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 13px; border-top: 1px solid var(--cyan-dim); border-bottom: 1px solid var(--cyan-dim); }
.dimline.left span { writing-mode: vertical-rl; transform: rotate(180deg); }
.title-block {
  position: absolute;
  right: -10px;
  bottom: 0;
  display: grid;
  grid-template-columns: auto auto auto;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: 500 11px/1.2 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  box-shadow: 0 18px 40px -20px #000;
  animation: rise 700ms 700ms var(--ease) both;
}
.title-block div { padding: 8px 12px; border-left: 1px solid var(--line); }
.title-block div:first-child { border-left: 0; }
.title-block strong { display: block; margin-top: 4px; color: var(--text); font: 700 13px/1.1 var(--display); letter-spacing: 0; text-transform: none; }
.title-block .mcp strong { color: var(--orange-text); }

@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 700ms var(--ease) both; }
.reveal.d1 { animation-delay: 80ms; }
.reveal.d2 { animation-delay: 160ms; }
.reveal.d3 { animation-delay: 240ms; }
.reveal.d4 { animation-delay: 320ms; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin: 16px 0 14px; }
.section-head p { font-size: 18px; color: var(--text-soft); }
.rule { border-top: 1px solid var(--line); }

/* How it works: three callouts on a leader line. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(16, 22, 28, 0.8); }
.step { padding: 28px 26px 30px; border-left: 1px solid var(--line); position: relative; }
.step:first-child { border-left: 0; }
.step h3 { font-size: 21px; margin: 18px 0 10px; }
.step p { color: var(--text-soft); margin: 0; }
.step .quote {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px 12px 12px 4px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
}
.step .quote::before { content: "You  "; color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* The feature table: cells of a drawing's parts list. */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.part { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 16, 21, 0.6); }
.part .no { font: 600 12px/1 var(--ui); letter-spacing: 0.14em; color: var(--muted); }
.part h3 { font-size: 19px; margin: 12px 0 8px; }
.part p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.part.accent h3 { color: var(--orange-text); }

/* A wide figure with a caption. */
.showcase { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase .figure-frame img { aspect-ratio: 12 / 11; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-body); }
.checklist li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border: 1.5px solid var(--cyan); border-radius: 3px; background: linear-gradient(var(--cyan), var(--cyan)) center / 6px 6px no-repeat; }

/* Works with. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15px; background: var(--panel); }

/* Pricing: a title block. */
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: var(--sheet);
}
.price-main { padding: clamp(28px, 4vw, 44px); border-right: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 106, 0, 0.1), transparent 55%); }
.price { font: 800 clamp(56px, 7vw, 80px)/1 var(--display); color: var(--text); letter-spacing: -0.04em; margin: 18px 0 6px; }
.price sup { font-size: 0.36em; vertical-align: 1.5em; margin-right: 4px; color: var(--text-soft); letter-spacing: 0; }
.price-sub { color: var(--text-soft); margin-bottom: 26px; }
.price-main .btn { width: 100%; }
.price-main .fine { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.price-list { padding: clamp(28px, 4vw, 44px); }
.price-list h3 { font-size: 18px; margin-bottom: 6px; }
.price-list .checklist { margin-top: 16px; }
.price-free { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line-strong); color: var(--text-soft); font-size: 15px; }
.price-free strong { color: var(--text); }

/* FAQ. */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(21, 27, 34, 0.7); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font: 700 17px/1.35 var(--display); color: var(--text); display: flex; gap: 14px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-text); font-size: 22px; line-height: 1; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--text-soft); }
.faq details > div p:last-child { margin: 0; }

/* Closing call. */
.closer { text-align: center; }
.closer h2 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; letter-spacing: -0.04em; }
.closer h2 span { color: var(--orange); font-style: italic; padding-right: 0.12em; }
.closer .hero-actions { justify-content: center; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(44px, 7vw, 80px) 0 clamp(24px, 4vw, 36px); }
.page-head h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.04em; margin: 16px 0 14px; }
.page-head p { font-size: 18px; color: var(--text-soft); max-width: 40em; }
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose > * { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose code, kbd { font: 500 0.92em/1 ui-monospace, Consolas, monospace; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--text); }
.note {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--orange);
  background: var(--panel);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 22px 0;
  color: var(--text-body);
}
.note.cyan { border-left-color: var(--cyan); }
.note p:last-child { margin: 0; }
.draft { border-left-color: #e5b33b; }
.draft strong { color: #f0c75e; }

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--sheet);
  margin-bottom: 28px;
}
.download-card .os { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-strong); }
.download-card h2 { font-size: 22px; margin: 0 0 6px; }
.download-card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.download-card.soon { opacity: 0.62; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 18px 0; }
.specs dt { color: var(--muted); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.specs dd { margin: 0; color: var(--text); }
.numbered { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 18px; }
.numbered li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; counter-increment: n; }
.numbered li::before { content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--cyan); color: var(--cyan); font: 700 15px/1 var(--display); }
.numbered strong { color: var(--text); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--sheet); padding: 40px 0 34px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h4 { margin: 0 0 12px; font: 600 12px/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--text-soft); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { color: var(--muted); margin: 12px 0 0; max-width: 26em; }
.foot-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero .wrap, .showcase, .price-card { grid-template-columns: 1fr; }
  .price-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps, .parts { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .sheet-label { white-space: normal; flex-wrap: wrap; line-height: 1.5; }
  .sheet-label::after { display: none; }
  .site-head .btn { margin-left: auto; }
  .steps, .parts { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .figure { padding: 28px 0 0 26px; }
  .title-block { position: relative; right: auto; margin-top: 14px; grid-template-columns: 1fr 1fr 1fr; }
  .title-block div { padding: 7px 9px; }
  .download-card { grid-template-columns: auto 1fr; }
  .download-card .btn { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; gap: 2px; }
  .specs dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
