/* ─── PUXLIN SHARED STYLES ──────────────────────────────────────────── */
:root {
  --primary:       #B600FF;
  --primary-light: #EAB5FF;
  --primary-dark:  #9200CC;
  --bg-dark:       #0D0014;
  --bg-section:    #F9F4FF;
  --text-dark:     #1A1A2E;
  --text-gray:     #6B7280;
  --white:         #FFFFFF;
  --border:        #E8D5F8;
  --radius:        16px;
  --radius-sm:     10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────── */
.sec-label {
  display: inline-block;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.sec-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}
.sec-sub {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 560px;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .875rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(182,0,255,.35);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover, .btn-primary:active {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(182,0,255,.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: .75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover, .btn-outline:active {
  background: var(--primary);
  color: #fff;
}

/* ─── CARDS ─────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(182,0,255,.1);
}

/* ─── EDITOR NAVBAR ─────────────────────────────────────────────────── */
.editor-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(182,0,255,.25);
}
.nav-partner {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.nav-partner img {
  height: 26px;
  width: auto;
}
.nav-partner-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-partner-label {
  font-size: .62rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.nav-partner-name {
  font-size: .85rem;
  color: #fff;
  font-weight: 800;
}
.nav-back {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-back:hover { background: rgba(255,255,255,.14); }

/* ─── SECTOR GRID ───────────────────────────────────────────────────── */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  max-width: 480px;
  margin: 0 auto;
}
.sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--bg-section);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem .75rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.sector-card:hover, .sector-card:active {
  border-color: var(--primary);
  background: rgba(182,0,255,.06);
  transform: scale(.97);
}
.sector-icon-lg { font-size: 2rem; }
.sector-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

/* ─── TEMPLATE GRID ─────────────────────────────────────────────────── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  max-width: 480px;
  margin: 0 auto;
}
.tpl-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  background: #fff;
}
.tpl-card:hover, .tpl-card:active {
  border-color: var(--primary);
  transform: scale(.97);
  box-shadow: 0 8px 24px rgba(182,0,255,.15);
}
.tpl-preview {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  position: relative;
}
.tpl-info {
  padding: .65rem .75rem;
  border-top: 1px solid var(--border);
}
.tpl-name {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .15rem;
}
.tpl-desc {
  display: block;
  font-size: .72rem;
  color: var(--text-gray);
  line-height: 1.4;
}

/* ─── SEO SECTION ───────────────────────────────────────────────────── */
.seo-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.seo-h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.seo-section p {
  color: var(--text-gray);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .6rem;
  overflow: hidden;
}
.faq-item summary {
  padding: .9rem 1rem;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-section);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::after { content: '+'; font-size: 1.1rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: .75rem 1rem;
  margin: 0;
  background: #fff;
}

/* ─── EDITOR FOOTER ─────────────────────────────────────────────────── */
.editor-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .8rem;
}
.editor-footer a {
  color: var(--primary-light);
  text-decoration: none;
}

/* ─── APP CTA BANNER ────────────────────────────────────────────────── */
.app-cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 2rem 1.25rem;
}
.app-cta-banner h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
.app-cta-banner p { font-size: .9rem; opacity: .8; margin-bottom: 1.25rem; }
.btn-app {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--primary);
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-app:hover { transform: scale(1.03); }

/* ─── UTILITY ───────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
