/* ============================================================
   XML SITEMAP GENERATOR — STYLESHEET
   Brand: Purple #5A2DBE · Orange #F9A11B
   Bilingual: EN / SW (server-rendered)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --purple: #5A2DBE;
  --purple-deep: #3B1C82;
  --purple-light: #7C4FE0;
  --orange: #F9A11B;
  --orange-soft: #FFC469;
  --gray: #48474C;
  --gray-soft: #6B6A75;
  --gray-line: rgba(72, 71, 76, 0.12);
  --black: #0F0E14;
  --white: #FFFFFF;
  --paper: #FAFAFC;
  --paper-alt: #F3F2F8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(15, 14, 20, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 14, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(59, 28, 130, 0.08);
  --shadow-lg: 0 24px 60px rgba(59, 28, 130, 0.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1140px;
  --gutter: 24px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::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(--white);
  color: var(--gray);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: var(--purple-deep);
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--gray-line);
}
.section.plain { border-top: none; }
.section.alt { background: var(--paper); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--gray-soft);
  line-height: 1.65;
}

/* ============================================================
   4. NAVBAR
   ============================================================ */
/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--gray-line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px var(--gutter);
  min-height: 78px;
  transition: min-height 0.2s var(--ease);
}

/* ---------- Brand / Logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--black);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease);
  max-width: 60%;
  line-height: 0;
}
.brand:hover { opacity: 0.88; color: var(--black); }

.brand-logo {
  height: 70px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.03); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(90, 45, 190, 0.25);
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }

/* ---------- Nav Links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover {
  background: var(--paper-alt);
  color: var(--purple);
}
.nav-links a.active {
  color: var(--purple);
  background: rgba(90, 45, 190, 0.07);
}

/* ---------- Nav Right ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* ============================================================
   5. LANGUAGE VISIBILITY
   Only ONE language shown at a time based on body[data-lang]
   ============================================================ */
[data-lang-sw] { display: none !important; }

body[data-lang="en"] [data-lang-en] { display: inline !important; }
body[data-lang="en"] [data-lang-sw] { display: none !important; }

body[data-lang="sw"] [data-lang-en] { display: none !important; }
body[data-lang="sw"] [data-lang-sw] { display: inline !important; }

/* Block-level elements stay block */
body[data-lang="en"] h1[data-lang-en],
body[data-lang="en"] h2[data-lang-en],
body[data-lang="en"] h3[data-lang-en],
body[data-lang="en"] h4[data-lang-en],
body[data-lang="en"] p[data-lang-en],
body[data-lang="en"] li[data-lang-en],
body[data-lang="en"] div[data-lang-en] { display: block !important; }

body[data-lang="sw"] h1[data-lang-sw],
body[data-lang="sw"] h2[data-lang-sw],
body[data-lang="sw"] h3[data-lang-sw],
body[data-lang="sw"] h4[data-lang-sw],
body[data-lang="sw"] p[data-lang-sw],
body[data-lang="sw"] li[data-lang-sw],
body[data-lang="sw"] div[data-lang-sw] { display: block !important; }

/* Inline elements stay inline */
body[data-lang="en"] span[data-lang-en],
body[data-lang="en"] a[data-lang-en],
body[data-lang="en"] strong[data-lang-en] { display: inline !important; }

body[data-lang="sw"] span[data-lang-sw],
body[data-lang="sw"] a[data-lang-sw],
body[data-lang="sw"] strong[data-lang-sw] { display: inline !important; }

/* ============================================================
   6. LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--paper-alt);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--gray-line);
}
.lang-toggle a {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--gray-soft);
  transition: all 0.2s var(--ease);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}
.lang-toggle a:hover {
  color: var(--purple);
  background: transparent;
}
.lang-toggle a.active {
  background: white;
  color: var(--purple);
  box-shadow: var(--shadow-xs);
  pointer-events: none;
}

/* ============================================================
   7. NAV CTA
   ============================================================ */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: white !important;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--purple);
  transform: translateY(-1px);
  color: white !important;
}
/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--gray-line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px var(--gutter);
  min-height: 78px;
  transition: min-height 0.2s var(--ease);
}

