/* ==========================================================================
   INSTA PRO (instaproo.app) - High-Performance SEO & Core Web Vitals Stylesheet
   Strict 2-Color Logo Palette: Royal Violet (#7c3aed) & Electric Magenta (#c026d3)
   ========================================================================== */

:root {
  --brand-violet: #7c3aed;
  --brand-violet-dark: #5b21b6;
  --brand-magenta: #c026d3;
  --brand-gradient: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
  --brand-header-bg: linear-gradient(135deg, #2e1065 0%, #4c1d95 55%, #701a75 100%);
  --bg-page: #faf7ff;
  --bg-card: #ffffff;
  --bg-Tint: #f5f0ff;
  --bg-Tint-alt: #fdf4ff;
  --text-main: #1e1b4b;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-light: #e9d5ff;
  --border-subtle: #f3e8ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 6px 20px rgba(124, 58, 237, 0.1);
  --max-w: 1060px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-magenta);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--brand-header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 14px rgba(46, 16, 101, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-link:hover {
  color: #ffffff;
  opacity: 0.95;
}

.brand-logo-img {
  width: 38px;
  height: 25px;
  object-fit: contain;
  border-radius: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.nav-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.header-nav a.nav-cta {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(192, 38, 211, 0.35);
}

.header-nav a.nav-cta:hover {
  filter: brightness(1.06);
}

/* ==========================================================================
   HERO & MAIN LAYOUT
   ========================================================================== */
.hero-section {
  padding: 22px 0 18px;
  background: radial-gradient(circle at top right, rgba(192, 38, 211, 0.09), transparent 55%),
              radial-gradient(circle at top left, rgba(124, 58, 237, 0.1), transparent 50%);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--brand-violet);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-title-group {
  flex: 1 1 520px;
}

.hero-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-Tint);
  border: 1px solid var(--border-light);
  color: var(--brand-violet-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.22;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-body);
  margin-bottom: 14px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-gradient);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(192, 38, 211, 0.4);
}

.btn-primary-download svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-icon-box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, var(--bg-Tint), var(--bg-Tint-alt));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  min-width: 155px;
}

.hero-icon-box img {
  width: 72px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px;
}

.hero-icon-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.hero-icon-sub {
  font-size: 0.78rem;
  color: var(--brand-magenta);
  font-weight: 700;
}

/* ==========================================================================
   SECTIONS & CONTENT BLOCKS (Compact, Zero Empty Space)
   ========================================================================== */
main {
  padding: 16px 0 28px;
}

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
}

.content-section h3 {
  font-size: 1.08rem;
  color: var(--brand-violet-dark);
  font-weight: 700;
  margin: 12px 0 6px;
}

.content-section p {
  margin-bottom: 10px;
  color: var(--text-body);
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SPECIFICATION & COMPARISON TABLES
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.spec-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.spec-table th,
.spec-table td,
.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td,
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 38%;
  background: var(--bg-Tint);
  color: var(--text-main);
  font-weight: 700;
}

.spec-table td {
  background: var(--bg-card);
  color: var(--text-body);
  font-weight: 500;
}

.compare-table thead th {
  background: var(--brand-header-bg);
  color: #ffffff;
  font-weight: 700;
  padding: 11px 14px;
}

.compare-table tbody tr:nth-child(even) {
  background: var(--bg-Tint);
}

.table-note {
  background: var(--bg-Tint-alt);
  border-left: 4px solid var(--brand-magenta);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-top: 10px;
}

/* ==========================================================================
   GRIDS & CARDS (Zero Orphan Gaps - Odd Last Item Spans Full Width)
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.grid-2 > *:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.info-card {
  background: var(--bg-Tint);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.02rem;
  color: var(--text-main);
}

.info-card p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ==========================================================================
   LISTS (Bullet, Check, Step Lists)
   ========================================================================== */
.clean-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.clean-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-magenta);
  font-weight: 800;
}

.step-list {
  list-style: none;
  counter-reset: step-counter;
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.step-list li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-Tint);
  border: 1px solid var(--border-light);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.step-list li::before {
  content: counter(step-counter);
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ==========================================================================
   PROS & CONS
   ========================================================================== */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.pros-box,
.cons-box {
  background: var(--bg-Tint);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.pros-box {
  border-top: 3px solid var(--brand-violet);
}

.cons-box {
  border-top: 3px solid var(--brand-magenta);
}

.pros-box h3 {
  margin-top: 0;
  color: var(--brand-violet-dark);
}

.cons-box h3 {
  margin-top: 0;
  color: var(--brand-magenta);
}

.cons-list li::before {
  content: "•";
  color: var(--brand-magenta);
}

/* ==========================================================================
   INFOGRAPHIC FIGURE
   ========================================================================== */
.content-figure {
  margin: 12px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-Tint);
}

.content-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.content-figure figcaption {
  padding: 8px 12px;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-Tint);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--brand-violet);
}

.faq-toggle-icon {
  font-size: 1.15rem;
  color: var(--brand-magenta);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 14px 12px;
  font-size: 0.94rem;
  color: var(--text-body);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.js-enabled .faq-item:not(.open) .faq-answer {
  display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--brand-header-bg);
  color: rgba(255, 255, 255, 0.88);
  padding: 24px 0 20px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: #f5d0fe;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.76);
  max-width: 780px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 720px) {
  .grid-2,
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .hero-top {
    flex-direction: column;
  }

  .hero-icon-box {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }

  .hero-icon-box img {
    margin-bottom: 0;
  }

  .btn-primary-download {
    width: 100%;
  }

  .content-section {
    padding: 16px;
  }
}
