/* ============================================================
   Zentra - a warm Scandinavian landing page
   Fonts: Figtree (UI), IBM Plex Mono (code), Lora (Manuscript)
   ============================================================ */

@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibmplexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibmplexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --c-bg: #f4f1e9;
  --c-bg-2: #ede9de;
  --c-surface: #fbfaf5;
  --c-surface-2: #efede3;
  --c-ink: #211b14;
  --c-ink-2: #5b5f52;
  --c-ink-3: #8b9183;
  --c-line: #dcd7c9;
  --c-accent: #3f5e46;
  --c-accent-hover: #2f4a37;
  --c-accent-ink: #f5f3ea;
  --c-accent-t: #2c4d33;
  --c-blue-tint: #e8ecf1;
  --c-clay-tint: #f0e1d5;
  --c-sprint: #20291f;
  --shadow-1: 0 1px 2px rgba(46, 37, 18, .08);
  --shadow-2: 0 1px 2px rgba(46, 37, 18, .06), 0 24px 52px -28px rgba(46, 37, 18, .3);
  --shadow-hearth: 0 30px 70px -40px rgba(30, 44, 30, .55);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', 'Courier New', monospace;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
}

html[data-theme='dark'] {
  --c-bg: #1a1d17;
  --c-bg-2: #20241c;
  --c-surface: #232720;
  --c-surface-2: #1c201a;
  --c-ink: #eceae0;
  --c-ink-2: #a9af9d;
  --c-ink-3: #7f8778;
  --c-line: #31362b;
  --c-accent: #55734f;
  --c-accent-hover: #4a663f;
  --c-accent-ink: #f4f2e9;
  --c-accent-t: #a5c29b;
  --c-blue-tint: #232b33;
  --c-clay-tint: #2b2520;
  --c-sprint: #14170f;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 52px -28px rgba(0, 0, 0, .6);
  --shadow-hearth: 0 30px 80px -30px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.mono,
kbd,
code,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(63, 94, 70, .22);
  color: var(--c-ink);
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* layout helpers */
.shell {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.shell--narrow {
  max-width: 760px;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  position: relative;
}

.section--tint {
  background: var(--c-bg-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent-t);
  margin: 0 0 1.25rem;
}

.eyebrow--light {
  color: #cfdcc2;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -9999px;
  left: 1rem;
  z-index: 200;
  background: var(--c-surface);
  color: var(--c-ink);
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: background-color .4s var(--ease);
}

.nav__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: 1.15rem;
  margin-right: auto;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2efe6;
  border: 1px solid rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  padding: 4px;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  font-size: .975rem;
  color: var(--c-ink-2);
}
.nav__links a {
  transition: color .2s var(--ease);
}
.nav__links a:hover {
  color: var(--c-ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--c-ink-2);
  border: 1px solid transparent;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.theme-toggle:hover {
  color: var(--c-ink);
  background: var(--c-surface-2);
}
.theme-toggle__sun,
.theme-toggle__moon {
  grid-area: 1 / 1;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
html[data-theme='dark'] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(.5);
}
html[data-theme='dark'] .theme-toggle__moon {
  opacity: 1;
  transform: none;
}
.theme-toggle__sun {
  opacity: 1;
}
.theme-toggle__moon {
  opacity: 0;
  transform: rotate(90deg) scale(.5);
}

/* nav menu (mobile) */
.nav__menu {
  display: none;
}
.nav__toggle {
  display: none;
}

/* =================================================================== */
/* buttons */
/* =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -.01em;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
    color .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  box-shadow: var(--shadow-1);
}
.btn--primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.btn--ghost {
  border-color: var(--c-line);
  color: var(--c-ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--c-ink-2);
  transform: translateY(-2px);
}

.btn--sm {
  padding: .6rem 1rem;
  font-size: .925rem;
}
.btn--lg {
  padding: 1.05rem 1.85rem;
  font-size: 1.05rem;
}

.btn--cream {
  background: #f6f2e7;
  color: #20302b;
  box-shadow: var(--shadow-1);
}
.btn--cream:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  background: #fffdf6;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--c-accent-t);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .3s var(--ease);
}
.link-arrow:hover {
  background-size: 100% 1px;
}
.link-arrow--lg {
  font-size: 1.05rem;
}

/* ===================================================================
   hero
   =================================================================== */
.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 620;
  margin: 0 0 1.4rem;
}
.hero__title br {
  display: none;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--c-ink-2);
  max-width: 34ch;
  margin: 0 0 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero__visual {
  position: relative;
}

.hero-frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.hero-frame img {
  width: 100%;
  height: auto;
}

/* facts strip */
.facts {
  grid-column: 1 / -1;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.facts__item {
  padding-left: 1.25rem;
  border-left: 1px solid var(--c-line);
}
.facts__item:first-child {
  padding-left: 0;
  border-left: 0;
}
.facts dt {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .15rem;
}
.facts dd {
  margin: 0;
  font-size: .9rem;
  color: var(--c-ink-3);
}

/* ===================================================================
   section headers
   =================================================================== */
.section-head {
  max-width: 34rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 620;
  margin: 0 0 1rem;
}
.section__sub {
  color: var(--c-ink-2);
  font-size: 1.05rem;
  margin: 0;
}

/* ===================================================================
   feature bento
   =================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.bento__cell {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bento__cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.cell-main {
  grid-column: span 7;
}
.cell-toolbar {
  grid-column: span 5;
  background: var(--c-surface-2);
}
.bento-code {
  grid-column: span 5;
  background: #1d231d;
  border-color: rgba(255, 255, 255, .08);
}
.bento-tpl {
  grid-column: span 7;
  background: var(--c-blue-tint);
}

.cell__text h3 {
  font-size: 1.35rem;
  letter-spacing: -.02em;
  font-weight: 620;
  margin: 0 0 .5rem;
}
.cell__text p {
  color: var(--c-ink-2);
  font-size: .99rem;
  margin: 0;
}
.cell__text--on-dark h3 {
  color: #f2efE4;
}
.cell__text--on-dark p {
  color: #a9b1a4;
}

/* demo: split source + preview */
.demo {
  position: relative;
  margin-top: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
  min-height: 300px;
}

.split__pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.split__pane + .split__pane {
  border-left: 1px solid var(--c-line);
}

.split__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  font-size: .72rem;
  font-family: var(--font-mono);
  color: var(--c-ink-3);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.split__file::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-right: .5rem;
  vertical-align: 1px;
}

.split__code {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--c-ink);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}
.split__code:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--c-accent);
  border-radius: 4px;
}