/* ---------- Brand / Logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--black);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease);
  max-width: 60%;
  line-height: 0;
}
.brand:hover { opacity: 0.88; color: var(--black); }

.brand-logo {
  height: 70px;                     /* ← DESKTOP: 70px */
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.03); }

/* ---------- Nav Links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover {
  background: var(--paper-alt);
  color: var(--purple);
}
.nav-links a.active {
  color: var(--purple);
  background: rgba(90, 45, 190, 0.07);
}

/* ---------- Nav Right ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================
   8. MOBILE MENU TOGGLE
   ============================================================ */
.menu-toggle {
  display: none !important;
  visibility: hidden;
  background: none;
  border: none;
  padding: 8px;
  color: var(--black);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}
.menu-toggle:hover { background: var(--paper-alt); }

/* ============================================================
   9. NAVBAR RESPONSIVE
   ============================================================ */

/* ---------- Large tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .brand-logo { height: 64px; }
  .nav-inner { min-height: 72px; }
}

/* ---------- Tablet (≤ 960px) ---------- */
@media (max-width: 960px) {
  .brand { max-width: 55%; }
  .brand-logo { height: 60px; }     /* ← TABLET: 60px */
  .nav-inner {
    padding: 4px var(--gutter);
    min-height: 68px;
  }

  .nav-links { display: none; }
  .menu-toggle { display: block !important; visibility: visible; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 14px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-line);
    box-shadow: var(--shadow-md);
    align-items: stretch;
    z-index: 99;
  }
  .nav-links.open a {
    padding: 12px 14px;
    display: block;
  }
}

/* ---------- Mobile L (≤ 640px) ---------- */
@media (max-width: 640px) {
  .brand { max-width: 55%; }
  .brand-logo { height: 52px; }     /* ← MOBILE L: 52px */
  .nav-inner {
    padding: 4px var(--gutter);
    min-height: 60px;
  }
}

/* ---------- Mobile M (≤ 480px) ---------- */
@media (max-width: 480px) {
  .brand { max-width: 55%; }
  .brand-logo { height: 48px; }     /* ← MOBILE M: 48px */
  .nav-inner {
    padding: 4px var(--gutter);
    min-height: 56px;
  }
  .nav-cta { display: none; }
}

/* ---------- Small phone (≤ 400px) ---------- */
@media (max-width: 400px) {
  .brand { max-width: 55%; }
  .brand-logo { height: 44px; }     /* ← SMALL: 44px */
  .nav-inner {
    padding: 4px 14px;
    min-height: 52px;
  }
}

/* ---------- Tiny phone (≤ 360px) ---------- */
@media (max-width: 360px) {
  .brand-logo { height: 40px; }     /* ← TINY: 40px */
  .nav-inner { min-height: 48px; }
}
/* ============================================================
   10. HERO
   ============================================================ */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 79, 224, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--gray-line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-soft);
  margin-bottom: 26px;
  box-shadow: var(--shadow-xs);
}
.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(249, 161, 27, 0.5);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(249, 161, 27, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(249, 161, 27, 0); }
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-soft);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* ============================================================
   11. GENERATOR FORM
   ============================================================ */
.generator {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow-md);
  transition: all 0.25s var(--ease);
}
.generator:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 79, 224, 0.12), var(--shadow-md);
}

