/*
 * The landing page's whole stylesheet.
 *
 * No build step and no framework: `pnpm build:hosting` copies web/ verbatim, so
 * anything that needed compiling would need a second pipeline for four static
 * pages. No web fonts either -- a system stack renders instantly, costs no
 * request, and keeps the Content-Security-Policy on these pages as tight as it
 * is (no external origin at all).
 *
 * Colours match app/src/theme/theme.ts, so arriving at /app/ does not feel like
 * a different product.
 */

:root {
  --ink: #16201f;
  --ink-soft: #4a5654;
  --primary: #1b5e5a;
  --primary-dark: #124440;
  --surface: #ffffff;
  --page: #f6f8f7;
  --line: #dde5e3;
  --radius: 12px;
  --measure: 62rem;
}

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

html {
  /* The one place a scroll-behaviour belongs: the in-page anchors below. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  /* Long Czech compounds on a narrow phone; without this they overflow. */
  overflow-wrap: break-word;
}

/* Mobile-first: one column, and the grids below opt into more width. */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  text-decoration: none;
}

nav.lang a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
}

nav.lang a[aria-current='true'] {
  color: var(--ink);
  font-weight: 600;
}

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

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

/* 44px minimum touch target, the same rule the app's theme enforces. */
.cta {
  display: inline-block;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
  background: var(--primary-dark);
}

.cta-note {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

section {
  padding-block: 2.5rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9875rem;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.plan .price {
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
}

.plan ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.plan.soon {
  border-style: dashed;
  color: var(--ink-soft);
}

footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 2rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

footer.site a {
  color: var(--ink-soft);
}

footer.site .wrap > * + * {
  margin-top: 0.5rem;
}

/* Legal pages: a readable column, numbered sections. */
.legal {
  max-width: 44rem;
}

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

.legal ul {
  padding-left: 1.25rem;
}

.updated {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

a:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
