/* --- DESIGN TOKENS & BASE --- */
:root {
	--brand-green: #29a56b;
	--brand-green-hover: #3ccf8a;
	--brand-blue: #29a56b;
	--brand-blue-hover: #3ccf8a;
	--brand-dark: #333e48;
	
	--primary: var(--brand-blue);
	--primary-light: #e6f5fd;
	
	--bg-body: #f4f5f6;
	--bg-surface: #ffffff;
	--bg-muted: #f9fafb;
	--text-main: #1f2937;
	--text-muted: #6b7280;
	--border: #e5e7eb;
	--border-dark: #d1d5db;
	
	--danger-bg: #fef2f2;
	--danger-text: #b91c1c;
	--danger-border: #fecaca;
	
	--radius-sm: 0.25rem;
	--radius-md: 0.375rem;
	--radius-lg: 0.25rem;
	--radius-xl: 0.75rem;
	
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-body);
	color: var(--text-main);
	font-family: 'Barlow', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
}

.h1-title {
  font-size: 0.9rem;
  font-weight: 100;
  line-height: 110%;
  text-transform: uppercase;
  color: #ffffff;
}

.spn-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 110%;
  text-transform: capitalize;
  color: #ffffff;
}

/* --- LAYOUT UTILITIES --- */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-4 { padding-top: 1rem; }

