/* =========================================================================
   Kolligent Video Guide - docs.kolligent.com
   Tokens + core patterns copied from the Kolligent design system
   (claude.ai/design project "Kolligent Video Guide", _ds/kolligent-design-system).
   ========================================================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+Hebrew:wght@400;600;700;800&display=swap");

:root {
  /* surfaces - light, indigo-tinted (never flat #fff) */
  --canvas: #f5f6fd;
  --canvas-deep: #eceefb;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --hairline: rgba(28, 33, 80, 0.1);
  --hairline-soft: rgba(28, 33, 80, 0.06);
  --hairline-strong: rgba(28, 33, 80, 0.16);

  /* brand accent - the single hue */
  --grad: linear-gradient(135deg, #605dff, #7a45ef, #9135e8);
  --grad-soft: linear-gradient(135deg, rgba(96, 93, 255, 0.16), rgba(145, 53, 232, 0.12));
  --primary: #605dff;
  --primary-deep: #4936f5;
  --spark: #9135e8;
  --success: #17a44f;

  /* text - dark indigo ink on light */
  --ink: #16183a;
  --text-2: #4b4f70;
  --muted: #7b80a0;

  /* dark canvas (video slots) */
  --canvas-dark: #0a0e19;
  --glass-dark: rgba(22, 28, 46, 0.66);
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --text-on-dark: #f3f5ff;
  --muted-on-dark: #8a90a8;

  /* radius */
  --r-card: 28px;
  --r-pill: 9999px;

  /* layout */
  --maxw: 1200px;
  --gutter: 40px;

  --sans: "Inter", "SF Pro Display", system-ui, helvetica, sans-serif;
  --heb: "Noto Sans Hebrew", "Inter", system-ui, sans-serif;
}

[lang="he"],
[dir="rtl"] {
  --sans: var(--heb);
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(96, 93, 255, 0.35);
  color: #fff;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

/* ---- Typography roles ---------------------------------------------------- */
.display-lg {
  font-size: clamp(26px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 12px 0 16px;
}

.body-lg {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.1px;
  color: var(--text-2);
}

.body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.1px;
  color: var(--text-2);
}

.body-sm {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.1px;
  color: var(--text-2);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}

/* Hebrew has no uppercase and no wide tracking */
[dir="rtl"] .eyebrow {
  text-transform: none;
  letter-spacing: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main.container {
  padding-top: 56px;
  padding-bottom: 96px;
  max-width: 880px;
}

main .lede {
  max-width: 620px;
}

main section {
  margin-top: 72px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 10px 0 12px;
}

/* ---- Header ----------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

header img {
  height: 28px;
  direction: ltr;
  unicode-bidi: isolate;
}

.lang-toggle {
  display: flex;
  gap: 6px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 4px;
}

.lang-btn {
  font: inherit;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  background: transparent;
  color: var(--text-2);
}

.lang-btn.active {
  background: var(--grad);
  color: #fff;
}

/* ---- Section nav pills ------------------------------------------------------ */
nav.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  background: var(--glass-strong);
}

/* ---- Video slot -------------------------------------------------------------- */
.video-slot {
  margin-top: 20px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: var(--r-card);
  background: var(--glass-dark);
  border: 1px solid var(--hairline-dark);
  backdrop-filter: blur(14px);
  color: var(--text-on-dark);
  box-shadow: 0 0 40px -12px rgba(96, 93, 255, 0.35);
  overflow: hidden;
}

.video-slot .play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.video-slot .slot-note {
  color: var(--muted-on-dark);
  margin: 0;
}

.video-slot video,
.video-slot iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--canvas-dark);
}

/* ---- Steps -------------------------------------------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.step p {
  margin: 0;
}

.step-num {
  font-variant-numeric: tabular-nums;
  font-size: 15.5px;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 600;
}

/* ---- FAQ ------------------------------------------------------------------------ */
.faqs {
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}

.faqs details {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}

.faqs summary {
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faqs summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  color: var(--primary);
  transition: transform 0.2s;
}

details[open] .faq-plus {
  transform: rotate(45deg);
}

.faqs details p {
  margin: 10px 0 0;
}

[hidden] {
  display: none !important;
}
