/*
 * Styles for the iOS app pages of Mass Schedules Philippines, published under
 *   https://www.mass-schedules.com/ios-app/
 *
 *   /ios-app/             - section landing page (templates/ios/index.html)
 *   /ios-app/support.html - support and FAQ   (templates/ios/support.html)
 *   /ios-app/privacy.html - privacy policy    (templates/ios/privacy.html)
 *
 * The three views in massschedwebphl/views.py add 'css/ios/styles.css' to their
 * `cssFiles` list, so this file is only loaded on those pages. The site-wide
 * theme lives in static/css/styles_bootstrap.css, which templates/layout.html
 * already loads on every page.
 */

.support-lead {
	font-size: 1.05em;
	line-height: 1.7;
	margin-bottom: 10px;
}

.support-updated {
	font-size: .85em;
	color: #6c757d;
	border-bottom: 1px solid #e6eaee;
	padding-bottom: 14px;
	margin-bottom: 15px;
}

.card-support {
	border: 1px solid #dfe6ee;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 51, 102, .06);
}

.card-support .card-header {
	background-color: #f2f6fa;
	border-bottom: 1px solid #dfe6ee;
	font-family: arial, helvetica;
	font-weight: bold;
	color: #003366;
}

/* Section headings: the site theme only styles h2 as small bold text, so the
   support page uses its own class to get clear, scannable headings. */
h2.support-section {
	font-family: arial, helvetica;
	font-size: 1.35em;
	font-weight: bold;
	color: #003366;
	margin-top: 30px;
	margin-bottom: 15px;
	padding-bottom: 6px;
	border-bottom: 2px solid #f2f6fa;
}

.btn-ms {
	background-color: #003366;
	border-color: #003366;
	color: #ffffff;
	font-weight: bold;
}

.btn-ms:hover,
.btn-ms:focus,
.btn-ms:active {
	background-color: #082749;
	border-color: #082749;
	color: #ffffff;
}

.btn-ms-outline {
	background-color: #ffffff;
	border-color: #003366;
	color: #003366;
	font-weight: bold;
}

.btn-ms-outline:hover,
.btn-ms-outline:focus,
.btn-ms-outline:active {
	background-color: #f2f6fa;
	border-color: #003366;
	color: #003366;
}

/* Anchored sections (#contact, #faq, ...) should not hide behind the sticky
   page top when opened from an email or store reply link. */
.anchor-offset {
	scroll-margin-top: 20px;
}

.support-small {
	font-size: .9em;
}

.support-steps li {
	margin-bottom: 6px;
	line-height: 1.7;
}

/* FAQ accordion. The site theme forces every h1-h6 to be bold with its own
   margins, so keep the Bootstrap accordion header neutral. */
.accordion-header {
	margin-bottom: 0 !important;
}

.accordion-button {
	font-family: arial, helvetica;
	font-size: 1em;
	font-weight: bold;
	color: #20262b;
}

.accordion-button:not(.collapsed) {
	color: #003366;
	background-color: #f2f6fa;
	box-shadow: none;
}

.accordion-button:focus {
	border-color: #b7c9dc;
	box-shadow: 0 0 0 .2rem rgba(0, 51, 102, .12);
}

.accordion-body {
	line-height: 1.7;
}

.accordion-body h4 {
	font-family: arial, helvetica;
	font-size: .98em;
	font-weight: bold;
	margin-top: 15px;
	margin-bottom: 6px;
}

.accordion-body h4:first-child {
	margin-top: 0;
}

.support-links .list-group-item {
	border-color: #e6eaee;
}

.code-inline {
	background-color: #f1f5f9;
	color: #20262b;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: .95em;
	word-break: break-word;
}

/* --------------------------------------------------------------------------
 * Marketing page (/ios-app/marketing.html) - shown on the App Store listing
 * as the "Marketing URL". Images for this section live in static/ios/.
 * -------------------------------------------------------------------------- */

.mkt-hero {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	padding: 4px 0 18px;
}

.mkt-icon {
	width: 128px;
	height: 128px;
	border-radius: 28px;
	border: 1px solid #e6eaee;
	box-shadow: 0 2px 12px rgba(0, 51, 102, .14);
	flex: 0 0 auto;
}

.mkt-hero-text {
	flex: 1 1 320px;
	min-width: 260px;
}

.mkt-tagline {
	font-size: 1.2em;
	line-height: 1.6;
	margin-bottom: 12px;
}

.mkt-trust {
	font-size: .9em;
	color: #6c757d;
	margin-bottom: 14px;
}

.mkt-trust .sep {
	padding: 0 8px;
	color: #c7d0d9;
}

.mkt-card {
	border: 1px solid #dfe6ee;
	border-radius: 12px;
	background-color: #ffffff;
	padding: 18px;
	height: 100%;
}

.mkt-card h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: arial, helvetica;
	font-size: 1.05em;
	font-weight: bold;
	color: #003366;
	margin-bottom: 8px;
}

.mkt-card h3 i {
	color: #0a7ea4;
}

.mkt-card p {
	margin-bottom: 0;
	line-height: 1.65;
}

.mkt-benefits li {
	line-height: 1.7;
	margin-bottom: 10px;
}

.mkt-benefits strong {
	color: #003366;
}

.mkt-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.mkt-note {
	font-size: .9em;
	color: #6c757d;
}

/* Screenshot gallery - used once real App Store screenshots are added to
   static/ios/ (see the commented block in templates/ios/marketing.html). */
.mkt-screenshot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}

.mkt-screenshot-grid img {
	width: 100%;
	height: auto;
	border: 1px solid #dfe6ee;
	border-radius: 12px;
}

@media (max-width: 575px) {
	.mkt-hero {
		gap: 16px;
	}
	.mkt-icon {
		width: 96px;
		height: 96px;
		border-radius: 22px;
	}
}

/* Privacy policy typography */
.privacy h3 {
	font-family: arial, helvetica;
	font-size: 1.1em;
	font-weight: bold;
	margin-top: 22px;
	margin-bottom: 8px;
}

.privacy h4 {
	font-family: arial, helvetica;
	font-size: 1em;
	font-weight: bold;
	margin-top: 16px;
	margin-bottom: 6px;
}

.privacy p,
.privacy li {
	line-height: 1.7;
}

.privacy .table td,
.privacy .table th {
	vertical-align: top;
}
