/* 24 Blocks — World + Students section styles
   Used by all three landing variants. Same vocabulary as _tokens.css. */

/* ============================================================
   WORLD — city map social layer
   ============================================================ */
.world-block { padding: 96px 0; position: relative; }
.world-block.deep { background: var(--bg-deep); border-top: 1.5px solid var(--ink-mute); border-bottom: 1.5px solid var(--ink-mute); }
.world-block .head { margin-bottom: 48px; max-width: 720px; }
.world-block h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.025em; line-height: 1.02;
  margin: 12px 0 12px;
}
.world-block h2 em { font-style: normal; color: var(--primary); }
.world-block .lede { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin: 0; }

.world-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: stretch;
}
@media (max-width: 980px) { .world-layout { grid-template-columns: 1fr; } }

/* the stylised map */
.world-map {
  position: relative; aspect-ratio: 4 / 4.4;
  border-radius: 18px; overflow: hidden;
  background: #f3ede2; /* warm map paper */
  border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 0 var(--shadow);
}
.world-map .paper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212,235,204,0.55) 0%, transparent 35%),
    radial-gradient(ellipse at 80% 70%, rgba(205,226,238,0.55) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 30%, rgba(248,230,176,0.45) 0%, transparent 30%);
}
.world-map .river { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-map .streets {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(105deg, transparent 49%, rgba(28,39,51,0.12) 49.4%, rgba(28,39,51,0.12) 50%, transparent 50.6%),
    linear-gradient(15deg, transparent 49.5%, rgba(28,39,51,0.10) 49.8%, rgba(28,39,51,0.10) 50.2%, transparent 50.5%),
    linear-gradient(85deg, transparent 39%, rgba(28,39,51,0.08) 39.4%, rgba(28,39,51,0.08) 39.8%, transparent 40.2%);
  background-size: 110% 110%; background-repeat: no-repeat; background-position: center;
}
.world-map .park {
  position: absolute; border-radius: 50%;
  background: rgba(90,170,40,0.18); border: 1px dashed rgba(28,39,51,0.25);
}
.world-map .park.a { left: 8%; top: 12%; width: 22%; height: 18%; transform: rotate(-12deg); border-radius: 60% 40% 50% 50%; }
.world-map .park.b { right: 14%; bottom: 22%; width: 18%; height: 16%; transform: rotate(8deg); border-radius: 50% 60% 40% 50%; }

/* dots */
.map-dot {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 700;
  display: grid; place-items: center; color: var(--ink);
  z-index: 5;
}
.map-dot.friend {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--shadow);
  font-size: 12px;
}
.map-dot.public {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink);
}
.map-dot::before {
  /* the content ring — pulses */
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--c, var(--primary));
  animation: ring-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
