/* Collie FAQ portal — from the Collie design system (Collectmaxx / Alphacomm palette) */

@font-face {
  font-family: "Red Hat Display";
  src: url("fonts/RedHatDisplay-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("fonts/RedHatText-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("fonts/RedHatMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #0033cc;
  --blue-hover: #5980f8;
  --blue-tint: #eaeef9;
  --blue-soft: #dae3ff;
  --ink: #232323;
  --white: #fffeff;
  --link: #1a3de8;
  --ink-a10: #0000001a;
  --ink-a20: #00000033;
  --ink-a60: #00000099;
  --white-a20: #fffeff33;
  --white-a60: #fffeff99;
  --white-a70: #fffeffb3;
  --font-heading: "Red Hat Display", Arial, sans-serif;
  --font-body: "Red Hat Text", Arial, sans-serif;
  --font-mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", monospace;
  --shadow-btn: 0 1px 1px #0003, 0 4px 4px #0003, inset 0 3px 2px -2px #ffffff80;
  --shadow-btn-hover: 0 1px 1px #0003, 0 8px 8px #0003, inset 0 3px 2px -2px #ffffff80;
  --ease: cubic-bezier(.165, .84, .44, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: #1a3de899; }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.25rem;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all .2s var(--ease);
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hover); color: var(--white); box-shadow: var(--shadow-btn-hover); }
.btn-white { background: var(--white); color: var(--blue); padding: 0.55rem 0.8rem; }
.btn-white:hover { background: var(--blue-soft); color: var(--blue); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink-a20);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 1em 1.5em; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blue);
  height: 4rem;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.brand img {
  height: clamp(1.6rem, 6vw, 2.1rem);
  width: auto;
  display: block;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.035em;
  color: var(--white-a60);
  padding-left: 0.6rem;
  border-left: 1px solid var(--white-a20);
  line-height: 1;
}
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}
.lang-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.035em;
}
.lang {
  padding: 0.35rem 0.4rem;
  border-radius: 0.25rem;
  color: var(--white-a70);
}
.lang:hover { color: var(--white); }
.lang.is-active { color: var(--white); background: var(--white-a20); }

/* Hero */
.hero {
  background: var(--blue-tint);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-in {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.21rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.hero-sub {
  margin: 0;
  font-size: 1.13rem;
  color: var(--ink-a60);
  max-width: 32em;
  text-wrap: pretty;
}
.search {
  position: relative;
  display: block;
  max-width: 560px;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  display: flex;
  pointer-events: none;
}
.search input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--ink-a20);
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1rem 1rem 1rem 2.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  box-shadow: 0 1px 2px #0000000d;
}
.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #0033cc33;
}
.app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.5rem;
}
.app-row > span { font-size: 0.88rem; color: var(--ink-a60); }

/* Category pills */
.pills {
  position: sticky;
  top: 4rem;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--ink-a10);
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
}
.pills-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 100rem;
  border: 1px solid var(--ink-a20);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.035em;
  line-height: 1;
  transition: all .15s var(--ease);
}
.pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-tint);
}
.pill-count { color: var(--ink-a60); font-size: 0.72rem; }

/* Main / categories */
main {
  flex: 1;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.main-in {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.cat {
  scroll-margin-top: 9rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cat-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cat-head .kicker { font-size: 0.75rem; }
.cat-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.78rem;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.qa-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-a10);
}
.qa {
  border-bottom: 1px solid var(--ink-a10);
  border-radius: 0.5rem;
  margin: 0 -0.75rem;
  padding: 0 0.75rem;
  transition: background .15s;
}
.qa.is-open { background: var(--blue-tint); }
.qa-h { margin: 0; font: inherit; }
.qa-btn {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.15rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.13rem;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.qa-btn:hover, .qa.is-open .qa-btn { color: var(--blue); }
.qa-btn > span:first-child { text-wrap: pretty; }
.qa-chevron {
  flex: 0 0 auto;
  display: flex;
  margin-top: 0.15rem;
  color: var(--blue);
  transition: transform .2s var(--ease);
}
.qa.is-open .qa-chevron { transform: rotate(180deg); }
.qa-panel {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--ink);
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.6;
}
.qa-panel > * { margin: 0 0 0.75rem; }
.qa-panel > *:last-child { margin-bottom: 0; }
.qa-panel p { text-wrap: pretty; }
.qa-panel strong { font-weight: 600; }

.qa-panel ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.qa-panel ul > li {
  padding-left: 1.6rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="none"><path d="M2.5 8.5l3.5 3.5 7.5-8" stroke="%230033cc" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat left 0.35em;
  text-wrap: pretty;
}
.qa-panel ol {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.qa-panel ol > li { padding-left: 0.3rem; text-wrap: pretty; }
.qa-panel ol > li::marker {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.qa-panel li p { margin: 0 0 0.4rem; }
.qa-panel li p:last-child { margin-bottom: 0; }

/* No results */
.no-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2.5rem 2rem;
  border: 1px dashed var(--ink-a20);
  border-radius: 0.5rem;
  text-align: center;
  align-items: center;
}
.no-results h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.33rem;
  line-height: 1.3;
}
.no-results p {
  margin: 0;
  color: var(--ink-a60);
  max-width: 30em;
  text-wrap: pretty;
}

/* Contact */
.contact-wrap { padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.contact {
  background: var(--blue-tint);
  border-radius: 0.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 320px;
}
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.78rem;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.contact-copy p { margin: 0; text-wrap: pretty; }
.contact-copy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ink-a10);
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.035em;
  color: var(--ink-a60);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pill, .qa, .qa-chevron { transition: none; }
}
