/* Cross Tech Edu: site design system for the Home and About pages.
 *
 * Concept: technology crosses education. A cobalt "tech" stroke and a
 * highlighter-yellow "edu" stroke form the brand X over notebook graph paper.
 * Every rule is scoped under .x-page (or .x-header / .x-footer) so it does
 * not leak into the older pages that still use component @css styles.
 */

:root {
  --x-ink: #0e1b3d;
  --x-paper: #f5f7fb;
  --x-surface: #ffffff;
  --x-cobalt: #2f5bff;
  --x-cobalt-strong: #1f44d6;
  --x-highlight: #ffd84d;
  --x-mint: #14b88f;
  --x-slate: #5b6478;
  --x-line: #dde3ef;
  --x-grid: rgba(47, 91, 255, 0.07);
  --x-on-ink: #f5f7fb;
  --x-on-ink-muted: #b7c0d8;
  --x-shadow: 0 1px 0 rgba(14, 27, 61, 0.04), 0 12px 32px -18px rgba(14, 27, 61, 0.28);

  --x-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --x-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --x-gutter: clamp(16px, 4vw, 48px);
  --x-max: 1200px;
}

:root.dark {
  --x-ink: #eef2ff;
  --x-paper: #0b1430;
  --x-surface: #111d42;
  --x-cobalt: #7d9bff;
  --x-cobalt-strong: #a4b8ff;
  --x-highlight: #ffd84d;
  --x-mint: #3ddbb0;
  --x-slate: #a7b1cc;
  --x-line: #24325e;
  --x-grid: rgba(125, 155, 255, 0.08);
  --x-on-ink: #0b1430;
  --x-on-ink-muted: #33406a;
  --x-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.7);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--x-paper); }

/* ---------- Page base ---------- */

.x-page {
  width: 100%;
  background: var(--x-paper);
  color: var(--x-ink);
  font-family: var(--x-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Beat the older global `.main h1, h4, p` colour rule. */
body .x-page h1, body .x-page h2, body .x-page h3, body .x-page h4, body .x-page p { color: inherit; }
.x-page *, .x-page *::before, .x-page *::after { box-sizing: border-box; }
.x-page img { max-width: 100%; height: auto; display: block; }
.x-page a { color: inherit; }
.x-page :focus-visible { outline: 3px solid var(--x-cobalt); outline-offset: 3px; border-radius: 6px; }

.x-page .x-wrap { width: 100%; max-width: var(--x-max); margin: 0 auto; padding: 0 var(--x-gutter); }
.x-page .x-sec { display: block; padding: clamp(64px, 9vw, 120px) 0; }
.x-page .x-sec + .x-sec { border-top: 1px solid var(--x-line); }

.x-page h1, .x-page h2, .x-page h3 {
  font-family: var(--x-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.x-page h1 { font-size: clamp(40px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.035em; }
.x-page h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; }
.x-page h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.01em; }
.x-page p { margin: 0; }

.x-page .x-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.x-page .x-head p { color: var(--x-slate); font-size: 19px; max-width: 62ch; }
.x-page .x-kicker { color: var(--x-cobalt); font-weight: 600; font-size: 15px; }

/* ---------- Buttons ---------- */

.x-page .x-btn, .x-header .x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--x-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.x-page .x-btn-primary, .x-header .x-btn-primary { background: var(--x-cobalt); color: #fff; }
.x-page .x-btn-primary:hover, .x-header .x-btn-primary:hover { background: var(--x-cobalt-strong); }
:root.dark .x-page .x-btn-primary, :root.dark .x-header .x-btn-primary { color: #0b1430; }
.x-page .x-btn-ghost { border-color: var(--x-ink); color: var(--x-ink); background: transparent; }
.x-page .x-btn-ghost:hover { background: var(--x-ink); color: var(--x-paper); }

/* ---------- Header ---------- */

/* `display`/`padding` reset the older Header component's global `header` rule. */
.x-header {
  display: block; padding: 0; max-width: none;
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: color-mix(in srgb, var(--x-paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--x-line);
  font-family: var(--x-body); color: var(--x-ink);
}
.x-header .x-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--x-max); margin: 0 auto; padding: 10px var(--x-gutter); min-height: 68px;
}
.x-header .x-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.x-header .x-brand img { width: 40px; height: 40px; border-radius: 10px; }
.x-header .x-brand span { font: 700 18px/1 var(--x-display); letter-spacing: -0.01em; }
.x-header .x-nav { display: flex; align-items: center; gap: 4px; }
.x-header .x-nav a {
  padding: 10px 14px; border-radius: 999px; color: inherit; text-decoration: none;
  font-weight: 500; font-size: 15.5px;
}
.x-header .x-nav a:hover { background: var(--x-grid); color: var(--x-cobalt); }
.x-header .x-tools { display: flex; align-items: center; gap: 8px; }
.x-header .x-langs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-surface); }
.x-header .x-langs a {
  min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 8px;
  border-radius: 999px; color: var(--x-slate); text-decoration: none; font: 600 13.5px/1 var(--x-body);
}
.x-header .x-langs a:hover { color: var(--x-ink); }
.x-header .x-langs a[aria-current] { background: var(--x-ink); color: var(--x-paper); }
.x-header .theme-toggle { padding: 8px; }
.x-header .theme-toggle img { width: 24px; height: 24px; }
:root.dark .x-header .theme-toggle img { filter: invert(1); }
.x-header .x-menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--x-line); background: var(--x-surface); color: var(--x-ink); cursor: pointer;
}
.x-header .x-menu-btn svg { width: 22px; height: 22px; }
.x-header :focus-visible { outline: 3px solid var(--x-cobalt); outline-offset: 2px; }
.x-skip {
  position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px;
  background: var(--x-cobalt); color: #fff; border-radius: 8px; font-family: var(--x-body);
}
.x-skip:focus { top: 12px; }

