/* Colander marketing site. Light by default, dark when the device is. */

/* Inter, hosted here rather than on Google Fonts so visitors' browsers only
   talk to our own host. One variable file covers both weights (500 and 700). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #404040;
  --rule: #e5e5e5;
  --brand-from: #3841f7;
  --brand-to: #0d14a9;
  --link: #3841f7;
  --todo-bg: #fff3b0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --rule: #2a2a2a;
    --brand-from: #7a80ff;
    --brand-to: #4a52ff;
    --link: #8a90ff;
    --todo-bg: #5c4a00;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Home ---------- */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand img { width: 120px; height: 120px; display: block; }

.wordmark {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1.92px;
  line-height: normal;
  background: linear-gradient(to right, var(--brand-from), var(--brand-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  line-height: normal;
  color: var(--text);
}

/* App Store badge — Apple's official artwork, black in light mode, white in dark */
.badge { display: block; }
.badge img { display: block; width: 119.664px; height: 40px; }

/* Links: underlined, and the underline fades away on hover */
.footer nav a, .legal a {
  text-decoration-color: currentColor;
  transition: text-decoration-color 0.15s ease;
}
.footer nav a:hover, .legal a:hover { text-decoration-color: transparent; }
.legal-header:hover { text-decoration: none; }

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  color: var(--muted);
}

.footer nav { display: flex; gap: 16px; }

.footer nav a {
  font-size: 14px;
  letter-spacing: -0.42px;
  text-decoration: underline;
  text-underline-position: from-font;
}

.footer small { font-size: 10px; letter-spacing: -0.3px; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) 16px max(48px, env(safe-area-inset-bottom));
  font-size: 16px;
  line-height: 1.6;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 32px;
}
.legal-header img { width: 40px; height: 40px; }
.legal-header span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.66px;
  background: linear-gradient(to right, var(--brand-from), var(--brand-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal h1 { font-size: 32px; letter-spacing: -0.96px; line-height: 1.2; margin: 0 0 8px; }
.legal h2 { font-size: 20px; letter-spacing: -0.4px; margin: 40px 0 8px; }
.legal p, .legal ul { margin: 0 0 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.legal a { color: var(--link); }

.legal .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }

/* Unfilled placeholders, highlighted so they can't be missed before publishing */
.todo { background: var(--todo-bg); color: inherit; padding: 0 3px; border-radius: 3px; }

.legal .footer { margin-top: 48px; }
