/* ============================================================================
   alkibit.com - shared site stylesheet
   Loaded by every page. The product page loads serialization.css after it.
   Design system derived from: alkibit Brand Guidelines, March 2026

   3-COLOR PALETTE LOCK
     Neutral ground ....... #FFFFFF
     Dominant ............. #1F2937  (brand "Dark")
     Accent / CTA ......... #0D65FE  (brand "Base")
   Every other value below is a documented step on the brand shade ramp
   (color-100 .. color-700) or a neutral biased toward the accent. No new hues.

   TYPE
     Display .............. Outfit        (brand-mandated for headlines)
     Body ................. Inter         (the pairing the guidelines name)
     Code ................. JetBrains Mono
   ========================================================================= */

/* ---------------------------------------------------------------- tokens - */
:root {
  /* brand primitives */
  --brand-base:  #0D65FE;
  --brand-dark:  #1F2937;
  --brand-white: #FFFFFF;

  /* brand shade ramp */
  --c700: #012F7F;
  --c600: #0141B2;
  --c500: #0154E5;
  --c300: #4D8EFE;
  --c200: #80AEFE;
  --c100: #B3CFFF;

  /* neutrals, biased toward the accent so they read as chosen */
  --n-000: #FFFFFF;
  --n-050: #F5F8FF;
  --n-100: #E7EDF8;
  --n-200: #D2DCEC;
  --n-500: #5A6678;
  --n-700: #2C3542;
  --n-900: #111827;

  /* semantic - light */
  --bg:            var(--n-000);
  --bg-tint:       var(--n-050);
  --bg-raised:     var(--n-000);
  --bg-invert:     var(--n-900);
  --text:          var(--brand-dark);
  --text-muted:    var(--n-500);
  --text-invert:   var(--n-050);
  --accent:        var(--brand-base);
  --accent-text:   var(--c600);   /* 8.7:1 on white */
  --accent-hover:  var(--c600);   /* brand: primary CTA hover = white on color-600 */
  --accent-soft:   rgba(13, 101, 254, 0.07);
  --border:        var(--n-100);
  --border-strong: var(--n-200);
  --ring:          rgba(13, 101, 254, 0.40);
  --shadow-card:   0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -12px rgba(17, 24, 39, .14);

  /* code surface - always dark, in both themes */
  --code-bg:      #0E1626;
  --code-text:    #E6EDF8;
  --code-key:     var(--c200);
  --code-type:    var(--c100);
  --code-str:     var(--c100);
  --code-fn:      #FFFFFF;
  --code-dim:     #7A8AA3;

  /* type */
  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --t-micro:  0.75rem;
  --t-small:  0.875rem;
  --t-body:   1rem;
  --t-lead:   1.125rem;
  --t-h3:     1.3125rem;
  --t-h2:     clamp(1.85rem, 1.15rem + 2.6vw, 2.85rem);
  --t-h1:     clamp(2.45rem, 1.3rem + 4.6vw, 4.15rem);

  /* space */
  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 6rem;    --s10: 8rem;

  --maxw:  1120px;
  --prose: 68ch;
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            var(--n-900);
    --bg-tint:       #151E2E;
    --bg-raised:     #17202F;
    --bg-invert:     var(--brand-dark);
    --text:          var(--n-050);
    --text-muted:    #9BA8BC;
    --text-invert:   var(--n-050);
    --accent-text:   var(--c200);   /* 6.6:1 on brand Dark */
    --accent-soft:   rgba(13, 101, 254, 0.14);
    --border:        rgba(179, 207, 255, 0.13);
    --border-strong: rgba(179, 207, 255, 0.22);
    --shadow-card:   0 1px 2px rgba(0, 0, 0, .34), 0 14px 34px -14px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg:            var(--n-900);
  --bg-tint:       #151E2E;
  --bg-raised:     #17202F;
  --bg-invert:     var(--brand-dark);
  --text:          var(--n-050);
  --text-muted:    #9BA8BC;
  --text-invert:   var(--n-050);
  --accent-text:   var(--c200);
  --accent-soft:   rgba(13, 101, 254, 0.14);
  --border:        rgba(179, 207, 255, 0.13);
  --border-strong: rgba(179, 207, 255, 0.22);
  --shadow-card:   0 1px 2px rgba(0, 0, 0, .34), 0 14px 34px -14px rgba(0, 0, 0, .6);
}

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