.gen-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.gen-input {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.gen-input .prefix {
  position: absolute;
  left: 18px;
  color: var(--gray-soft);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

#url {
  width: 100%;
  padding: 16px 18px 16px 130px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
}
#url::placeholder { color: #B5B4BC; }

#submit {
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: var(--black);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
#submit:hover:not(:disabled) { background: var(--purple); }
#submit:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
#submit.loading .spinner { display: block; }

@media (max-width: 640px) {
  .gen-row { flex-direction: column; }
  #url { padding-left: 18px; }
  .gen-input .prefix { display: none; }
  #submit { justify-content: center; }
}

.hero-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--gray-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================================
   12. STATUS + RESULT PANEL
   ============================================================ */
#status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}
#status.error { color: #D14343; }
#status.success { color: var(--purple); }

.result-panel {
  display: none;
  margin-top: 26px;
  text-align: left;
  animation: fadeIn 0.4s var(--ease);
}
.result-panel.visible { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.result-title {
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.result-title .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.url-count {
  font-size: 0.78rem;
  color: var(--purple);
  background: rgba(90, 45, 190, 0.08);
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 600;
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-line);
  background: white;
  color: var(--gray);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.btn.primary {
  background: var(--black);
  color: white;
  border-color: var(--black);
}
.btn.primary:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

pre#preview {
  background: #0F0E14;
  color: #D4CDF0;
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.6;
  font-family: var(--mono);
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre#preview::-webkit-scrollbar { width: 8px; height: 8px; }
pre#preview::-webkit-scrollbar-track { background: #17151F; }
pre#preview::-webkit-scrollbar-thumb {
  background: #3a3450;
  border-radius: 4px;
}

/* ============================================================
   13. CODE PREVIEW CARD
   ============================================================ */
.code-card {
  max-width: 640px;
  margin: 60px auto 0;
  background: #0F0E14;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #1F1C29;
  text-align: left;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #17151F;
  border-bottom: 1px solid #1F1C29;
}
.code-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-head .dot.r { background: #FF5F57; }
.code-head .dot.y { background: #FEBC2E; }
.code-head .dot.g { background: #28C840; }
.code-head .file {
  margin-left: 12px;
  font-size: 0.78rem;
  color: #8A82A8;
  font-family: var(--mono);
}
.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #D4CDF0;
  overflow-x: auto;
  white-space: pre;
}
.code-body .tag { color: #7C4FE0; }
.code-body .str { color: #F9A11B; }
.code-body .attr { color: #B5A9E0; }

.code-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-soft);
  margin-top: 16px;
  font-style: italic;
}

/* ============================================================
   14. GRID SYSTEM
   ============================================================ */
.grid {
  display: grid;
  gap: 20px;
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============================================================
   15. CARDS
   ============================================================ */
.card {
  background: white;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: all 0.25s var(--ease);
}
.card:hover {
  border-color: rgba(90, 45, 190, 0.22);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(90, 45, 190, 0.08);
  color: var(--purple);
}
.card-icon.orange {
  background: rgba(249, 161, 27, 0.13);
  color: #C97A00;
}
.card-icon.deep {
  background: rgba(59, 28, 130, 0.1);
  color: var(--purple-deep);
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.92rem;
  color: var(--gray-soft);
  line-height: 1.65;
}

/* ============================================================
   16. STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}
.step {
  background: white;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all 0.25s var(--ease);
}
.step:hover {
  border-color: rgba(90, 45, 190, 0.22);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: white;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.9rem;
  color: var(--gray-soft);
}

/* ============================================================
   17. GUIDE PAGE
   ============================================================ */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.guide-step {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: white;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease);
}
.guide-step:hover {
  border-color: rgba(90, 45, 190, 0.22);
  box-shadow: var(--shadow-md);
}
.guide-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(90, 45, 190, 0.25);
}
.guide-body { flex: 1; min-width: 0; }
.guide-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.guide-body p {
  font-size: 0.94rem;
  color: var(--gray-soft);
  margin-bottom: 12px;
  line-height: 1.7;
}
.guide-body code {
  background: var(--paper-alt);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--purple);
  border: 1px solid var(--gray-line);
}
.guide-body ul {
  margin: 10px 0 0 20px;
  font-size: 0.92rem;
  color: var(--gray-soft);
}
.guide-body li {
  margin-bottom: 6px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .guide-step { flex-direction: column; gap: 16px; padding: 22px; }
}

/* ============================================================
   18. PRICING
   ============================================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  background: white;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
  position: relative;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), var(--shadow-lg);
}
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.price-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.price-tag {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
  line-height: 1;
}
.price-tag span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-soft);
  letter-spacing: 0;
}
.price-desc {
  font-size: 0.88rem;
  color: var(--gray-soft);
  margin: 6px 0 24px;
}
.price-features {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
  padding: 0;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  padding: 7px 0;
  color: var(--gray);
  line-height: 1.5;
}
.price-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--purple);
}
.price-cta {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--gray-line);
  background: white;
  color: var(--black);
  transition: all 0.2s var(--ease);
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  display: block;
}
.price-cta:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.price-cta.primary {
  background: var(--black);
  color: white;
  border-color: var(--black);
}
.price-cta.primary:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-soft);
  margin-top: 26px;
  font-style: italic;
}

/* ============================================================
   19. USE CASES
   ============================================================ */
.usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.usecase {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--gray-line);
  transition: all 0.25s var(--ease);
}
.usecase:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.usecase h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.usecase p {
  font-size: 0.9rem;
  color: var(--gray-soft);
}

/* ============================================================
   20. FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-line);
}
.faq-item:first-child {
  border-top: 1px solid var(--gray-line);
}
.faq-q {
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--purple); }
.faq-q .toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  transition: all 0.3s var(--ease);
}
.faq-item.open .faq-q .toggle {
  background: var(--purple);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 600px;
}
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 0.95rem;
  color: var(--gray-soft);
  line-height: 1.75;
  max-width: 90%;
}

/* ============================================================
   21. CTA BLOCK
   ============================================================ */
.cta {
  background: var(--black);
  color: white;
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  margin: 60px auto;
  max-width: var(--container);
  position: relative;
  overflow: hidden;
  width: calc(100% - 2 * var(--gutter));
}
.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 79, 224, 0.4), transparent 65%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 161, 27, 0.25), transparent 65%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
}
.cta p {
  font-size: 1.05rem;
  color: #B5B1C9;
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
}
.cta .btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
  padding: 15px 30px;
  font-size: 0.98rem;
  position: relative;
}
.cta .btn.primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  color: var(--black);
}

