/* Within Learning Group: recreated from the Canva site at within-learning-group.javno.zone.
   Desktop: each section is a 1536x768 canvas; elements are placed with % and sized with
   --u (1 canvas px) so the layout scales exactly with the window. Phones: normal flow. */
:root {
  --teal: #28707b;
  --slate: #406c7b;
  --orange: #ee8819;
  --panel: #e6eff9;
  --pill: #d9d9d9;
  --icon: #4b4542;
  --serif: "Vollkorn", Georgia, serif;
  --dm: "DM Sans", system-ui, sans-serif;
  --os: "Noto Sans", "Open Sans", system-ui, sans-serif;
  --mont: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #000; font-family: var(--dm); }
a { color: inherit; }
p { margin: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
}
.topbar a {
  font-family: var(--dm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #3b4752;
  text-decoration: none;
}

/* ---------- Canvas sections ---------- */
.canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  container-type: inline-size;
  background: #fff;
  --u: calc(100cqw / 1536);
}
.canvas > .el, .cards > .el {
  position: absolute;
  margin: 0;
  font-size: calc(var(--u) * var(--f, 16));
  line-height: calc(var(--u) * var(--lh, 22));
}
.el.bg { z-index: 0; pointer-events: none; }
.el:not(.bg) { z-index: 1; }
img.el { display: block; height: auto; }

.serif { font-family: var(--serif); font-weight: 400; }
.dm { font-family: var(--dm); }
.os { font-family: var(--os); }
.bold { font-weight: 700; }
.center { text-align: center; }
.teal { color: var(--teal); }
.slate { color: var(--slate); }
.h2 { text-align: center; }
.body p { margin-bottom: calc(var(--u) * 30); }
.body p:last-child { margin-bottom: 0; }
.email { text-decoration: none; }
.email:hover { text-decoration: underline; }

/* Home */
.cta {
  display: block;
  height: calc(var(--u) * 69);
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.cta:hover { background: #d97810; }

.socials { display: flex; justify-content: space-between; }
.social { color: var(--icon); display: block; width: calc(var(--u) * 28); }
.social svg { width: 100%; height: auto; display: block; }
.social:hover { color: var(--teal); }
.copy { font-family: var(--dm); white-space: nowrap; }

/* Values: founder photo + quote */
.founder { text-align: center; }
.founder img {
  width: calc(var(--u) * 107);
  height: calc(var(--u) * 107);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  margin: 0 auto calc(var(--u) * 12);
}

/* Products */
.leaf-badge {
  height: calc(var(--u) * 94);
  border-radius: 50%;
  background: var(--teal);
  padding: calc(var(--u) * 4);
}
.leaf-badge img { width: 100%; height: 100%; display: block; border-radius: 50%; }

.cards { display: contents; }
.card { text-align: center; height: calc(var(--u) * 294); }
.ring {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(var(--u) * 122);
  height: calc(var(--u) * 122);
  border-radius: 50%;
  border: calc(var(--u) * 4) solid var(--teal);
  background: #fff;
  overflow: hidden;
  display: block;
}
.ring.grey { border-color: #938c86; }
.ring img { width: 100%; height: 100%; display: block; }
.ring img.cover { object-fit: cover; }
.ring img.fit { object-fit: contain; padding: calc(var(--u) * 12); }
.ring img.fit.roomy { padding: calc(var(--u) * 18); }
.panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--u) * 78);
  height: calc(var(--u) * 216);
  background: var(--panel);
  border-radius: calc(var(--u) * 32);
  padding: calc(var(--u) * 50) calc(var(--u) * 4) 0;
}
.ctitle {
  display: block;
  font-family: var(--mont);
  font-size: calc(var(--u) * 16.5);
  line-height: calc(var(--u) * 22);
  color: var(--slate);
  text-decoration: none;
  margin-bottom: calc(var(--u) * 3);
}
a.ctitle:hover { color: var(--teal); }
.panel p { font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 20); white-space: nowrap; margin: 0 calc(var(--u) * -4); }
.pill {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * 10);
  transform: translateX(-50%);
  width: calc(var(--u) * 133);
  height: calc(var(--u) * 49);
  line-height: calc(var(--u) * 49);
  border-radius: 999px;
  background: var(--pill);
  font-family: var(--os);
  font-size: calc(var(--u) * 17.5);
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.pill.go { background: var(--orange); color: #fff; transition: background .15s; }
.pill.go:hover { background: #d97810; }

/* ---------- Phones: switch from canvas to normal flow ---------- */
@media (max-width: 760px) {
  .canvas {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 16px 24px;
    --u: 1px;
  }
  .canvas > .el, .cards > .el {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    font-size: var(--mf, 16px);
    line-height: 1.4;
  }
  .canvas > .bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: 30% 0;
  }
  .canvas > .logo { width: 210px !important; }
  .canvas > .hero-logo { width: 260px !important; }
  .canvas > .stacked { width: 170px !important; }
  .canvas > .brain { width: 200px !important; }
  .canvas > .leaf-badge { width: 72px !important; height: 72px; }
  h1.el, .h2, .canvas > .center { text-align: center; }
  #home > p.el { text-align: center; }
  .canvas > .cta { width: 240px !important; height: 52px; line-height: 52px; }
  .body p { margin-bottom: 1em; }
  .founder { max-width: 320px; }
  .founder img { width: 110px; height: 110px; }
  .canvas > .socials { width: auto !important; gap: 22px; }
  .social { width: 28px; }
  .copy { white-space: normal; text-align: center; }

  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    width: 100%;
  }
  .cards > .card { --u: 1.05px; height: calc(var(--u) * 294); width: 100% !important; }
}
@media (max-width: 360px) {
  .cards { grid-template-columns: 1fr; justify-items: center; }
  .cards > .card { max-width: 190px; }
}
