/* optionloom.app, the public site. Same colours and fonts as the app (apps/web/src/app/tokens.css). */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-600.woff2') format('woff2');
}

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --line: #e3e1da;
  --ink: #1d2128;
  --ink-2: #3a3f48;
  --muted: #5b6270;
  --accent: #0f6b6b;
  --accent-hover: #0a4f4f;
  --accent-tint: #f1f8f7;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 720px;
}

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
header nav a[aria-current='page'] {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn.ghost {
  color: var(--accent);
  background: var(--surface);
}
header nav .btn {
  padding: 6px 14px;
}
header nav .btn.primary {
  color: #fff;
}

main {
  padding: 48px 0 64px;
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 16px;
}
h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 6px;
}
p {
  margin: 0 0 14px;
}
.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.steps li,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.steps b {
  display: block;
  margin-bottom: 4px;
}
.steps .n {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  line-height: 28px;
  margin-bottom: 10px;
}

.examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.examples figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.examples img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.examples figcaption {
  padding: 10px 12px;
  font-size: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.features p {
  margin: 0;
  color: var(--ink-2);
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}
dl.facts dt {
  color: var(--muted);
}
dl.facts dd {
  margin: 0;
}
.todo {
  background: #fbefd9;
  color: #7a4700;
  padding: 0 4px;
  border-radius: 4px;
}

.legal h2 {
  font-size: 19px;
  margin-top: 32px;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal li {
  margin-bottom: 6px;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
}

@media (max-width: 560px) {
  h1 {
    font-size: 28px;
  }
  .lead {
    font-size: 17px;
  }
  main {
    padding: 32px 0 48px;
  }
  dl.facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  dl.facts dd {
    margin-bottom: 10px;
  }
}
