/* ==========================================================================
   Jetpac eSIM — Static Site CSS (SEO Sites Structure v4.5 — Pattern I)
   Class prefix: jp-
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --jp-primary: #3320a2;
  --jp-accent: #3847ff;
  --jp-pink: #eb008b;
  --jp-light: #e3deff;
  --jp-bg: #ffffff;
  --jp-bg-alt: #f8f7fc;
  --jp-text: #1a1a2e;
  --jp-text-muted: #5a5a7a;
  --jp-border: #e0ddf0;
  --jp-radius: 12px;
  --jp-radius-sm: 8px;
  --jp-shadow: 0 2px 12px rgba(51, 32, 162, 0.08);
  --jp-shadow-lg: 0 8px 32px rgba(51, 32, 162, 0.12);
  --jp-transition: 0.25s ease;
  --jp-max-width: 1200px;
  --jp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--jp-font);
  color: var(--jp-text);
  background: var(--jp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jp-accent); text-decoration: none; transition: color var(--jp-transition); }
a:hover { color: var(--jp-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Utility --- */
.jp-container { width: 100%; max-width: var(--jp-max-width); margin: 0 auto; padding: 0 20px; }
.jp-section { padding: 60px 0; }
.jp-section-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--jp-text); }
.jp-section-subtitle { font-size: 1rem; color: var(--jp-text-muted); text-align: center; max-width: 600px; margin: 0 auto 40px; }

/* --- Buttons --- */
.jp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--jp-radius-sm); font-weight: 600;
  font-size: 1rem; border: none; cursor: pointer;
  transition: transform var(--jp-transition), box-shadow var(--jp-transition), background var(--jp-transition);
  text-decoration: none;
}
.jp-btn:hover { transform: translateY(-2px); box-shadow: var(--jp-shadow-lg); }
.jp-btn-primary { background: var(--jp-primary); color: #fff; }
.jp-btn-primary:hover { background: #2a1890; color: #fff; }
.jp-btn-outline { background: transparent; color: var(--jp-primary); border: 2px solid var(--jp-primary); }
.jp-btn-outline:hover { background: var(--jp-primary); color: #fff; }
.jp-btn-accent { background: var(--jp-accent); color: #fff; }
.jp-btn-accent:hover { background: #2d38cc; color: #fff; }
.jp-btn-white { background: #fff; color: var(--jp-primary); }
.jp-btn-white:hover { background: var(--jp-light); color: var(--jp-primary); }
.jp-btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.jp-btn-lg { padding: 16px 36px; font-size: 1.125rem; }

/* --- Nav --- */
.jp-nav {
  background: var(--jp-bg);
  border-bottom: 1px solid var(--jp-border);
  padding: 16px 0;
  position: relative;
  z-index: 100;
}
.jp-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--jp-max-width); margin: 0 auto; padding: 0 20px;
}
.jp-logo { font-size: 1.5rem; font-weight: 800; color: var(--jp-primary); letter-spacing: -0.5px; }
.jp-logo span { color: var(--jp-accent); }
.jp-nav-links { display: none; gap: 24px; align-items: center; }
.jp-nav-links a { color: var(--jp-text-muted); font-size: 0.9rem; font-weight: 500; }
.jp-nav-links a:hover { color: var(--jp-primary); }
.jp-nav-links .jp-btn { font-size: 0.875rem; padding: 10px 20px; }
.jp-hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.jp-hamburger span { display: block; width: 24px; height: 2px; background: var(--jp-text); border-radius: 2px; transition: var(--jp-transition); }
.jp-hamburger.jp-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.jp-hamburger.jp-open span:nth-child(2) { opacity: 0; }
.jp-hamburger.jp-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.jp-mobile-menu {
  display: none; flex-direction: column; gap: 16px;
  padding: 20px; background: var(--jp-bg); border-bottom: 1px solid var(--jp-border);
}
.jp-mobile-menu.jp-open { display: flex; }
.jp-mobile-menu a { color: var(--jp-text-muted); font-weight: 500; font-size: 1rem; padding: 8px 0; }

@media (min-width: 900px) {
  .jp-nav-links { display: flex; }
  .jp-hamburger { display: none; }
  .jp-mobile-menu { display: none !important; }
}

/* --- Hero Split --- */
.jp-hero-split {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, #f8f7fc 0%, #eef0ff 50%, #fdf2ff 100%);
  overflow: hidden;
}
.jp-hero-inner {
  display: flex; flex-direction: column; gap: 40px;
  max-width: var(--jp-max-width); margin: 0 auto; padding: 0 20px;
  align-items: center;
}
.jp-hero-text { flex: 1; max-width: 560px; }
.jp-hero-text h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.15; margin-bottom: 8px; color: var(--jp-text); }
.jp-hero-text h1 span { color: var(--jp-primary); }
.jp-hero-subtitle { font-size: 1.2rem; font-weight: 600; color: var(--jp-accent); margin-bottom: 16px; }
.jp-hero-desc { font-size: 1rem; color: var(--jp-text-muted); margin-bottom: 28px; line-height: 1.7; }
.jp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.jp-trust-bar { display: flex; flex-wrap: wrap; gap: 20px; }
.jp-trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--jp-text-muted); font-weight: 500; }
.jp-trust-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.jp-hero-visual {
  flex: 1; min-height: 280px; width: 100%; max-width: 480px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.jp-hero-graphic {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--jp-primary), var(--jp-accent), var(--jp-pink));
  position: relative;
  box-shadow: 0 20px 60px rgba(51, 32, 162, 0.25);
}
.jp-hero-graphic::before {
  content: ''; position: absolute; inset: 20%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
}
.jp-hero-graphic::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40%; height: 40%; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.3);
}
.jp-hero-float {
  position: absolute; border-radius: var(--jp-radius-sm); padding: 8px 14px;
  background: rgba(255,255,255,0.9); box-shadow: var(--jp-shadow);
  font-size: 0.8rem; font-weight: 600; color: var(--jp-text); white-space: nowrap;
}
.jp-hero-float-1 { top: 10%; left: -10%; }
.jp-hero-float-2 { bottom: 15%; right: -5%; }
.jp-hero-float-3 { top: 50%; right: -15%; }

