/* Landing sections under the hero. Rows split by hand-drawn rules, never a card each. */
:root {
  --joy: #A07A00; --trust: #16806F; --fear: #2E7D4A; --surprise: #7E68D8;
  --sadness: #3A78D0; --disgust: #B055C2; --anger: #D2524F; --anticipation: #B05E18;
  --breath: rgba(191, 220, 212, .7);
}

main > section:not(.hero-split) { padding-block: 72px; }
main h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; max-width: 20ch; }
hr.rule.wrap { display: block; margin-inline: auto; }

/* What's inside: heading left, four rows right on wide screens. */
.inside { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.inside h2 { position: sticky; top: 32px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding-block: 20px; }
.rows li + li { background: url("/eggxiety/img/rule.svg") top / 100% 6px no-repeat; }
.rows h3 { font-size: 21px; line-height: 1.25; margin-bottom: 4px; }
.rows p { color: var(--text-2); max-width: 48ch; }

.mark { position: relative; width: 64px; height: 64px; display: block; }
.mark i { position: absolute; display: block; border-radius: 50%; }
/* Breathing: the pulse rings of the breathing guide. */
.breath i { inset: 0; border: 1.5px solid var(--egg-speckle); }
.breath i:nth-child(2) { inset: 10px; border-color: var(--rule); background: var(--breath); }
.breath i:nth-child(3) { inset: 24px; background: var(--egg-shell); border: 0; }
/* The wheel: eight emotion dots round a circle. */
.wheel i { width: 14px; height: 14px; left: 25px; top: 25px; background: var(--c);
  transform: rotate(calc(var(--i) * 45deg)) translateY(-22px); }
.wheel i:nth-child(1) { --i: 0; } .wheel i:nth-child(2) { --i: 1; } .wheel i:nth-child(3) { --i: 2; } .wheel i:nth-child(4) { --i: 3; }
.wheel i:nth-child(5) { --i: 4; } .wheel i:nth-child(6) { --i: 5; } .wheel i:nth-child(7) { --i: 6; } .wheel i:nth-child(8) { --i: 7; }
/* Egg Crack: the small egg with its crack drawn. */
.crack .egg { width: 48px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.crack .egg-crack { stroke-dashoffset: 0; }
/* Weeks at a glance: four rows of seven days like the Journey strip; a blank day is a rule-coloured dot. */
.dots { display: grid; grid-template-columns: repeat(7, 6px); gap: 4px 3.6px; align-content: center; justify-content: center; }
.dots i { position: static; width: 6px; height: 6px; background: var(--c, var(--border)); }

/* Whoever hatches: the seven species plus an unhatched teaser on one line, names under them. */
.hatches { display: grid; gap: 32px; justify-items: center; text-align: center; }
.hatches h2 { max-width: 44ch; text-wrap: balance; }
.hatches h2 span { display: inline-block; } /* breaks after the comma, not mid-phrase */
.species { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; width: 100%; }
.species li { display: grid; grid-template-rows: auto auto; justify-items: center; align-content: end; gap: 8px; }
.species img { width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; object-fit: contain; object-position: bottom; }
.species span { font: 400 15px/1.4 var(--sans); color: var(--text-2); }
/* The teaser: the real egg, still unhatched, so it promises more without naming a species. */
.species .next .egg { width: 52%; max-width: 64px; height: auto; overflow: visible; margin-bottom: 6px; filter: grayscale(.8); opacity: .7; }

/* Not a clinic. */
.not { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.not div { display: grid; gap: 16px; font-size: 17px; }
.not p { max-width: 52ch; }

@media (max-width: 760px) {
  main > section:not(.hero-split) { padding-block: 48px; }
  .inside, .not { grid-template-columns: 1fr; gap: 24px; }
  .species { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .species li { width: calc(25% - 12px); }
  .inside h2 { position: static; }

}
