:root {
	--bg: #131313;
	--bg-dim: #0e0e0e;
	--surface: #1c1b1b;
	--surface-2: #201f1f;
	--surface-3: #2a2a2a;
	--surface-4: #353534;
	--text: #e5e2e1;
	--text-muted: #d0c5af;
	--text-weak: #b9b8b4;
	--outline: #4d4635;
	--outline-strong: #99907c;
	--gold: #f2ca50;
	--gold-deep: #d4af37;
	--gold-ink: #3c2f00;
	--paper: #f9f7f2;
	--paper-2: #e8e4d9;
	--shadow-gold: rgba(212, 175, 55, 0.08);
	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 10px;
	--radius-xl: 16px;
	--container: 1280px;
	--gutter: 32px;
	--gutter-mobile: 16px;
	--font-display: 'Bodoni Moda', serif;
	--font-sans: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background:
		radial-gradient(800px 400px at 20% -10%, rgba(242, 202, 80, 0.12), transparent 60%),
		radial-gradient(700px 500px at 90% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
		linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select, textarea {
	font-family: var(--font-sans);
	color: inherit;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section-kicker {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 12px;
}

.section-title {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 500;
	margin: 0 0 16px;
}

.section-subtitle {
	color: var(--text-muted);
	max-width: 520px;
	margin: 0;
}

.accent {
	color: var(--gold);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(19, 19, 19, 0.88);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(77, 70, 53, 0.4);
}

.nav {
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nav .nav-cta {
	margin-left: 12px;
	padding: 8px 14px;
	font-size: 12px;
	border-radius: 8px;
	height: auto;
}

@media (max-width: 720px) {
    .nav .nav-cta { display: none; }
}

.brand-mark {
	font-family: var(--font-display);
	font-size: 22px;
	letter-spacing: 0.02em;
	color: var(--gold);
}

.brand-mark .brand-logo {
	height: 34px;
	display: block;
}

.sidebar .brand .sidebar-logo {
	height: 40px;
	display: block;
	margin-bottom: 8px;
}

.footer-brand .footer-logo {
	height: 20px;
	vertical-align: middle;
	margin-right: 8px;
}

.nav-links {
	display: flex;
	gap: 24px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.page { overflow-x: hidden; }
.page section { scroll-margin-top: 96px; }

.hero {
	padding: 80px 0 48px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 40px;
	align-items: center;
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(42px, 6vw, 64px);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 18px;
}

.hero-italic { font-style: italic; }
.hero-accent { color: var(--gold); }

.hero-sub {
	color: var(--text-muted);
	font-size: 18px;
	max-width: 520px;
	margin: 0 0 24px;
}

.hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.hero-footnote {
	color: var(--text-weak);
	font-size: 13px;
}

.hero-visual {
	position: relative;
	display: grid;
	place-items: center;
	padding: 24px;
}

.visual-frame {
	background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.6));
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	padding: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(242, 202, 80, 0.08);
	transform: rotate(-1.8deg);
}

.visual-glass {
	background: linear-gradient(180deg, rgba(19, 19, 19, 0.9), rgba(10, 10, 10, 0.9));
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	padding: 24px;
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.certificate-card {
	background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
	border: 1px solid rgba(153, 144, 124, 0.5);
	border-radius: 12px;
	padding: 24px;
	min-width: 260px;
	min-height: 220px;
	color: #2b2620;
	display: grid;
	gap: 12px;
	box-shadow: 0 24px 40px var(--shadow-gold);
}

.certificate-title {
	font-family: var(--font-display);
	font-size: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #4f4332;
}

.certificate-name {
	font-family: var(--font-display);
	font-size: 28px;
	font-style: italic;
}

.certificate-line {
	height: 1px;
	background: rgba(79, 67, 50, 0.3);
}

.certificate-body {
	font-size: 12px;
	color: #5c5245;
}

.certificate-signatures {
	display: flex;
	gap: 16px;
	margin-top: auto;
}

.signature {
	height: 20px;
	flex: 1;
	border-bottom: 1px solid rgba(79, 67, 50, 0.4);
}

.ledger-badge {
	position: absolute;
	right: 12px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(32, 31, 31, 0.9);
	border: 1px solid rgba(77, 70, 53, 0.6);
	font-size: 11px;
	color: var(--text-muted);
}

.ledger-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-deep));
	box-shadow: 0 0 0 3px rgba(242, 202, 80, 0.2);
}

.feature-section {
	padding: 80px 0;
}

.feature-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 24px;
}

