/* ============================================================
   KitColorsPro — shared dark design system for inner pages.
   Mirrors the home page (index.html) look: same tokens, Sora
   display font, violet accent, swatch squares, soft glows.
   ============================================================ */

:root {
  --bg-0: #0F1118;
  --bg-1: #151823;
  --bg-2: #1C2130;
  --bg-3: #232A3D;
  --line: #272E41;
  --line-soft: #1F2534;
  --paper: #F4F5FA;
  --mist: #A9AFC3;
  --faint: #767D93;
  --violet: #7B61FF;
  --violet-hi: #9B85FF;
  --violet-deep: #5B45CC;
  --sw-plum: #762189;
  --sw-olive: #8D8B31;
  --sw-green: #428C3E;
  --sw-orchid: #BE64D3;
  --sw-straw: #D9D670;
  --shot-bg: #16181F;
  --display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-btn: 12px;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg-0);
  color: var(--mist);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }

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

a { color: var(--violet-hi); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--paper); line-height: 1.15; letter-spacing: -0.015em; }

.wrap, .container { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 17, 24, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
  height: auto; padding: 0;
}
.nav.scrolled { border-bottom-color: var(--line-soft); background: rgba(15, 17, 24, 0.92); }

.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; gap: 20px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  text-decoration: none; color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--mist); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }

.nav-cta {
  font-family: var(--display);
  background: var(--violet); color: #fff; padding: 9px 18px; border-radius: var(--radius-btn);
  text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(123, 97, 255, 0);
}
.nav-cta:hover { background: var(--violet-hi); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(123, 97, 255, .7); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--paper); }
.nav-toggle svg { width: 24px; height: 24px; display: block; color: var(--paper); }

#lang-switcher { position: relative; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background-color: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 26px 7px 10px; font-size: 13px; font-weight: 500;
  color: var(--paper); cursor: pointer; font-family: var(--body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A9AFC3' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 12px;
  transition: border-color .2s;
}
.lang-select:hover, .lang-select:focus { border-color: var(--violet); outline: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 22px 0 0; font-size: 14px; color: var(--faint); position: relative; z-index: 1; }
.breadcrumb a { color: var(--faint); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb span { color: var(--faint); margin: 0 8px; }
.breadcrumb-current { color: var(--mist); font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.hero { position: relative; padding: 56px 0 48px; text-align: center; overflow: visible; }

.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
}
.hero-blob.b1 { width: 520px; height: 520px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(123,97,255,.22), transparent 65%); }
.hero-blob.b2 { width: 420px; height: 420px; left: -140px; top: 60px; background: radial-gradient(circle, rgba(190,100,211,.12), transparent 65%); }

.hero > :not(.hero-blob) { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 500; color: var(--mist);
  margin-bottom: 20px;
}
.hero-eyebrow i { width: 12px; height: 12px; border-radius: 4px; }

.hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 20em; margin-left: auto; margin-right: auto;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet) 0%, var(--sw-orchid) 55%, var(--violet-hi) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-subtitle { font-size: 17.5px; color: var(--mist); max-width: 44em; margin: 0 auto 30px; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-btn);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hi); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(123, 97, 255, .7); }
.btn-secondary {
  background: var(--bg-2); color: var(--paper); border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--violet); background: var(--bg-3); transform: translateY(-2px); }

/* ---------- Section scaffolding ---------- */
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
.sec-eyebrow i { width: 12px; height: 12px; border-radius: 4px; }

.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.sec-head p { font-size: 17px; }