@media (max-width: 640px) {
  .cta {
    padding: 50px 24px;
    margin: 40px auto;
    width: calc(100% - 32px);
  }
}

/* ============================================================
   22. CONTENT PAGES (About, Privacy, Terms, FAQ, Guide)
   ============================================================ */
.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px var(--gutter) 90px;
  width: 100%;
}
.content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.content .updated {
  font-size: 0.82rem;
  color: var(--gray-soft);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-line);
}
.content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin: 38px 0 14px;
  letter-spacing: -0.015em;
}
.content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin: 24px 0 10px;
}
.content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}
.content ul,
.content ol {
  margin: 16px 0 20px 22px;
}
.content li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 0.98rem;
}
.content code {
  background: var(--paper-alt);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--purple);
  border: 1px solid var(--gray-line);
}

.callout {
  background: linear-gradient(135deg, rgba(90, 45, 190, 0.05), rgba(249, 161, 27, 0.05));
  border-left: 3px solid var(--orange);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.callout p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ============================================================
   23. FOOTER
   ============================================================ */
footer {
  margin-top: 80px;
  background: transparent;
}

/* ---------- Main footer (dark) ---------- */
.footer-main {
  background: var(--black);
  color: #8A86A0;
  padding: 70px 0 60px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 12px;
  background: white;
  margin-bottom: 18px;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.footer-logo-link:hover { transform: scale(1.04); }

.footer-logo {
  height: 32px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #8A86A0;
  max-width: 340px;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.footer-col a {
  color: #8A86A0;
  font-size: 0.88rem;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  text-decoration: none;
  display: inline-block;
  position: relative;
}
.footer-col a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.25s var(--ease);
  transform: translateY(-50%);
}
.footer-col a:hover {
  color: var(--orange-soft);
  padding-left: 12px;
}
.footer-col a:hover::before { width: 8px; }

/* ---------- Sub-footer (light) ---------- */
.footer-sub {
  background: var(--paper-alt);
  border-top: 1px solid var(--gray-line);
  padding: 24px 0;
}

.footer-sub-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-copy {
  letter-spacing: 0.02em;
  color: var(--gray-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--gray-line);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.footer-credit-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
              rgba(249, 161, 27, 0.12) 0%,
              rgba(124, 79, 224, 0.10) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 0;
}
.footer-credit-link:hover::before { opacity: 1; }
.footer-credit-link:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(249, 161, 27, 0.22);
}

.footer-credit-text {
  position: relative;
  z-index: 1;
  color: var(--gray-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
}
.footer-credit-link:hover .footer-credit-text {
  color: var(--purple-deep);
}

.footer-credit-logo {
  position: relative;
  z-index: 1;
  width: 140px;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.footer-credit-link:hover .footer-credit-logo {
  transform: scale(1.04);
}

/* ---------- Footer Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 640px) {
  .footer-main { padding: 50px 0 40px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .footer-col h4 {
    font-size: 0.78rem;
    margin-bottom: 14px;
  }
  .footer-col a { font-size: 0.84rem; }

  .footer-logo { height: 28px; }

  .footer-sub { padding: 20px 0; }
  .footer-sub-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-credit-link {
    padding: 10px 14px;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
  }
  .footer-credit-text {
    text-align: left;
    font-size: 0.72rem;
    white-space: normal;
  }
  .footer-credit-logo {
    width: 100px;
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   24. UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ============================================================
   25. GLOBAL SAFETY — Prevent content touching edges
   ============================================================ */
main {
  width: 100%;
  overflow-x: hidden;
}

.section > *:not(.container) {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section > *:not(.container) {
    padding-left: 18px;
    padding-right: 18px;
  }
  .content { padding: 50px 18px 70px; }
}

@media (max-width: 400px) {
  :root { --gutter: 14px; }
  .section > *:not(.container) {
    padding-left: 14px;
    padding-right: 14px;
  }
  .content { padding: 40px 14px 60px; }
}

/* ============================================================
   26. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   27. CONTACT FORM — Complete styles
   ============================================================ */
/* ============================================================
   27. CONTACT FORM — Complete styles
   ============================================================ */

/* ---------- Form Container ---------- */
.contact-form {
  margin: 24px 0 48px;
  padding: 32px;
  background: white;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ---------- Form Rows ---------- */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* ---------- Form Groups ---------- */
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* ---------- Labels ---------- */
.contact-form .form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  display: block;
  line-height: 1.4;
}

/* ---------- Inputs / Selects / Textareas ---------- */
.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--black);
  background: var(--paper);
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s var(--ease);
  box-sizing: border-box;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- Placeholders ---------- */
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: #B5B4BC;
  opacity: 1;
}

/* ---------- Focus State ---------- */
.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  background: white;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 79, 224, 0.12);
}