@media (max-width: 960px) {
  .x-header .x-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .x-header .x-nav, .x-header .x-cta { display: none; }
  .x-header.is-open .x-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 12px var(--x-gutter) 20px; background: var(--x-paper);
    border-bottom: 1px solid var(--x-line); box-shadow: var(--x-shadow);
  }
  .x-header.is-open .x-nav a { padding: 14px 8px; font-size: 18px; border-radius: 10px; }
}

/* ---------- Hero ---------- */

.x-page .x-hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background-image:
    linear-gradient(var(--x-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--x-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.x-page .x-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.x-page .x-hero-copy { display: grid; gap: 24px; }
.x-page .x-hero-copy .x-kicker { font-size: 16px; }
.x-page .x-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--x-slate); max-width: 58ch; }
.x-page .x-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.x-page .x-mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 500px; justify-self: end; }
.x-page .x-mark svg { width: 100%; height: 100%; overflow: visible; }
.x-page .x-mark .x-stroke-tech { stroke: var(--x-cobalt); }
.x-page .x-mark .x-stroke-edu { stroke: var(--x-highlight); }
.x-page .x-mark .x-node { fill: var(--x-paper); stroke: var(--x-ink); }
.x-page .x-mark .x-draw {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: x-draw 1.1s cubic-bezier(.65, 0, .35, 1) forwards;
}
.x-page .x-mark .x-draw.x-late { animation-delay: .45s; }
.x-page .x-mark .x-pop { opacity: 0; animation: x-pop .4s ease-out 1.35s forwards; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }
@keyframes x-pop { to { opacity: 1; } }

.x-page .x-tag {
  position: absolute; display: grid; gap: 2px; padding: 12px 16px;
  background: var(--x-surface); border: 1px solid var(--x-line); border-radius: 14px;
  box-shadow: var(--x-shadow); max-width: 220px;
  opacity: 0; animation: x-pop .4s ease-out 1.5s forwards;
}
.x-page .x-tag strong { font: 700 17px/1.2 var(--x-display); }
.x-page .x-tag span { font-size: 14px; color: var(--x-slate); line-height: 1.35; }
.x-page .x-tag-tech { left: -4%; top: 6%; border-left: 4px solid var(--x-cobalt); }
.x-page .x-tag-edu { right: -4%; bottom: -2%; border-left: 4px solid var(--x-highlight); }

