/* Page styles for the app legal sites. Every colour, radius and shadow below is a
   token from the Synapsi design system, imported by foundations.css — nothing here
   invents a value. */

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

body {
  margin: 0;
  font-family: var(--font-sans, "Figtree", system-ui, sans-serif);
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ------------------------------------------------------------------- header */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: 1.05rem; color: var(--slate-900); text-decoration: none;
}
.brand img { border-radius: 9px; display: block; }
.site-head nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.site-head nav a { color: var(--slate-600); text-decoration: none; }
.site-head nav a:hover { color: var(--synapsi-cyan-700); }
.site-head nav a.lang {
  color: var(--synapsi-cyan-700); font-weight: 600;
}

/* --------------------------------------------------------------------- text */
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
  font-weight: 600; color: var(--synapsi-cyan-700); margin: 2rem 0 .4rem;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 .6rem;
  color: var(--slate-900); letter-spacing: -.02em;
}
h2 {
  font-size: 1.3rem; margin: 2.4rem 0 .6rem; color: var(--slate-900);
  letter-spacing: -.01em;
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; color: var(--slate-900); }
.lead { font-size: 1.12rem; color: var(--slate-600); margin: 0 0 .8rem; }
.updated { font-size: .85rem; color: var(--slate-500); margin: 0 0 2rem; }
p, li { font-size: 1rem; }
ul { padding-left: 1.15rem; }
li { margin: .35rem 0; }
a { color: var(--synapsi-cyan-700); }

/* The one brand flourish: a gradient rule under the page title. */
h1 + .lead::before, h1 + .updated::before {
  content: ""; display: block; width: 3.5rem; height: 4px; border-radius: 2px;
  background: var(--synapsi-gradient); margin: .9rem 0 1.1rem;
}

/* -------------------------------------------------------------------- cards */
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
  padding: 1.1rem 1.25rem; margin: 1.2rem 0;
}
.card.key {
  border-color: var(--synapsi-teal-100);
  background: linear-gradient(180deg, var(--synapsi-teal-50) 0%, #fff 60%);
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* A grid of cards, for a page that lists things rather than describing one — the hub
   listing the apps. Two columns where there is room and one where there is not: at
   four items, three columns leaves a widow on every common width. */
.cards {
  display: grid; gap: 1rem; margin: 1.6rem 0 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.cards .card { margin: 0; }
.cards .card h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
/* The line under a card that qualifies it rather than continuing it. */
.meta { font-size: .82rem; color: var(--slate-500); margin: .6rem 0 0; }

/* --------------------------------------------------------------------- home */
.hero { padding: 1rem 0 .5rem; }
.hero .mark { width: 92px; height: 92px; border-radius: 22px; display: block; margin-bottom: 1.2rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.6rem 0 2.4rem; }
.btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 10px;
  font-weight: 600; text-decoration: none; font-size: .95rem;
}
.btn.primary { background: var(--synapsi-gradient); color: #fff; }
.btn.ghost { border: 1px solid var(--slate-300); color: var(--slate-700); }

/* --------------------------------------------------------------- screenshots */
/* A strip that scrolls sideways rather than a grid that reflows: a phone screenshot is
   tall and narrow, and four of them side by side on a phone would each be the width of
   a thumbnail. The scroll container is the figure row, never the page — `.wrap` stays
   put and only this strip moves. */
.shots {
  display: flex; gap: 1rem; overflow-x: auto; margin: 1.6rem 0 2.2rem;
  padding-bottom: .5rem; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.shots figure { margin: 0; flex: 0 0 auto; width: 216px; scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid var(--slate-200); background: #fff;
}
.shots figcaption {
  font-size: .82rem; line-height: 1.45; color: var(--slate-500); margin-top: .65rem;
}

/* ------------------------------------------------------------------- footer */
.site-foot {
  margin-top: 4rem; padding: 2rem 0 3rem;
  border-top: 1px solid var(--slate-200); background: #fff;
}
.site-foot p { margin: .25rem 0; font-size: .88rem; color: var(--slate-500); }
.site-foot a { color: var(--slate-600); }

@media (prefers-color-scheme: dark) {
  body { background: var(--slate-950); color: var(--slate-300); }
  .brand, h1, h2, h3 { color: var(--slate-50); }
  .lead, .meta { color: var(--slate-400); }
  .card { background: var(--slate-900); border-color: var(--slate-800); }
  .card.key { background: var(--slate-900); border-color: var(--synapsi-teal-700); }
  .site-foot { background: var(--slate-900); border-color: var(--slate-800); }
  .site-head nav a { color: var(--slate-400); }
  .shots img { border-color: var(--slate-800); }
  a, .site-head nav a.lang, .eyebrow { color: var(--synapsi-teal-300); }
}
