/* ============================================================
   core.css — brand-neutral foundation shared by every page
   Holds only mechanics: reset, layout, buttons, motion, lightbox,
   accordion. No colour or typeface of its own.

   TOKEN CONTRACT — every brand stylesheet MUST define all of these:
     surfaces  --ink  --ink-2  --surface  --surface-2  --line  --line-2
     accent    --accent  --accent-hi  --accent-deep  --accent-rgb (r,g,b)
     text      --text  --text-2  --muted
     type      --font-body  --font-display
     metrics   --wrap  --pad  --radius
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--ink);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.alt { background: var(--ink-2); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); color: #fff; transform: translateY(-2px); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; transform: translateY(-2px); }

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ── floating LINE ── */
.float-line {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  background: #06c755; color: #fff;
  padding: 13px 20px 13px 16px;
  border-radius: 100px;
  font-weight: 600; font-size: 14.5px;
  box-shadow: 0 14px 34px -10px rgba(6, 199, 85, .6);
  transition: transform .25s, box-shadow .25s;
}
.float-line:hover { transform: translateY(-3px) scale(1.02); }
.float-line svg { width: 21px; height: 21px; }

/* ── lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 5, .96);
  display: none;
  place-items: center;
  padding: 5vh 5vw;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--text-2); }
.lightbox figcaption b { display: block; font-family: var(--font-display); letter-spacing: .16em; color: var(--accent-hi); font-size: 12px; text-transform: uppercase; margin-bottom: 4px; }
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2);
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(var(--accent-rgb),.7); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 2vw; top: 50%; transform: translateY(-50%); }

/* ── FAQ accordion ──
   Twenty questions in one column was a 2,300px wall of identical bars, so
   the groups became blocks and the blocks sit two-up on a wide screen.   */

.faq {
  max-width: 1180px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}
.faq-set { min-width: 0; }

.faq-group {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-hi);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.faq-group::before {
  content: ''; width: 20px; height: 2px; background: var(--accent); flex: none;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { border-color: rgba(var(--accent-rgb), .5); background: var(--surface-2); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 60px 17px 20px;
  position: relative;
  font-size: 15.5px; font-weight: 600;
  color: #fff; line-height: 1.6;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-hi); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -2px; }

/* chevron sitting in its own ring, vertically centred whatever the height */
.faq-item summary::after {
  content: '';
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  transition: border-color .25s, background .25s;
}
.faq-item summary::before {
  content: '';
  position: absolute; z-index: 1;
  right: 24px; top: 50%; margin-top: -6px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--accent-hi);
  border-bottom: 2px solid var(--accent-hi);
  transform: rotate(45deg);
  transition: transform .3s, margin-top .3s;
}
.faq-item[open] summary::before { transform: rotate(225deg); margin-top: -2px; }
.faq-item[open] summary::after,
.faq-item summary:hover::after { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .1); }

.faq-a { padding: 0 20px 18px; animation: faqIn .3s ease; }
.faq-a p { font-size: 14.5px; color: var(--text-2); line-height: 1.85; }
.faq-a p + p, .faq-a ul + p, .faq-a ol + p { margin-top: 12px; }
.faq-a strong { color: var(--text); font-weight: 600; }
.faq-a ul, .faq-a ol { margin: 12px 0 0; padding-left: 20px; }
.faq-a li { font-size: 14.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 7px; }
.faq-a ul { list-style: none; padding-left: 0; }
.faq-a ul li { position: relative; padding-left: 20px; }
.faq-a ul li::before {
  content: '';
  position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}
.faq-a ol li::marker { color: var(--accent-hi); font-weight: 600; }

.faq-foot {
  margin-top: clamp(30px, 4vw, 46px);
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
}
.faq-foot p { color: var(--text-2); font-size: 15px; }

@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  .faq-item summary { font-size: 15px; padding: 15px 54px 15px 17px; }
  .faq-item summary::after { right: 13px; }
  .faq-item summary::before { right: 22px; }
  .faq-a { padding: 0 17px 16px; }
  .faq-foot { flex-direction: column; gap: 12px; }
}