/* ---------- Textarea ---------- */
.contact-form .form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* ---------- Select Dropdown (with custom arrow) ---------- */
.contact-form .form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348474C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}

/* ---------- Checkbox Group ---------- */
.contact-form .checkbox-group {
  margin: 20px 0;
}

.contact-form .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-soft);
  cursor: pointer;
  line-height: 1.5;
}

.contact-form .checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

.contact-form .checkbox-group a {
  color: var(--purple);
  text-decoration: underline;
  font-weight: 600;
}

.contact-form .checkbox-group a:hover {
  color: var(--purple-deep);
}

/* ---------- Submit Button ---------- */
.contact-form .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  background: var(--black);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.contact-form .btn-submit:hover:not(:disabled) {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(90, 45, 190, 0.3);
}

.contact-form .btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.contact-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form .btn-submit svg {
  flex-shrink: 0;
}

/* ---------- Form Status Message ---------- */
.contact-form #formStatus {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  min-height: 20px;
  transition: color 0.2s var(--ease);
}

.contact-form #formStatus.success { color: #1B9E4D; }
.contact-form #formStatus.error   { color: #D14343; }

/* ============================================================
   CONTACT FORM — Responsive
   ============================================================ */

/* ---------- Tablet & below (≤ 768px) — Single column ---------- */
@media (max-width: 768px) {
  .contact-form {
    padding: 24px;
    margin: 20px 0 40px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
}

/* ---------- Small mobile (≤ 480px) — Compact ---------- */
@media (max-width: 480px) {
  .contact-form {
    padding: 18px;
    border-radius: var(--radius-md);
    margin: 16px 0 32px;
  }

  .contact-form .form-group {
    gap: 6px;
  }

  .contact-form .form-group label {
    font-size: 0.84rem;
  }

  .contact-form .form-group input[type="text"],
  .contact-form .form-group input[type="email"],
  .contact-form .form-group input[type="tel"],
  .contact-form .form-group select,
  .contact-form .form-group textarea {
    padding: 12px 12px;
    font-size: 16px;   /* 🔥 16px inazuia iOS zoom */
    border-radius: var(--radius-sm);
  }

  .contact-form .form-group textarea {
    min-height: 110px;
  }

  .contact-form .checkbox-group {
    margin: 16px 0;
  }

  .contact-form .checkbox-group label {
    font-size: 0.86rem;
    gap: 8px;
  }

  .contact-form .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .contact-form #formStatus {
    font-size: 0.86rem;
    text-align: center;
  }
}

