@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #0b0b0d;
  --color-bg-2: #26262b;
  --color-surface: #ffffff;
  --color-surface-soft: #f6f7f9;
  --color-text: #14181f;
  --color-text-muted: #626c7a;
  --color-border: #e4e7ee;
  --color-brand: #ff7a18;
  --color-brand-hover: #ffc107;
  --color-brand-soft: #fff2e4;
  --color-on-brand: #ffffff;
  --color-glow-1: #ff7a18;
  --color-glow-2: #ffd23f;
  --gradient-brand: linear-gradient(135deg, #ff5f0f 0%, #ff9d2e 100%);
  --gradient-brand-hover: linear-gradient(135deg, #ff7a18 0%, #ffd23f 100%);
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --maxw: 860px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, .45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    padding: 0px;
}

/* Default body styling — BrandLAB dark gradient stage */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: linear-gradient(180deg, #0b0b0d 0%, #26262b 70%, #141417 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  color: var(--color-text);
  height: 100%;
  position: relative;
  z-index: 0;
}

/* Warm bottom glow (design.md .glow) via pseudo — no HTML structure change */
body::before {
  content: "";
  position: fixed;
  left: 50%;
  bottom: -260px;
  transform: translateX(-50%);
  width: min(1200px, 160vw);
  height: 520px;
  background:
    radial-gradient(ellipse at center, rgba(255, 210, 63, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at center, rgba(255, 122, 24, 0.4) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center;
  margin: 36px 0 0px 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: var(--radius-lg);
  padding: 15px 25px;
  border: none;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: static;
  z-index: 1;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.title {
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-weight: 400;
}

/* White content cards — BrandLAB signature orange border */
#glassdiv {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--color-brand);
  outline: none;
  box-shadow: var(--shadow-md);
  padding: 26px;
  position: relative;
  z-index: 1;
}

#glassdivback {
    background: #ffffff00;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0px solid var(--color-brand);
    outline: none;
    box-shadow: var(--shadow-md);
    padding: 26px;
    position: relative;
    z-index: 1;
}

#glassdiv::before {
  display: none;
}


.container {
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.h1 {
    font-size: clamp(1.55rem, 3.2vw, 2.05rem);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-shadow: none;
    color: #ffffff;
}

.header p {
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.75);
}

.back-btn2 {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: transparent !important;
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 600;
}

.back-btn {
    position: absolute;
    top: 80px;
    left: 20px;
    background: transparent;
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 600;
    font-family: var(--font-body);
}

.back-btn:hover {
    background: transparent;
    border-color: var(--color-brand-hover);
    color: #b26a00;
}

/* Upload Page Styles */
.upload-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    backdrop-filter: none;
    border: 1px solid var(--color-brand);
}

.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
    background: var(--color-surface-soft);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
    transform: none;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--color-brand);
}

.upload-area p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.upload-btn {
    background: var(--gradient-brand);
    color: var(--color-on-brand);
    border: none;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.15s ease;
}

.upload-btn:hover {
    background: var(--gradient-brand-hover);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.file-info {
    margin-top: 30px;
    text-align: center;
}

.file-preview {
    background: var(--color-surface-soft);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.file-details h3 {
    color: var(--color-text);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.05rem;
}

.file-details p {
    color: var(--color-text-muted);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.next-btn {
    background: var(--gradient-brand);
    color: var(--color-on-brand);
    border: none;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.15s ease;
}

.next-btn:hover {
    background: var(--gradient-brand-hover);
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Editor Page Styles */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: auto;
}

.color-palette-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    backdrop-filter: none;
    overflow-y: auto;
    border: 1px solid var(--color-brand);
}

.preview-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-container, .download-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    backdrop-filter: none;
    border: 1px solid var(--color-brand);
}

.preview-container {
    flex: 1;
}

.color-palette-section h2, .preview-container h2, .download-container h2 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.color-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.color-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.15s ease;
}

.color-item:hover {
    border-color: var(--color-brand);
    box-shadow: none;
    background: var(--color-brand-soft);
}

.color-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.color-label {
    font-weight: 600;
    color: var(--color-text);
}

.reset-btn {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-text-muted);
}