.feature-card {
	background: var(--surface-2);
	border: 1px solid var(--outline);
	border-radius: var(--radius-xl);
	padding: 28px;
	color: var(--text);
	box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

.feature-card.large {
	padding: 32px;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.feature-card h2,
.feature-card h3 {
	font-family: var(--font-display);
	margin: 0 0 12px;
}

.feature-card p {
	color: var(--text-muted);
	margin: 0;
}

.faq-section {
	padding: 80px 0;
	border-top: 1px solid rgba(77, 70, 53, 0.3);
	border-bottom: 1px solid rgba(77, 70, 53, 0.3);
	background: radial-gradient(700px 300px at 15% 20%, rgba(242, 202, 80, 0.08), transparent 60%);
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
}

.faq-card {
	background: var(--surface-2);
	border: 1px solid var(--outline);
	border-radius: var(--radius-xl);
	padding: 24px;
	box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

.faq-card h3 {
	font-family: var(--font-display);
	font-size: 20px;
	margin: 0 0 10px;
}

.faq-card p {
	margin: 0;
	color: var(--text-muted);
}

@media (max-width: 900px) {
	.faq-grid {
		grid-template-columns: 1fr;
	}
}

.feature-tag {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: auto;
}

.feature-stack {
	display: grid;
	gap: 16px;
}

.feature-card.gold {
	background: linear-gradient(180deg, #f4d26a 0%, #e2ba4c 100%);
	color: var(--gold-ink);
	border-color: rgba(60, 47, 0, 0.25);
}

.feature-card.gold p { color: #4a3a12; }

.feature-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid rgba(242, 202, 80, 0.5);
	margin-bottom: 14px;
	position: relative;
}

.feature-icon::after {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 4px;
	background: rgba(242, 202, 80, 0.45);
}

.feature-icon.dark {
	border-color: rgba(60, 47, 0, 0.35);
}

.feature-icon.dark::after { background: rgba(60, 47, 0, 0.35); }

.tagline-banner {
	padding: 16px var(--gutter);
	background: transparent;
	text-align: center;
}

.tagline {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	color: var(--text-muted);
	letter-spacing: 0.01em;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 720px) {
	.tagline {
		font-size: 14px;
	}
}

.workflow-section {
	padding: 48px 0 56px;
	border-bottom: 1px solid rgba(77, 70, 53, 0.4);
	background: radial-gradient(700px 300px at 80% 0%, rgba(242, 202, 80, 0.08), transparent 60%);
}

.process-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.process-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.process-step {
	background: var(--surface-2);
	border: 1px solid var(--outline);
	border-radius: var(--radius-lg);
	padding: 16px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
}

.process-num {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--gold);
	color: var(--gold-ink);
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(242, 202, 80, 0.18);
}

.process-title {
	font-family: var(--font-display);
	font-size: 16px;
	margin-bottom: 6px;
}

.process-desc {
	color: var(--text-muted);
	font-size: 12px;
	margin: 0;
}

.cta-section {
	padding: 40px 0 96px;
}

.cta-card {
	background: var(--surface-2);
	border: 1px solid var(--outline);
	border-radius: 20px;
	padding: 48px;
	text-align: center;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.cta-card h2 {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 42px);
	margin: 0 0 16px;
}

.cta-card p {
	color: var(--text-muted);
	max-width: 560px;
	margin: 0 auto 24px;
}

.cta-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.donation-note {
	color: var(--text-muted);
	font-size: 14px;
	margin-top: 8px;
	margin-bottom: 18px;
}

.btn.donate {
	/* Make donation visually prominent while matching brand */
	background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
	color: var(--gold-ink);
	border-color: var(--gold);
	box-shadow: 0 12px 28px rgba(212, 175, 55, 0.12);
}

.btn.donate:hover {
	background: #f6d66a;
}

.site-footer {
	border-top: 1px solid rgba(77, 70, 53, 0.5);
	padding: 32px 0 48px;
	color: var(--text-weak);
	font-size: 12px;
}

.footer-inner {
	display: grid;
	gap: 16px;
	justify-items: center;
	text-align: center;
}

.footer-brand {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 18px;
}

.footer-links {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-note { opacity: 0.7; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(242, 202, 80, 0.6);
	background: transparent;
	color: var(--gold);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 200ms ease;
}

.btn:hover {
	border-color: var(--gold);
	color: var(--gold-ink);
	background: var(--gold);
}

.btn.primary {
	background: var(--gold);
	color: var(--gold-ink);
	border-color: var(--gold);
}

.btn.primary:hover {
	background: #f6d66a;
}

.btn.ghost {
	background: transparent;
	color: var(--text-muted);
	border-color: rgba(77, 70, 53, 0.6);
}

.btn.ghost:hover {
	color: var(--gold);
	border-color: var(--gold);
	background: rgba(242, 202, 80, 0.12);
}

.btn.secondary {
	background: transparent;
	color: var(--gold);
	border-color: var(--gold);
	font-size: 11px;
	padding: 8px 16px;
}

.btn.secondary:hover {
	background: rgba(242, 202, 80, 0.15);
	color: var(--gold-ink);
	border-color: var(--gold);
}

.app-shell {
	padding: 80px 0 120px;
	border-top: 1px solid rgba(77, 70, 53, 0.4);
	background: radial-gradient(600px 300px at 20% 0%, rgba(242, 202, 80, 0.08), transparent 60%);
}

.app-intro {
	margin-bottom: 32px;
}

.layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 0 var(--gutter);
	max-width: var(--container);
	margin: 0 auto;
}

.sidebar {
	width: 240px;
	background: var(--surface);
	border: 1px solid var(--outline);
	border-radius: var(--radius-lg);
	padding: 24px;
	position: sticky;
	top: 120px;
}

.sidebar .brand {
	color: var(--gold);
	margin-bottom: 18px;
}

.sidebar .brand-icon { font-size: 20px; }
.sidebar .brand-title {
	font-family: var(--font-display);
	font-size: 20px;
	margin-top: 6px;
}

.sidebar .brand-sub {
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--text-muted);
}

.side-nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.side-item {
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-muted);
	text-align: left;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all 200ms ease;
}

.side-item.active,
.side-item:hover {
	border-color: var(--gold);
	color: var(--gold);
	background: rgba(242, 202, 80, 0.08);
}

.side-actions {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.side-actions .btn {
	width: 100%;
}

.content {
	flex: 1;
	min-width: 0;
}

#step-indicator {
	padding: 18px 8px 0 8px;
}

.indicator-line {
	display: flex;
	gap: 14px;
	align-items: center;
}

.indicator-line .marker {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	border: 1px solid rgba(77, 70, 53, 0.8);
	background: transparent;
}

.indicator-line .marker.active {
	background: var(--gold);
	border-color: var(--gold);
}

.indicator-line .marker span { display: none; }

.app-main {
	padding: 24px 8px 80px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.step {
	position: relative;
}

.step-number {
	position: absolute;
	font-family: var(--font-display);
	font-size: 140px;
	color: var(--text);
	opacity: 0.04;
	top: -10px;
	left: 0;
	pointer-events: none;
	z-index: 0;
}

.card {
	position: relative;
	z-index: 1;
	border-left: 3px solid var(--gold);
	background: var(--surface-2);
	padding: 32px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--outline);
}

.card h2 {
	font-family: var(--font-display);
	margin-top: 0;
}

.actions { margin-top: 20px; }

.upload-zone {
	border: 1px dashed rgba(232, 228, 217, 0.5);
	padding: 3rem;
	text-align: center;
	cursor: pointer;
	border-radius: var(--radius-md);
	background: rgba(0, 0, 0, 0.2);
}

.upload-zone:hover,
.upload-zone.dragover {
	border-color: var(--gold);
	background: rgba(242, 202, 80, 0.05);
}

.label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.info { margin-top: 12px; color: var(--text-muted); font-size: 13px; }

.place-style-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 24px;
	align-items: start;
	margin-top: 8px;
}