/* ---------- Extra small (≤ 360px) ---------- */
@media (max-width: 360px) {
  .contact-form {
    padding: 14px;
  }

  .contact-form .form-group input[type="text"],
  .contact-form .form-group input[type="email"],
  .contact-form .form-group input[type="tel"],
  .contact-form .form-group select,
  .contact-form .form-group textarea {
    padding: 11px 10px;
    font-size: 16px;
  }
}


/* ============================================================
   29. HOME — "What to do after" section
   ============================================================ */

/* Ensure guide-steps work well on home page too */
.guide-steps {
  max-width: 900px;
  margin: 40px auto 0;
}

/* Callout on home page */
.section .callout {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure CTA button aligns */
.section .btn.primary {
  white-space: nowrap;
}

/* Responsive — mobile */
@media (max-width: 640px) {
  .guide-steps {
    margin-top: 30px;
  }

  .guide-step {
    padding: 20px;
    gap: 14px;
  }

  .guide-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .guide-body h3 {
    font-size: 1rem;
  }

  .guide-body p,
  .guide-body li {
    font-size: 0.9rem;
  }
}

/* ============================================================
   30. FOOTER — Play Store CTA
   ============================================================ */
.play-store-cta {
  margin-top: 20px;
}

.play-cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8A86A0;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.play-store-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.play-store-btn > * {
  position: relative;
  z-index: 1;
}

.play-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(90, 45, 190, 0.4);
  border-color: var(--purple);
  color: #ffffff;
}

.play-store-btn:hover::before {
  opacity: 1;
}

.play-store-btn svg {
  flex-shrink: 0;
  color: #ffffff;
}

.play-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-store-small {
  font-size: 9px;
  color: #B5B4BC;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.play-store-big {
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 1px;
}

/* ============================================================
   31. MODALS — Terms & Privacy
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.modal-overlay.visible .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--gray-line);
  background: var(--paper);
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.01em;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--gray-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
}

.modal-close:hover {
  background: rgba(90, 45, 190, 0.08);
  color: var(--purple);
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  flex: 1;
  color: var(--gray);
  font-size: 0.94rem;
  line-height: 1.7;
}

.modal-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  margin: 10px 0 16px 22px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body code {
  background: var(--paper-alt);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--purple);
  border: 1px solid var(--gray-line);
}

.modal-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--gray-line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--paper);
}

.modal-footer .btn-secondary {
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--gray-line);
  background: white;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
}

.modal-footer .btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(90, 45, 190, 0.04);
}

/* Modal Responsive */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .modal-overlay.visible .modal {
    transform: translateY(0);
  }

  .modal-header {
    padding: 18px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px;
  }
}


