/* AlpSan — one sheet, system fonts, no third-party request. The theme follows the system unless the
   header button chose one: js/theme.js sets data-theme on <html>, and color-scheme picks the side of
   every light-dark() below. */

:root {
  --bg: light-dark(#f6f5f1, #0f1215);
  --surface: light-dark(#ffffff, #171b20);
  --ink: light-dark(#14181d, #eef1f3);
  --muted: light-dark(#5a636e, #9aa4ae);
  --line: light-dark(#e2dfd7, #262c33);
  --accent: light-dark(#1e5468, #7fb8cc);
  --accent-soft: light-dark(#e4eef1, #16262d);
  --radius: 14px;
  --container: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark svg {
  width: auto;
  height: 22px;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.header__end {
  display: flex;
  align-items: center;
  gap: 24px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* The icon shows the theme a click leads to: the moon in light, the sun in dark. */
.theme-toggle__sun,
:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle__sun {
    display: block;
  }
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .nav {
    gap: 18px;
  }

  .header__end {
    gap: 16px;
  }

  .nav a:not(.nav__contact) {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 104px 0 112px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 700;
}

.hero__lead {
  margin-top: 24px;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--accent));
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--line) 50%, var(--ink));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__mark {
  width: 100%;
  height: auto;
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__mark {
    display: none;
  }
}

/* Sections */

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: 48px;
}

.section__head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
}

.section__head p {
  margin-top: 16px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 650;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* Product */

.product {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 44px;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }
}

.product__id {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product__id img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.product__id h3 {
  font-size: 30px;
  font-weight: 700;
}

.product__tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.product__text {
  margin-top: 24px;
  color: var(--muted);
}

.product__text strong {
  color: var(--ink);
  font-weight: 600;
}

.product .actions {
  margin-top: 28px;
}

.facts {
  margin: 0;
  display: grid;
  gap: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.facts div:first-child {
  padding-top: 0;
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

/* Company */

.company {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .company {
    grid-template-columns: 1fr;
  }
}

.company__text h2 {
  margin: 12px 0 24px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
}

.company__text p + p {
  margin-top: 16px;
}

.company__text p {
  color: var(--muted);
}

/* Contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.contact__mail {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.contact__mail:hover {
  color: var(--accent);
}

.contact__meta {
  color: var(--muted);
  font-size: 15px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer a {
  color: var(--muted);
}

/* Legal page */

.legal {
  padding: 72px 0 96px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
}

.legal__updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.legal h2 {
  margin-top: 56px;
  font-size: 22px;
  font-weight: 650;
}

.legal p,
.legal ul {
  margin-top: 14px;
  max-width: 70ch;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 6px;
}

.legal .facts {
  margin-top: 20px;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 24px;
}

.legal .facts div:first-child {
  padding-top: 14px;
}

@media (max-width: 560px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 64px 0;
  }

  .section__head {
    margin-bottom: 32px;
  }
}
