/* EL-Pro public site. Black and white, from the "el" logo.
   Shape rule: interactive elements are pills; screenshots and panels use 20px. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-soft: #525252;
  --paper: #fafafa;
  --panel: #f2f2f2;
  --line: #e0e0e0;
  --on-ink: #fafafa;
  --radius: 20px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f5;
    --ink-soft: #a3a3a3;
    --paper: #0f0f0f;
    --panel: #181818;
    --line: #2a2a2a;
    --on-ink: #0a0a0a;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mark {
  display: inline-block;
  width: 26px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("img/logo-mark.png") center / contain no-repeat;
  mask: url("img/logo-mark.png") center / contain no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9375rem;
}

.nav a:not(.button) {
  text-decoration: none;
  color: var(--ink-soft);
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* Hero: asymmetric split */

.hero {
  padding: 40px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 12ch;
}

.hero p.lead {
  margin: 0 0 32px;
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.shots {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}

.shot {
  /* Two shots at 56% with a 12% overlap fill exactly 100% on small screens. */
  width: min(56%, 300px);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.12);
}

.shot + .shot {
  margin-left: -12%;
  margin-top: 64px;
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 64px;
  }

  .hero .wrap {
    grid-template-columns: 7fr 5fr;
  }

  .shots {
    justify-content: flex-end;
  }
}

/* Features: verb + sentence rows */

.features {
  padding: 64px 0 96px;
}

.features h2,
.status h2,
.doc h1 {
  margin: 0 0 48px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 20ch;
}

.feature-list {
  margin: 0;
  display: grid;
  gap: 40px;
}

.feature-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.feature-list dt {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-list dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

@media (min-width: 768px) {
  .feature-list div {
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: baseline;
  }
}

/* Status: two panels */

.status {
  padding: 32px 0 120px;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
}

.panel h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
}

.panel .when {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.panel ul {
  margin: 0;
  padding-left: 1.1em;
}

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

@media (min-width: 768px) {
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Documents (privacy, deletion) */

.doc {
  padding: 48px 0 120px;
}

.doc .wrap {
  max-width: 760px;
}

.doc .updated {
  margin: -32px 0 48px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  max-width: 68ch;
}

.doc ul,
.doc ol {
  padding-left: 1.25em;
}

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

.doc .panel {
  margin: 32px 0;
}

.doc .panel p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer a {
  text-decoration: none;
}

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

@media (max-width: 560px) {
  .nav a:not(.button) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:active {
    transform: none;
  }
}

.nowrap {
  white-space: nowrap;
}
