/* Bytefrost Technologies
   Palette: rime (ground), snow (raised), ink (text), slate (secondary), hoar (lines),
   ice (crystal tips), signal (expedition orange, used only for the main action and the crystal core).
   One family, Archivo; its width axis separates display (wide) from text (normal).
   Composition: everything sits on one vertical centre axis. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --rime: #edf1f2;
  --snow: #f8fafa;
  --ink: #0e2733;
  --slate: #4a626c;
  --hoar: #c6d3d8;
  --ice: #6fa8bf;
  --signal: #f2541b;
  --on-signal: #0e2733;
  --night: #0e2733;
  --night-text: #e4edf0;
  --night-soft: #9db3bc;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(4.5rem, 10vw, 8rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rime: #0b1e27;
    --snow: #102833;
    --ink: #e4edf0;
    --slate: #9db3bc;
    --hoar: #24424f;
    --ice: #7dbdd4;
    --signal: #ff6a33;
    --on-signal: #0b1e27;
    --night: #071319;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --rime: #0b1e27;
  --snow: #102833;
  --ink: #e4edf0;
  --slate: #9db3bc;
  --hoar: #24424f;
  --ice: #7dbdd4;
  --signal: #ff6a33;
  --on-signal: #0b1e27;
  --night: #071319;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rime);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--signal); }

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

.skip {
  position: absolute; left: 50%; top: 0.5rem; transform: translate(-50%, -200%);
  background: var(--ink); color: var(--rime); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-stretch: 122%;
  font-weight: 640;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); line-height: 1.08; }
h3 { font-size: 1.1875rem; line-height: 1.25; font-stretch: 110%; letter-spacing: -0.01em; font-weight: 620; }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.55; color: var(--slate); }
.quiet { color: var(--slate); }
.small { font-size: 0.875rem; }

.measure { max-width: 38rem; margin-inline: auto; }
.measure-wide { max-width: 48rem; margin-inline: auto; }

.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ---------- layout ---------- */

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.block { padding-block: var(--space); }
.block-tight { padding-block: calc(var(--space) * 0.6); }
.raised { background: var(--snow); }

/* ---------- header / footer ---------- */

.site-head { padding-top: 1.75rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-stretch: 125%; font-weight: 680; font-size: 1.25rem; letter-spacing: -0.03em;
}
.brand svg { width: 1.6rem; height: 1.6rem; }
.nav { margin-top: 1rem; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.75rem;
}
.nav a { text-decoration: none; color: var(--slate); font-size: 0.9375rem; padding: 0.25rem 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }

.site-foot { border-top: 1px solid var(--hoar); padding-block: 3.5rem 2.5rem; }
.site-foot .brand { font-size: 1.0625rem; }
.site-foot nav ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.site-foot nav a { color: var(--slate); text-decoration: none; font-size: 0.9375rem; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot .fine { margin-top: 1.5rem; color: var(--slate); font-size: 0.8125rem; }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 4px;
  font: inherit; font-weight: 600; font-stretch: 108%; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--rime); }
.btn-go { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn-go:hover { background: var(--ink); border-color: var(--ink); color: var(--rime); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(1.5rem, 4vw, 3rem) var(--space); }
.crystal {
  display: block; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  width: clamp(13rem, 34vw, 21rem); aspect-ratio: 1;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.crystal canvas { width: 100%; height: 100%; display: block; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lede { margin-top: 1.5rem; }
.hero .actions { margin-top: 2.25rem; }

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.25rem, 5.4vw, 3.9rem); max-width: 18ch; margin-inline: auto; }
.page-head .lede { margin-top: 1.25rem; }

/* ---------- the split: plain software | AI, mirrored about the centre axis ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1px 1fr; column-gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.split::before { content: ""; grid-column: 2; grid-row: 1 / span 20; background: var(--hoar); }
.split > .side-a { grid-column: 1; grid-row: 1; text-align: right; }
.split > .side-b { grid-column: 3; grid-row: 1; text-align: left; }
.split h3.side-title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-stretch: 122%; }
.split .side-sub { color: var(--slate); margin-top: 0.4rem; }
.split ul { list-style: none; padding: 0; margin: 2.25rem 0 0; }
.split li + li { margin-top: 1.6rem; }
.split li h3 { font-size: 1.0625rem; font-stretch: 104%; letter-spacing: 0; }
.split li p { color: var(--slate); margin-top: 0.25rem; }
.split .side-a ul, .split .side-a .side-sub { margin-left: auto; max-width: 26rem; }
.split .side-b ul, .split .side-b .side-sub { margin-right: auto; max-width: 26rem; }

.axis-note {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 34rem;
  padding: 1.75rem 0 0; position: relative;
}
.axis-note::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px;
  transform: translate(-50%, -50%); background: var(--signal);
}

/* ---------- Konvia band ---------- */

.band { background: var(--night); color: var(--night-text); }
.band .lede, .band .quiet { color: var(--night-soft); }
.band .btn { border-color: var(--night-text); color: var(--night-text); }
.band .btn:hover { background: var(--night-text); color: var(--night); }
.band .btn-go { background: var(--signal); border-color: var(--signal); color: #0e2733; }
.band .btn-go:hover { background: var(--night-text); border-color: var(--night-text); }
.product-name { font-stretch: 125%; font-weight: 720; font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.045em; line-height: 0.95; }

.phones {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.75rem, 2.5vw, 1.75rem);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 52rem;
}
.phones img { width: 30%; border-radius: clamp(10px, 1.6vw, 18px); }
.phones img:nth-child(2) { width: 36%; }
.phones img:nth-child(1), .phones img:nth-child(3) { margin-bottom: clamp(1rem, 4vw, 3rem); }

/* ---------- process: a real sequence along the axis ---------- */

.steps { list-style: none; padding: 0; margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 34rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-bottom: 2.75rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; margin: 0 auto 1rem;
  border: 1.5px solid var(--ink); font-weight: 650; font-stretch: 120%; font-size: 0.9375rem; background: var(--rime);
  position: relative; z-index: 1;
}
.raised .steps li::before { background: var(--snow); }
.steps li::after {
  content: ""; position: absolute; left: 50%; bottom: 0.6rem; height: 1.5rem; width: 1px; background: var(--hoar);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.125rem; }
.steps p { color: var(--slate); margin-top: 0.35rem; }

/* ---------- centred lists ---------- */

.lines { list-style: none; padding: 0; margin: 1rem 0 0; }
.lines li { padding: 0.45rem 0; color: var(--slate); }
.lines li + li { border-top: 1px solid var(--hoar); }

.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.groups > div { max-width: 28rem; margin-inline: auto; width: 100%; }
.groups-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- screenshot rail ---------- */

.rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.25rem; margin-top: clamp(2.5rem, 6vw, 4rem);
  scrollbar-width: thin;
}
.rail img { flex: 0 0 auto; width: clamp(11rem, 22vw, 15rem); border-radius: 14px; scroll-snap-align: center; }
.rail::before, .rail::after { content: ""; flex: 1 0 0; }
@media (min-width: 960px) {
  .rail {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
    width: min(100% - 2 * var(--gutter), 60rem); margin-inline: auto; padding: 0; overflow: visible;
  }
  .rail::before, .rail::after { display: none; }
  .rail img { width: 100%; }
}

