/*
	jmobbi, modern landing theme (white / red).
	Loaded after main.css. Replaces the old sidebar layout with a
	single-column, sticky-navbar landing design.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--red: #e11d48;
	--red-dark: #be123c;
	--red-soft: #fb7185;
	--red-tint: #fff1f3;
	--red-grad: linear-gradient(135deg, #fb7185 0%, #e11d48 60%, #be123c 100%);
	--ink: #17151c;
	--ink-2: #3f3d47;
	--muted: #6b6873;
	--line: #efe6e8;
	--bg: #ffffff;
	--bg-alt: #fff7f8;
	--radius: 20px;
	--shadow-sm: 0 6px 22px rgba(190, 18, 60, 0.07);
	--shadow-md: 0 20px 55px rgba(190, 18, 60, 0.14);
	--container: 1120px;
}

/* ---------- Reset Editorial layout ---------- */
html, body { overflow-x: hidden; }
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	color: var(--ink-2) !important;
	background: var(--bg) !important;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
#wrapper { display: block !important; }
#main { padding: 0 !important; background: transparent !important; }
#main > .inner { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; }
#sidebar, #titleBar, #sidebar .toggle { display: none !important; }

h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', sans-serif !important;
	color: var(--ink) !important;
	letter-spacing: -0.025em !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
}
p { color: var(--ink-2); }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Navbar ---------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
}
.nav .brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	color: var(--ink) !important;
}
.nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav .brand span {
	background: var(--red-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 1.8rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-links a {
	color: var(--ink-2) !important;
	font-weight: 500;
	font-size: 0.95rem;
	border-bottom: 0 !important;
}
.nav-links a:hover { color: var(--red) !important; }
.nav .brand { border-bottom: 0 !important; }
.nav-toggle {
	display: none;
	width: 38px; height: 38px;
	padding: 0;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--ink) !important;
	border-radius: 9px;
	cursor: pointer;
	/* three bars drawn with CSS so it always renders (no glyph/SVG dependency) */
	background:
		linear-gradient(var(--ink), var(--ink)) no-repeat center 13px / 19px 2px,
		linear-gradient(var(--ink), var(--ink)) no-repeat center 18.5px / 19px 2px,
		linear-gradient(var(--ink), var(--ink)) no-repeat center 24px / 19px 2px !important;
}
.nav-toggle:hover {
	background:
		linear-gradient(var(--red), var(--red)) no-repeat center 13px / 19px 2px,
		linear-gradient(var(--red), var(--red)) no-repeat center 18.5px / 19px 2px,
		linear-gradient(var(--red), var(--red)) no-repeat center 24px / 19px 2px !important;
}
.nav-toggle svg { display: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 0.95em 1.6em;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	white-space: nowrap;
}
.btn-primary {
	background: var(--red-grad);
	color: #fff !important;
	box-shadow: 0 10px 26px rgba(225, 29, 72, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(225, 29, 72, 0.45); color: #fff !important; }
.btn-ghost {
	background: #fff;
	color: var(--ink) !important;
	box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--red-soft); color: var(--red) !important; }
.btn-white { background: #fff; color: var(--red) !important; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.btn-sm { padding: 0.65em 1.15em; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section.tint { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 0.9rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 0.75rem; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	text-align: center;
	padding: 5rem 0 4.5rem;
	background:
		radial-gradient(60% 55% at 50% 0%, var(--red-tint) 0%, rgba(255,255,255,0) 70%),
		#ffffff;
	overflow: hidden;
}
.hero .app-icon {
	width: 108px;
	height: 108px;
	border-radius: 26px;
	box-shadow: var(--shadow-md);
	margin: 0 auto 1.6rem;
	display: block;
	object-fit: cover;
}
.hero h1 { font-size: clamp(1.9rem, 6vw, 4rem); margin: 0 0 1rem; overflow-wrap: break-word; }
.hero .lead {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: var(--muted);
	max-width: 680px;
	margin: 0 auto 2rem;
}
.hero .hero-actions {
	display: flex;
	gap: 0.9rem;
	justify-content: center;
	flex-wrap: wrap;
}
.hero .hero-stats {
	display: flex;
	gap: 2.6rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 3rem;
}
.hero .hero-stats strong {
	display: block;
	font-size: 1.9rem;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.03em;
}
.hero .hero-stats span {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

/* ---------- Feature grid ---------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.4rem;
}
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.9rem;
	box-shadow: var(--shadow-sm);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #f6d6dd; }
.card .ic {
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: var(--red-tint);
	color: var(--red) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	margin-bottom: 1.1rem;
}
.card .ic:before { color: var(--red) !important; }
.card h3 { font-size: 1.18rem; margin: 0 0 0.5rem; font-weight: 700 !important; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- App list (home) ---------- */
.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.4rem;
}
.app-card {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--line);
	border-bottom: 1px solid var(--line) !important;
	border-radius: var(--radius);
	padding: 1.6rem;
	box-shadow: var(--shadow-sm);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	color: inherit !important;
	text-decoration: none;
	cursor: pointer;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #f6d6dd !important; }
.app-card img { width: 66px; height: 66px; border-radius: 16px; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.app-card h3 { font-size: 1.1rem; margin: 0 0 0.35rem; font-weight: 700 !important; }
.app-card p { margin: 0 0 0.9rem; font-size: 0.93rem; color: var(--muted); }
.app-card .app-link { font-weight: 600; font-size: 0.92rem; color: var(--red); }
.app-card:hover .app-link { color: var(--red-dark); }
.app-card .app-link:after { content: ' →'; }

/* ---------- Screenshots ---------- */
.shots {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding: 0.5rem 0 1.5rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(225,29,72,0.3); border-radius: 999px; }
.shots img, .shots .screenshot {
	flex: 0 0 auto;
	scroll-snap-align: center;
	height: 420px;
	width: auto;
	max-width: none;
	border-radius: 22px !important;
	box-shadow: var(--shadow-md) !important;
	border: 1px solid var(--line);
}
/* neutralize old inline screenshot styles */
#app-screenshots.screenshots { justify-content: flex-start; flex-wrap: nowrap; }

/* ---------- Reviews (single-column infinite auto-scroll) ---------- */
.reviews-box {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	height: 600px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.reviews-scroller {
	display: flex;
	flex-direction: column;
	will-change: transform;
}
.review-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	margin-bottom: 1.3rem;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
}
.review-card .review-stars { color: #f5b301; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 0.6rem; }
.review-card .review-title { font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; font-size: 1.05rem; }
.review-card .review-body { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.2rem; flex-grow: 1; }
.review-card .review-author { font-size: 0.85rem; font-weight: 600; color: var(--red); }
.reviews-empty { color: var(--muted); font-style: italic; text-align: center; }
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.reviews-summary .rating-badge { background: var(--red-grad); color: #fff; font-weight: 800; padding: 0.35em 0.85em; border-radius: 999px; }
.reviews-summary .rating-stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }
.reviews-summary .rating-count { color: var(--muted); font-size: 0.92rem; }

/* ---------- Content prose (app detail long text) ---------- */
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; }
.prose p { color: var(--ink-2); margin: 0 0 1rem; font-size: 1.02rem; }
.prose a { color: var(--red); font-weight: 600; }

/* ---------- FAQ ---------- */
/* ---------- How-to guides ---------- */
.guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.4rem;
}
.guide-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-bottom: 1px solid var(--line) !important;
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow-sm);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	color: inherit !important;
	text-decoration: none;
	cursor: pointer;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #f6d6dd !important; }
.guide-card .guide-cat {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--red);
	margin-bottom: 0.6rem;
}
.guide-card h3 { font-size: 1.14rem; margin: 0 0 0.5rem; font-weight: 700 !important; }
.guide-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; flex-grow: 1; }
.guide-card .guide-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.9rem; }
.guide-card .guide-link { font-weight: 600; font-size: 0.92rem; color: var(--red); }
.guide-card:hover .guide-link { color: var(--red-dark); }
.guide-card .guide-link:after { content: ' →'; }