.color-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.15s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.current {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.color-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.color-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input {
    width: 60px;
    height: 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.done-btn {
    background: var(--gradient-brand);
    color: var(--color-on-brand);
    border: none;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
}

.svg-preview {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.svg-preview svg {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.download-btn {
    background: var(--gradient-brand);
    color: var(--color-on-brand);
    border: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    width: 100%;
    transition: all 0.15s ease;
}

.download-btn:hover {
    background: var(--gradient-brand-hover);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.45;
}

@media (max-width: 768px) {
    .editor-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .header h1,
    .title {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }
    
    .upload-area {
        padding: 40px 20px;
    }
}

.custom-header {
  position: sticky;
  top: 0;
  background: rgba(18, 18, 21, 0.92);
  z-index: 1000;
  font-family: var(--font-body);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: var(--maxw);
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.offer-text {
  color: #FFC107;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}


@media (max-width: 768px) {
  .editor-layout {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    height: auto;
  }

  .editor-layout > :first-child {
    order: 2;
  }

  .editor-layout > :last-child {
    order: 1;
  }

  .header h1,
  .title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .upload-area {
    padding: 40px 20px;
  }

  .container {
    padding: 20px 16px;
  }
}

@media (max-width: 768px) {
  .svg-preview {
    height: 180px;
  }
}

/* ——— SEO / content / footer (BrandLab) ——— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: 8px 14px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumbs {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0;
  margin: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  opacity: 0.5;
}
.breadcrumbs a {
  color: #ffc107;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.suite-line a,
.suite-tagline a {
  color: #ffc107;
  text-decoration: underline;
}
.suite-tagline {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ff9d2e;
  margin: 8px 0 24px;
}

.hero .eyebrow {
  color: #ffc107;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-compact {
  margin-bottom: 28px;
}
.hero-compact .back-btn {
  position: static;
  margin-top: 16px;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
}
.trust-row li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
}

.card-surface,
.content-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-brand);
  box-shadow: var(--shadow-md);
  padding: 26px;
  margin-top: 28px;
  color: var(--color-text);
  line-height: 1.55;
}
.content-card h2 {
  color: var(--color-text);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.content-card h3 {
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.content-card p,
.content-card li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.content-card a {
  color: var(--color-brand);
  font-weight: 600;
}
.content-card code {
  font-size: 0.88em;
  background: var(--color-surface-soft);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--color-text);
}

.upload-meta {
  margin-top: -8px !important;
  font-size: 0.85rem !important;
}
.privacy-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.steps-list {
  padding-left: 20px;
  margin: 0;
}
.steps-list li {
  margin-bottom: 12px;
}
.steps-list strong {
  color: var(--color-text);
}

.feature-list {
  padding-left: 20px;
  margin: 12px 0 0;
}
.feature-list.compact li {
  margin-bottom: 8px;
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid li {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 15px;
}

.audience-list {
  padding-left: 20px;
  margin: 0;
}
.audience-list li {
  margin-bottom: 8px;
}

.faq-list details {
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
}
.faq-list details:first-child {
  border-top: none;
  padding-top: 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.98rem;
}
.faq-list details p {
  margin: 8px 0 0;
}

.related-tools {
  padding-left: 20px;
  margin: 8px 0 0;
}
.related-tools li {
  margin-bottom: 8px;
}

.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.15s ease;
}
.btn-link.primary {
  background: var(--gradient-brand);
  color: #fff !important;
}
.btn-link.primary:hover {
  background: var(--gradient-brand-hover);
}
.btn-link.ghost {
  background: transparent;
  border: 1px solid var(--color-brand);
  color: var(--color-brand) !important;
}
.btn-link.ghost:hover {
  border-color: var(--color-brand-hover);
  color: #b26a00 !important;
}

.panel-help {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.editor-tips {
  margin-top: 32px;
}

.site-footer {
  margin-top: 48px;
  background: rgba(18, 18, 21, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 18px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 22px;
}
.footer-title,
.site-footer h3 {
  color: #ffc107;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.footer-title {
  font-size: 1.05rem;
}
.site-footer p,
.site-footer li {
  font-size: 0.88rem;
  line-height: 1.5;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 6px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: #ffc107;
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-legal {
  opacity: 0.7;
  font-size: 0.8rem !important;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .logo-container {
    margin-top: 40px;
  }
}

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