.map-dot.public::before { inset: -5px; border-width: 1.5px; }
@keyframes ring-pulse {
  0%   { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
/* cluster bubble */
.map-cluster {
  position: absolute; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff;
  border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 0 var(--shadow);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  z-index: 5;
}

/* floating italic quote bubbles */
.map-bubble {
  position: absolute; max-width: 160px; padding: 8px 10px;
  background: rgba(255,255,255,0.94); border: 1.5px solid var(--ink);
  border-radius: 11px; box-shadow: 2px 2px 0 0 var(--shadow);
  font-family: var(--f-body); font-size: 12px; font-style: italic;
  line-height: 1.35; color: var(--ink); z-index: 6;
  animation: bubble-float 6s ease-in-out infinite;
}
.map-bubble span {
  display: block; font-style: normal; font-weight: 700; font-size: 9px;
  letter-spacing: 0.5px; color: var(--ink-soft); margin-top: 4px;
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* moment-of-the-day polaroid */
.polaroid {
  position: absolute; left: 56%; top: 50%;
  padding: 6px 6px 14px; background: #fff;
  border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 0 var(--shadow);
  transform: rotate(-5deg); z-index: 7;
}
.polaroid .photo {
  width: 70px; height: 70px; position: relative;
  background-image:
    repeating-linear-gradient(135deg, transparent 0, transparent 5px, rgba(255,255,255,0.2) 5px, rgba(255,255,255,0.2) 6px),
    linear-gradient(135deg, var(--family-soft), var(--family-vivid));
  border: 1px solid rgba(28,39,51,0.4);
  display: grid; place-items: start;
  padding: 4px;
  font-family: var(--f-display); font-weight: 700; font-size: 9px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.polaroid .cap {
  display: block; margin-top: 4px; font-family: var(--f-body); font-size: 9px;
  color: var(--ink); text-align: center;
}

/* right side panel */
.world-side {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px; border-radius: 18px;
  background: var(--card); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 0 var(--shadow);
}
.world-side .filter-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.world-side .filter-row .chip {
  padding: 5px 10px; font-size: 11px; box-shadow: 1.5px 1.5px 0 0 var(--shadow);
}
.world-side .filter-row .chip.on {
  background: var(--ink); color: #fff;
}
.world-side .filter-row .chip .dot-tiny {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px;
}

.world-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.world-side li {
  position: relative; padding-left: 22px;
  font-family: var(--f-body); font-size: 13.5px; line-height: 1.5; color: var(--ink);
}
.world-side li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 1.5px solid var(--ink);
}
.world-side li:nth-child(2)::before { background: var(--family-vivid); }
.world-side li:nth-child(3)::before { background: var(--social-vivid); }
.world-side li:nth-child(4)::before { background: var(--self-vivid); }

.world-side .footnote {
  padding-top: 18px; border-top: 1px dashed var(--ink-mute);
  font-family: var(--f-body); font-size: 11.5px; color: var(--ink-soft); letter-spacing: 0.3px;
  font-style: italic;
}

/* ============================================================
   STUDENTS — academic module
   ============================================================ */
.students-block { padding: 96px 0; position: relative; }
.students-block .head { margin-bottom: 48px; max-width: 720px; }
.students-block h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.025em; line-height: 1.02;
  margin: 12px 0 12px;
}
.students-block h2 em { font-style: normal; color: var(--learn-vivid); }
.students-block .lede { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin: 0; }

.students-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch;
}
@media (max-width: 980px) { .students-layout { grid-template-columns: 1fr; } }

.students-pitch ul {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.students-pitch li {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--f-body); font-size: 14px; line-height: 1.5;
}
.students-pitch li .num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--learn-soft); border: 1.5px solid var(--ink); box-shadow: 1.5px 1.5px 0 0 var(--shadow);
  font-family: var(--f-display); font-weight: 700; font-size: 12px;
  display: grid; place-items: center;
}
.students-pitch li strong { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.students-pitch li p { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; }

/* the student mock — academic hub */
.student-mock {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.student-mock > * { min-width: 0; }

.s-card {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px;
  box-shadow: 3px 3px 0 0 var(--shadow); padding: 18px;
}
.s-card .ey { font-family: var(--f-body); font-weight: 700; font-size: 10px; letter-spacing: 1.4px; color: var(--ink-soft); }
.s-card h4 { margin: 4px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -0.005em; }

/* span 2 cols utility */
.s-span2 { grid-column: span 2; }

/* timetable strip */
.s-timetable .grid {
  margin-top: 14px; display: grid; grid-template-columns: 48px repeat(5, 1fr); gap: 6px;
  font-family: var(--f-display);
}
.s-timetable .hr { font-size: 10px; font-weight: 700; color: var(--ink-soft); text-align: right; padding-right: 4px; padding-top: 5px; }
.s-timetable .slot {
  border: 1.5px solid var(--ink); border-radius: 6px; padding: 6px 7px;
  font-size: 10.5px; font-weight: 700; min-height: 38px; line-height: 1.15;
  box-shadow: 1.5px 1.5px 0 0 var(--shadow);
}
.s-timetable .slot small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 9px; color: var(--ink-soft); margin-top: 2px; }
.s-timetable .slot.empty { background: transparent; border-style: dashed; border-color: var(--ink-mute); box-shadow: none; }
.s-timetable .slot.learn  { background: var(--learn-soft); }
.s-timetable .slot.work   { background: var(--work-soft); }
.s-timetable .slot.sport  { background: var(--sport-soft); }
.s-timetable .slot.self   { background: var(--self-soft); }
.s-timetable .slot.family { background: var(--family-soft); }
.s-timetable .day-head {
  font-family: var(--f-body); font-weight: 700; font-size: 9.5px; letter-spacing: 1.2px;
  color: var(--ink-soft); text-align: center; padding-bottom: 4px;
}

/* homework card */
.s-hw {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.s-hw-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--bg); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 0 var(--shadow);
  font-family: var(--f-body);
}
.s-hw-row .check {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--ink); background: var(--card);
  flex-shrink: 0;
}
.s-hw-row .check.done {
  background: var(--learn-vivid); position: relative;
}
.s-hw-row .check.done::after {
  content: ''; position: absolute; left: 4px; top: 7px; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.s-hw-row .main { flex: 1; min-width: 0; }
.s-hw-row .main .t { font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.s-hw-row .main .s { font-size: 10.5px; color: var(--ink-soft); }
.s-hw-row .due {
  font-family: var(--f-display); font-weight: 700; font-size: 10.5px;
  padding: 3px 7px; border-radius: 6px; border: 1.5px solid var(--ink);
}
.s-hw-row .due.urgent { background: var(--danger); color: #fff; }
.s-hw-row .due.soon   { background: var(--warning); color: var(--ink); }
.s-hw-row .due.ok     { background: var(--card); }

/* ID card */
.s-id {
  background: var(--learn-vivid); color: #fff;
  border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 0 var(--shadow);
  padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.s-id .name { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.s-id .meta { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.s-id .id { margin-top: 8px; font-family: var(--f-mono); font-size: 11px; opacity: 0.9; }
.s-id .qr {
  width: 64px; height: 64px; background: #fff; border: 1.5px solid var(--ink);
  background-image:
    linear-gradient(90deg, var(--ink) 50%, transparent 50%),
    linear-gradient(0deg, var(--ink) 50%, transparent 50%);
  background-size: 8px 8px, 8px 8px;
  background-blend-mode: multiply;
  position: relative;
}
.s-id .qr::before, .s-id .qr::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  background: #fff; border: 2.5px solid var(--ink);
}
.s-id .qr::before { top: 4px; left: 4px; }
.s-id .qr::after  { top: 4px; right: 4px; }

/* pomodoro mini-card */
.s-pom {
  display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; margin-top: 14px;
}
.s-pom .ring {
  width: 60px; height: 60px; border-radius: 50%;
  border: 4px solid var(--learn-soft);
  border-top-color: var(--learn-vivid);
  border-right-color: var(--learn-vivid);
  position: relative;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.s-pom .ring::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--ink);
}
.s-pom .time {
  font-family: var(--f-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.025em; line-height: 1; color: var(--learn-vivid);
}
.s-pom .lbl {
  font-family: var(--f-body); font-weight: 700; font-size: 10px;
  letter-spacing: 1.4px; color: var(--ink-soft); margin-top: 4px;
}