.style-panel {
	border-left: 1px solid var(--outline);
	padding-left: 24px;
}

.coord-panel {
	display: flex;
	gap: 18px;
	align-items: center;
	margin-top: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.coord-item {
	background: rgba(255, 255, 255, 0.02);
	padding: 10px 14px;
	border-radius: var(--radius-md);
	color: var(--text-muted);
	font-size: 13px;
}

.coord-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-right: 6px;
}

.snap-label { color: var(--text-muted); font-size: 13px; }

#live-preview {
	margin-top: 16px;
	background: var(--surface-3);
	border-radius: var(--radius-lg);
	padding: 16px;
	border: 1px solid var(--outline);
}

#preview-canvas {
	max-width: 400px;
	width: 100%;
	border: 1px solid rgba(77, 70, 53, 0.6);
	cursor: crosshair;
	background: rgba(0, 0, 0, 0.4);
}

.preview-controls {
	position: relative;
	margin-top: 10px;
	display: flex;
	gap: 8px;
}

.preview-controls button {
	background: var(--surface);
	border: 1px solid var(--outline);
	color: var(--gold);
	padding: 8px;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

#position-display { margin-top: 8px; color: var(--text-muted); }

.text-toolbar {
	position: relative;
	margin-top: 14px;
	padding: 14px;
	border: 1px solid var(--outline);
	border-radius: var(--radius-md);
	background: var(--surface);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.toolbar-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.toolbar-label {
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.toolbar-controls {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.toolbar-btn {
	background: var(--surface-2);
	border: 1px solid var(--outline);
	color: var(--text);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 160ms ease;
}

.toolbar-btn:hover {
	border-color: var(--gold);
	color: var(--gold);
	background: rgba(242, 202, 80, 0.08);
}

.toolbar-btn.active {
	border-color: var(--gold);
	color: var(--gold-ink);
	background: var(--gold);
}

.toolbar-icon {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 1px solid rgba(242, 202, 80, 0.4);
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-size: 12px;
	color: inherit;
}

.toolbar-text {
	font-size: 12px;
}

.toolbar-size {
	color: var(--text-muted);
	font-size: 13px;
	padding: 0 6px;
}

.controls-row {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.control { flex: 1; min-width: 180px; }

.range-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

input[type="range"] { width: 100%; }

.font-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.font-card {
	background: transparent;
	border: 1px solid var(--outline);
	color: var(--text-muted);
	padding: 10px 12px;
	border-radius: var(--radius-md);
	text-align: left;
	cursor: pointer;
	min-width: 160px;
	flex: 1 1 180px;
}

.font-card.active {
	background: var(--gold);
	color: var(--gold-ink);
	border-color: var(--gold);
}

.color-swatches {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.color-swatch {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 2px solid rgba(255, 255, 255, 0.04);
	cursor: pointer;
}

.radio-group {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	color: var(--text-muted);
}

.radio-group label { display: flex; gap: 8px; align-items: center; }

.format-group {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.format-option {
	position: relative;
	cursor: pointer;
	margin: 0;
}

.format-option input {
	position: absolute;
	op: 10px;
	left: 10px;
	opacity: 0;
	pointer-events: none;
}

.format-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border-radius: var(--radius-md);
	border: 1px solid var(--outline);
	background: var(--surface-2);
	color: var(--text);
	transition: all 160ms ease;
	min-height: 74px;
	justify-content: center;
}

.format-title {
	font-family: var(--font-display);
	font-size: 16px;
}

.format-sub {
	font-size: 12px;
	color: var(--text-muted);
}

.format-option input:checked + .format-card {
	border-color: var(--gold);
	background: rgba(242, 202, 80, 0.12);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.format-option input:checked + .format-card .format-title {
	color: var(--gold);
}

.format-option input:focus-visible + .format-card {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.format-option:hover .format-card {
	border-color: var(--gold);
}

.output-hint {
	margin-top: 10px;
	font-size: 12px;
	color: var(--text-muted);
}

select, input[type="text"], input[type="color"] {
	background: var(--surface);
	border: 1px solid var(--outline);
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	color: var(--text);
}

select:focus, input:focus {
	outline: 1px solid var(--gold);
}

.preview-header { display: flex; justify-content: space-between; align-items: center; }
.preview-badge {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--outline);
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 12px;
}

.upload-success {
	margin-top: 12px;
	padding: 12px 16px;
	background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.04));
	border: 1px solid rgba(201, 168, 76, 0.18);
	color: var(--gold);
	border-radius: var(--radius-sm);
}

.upload-warning {
	margin-top: 8px;
	padding: 10px 12px;
	background: rgba(139, 58, 58, 0.06);
	border: 1px solid rgba(139, 58, 58, 0.08);
	color: #ffb4ab;
	border-radius: var(--radius-sm);
	font-size: 13px;
}

#preview-table-wrap {
	margin-top: 12px;
	border: 1px solid var(--outline);
	border-radius: var(--radius-md);
	overflow: auto;
	max-height: 240px;
}

#preview-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	color: var(--text-muted);
}

#preview-table th,
#preview-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid rgba(77, 70, 53, 0.4);
}

#preview-table th {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 10px;
	color: var(--text);
}

.generate-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	gap: 24px;
	align-items: start;
}