.x-page .x-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px); border-top: 1.5px solid var(--x-ink);
}
.x-page .x-fact { padding: 20px 20px 0 0; display: grid; gap: 4px; }
.x-page .x-fact + .x-fact { padding-left: 20px; border-left: 1px solid var(--x-line); }
.x-page .x-fact strong { font: 700 clamp(26px, 3vw, 36px)/1.05 var(--x-display); letter-spacing: -0.02em; }
.x-page .x-fact span { color: var(--x-slate); font-size: 15px; line-height: 1.4; }

/* ---------- Clients ---------- */

.x-page .x-clients { padding: 36px 0; border-top: 1px solid var(--x-line); border-bottom: 1px solid var(--x-line); background: var(--x-surface); }
.x-page .x-clients-row { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.x-page .x-clients-row p { font-weight: 600; font-size: 15px; color: var(--x-slate); margin-right: auto; }
.x-page .x-logos { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.x-page .x-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.x-page .x-logos a:hover img, .x-page .x-logos a:focus-visible img { filter: none; opacity: 1; }
:root.dark .x-page .x-logos img { filter: grayscale(1) brightness(0) invert(1); opacity: .7; }
:root.dark .x-page .x-logos a:hover img { filter: grayscale(1) brightness(0) invert(1); opacity: 1; }

/* ---------- Tech x Edu split ---------- */

.x-page .x-split { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--x-ink); border-radius: 28px; overflow: hidden; }
.x-page .x-half { padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; align-content: start; }
.x-page .x-half-tech { background: var(--x-surface); }
.x-page .x-half-edu { background: var(--x-highlight); color: #0e1b3d; border-left: 1.5px solid var(--x-ink); }
.x-page .x-half h3 { font-size: clamp(26px, 3vw, 36px); }
.x-page .x-half ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.x-page .x-half li { padding: 14px 0 14px 30px; position: relative; border-top: 1px solid rgba(14, 27, 61, .14); }
.x-page .x-half-tech li { border-top-color: var(--x-line); }
.x-page .x-half li::before {
  content: ''; position: absolute; left: 0; top: 22px; width: 16px; height: 2.5px; border-radius: 2px;
  background: var(--x-cobalt); transform: rotate(-35deg);
}
.x-page .x-half-edu li::before { background: #0e1b3d; transform: rotate(35deg); }

/* ---------- Services index ---------- */

.x-page .x-services { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--x-ink); }
.x-page .x-service {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--x-line);
}
.x-page .x-service p { color: var(--x-slate); }
.x-page .x-service .x-stack { font-size: 14.5px; color: var(--x-cobalt); font-weight: 600; text-align: right; }

/* ---------- Work ---------- */

.x-page .x-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.x-page .x-work-card {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  background: var(--x-surface); border: 1px solid var(--x-line); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
.x-page .x-work-card:hover { border-color: var(--x-cobalt); transform: translateY(-2px); }
.x-page .x-work-card img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; background: var(--x-line); }
.x-page .x-work-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.x-page .x-work-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--x-slate); }
.x-page .x-work-meta b { color: var(--x-ink); font-weight: 600; }
.x-page .x-work-body p { color: var(--x-slate); font-size: 16px; }
.x-page .x-work > li:first-child { grid-column: span 2; }
.x-page .x-work > li:first-child .x-work-card img { aspect-ratio: 2.4 / 1; }
/* Seven cards on three columns: the 6th (the UDIKA quiz show) is wide too, so
   no row ends with a gap. Desktop only; two columns already pair up evenly. */
@media (min-width: 861px) {
  .x-page .x-work > li:nth-child(6) { grid-column: span 2; }
  .x-page .x-work > li:nth-child(6) .x-work-card img { aspect-ratio: 2.4 / 1; }
}

/* ---------- Learn (own products) ---------- */

