/* Xolotl marketing site — implements the "Xolotl Identity" design system.
   Two faces, no exceptions: Helvetica Neue for anything a client reads,
   IBM Plex Mono for anything the system knows (labels, IDs, data).
   Ink and paper carry the page; Xolotl Blue is the only brand voice and is
   reserved for the mark, primary actions and state.
   Shape system: 1px rules, flat surfaces, 6px radius on rows/controls.
   No gradients, glows or shadows on the mark. Light + dark via system preference. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: oklch(0.985 0.003 250);
  --bg-soft: oklch(0.955 0.005 250);
  --surface: #ffffff;
  --line: oklch(0.89 0.006 250);
  --text: oklch(0.21 0.012 248);
  --muted: oklch(0.42 0.012 248);
  --faint: oklch(0.60 0.010 248);
  --accent: oklch(0.52 0.10 245);
  --accent-ink: oklch(0.38 0.08 245);
  --accent-soft: oklch(0.93 0.03 245);
  --btn-grad: oklch(0.52 0.10 245);
  --shadow-shot: none;
  --shadow-card: none;
  --scrim: linear-gradient(180deg, oklch(0.21 0.012 248 / 0) 30%, oklch(0.21 0.012 248 / 0.88) 78%);
  --nav-bg: oklch(0.985 0.003 250 / 0.88);
  --error: oklch(0.55 0.14 32);
  --ok: oklch(0.48 0.07 165);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.21 0.012 248);
    --bg-soft: oklch(0.26 0.012 248);
    --surface: oklch(0.25 0.012 248);
    --line: oklch(0.34 0.010 248);
    --text: oklch(0.985 0.003 250);
    --muted: oklch(0.74 0.010 250);
    --faint: oklch(0.66 0.010 250);
    --accent: oklch(0.72 0.12 245);
    --accent-ink: oklch(0.82 0.09 245);
    --accent-soft: oklch(0.32 0.05 245);
    --btn-grad: oklch(0.52 0.10 245);
    --scrim: linear-gradient(180deg, oklch(0.15 0.012 248 / 0) 30%, oklch(0.15 0.012 248 / 0.9) 78%);
    --nav-bg: oklch(0.21 0.012 248 / 0.85);
    --error: oklch(0.72 0.13 32);
    --ok: oklch(0.75 0.08 165);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 500; letter-spacing: -0.028em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }

/* Mono label: everything the system knows. */
.lab, .plan-per {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}

/* The wordmark is a drawing, not a font: never re-space or re-set it. */
.brand-name {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.045em;
  text-transform: none;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 60;
  background: var(--surface); color: var(--text); padding: 0.6rem 1rem;
  border-radius: 6px; border: 1px solid var(--line); transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons: flat blue, no gradient, no glow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 0.98rem; letter-spacing: -0.011em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--btn-grad); color: #fff; }