.generate-preview-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.generate-preview-card canvas {
	width: 100%;
	max-width: 320px;
	border: 1px solid var(--outline);
}

.preview-caption { color: var(--text-muted); font-size: 12px; }

.big-cta { padding: 14px 20px; font-size: 14px; }

.progress-hero {
	margin-top: 16px;
	padding: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
	border: 1px solid var(--outline);
	border-radius: var(--radius-lg);
}

.hero-badges {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.badge {
	background: rgba(255, 255, 255, 0.02);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--outline);
	color: var(--text-muted);
	font-size: 13px;
}

.files-badge { color: var(--text); }

.hero-percent {
	font-size: 48px;
	color: var(--gold);
	font-family: var(--font-display);
	margin-bottom: 8px;
}

.hero-status { color: var(--text-muted); font-size: 13px; }

.traffic-warning {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(242, 202, 80, 0.12);
	border: 1px solid rgba(242, 202, 80, 0.28);
	color: var(--gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.progress { margin-top: 16px; }

.progress-outer {
	width: 100%;
	height: 12px;
	border-radius: 6px;
	background: transparent;
	border: 1px solid var(--outline);
	overflow: hidden;
}

.progress-inner { height: 100%; background: var(--gold); width: 0; }

.progress-text { margin-top: 8px; color: var(--text-muted); }

.success { color: #9ad0a5; margin-bottom: 8px; }

.modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
}

.modal.active { display: flex; }

.modal .modal-card {
	background: #111;
	padding: 16px;
	border-radius: var(--radius-md);
	border: 1px solid var(--outline);
}

.modal canvas { max-width: 90vw; max-height: 90vh; display: block; }

@media (max-width: 1100px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { order: -1; }
	.feature-grid { grid-template-columns: 1fr; }
	.process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.nav-links { display: none; }
	.hero { padding-top: 60px; }
	.layout {
		flex-direction: column;
		padding: 0 var(--gutter-mobile);
	}
	.sidebar {
		width: 100%;
		position: static;
	}
	.place-style-grid { grid-template-columns: 1fr; }
	.style-panel { border-left: 0; padding-left: 0; margin-top: 16px; }
	.controls-row { flex-direction: column; align-items: stretch; }
	.text-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.format-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.generate-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	.container { padding: 0 var(--gutter-mobile); }
	.process-header { flex-direction: column; align-items: flex-start; }
	.process-steps { grid-template-columns: 1fr; }
	.cta-card { padding: 32px 24px; }
	.hero-actions { flex-direction: column; align-items: flex-start; }
	.text-toolbar { grid-template-columns: 1fr; }
	.format-group { grid-template-columns: 1fr; }
}

