/* Food Freedom -ilmoittautumissivu. Värit, fontit ja muodot ovat JP Pirisen
   Morning Light -design-systemistä; tähän on poimittu vain tarvittavat. */

:root {
  --green-50: #f3f6f4;
  --green-100: #e8edea;
  --green-500: #3E6B4F;
  --green-600: #375f47;
  --green-700: #30523d;
  --amber-50: #fef9f3;
  --amber-100: #fdf3e7;
  --amber-300: #f7d0a0;
  --amber-500: #EF9D3A;
  --amber-600: #d58b33;
  --amber-700: #b7762a;
  --amber-900: #7c4d1a;
  --sage-50: #f7f9f5;
  --n0: #ffffff;
  --n50: #FDFBF5;
  --n100: #f0efe8;
  --n200: #deded8;
  --n600: #5b655f;
  --n700: #404c45;
  --n900: #1C2B24;
  --font-display: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(28, 43, 36, 0.08);
  --shadow-lg: 0 20px 48px -8px rgba(28, 43, 36, 0.14);
  --shadow-cta: 0 8px 20px -6px rgba(239, 157, 58, 0.28);
  --sunbeam: radial-gradient(ellipse 60% 50% at 50% 0%, var(--amber-100) 0%, var(--sage-50) 45%, transparent 75%);
}

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

body {
  margin: 0;
  background: var(--n50);
  color: var(--n900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-500); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* Yläpalkki */
.top { padding: 16px 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--n900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

/* Yläosa */
.hero { background: var(--sunbeam); padding: clamp(16px, 5vw, 64px) 0 clamp(24px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.hero__photo {
  order: -1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--green-100);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (min-width: 760px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .hero__photo {
    order: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
}

.eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  margin-bottom: 16px;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; color: var(--n700); max-width: 560px; text-wrap: pretty; }

/* Osiot */
.section { padding: clamp(28px, 7vw, 88px) 0; }
.section--surface { background: var(--n0); border-top: 1px solid var(--n200); border-bottom: 1px solid var(--n200); }
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  margin-bottom: 16px;
}
h2.h2--sm { font-size: clamp(22px, 2.4vw, 26px); }
.small { font-size: 15px; color: var(--n600); }

/* Painikkeet */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn--primary { background: var(--amber-500); color: var(--n900); box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--amber-600); color: var(--n900); }
.btn--primary:active { background: var(--amber-700); }
.btn--secondary { background: var(--green-500); color: var(--n50); }
.btn--secondary:hover { background: var(--green-600); color: var(--n50); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 19px; }
@media (max-width: 520px) { .btn--lg { width: 100%; } }

/* Suljettu tila */
.closed {
  background: var(--n0);
  border: 1px solid var(--n200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.closed h2 { margin-bottom: 0; }
.closed p { color: var(--n700); }

/* Ryhmäkortit */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cards:has(> :only-child) { max-width: 600px; }
.cards + .h2--sm { margin-top: 48px; }
.card {
  background: var(--n0);
  border: 1px solid var(--n200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--open { background: var(--amber-50); border: 2px solid var(--amber-300); }
.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
}
.badge--open { background: var(--amber-100); color: var(--amber-900); }
.badge--full { background: var(--n100); color: var(--n600); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--n700); }
.card__note { color: var(--n600); }
.price { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--green-700); line-height: 1; }
.card__state { color: var(--n600); font-weight: 600; }
.card .btn { align-self: flex-start; }
@media (max-width: 520px) { .card .btn { align-self: stretch; } }

/* Käytännön yhteenveto */
.facts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 8px; }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.facts dd { color: var(--n700); }

/* Lopun toimintakehotus */
.cta { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { margin-bottom: 0; }
.cta p { color: var(--n700); }

/* Footer */
.footer {
  padding: 32px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--n600);
}

/* Vain kehitys: näkyy, kun ?now= on annettu paikallisella palvelimella */
.testbadge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: var(--n900);
  color: var(--n50);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}