.x-page .x-learn { background: var(--x-ink); color: var(--x-on-ink); }
.x-page .x-learn .x-head p { color: var(--x-on-ink-muted); }
.x-page .x-learn .x-kicker { color: var(--x-highlight); }
:root.dark .x-page .x-learn .x-kicker { color: var(--x-cobalt-strong); }
:root.dark .x-page .x-learn { background: #e9eeff; }
.x-page .x-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; list-style: none; margin: 0; padding: 0; }
.x-page .x-product { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; }
.x-page .x-product img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; border-radius: 16px; }
.x-page .x-product-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.x-page .x-status { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--x-highlight); color: #0e1b3d; white-space: nowrap; }
.x-page .x-product p { color: var(--x-on-ink-muted); font-size: 16px; }
.x-page .x-product .x-tagline { color: inherit; font-weight: 600; }
.x-page .x-product:hover h3 { text-decoration: underline; text-decoration-color: var(--x-highlight); text-underline-offset: 5px; text-decoration-thickness: 3px; }

.x-page .x-learn .x-more { margin-top: 40px; }
.x-page .x-btn-light { background: var(--x-paper); color: var(--x-ink); }
.x-page .x-btn-light:hover { background: var(--x-highlight); color: #0e1b3d; }
.x-page .x-products-hero { max-width: 860px; }
.x-page .x-products-hero h1 { font-size: clamp(38px, 5.6vw, 72px); }
.x-page.x-products-page .x-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; }
.x-page.x-products-page .x-product p { color: var(--x-slate); }
.x-page.x-products-page .x-product .x-tagline { color: var(--x-ink); }

/* ---------- Guides ---------- */

.x-page .x-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0 0 32px; padding: 0; }
.x-page .x-guide { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.x-page .x-guide img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 16px; border: 1px solid var(--x-line); }
.x-page .x-guide h3 { font-size: 20px; }
.x-page .x-guide:hover h3 { color: var(--x-cobalt); }

/* ---------- Process ---------- */

.x-page .x-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.x-page .x-step { counter-increment: step; padding: 0 20px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.x-page .x-step::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--x-paper); border: 1.5px solid var(--x-ink); font: 700 18px var(--x-display); position: relative; z-index: 1;
}
.x-page .x-step::after { content: ''; position: absolute; top: 22px; left: 44px; right: 0; height: 1.5px; background: var(--x-line); }
.x-page .x-step:last-child::after { display: none; }
.x-page .x-step p { color: var(--x-slate); font-size: 16px; }
.x-page .x-step .x-dur { color: var(--x-cobalt); font-weight: 600; font-size: 14.5px; }

/* ---------- Pricing band ---------- */

.x-page .x-price {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--x-surface); border: 1.5px solid var(--x-ink);
}
.x-page .x-price p { color: var(--x-slate); font-size: 18px; margin-top: 12px; max-width: 60ch; }
.x-page .x-price .x-amount { font: 700 clamp(48px, 6vw, 76px)/1 var(--x-display); letter-spacing: -0.03em; }
.x-page .x-price .x-amount small { font: 500 16px var(--x-body); color: var(--x-slate); letter-spacing: 0; display: block; margin-top: 6px; }
.x-page .x-price-side { display: grid; gap: 18px; justify-items: start; }

/* ---------- FAQ ---------- */

