/* Makkal's websites (makkal.app, gage.makkal.app): one style for every app's site.
   Plum and orange from the brand files (makkal-suite/brand); no web fonts. */
:root {
  --plum: #4b2a6b;
  --plum-soft: #f3eef8;
  --orange: #fd5722;
  --orange-ink: #c93d12;
  --bg: #fcfbfd;
  --surface: #ffffff;
  --ink: #1d1626;
  --muted: #5d5468;
  --line: #e6e0ec;
  --accent: var(--plum);
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgb(29 22 38 / 6%), 0 8px 24px rgb(29 22 38 / 6%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --plum-soft: #2a2036;
    --bg: #141019;
    --surface: #1c1623;
    --ink: #efeaf4;
    --muted: #b3a8c0;
    --line: #342a40;
    --accent: #b99be0;
    --accent-ink: #141019;
    --orange-ink: #ff7a45;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}
.narrow > * {
  max-width: 720px;
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.top .logo img {
  display: block;
  height: 40px;
  width: auto;
}
.top nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-size: 0.95rem;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--accent);
}

.button {
  display: inline-block;
  padding: 0.6em 1.15em;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.button.quiet {
  background: transparent;
  color: var(--accent) !important;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5em;
}

/* Sections */
.hero {
  padding-block: 72px 48px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40em;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-ink);
  margin-bottom: 0.75em;
}
section {
  padding-block: 48px;
}
section.band {
  background: var(--plum-soft);
}
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shot img {
  display: block;
  width: 100%;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.flip > :first-child {
    order: 0;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.card p {
  color: var(--muted);
  margin: 0;
}
ul.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.ticks li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 0.5em;
}
ul.ticks li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.55em;
  width: 0.6em;
  height: 0.6em;
  background: var(--orange);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* The apps, as a honeycomb of hexagons (cards on narrow screens) */
.hive {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
}
.cell:nth-child(even) {
  transform: translateY(28px);
}
a.cell:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.cell .hex {
  width: 56px;
  height: 64px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--plum);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.cell.live .hex {
  background: var(--orange);
}
.cell .hex img {
  width: 36px;
  height: 36px;
}
.cell p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--accent);
}
.cell.live .tag {
  background: var(--orange);
  color: #fff;
}
@media (max-width: 900px) {
  .hive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .hive {
    grid-template-columns: minmax(0, 1fr);
  }
  .cell:nth-child(even) {
    transform: none;
  }
}

/* Help pages */
.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5em;
}
.crumbs a {
  color: var(--muted);
}
.help-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}
.help-list a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.help-list a:hover {
  border-color: var(--accent);
}
.help-list span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
article.help {
  padding-block: 48px;
}
article.help .about {
  font-size: 1.15rem;
}

details {
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 0.6em 0 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
footer a {
  color: var(--muted);
}
footer .from img {
  height: 16px;
  width: auto;
  vertical-align: -3px;
}
@media (max-width: 600px) {
  .top nav a:not(.button) {
    display: none;
  }
}