.hidden { display: none !important; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.icon-xs { width: 1rem; height: 1rem; }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2.5rem; height: 2.5rem; }
.text-white { color: #ffffff; }

/* --- HEADER & HERO --- */
.header-bg {
	background-color: var(--brand-green);
	padding-bottom: 6rem;
}
.header {
	height: 4rem;
	display: flex;
	align-items: center;
}
.logo-block {
	display: flex; align-items: center; gap: 0.5rem;
	color: red; font-weight: 700; font-size: 1.25rem;
	text-decoration: none;
}
	.lucide.lucide-qr-code {
	color: red;
}
.logo-block i { color: red; }
.nav-links {
	display: none;
}
@media (min-width: 768px) {
	.nav-links {
		display: flex; gap: 1.5rem;
	}
}
.nav-links a {
	color: rgba(255,255,255,0.9);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s;
}
.nav-links a:hover { color: white; }

.main-tool-wrapper {
	margin-top: -4rem;
	background: var(--bg-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
	overflow: hidden;
	position: relative;
	z-index: 10;
    padding: 0.5rem;
    margin-bottom: 3rem;
}

/* --- MAIN GRID --- */
.layout-grid {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.col-main { width: 100%; border-right: 1px solid var(--border); }
.col-side { width: 100%; background-color: #ffffff; }
@media (min-width: 1024px) {
	.layout-grid { flex-direction: row; }
	.col-main { width: 66.666667%; padding: 2rem; }
	.col-side { width: 33.333333%; padding: 2rem; position: sticky; top: 0; }
}
@media (max-width: 1023px) {
	.col-main { padding: 1.5rem; }
	.col-side { padding: 1.5rem; border-top: 1px solid var(--border); }
}

/* --- TABS --- */
.tabs-wrapper {
	background: var(--bg-surface);
	border-bottom: 1px solid var(--border);
}
.tab-list {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 0 1rem;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 1rem 1.25rem; border: none; background: transparent;
	cursor: pointer; border-bottom: 3px solid transparent; font-family: 'Barlow';
	font-size: 0.875rem; font-weight: 700; color: #4b5563;
	transition: all 0.2s; white-space: nowrap;
}
.tab-btn:hover { color: var(--brand-blue); }
.tab-btn.active {
	border-bottom-color: var(--brand-blue);
	color: var(--brand-blue);
}

/* --- ACCORDIONS --- */
.accordion {
	background: var(--bg-surface);
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	margin-bottom: 1rem;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.accordion-header {
	padding: 1.25rem 1.5rem;
	display: flex; align-items: center; justify-content: space-between;
	cursor: pointer; user-select: none; font-weight: 600; font-size: 1.1rem;
	color: #374151; transition: background 0.2s;
	background: #f8f9fa;
}
.accordion-header i.icon-sm { color: #9ca3af; transition: transform 0.2s; }
.accordion-header:hover { background: #f1f5f9; }

.accordion-content { padding: 1.5rem; border-top: 1px solid var(--border); background: white; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .3s ease-in-out; }
details[open] summary i.chevron-icon { transform: rotate(180deg); }

@keyframes sweep {
	0%    {opacity: 0; margin-top: -10px}
	100%  {opacity: 1; margin-top: 0px}
}

/* --- FORMS & INPUTS --- */
.form-label {
	display: block; font-size: 0.875rem; font-weight: 500;
	color: #374151; margin-bottom: 0.25rem;
}
.form-input {
	display: block; width: 100%; border-radius: var(--radius-sm);
	border: 1px solid var(--border-dark); padding: 0.625rem 0.75rem;
	font-size: 0.875rem; color: #111827;
	transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
}
.form-input:focus {
	outline: none; border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(0, 157, 235, 0.2);
}
.form-input::placeholder { color: #9ca3af; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.col-span-2 { grid-column: span 1; }
@media (min-width: 768px) { .col-span-2 { grid-column: span 2; } }

/* Custom Checkboxes/Radios */
.check-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: #374151; }
.check-input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); cursor: pointer; }
.text-xs-label { font-size: 0.75rem; color: var(--text-muted); display: block; }

/* --- SET COLORS PANEL --- */
.color-group {
	background: #ffffff; padding: 1rem;
	border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.color-picker {
	width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
	border: none; cursor: pointer; background: transparent; padding: 0;
}

.alert-warning {
	background: var(--danger-bg); border: 1px solid var(--danger-border);
	color: var(--danger-text); padding: 0.75rem; border-radius: var(--radius-md);
	display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem;
}

/* --- LOGO UPLOAD --- */
.logo-preview-box {
	width: 4rem; height: 4rem; background: var(--bg-muted);
	border: 2px dashed var(--border-dark); border-radius: var(--radius-sm);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; flex-shrink: 0;
}
.logo-preview-box img { width: 100%; height: 100%; object-fit: contain; }
.file-input { display: block; width: 100%; font-size: 0.875rem; color: var(--text-muted); cursor: pointer; }
.file-input::file-selector-button {
	margin-right: 1rem; padding: 0.5rem 1rem; border-radius: var(--radius-md);
	border: 0; font-size: 0.875rem; font-weight: 600; background: var(--bg-muted);
	color: #374151; cursor: pointer; transition: 0.2s; border: 1px solid var(--border-dark);
}
.file-input::file-selector-button:hover { background: #e5e7eb; }
.btn-link-danger {
	color: #dc2626; font-size: 0.875rem; background: none; border: none;
	cursor: pointer; padding: 0; transition: color 0.2s;
}
.btn-link-danger:hover { color: #991b1b; }

/* --- DESIGN SELECTORS --- */
.design-heading { font-size: 0.875rem; font-weight: 500; color: #374151; }
.design-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.design-radio-wrapper { position: relative; cursor: pointer; }
.design-radio { display: none; }
.design-box {
	width: 3rem; height: 3rem; border-radius: var(--radius-sm);
	border: 2px solid transparent; background: var(--bg-muted);
	display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.design-radio:checked + .design-box {
	border-color: var(--primary); background: var(--primary-light);
}
.design-text { font-size: 0.625rem; text-transform: capitalize; color: #4b5563; }
.design-box:hover { background: #e5e7eb; }

/* --- PREVIEW PANEL --- */
.preview-sticky { position: sticky; top: 1rem; display: flex; flex-direction: column; align-items: center;}
.qr-preview-container {
	width: 100%; max-width: 300px; aspect-ratio: 1/1; background: var(--bg-surface);
	border-radius: var(--radius-sm); border: 1px solid var(--border);
	display: flex; align-items: center; justify-content: center; padding: 1rem;
	margin: 0 auto; box-shadow: var(--shadow-sm);
}
.qr-preview-container canvas, .qr-preview-container svg {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

/* --- BUTTONS --- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
	font-weight: 600; cursor: pointer; transition: 0.2s; border: 1px solid transparent; 
	font-family: inherit; font-size: 1rem;
}
.btn-green {
	background: var(--brand-green); color: #ffffff; width: 100%; max-width: 300px;
}
.btn-green:hover { background: var(--brand-green-hover); }
.btn-blue {
	background: var(--brand-blue); color: #ffffff; width: 100%; max-width: 300px;
}
.btn-blue:hover { background: var(--brand-blue-hover); }

.download-links {
	display: flex; gap: 1rem; margin-top: 1rem; justify-content: center;
}
.download-links a {
	color: var(--brand-blue); text-decoration: none; font-size: 0.875rem; font-weight: 500;
}
.download-links a:hover { text-decoration: underline; }

/* --- LANDING PAGE SECTIONS --- */
.section { padding: 4rem 1rem; }
.section-alt { background-color: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 3rem; color: #1f2937;}

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.feature-icon-wrapper { 
	width: 4rem; height: 4rem; border-radius: 50%; background: var(--brand-green); 
	color: white; display: flex; align-items: center; justify-content: center; 
	margin: 0 auto 1rem auto;
}
.feature-title { font-weight: 600; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--text-muted); }

.step-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .step-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card { display: flex; gap: 1rem; }
.step-number { 
	width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 50%; 
	background: var(--brand-green); color: white; display: flex; 
	align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem;
}
.step-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #1f2937;}
.step-content p { font-size: 0.875rem; color: var(--text-muted); }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.about-item h3 { font-size: 1.25rem; margin-bottom: 1rem; color: #1f2937; display: flex; align-items: center; gap: 0.5rem;}
.about-item p { font-size: 0.95rem; color: #4b5563; }

.faq-item { margin-bottom: 1.5rem; }
.faq-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: #1f2937; }
.faq-item p { font-size: 0.9rem; color: #4b5563; }

/* --- FOOTER --- */
.footer { background: var(--brand-dark); color: #9ca3af; padding: 3rem 1rem; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: #d1d5db; text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: white; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 1rem;}
.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem;}
.social-icon { width: 2rem; height: 2rem; border-radius: 50%; background: #4b5563; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: 0.2s;}
.social-icon:hover { background: var(--brand-blue); }