/* ---------- presets ---------- */

.presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 2rem; padding: 0; list-style: none; }
.presets li { border: 1.5px solid var(--hoar); padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.9375rem; }

/* ---------- plans ---------- */

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1.5px solid var(--ink); margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center;
}
.plan { padding: 2.25rem clamp(1.25rem, 2.5vw, 2rem) 2rem; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1.5px solid var(--ink); }
.plan.picked { background: var(--snow); box-shadow: inset 0 4px 0 var(--signal); }
.plan .price { font-stretch: 125%; font-weight: 700; font-size: 2.75rem; letter-spacing: -0.04em; line-height: 1; margin-top: 1rem; }
.plan .license { color: var(--slate); font-size: 0.875rem; margin-top: 0.5rem; }
.plan ul { list-style: none; padding: 0; margin: 1.75rem 0 2rem; flex: 1; }
.plan li { padding: 0.5rem 0; font-size: 0.9375rem; color: var(--slate); }
.plan li + li { border-top: 1px solid var(--hoar); }
.plan .btn { width: 100%; }
.plan-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--slate); }

/* ---------- engagement table ---------- */

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1.5px solid var(--ink); }
.ways > div { padding: 1.75rem clamp(1rem, 2.5vw, 2rem) 0; }
.ways > div + div { border-left: 1px solid var(--hoar); }
.ways p { color: var(--slate); margin-top: 0.5rem; }

/* ---------- form ---------- */

.form { max-width: 36rem; margin: clamp(2rem, 5vw, 3rem) auto 0; text-align: left; }
.field + .field { margin-top: 1.4rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.4rem; }
.field .hint { font-weight: 400; color: var(--slate); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--snow);
  border: 1.5px solid var(--hoar); border-radius: 4px; padding: 0.7rem 0.85rem;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 35%, transparent); }
.field textarea { min-height: 9rem; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field + .field, .field + fieldset.field { margin-top: 1.4rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.choices label {
  display: flex; gap: 0.6rem; align-items: center; margin: 0; font-weight: 500;
  border: 1.5px solid var(--hoar); border-radius: 4px; padding: 0.65rem 0.8rem; cursor: pointer; background: var(--snow);
}
.choices input { accent-color: var(--signal); margin: 0; }
.choices label:has(input:checked) { border-color: var(--ink); }
.form .actions { justify-content: flex-start; margin-top: 2rem; }
.form-error { color: var(--signal); font-weight: 600; margin-top: 1rem; min-height: 1.5em; }
.form-done { margin-top: 1rem; color: var(--slate); }

/* ---------- prose (legal) ---------- */

.prose { max-width: 40rem; margin-inline: auto; text-align: left; }
.prose h2 { font-size: 1.375rem; font-stretch: 112%; margin-top: 2.75rem; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.updated { color: var(--slate); font-size: 0.9375rem; }

/* ---------- details ---------- */

.facts { margin: clamp(2rem, 5vw, 3rem) auto 0; max-width: 30rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--hoar); text-align: right; }
.facts div:last-child { border-bottom: 1px solid var(--hoar); }
.facts dt { color: var(--slate); text-align: left; }
.facts dd { margin: 0; font-weight: 550; }

/* ---------- narrow screens ---------- */

@media (max-width: 760px) {
  .groups-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .split::before { display: none; }
  .split > .side-a, .split > .side-b { grid-column: 1; text-align: center; }
  .split > .side-b { grid-row: 2; padding-top: 3.5rem; border-top: 1px solid var(--hoar); }
  .split .side-a ul, .split .side-b ul, .split .side-a .side-sub, .split .side-b .side-sub { margin-inline: auto; }
  .groups { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1.5px solid var(--ink); }
  .ways { grid-template-columns: 1fr; }
  .ways > div + div { border-left: 0; border-top: 1px solid var(--hoar); margin-top: 1.75rem; }
  .choices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