/* Component classes below set `display`, which would otherwise beat the user
   agent's [hidden] rule and leave hidden elements on screen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}
h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.033em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.027em; }
h3 { font-size: var(--t-h3); }

p { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 3px;
}

code, pre, .mono { font-family: var(--f-mono); font-feature-settings: "liga" 0; }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--accent); color: #fff; padding: var(--s3) var(--s5);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s4); color: #fff; }

/* --------------------------------------------------------------- layout - */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(3.5rem, 7vw, var(--s9)); }
.section--tint   { background: var(--bg-tint); }
.section--invert { background: var(--bg-invert); color: var(--text-invert); }
.section--invert h2, .section--invert h3 { color: #FFFFFF; }
.section--accent { background: var(--accent); color: #FFFFFF; }
.section--accent h2 { color: #FFFFFF; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--s4);
  font-weight: 500;
}
.section--invert .eyebrow { color: var(--c200); }
.section--accent .eyebrow { color: rgba(255, 255, 255, .82); }

.lede {
  font-size: var(--t-lead);
  color: var(--text-muted);
  max-width: var(--prose);
  margin-top: var(--s5);
}
.section--invert .lede { color: #B9C4D4; }
.section--accent .lede { color: rgba(255, 255, 255, .88); }

.section-head { max-width: var(--prose); margin-bottom: clamp(2.25rem, 4vw, var(--s7)); }

/* --------------------------------------------------------------- buttons - */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  font-family: var(--f-body);
  font-size: var(--t-body); font-weight: 600; line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

/* brand spec: primary = white on color-400, hover = white on color-600 */
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; }

/* brand spec: secondary = color-400 on white, hover = color-600 on white */
.btn--secondary {
  background: transparent; color: var(--accent-text); border-color: var(--border-strong);
}
.btn--secondary:hover { color: var(--accent-hover); border-color: var(--accent); }

.btn--onaccent { background: #FFFFFF; color: var(--c600); }
.btn--onaccent:hover { background: var(--n-050); color: var(--c700); }

.btn--lg { padding: 1.1rem 1.9rem; font-size: var(--t-lead); }

/* ---------------------------------------------------------------- header - */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s5);
  min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.brand__word {
  font-family: var(--f-display); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -0.02em; color: var(--text);
}
.brand__sep { color: var(--border-strong); font-weight: 300; font-size: 1.2rem; }
.brand__product {
  font-family: var(--f-body); font-size: var(--t-small); font-weight: 500;
  color: var(--text-muted); letter-spacing: 0;
}

.site-nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.site-nav__links { display: flex; align-items: center; gap: var(--s5); }
.site-nav a {
  font-size: var(--t-small); font-weight: 500; color: var(--text-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent-text); }
.site-nav .btn {
  padding: .6rem 1.05rem; font-size: var(--t-small); color: #FFFFFF;
  /* the bar is one row at every width; a wrapping CTA is what breaks that */
  white-space: nowrap;
}
@media (max-width: 860px) { .site-nav__links { display: none; } }
/* Below this the bar holds the mark, the CTA and the menu button, and the
   product suffix is the first thing that can go without losing anything. */
@media (max-width: 560px) { .brand__sep, .brand__product { display: none; } }

/* ------------------------------------------------------------------ hero - */
.hero { padding-block: clamp(2.75rem, 6vw, 5.25rem) clamp(3rem, 6vw, var(--s9)); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: var(--s5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: var(--t-lead); color: var(--text-muted); max-width: 48ch; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__proof {
  margin-top: var(--s5); font-size: var(--t-small);
  color: var(--text-muted); max-width: 50ch;
}
.hero__proof code {
  color: var(--accent-text); background: var(--accent-soft);
  padding: .12em .42em; border-radius: 4px; font-size: .95em; white-space: nowrap;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__price {
  margin-top: var(--s5); font-size: var(--t-small); color: var(--text-muted);
  max-width: 48ch;
}
.hero__price b { font-family: var(--f-mono); font-weight: 500; color: var(--text); }

.tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: .34rem .7rem; border-radius: 100px; margin-bottom: var(--s5);
}
.tag__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none;
}

/* ----------------------------------------------------- CTA band layout - */
.cta__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, var(--s8)); align-items: start;
}
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }
.cta__points { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s3); }
.cta__points li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; color: rgba(255, 255, 255, .9); font-size: var(--t-small); }
.cta__points svg { width: 16px; height: 16px; margin-top: .2rem; color: #FFFFFF; flex: none; }

/* ------------------------------------------------------- mobile nav menu - */
/* A CSS-only disclosure. It appears exactly where .site-nav__links hides, so
   every link in the bar stays reachable on a phone without any JS. main.js
   only closes it after a click, which is a convenience, not a requirement. */
.nav-menu { display: none; position: relative; }
@media (max-width: 860px) { .nav-menu { display: block; } }

.nav-menu > summary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
  color: var(--text); cursor: pointer; list-style: none;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { color: var(--accent-text); border-color: var(--accent); }
.nav-menu > summary svg { width: 24px; height: 24px; }

.nav-menu__panel {
  position: absolute; right: 0; top: calc(100% + var(--s3));
  min-width: 13rem;
  display: grid; gap: var(--s1);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: var(--s3);
}
.nav-menu__panel a {
  padding: .5rem .6rem; border-radius: var(--r-sm);
  font-size: var(--t-small); font-weight: 500; color: var(--text);
  text-decoration: none;
}
.nav-menu__panel a:hover { background: var(--accent-soft); color: var(--accent-text); }

/* ------------------------------------------------------------------ badge - */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--f-body); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: #FFFFFF; background: var(--c500);
  padding: .2rem .55rem; border-radius: 100px;
  line-height: 1.5;
}