@media (min-width: 900px) {
  .jp-hero-inner { flex-direction: row; }
  .jp-hero-text h1 { font-size: 2.75rem; }
  .jp-hero-visual { min-height: 360px; }
}

/* --- Banners --- */
.jp-banner { text-align: center; padding: 20px 0; }
.jp-banner img { margin: 0 auto; display: block; border-radius: var(--jp-radius-sm); }
.jp-banner-leaderboard img { width: 728px; max-width: 100%; }
.jp-banner-medium img { width: 240px; max-width: 100%; }
.jp-banner-skyscraper img { width: 160px; max-width: 100%; }
.jp-banner-medium { display: none; }
@media (min-width: 640px) { .jp-banner-medium { display: block; } }
.jp-banner-leaderboard { display: none; }
@media (min-width: 768px) { .jp-banner-leaderboard { display: block; } }
.jp-banner-skyscraper { display: none; }
@media (min-width: 768px) { .jp-banner-skyscraper { display: block; } }

/* --- Destinations --- */
.jp-dest-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: var(--jp-max-width); margin: 0 auto; padding: 0 20px;
}
.jp-dest-card {
  background: var(--jp-bg); border: 1px solid var(--jp-border); border-radius: var(--jp-radius);
  padding: 20px; text-align: center; transition: transform var(--jp-transition), box-shadow var(--jp-transition);
  text-decoration: none; color: var(--jp-text); display: block;
}
.jp-dest-card:hover { transform: translateY(-4px); box-shadow: var(--jp-shadow-lg); color: var(--jp-text); }
.jp-dest-flag { font-size: 2rem; margin-bottom: 8px; }
.jp-dest-name { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.jp-dest-price { font-size: 1.1rem; font-weight: 700; color: var(--jp-primary); }
.jp-dest-from { font-size: 0.8rem; color: var(--jp-text-muted); }
.jp-dest-viewall {
  text-align: center; margin-top: 32px;
}
@media (min-width: 600px) { .jp-dest-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- CTA Inline --- */
.jp-cta-inline {
  text-align: center; padding: 48px 0;
  background: var(--jp-bg-alt);
}
.jp-cta-inline h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.jp-cta-inline p { color: var(--jp-text-muted); margin-bottom: 20px; }

/* --- Benefits (Zigzag) --- */
.jp-benefits { background: var(--jp-bg); }
.jp-benefit-row {
  display: flex; flex-direction: column; gap: 24px;
  max-width: var(--jp-max-width); margin: 0 auto; padding: 40px 20px;
  align-items: center;
  border-bottom: 1px solid var(--jp-border);
}
.jp-benefit-row:last-child { border-bottom: none; }
.jp-benefit-icon {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: var(--jp-radius);
  background: var(--jp-light); display: flex; align-items: center; justify-content: center;
}
.jp-benefit-icon svg { width: 36px; height: 36px; color: var(--jp-primary); }
.jp-benefit-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.jp-benefit-content p { color: var(--jp-text-muted); line-height: 1.7; }

/* Even rows reversed on larger screens */
.jp-benefit-row:nth-child(even) .jp-benefit-icon {
  background: linear-gradient(135deg, var(--jp-light), #fdf2ff);
}

@media (min-width: 600px) {
  .jp-benefit-row { flex-direction: row; padding: 48px 20px; }
  .jp-benefit-row:nth-child(even) { flex-direction: row-reverse; }
  .jp-benefit-icon { width: 100px; height: 100px; }
}

/* --- How It Works --- */
.jp-hiw { background: var(--jp-bg-alt); }
.jp-hiw-steps {
  display: flex; flex-direction: column; gap: 32px;
  max-width: 800px; margin: 0 auto; padding: 0 20px; position: relative;
}
.jp-hiw-step {
  display: flex; gap: 20px; align-items: flex-start; position: relative; z-index: 1;
}
.jp-hiw-number {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--jp-primary); color: #fff; font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.jp-hiw-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.jp-hiw-content p { color: var(--jp-text-muted); line-height: 1.7; }

/* Connector line */
.jp-hiw-steps::before {
  content: ''; position: absolute; left: 43px; top: 48px; bottom: 48px;
  width: 2px; background: var(--jp-light); z-index: 0;
}

@media (min-width: 600px) {
  .jp-hiw-steps::before { left: 43px; }
}

/* --- Products --- */
.jp-products { background: var(--jp-bg); }
.jp-products-grid {
  display: flex; flex-direction: column; gap: 24px;
  max-width: 800px; margin: 0 auto; padding: 0 20px;
}
.jp-product-card {
  background: var(--jp-bg); border: 2px solid var(--jp-border); border-radius: var(--jp-radius);
  padding: 32px 24px; position: relative; transition: box-shadow var(--jp-transition);
}
.jp-product-card:hover { box-shadow: var(--jp-shadow-lg); }
.jp-product-card.jp-recommended { border-color: var(--jp-primary); }
.jp-product-badge {
  position: absolute; top: -12px; right: 24px; background: var(--jp-primary); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.jp-product-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.jp-product-card .jp-product-tagline { color: var(--jp-text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.jp-product-features { margin-bottom: 24px; }
.jp-product-features li {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  font-size: 0.95rem; color: var(--jp-text);
}
.jp-product-features li svg { width: 18px; height: 18px; color: var(--jp-accent); flex-shrink: 0; }
.jp-product-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.jp-product-price { font-size: 1.5rem; font-weight: 800; color: var(--jp-primary); }

@media (min-width: 600px) {
  .jp-products-grid { flex-direction: row; }
  .jp-product-card { flex: 1; }
}

/* --- Social Proof --- */
.jp-social-proof {
  background: linear-gradient(135deg, var(--jp-primary), #1a0f5c);
  color: #fff; padding: 60px 0;
}
.jp-sp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: var(--jp-max-width); margin: 0 auto; padding: 0 20px; text-align: center;
}
.jp-sp-item { padding: 20px; }
.jp-sp-number { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.jp-sp-label { font-size: 0.9rem; opacity: 0.8; }
@media (min-width: 600px) { .jp-sp-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- FAQ --- */
.jp-faq { background: var(--jp-bg-alt); }
.jp-faq-list {
  max-width: 720px; margin: 0 auto; padding: 0 20px;
}
.jp-question-item {
  background: var(--jp-bg); border: 1px solid var(--jp-border); border-radius: var(--jp-radius);
  margin-bottom: 12px; overflow: hidden; transition: box-shadow var(--jp-transition);
}
.jp-question-item:hover { box-shadow: var(--jp-shadow); }
.jp-question-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; cursor: pointer; gap: 12px;
  font-weight: 600; font-size: 1rem; color: var(--jp-text);
  user-select: none;
}
.jp-question-header svg {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform var(--jp-transition); color: var(--jp-primary);
}
.jp-question-item.jp-active .jp-question-header svg { transform: rotate(180deg); }
.jp-question-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}
.jp-question-item.jp-active .jp-question-answer {
  max-height: 500px; padding: 0 20px 20px;
}
.jp-question-answer p { color: var(--jp-text-muted); line-height: 1.75; font-size: 0.95rem; }

/* --- CTA Banner --- */
.jp-cta-banner {
  background: linear-gradient(135deg, var(--jp-primary), var(--jp-accent));
  padding: 60px 20px; text-align: center; color: #fff;
}
.jp-cta-banner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.jp-cta-banner p { font-size: 1rem; opacity: 0.9; max-width: 560px; margin: 0 auto 24px; line-height: 1.6; }

/* --- Footer --- */
.jp-footer {
  background: var(--jp-text); color: #ccc; padding: 48px 0 24px;
}
.jp-footer-grid {
  display: flex; flex-direction: column; gap: 32px;
  max-width: var(--jp-max-width); margin: 0 auto; padding: 0 20px;
}
.jp-footer-brand .jp-logo { color: #fff; font-size: 1.35rem; margin-bottom: 12px; display: block; }
.jp-footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 320px; }
.jp-footer-links { display: flex; flex-wrap: wrap; gap: 32px; }
.jp-footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.jp-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.jp-footer-col a { color: #aaa; font-size: 0.875rem; }
.jp-footer-col a:hover { color: #fff; }
.jp-footer-bottom {
  max-width: var(--jp-max-width); margin: 32px auto 0; padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
  font-size: 0.8rem; color: #888;
}

@media (min-width: 600px) {
  .jp-footer-grid { flex-direction: row; justify-content: space-between; }
}

/* --- Print --- */
@media print {
  .jp-nav, .jp-hamburger, .jp-mobile-menu, .jp-hero-visual, .jp-banner,
  .jp-cta-inline, .jp-cta-banner, .jp-btn, .jp-cta-viewall, .jp-product-cta { display: none !important; }
  body { color: #000; background: #fff; }
  .jp-hero-split { background: #fff; padding: 20px 0; }
  .jp-section { padding: 20px 0; }
  .jp-social-proof { background: #333; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .jp-question-answer { max-height: 500px !important; padding: 0 20px 12px !important; }
  a { color: #000; text-decoration: underline; }
}