.x-page .x-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.x-page .x-faq { border-top: 1.5px solid var(--x-ink); }
.x-page .x-faq details { border-bottom: 1px solid var(--x-line); }
.x-page .x-faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 19px/1.35 var(--x-display);
}
.x-page .x-faq summary::-webkit-details-marker { display: none; }
.x-page .x-faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--x-cobalt), var(--x-cobalt)) center / 14px 2px no-repeat,
              linear-gradient(var(--x-cobalt), var(--x-cobalt)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.x-page .x-faq details[open] summary::after { transform: rotate(45deg); }
.x-page .x-faq details p { padding: 0 0 22px; color: var(--x-slate); max-width: 64ch; }

/* ---------- Contact ---------- */

.x-page .x-contact { background: var(--x-cobalt); color: #fff; }
:root.dark .x-page .x-contact { background: #1a2c6e; }
.x-page .x-contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.x-page .x-contact h2 { font-size: clamp(36px, 5vw, 64px); }
.x-page .x-contact p { color: rgba(255, 255, 255, .85); font-size: 19px; margin-top: 18px; max-width: 54ch; }
.x-page .x-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.x-page .x-channel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; text-decoration: none; transition: background-color .18s;
}
.x-page .x-channel:hover { background: rgba(255, 255, 255, .18); }
.x-page .x-channel span { font-size: 14px; opacity: .8; display: block; }
.x-page .x-channel strong { font-size: 18px; font-weight: 600; }
.x-page .x-channel img { width: 72px; height: 72px; border-radius: 10px; background: #fff; padding: 4px; }
.x-page .x-contact .x-hours { font-size: 15px; margin-top: 24px; color: rgba(255, 255, 255, .75); }

/* ---------- About ---------- */

.x-page .x-about-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.x-page .x-about-hero h1 { font-size: clamp(40px, 6.2vw, 80px); max-width: 15ch; }
.x-page .x-about-hero .x-lead { margin-top: 24px; }
.x-page .x-about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.x-page .x-about-photo { border-radius: 24px; overflow: hidden; border: 1.5px solid var(--x-ink); }
.x-page .x-about-photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.x-page .x-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); }
.x-page .x-story-body { display: grid; gap: 20px; font-size: 19px; }
.x-page .x-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--x-ink); }
.x-page .x-value { padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; }
.x-page .x-value + .x-value { padding-left: 28px; border-left: 1px solid var(--x-line); }
.x-page .x-value p { color: var(--x-slate); }
.x-page .x-value-quote { font: 600 21px/1.4 var(--x-display); color: var(--x-ink); }
.x-page .x-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
.x-page .x-member { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; }
.x-page .x-member img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--x-ink); background: var(--x-surface); }
.x-page .x-member h3 { font-size: 19px; }
.x-page .x-member .x-role { color: var(--x-cobalt); font-weight: 600; font-size: 15px; margin: 2px 0 6px; }
.x-page .x-member p { color: var(--x-slate); font-size: 15.5px; }
.x-page .x-member a { text-decoration-color: var(--x-cobalt); text-underline-offset: 3px; }
.x-page .x-promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.x-page .x-promises li { padding: 20px; border-radius: 18px; background: var(--x-surface); border: 1px solid var(--x-line); font-weight: 600; line-height: 1.35; }
.x-page .x-promises li::before { content: ''; display: block; width: 22px; height: 12px; border-left: 3px solid var(--x-mint); border-bottom: 3px solid var(--x-mint); transform: rotate(-45deg); margin: 2px 0 16px 2px; }

/* ---------- Legal text ---------- */

.x-page .x-legal-body { max-width: 760px; display: grid; gap: 14px; }
.x-page .x-legal-body h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 24px; }
.x-page .x-legal-body p { color: var(--x-slate); }
.x-page .x-legal-body a { color: var(--x-cobalt); }

/* ---------- Careers ---------- */

.x-page .x-jobs { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--x-ink); margin-bottom: 48px; }
.x-page .x-jobs th, .x-page .x-jobs td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--x-line); }
.x-page .x-jobs th { font-size: 14px; color: var(--x-slate); font-weight: 600; }
.x-page .x-jobs a { color: var(--x-cobalt); }
.x-page .x-apply { margin-top: 8px; }

/* ---------- Cookie notice ---------- */

