
/* Inter variable font (weights 100-900), hosted on the brand CDN and shared
   with the Spring Boot email/account-page templates (see
   docs/web-account-pages.md). The CDN must send Access-Control-Allow-Origin
   for this URL since cross-origin font loads are always CORS requests. */
@font-face {
  font-family: 'Inter';
  src: url('https://assets.markdownalerts.com/fonts/inter-variable-v1.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #18794e;
  --green-dark: #115c3b;
  --text: #172b22;
  --muted: #607169;
  --background: #f8fbf8;
  --border: #dfe8e0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--green); }

.container {
  width: min(100% - 40px, 1024px);
  margin-inline: auto;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 18px;
}

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--green);
}

.brand-logo {
  display: block;
  width: 220px;
  max-width: 55vw;
  height: auto;
}

nav { display: flex; flex-wrap: wrap; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--green); }

.hero {
  padding: 110px 0 90px;
  max-width: 760px;
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

h2 { line-height: 1.3; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 25px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  padding-bottom: 90px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  gap: 10px;
  padding: 24px;
}

.feature-icon {
  display: block;
  width: 28px;
  height: 28px;

  color: var(--green);
  flex-shrink: 0;
}

.feature-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.legal {
  max-width: 800px;
  padding-block: 48px 90px;
}

.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { margin-top: 36px; }
.legal p, .legal li { color: #405248; overflow-wrap: anywhere; }

footer {
  border-top: 1px solid var(--border);
  padding: 25px 0;
  color: var(--muted);
  font-size: .9rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Responsive breakpoints
   Desktop styles above are the baseline/default and are left unchanged.
   Tablet: ≤768px (e.g. 768px). Phone: ≤640px (covers 320/393/440px devices).
   ========================================================================== */

/* Tablet: trim the generous desktop whitespace; header/nav/cards keep their
   desktop layout since they already have room to breathe at this width. */
@media (max-width: 768px) {
  .hero { padding: 72px 0 56px; }
  .cards { padding-bottom: 56px; }
  .legal { padding-block: 40px 64px; }
}

/* Phone: center the header, stack navigation and cards, and remove most of
   the remaining vertical whitespace so content reads comfortably. */
@media (max-width: 640px) {
  header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-block: 16px;
  }

  .brand { margin: 0; }

  .brand-logo {
    width: 176px;
    max-width: 70vw;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 8px 20px;
  }

  /* Generous padding keeps each link's tap target close to the
     recommended ~44px minimum without changing the visible link text. */
  nav a {
    display: inline-flex;
    align-items: center;
    padding: 10px 6px;
  }

  .hero {
    padding: 40px 0 32px;
    max-width: 100%;
  }

  .lead { font-size: 1.05rem; }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 48px;
  }

  .card { padding: 20px; }

  .legal { padding-block: 32px 48px; }
  .legal h2 { margin-top: 28px; }

  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* Small phones (320-393px): tighten spacing a little further. */
@media (max-width: 400px) {
  .hero { padding: 32px 0 28px; }
  .card { padding: 18px; }
  .cards { gap: 12px; }
}