/* ----------------------------------------------------------- product card - */
.product {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, var(--s7));
  align-items: start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3.5vw, var(--s6));
}
@media (max-width: 720px) { .product { grid-template-columns: 1fr; } }

.product__head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.product__head svg {
  width: 28px; height: 28px; flex: none; color: var(--accent);
}
.product__head h3 { margin-right: var(--s1); }
.product p { color: var(--text-muted); margin-top: var(--s4); max-width: 52ch; }

.product__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.product__facts li {
  display: grid; grid-template-columns: 18px 1fr; gap: .6rem;
  font-size: var(--t-small); color: var(--text-muted);
}
.product__facts svg { width: 16px; height: 16px; margin-top: .3rem; color: var(--accent); flex: none; }
.product__facts b { font-family: var(--f-mono); font-weight: 500; color: var(--text); }

.product__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* -------------------------------------------------------------- principles - */
.principles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(1.5rem, 3.5vw, var(--s7));
}
.principle svg {
  width: 24px; height: 24px; color: var(--accent); margin-bottom: var(--s3);
}
.principle h3 { margin-bottom: var(--s3); }
.principle p { color: var(--text-muted); font-size: var(--t-small); max-width: 42ch; }

/* ------------------------------------------------------------ contact rows - */
.contact-rows { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s3); }
.contact-rows li {
  display: grid; grid-template-columns: 18px 1fr; gap: .6rem;
  font-size: var(--t-small); color: rgba(255, 255, 255, .9);
}
.contact-rows svg { width: 16px; height: 16px; margin-top: .2rem; color: #FFFFFF; flex: none; }
.contact-rows a { color: #FFFFFF; }
.contact-rows a:hover { color: #FFFFFF; }

/* --------------------------------------------------------- single-col hero - */
.hero__single { max-width: 46rem; }

/* ---------------------------------------------------------------- footer - */
.site-footer {
  background: var(--bg-invert); color: #B9C4D4;
  padding-block: var(--s7) var(--s6);
}
.site-footer a { color: #D2DCEC; text-decoration: none; font-size: var(--t-small); }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: var(--s6); justify-content: space-between;
  padding-bottom: var(--s6); border-bottom: 1px solid rgba(179, 207, 255, .14);
}
.footer__brand { max-width: 34ch; }
.footer__brand .brand__word { color: #FFFFFF; }
.footer__brand .brand__mark { color: var(--c300); }
.footer__brand p { font-size: var(--t-small); color: #98A6B9; margin-top: var(--s3); }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, var(--s8)); }
.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__col h4 {
  font-family: var(--f-body); font-size: var(--t-micro); text-transform: uppercase;
  letter-spacing: .12em; color: #7E8DA3; font-weight: 600; margin-bottom: .2rem;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  padding-top: var(--s5); font-size: var(--t-small); color: #7E8DA3;
}
.footer__bottom p { font-size: var(--t-small); }

