/* Saxtron Software — site styles */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --cobalt: #1d3fd8;
  --cobalt-deep: #142ea6;
  --brass: #d9a93a;
  --smoke: #9a9a9a;
  --graphite: #4a4a4a;
  --line-dark: rgba(255, 255, 255, .16);
  --line-light: rgba(0, 0, 0, .14);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --section-y: clamp(72px, 11vw, 160px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--brass); color: var(--black); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-weight: 800; font-stretch: 118%; letter-spacing: -.01em;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.wordmark svg { height: .72em; width: auto; margin: 0 .035em; align-self: baseline; transform: translateY(.005em); color: var(--brass); }
.wordmark svg { fill: var(--black); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.site-header .wordmark { font-size: 1.35rem; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-size: .95rem; }
.nav a { text-decoration: none; color: #d6d6d6; white-space: nowrap; }
.nav a:hover { color: var(--white); text-decoration: underline; }
.nav .lang { color: var(--smoke); }
.nav .nav-cta {
  color: var(--black); background: var(--brass); padding: 9px 16px; font-weight: 700;
}
.nav .nav-cta:hover { color: var(--black); background: #ebbd4f; text-decoration: none; }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  font: inherit; font-size: .95rem; padding: 8px 14px; cursor: pointer;
}

@media (max-width: 1080px) {
  .menu-btn { display: inline-block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, min(6vw, 7vh), 96px) 0 clamp(64px, 8vw, 112px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: clamp(32px, 4.5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(3.1rem, min(9.4vw, 14.5vh), 8.6rem); line-height: .86; letter-spacing: -.02em; }
.hero h1 .old {
  display: block; font-weight: 250; font-stretch: 62%; color: var(--smoke);
  letter-spacing: 0;
}
.hero h1 .new { display: block; font-weight: 900; font-stretch: 112%; margin-top: .06em; }
.hero-lede { max-width: 34em; margin-top: clamp(28px, 4vw, 44px); font-size: clamp(1.06rem, 1.5vw, 1.25rem); color: #e2e2e2; }
.hero-lede strong { color: var(--white); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1.02rem;
  padding: 15px 24px; text-decoration: none; border: 0; cursor: pointer;
  background: var(--brass); color: var(--black);
}
.btn:hover { background: #ebbd4f; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; }
.link-strong { font-weight: 700; }

/* the transposition panel */
.transpose {
  background: var(--cobalt); color: var(--white);
  position: relative; z-index: 2;
  box-shadow: 18px 18px 0 var(--brass);
}
.transpose-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .22);
  font-size: .85rem;
}
.transpose-file { font-family: var(--mono); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .45); flex-shrink: 0; }
.switch button {
  font: inherit; font-size: .8rem; font-weight: 600; background: none; color: var(--white);
  border: 0; padding: 6px 10px; cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--white); color: var(--cobalt); }
.transpose pre {
  margin: 0; padding: 20px 16px 22px; min-height: 13.4em;
  font-family: var(--mono); font-size: clamp(.72rem, .9vw, .8rem); line-height: 1.68;
  overflow-x: auto; tab-size: 2; font-variant-ligatures: none;
}
.transpose code { font-family: inherit; }
.transpose-foot {
  padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .88rem; color: #dfe4ff;
}
.tok-k { color: #ffd77a; }
.tok-s { color: #b9ffc9; }
.tok-c { color: #aab6ff; font-style: italic; }
.tok-t { color: #8fe3ff; }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section-light { background: var(--white); color: var(--black); color-scheme: light; }
.section-cobalt { background: var(--cobalt); color: var(--white); }
.section-brass { background: var(--brass); color: var(--black); color-scheme: light; }

.section-title {
  font-size: clamp(2.3rem, 5.6vw, 4.9rem); font-weight: 850; font-stretch: 75%;
  line-height: .95; letter-spacing: -.01em; max-width: 14em;
  text-wrap: balance;
}
.section-intro { max-width: 36em; margin-top: 28px; font-size: clamp(1.06rem, 1.4vw, 1.2rem); }

/* why now */
.why-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px);
}
.why-item { border-top: 2px solid var(--black); padding: 20px 0 36px; }
.why-item h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-stretch: 100%; font-weight: 750; line-height: 1.15; margin-bottom: 12px; }
.why-item p { color: #2b2b2b; max-width: 32em; }

/* migration table */
.stack { margin-top: clamp(40px, 6vw, 72px); border-top: 2px solid var(--white); }
.stack-row {
  display: grid; grid-template-columns: minmax(0, 5fr) 56px minmax(0, 6fr);
  align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line-dark);
}
.stack-head { color: var(--smoke); font-size: .95rem; padding: 14px 0; }
.stack-from { font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 300; font-stretch: 70%; color: #cfcfcf; line-height: 1.15; }
.stack-arrow { color: var(--brass); font-size: 1.4rem; text-align: center; }
.stack-to { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; font-stretch: 108%; line-height: 1.25; }
.stack-note { margin-top: 28px; color: var(--smoke); max-width: 40em; }

/* process */
.process-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.process-head .section-intro { margin-top: 0; }
.claim {
  margin: clamp(40px, 6vw, 72px) 0 0; padding-left: clamp(16px, 2.4vw, 32px); border-left: 8px solid #d6001c;
  color: #d6001c; font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 850; font-stretch: 85%;
  line-height: 1.08; max-width: 24em; text-wrap: balance;
}
.steps { list-style: none; padding: 0; margin: clamp(48px, 7vw, 88px) 0 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: clamp(48px, 6vw, 88px) minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding: 26px 0 30px; border-top: 1px solid var(--line-light);
}
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step::before {
  content: counter(step);
  font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 900; font-stretch: 62%; line-height: .8;
  color: var(--cobalt);
}
.step h3 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 800; font-stretch: 100%; line-height: 1.1; }
.step p { margin: 0; color: #2b2b2b; max-width: 36em; }

/* case study */
.case-meta { color: #c9d1ff; margin-bottom: 20px; font-size: 1rem; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.case-col h3 { font-size: 1.15rem; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid currentColor; margin-bottom: 8px; }
.case-before { color: #c9d1ff; }
.case-before h3 { font-weight: 400; font-stretch: 70%; font-size: 1.5rem; }
.case-after h3 { font-stretch: 112%; font-size: 1.5rem; border-bottom-color: var(--brass); border-bottom-width: 4px; }
.case-col ul { list-style: none; margin: 0; padding: 0; }
.case-col li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.case-after li { color: var(--white); }

/* apps */
.apps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.apps-uses { list-style: none; padding: 0; margin: 28px 0 0; border-top: 2px solid var(--black); }
.apps-uses li { padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .25); font-weight: 600; }
.product { background: var(--black); color: var(--white); padding: clamp(24px, 3.5vw, 44px); }
.product + .product { margin-top: 20px; }
.product h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-stretch: 85%; font-weight: 850; }
.product-sub { color: var(--smoke); margin: 6px 0 18px; }
.product p { color: #e2e2e2; max-width: 34em; }
.product .faders { margin: 4px 0 24px; width: 100%; max-width: 420px; height: auto; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5); padding: 9px 18px 10px; min-width: 190px;
  text-decoration: none; line-height: 1.2;
}
.store small { font-size: .74rem; color: var(--smoke); }
.store span { font-weight: 700; font-size: 1.1rem; }
.store:hover { border-color: var(--brass); background: #111; }
.product-plain { background: transparent; color: var(--black); border: 2px solid var(--black); }
.product-plain p, .product-plain .product-sub { color: #1d1d1d; }

/* web */
.web-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.portal { border-top: 2px solid var(--black); padding-top: 20px; }
.portal h3 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-stretch: 80%; font-weight: 850; line-height: 1; }
.portal-years { display: flex; gap: clamp(24px, 4vw, 56px); margin: 28px 0; }
.portal-years div { border-left: 4px solid var(--cobalt); padding-left: 14px; }
.portal-years b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; font-stretch: 70%; line-height: 1; }
.portal-years span { font-size: .95rem; color: var(--graphite); }
.services-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--black); }
.services-list li { padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.services-list b { display: block; font-size: 1.15rem; }
.services-list span { color: var(--graphite); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-hat { color: var(--white); width: 100%; max-width: 460px; }
.about p { color: #dcdcdc; max-width: 36em; }
.about .section-title { margin-bottom: 28px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-direct { margin-top: 36px; font-size: 1.15rem; line-height: 1.5; }
.contact-direct a { font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.75rem); text-decoration: none; display: inline-block; margin-bottom: 6px; }
.contact-direct a:hover { text-decoration: underline; }
.contact-direct address { font-style: normal; margin-top: 18px; color: #dfe4ff; font-size: 1rem; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
[data-turnstile]:empty { display: none; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--white);
  background: var(--cobalt-deep); border: 1px solid rgba(255, 255, 255, .45);
  padding: 13px 14px; border-radius: 0; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.field select option { color: var(--black); background: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot small { color: #dfe4ff; max-width: 30em; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-error { color: #ffd77a; }

/* footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line-dark); color: var(--smoke); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: baseline; }
.site-footer .wordmark { color: var(--white); font-size: 1.1rem; }
.site-footer a { color: #cfcfcf; }
.link-button { font: inherit; color: #cfcfcf; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link-button:hover { text-decoration-thickness: 2px; }

/* cookie consent */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-left: auto;
  background: var(--white); color: var(--black); padding: 18px 20px;
  box-shadow: 8px 8px 0 var(--brass); font-size: .95rem;
}
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 10px 16px; font-size: .95rem; }
.consent[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .process-head, .apps-grid, .web-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .transpose { box-shadow: 10px 10px 0 var(--brass); margin-right: 10px; }
  .about-hat { max-width: 300px; }
}
@media (max-width: 720px) {
  .why-grid, .case-grid, .form { grid-template-columns: minmax(0, 1fr); }
  .stack-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stack-head { display: none; }
  .stack-arrow { text-align: left; font-size: 1rem; line-height: 1; }
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .step p { grid-column: 2; }
  .portal-years { flex-wrap: wrap; }
}