/* Legacy feature-page section headers */
.workflow-section { padding: 64px 0; }
.workflow-section + .workflow-section { border-top: 1px solid var(--line-soft); }
.workflow-header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.workflow-header h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.workflow-header p { color: var(--mist); font-size: 16.5px; line-height: 1.7; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.section-header h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-header p { color: var(--mist); }

/* ---------- Screenshot strips (feature pages) ---------- */
.screenshot-strip { max-width: var(--wrap); margin: 0 auto; padding: 0; }
.screenshot-scroll {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 0 20px; padding-left: 24px;
  scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent;
}
.screenshot-scroll::-webkit-scrollbar { height: 8px; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 99px; }
.screenshot-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshot-scroll::after { content: ''; flex: 0 0 24px; }

.screenshot-card {
  flex: 0 0 auto; width: 250px; scroll-snap-align: start;
  background: var(--bg-1);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s;
}
.screenshot-card:hover { transform: translateY(-6px); border-color: rgba(123,97,255,.45); }
.screenshot-card img { width: 100%; height: auto; display: block; background: var(--shot-bg); }
.screenshot-content { padding: 16px 16px 18px; border-top: 1px solid var(--line-soft); }
.screenshot-content h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.screenshot-content p { font-size: 13.5px; color: var(--faint); line-height: 1.55; }

/* ---------- Benefits ---------- */
.benefits-section { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.benefit-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .25s, transform .25s;
}
.benefit-item:hover { border-color: rgba(123,97,255,.45); transform: translateY(-3px); }
.benefit-item svg { width: 22px; height: 22px; color: var(--violet-hi); flex-shrink: 0; transform: translateY(2px); }
.benefit-item p { color: var(--mist); margin: 0; font-size: 15.5px; }

/* ---------- FAQ ---------- */
/* Home-style markup (.faq-item > .faq-q + .faq-a) */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-wrap .faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-wrap .faq-item:first-child { border-top: 1px solid var(--line-soft); }

.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; text-align: left;
  font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--paper);
}
.faq-q .ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .3s, background .3s, border-color .3s;
}
.faq-q .ico svg { width: 13px; height: 13px; color: var(--mist); transition: color .3s; }
.faq-item.open .ico { transform: rotate(45deg); background: var(--violet); border-color: var(--violet); }
.faq-item.open .ico svg { color: #fff; }

.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 40px 22px 4px; font-size: 15.5px; color: var(--mist); }

.faq-more { text-align: center; margin-top: 30px; font-size: 15px; }

/* Legacy feature-page markup (.faq-item > .faq-question + .faq-answer) */
.faq-section { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.faq-list { max-width: 760px; margin: 32px auto 0; }
.faq-list .faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-list .faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-question {
  width: 100%; background: none; border: 0; cursor: pointer;
  padding: 22px 4px; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--paper);
}
.faq-question svg { width: 18px; height: 18px; color: var(--faint); flex: 0 0 auto; transition: transform .3s, color .3s; }
.faq-item.active .faq-question svg { transform: rotate(180deg); color: var(--violet-hi); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 40px 22px 4px; color: var(--mist); margin: 0; font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta-section { padding: 64px 0 80px; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #241A54, #12141F 60%), var(--bg-1);
  border: 1px solid rgba(123, 97, 255, .4);
  border-radius: 28px;
  padding: 64px 36px;
  text-align: center;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 240px at 18% 0%, rgba(123, 97, 255, .28), transparent 65%),
    radial-gradient(420px 220px at 85% 100%, rgba(190, 100, 211, .18), transparent 65%);
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.cta-box p { max-width: 560px; margin: 0 auto 30px; font-size: 17px; color: var(--mist); }
.cta-note { margin-top: 22px; font-size: 13.5px; color: var(--faint); }

.cta-strip { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; }
.cta-strip i { width: 26px; height: 10px; border-radius: 4px; }

.hero-badges, .cta-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-badges a, .cta-badges a { transition: transform .2s, filter .2s; }
.hero-badges a:hover, .cta-badges a:hover { transform: translateY(-2px); filter: brightness(1.12); }
.hero-badges img, .cta-badges img { height: 50px; width: auto; }

/* ---------- Library: brand header ---------- */
.brand-header { display: flex; align-items: center; gap: 24px; padding: 40px 0 36px; }
.brand-header img {
  width: 80px; height: 80px; border-radius: 18px; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.7);
  background: var(--bg-2);
}
.brand-header-info h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 4px; }
.brand-header-info p { color: var(--faint); font-size: 15.5px; }