/* ============================================================
   32. PAGE LOADER — 3 Rotating Rings + Center Logo
   ============================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Stage — holds rings + logo */
.loader-stage {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base ring styling */
.loader-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Ring 1: Purple (outer) ---------- */
.loader-ring-1 {
  width: 130px;
  height: 130px;
  border-width: 4px;
  border-top-color: var(--purple);
  border-right-color: var(--purple);
  animation: loaderSpin 1.6s linear infinite;
}

/* ---------- Ring 2: Orange (middle) ---------- */
.loader-ring-2 {
  width: 100px;
  height: 100px;
  border-width: 4px;
  border-top-color: var(--orange);
  border-left-color: var(--orange);
  animation: loaderSpinReverse 1.2s linear infinite;
}

/* ---------- Ring 3: Purple light (inner) ---------- */
.loader-ring-3 {
  width: 70px;
  height: 70px;
  border-width: 3px;
  border-bottom-color: var(--purple-light);
  border-right-color: var(--purple-light);
  animation: loaderSpin 0.9s linear infinite;
}

/* Center logo */
.loader-logo {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1),
              0 8px 24px rgba(90, 45, 190, 0.15);
  animation: loaderPulse 2s ease-in-out infinite;
  overflow: hidden;
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Loading text */
.loader-text {
  margin-top: 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-soft);
  letter-spacing: 0.05em;
  animation: loaderFade 2s ease-in-out infinite;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Clockwise */
@keyframes loaderSpin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Counter-clockwise */
@keyframes loaderSpinReverse {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Logo pulse */
@keyframes loaderPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1),
                0 8px 24px rgba(90, 45, 190, 0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 1),
                0 12px 32px rgba(90, 45, 190, 0.28);
  }
}

/* Loading text fade */
@keyframes loaderFade {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}


/* ============================================================
   REDUCED MOTION — Slower, smoother animations
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Pete 3 — zote polepole zaidi */
  .loader-ring-1 {
    animation-duration: 6s !important;    /* ← Ilikuwa 4s */
  }
  .loader-ring-2 {
    animation-duration: 5s !important;    /* ← Ilikuwa 4s */
  }
  .loader-ring-3 {
    animation-duration: 4s !important;    /* ← Ilikuwa 4s */
  }

  /* Logo — pulse polepole, sio kuzima */
  .loader-logo {
    animation-duration: 5s !important;    /* ← Ilikuwa none */
  }

  /* Text — fade polepole */
  .loader-text {
    animation-duration: 4s !important;    /* ← Ilikuwa none */
  }
}


/* ============================================================
   33. NAVBAR DROPDOWNS — Professional Dropdown Menus
   ============================================================ */

/* ---------- Dropdown Container ---------- */
.nav-dropdown {
  position: relative;
  list-style: none;
}

/* ---------- Toggle Button ---------- */
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.nav-dropdown-toggle:hover {
  background: var(--paper-alt);
  color: var(--purple);
}

.nav-dropdown-toggle .dropdown-arrow {
  transition: transform 0.25s var(--ease);
}

/* Rotate arrow when open */
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown.open .nav-dropdown-toggle {
  background: var(--paper-alt);
  color: var(--purple);
}

/* ---------- Dropdown Menu ---------- */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-line);
  box-shadow: 0 20px 50px rgba(15, 14, 20, 0.12),
              0 8px 20px rgba(90, 45, 190, 0.08);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown menu items */
.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.nav-dropdown-menu a:hover {
  background: var(--paper-alt);
  transform: translateX(2px);
}

/* Icon in dropdown */
.dropdown-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(90, 45, 190, 0.08), rgba(124, 79, 224, 0.12));
  display: grid;
  place-items: center;
  font-size: 16px;
}

.nav-dropdown-menu a:hover .dropdown-icon {
  background: linear-gradient(135deg, rgba(90, 45, 190, 0.15), rgba(249, 161, 27, 0.18));
}

