/* The Countinghaus landing page. One stylesheet, system fonts, no script. */
:root {
  --bg: #0f172a;
  --deep: #020617;
  --panel: #1e293b;
  --line: #334155;
  --text: #e2e8f0;
  --strong: #f8fafc;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-soft: #a5b4fc;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent-soft);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-inline: auto;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
}

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

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

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--strong);
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  border-radius: 50%;
}

.top nav {
  display: none;
  gap: 1.5rem;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

@media (min-width: 48rem) {
  .top nav {
    display: flex;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button:hover {
  background: #7c7ff5;
}

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

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

/* ── Sections ────────────────────────────────────────────────────────── */
.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.lede {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.band {
  padding: 4rem 1.25rem;
}

.band > * {
  max-width: 72rem;
  margin-inline: auto;
}

.band.alt {
  background: var(--deep);
  border-block: 1px solid #1e293b;
}

.intro {
  margin-top: 1rem;
}

/* The introduction is a narrower column that starts at the section's left
   edge: the section is centred, and the padding keeps the text short. */
.band > .intro {
  padding-right: max(0px, calc(100% - 46rem));
}

.cards {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

/* Six cards read better as two rows of three than as four and two. */
@media (min-width: 60rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.cards p {
  margin-top: 0.5rem;
  color: #cbd5e1;
  font-size: 0.97rem;
}

.columns {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.plain {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.plain li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  border-bottom: 1px solid #1e293b;
}

.plain li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.columns .small {
  margin-top: 1rem;
}

.ticks li {
  border-bottom: 0;
  padding-block: 0.6rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split > div > * + * {
  margin-top: 1rem;
}

.split h3 {
  margin-top: 2rem;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: 1fr 1.15fr;
  }

  .split.reverse {
    grid-template-columns: 0.7fr 1fr;
  }
}

.pair {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

/* ── Screenshots ─────────────────────────────────────────────────────── */
.shot {
  margin: 0;
}

.shot img {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7);
  background: var(--deep);
}

.shot.wide {
  margin-top: 3rem;
}

.shot.phone img {
  max-width: 17rem;
  margin-inline: auto;
  border-radius: 26px;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ── Closing and footer ──────────────────────────────────────────────── */
.closing {
  text-align: center;
}

.closing p {
  margin-top: 0.75rem;
}

footer {
  border-top: 1px solid #1e293b;
  padding: 2rem 1.25rem;
  text-align: center;
}

footer p:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--strong);
  font-weight: 600;
}

footer img {
  border-radius: 50%;
}

footer .small {
  margin-top: 0.5rem;
}

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