.split__preview {
  flex: 1;
  padding: 1.1rem 1.2rem;
  background: var(--c-surface);
  font-size: .85rem;
  line-height: 1.6;
  overflow: auto;
}
.split__preview .m-h1 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.02em;
  margin: 0 0 .55rem;
}
.split__preview .m-h2 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 1rem 0 .4rem;
}
.split__preview .m-h3 {
  font-size: .95rem;
  font-weight: 650;
  margin: .9rem 0 .3rem;
}
.split__preview .m-p {
  margin: 0 0 .7rem;
}
.split__preview .m-li {
  margin: 0 0 .25rem 1.1rem;
  list-style: disc;
  padding-left: .25rem;
}
.split__preview .m-b {
  font-weight: 650;
}
.split__preview .m-i {
  font-style: italic;
}
.split__preview .m-code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: 5px;
  padding: .05em .35em;
}
.split__preview .m-quote {
  border-left: 3px solid var(--c-accent);
  padding-left: .75rem;
  margin: .5rem 0;
  color: var(--c-ink-2);
}
.split__preview ul,
.split__preview ol {
  margin: .2rem 0 .6rem;
  padding-left: 1.25rem;
}
.split__preview .m-li {
  margin: 0 0 .25rem;
}
.split__preview s {
  text-decoration: line-through;
  color: var(--c-ink-3);
}

