/*
 * The showcase uses the sales guide's palette, so the printed guide and the page
 * read as one thing: navy for weight, copper for the one thing on a screen that
 * should be looked at, and a cool wash to separate sections without lines.
 */
:root {
  --navy: #0f2740;
  --copper: #b5651d;
  --copper-deep: #96501a;
  --ink: #35475a;
  --muted: #4a5c70;
  --line: #dce3ea;
  --paper: #ffffff;
  --wash: #f7f9fb;
  --cream: #fbf3e8;
  --radius: 12px;
  --gutter: 16px;
  --measure: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[lang='ar'] {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--copper-deep);
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--paper);
  border-radius: 8px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

.brand {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav nav {
  flex: 1;
}

.nav__links {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--navy);
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  background: var(--copper);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease;
}

.button:hover {
  background: var(--copper-deep);
}

.button--small {
  min-height: 38px;
  margin-inline-start: auto;
  padding: 0 16px;
  font-size: 0.92rem;
}

.button--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.button--ghost:hover {
  background: var(--wash);
}

.button--light {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}

.button--light:hover {
  background: var(--cream);
}

/* Hero */

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

.hero__text {
  max-width: 860px;
  margin-bottom: 40px;
}

.lede {
  max-width: 680px;
  margin-top: 20px;
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px auto 0;
  list-style: none;
}

.facts li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Screenshots */

.shot {
  margin: 0 0 32px;
}

.shot__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow:
    0 1px 2px rgb(15 39 64 / 6%),
    0 12px 32px -12px rgb(15 39 64 / 22%);
  overflow: hidden;
  cursor: zoom-in;
}

.shot--hero .shot__open {
  box-shadow:
    0 1px 2px rgb(15 39 64 / 6%),
    0 28px 60px -20px rgb(15 39 64 / 32%);
}

.shot figcaption,
.pair figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section--wash {
  background: var(--wash);
}

.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: three;
}

.three li {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  background: var(--wash);
  counter-increment: three;
}

.three li::before {
  content: counter(three);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--copper);
  color: var(--paper);
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.cards p {
  font-size: 0.95rem;
}

.note {
  padding: 18px 20px;
  border-inline-start: 4px solid var(--copper);
  border-radius: 0 10px 10px 0;
  background: var(--cream);
}

.note p {
  font-size: 0.95rem;
}

/* Operations */

.chains {
  display: grid;
  gap: 14px;
  margin: 28px 0 40px;
}

.chain {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--wash);
}

.chain ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.chain li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
}

/* An arrow between steps, not after the last. */
.chain li:not(:last-child)::after {
  content: '→';
  margin-inline-start: 13px;
  margin-inline-end: -4px;
  color: #9aa8b6;
}

.chain .chain__end {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.subhead {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px 28px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.rules li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 0.97rem;
}

.rules li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.rules strong {
  color: var(--navy);
}

/* Accounting */

.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: start;
  caption-side: bottom;
  border-top: 1px solid var(--line);
}

th,
td {
  padding: 12px 16px;
  text-align: start;
}

thead th {
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: var(--wash);
}

tbody th {
  color: var(--navy);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.gallery p {
  margin-top: 10px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.pair figure {
  margin: 0;
}

/* Getting started */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 14px;
  padding-inline-start: 44px;
  counter-increment: step;
  font-size: 0.97rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
}

.steps li:last-child::before {
  background: var(--copper);
}

.steps strong {
  color: var(--navy);
}

.honest {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.honest ul {
  margin: 14px 0 0;
  padding-inline-start: 18px;
  font-size: 0.95rem;
}

.honest li {
  margin-bottom: 6px;
}

/* Call to action */

.cta {
  padding: 72px 0;
  background: var(--navy);
  color: #c7d3df;
  text-align: center;
}

.cta h2 {
  color: var(--paper);
}

.cta p {
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Footer */

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  gap: 6px;
}

.footer strong {
  color: var(--navy);
}

/* Viewer */

.viewer {
  width: min(96vw, 1600px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: auto;
}

.viewer::backdrop {
  background: rgb(15 39 64 / 72%);
}

.viewer__close {
  position: sticky;
  top: 8px;
  float: right;
  width: 40px;
  height: 40px;
  margin: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