/* Text in dropdown */
.nav-dropdown-menu a > div {
  flex: 1;
  min-width: 0;
}

.nav-dropdown-menu strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 2px;
}

.nav-dropdown-menu a:hover strong {
  color: var(--purple);
}

.nav-dropdown-menu small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--gray-soft);
  line-height: 1.35;
}

/* ---------- Mobile: Dropdowns inside mobile menu ---------- */
@media (max-width: 960px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--paper);
    padding: 4px 8px 8px;
    display: none;
    min-width: auto;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 12px 14px;
  }

  .dropdown-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .nav-dropdown-menu strong {
    font-size: 0.88rem;
  }

  .nav-dropdown-menu small {
    font-size: 0.74rem;
  }
}


/* ============================================================
   AI FILES — Form Fix
   ============================================================ */

.ai-form {
  max-width: 720px;
  margin: 30px auto;
  background: white;
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow-md);
  transition: all 0.25s var(--ease);
}

.ai-form:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 79, 224, 0.12), var(--shadow-md);
}

.ai-form .gen-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.ai-form .gen-input {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ai-form .gen-input .prefix {
  position: absolute;
  left: 18px;
  color: var(--gray-soft);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.ai-form #aiUrl {
  width: 100%;
  padding: 18px 18px 18px 96px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.ai-form #aiUrl::placeholder {
  color: #B5B4BC;
}

.ai-form #aiSubmit {
  flex-shrink: 0;
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: var(--black);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.ai-form #aiSubmit:hover:not(:disabled) {
  background: var(--purple);
  transform: translateY(-1px);
}

.ai-form #aiSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.ai-form .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.ai-form #aiSubmit.loading .spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .ai-form {
    padding: 6px;
    border-radius: var(--radius-md);
  }

  .ai-form .gen-row {
    flex-direction: column;
    gap: 6px;
  }

  .ai-form .gen-input .prefix {
    display: none;
  }

  .ai-form #aiUrl {
    padding: 16px 18px;
    font-size: 16px;   /* Kuzuia iOS zoom */
  }

  .ai-form #aiSubmit {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }
}


/* ============================================================
   34. SEO CHECKER — Form Styles
   ============================================================ */

/* ---------- Form Container ---------- */
.seo-form {
  max-width: 720px;
  margin: 30px auto;
  background: white;
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow-md);
  transition: all 0.25s var(--ease);
}

.seo-form:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 79, 224, 0.12), var(--shadow-md);
}

/* ---------- Input Row ---------- */
.seo-form .gen-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.seo-form .gen-input {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.seo-form .gen-input .prefix {
  position: absolute;
  left: 18px;
  color: var(--gray-soft);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seo-form #seoUrl {
  width: 100%;
  padding: 18px 18px 18px 96px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.seo-form #seoUrl::placeholder {
  color: #B5B4BC;
  opacity: 1;
}

/* ---------- Submit Button ---------- */
.seo-form #seoSubmit {
  flex-shrink: 0;
  padding: 18px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: var(--black);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.seo-form #seoSubmit:hover:not(:disabled) {
  background: var(--purple);
  transform: translateY(-1px);
}

.seo-form #seoSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Spinner ---------- */
.seo-form .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.seo-form #seoSubmit.loading .spinner {
  display: block;
}

/* ---------- Form Hint ---------- */
.seo-form .form-hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-soft);
  text-align: center;
  line-height: 1.6;
  padding: 0 16px;
}

.seo-form .form-hint code {
  background: var(--paper-alt);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--purple);
  border: 1px solid var(--gray-line);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .seo-form {
    padding: 6px;
    border-radius: var(--radius-md);
  }

  .seo-form .gen-row {
    flex-direction: column;
    gap: 6px;
  }

  .seo-form .gen-input .prefix {
    display: none;
  }

  .seo-form #seoUrl {
    padding: 16px 18px;
    font-size: 16px;
  }

  .seo-form #seoSubmit {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }
}