:root {
    --bg: #FAFAFA;
    --text: #1A1A1A;
    --primary: #6366F1;
    --primary-light: #E0E7FF;
    --border: #E5E7EB;
    --nav-bg: #FFFFFF;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --dark-mode-bg: #0F0F0F;
    --light-mode-bg: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

.hero {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.upload-panel, .preview-panel {
    background: var(--nav-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--box-shadow);
}

.upload-panel h2, .preview-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.drop-zone {
    border: 2px dashed #9CA3AF;
    border-radius: var(--radius);
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.drop-zone.dragover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.drop-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

#browseBtn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.mockup-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup {
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.mockup.dark-mode {
    background-color: var(--dark-mode-bg);
    color: white;
}

.mockup.light-mode {
    background-color: var(--light-mode-bg);
    color: black;
}

.mockup-header {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.preview-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup.dark-mode .preview-wrapper {
    background: #27272A;
}

.preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden {
    display: none !important;
}

.contrast-result {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.good-contrast { color: #10B981; }
.poor-contrast { color: #EF4444; }

.color-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.swatch-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.swatch {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #000;
}

.content-section {
    background: var(--nav-bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.content-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #374151;
}

.faq-item {
    margin-bottom: 1.5rem;
}

footer {
    text-align: center;
    padding: 3rem 0;
    color: #6B7280;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #6B7280;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

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



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
