/* ============================================================
   Clean Images Studio — main.css
   Production Design System v3.0
   White background · Dark text · Gradient accents from logo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Brand gradient (matches rainbow logo) ── */
  --g-brand:  linear-gradient(135deg, #FF8C00 0%, #e040fb 60%, #17C8FF 100%);
  --g-text:   linear-gradient(90deg, #FF8C00, #e040fb, #17C8FF);
  --g-subtle: linear-gradient(135deg, #fff7ed 0%, #fdf4ff 50%, #eff6ff 100%);

  /* ── Neutrals — pure, never ambiguous ── */
  --white:   #ffffff;
  --gray-50: #f8f9fb;
  --gray-100:#f1f3f5;
  --gray-200:#e5e7eb;
  --gray-300:#d1d5db;
  --gray-400:#9ca3af;
  --gray-500:#6b7280;
  --gray-600:#4b5563;
  --gray-700:#374151;
  --gray-800:#1f2937;
  --gray-900:#111827;

  /* ── Semantic ── */
  --bg:          var(--white);
  --bg-page:     var(--gray-50);
  --bg-dark:     var(--gray-900);
  --border:      var(--gray-200);
  --border-md:   var(--gray-300);

  /* ── Text — always on light bg ── */
  --t-heading:  var(--gray-900);   /* #111827 — near black */
  --t-body:     var(--gray-600);   /* #4b5563 — readable grey */
  --t-muted:    var(--gray-400);   /* #9ca3af — hints */

  /* ── On dark backgrounds ── */
  --t-dark-heading: #ffffff;
  --t-dark-body:    #9ca3af;

  /* ── Accent colours ── */
  --orange:     #FF8C00;
  --orange-bg:  #fff7ed;
  --orange-bd:  #fed7aa;
  --green:      #16a34a;
  --green-bg:   #f0fdf4;
  --green-bd:   #bbf7d0;
  --blue:       #2563eb;
  --blue-bg:    #eff6ff;
  --blue-bd:    #bfdbfe;

  /* ── Font ── */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Spacing ── */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px;
  --sp-5:20px; --sp-6:24px; --sp-8:32px; --sp-10:40px;
  --sp-12:48px; --sp-14:56px; --sp-16:64px; --sp-20:80px;

  /* ── Radius ── */
  --r-sm:6px; --r-md:10px; --r-lg:14px; --r-xl:20px; --r-pill:999px;

  /* ── Shadows — subtle, clean ── */
  --s-xs: 0 1px 2px rgba(0,0,0,.06);
  --s-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --s-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --s-lg: 0 8px 24px rgba(0,0,0,.09), 0 3px 8px rgba(0,0,0,.04);
  --s-xl: 0 16px 40px rgba(0,0,0,.10), 0 6px 12px rgba(0,0,0,.04);

  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  .17s;
  --max-w: 1160px;
  --header-h: 60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--t-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); background: none; border: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width:640px) { .container { padding: 0 var(--sp-4); } }

/* ================================================================
   HEADER
================================================================ */
#cis-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--s-xs);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--sp-4);
}

/* Logo */
.cis-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.cis-logo img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.cis-logo-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--t-heading);
  letter-spacing: -.2px;
  line-height: 1.2;
}
.cis-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.cis-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.cis-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.cis-nav a:hover  { color: var(--t-heading); background: var(--gray-100); }
.cis-nav a.active { color: var(--t-heading); background: var(--gray-100); font-weight: 600; }

/* CTA btn in nav */
.nav-cta { flex-shrink: 0; }

/* Hamburger */
.cis-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-md);
  background: var(--white);
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease);
}
.cis-hamburger:hover { border-color: var(--gray-400); }
.cis-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.cis-hamburger.open { border-color: var(--orange); }
.cis-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--orange); }
.cis-hamburger.open span:nth-child(2) { opacity: 0; }
.cis-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--orange); }

/* Mobile drawer */
.cis-mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--s-lg);
  z-index: 199;
  padding: var(--sp-3) var(--sp-4) var(--sp-5);
  flex-direction: column;
  gap: 2px;
}
.cis-mobile-nav.open { display: flex; }
.cis-mobile-nav a {
  font-size: 15px; font-weight: 500;
  color: var(--gray-600);
  padding: 11px var(--sp-4);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
  display: block;
}
.cis-mobile-nav a:hover  { color: var(--t-heading); background: var(--gray-100); }
.cis-mobile-nav a.active { color: var(--t-heading); background: var(--gray-100); font-weight: 600; }
.cis-mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-2) 0; }
.cis-mobile-nav .mob-cta { margin-top: var(--sp-2); }

@media (max-width: 860px) {
  .cis-nav, .nav-cta { display: none; }
  .cis-hamburger { display: flex; }
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); font-family: var(--font);
  font-weight: 700; border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
  white-space: nowrap; cursor: pointer; border: none;
  line-height: 1;
}

/* Primary — gradient, used on light backgrounds */
.btn-primary {
  background: var(--g-brand);
  color: #fff;
  font-size: 14px; padding: 12px 24px;
  box-shadow: 0 3px 12px rgba(255,140,0,.30);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(224,64,251,.35);
  filter: brightness(1.05);
}
.btn-primary:active { transform: none; filter: brightness(.97); }

/* Primary on dark bg — white button */
.btn-primary-dark {
  background: var(--white);
  color: var(--gray-900);
  font-size: 14px; padding: 12px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.btn-primary-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* Secondary */
.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  font-size: 14px; padding: 11px 22px;
  border: 1.5px solid var(--border-md);
  box-shadow: var(--s-xs);
}
.btn-secondary:hover { border-color: var(--gray-400); background: var(--gray-50); }