/* floating demo toolbar */
.demo-toolbar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .3rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.demo-toolbar button {
  min-width: 34px;
  height: 32px;
  padding: 0 .5rem;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.demo-toolbar button:hover {
  color: var(--c-ink);
  background: var(--c-surface-2);
}
.demo-toolbar button.is-on {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.demo-toolbar__sep {
  width: 1px;
  height: 18px;
  background: var(--c-line);
  margin-inline: .25rem;
}

/* toolbar vignette */
.toolbar-vignette {
  position: relative;
  margin-top: .5rem;
}
.tv-pill {
  display: flex;
  align-items: center;
  gap: .2rem;
  width: max-content;
  padding: .3rem;
  border-radius: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-2);
}
.tv-chip {
  min-width: 30px;
  height: 28px;
  padding: 0 .45rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--c-ink-2);
  background: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tv-chip.is-on {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.tv-sep {
  width: 1px;
  height: 16px;
  background: var(--c-line);
  margin-inline: .2rem;
}
.tv-text {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  color: var(--c-ink-2);
  line-height: 1.6;
}
.tv-em {
  font-weight: 650;
  color: var(--c-ink);
}
.tv-beam {
  position: absolute;
  bottom: -1px;
  right: 1.2rem;
  color: var(--c-accent);
}

/* checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .93rem;
  color: var(--c-ink-2);
}
.bento-code .checklist li {
  color: #a9b1a4;
}
.checklist li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--c-accent-t);
  line-height: 1.5;
}
.bento-code .checklist li::before {
  color: #8fa98b;
}

/* code card */
.code-card {
  margin-top: auto;
  border-radius: var(--r-md);
  background: #13160f;
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 1.15rem 1.25rem;
  overflow: auto;
}
.code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.75;
  color: #cfd6c6;
  white-space: pre;
}
.code .kw { color: #9fd6a8; }
.code .fn { color: #e6c58a; }
.code .va { color: #9cc6e0; }
.code .ty { color: #c7a8de; }
.code .str { color: #a8c98e; }
.code .et { color: #e6c58a; }
.code .co { color: #6d766a; font-style: italic; }

/* template switcher device */
.switcher {
  margin-top: auto;
  display: grid;
  gap: 1rem;
}
.switcher__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.sw-chip {
  padding: .45rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  transition: background-color .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), transform .2s var(--ease);
}
.sw-chip:hover {
  color: var(--c-ink);
  transform: translateY(-1px);
}
.sw-chip.is-on {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}

.demo-window {
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  padding: 1.25rem 1.4rem;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  min-height: 190px;
  
}
.demo-window .img-container{
  width: 100%;
  height: 200px;
  overflow: hidden;
}
/* ===================================================================
   template showcase
   =================================================================== */
.showcase {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.show-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.show-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}
.show-card:nth-child(1) { grid-column: span 6; }
.show-card:nth-child(2) { grid-column: span 6; }
.show-card:nth-child(3) { grid-column: span 4; }
.show-card:nth-child(4) { grid-column: span 4; }
.show-card:nth-child(5) { grid-column: span 4; }

.tpl-doc {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.tpl-doc img{
  width: 100%;
  height: 100%;
}

.show-meta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-surface) 55%, transparent);
}
.show-name {
  font-weight: 650;
  font-size: .99rem;
  letter-spacing: -.01em;
}
.show-desc {
  font-size: .85rem;
  color: var(--c-ink-3);
}
.show-desc {
  text-align: right;
}

.showcase__cta {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.showcase__cta .link-arrow {
  color: var(--c-accent-t);
}

/* ===================================================================
   how it works
   =================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.step {
  position: relative;
  padding-top: 1.4rem;
  border-top: 1px solid var(--c-line);
}
.step__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--c-accent-t);
  display: block;
  margin-bottom: .9rem;
}
.step h3 {
  font-size: 1.2rem;
  letter-spacing: -.01em;
  font-weight: 620;
  margin: 0 0 .5rem;
}
.step p {
  margin: 0;
  color: var(--c-ink-2);
  font-size: .98rem;
}
.step__hint {
  margin-top: 1rem !important;
  font-size: .78rem;
  color: var(--c-ink-3);
}
.step__hint.mono {
  font-family: var(--font-mono);
}

/* ===================================================================
   install
   =================================================================== */
.install__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.install-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-1);
}
.install-card h3 {
  font-size: 1.2rem;
  letter-spacing: -.01em;
  font-weight: 620;
  margin: 0 0 1.1rem;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
  counter-reset: inst;
}
.install-steps li {
  position: relative;
  padding-left: 2.1rem;
  font-size: .98rem;
  color: var(--c-ink-2);
  counter-increment: inst;
}
.install-steps li::before {
  content: counter(inst, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .05rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-accent-t);
}
.install-steps kbd {
  margin-left: .35rem;
}

kbd {
  font-family: var(--font-mono);
  font-size: .76rem;
  padding: .22rem .5rem;
  border-radius: 7px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-bottom-width: 2px;
  color: var(--c-ink);
  white-space: nowrap;
}

.install-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .84rem;
  line-height: 1.85;
  background: #12150e;
  color: #c9d2bc;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
}

.shortcuts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}
.shortcuts__label {
  font-weight: 620;
  letter-spacing: -.01em;
  color: var(--c-ink);
  margin: 0;
}
.shortcuts__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.shortcuts__chips li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: var(--c-ink-2);
}
.shortcuts__chips li span {
  font-size: .85rem;
}

.install__cta {
  text-align: center;
  margin: 0 0 .8rem;
}
.install__note {
  text-align: center;
  font-size: .85rem;
  color: var(--c-ink-3);
  margin: 0;
}

/* ===================================================================
   FAQ
   =================================================================== */
.faq {
  display: grid;
  gap: .75rem;
}
.faq__item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: box-shadow .3s var(--ease);
}
.faq__item:hover {
  box-shadow: var(--shadow-1);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 620;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--c-accent-t);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__body {
  padding: 0 1.4rem;
}
.faq__body p {
  margin: 0 0 1.2rem;
  color: var(--c-ink-2);
  font-size: .98rem;
}

/* ===================================================================
   final hearth
   =================================================================== */