/* ---------- Library: subcollections & color cards ---------- */
.subcollection {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.subcollection:hover { border-color: rgba(123,97,255,.4); }

.subcollection-header { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.subcollection-header img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  background: var(--bg-2); border: 1px solid var(--line-soft);
}
.subcollection-info { flex: 1; min-width: 0; }
.subcollection-info h2 { font-size: 16.5px; font-weight: 600; margin-bottom: 2px; letter-spacing: -0.01em; }
.subcollection-info .meta { font-size: 13px; color: var(--faint); display: flex; gap: 12px; flex-wrap: wrap; }

.colors-row {
  display: flex; gap: 10px; padding: 4px 20px 0;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.colors-row::-webkit-scrollbar { display: none; }

.color-card {
  flex: 0 0 100px; scroll-snap-align: start;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: 12px; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.color-card:hover { transform: translateY(-2px); border-color: var(--line); }

.color-swatch { width: 100%; height: 64px; position: relative; }
.color-swatch .finish-badge {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 4px; text-transform: capitalize;
}

.color-info { padding: 8px; }
.color-info .color-code { font-size: 11px; font-weight: 600; color: var(--paper); margin-bottom: 1px; font-family: var(--mono); }
.color-info .color-name { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.colors-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 16px; }
.colors-note { font-size: 13px; color: var(--faint); margin: 0; }

.explore-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--violet); color: #fff;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-btn);
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.explore-btn:hover { background: var(--violet-hi); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(123, 97, 255, .7); }
.explore-btn svg { width: 14px; height: 14px; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 72px; }
.prose h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 48px 0 10px; }
.prose .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 21px; font-weight: 700; margin: 38px 0 12px; letter-spacing: -0.015em; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--violet-hi); }
.prose a { color: var(--violet-hi); }
.prose strong, .prose b { color: var(--paper); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 32px 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 36px;
  background: var(--bg-1);
  font-size: 14.5px;
  text-align: left;
  color: var(--mist);
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 38px; }

.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--faint); font-size: 14px; }

.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links nav { display: grid; gap: 10px; align-content: start; }
.footer-links h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; font-weight: 600; }
.footer-links a { color: var(--mist); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--paper); }

.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 13.5px;
}
.footer-swatches { display: flex; gap: 5px; }
.footer-swatches i { width: 14px; height: 14px; border-radius: 5px; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-1); flex-direction: column; padding: 22px 24px; gap: 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: 29px; }
  .hero-subtitle { font-size: 16px; }

  .workflow-section, .benefits-section, .faq-section { padding: 48px 0; }
  .screenshot-card { width: 200px; }
  .screenshot-scroll { gap: 12px; padding-left: 16px; }
  .screenshot-scroll::after { flex: 0 0 16px; }

  .brand-header { padding: 28px 0 28px; gap: 16px; }
  .brand-header img { width: 60px; height: 60px; }
  .colors-row { padding: 4px 12px 0; gap: 8px; }
  .color-card { flex: 0 0 85px; }
  .color-swatch { height: 52px; }
  .colors-footer { padding: 12px 12px 14px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .subcollection-header { padding: 12px; gap: 12px; }
  .subcollection-info h2 { font-size: 15px; }

  .cta-box { padding: 52px 22px; }
  .hero-badges img, .cta-badges img { height: 46px; }

  .footer-grid { flex-direction: column; gap: 30px; }
  .footer-links { gap: 36px; }
}

@media (max-width: 480px) {
  header .nav-logo span { display: none; }
  .nav-inner { gap: 12px; }
}

@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-reveal] { opacity: 1; transform: none; }
}
