/* Json Xml Editor — product page styles
   Inherits base reset, typography, and theming from ../css/layout.css + ../css/design.css */

/* Container */
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

/* Sticky header */
.site-header {
	position: sticky;
	top: 0;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: rgba(251, 251, 253, 0.8);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	z-index: 40;
}

@media (prefers-color-scheme: dark) {
	.site-header {
		background: rgba(0, 0, 0, 0.8);
		border-bottom-color: rgba(255,255,255,0.08);
	}
}

.nav { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; color: var(--text); }
.brand img { border-radius: 8px; }
.menu { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0 auto 0 1rem; }
.menu a { text-decoration: none; color: var(--text-secondary); transition: color 0.2s; }
.menu a:hover { color: var(--text); }

/* Language picker */
.language-form {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.language-picker-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border: 1px solid rgba(134,134,139,0.25);
	border-radius: 999px;
	background: var(--card-bg);
}

.language-form select {
	min-width: 11rem;
	background: var(--card-bg);
	color: var(--text);
	border: 1px solid rgba(134,134,139,0.3);
	border-radius: 0.6rem;
	padding: 0.5rem 0.75rem;
	font-family: inherit;
	font-size: 14px;
}

.language-form select:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

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

.eyebrow { color: var(--accent); font-weight: 700; margin-bottom: 0.4rem; font-size: 15px; }

.hero h1 {
	font-size: clamp(2rem, 3.9vw, 3.4rem);
	line-height: 1.1;
	margin: 0 0 0.5rem;
	letter-spacing: -0.03em;
	font-weight: 700;
}

.hero-copy p { color: var(--text-secondary); font-size: 17px; line-height: 1.5; }
.hero-visual img {
	border-radius: 1rem;
	border: 1px solid rgba(134,134,139,0.18);
	box-shadow: var(--card-shadow);
	max-width: 100%;
	display: block;
}

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

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	padding: 0.72rem 1.2rem;
	border-radius: 980px;
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 15px;
	transition: opacity 0.2s;
}

.button:hover { opacity: 0.85; }

.button.primary {
	background: var(--accent);
	color: #fff;
}

.button.ghost {
	border-color: rgba(134,134,139,0.35);
	color: var(--text);
}

/* Sections */
.section { padding: 3rem 0; }
.section h2 {
	font-size: clamp(1.5rem, 2.2vw, 2.2rem);
	margin: 0 0 0.4rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.section-text { color: var(--text-secondary); margin: 0 0 1.2rem; font-size: 17px; }

/* 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 {
	background: var(--card-bg);
	border: 1px solid rgba(134,134,139,0.12);
	padding: 1rem;
	border-radius: 14px;
	font-size: 15px;
	color: var(--text-secondary);
	box-shadow: var(--card-shadow);
}

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

.feature-section {
	background: var(--card-bg);
	border: 1px solid rgba(134,134,139,0.12);
	border-radius: 14px;
	padding: 1.2rem;
	box-shadow: var(--card-shadow);
}

.feature-section h3 {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
	font-weight: 600;
}

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

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

/* Screenshots */
.screenshots {
	background: var(--card-bg);
	border-top: 1px solid rgba(134,134,139,0.12);
	border-bottom: 1px solid rgba(134,134,139,0.12);
}

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

.gallery-link { display: block; }

.gallery img {
	border-radius: 12px;
	border: 1px solid rgba(134,134,139,0.18);
	max-width: 100%;
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; z-index: 80; }
.lightbox:target { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.lightbox-content { position: relative; z-index: 1; width: 100%; height: 100%; overflow: auto; padding: 4rem 2rem 2rem; }
.lightbox-content img { width: min(1280px, 95vw); max-width: none; margin: 0 auto; border-radius: 12px; border: 1px solid rgba(134,134,139,0.18); box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.45); }
.lightbox-close { position: sticky; top: 0; display: inline-flex; margin-left: auto; margin-bottom: 1rem; padding: 0.45rem 0.75rem; border-radius: 999px; text-decoration: none; background: var(--card-bg); border: 1px solid rgba(134,134,139,0.24); color: var(--text); font-size: 14px; }

/* Privacy */
.privacy ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.8rem; }
.privacy li {
	padding: 0.9rem;
	border-left: 4px solid var(--accent);
	background: var(--card-bg);
	border-radius: 8px;
	box-shadow: var(--card-shadow);
	font-size: 15px;
}

/* 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: 10px; box-shadow: 0 0.6rem 1.8rem rgba(0,0,0,0.15); }
.download .appstore-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* Support */
.support-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
.support-list li {
	background: var(--card-bg);
	border: 1px solid rgba(134,134,139,0.12);
	border-radius: 12px;
	padding: 0.9rem;
	box-shadow: var(--card-shadow);
	font-size: 15px;
}

.support-list a,
.legal-page a { color: var(--accent); }

/* Bakery banner */
.bakery-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 24px;
	font-size: 13px;
	color: var(--text-secondary);
	border-bottom: 1px solid rgba(134,134,139,0.12);
	background: var(--bg);
}

.bakery-banner img {
	width: 20px;
	height: 20px;
	display: inline-block;
}

.bakery-banner a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
}

.bakery-banner a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
	border-top: 1px solid rgba(134,134,139,0.15);
	padding: 1.5rem 0;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	color: var(--text-secondary);
	font-size: 13px;
}

.footer-inner a { color: var(--text-secondary); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

.footer-bakery {
	display: flex;
	align-items: center;
	gap: 6px;
}

.footer-bakery img { width: 18px; height: 18px; }
.footer-bakery a { font-weight: 500; }

/* 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.6; font-size: 15px; }

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

@media (max-width: 680px) {
	.menu { display: none; }
	.feature-grid,
	.gallery { grid-template-columns: 1fr; }
	.footer-inner { flex-direction: column; text-align: center; }
}
