/* Json Xml Editor — Liquid Glass product page styles.
   Inherits base reset, typography, theming from ../css/layout.css + ../css/design.css
   Shared components loaded from ../css/product-shared.css */

/* Hero */
.hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2.5rem;
	align-items: center;
	padding: 4rem 0 3rem;
	text-align: left;
	max-width: none;
}

.eyebrow {
	color: var(--accent);
	font-weight: 700;
	margin-bottom: 0.55rem;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.hero h1 {
	font-size: clamp(2.2rem, 4.1vw, 3.6rem);
	line-height: 1.05;
	margin: 0 0 0.75rem;
	letter-spacing: -0.035em;
	font-weight: 700;
	background: linear-gradient(180deg, var(--text) 0%, color-mix(in srgb, var(--text) 68%, transparent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-copy p {
	color: var(--text-secondary);
	font-size: 18px;
	line-height: 1.55;
	max-width: 34rem;
}

.hero-visual img {
	border-radius: 22px;
	border: 1px solid rgba(255,255,255,0.5);
	box-shadow:
		0 30px 80px rgba(20,22,40,0.22),
		0 4px 16px rgba(20,22,40,0.08),
		inset 0 1px 0 rgba(255,255,255,0.5);
	max-width: 100%;
	display: block;
}

@media (prefers-color-scheme: dark) {
	.hero-visual img {
		border-color: rgba(255,255,255,0.12);
		box-shadow:
			0 30px 80px rgba(0,0,0,0.55),
			0 4px 16px rgba(0,0,0,0.35),
			inset 0 1px 0 rgba(255,255,255,0.1);
	}
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* Hero version badge */
.version-badge {
	display: inline-flex;
	margin: 1.1rem 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.version-badge a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.version-badge a::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.version-badge a:hover {
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	transform: translateY(-1px);
}

/* Changelog */
.changelog-list {
	list-style: none;
	padding: 0;
	margin: 1.3rem 0 0;
	display: grid;
	gap: 1.1rem;
}

.changelog-entry {
	position: relative;
	padding: 1.4rem 1.5rem;
	background: var(--glass-bg);
	backdrop-filter: blur(24px) saturate(1.5);
	-webkit-backdrop-filter: blur(24px) saturate(1.5);
	border: 1px solid var(--glass-border);
	border-radius: 20px;
	box-shadow:
		0 10px 28px rgba(20,22,40,0.10),
		inset 0 1px 0 var(--glass-edge);
	overflow: hidden;
	isolation: isolate;
}

.changelog-entry::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(140deg, rgba(255,255,255,0.75), rgba(255,255,255,0.05) 45%, rgba(255,255,255,0) 80%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	pointer-events: none;
}

.changelog-head {
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.changelog-version {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff6e40, #0a84ff);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
	box-shadow: 0 8px 20px rgba(255,110,64,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}

.changelog-date {
	color: var(--text-secondary);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.changelog-entry ul {
	list-style: disc;
	padding-left: 1.1rem;
	margin: 0;
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.6;
}

.changelog-entry li + li {
	margin-top: 0.35rem;
}

.changelog-group {
	margin: 1rem 0 0.4rem;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-primary);
}

.changelog-group:first-of-type {
	margin-top: 0;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section h2 {
	font-size: clamp(1.6rem, 2.3vw, 2.3rem);
	margin: 0 0 0.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}
.section-text { color: var(--text-secondary); margin: 0 0 1.3rem; font-size: 17px; line-height: 1.6; max-width: 44rem; }

/* Glass tile — base for feature cells */
.feature-grid li,
.feature-section,
.privacy li,
.support-list li {
	position: relative;
	background: var(--glass-bg);
	backdrop-filter: blur(24px) saturate(1.5);
	-webkit-backdrop-filter: blur(24px) saturate(1.5);
	border: 1px solid var(--glass-border);
	border-radius: 18px;
	box-shadow:
		0 10px 28px rgba(20,22,40,0.10),
		inset 0 1px 0 var(--glass-edge);
	overflow: hidden;
	isolation: isolate;
}

.feature-grid li::before,
.feature-section::before,
.privacy li::before,
.support-list li::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(140deg, rgba(255,255,255,0.75), rgba(255,255,255,0.05) 45%, rgba(255,255,255,0) 80%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	pointer-events: none;
}

/* Feature grid */
.feature-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	padding: 0;
	margin: 1rem 0 0;
}

.feature-grid li {
	padding: 1.1rem 1.15rem;
	font-size: 15px;
	color: var(--text-secondary);
	line-height: 1.55;
}

.feature-sections {
	margin-top: 1.8rem;
	display: grid;
	gap: 1rem;
}

.feature-section {
	padding: 1.3rem 1.4rem;
}

.feature-section h3 {
	margin: 0 0 0.65rem;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text);
}

.feature-section ul {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.65;
}

.feature-section li + li { margin-top: 0.4rem; }

/* Screenshots */
.screenshots {
	position: relative;
	padding: 3.5rem 0;
}

.screenshots::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent, rgba(94,92,230,0.08) 35%, rgba(191,90,242,0.08) 65%, transparent);
	pointer-events: none;
	z-index: -1;
}

.gallery {
	margin-top: 1.2rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.gallery-link {
	display: block;
	transition: transform 0.3s cubic-bezier(.2,.9,.3,1.2);
}

.gallery-link:hover { transform: translateY(-4px); }

.gallery img {
	border-radius: 18px;
	border: 1px solid rgba(255,255,255,0.4);
	max-width: 100%;
	box-shadow:
		0 18px 44px rgba(20,22,40,0.18),
		inset 0 1px 0 rgba(255,255,255,0.4);
}

@media (prefers-color-scheme: dark) {
	.gallery img {
		border-color: rgba(255,255,255,0.10);
		box-shadow:
			0 18px 44px rgba(0,0,0,0.55),
			inset 0 1px 0 rgba(255,255,255,0.08);
	}
}

/* Privacy */
.privacy ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.85rem; }
.privacy li {
	padding: 1rem 1.15rem 1rem 1.3rem;
	font-size: 15px;
	color: var(--text-secondary);
	line-height: 1.6;
}

.privacy li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 14%;
	bottom: 14%;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--accent-gradient);
}

/* Download */
.download { text-align: center; }
.download p { color: var(--text-secondary); font-size: 17px; }
.download .appstore-link { display: inline-block; margin-top: 0.8rem; }
.download .appstore-link img { width: min(220px, 80vw); height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(20,22,40,0.2); }
.download .appstore-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 14px; }

/* Support */
.support-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.85rem; }
.support-list li {
	padding: 1rem 1.15rem;
	font-size: 15px;
	color: var(--text-secondary);
	line-height: 1.6;
}

.support-list li strong {
	display: inline-block;
	margin-right: 0.5rem;
	color: var(--text);
	font-weight: 600;
}

.support-list a,
.legal-page a { color: var(--accent); text-decoration: none; }
.support-list a:hover,
.legal-page a:hover { text-decoration: underline; }

/* Legal pages */
.legal-page { max-width: 720px; }
.legal-page h1 { margin-bottom: 0.75rem; }
.legal-page h2 { margin-top: 1.5rem; }
.legal-page p { color: var(--text-secondary); line-height: 1.65; font-size: 15px; }

/* Responsive */
@media (max-width: 920px) {
	.hero { grid-template-columns: 1fr; gap: 1.8rem; }
	.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.feature-grid,
	.gallery { grid-template-columns: 1fr; }
	.section { padding: 2.5rem 0; }
}
