/* VoluntEasy project page. Plain CSS, no build step, no external fonts. */

:root {
  --green-900: #0b3d2c;
  --green-800: #0f5a3f;
  --green-700: #14805a;
  --green-600: #1f9d6b;
  --green-100: #e3f4ec;
  --green-50: #f1faf5;
  --ink: #17251f;
  --ink-soft: #4a5a53;
  --line: #d6e6de;
  --surface: #ffffff;
  --ground: #ffffff;
  --tint: var(--green-50);
  --band: var(--green-900);
  --band-ink: #e8f6ef;
  --link: var(--green-700);
  --code-bg: #0f2a20;
  --code-ink: #d9f2e6;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6f2ec;
    --ink-soft: #a9bdb3;
    --line: #24392f;
    --surface: #13201a;
    --ground: #0c1612;
    --tint: #10201a;
    --band: #0f5a3f;
    --link: #6fd3a5;
    --green-100: #173a2c;
    --code-bg: #08130e;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #e6f2ec;
  --ink-soft: #a9bdb3;
  --line: #24392f;
  --surface: #13201a;
  --ground: #0c1612;
  --tint: #10201a;
  --band: #0f5a3f;
  --link: #6fd3a5;
  --green-100: #173a2c;
  --code-bg: #08130e;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; margin: 0 0 10px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
p { margin: 0 0 14px; text-wrap: pretty; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { width: 145px; }
:root[data-theme="dark"] .brand img { filter: brightness(1.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: brightness(1.6); } }
nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav a:not(.button) { color: var(--ink-soft); text-decoration: none; }
nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 720px) { nav a:not(.button) { display: none; } }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--green-700);
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--green-800); border-color: var(--green-800); text-decoration: none; }
.button-ghost { background: transparent; color: var(--link); border-color: var(--line); }
.button-ghost:hover { background: var(--green-100); border-color: var(--green-100); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--tint), var(--ground)); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 26px 0 0; list-style: none; font-size: 15px; color: var(--ink-soft); }
.facts li::before { content: "✓"; color: var(--green-600); font-weight: 700; margin-right: 6px; }
.hero-art img { border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(11, 61, 44, .45); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Band */
.band { background: var(--band); color: var(--band-ink); }
.band-inner { padding: 26px 0; text-align: center; font-size: 1.1rem; }
.band-inner p { margin: 0; }
.band strong { color: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 40px; }

.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; padding: 36px 0; }
.feature:first-of-type { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:first-of-type .feature-copy { grid-column: 1 / -1; max-width: 46em; }
.feature-reverse .feature-art { order: 2; }
.feature-art img { border-radius: 18px; box-shadow: 0 24px 50px -28px rgba(11, 61, 44, .4); }
.feature-copy p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .feature, .feature:first-of-type { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .feature-reverse .feature-art { order: 0; }
}

.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f9d6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 700; margin-bottom: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.card { border-top: 3px solid var(--green-600); padding: 20px 4px 0; }
.card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Get started */
.start { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.start p { color: var(--ink-soft); }
.code {
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  font: 14.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
}
@media (max-width: 900px) { .start { grid-template-columns: 1fr; } }

/* Call to action */
.cta { text-align: center; }
.cta-inner { max-width: 720px; }
.cta p { color: var(--ink-soft); font-size: 1.1rem; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 15px; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-inner p { margin: 0; }

/* The first feature has no picture (the hero shows the volunteers list): its points run in a row */
.feature:first-of-type .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
@media (max-width: 720px) { .feature:first-of-type .checks { grid-template-columns: 1fr; } }

/* Features: the colours of the application itself
   (VoluntEasy/public/assets/css: modern.css, custom.css, themes/white.css) */
#features {
  --app-slate: #34425a;
  --app-teal: #22baa0;
  --app-orange: #e26e27;
  --app-purple: #6a5fac;
  --app-blue: #12afcb;
  --app-content: #f1f4f9;
  background: var(--app-content);
}
#features h2, #features h3 { color: var(--app-slate); }
#features .section-lead, #features .feature-copy p { color: #5f6b7c; }
#features h3 { position: relative; padding-left: 16px; }
#features h3::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px; background: var(--app-teal); }
#features .feature:nth-of-type(2) h3::before { background: var(--app-orange); }
#features .feature:nth-of-type(3) h3::before { background: var(--app-purple); }
#features .feature:nth-of-type(4) h3::before { background: var(--app-blue); }
#features .checks li::before {
  background-color: rgba(34, 186, 160, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2322baa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#features em { font-style: normal; font-weight: 600; padding: 0 6px; border-radius: 3px; color: #fff; background: var(--app-teal); font-size: .9em; }
#features em:nth-of-type(1) { background: var(--app-orange); }
#features em:nth-of-type(3) { background: var(--app-purple); }
#features .feature-art img { box-shadow: 0 24px 50px -28px rgba(52, 66, 90, .45); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #features { --app-content: #18202c; }
  :root:not([data-theme="light"]) #features h2, :root:not([data-theme="light"]) #features h3 { color: #e6ebf2; }
  :root:not([data-theme="light"]) #features .section-lead, :root:not([data-theme="light"]) #features .feature-copy p { color: #a7b2c2; }
}
:root[data-theme="dark"] #features { --app-content: #18202c; }
:root[data-theme="dark"] #features h2, :root[data-theme="dark"] #features h3 { color: #e6ebf2; }

/* Language switch: stays visible on small screens */
nav a.lang { display: inline-flex !important; font-weight: 600; color: var(--link) !important; }

/* Hero: the video on wide screens; the still on phones and with reduced motion */
.hero-art video, .hero-art img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(11, 61, 44, .45); }
.hero-art .hero-still { display: none; }
@media (max-width: 600px), (prefers-reduced-motion: reduce) {
  .hero-art .hero-video { display: none; }
  .hero-art .hero-still { display: block; }
}
