/*
 * The sales page.
 *
 * Same palette and the same typeface as the app, deliberately: someone who
 * clicks through to the demo should arrive somewhere that looks like the place
 * they came from. No framework and no JavaScript — it is one page of text and
 * three images, and it should be on screen before anyone decides to leave.
 */

:root {
  --bg: #14161a;
  --panel: #1c1f25;
  --text: #e8eaed;
  --muted: #8b929c;
  --accent: #4ade80;
  --line: #2b2f37;

  color-scheme: dark;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* --- shell ---------------------------------------------------------------- */

.top,
main > section,
.foot {
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

/* --- buttons -------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease-out;
}

.button:hover {
  border-color: var(--accent);
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #14161a;
  font-weight: 700;
}

.button--primary:hover {
  filter: brightness(1.08);
}

.button--ghost {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  padding-block: 2rem 3.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__lead {
  max-width: 42rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

/* --- images --------------------------------------------------------------- */

.shot {
  margin: 2.5rem 0 0;
}

.shot__media,
.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
}

.shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.shot--small {
  margin: 0;
}

/* The phone shot is portrait and would tower over its own column. */
.shot--phone {
  margin: 0;
  text-align: center;
}

.shot--phone img {
  width: auto;
  max-height: 30rem;
  border-radius: 1.4rem;
}

/* --- sections ------------------------------------------------------------- */

.band {
  padding-block: 3rem;
}

.band--panel {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 2%), transparent);
}

.band__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

.band__lead {
  max-width: 46rem;
  margin: 0 0 2rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  align-items: center;
}

.grid h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.grid p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* --- comparison ----------------------------------------------------------- */

.table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.92rem;
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  font-weight: inherit;
  text-align: left;
}

.table thead th {
  border-top: 0;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* The two verdict columns stay narrow so the feature column keeps the room. */
.table th:not(:first-child),
.table td {
  width: 7rem;
  text-align: center;
}

.table tbody th {
  width: auto;
  text-align: left;
}

/* Announced by a screen reader, never painted: the em dash in the "no" cells
   reads as nothing at all, and a caption a sighted reader does not need still
   tells a listener what the table is. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.band__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.yes {
  color: var(--accent);
}

.no {
  color: var(--muted);
}

/* --- call to action ------------------------------------------------------- */

.cta {
  text-align: center;
}

.cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

.cta .band__lead {
  margin-inline: auto;
}

.cta .hero__actions {
  justify-content: center;
}

.cta__note {
  max-width: 34rem;
  margin: 1.5rem auto 0;
}

/* --- foot ----------------------------------------------------------------- */

.foot {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- narrow --------------------------------------------------------------- */

@media (max-width: 34rem) {
  .table {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.7rem 0.6rem;
  }

  .table th:not(:first-child),
  .table td {
    width: 4.5rem;
  }

  .band {
    padding-block: 2.25rem;
  }
}

/* --- legal pages ---------------------------------------------------------- */

/* Prose, not a landing page: a measure narrow enough to read, and headings
   that separate the sections without shouting. */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.05rem;
}

.legal p {
  margin-top: 0.75rem;
  line-height: 1.65;
}

.legal code {
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--panel);
  font-size: 0.9em;
}

.foot__copyright {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