/* ---------- Article (how-to post) ---------- */
.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 0.9rem;
}
.article-back { font-size: 0.9rem; font-weight: 600; }
.article-meta { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 1.75rem; }
.prose ol, .prose ul { color: var(--ink-2); margin: 0 0 1.2rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .tip {
	background: var(--bg-alt);
	border-left: 4px solid var(--red);
	border-radius: 10px;
	padding: 1rem 1.2rem;
	margin: 0 0 1.4rem;
	color: var(--ink-2);
	font-size: 0.97rem;
}
.prose .article-cta { margin-top: 2rem; }

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0 1.3rem;
	margin-bottom: 0.8rem;
	background: #fff;
	box-shadow: var(--shadow-sm);
}
.faq summary {
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	color: var(--ink);
	padding: 1.15rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: '+'; color: var(--red); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary:after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); }
.faq details ol, .faq details ul { margin: 0 0 1.2rem; padding-left: 1.3rem; color: var(--muted); }
.faq details li { margin-bottom: 0.35rem; }
.faq details p:last-child, .faq details ol:last-child, .faq details ul:last-child { margin-bottom: 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red-grad); border-radius: 28px; padding: 3.5rem 2rem; text-align: center; color: #fff; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff !important; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: #131017; border-top: 1px solid #131017; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { border-bottom: 0 !important; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: #fff !important; margin-bottom: 0.8rem; text-decoration: none; }
.footer-brand .brand span {
	background: linear-gradient(120deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.footer-brand .brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45) !important; margin: 0 0 1rem; font-weight: 700 !important; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.78) !important; font-size: 0.93rem; font-weight: 500; }
.footer-col a:hover { color: var(--red-soft) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; color: rgba(255,255,255,0.45); font-size: 0.86rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 736px) {
	.nav-toggle { display: flex; }
	.nav-links {
		position: fixed;
		top: 68px; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(255,255,255,0.98);
		-webkit-backdrop-filter: saturate(180%) blur(14px);
		backdrop-filter: saturate(180%) blur(14px);
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
		padding: 0.35rem 0;
		box-shadow: 0 18px 42px rgba(76,29,149,0.14);
		display: none;
	}
	.nav-links.open { display: flex; }
	.nav-links li { width: 100%; }
	.nav-links a {
		display: block; width: 100%;
		padding: 0.95rem 1.5rem;
		font-size: 1.02rem; font-weight: 600;
		border-bottom: 1px solid rgba(239,230,232,0.7) !important;
	}
	.nav-links li:last-child a { border-bottom: 0 !important; }
	.nav-links a:hover, .nav-links a:active { background: var(--red-tint); color: var(--red) !important; }
	.section { padding: 3.5rem 0; }
	.shots img, .shots .screenshot { height: 340px; }
	.footer-grid { grid-template-columns: 1fr; }
	.reviews-box { height: 500px; }
}