.section--hearth {
  padding-top: 0;
}
.hearth {
  text-align: center;
  border-radius: calc(var(--r-lg) * 1.5);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(130% 130% at 50% 0%, #4a664e 0%, #33523a70 45%, #243d2d 100%),
    var(--c-accent);
  color: #f3efe4;
  box-shadow: var(--shadow-hearth);
}
.hearth__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 620;
  margin: 0 auto 1.2rem;
  max-width: 22ch;
}
.hearth__sub {
  font-size: 1.08rem;
  color: #cfd9c6;
  max-width: 44ch;
  margin: 0 auto 2.2rem;
}
.hearth__cta {
  margin: 0 0 .9rem;
}
.hearth__note {
  font-size: .85rem;
  color: #a9b8a2;
  margin: 0;
}

/* ===================================================================
   footer
   =================================================================== */
.footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer__brand .footer__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2efe6;
  border: 1px solid rgba(0, 0, 0, .08);
  padding: 5px;
  margin-bottom: 1rem;
}
.footer__brand .footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer__tagline {
  color: var(--c-ink-2);
  font-size: .97rem;
  max-width: 30ch;
  margin: 0 0 1.2rem;
}
.footer__badge {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--c-ink-3);
  letter-spacing: .02em;
  margin: 0;
}
.footer__col h4 {
  font-size: .8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-ink-3);
  margin: 0 0 1rem;
}
.footer__col {
  display: grid;
  gap: .55rem;
  align-content: start;
}
.footer__col a {
  font-size: .95rem;
  color: var(--c-ink-2);
  transition: color .2s var(--ease);
}
.footer__col a:hover {
  color: var(--c-ink);
}
.footer__legal {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--c-line);
}
.footer__legal p {
  font-size: .82rem;
  color: var(--c-ink-3);
  margin: 0;
}

/* ===================================================================
   reveal on scroll
   =================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--rd, 0s);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* hero load-in cascade */
html.js .hero .reveal {
  --rd: 0s;
}
html.js .hero .reveal:nth-child(2) { --rd: .08s; }
html.js .hero .reveal:nth-child(3) { --rd: .16s; }
html.js .hero .reveal:nth-child(4) { --rd: .24s; }

/* gentle group stagger */
html.js .bento > *:nth-child(2) { --rd: .07s; }
html.js .bento > *:nth-child(3) { --rd: .14s; }
html.js .bento > *:nth-child(4) { --rd: .21s; }
html.js .showcase > *:nth-child(2) { --rd: .06s; }
html.js .showcase > *:nth-child(3) { --rd: .12s; }
html.js .showcase > *:nth-child(4) { --rd: .18s; }
html.js .showcase > *:nth-child(5) { --rd: .24s; }
html.js .steps > *:nth-child(2) { --rd: .1s; }
html.js .steps > *:nth-child(3) { --rd: .2s; }
html.js .faq > *:nth-child(2) { --rd: .04s; }
html.js .faq > *:nth-child(3) { --rd: .08s; }
html.js .faq > *:nth-child(4) { --rd: .12s; }
html.js .faq > *:nth-child(5) { --rd: .16s; }
html.js .install__grid > *:nth-child(2) { --rd: .1s; }

/* ===================================================================
   responsive
   =================================================================== */
@media (max-width: 1024px) {
  .cell-main,
  .cell-toolbar {
    grid-column: span 12;
  }
  .bento-code,
  .bento-tpl {
    grid-column: span 12;
  }
  .show-card:nth-child(1),
  .show-card:nth-child(2),
  .show-card:nth-child(3),
  .show-card:nth-child(4),
  .show-card:nth-child(5) {
    grid-column: span 6;
  }
  .show-card:nth-child(3) {
    grid-column: span 6;
  }
  .show-card:nth-child(4) {
    grid-column: span 6;
  }
  .show-card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }
  .hero__title br {
    display: block;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 1rem;
  }
  .facts__item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .show-card:nth-child(n) {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
  .demo-toolbar {
    position: static;
    margin-top: -.5rem;
    max-width: 100%;
    overflow-x: auto;
  }
  .split {
    min-height: 260px;
  }
  .split__code {
    font-size: .72rem;
  }
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 0 9px;
  }
  .nav__toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--c-ink-2);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav[data-open] .nav__toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .nav[data-open] .nav__toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .nav__menu {
    display: grid;
    gap: .2rem;
    padding: .8rem clamp(1.25rem, 4vw, 2.5rem) 1.2rem;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
  }
  .nav__menu[hidden] {
    display: none;
  }
  .nav__menu a {
    padding: .7rem .2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--c-line);
    font-size: 1rem;
  }
  .install__grid {
    grid-template-columns: 1fr;
  }
  .facts__item {
    padding-left: .9rem;
  }
}