.btn-primary:hover { background: oklch(0.44 0.09 245); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.9rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-name { font-size: 1.15rem; }
.mark { flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links > a {
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links > a:hover { color: var(--accent-ink); }
.nav-end { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; gap: 0.15rem; }
.lang-link {
  padding: 0.3rem 0.45rem; border-radius: 4px; font-size: 0.8rem; font-weight: 500;
  text-decoration: none; color: var(--muted);
}
.lang-link:hover { color: var(--accent-ink); }
.lang-link.is-current { color: var(--accent-ink); background: var(--accent-soft); }
.nav-toggle { display: none; }
.lang-switch-mobile { display: none; }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0.25rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links > a { padding: 0.55rem 0; width: 100%; font-size: 1.05rem; }
  .lang-switch-desktop { display: none; }
  .lang-switch-mobile { display: inline-flex; margin-top: 0.5rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 42px; height: 42px; padding: 0 10px;
    background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  }
  .nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .nav.menu-open .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { overflow-x: clip; background: var(--bg); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 3rem; align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 3.7vw, 2.9rem); font-weight: 400;
  letter-spacing: -0.035em; margin-bottom: 0.45em;
}
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.6em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.shot-frame {
  margin: 0; border-radius: 0; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-shot { width: 112%; max-width: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-shot { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.125rem); }
.section-head p { color: var(--muted); font-size: 1rem; margin: 0; max-width: 62ch; }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    'a a b c'
    'a a d d'
    'e f d d';
}
.b-1 { grid-area: a; } .b-2 { grid-area: b; } .b-3 { grid-area: c; }
.b-4 { grid-area: d; } .b-5 { grid-area: e; } .b-6 { grid-area: f; }
.b-cell {
  border-radius: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; min-height: 180px;
}
.b-text { padding: 1.5rem; }
.b-text h3 { font-size: 1.08rem; margin: 0.9rem 0 0.35rem; }
.b-text p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.b-icon { width: 26px; height: 26px; color: var(--accent-ink); }
/* The one "reversed on Xolotl Blue" surface. Blue is a ground for marketing
   surfaces only, never a decorative wash — so this is the full brand blue, and
   it stays fixed in both themes so the reversed text keeps its contrast. */
.b-tint { background: oklch(0.52 0.10 245); }
.b-tint h3 { color: #fff; }
.b-tint p { color: oklch(0.95 0.025 245); }
.b-tint .b-icon { color: #fff; }
.b-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.b-img .b-scrim {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; background: var(--scrim); color: #fff;
}
.b-img h3 { font-size: 1.15rem; margin: 0 0 0.25rem; color: #fff; }
.b-img p { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: 'a a' 'b c' 'd d' 'e f'; }
  .b-img { min-height: 260px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: 'a' 'b' 'c' 'd' 'e' 'f'; }
}

/* ---------- Module explorer (tabs) ---------- */
.explorer {
  display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start;
}
.tab-rail { display: flex; flex-direction: column; gap: 0.35rem; }
.tab {
  text-align: left; font: inherit; font-weight: 500; font-size: 0.98rem;
  padding: 0.75rem 1rem; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); background: var(--accent-soft); }
.tab[aria-selected='true'] { background: var(--surface); color: var(--accent-ink); border-color: var(--line); }
.tab-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.25rem; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-copy h3 { font-size: 1.45rem; }
.tab-desc { color: var(--muted); margin-bottom: 1.25em; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.98rem; }
.li-icon { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent-ink); }

@media (max-width: 960px) {
  .explorer { grid-template-columns: 1fr; }
  .tab-rail { flex-direction: row; overflow-x: auto; padding-bottom: 0.5rem; }
  .tab { white-space: nowrap; }
  .tab-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .tab-shot { order: -1; }
}

/* ---------- Capability index ---------- */
.idx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.idx-group h3 {
  font-size: 0.95rem; color: var(--accent-ink); margin-bottom: 0.9rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.idx-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.idx-group li { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .idx-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Why band ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.why-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 1.5rem;
}
.why-icon {
  display: inline-flex; padding: 0.6rem; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 0.9rem;
}
.why-icon .icon { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.why-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 1.9rem 1.6rem;
}
.plan-featured { border-color: var(--accent-ink); }
.plan-badge {
  position: absolute; top: -0.8rem; left: 1.6rem;
  background: var(--btn-grad); color: #fff; font-size: 0.78rem; font-weight: 500;
  padding: 0.25rem 0.8rem; border-radius: 999px;
}
.plan h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.plan-price { font-size: 2.3rem; font-weight: 500; letter-spacing: -0.032em; margin-bottom: 0.2em; }
.plan-per { display: block; margin-top: 0.4rem; }
.plan-note {
  font-size: 0.85rem; color: var(--accent);
  margin: 0 0 0.9rem; min-height: 3.2em; /* two lines, so cards stay aligned */
}
.plan-blurb { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan-list { margin-bottom: 1.6rem; font-size: 0.95rem; }
.plan-cta { margin-top: auto; }
.pricing-note { color: var(--muted); font-size: 0.9rem; margin: 1.75rem 0 0; }

/* What every tier includes */
.included {
  margin-top: 1.5rem; padding: 1.9rem 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 1.25rem 2.5rem;
}
.included-head h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.included-head p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.included-list { font-size: 0.95rem; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.75rem; }

/* Offers for new grads and switchers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.offer {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 0;
  padding: 1.4rem 1.5rem;
}
.offer h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.offer p { color: var(--muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; }
  .plan-note, .plan-blurb { min-height: 0; }
  .included { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .included-list { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.125rem); }
.contact-intro { color: var(--muted); font-size: 1.08rem; }
.contact-info { margin-top: 2rem; }
.contact-info h3 { font-size: 1rem; }
.contact-line { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5em; }
.contact-line .icon { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }
.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 2rem; display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.92rem; }
.req { color: var(--accent-ink); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.9rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-ink); }
.field-error { color: var(--error); font-size: 0.85rem; margin: 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.hp-field { position: absolute; left: -9999px; top: auto; }
.form-submit { justify-self: start; }
.form-status { margin: 0; font-weight: 500; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand p { margin-top: 0.9rem; max-width: 18rem; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h3 { font-size: 0.9rem; margin-bottom: 0.35rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-col span[aria-current] { color: var(--accent-ink); font-size: 0.95rem; }
.footer-legal { padding: 2rem 1.25rem 2.5rem; }
.footer-legal p { margin: 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; }

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  html.js .reveal.in { opacity: 1; transform: none; }
  .tab-panel:not([hidden]) { animation: panel-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tab { transition: none; }
}
