/*
 * Quilt Giving — the public landing page and the 404 page. Builds on css/quiltgiving.css (tokens, cards,
 * buttons); the four quilt colours below are the Quilt Giving mark's own and are only used decoratively.
 */

.qgs { --qgs-teal: #2e7d5b; --qgs-blue: #3e8fb8; --qgs-amber: #f2b14c; --qgs-coral: #ee6c5a; }

.qgs-binding { display: flex; height: 6px; }
.qgs-binding span { flex: 1; }
.qgs-binding span:nth-child(1) { background: var(--qgs-teal); }
.qgs-binding span:nth-child(2) { background: var(--qgs-blue); }
.qgs-binding span:nth-child(3) { background: var(--qgs-amber); }
.qgs-binding span:nth-child(4) { background: var(--qgs-coral); }

.qgs-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.qgs-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.qgs-header img { display: block; height: 42px; width: auto; }
.qgs-header .qg-btn { background: var(--qg-surface); border-radius: 999px; white-space: nowrap; }

/* The little quilt block: four patches, one of each colour. */
.qgs-quilt {
  display: inline-grid; grid-template-columns: repeat(2, 16px); gap: 3px; padding: 7px; margin-bottom: 20px;
  background: var(--qg-surface); border: 2px solid var(--qg-accent); border-radius: 10px; transform: rotate(-4deg);
}
.qgs-quilt i { display: block; width: 16px; height: 16px; border-radius: 3px; }
.qgs-quilt i:nth-child(1) { background: var(--qgs-teal); }
.qgs-quilt i:nth-child(2) { background: var(--qgs-blue); }
.qgs-quilt i:nth-child(3) { background: var(--qgs-amber); }
.qgs-quilt i:nth-child(4) { background: var(--qgs-coral); }

.qgs-hero { text-align: center; padding: 40px 0 20px; }
.qgs-hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; color: var(--qg-accent);
  text-wrap: balance;
}
.qgs-hero h1 em { font-style: normal; color: var(--qg-ink-link); }
.qgs-lead { max-width: 660px; margin: 16px auto 0; font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem); line-height: 1.55; color: var(--qg-ink-muted); }
.qgs-lead strong { color: var(--qg-ink); font-weight: 600; }

.qgs-cards { display: grid; gap: 20px; margin: 28px 0 8px; }
.qgs-card { position: relative; overflow: hidden; padding: 30px 26px 28px; }
.qgs-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--qgs-teal); }
.qgs-card--org::before { background: var(--qgs-blue); }
.qgs-chip {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #14543a; background: #e4f1ea;
}
.qgs-card--org .qgs-chip { color: #154c69; background: #e3eff6; }
.qgs-card h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 8px; }
.qgs-card p + p { margin-top: 10px; }
.qgs-card .qgs-quiet { color: var(--qg-muted); font-size: .9375rem; }
.qgs-card .qg-btn { margin-top: 18px; }

.qgs-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 36px 0 4px; font-weight: 600; color: var(--qg-ink-muted); }
.qgs-trust li::before { content: "✓"; margin-right: 8px; font-weight: 800; color: var(--qg-ink-link); }

.qgs-steps { display: grid; gap: 22px; margin: 36px 0 8px; counter-reset: step; }
.qgs-step { text-align: center; padding: 4px 8px; }
.qgs-step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-content: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--qg-surface); border: 2px solid var(--qg-ink-line); color: var(--qg-accent); font-weight: 700; font-size: 1.125rem;
}
.qgs-step h3 { font-size: 1.0625rem; line-height: 1.3; margin-bottom: 4px; }
.qgs-step p { color: var(--qg-ink-muted); font-size: .9375rem; }

.qgs-footer { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--qg-ink-line); text-align: center; color: var(--qg-ink-muted); font-size: .9375rem; }
.qgs-footer img { height: 30px; width: auto; margin-bottom: 8px; }
.qgs-footer p + p { margin-top: 4px; }
.qgs-footer a { color: var(--qg-ink-link); }

/* 404 */
.qgs--nf { min-height: 100vh; display: flex; flex-direction: column; }
.qgs--nf main { flex: 1 0 auto; display: flex; align-items: center; }
.qgs-nf { width: 100%; text-align: center; padding: 32px 0 48px; }
.qgs-nf__code { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 26px); margin-bottom: 8px; }
.qgs-nf__4 { font-size: clamp(4.5rem, 17vw, 8.5rem); font-weight: 800; line-height: .9; letter-spacing: -.03em; color: var(--qg-accent); }
.qgs-nf__quilt {
  display: inline-grid; grid-template-columns: repeat(2, clamp(26px, 7.5vw, 40px)); grid-auto-rows: clamp(26px, 7.5vw, 40px); gap: 4px; padding: 8px;
  background: var(--qg-surface); border: 3px solid var(--qg-accent); border-radius: 12px; transform: rotate(-5deg); box-shadow: var(--qg-shadow);
}
.qgs-nf__quilt i { display: block; border-radius: 4px; }
.qgs-nf__quilt i:nth-child(1) { background: var(--qgs-teal); }
.qgs-nf__quilt i:nth-child(2) { background: var(--qgs-blue); }
.qgs-nf__quilt i:nth-child(3) { background: var(--qgs-amber); }
.qgs-nf__quilt i:nth-child(4) {
  background: repeating-linear-gradient(45deg, #fdf1ef, #fdf1ef 5px, #fff 5px, #fff 10px); border: 2px dashed var(--qgs-coral);
  animation: qgs-pulse 2.4s ease-in-out infinite;
}
@keyframes qgs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .qgs-nf__quilt i:nth-child(4) { animation: none; } }
.qgs-nf__eyebrow {
  display: inline-block; margin: 8px 0 4px; padding: 4px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a3301f; background: #fdeeec;
}
.qgs-nf h1 { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.375rem); line-height: 1.15; letter-spacing: -.02em; color: var(--qg-accent); margin-top: 6px; }
.qgs-nf__lead { max-width: 560px; margin: 10px auto 0; font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem); color: var(--qg-ink-muted); }
.qgs-nf__help { max-width: 560px; margin: 26px auto 0; padding: 22px 24px; text-align: left; }
.qgs-nf__help h2 { font-size: 1.0625rem; margin-bottom: 6px; }
.qgs-nf__help p { color: var(--qg-muted); font-size: .9375rem; }
.qgs-nf__help p + p { margin-top: 8px; }
.qgs-nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

@media (min-width: 760px) {
  .qgs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qgs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qgs-hero { padding-top: 56px; }
}