/* Ghost on dark */
.btn-ghost-dark {
  background: transparent;
  color: var(--gray-300);
  font-size: 14px; padding: 11px 22px;
  border: 1.5px solid var(--gray-700);
  border-radius: var(--r-pill);
}
.btn-ghost-dark:hover { border-color: var(--gray-500); color: var(--white); }

/* Sizes */
.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn-lg { font-size: 15px; padding: 14px 30px; }
.btn-xl { font-size: 16px; padding: 16px 34px; }
.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   CARDS
================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--s-sm);
  transition: box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--border-md);
  box-shadow: var(--s-lg);
  transform: translateY(-2px);
}

/* ================================================================
   BADGES
================================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--r-pill);
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-green  { background: var(--green-bg); color: var(--green);  border: 1px solid var(--green-bd); }
.badge-orange { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-bd); }
.badge-blue   { background: var(--blue-bg);  color: var(--blue);   border: 1px solid var(--blue-bd); }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--border); }

/* ================================================================
   UPLOAD ZONE
================================================================ */
.upload-zone {
  border: 2px dashed var(--border-md);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-8);
  text-align: center; cursor: pointer;
  background: var(--white);
  position: relative;
  transition: all var(--dur) var(--ease);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--orange);
  background: var(--orange-bg);
  box-shadow: 0 0 0 4px rgba(255,140,0,.08);
}
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone h3 { font-size: 18px; font-weight: 700; color: var(--t-heading); margin-bottom: var(--sp-2); }
.upload-zone p  { font-size: 14px; color: var(--t-muted); }

/* ================================================================
   FAQ ACCORDION
================================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item.open { border-color: var(--border-md); box-shadow: var(--s-sm); }
.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6); text-align: left;
  font-size: 15px; font-weight: 600; color: var(--t-heading);
  background: none; border: none; cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq-question:hover { color: var(--orange); }
.faq-item.open .faq-question { color: var(--orange); }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--gray-400);
  transition: all var(--dur) var(--ease); line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--orange); border-color: var(--orange);
  color: var(--white); transform: rotate(45deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  padding: 0 var(--sp-6);
  font-size: 14px; line-height: 1.75; color: var(--t-body);
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: var(--sp-5); }

/* ================================================================
   BREADCRUMB
================================================================ */
.cis-breadcrumb { padding: var(--sp-4) 0; }
.cis-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-1); font-size: 13px; color: var(--t-muted);
}
.cis-breadcrumb ol li { display: flex; align-items: center; gap: var(--sp-1); }
.cis-breadcrumb ol li a { transition: color var(--dur) var(--ease); }
.cis-breadcrumb ol li a:hover { color: var(--orange); }
.cis-breadcrumb ol li.active { color: var(--t-body); font-weight: 500; }
.cis-breadcrumb ol li + li::before { content: '/'; opacity: .3; }

/* ================================================================
   FOOTER
================================================================ */
#cis-footer {
  background: var(--gray-900);
  padding: var(--sp-16) 0 var(--sp-10);
  margin-top: var(--sp-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .cis-logo-text { color: var(--white); }
.footer-brand p { font-size: 14px; color: var(--gray-400); margin-top: var(--sp-4); max-width: 240px; line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col ul a { font-size: 14px; color: var(--gray-500); transition: color var(--dur) var(--ease); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-6); flex-wrap: wrap; gap: var(--sp-4);
}
.footer-bottom p { font-size: 13px; color: var(--gray-500); }
.footer-links { display: flex; gap: var(--sp-6); }
.footer-links a { font-size: 13px; color: var(--gray-500); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--white); }

/* ================================================================
   PROGRESS BAR
================================================================ */
.progress-bar { height: 4px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--g-brand); border-radius: 4px; transition: width .4s var(--ease); }

/* ================================================================
   TOAST
================================================================ */
#cis-toast-container {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6);
  z-index: 9999; display: flex; flex-direction: column; gap: var(--sp-2);
}
.cis-toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px var(--sp-4); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 14px; color: var(--t-heading); box-shadow: var(--s-xl);
  max-width: 320px; animation: toastIn .25s var(--ease);
}
.cis-toast.success { border-left: 3px solid var(--green); }
.cis-toast.error   { border-left: 3px solid #dc2626; }
.cis-toast.info    { border-left: 3px solid var(--blue); }
@keyframes toastIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ================================================================
   UTILITIES
================================================================ */
.section    { padding: var(--sp-16) 0; }
.section-sm { padding: var(--sp-10) 0; }
.text-center { text-align: center; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--orange);
}
.h1 { font-size: clamp(36px,5.5vw,58px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--t-heading); }
.h2 { font-size: clamp(24px,3.5vw,34px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; color: var(--t-heading); }
.h3 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--t-heading); }
.h4 { font-size: 15px; font-weight: 700; color: var(--t-heading); }
.lead { font-size: 18px; line-height: 1.65; color: var(--t-body); }
.text-grad {
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider { border: none; border-top: 1px solid var(--border); }

/* ad slot */
.ad-slot { overflow: hidden; line-height: 0; font-size: 0; margin: var(--sp-6) 0; }

/* skip link */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  background: var(--orange); color: #fff; font-weight: 700;
  padding: 8px 16px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 9999; font-size: 14px; transition: top .15s;
}
.skip-link:focus { top: 0; }

/* grid */
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--sp-4); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
