/*
 * Lifora web.
 *
 * The same tokens as the app (app/lib/app/theme/), so the site and the
 * product do not look like two different companies. Light and dark both, as
 * everywhere else in Lifora.
 *
 * Deliberately one small stylesheet with no framework: three static pages
 * whose job is to load fast and be readable, including by a store reviewer on
 * a bad connection.
 */

:root {
  --brand: #2f6f5e;
  --brand-muted: #e3f0eb;
  --background: #fbfaf7;
  --surface: #ffffff;
  --border: #e6e2da;
  --text-primary: #1a1d1c;
  --text-secondary: #5c625f;
  --text-tertiary: #8e948f;

  --gutter: 20px;
  --radius: 16px;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6fc3a6;
    --brand-muted: #1e2e2a;
    --background: #111312;
    --surface: #1a1d1c;
    --border: #2e3332;
    --text-primary: #f2f1ed;
    --text-secondary: #a8aeab;
    --text-tertiary: #757b78;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header.site {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--brand);
  text-decoration: none;
}

nav.site a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
}

nav.site a:hover,
nav.site a:focus-visible {
  color: var(--text-primary);
  text-decoration: underline;
}

main {
  padding: 48px 0 64px;
}

h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin: 0 0 12px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  font-weight: 600;
  margin: 40px 0 10px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 6px;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.lede {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 8px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

/* Used where the point of a section is the promise it makes. */
.card.highlight {
  background: var(--brand-muted);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}

.card h3 {
  margin-top: 0;
  color: var(--text-primary);
}

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

.meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

.tagline {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .button.primary {
    color: #07211a;
  }
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--text-tertiary);
}

footer.site a {
  color: var(--text-secondary);
  margin-right: 16px;
}

/* Legal pages: dense text needs a narrower measure and tighter headings. */
.legal {
  --max-width: 680px;
}

.legal h2 {
  font-size: 19px;
  margin-top: 34px;
}

.legal p,
.legal li {
  font-size: 15.5px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.legal th {
  color: var(--text-primary);
  font-weight: 600;
}
