/*
 * Inside Community start page for logged-out visitors (template-home.php).
 * Design: mockup approved 2026-11-09 (artifact "Inside Community Start"),
 * colours and radii from the iy-components tokens. Page-only CSS: the
 * building blocks below are specific to this landing page.
 */

/* Own the surface: break out of the BuddyBoss container (same pattern as the summit page). */
body.iy-home-page #content.site-content,
body.iy-home-page #content.site-content .container,
body.iy-home-page #content.site-content .site-content-grid {
	max-width: 100% !important; width: 100% !important;
	margin-left: 0 !important; margin-right: 0 !important;
	padding-left: 0 !important; padding-right: 0 !important;
}
body.iy-home-page #content.site-content .site-content-grid { display: block !important; }
body.iy-home-page #content.site-content .bb-grid > .iy-home { padding-left: 0 !important; padding-right: 0 !important; }
body.iy-home-page #content.site-content { padding-top: 0 !important; }

.iy-home {
	--h-teal: var(--iy-teal, #3B6063);
	--h-teal-deep: var(--iy-teal-deep, #22403E);
	--h-teal-deeper: var(--iy-teal-deeper, #182F2E);
	--h-teal-soft: var(--iy-teal-soft, #EAF0EF);
	--h-gold: var(--iy-gold, #A77637);
	--h-gold-bright: var(--iy-gold-bright, #C9995C);
	--h-gold-soft: var(--iy-gold-soft, #F3E9DB);
	--h-ink: var(--iy-ink, #1D2B2A);
	--h-ink-soft: var(--iy-ink-soft, #5A6C6A);
	--h-line: var(--iy-line, #E2E7E5);
	--h-paper: var(--iy-paper, #F4F5F3);
	--h-card: var(--iy-card, #FFFFFF);
	--h-on-dark: var(--iy-on-dark, #F4F7F6);
	--h-on-dark-soft: var(--iy-on-dark-soft, #C9D8D6);
	--h-shadow: 0 1px 2px rgba(24, 47, 46, .06), 0 8px 28px rgba(24, 47, 46, .08);
	--h-shadow-lift: 0 2px 4px rgba(24, 47, 46, .08), 0 16px 44px rgba(24, 47, 46, .14);
	--h-wrap: 1200px;
	--h-gut: 24px;
	background: var(--h-paper);
	color: var(--h-ink);
	font: 400 17px/1.6 Poppins, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	padding-bottom: 0;
}

/* Version 2 (mockup "Inside Community Start v2", 2026-11-09). Motion: assets/home.js. */
.iy-home {
	--h-ease-out: cubic-bezier(.22, .8, .3, 1);
	--h-ease-fill: cubic-bezier(.3, .1, .25, 1);
	--h-r-card: var(--iy-radius-card, 20px);
	--h-r-chip: var(--iy-radius-chip, 14px);
	--h-r-tag: var(--iy-radius-tag, 12px);
	--h-r-micro: var(--iy-radius-micro, 7px);
	--h-r-btn: var(--iy-radius-button, 100px);
	overflow-x: clip;
}
html:has(.iy-home) { scroll-behavior: smooth; }
.iy-home *, .iy-home *::before, .iy-home *::after { box-sizing: border-box; }
.iy-home img { display: block; max-width: 100%; }
.iy-home a { color: inherit; }
.iy-home p { margin: 0; }
.iy-home h1, .iy-home h2, .iy-home h3 { margin: 0; font-family: Poppins, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; color: inherit; text-wrap: balance; }
.iy-home ol, .iy-home ul { margin: 0; padding: 0; list-style: none; }
.iy-home-wrap {
	width: min(var(--h-wrap), 100% - 2 * var(--h-gut)); margin-inline: auto;
	padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.iy-home-h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.06; letter-spacing: -.028em; }
.iy-home-h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; }
.iy-home-h3 { font-size: 22px; line-height: 1.25; }
.iy-home-lead { font-size: 18.5px; line-height: 1.55; color: var(--h-ink-soft); max-width: 56ch; }
.iy-home-num { font-variant-numeric: tabular-nums; }

/* Buttons: the 100px radius is reserved for these. */
.iy-home-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 52px; padding: 0 28px; border-radius: var(--h-r-btn);
	border: 1.5px solid transparent; font: 600 16px/1 Poppins, sans-serif;
	text-decoration: none !important; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.iy-home-btn:active { transform: translateY(1px); }
.iy-home-btn:focus-visible { outline: 3px solid var(--h-gold-bright); outline-offset: 2px; }
.iy-home-btn--white { background: #fff; color: var(--h-teal) !important; }
.iy-home-btn--white:hover { background: var(--h-teal-soft); }
.iy-home-btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.iy-home-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.iy-home-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reveal system (home.js adds .in) */
.iy-home-rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--h-ease-out), transform .6s var(--h-ease-out); }
.iy-home-rv.in { opacity: 1; transform: none; }
.iy-home-rv-d1 { transition-delay: .08s; }
.iy-home-rv-d2 { transition-delay: .16s; }
.iy-home-rv-d3 { transition-delay: .24s; }
.iy-home-rv-d4 { transition-delay: .32s; }

/* Hero: four slides (images inline), cross-fade + Ken Burns */
.iy-home-hero { position: relative; color: var(--h-on-dark); background: var(--h-teal-deeper); isolation: isolate; overflow: hidden; }
.iy-home-hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.iy-home-hero__slide { position: absolute; inset: -3%; background-size: cover; background-repeat: no-repeat; opacity: 0; animation: iy-home-slide 28s linear infinite; will-change: opacity, transform; }
.iy-home-hero__slide:nth-child(1) { background-position: 58% 42%; animation-delay: 0s; opacity: 1; }
.iy-home-hero__slide:nth-child(2) { background-position: 50% 32%; animation-delay: 7s; }
.iy-home-hero__slide:nth-child(3) { background-position: 50% 40%; animation-delay: 14s; }
.iy-home-hero__slide:nth-child(4) { background-position: 50% 45%; animation-delay: 21s; }
/* 4 slides x 7 s: fade in over 1.4 s, hold, fade out while the next one fades in; Ken Burns across the whole visible time */
@keyframes iy-home-slide {
	0% { opacity: 0; transform: scale(1) translate(0, 0); }
	5% { opacity: 1; }
	25% { opacity: 1; }
	30% { opacity: 0; transform: scale(1.08) translate(-1.6%, -1%); }
	100% { opacity: 0; transform: scale(1.08) translate(-1.6%, -1%); }
}
.iy-home-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(24, 47, 46, .93) 0%, rgba(24, 47, 46, .8) 34%, rgba(24, 47, 46, .32) 66%, rgba(24, 47, 46, .14) 100%),
		linear-gradient(180deg, rgba(24, 47, 46, .18) 0%, rgba(24, 47, 46, 0) 35%, rgba(24, 47, 46, .62) 100%);
}
.iy-home-hero__in { max-width: 880px; padding: 112px 0 168px; }
.iy-home-hero .iy-home-h1 { color: #fff; }
.iy-home-hero .iy-home-h1 .iy-home-ln { display: block; overflow: hidden; }
.iy-home-hero .iy-home-h1 .iy-home-ln > span { display: block; transform: translateY(110%); animation: iy-home-rise .9s var(--h-ease-out) forwards; }
.iy-home-hero .iy-home-h1 .iy-home-ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes iy-home-rise { to { transform: none; } }
.iy-home-hero__lead, .iy-home-hero__btns, .iy-home-hero__note { opacity: 0; animation: iy-home-fadeup .8s var(--h-ease-out) forwards; }
.iy-home-hero__lead { animation-delay: .45s; }
.iy-home-hero__btns { animation-delay: .6s; }
.iy-home-hero__note { animation-delay: .75s; }
@keyframes iy-home-fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.iy-home-hero__lead { margin-top: 26px !important; font-size: 19px; line-height: 1.55; color: var(--h-on-dark-soft); max-width: 52ch; }
.iy-home-hero__lead b { color: #fff; font-weight: 600; }
.iy-home-hero__btns { margin-top: 36px; }
.iy-home-hero__note { margin-top: 28px !important; font-size: 15px; color: var(--h-on-dark-soft); }
.iy-home-hero__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Steps card ("Coming from insideflow.com?") */
.iy-home-card { background: var(--h-card); border-radius: var(--h-r-card); box-shadow: var(--h-shadow); }
.iy-home-steps { position: relative; z-index: 2; margin-top: -96px; }
.iy-home-steps .iy-home-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; padding: 44px 48px; }
.iy-home-steps__title { font-size: 26px !important; line-height: 1.2; }
.iy-home-steps__sub { margin-top: 12px !important; color: var(--h-ink-soft); font-size: 16.5px; max-width: 34ch; }
.iy-home-steps__stat { margin-top: 28px !important; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.iy-home-steps__stat b { font-size: 34px; font-weight: 800; color: var(--h-teal); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.iy-home-steps__stat > span { font-size: 15px; color: var(--h-ink-soft); }
.iy-home-steplist { counter-reset: step; }
.iy-home-step { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; padding: 20px 0; border-top: 1px solid var(--h-line); }
.iy-home-step:first-child { border-top: 0; padding-top: 4px; }
.iy-home-step:last-child { padding-bottom: 0; }
.iy-home-step::before {
	content: counter(step); grid-row: 1 / 3; width: 40px; height: 40px;
	border-radius: var(--h-r-tag); background: var(--h-teal-soft); color: var(--h-teal);
	display: grid; place-items: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums;
}
.iy-home-step h3 { grid-column: 2; font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-top: 7px !important; }
.iy-home-step p { grid-column: 2; margin-top: 4px !important; font-size: 16px; line-height: 1.55; color: var(--h-ink-soft); max-width: 58ch; }

/* Sections + masonry ("What you find inside") */
.iy-home-section { padding: 112px 0 0; }
.iy-home-section__head { max-width: 62ch; }
.iy-home-section__head .iy-home-lead { margin-top: 18px !important; }
.iy-home-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; margin-top: 44px; align-items: start; }
.iy-home-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.iy-home-grid .iy-home-card { padding: 32px 32px 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.iy-home-card__text { max-width: 46ch; }
.iy-home-card__text p { margin-top: 8px !important; color: var(--h-ink-soft); font-size: 16px; line-height: 1.55; }
.iy-home-vig { margin-top: 28px; flex: 1; display: flex; flex-direction: column; }

/* Flows: mood filter demo + marquee */
.iy-home-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.iy-home-pill { border: 1px solid var(--h-line); border-radius: var(--h-r-chip); padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--h-ink-soft); background: #fff; transition: background-color .35s, color .35s, border-color .35s; }
.iy-home-pill.is-on { background: var(--h-teal); border-color: var(--h-teal); color: #fff; }
.iy-home-strip {
	position: relative; margin: 18px -32px 0; padding: 6px 0 0; overflow: hidden; flex: 0 0 auto; transition: opacity .25s;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.iy-home-strip__track { display: flex; gap: 16px; width: max-content; padding-left: 32px; animation: iy-home-marquee 40s linear infinite; }
.iy-home-strip:hover .iy-home-strip__track { animation-play-state: paused; }
.iy-home-strip.is-fading { opacity: 0; }
@keyframes iy-home-marquee { to { transform: translateX(calc(-50% - 8px)); } }
.iy-home-flow { width: 320px; flex: 0 0 auto; border: 1px solid var(--h-line); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 10px 10px 0; background: #fff; transition: opacity .5s, transform .5s var(--h-ease-out), box-shadow .5s; }
.iy-home-flow.is-out { display: none; }
.iy-home-flow__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--h-teal-deep); }
.iy-home-flow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.iy-home-play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.iy-home-play::after { content: ""; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--h-teal); }
.iy-home-flow__dur { position: absolute; right: 8px; bottom: 8px; background: rgba(24, 47, 46, .78); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: var(--h-r-micro); font-variant-numeric: tabular-nums; }
.iy-home-eq { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.iy-home-eq i { width: 3px; background: #fff; border-radius: 1px; animation: iy-home-eq 1s ease-in-out infinite; }
.iy-home-eq i:nth-child(2) { animation-delay: .15s; }
.iy-home-eq i:nth-child(3) { animation-delay: .3s; }
.iy-home-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes iy-home-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.iy-home-flow__t { margin: 9px 2px 0 !important; font-size: 13.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iy-home-flow__a { margin: 1px 2px 0 !important; font-size: 13px; color: var(--h-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iy-home-flow__chips { display: flex; gap: 6px; margin: 8px 2px 10px; }
.iy-home-chip { background: var(--h-teal-soft); color: var(--h-teal); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: var(--h-r-tag); font-variant-numeric: tabular-nums; transition: background-color .35s, color .35s; }
.iy-home-chip--mood { background: var(--h-gold-soft); color: var(--h-gold); }

/* Events (live): next up + timeline */
.iy-home-next { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--h-teal-deep); color: #fff; border-radius: 16px; padding: 18px 20px; margin-top: 4px; position: relative; overflow: hidden; }
.iy-home-next::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 153, 92, .35), transparent 70%); }
.iy-home-next__date { text-align: center; background: rgba(255, 255, 255, .1); border-radius: var(--h-r-tag); padding: 9px 0 8px; line-height: 1; }
.iy-home-next__date b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.iy-home-next__date span { display: block; font-size: 11.5px; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; color: var(--h-on-dark-soft); }
.iy-home-next__k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-gold-bright); }
.iy-home-next__t { font-size: 17px; font-weight: 700; line-height: 1.3; margin-top: 3px !important; text-wrap: balance; }
.iy-home-next__m { font-size: 13.5px; color: var(--h-on-dark-soft); margin-top: 5px !important; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.iy-home-tl { position: relative; margin: 22px 0 0; padding: 0 0 26px 0; }
.iy-home-tl::before { content: ""; position: absolute; left: 35px; top: 10px; bottom: 30px; width: 2px; background: var(--h-line); }
.iy-home-tl__month { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-ink-soft); padding-left: 60px; margin: 14px 0 6px; }
.iy-home-tl__month::before { content: ""; position: absolute; left: 31px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--h-paper); border: 2px solid var(--h-line); box-sizing: border-box; }
.iy-home-ev { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 18px; align-items: center; padding: 10px 0; }
.iy-home-ev__d { position: relative; z-index: 1; width: 56px; margin: 0 auto; text-align: center; background: var(--h-teal-soft); border: 3px solid #fff; border-radius: var(--h-r-tag); padding: 6px 0 5px; line-height: 1; }
.iy-home-ev__d b { display: block; font-size: 17px; font-weight: 800; color: var(--h-teal); font-variant-numeric: tabular-nums; line-height: 1; }
.iy-home-ev__d span { display: block; font-size: 10.5px; font-weight: 600; color: var(--h-teal); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.iy-home-ev__t { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iy-home-ev__m { font-size: 13.5px; color: var(--h-ink-soft); margin-top: 3px !important; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.iy-home-tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--h-r-tag); background: var(--h-gold-soft); color: var(--h-gold); }
.iy-home-tag--iy { background: var(--h-teal-soft); color: var(--h-teal); }
.iy-home-tag--type { background: var(--h-paper); color: var(--h-ink-soft); }

/* Teachers map (static OpenStreetMap tiles, pins rendered by PHP) */
.iy-home-map { position: relative; flex: 1; min-height: 290px; margin: 0 -32px; overflow: hidden; background: #E9EEEC; }
/* 4x4 tiles at 320px; the highlighted teacher (--mx/--my) sits a bit below the middle. */
.iy-home-map__layer { position: absolute; width: 1280px; height: 1280px; left: calc(50% - var(--mx)); top: calc(60% - var(--my)); }
.iy-home-map__tiles { display: grid; grid-template-columns: repeat(4, 320px); filter: grayscale(1) brightness(1.06) contrast(.82); opacity: .9; }
.iy-home-map__tiles img { width: 320px; height: 320px; max-width: none; }
.iy-home-pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--h-gold); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(24, 47, 46, .35); transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.5, .5, 1); }
.in .iy-home-pin { transform: scale(1); }
.iy-home-pin--me { background: var(--h-teal); width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.iy-home-pin--me::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--h-teal); animation: iy-home-pulse 2.2s ease-out infinite; }
@keyframes iy-home-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.iy-home-pop { position: absolute; transform: translate(-50%, calc(-100% - 6px)); background: #fff; border-radius: var(--h-r-tag); box-shadow: var(--h-shadow-lift); padding: 10px 14px 10px 10px; display: flex; gap: 10px; align-items: center; white-space: nowrap; opacity: 0; transition: opacity .5s .9s, transform .5s .9s var(--h-ease-out); }
.in .iy-home-pop { opacity: 1; transform: translate(-50%, calc(-100% - 16px)); }
.iy-home-pop::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.iy-home-pop__av { width: 36px; height: 36px; border-radius: 50%; background: var(--h-teal-soft); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--h-teal); }
.iy-home-pop b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.iy-home-pop span { font-size: 12.5px; color: var(--h-ink-soft); }
.iy-home-map__search { position: absolute; left: 24px; right: 24px; top: 18px; display: flex; gap: 8px; }
.iy-home-map__field { flex: 1; background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-r-tag); height: 42px; display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: var(--h-ink-soft); box-shadow: var(--h-shadow); }
.iy-home-map__field--sm { flex: 0 0 auto; color: var(--h-ink); font-weight: 600; }
.iy-home-map__credit { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: var(--h-ink-soft); background: rgba(255, 255, 255, .8); padding: 1px 5px; border-radius: 4px; }

/* Journey (vertical rail, like the app) */
.iy-home-journey { padding-bottom: 30px; }
.iy-home-rail { position: relative; padding: 4px 0 4px 2px; }
.iy-home-rail__track { position: absolute; left: 13px; top: 26px; bottom: 26px; width: 2px; background: var(--h-line); }
.iy-home-rail__fill { position: absolute; left: 13px; top: 26px; width: 2px; height: 0; background: var(--h-gold); transition: height .9s var(--h-ease-fill); }
.in .iy-home-rail__fill { height: var(--fill); }
.iy-home-lvl { display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 46px; position: relative; }
.iy-home-lvl__dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--h-line); background: #fff; display: grid; place-items: center; transition: border-color .3s, background-color .3s; position: relative; z-index: 1; }
.iy-home-lvl__dot svg { width: 12px; height: 12px; fill: #fff; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.34, 1.5, .5, 1); }
.iy-home-lvl.is-passed .iy-home-lvl__dot { border-color: var(--h-gold); background: var(--h-gold-soft); }
.iy-home-lvl.is-current .iy-home-lvl__dot { border-color: var(--h-gold); background: var(--h-gold); }
.iy-home-lvl.is-current .iy-home-lvl__dot svg { opacity: 1; transform: scale(1); }
.iy-home-lvl img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(24, 47, 46, .14); filter: grayscale(1) opacity(.45); transition: filter .4s; }
.iy-home-lvl.is-passed img, .iy-home-lvl.is-current img { filter: none; }
.iy-home-lvl__name { font-size: 14.5px; font-weight: 500; line-height: 1.2; color: var(--h-ink-soft); }
.iy-home-lvl.is-current .iy-home-lvl__name { font-weight: 700; color: var(--h-ink); font-size: 15.5px; }
.iy-home-lvl__now { display: block; font-size: 12.5px; color: var(--h-gold); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.iy-home-lvl__trc { font-size: 12.5px; color: var(--h-ink-soft); font-variant-numeric: tabular-nums; }

/* App section */
.iy-home-app { margin-top: 230px; scroll-margin-top: 120px; }
.iy-home-app .iy-home-card { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; padding: 0 56px; overflow: visible; align-items: end; }
.iy-home-app__text { align-self: center; padding: 80px 0; }
.iy-home-app__text .iy-home-lead { margin-top: 18px !important; font-size: 17.5px; }
.iy-home-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.iy-home-stores a img { height: 48px; width: auto; border-radius: 7px; }
.iy-home-qr { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--h-ink-soft) !important; max-width: 230px; line-height: 1.4; text-decoration: none !important; }
.iy-home-qr img { height: 72px; width: 72px; border: 1px solid var(--h-line); border-radius: var(--h-r-micro); padding: 4px; background: #fff; }
.iy-home-devices { position: relative; height: 640px; justify-self: center; width: 440px; margin-top: -110px; margin-bottom: -84px; }
.iy-home-phone { position: absolute; width: 300px; height: 640px; border-radius: 50px; background: #1c1f20; padding: 10px; box-shadow: 0 30px 60px rgba(24, 47, 46, .26), inset 0 0 0 1.5px rgba(255, 255, 255, .07); }
.iy-home-phone__screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #F5F4F0; }
.iy-home-phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .9s ease; }
.iy-home-phone__screen img.is-on { opacity: 1; }
.iy-home-phone--front { right: 0; bottom: 0; z-index: 2; }
.iy-home-phone--back { left: 0; bottom: 60px; transform: rotate(-8deg) scale(.86); transform-origin: bottom left; opacity: .92; filter: brightness(.96); }
.iy-home-phone--back .iy-home-phone__screen img { opacity: 1; }

/* Closing band on the crowd photo */
.iy-home-close { position: relative; margin-top: 170px; color: #fff; isolation: isolate; overflow: hidden; background: var(--h-teal-deeper); }
.iy-home-close__bg { position: absolute; inset: 0; z-index: -2; background-position: center 40%; background-size: cover; background-repeat: no-repeat; }
.iy-home-close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24, 47, 46, .86) 0%, rgba(24, 47, 46, .62) 50%, rgba(24, 47, 46, .38) 100%), linear-gradient(0deg, rgba(24, 47, 46, .7), rgba(24, 47, 46, .08)); }
.iy-home-close .iy-home-wrap { padding-top: 96px; padding-bottom: 72px; }
.iy-home-close__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.iy-home-close .iy-home-h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; color: #fff; }
.iy-home-close .iy-home-h2 span, .iy-home-close .iy-home-h2 em { display: block; }
.iy-home-close .iy-home-h2 em { font-style: normal; color: var(--h-gold-bright); }
.iy-home-close p { margin-top: 18px !important; color: var(--h-on-dark-soft); font-size: 17.5px; max-width: 46ch; }
.iy-home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .18); }
.iy-home-stat b { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.iy-home-stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--h-on-dark-soft); }

/* Responsive */
@media (max-width: 1100px) {
	.iy-home-grid { grid-template-columns: 1fr; }
	.iy-home-col { display: contents; }
	.iy-home-card--flows { order: 1; }
	.iy-home-card--events { order: 2; }
	.iy-home-card--teachers { order: 3; }
	.iy-home-card--journey { order: 4; }
	.iy-home-app .iy-home-card { grid-template-columns: 1fr; gap: 0; padding: 0 40px; }
	.iy-home-app__text { padding: 44px 0 36px; }
	.iy-home-devices { margin: 0 auto -150px; height: 600px; }
	.iy-home-app { margin-bottom: 170px; }
}
@media (max-width: 860px) {
	.iy-home-steps .iy-home-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px 28px; }
	.iy-home-close__grid { grid-template-columns: 1fr; }
	.iy-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.iy-home { --h-gut: 20px; font-size: 16px; }
	.iy-home-hero__slide:nth-child(1) { background-position: 46% 40%; }
	.iy-home-hero::before { background: linear-gradient(180deg, rgba(24, 47, 46, .55) 0%, rgba(24, 47, 46, .78) 40%, rgba(24, 47, 46, .92) 100%); }
	.iy-home-hero__in { padding: 64px 0 132px; }
	.iy-home-hero__lead { font-size: 17px; }
	.iy-home-hero__btns .iy-home-btn { width: 100%; }
	.iy-home-section { padding-top: 80px; }
	.iy-home-grid .iy-home-card { padding: 26px 22px 0; }
	.iy-home-strip, .iy-home-map { margin-inline: -22px; }
	.iy-home-strip__track { padding-left: 22px; }
	.iy-home-map { min-height: 260px; }
	.iy-home-next { grid-template-columns: 60px 1fr; padding: 16px; }
	.iy-home-tl::before { left: 29px; }
	.iy-home-tl__month::before { left: 25px; }
	.iy-home-ev { grid-template-columns: 60px 1fr; padding-left: 0; }
	.iy-home-tl__month { padding-left: 52px; }
	.iy-home-ev__d { width: 52px; }
	.iy-home-app { margin-top: 24px; margin-bottom: 0; }
	.iy-home-app .iy-home-card { padding: 0 22px; }
	.iy-home-app__text { padding: 36px 0 28px; }
	.iy-home-devices { width: 100%; max-width: 330px; height: 470px; margin: -10px auto -120px; }
	.iy-home-phone { width: 210px; height: 450px; border-radius: 38px; padding: 8px; }
	.iy-home-phone__screen { border-radius: 31px; }
	.iy-home-phone--back { left: 36px; bottom: 46px; transform: rotate(-7deg) scale(.82); }
	.iy-home-phone--front { right: 0; }
	.iy-home-qr { display: none !important; }
	.iy-home-close { margin-top: 200px; }
	.iy-home-close .iy-home-wrap { padding-top: 72px; padding-bottom: 56px; }
	.iy-home-stats { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	html:has(.iy-home) { scroll-behavior: auto; }
	.iy-home *, .iy-home *::before, .iy-home *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
	.iy-home-rv { opacity: 1; transform: none; }
	.iy-home-pin { transform: none; }
	.iy-home-pop { opacity: 1; }
	.iy-home-hero .iy-home-h1 .iy-home-ln > span { transform: none; }
	.iy-home-hero__lead, .iy-home-hero__btns, .iy-home-hero__note { opacity: 1; }
	.iy-home-hero__slide { animation: none; opacity: 0; }
	.iy-home-hero__slide:nth-child(1) { opacity: 1; }
	.iy-home-strip__track { animation: none; }
}
