/* ==========================================================================
   Homepage product sections (pushalert.php, phonebunch.php, wrpage.php,
   apps-main.php), loaded by home.php.
   ========================================================================== */

.msec { position: relative; overflow: hidden; padding: 72px 20px; font-family: "Open Sans", Arial, sans-serif; }
.msec *, .msec *::before, .msec *::after { box-sizing: border-box; }
.msec--blue { color: #fff;
	background: radial-gradient(900px 420px at 85% 0%, rgba(80,150,255,.35), transparent 60%),
	            linear-gradient(135deg, #1c3d8c 0%, #264fa1 55%, #2d61c2 100%); }
.msec--light { color: #33475b; background: #ffffff; }


.msec-inner { max-width: 1030px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.msec--reverse .msec-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.msec--reverse .msec-copy { order: 2; }

/* Label above the title */
.msec-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.msec-eyebrow svg { width: 16px; height: 16px; flex: none; }
.msec--blue .msec-eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.msec--blue .msec-eyebrow svg { fill: #ffd54a; }
.msec--light .msec-eyebrow { background: #e6eefc; color: #1c3d8c; }
.msec--light .msec-eyebrow svg { fill: #2d61c2; }

/* Headings and copy */
.msec h2.msec-title { font: 600 44px/1.1 "Open Sans", Arial, sans-serif; margin: 18px 0 10px; }
.msec--blue h2.msec-title { color: #fff; }
.msec--light h2.msec-title { color: #14306f; }
.msec p.msec-lead { font-size: 20px; line-height: 1.45; margin: 0 0 14px; font-weight: 600; }
.msec--blue p.msec-lead { color: #dce7ff; }
.msec--light p.msec-lead { color: #1c3d8c; }
.msec p.msec-text { font-size: 17px; line-height: 1.7; margin: 0 0 26px; }
.msec--blue p.msec-text { color: #c3d3f5; }
.msec--light p.msec-text { color: #4a5a70; }

/* Button */
.msec-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
	text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.msec--blue .msec-btn { background: #fff; color: #1c3d8c; }
.msec--blue .msec-btn:hover { transform: translateY(-2px); background: #eaf1ff; color: #1c3d8c; }
.msec--light .msec-btn { background: #2d61c2; color: #fff; }
.msec--light .msec-btn:hover { transform: translateY(-2px); background: #264fa1; color: #fff; }

/* Feature cards */
.msec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.msec-card { display: flex; flex-direction: column; background: #fff; color: #33475b; border-radius: 16px; padding: 26px 24px 24px; text-align: left;
	border: 1px solid transparent; box-shadow: 0 2px 10px rgba(10,30,80,.14); transition: border-color .2s ease; }
.msec--light .msec-card { border-color: #e6e8ec; box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.05); }
.msec--blue .msec-card:hover { border-color: #9fc0ff; }
.msec--light .msec-card:hover { border-color: rgba(45,97,194,.45); }
.msec-card { align-items: center; text-align: center; }
.msec-icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; background: #2d61c2; }
.msec-icon img { width: 42px; height: 42px; filter: brightness(0) invert(1); }
.msec-icon svg.msec-fill-icon { width: 44px; height: 44px; fill: #fff; }
.msec-icon svg.msec-line-icon { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msec-card h3 { font: 700 17px/1.3 "Open Sans", Arial, sans-serif; color: #14306f; margin: 0 0 8px; }
.msec-card p { font-size: 14px; line-height: 1.65; margin: 0; color: #4a5a70; text-wrap: pretty; hyphens: manual; }

/* Apps section: heading on top, app cards in a row */
.msec-apps .msec-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.msec-apps p.msec-text { margin-bottom: 0; }
.msec-apps .msec-copy { max-width: 720px; margin: 0 auto; text-align: center; }
/* App list in the original homepage style: no boxes, columns separated by hairlines */
.msec-apps-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.msec-apps-grid > li { border-right: 1px solid #eeeeee; }
.msec-apps-grid > li:last-child { border-right: 0; }
.msec-app { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 16px 14px 22px;
	background: transparent; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; color: #555; transition: background .2s ease; }
.msec-app:hover { background: #f5f5f5; color: #555; }
.msec-app img { width: 84px; height: 84px; border-radius: 19px; margin-bottom: 6px; }
/* Same title/description sizes as the feature cards; app names keep the original blue */
.msec-app h3 { font: 700 17px/1.3 "Open Sans", Arial, sans-serif; color: #3775b5; margin: 10px 0 8px; }
.msec-app p { font-size: 14px; line-height: 1.65; margin: 0; color: #555; text-wrap: pretty; }
.msec-apps-cta { text-align: center; }

/* White sections: black headings + InkWired brand orange accents, so they
   alternate with the blue sections instead of repeating the same blue. */
.msec--light .msec-eyebrow { background: #fdebe5; color: #a8341a; }
.msec--light .msec-eyebrow svg { fill: #d24726; }
.msec--light h2.msec-title { color: #111111; }
.msec--light p.msec-lead { color: #2b2b2b; }
.msec--light p.msec-text { color: #555555; }
.msec--light .msec-btn { background: #d24726; color: #fff; }
.msec--light .msec-btn:hover { background: #b93b1d; color: #fff; }
.msec--light .msec-icon { background: #d24726; }
.msec--light .msec-card h3 { color: #111111; }
.msec--light .msec-card p { color: #555555; }
.msec--light .msec-card:hover { border-color: rgba(210,71,38,.35); }

@media (max-width: 960px) {
	.msec-apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.msec { padding: 64px 16px 48px; }
	.msec-inner, .msec--reverse .msec-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.msec--reverse .msec-copy { order: 0; }
	.msec h2.msec-title { font-size: 34px; }
}
@media (max-width: 600px) {
	.msec-apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.msec-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Phones: tighter, smaller, two cards per row ---- */
@media (max-width: 600px) {
	.msec { padding: 44px 20px 36px; }
	.msec-inner, .msec--reverse .msec-inner { gap: 24px; }
	.msec-eyebrow { font-size: 12px; padding: 6px 12px 6px 9px; }
	.msec h2.msec-title { font-size: 28px; margin: 12px 0 8px; }
	.msec p.msec-lead { font-size: 17px; margin-bottom: 10px; }
	.msec p.msec-text { font-size: 15px; line-height: 1.65; margin-bottom: 20px; }
	.msec-btn { padding: 11px 18px; font-size: 14px; }

	.msec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.msec-card { padding: 18px 12px 16px; border-radius: 14px; }
	.msec-icon { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 12px; }
	.msec-icon img { width: 30px; height: 30px; }
	.msec-icon svg.msec-line-icon { width: 26px; height: 26px; }
	.msec-icon svg.msec-fill-icon { width: 32px; height: 32px; }
	.msec-card h3 { font-size: 15px; margin-bottom: 6px; }
	.msec-card p { font-size: 13px; line-height: 1.5; }

	/* Apps: compact list, icon left, text right, hairline between rows */
	.msec-apps .msec-inner { gap: 16px; }
	.msec-apps-grid { grid-template-columns: minmax(0, 1fr); }
	.msec-apps-grid > li { border-right: 0; border-bottom: 1px solid #eeeeee; }
	.msec-apps-grid > li:last-child { border-bottom: 0; }
	.msec-app { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "icon title" "icon desc";
		column-gap: 14px; align-items: center; text-align: left; padding: 14px 4px; }
	.msec-app img { grid-area: icon; width: 56px; height: 56px; border-radius: 13px; margin: 0; align-self: center; }
	.msec-app h3 { grid-area: title; font-size: 15px; margin: 0 0 3px; align-self: end; }
	.msec-app p { grid-area: desc; font-size: 13px; line-height: 1.5; align-self: start; }
	.msec-apps-cta { margin-top: 4px; }
}