.x-cookie {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 640px;
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px;
  background: var(--x-surface); color: var(--x-ink); border: 1px solid var(--x-line); border-radius: 18px;
  box-shadow: 0 18px 48px -20px rgba(14, 27, 61, .45); font: 15px/1.45 var(--x-body);
}
.x-cookie p { margin: 0; flex: 1; color: var(--x-slate); }
.x-cookie a { color: var(--x-cobalt); }
.x-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.x-cookie button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--x-line); background: transparent; color: var(--x-ink); font: 600 14px var(--x-body);
}
.x-cookie button.is-primary { background: var(--x-cobalt); border-color: var(--x-cobalt); color: #fff; }
:root.dark .x-cookie button.is-primary { color: #0b1430; }
.x-cookie :focus-visible { outline: 3px solid var(--x-cobalt); outline-offset: 2px; }
@media (max-width: 600px) {
  .x-cookie { flex-direction: column; align-items: stretch; gap: 12px; left: 12px; right: 12px; bottom: 12px; }
  .x-cookie-actions button { flex: 1; }
}

/* ---------- Footer ---------- */

.x-footer { background: var(--x-paper); color: var(--x-ink); font-family: var(--x-body); border-top: 1px solid var(--x-line); width: 100%; }
.x-footer * { box-sizing: border-box; }
.x-footer .x-foot { max-width: var(--x-max); margin: 0 auto; padding: 56px var(--x-gutter) 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.x-footer .x-foot-brand { display: grid; gap: 14px; align-content: start; }
.x-footer .x-foot-brand img { width: 48px; height: 48px; border-radius: 12px; }
.x-footer .x-foot-brand p, .x-footer address { color: var(--x-slate); font-style: normal; font-size: 15px; line-height: 1.55; margin: 0; max-width: 34ch; }
.x-footer h2 { font: 700 15px var(--x-body); margin: 0 0 14px; color: var(--x-ink); }
.x-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-footer a { color: var(--x-slate); text-decoration: none; font-size: 15px; }
.x-footer a:hover { color: var(--x-cobalt); text-decoration: underline; }
.x-footer :focus-visible { outline: 3px solid var(--x-cobalt); outline-offset: 2px; }
.x-footer .x-legal { max-width: var(--x-max); margin: 0 auto; padding: 20px var(--x-gutter) 32px; border-top: 1px solid var(--x-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--x-slate); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .x-page .x-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-page .x-steps { grid-template-columns: 1fr; gap: 0; }
  .x-page .x-step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 0 0 28px; }
  .x-page .x-step > * { grid-column: 2; }
  .x-page .x-step::before { grid-row: 1 / span 3; grid-column: 1; }
  .x-page .x-step::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 1.5px; height: auto; }
  .x-page .x-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-footer .x-foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .x-page .x-hero-grid, .x-page .x-about-hero-grid, .x-page .x-story, .x-page .x-faq-grid,
  .x-page .x-contact-grid, .x-page .x-price { grid-template-columns: 1fr; }
  .x-page .x-mark { max-width: 300px; justify-self: center; }
  .x-page .x-facts { grid-template-columns: 1fr 1fr; }
  .x-page .x-fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .x-page .x-fact { padding-bottom: 16px; }
  .x-page .x-split { grid-template-columns: 1fr; }
  .x-page .x-half-edu { border-left: 0; border-top: 1.5px solid var(--x-ink); }
  .x-page .x-service { grid-template-columns: 1fr; gap: 6px; }
  .x-page .x-service .x-stack { text-align: left; }
  .x-page .x-work, .x-page .x-guides { grid-template-columns: 1fr 1fr; }
  .x-page .x-work > li:first-child { grid-column: span 2; }
  .x-page .x-values, .x-page .x-team { grid-template-columns: 1fr; }
  .x-page .x-value + .x-value { padding-left: 0; border-left: 0; border-top: 1px solid var(--x-line); margin-top: 28px; }
}

@media (max-width: 600px) {
  .x-page { font-size: 16px; }
  .x-header .x-langs a { min-width: 30px; padding: 0 6px; font-size: 12.5px; }
  .x-header .x-tools { gap: 4px; }
  .x-page .x-work, .x-page .x-guides, .x-page .x-products, .x-page .x-promises { grid-template-columns: 1fr; }
  .x-page .x-work > li:first-child { grid-column: auto; }
  .x-page .x-work > li:first-child .x-work-card img { aspect-ratio: 2 / 1; }
  .x-page .x-tag { display: none; }
  .x-page .x-clients-row p { width: 100%; }
  .x-page .x-logos { gap: 20px 28px; }
  .x-page .x-logos img { height: 26px; }
  .x-page .x-ctas .x-btn { flex: 1 1 100%; }
  .x-header .x-brand span { display: none; }
  .x-footer .x-foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .x-page .x-mark .x-draw { animation: none; stroke-dashoffset: 0; }
  .x-page .x-mark .x-pop, .x-page .x-tag { animation: none; opacity: 1; }
  .x-page *, .x-header * { transition: none !important; }
}
