/* ── Brand palette ─────────────────────────────────────────────────────────
   Colours taken from the app icon: blue gradient #1E88E5 → #0D47A1 with an
   orange accent #FF7043. Override Material's named-colour defaults so links,
   buttons and the header match the app. */

:root {
  --cl-blue: #1E88E5;
  --cl-blue-dark: #0D47A1;
  --cl-orange: #FF7043;
}

[data-md-color-primary="blue"] {
  --md-primary-fg-color: var(--cl-blue-dark);
  --md-primary-fg-color--light: var(--cl-blue);
  --md-primary-fg-color--dark: var(--cl-blue-dark);
}

[data-md-color-accent="deep-orange"] {
  --md-accent-fg-color: var(--cl-orange);
}

/* Header echoes the icon's blue gradient. */
.md-header {
  background: linear-gradient(135deg, var(--cl-blue) 0%, var(--cl-blue-dark) 100%);
}
.md-tabs {
  background: transparent;
}

/* Slightly larger, rounded logo in the header. */
.md-header__button.md-logo img {
  height: 1.9rem;
  width: 1.9rem;
  border-radius: 6px;
}

/* ── Landing page hero ─────────────────────────────────────────────────── */

.cl-hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

.cl-hero__icon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(13, 71, 161, 0.35);
}

.cl-hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
  line-height: 1.1;
}

.cl-hero__tagline {
  font-size: 1.25rem;
  opacity: 0.8;
  margin: 0 0 1.75rem;
}

.cl-hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons reuse Material's .md-button but force the brand colours. */
.cl-hero__actions .md-button {
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}
.cl-hero__actions .md-button--primary {
  background: var(--cl-orange);
  border-color: var(--cl-orange);
  color: #fff;
}
.cl-hero__actions .md-button--primary:hover {
  background: #f4592e;
  border-color: #f4592e;
}

/* ── Feature grid ──────────────────────────────────────────────────────── */

.cl-section-title {
  text-align: center;
  margin-top: 2.5rem;
}

.cl-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.cl-feature {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--md-default-bg-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.cl-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(13, 71, 161, 0.18);
  border-color: var(--cl-blue);
}

.cl-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--cl-blue);
}
[data-md-color-scheme="slate"] .cl-feature h3 {
  color: var(--cl-blue);
}
.cl-feature p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.cl-download {
  text-align: center;
  margin: 2rem 0 3rem;
  opacity: 0.85;
}

@media screen and (max-width: 480px) {
  .cl-hero__title { font-size: 2.1rem; }
  .cl-hero__icon { width: 104px; height: 104px; }
}
