/* Northcraft concept kit: shared, theme-driven components for the example sites.
   Each site sets its own tokens on :root (colours, fonts, radius) and builds its own layout. */
:root {
  --bg: #f6f3ee; --bg2: #ffffff; --fg: #17161a; --muted: #6b6870; --line: rgba(23,22,26,.12);
  --accent: #2b5cff; --accent2: #ffb84d; --on-accent: #fff; --card: #fff;
  --fh: Georgia, serif; --fb: system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px; --max: 1200px; --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--fb); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--fh); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.w { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Concept label (always first in body) */
.nc-bar { position: relative; z-index: 60; background: #0b0a10; color: #f4efe6; font: 600 12.5px/1.4 system-ui, sans-serif; text-align: center; padding: 8px 14px; letter-spacing: .01em; }
.nc-bar a { color: #f1d9a4; }

/* Nav */
.k-nav { position: sticky; top: 0; z-index: 50; transition: background .4s, box-shadow .4s; }
.k-nav.scrolled { background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.k-nav .w { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; }
.k-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--fh); letter-spacing: -.02em; }
.k-brand i { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); font-style: normal; font-size: 15px; }
.k-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.k-links a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.k-links a:hover { opacity: 1; }
.k-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: none; cursor: pointer; }
.k-burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform .3s; }
.k-nav.open .k-burger span:first-child { transform: translateY(3px) rotate(45deg); }
.k-nav.open .k-burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Buttons */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15.5px; background: var(--accent); color: var(--on-accent); transition: transform .3s var(--ease), box-shadow .3s, background .3s; box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.k-btn:hover { transform: translateY(-2px); }
.k-btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.k-btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.k-btn.alt { background: var(--fg); color: var(--bg); box-shadow: none; }
.k-btn.sm { padding: 11px 18px; font-size: 14px; }

/* Type */
.k-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--fb); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.k-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.k-h1 { font-size: clamp(46px, 7vw, 104px); }
.k-h2 { font-size: clamp(34px, 4.6vw, 64px); }
.k-h1 em, .k-h2 em { font-style: italic; color: var(--accent); }
.k-lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 54ch; }
.k-sec { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.k-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.k-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Hero helpers */
.k-hero { position: relative; overflow: hidden; isolation: isolate; }
.k-hero canvas.k-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.k-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; background: color-mix(in oklab, var(--bg2) 85%, transparent); border: 1px solid var(--line); }
.k-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: k-ping 2s infinite; }
.k-live.off::before { background: #ef4444; animation: none; }
@keyframes k-ping { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
.k-float { background: color-mix(in oklab, var(--bg2) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 70px -30px rgba(0,0,0,.35); padding: 20px; }

/* Cards, grids, chips */
.k-grid { display: grid; gap: 16px; }
.k-g2 { grid-template-columns: repeat(2, 1fr); } .k-g3 { grid-template-columns: repeat(3, 1fr); } .k-g4 { grid-template-columns: repeat(4, 1fr); }
.k-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.k-card.hov:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.k-card h3 { font-size: 23px; margin-bottom: 8px; }
.k-card p { color: var(--muted); font-size: 15.5px; }
.k-price { font: 600 15px/1 var(--fb); color: var(--accent); margin-top: 14px; display: block; }
.k-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--card)); color: var(--accent); margin-bottom: 18px; }
.k-ic svg { width: 24px; height: 24px; }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip { border: 1.5px solid var(--line); background: var(--card); padding: 10px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: .25s var(--ease); }
.k-chip:hover { border-color: color-mix(in oklab, var(--fg) 40%, transparent); }
.k-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.k-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.k-stat b { display: block; font: 600 clamp(34px, 4vw, 52px)/1 var(--fh); letter-spacing: -.03em; }
.k-stat span { color: var(--muted); font-size: 14px; }

/* Tool panel (calculators, quizzes, builders) */
.k-tool { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.k-panel { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.4); padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; align-content: start; }
.k-panel.dark { background: var(--fg); color: var(--bg); border-color: transparent; }
.k-panel.dark .k-muted { color: color-mix(in oklab, var(--bg) 65%, transparent); }
.k-label { font: 600 12.5px/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.k-panel.dark .k-label { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.k-big { font: 600 clamp(44px, 5vw, 68px)/1 var(--fh); letter-spacing: -.03em; }
.k-muted { color: var(--muted); }
.k-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
.k-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: pointer; }
.k-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); cursor: pointer; }
.k-input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .2s; }
.k-input:focus { outline: none; border-color: var(--accent); }
.k-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.k-row b { font-weight: 600; }
.k-flash { animation: k-flash .5s var(--ease); }
@keyframes k-flash { from { opacity: .3; transform: translateY(6px); } }

/* Accordion */
.k-acc { border-top: 1px solid var(--line); }
.k-acc details { border-bottom: 1px solid var(--line); }
.k-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 600 clamp(18px, 1.8vw, 22px)/1.25 var(--fh); }
.k-acc summary::-webkit-details-marker { display: none; }
.k-acc summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font: 400 20px/1 var(--fb); transition: transform .4s var(--ease), background .3s; }
.k-acc details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.k-acc details p { padding: 0 50px 22px 0; color: var(--muted); }

/* Booking slots */
.k-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.k-days button, .k-times button { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 4px; cursor: pointer; font-size: 13px; line-height: 1.25; transition: .2s; }
.k-days button b { display: block; font: 600 20px/1 var(--fh); margin-top: 2px; }
.k-times { display: flex; flex-wrap: wrap; gap: 6px; }
.k-times button { padding: 10px 14px; font-size: 14px; }
.k-days button[aria-pressed="true"], .k-times button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.k-days button:disabled, .k-times button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Marquee */
.k-marq { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.k-marq > div { display: flex; gap: 46px; width: max-content; animation: k-marq 36s linear infinite; font: 500 clamp(18px, 2vw, 24px)/1 var(--fh); color: var(--muted); }
.k-marq span::after { content: "✦"; margin-left: 46px; color: var(--accent); font-size: .7em; }
@keyframes k-marq { to { transform: translateX(-50%); } }

/* CTA band + footer */
.k-cta { border-radius: calc(var(--r) * 1.8); padding: clamp(40px, 6vw, 80px); background: var(--fg); color: var(--bg); display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.k-cta .k-h2 em { color: var(--accent2); }
.k-cta p { color: color-mix(in oklab, var(--bg) 70%, transparent); margin-top: 14px; }
.k-foot { padding: 50px 0 110px; color: var(--muted); font-size: 14px; }
.k-foot .w { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }

/* Toast + demo note */
.k-toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 160%; z-index: 80; background: var(--fg); color: var(--bg); padding: 14px 20px; border-radius: 16px; font-weight: 600; font-size: 15px; box-shadow: 0 20px 40px rgba(0,0,0,.3); transition: translate .6s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.k-toast.on { translate: -50% 0; }
.k-demo { font-size: 12.5px; color: var(--muted); }

/* Mobile call bar */
.k-mbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; display: none; gap: 8px; }
.k-mbar a { flex: 1; }

/* Reveal */
[data-r] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-r].in { opacity: 1; transform: none; }
[data-r="2"] { transition-delay: .08s; } [data-r="3"] { transition-delay: .16s; } [data-r="4"] { transition-delay: .24s; }

@media (max-width: 960px) {
  .k-links, .k-nav .w > .k-btn { display: none; }
  .k-burger { display: block; }
  .k-nav.open .k-links { display: grid; position: absolute; top: 100%; left: 12px; right: 12px; gap: 4px; padding: 12px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.3); }
  .k-nav.open .k-links a { display: block; padding: 12px 14px; font-size: 18px; }
  .k-nav .w { position: relative; }
  .k-g3, .k-g4 { grid-template-columns: repeat(2, 1fr); }
  .k-tool, .k-cta { grid-template-columns: 1fr; }
  .k-stats { grid-template-columns: repeat(2, 1fr); }
  .k-mbar { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .w { width: calc(100% - 32px); }
  .k-g2, .k-g3, .k-g4 { grid-template-columns: 1fr; }
  .k-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .k-acc details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-r] { opacity: 1; transform: none; }
}
