/* ── eSIM Device Pages — Combined Optimized Styles ──────────── */
/* Contains: design tokens, nav, breadcrumbs, hero, specs, activation,
   detail grid, related grid, FAQ, footer, CTA, buttons, responsive */

/* ── Design Tokens ──────────────────────────────────────────── */
@font-face {
  font-family: 'Inter-fallback';
  src: local('Arial');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.40%;
}
:root {
  --font-sans: system-ui, -apple-system, 'Segoe UI', 'Inter', 'Inter-fallback', sans-serif;
  --font-mono: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  --bg:               #f2f1ed;
  --bg-light:         #f7f7f4;
  --surface:          #ebeae5;
  --surface-dark:     #e6e5e0;
  --text:             #26251e;
  --text-secondary:   rgba(38, 37, 30, 0.55);
  --text-muted:       rgba(38, 37, 30, 0.45);
  --text-dim:         rgba(38, 37, 30, 0.35);
  --accent:           #f54e00;
  --gold:             #c08532;
  --error:            #cf2d56;
  --success:          #1f8a65;
  --blue:             #3772cf;
  --border:           rgba(38, 37, 30, 0.1);
  --border-mid:       rgba(38, 37, 30, 0.2);
  --border-soft:      rgba(38, 37, 30, 0.05);
  --shadow-card:      rgba(0,0,0,0.14) 0px 28px 70px, rgba(0,0,0,0.1) 0px 14px 32px, 0 0 0 1px rgba(38,37,30,0.08);
  --shadow-lg:        rgba(0,0,0,0.12) 0px 12px 40px, 0 0 0 1px rgba(38,37,30,0.06);
  --shadow-focus:     rgba(0,0,0,0.1) 0px 4px 12px;
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      10px;
  --radius-lg:   12px;
  --radius-full: 9999px;
  --transition:    0.15s ease;
  --brand:       var(--accent);
  --brand-dim:   rgba(245,78,0,0.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
.hidden { display: none !important; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; background: var(--text); color: var(--bg);
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  transition: color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { color: var(--error); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: rgba(38, 37, 30, 0.06); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  border-radius: var(--radius-full); border: 1px solid var(--border);
  cursor: pointer; transition: color var(--transition), background var(--transition), transform var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-ghost:hover { color: var(--error); background: rgba(38, 37, 30, 0.03); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 400; font-size: 18px;
  color: var(--text); flex-shrink: 0; letter-spacing: -0.4px;
  width: 148px;
}
.nav__links { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.nav__links li a {
  padding: 6px 14px; font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: color var(--transition);
}
.nav__links li a:hover { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 6px 14px; font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: color var(--transition);
}
.nav__link:hover { color: var(--accent); }
.nav__cta {
  display: inline-flex; align-items: center; padding: 8px 16px;
  background: var(--surface); color: var(--text);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: color var(--transition), box-shadow var(--transition); text-decoration: none;
}
.nav__cta:hover { color: var(--error); box-shadow: var(--shadow-focus); }
.nav__mobile-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-xs); color: var(--text-secondary);
}
.nav__mobile-toggle:hover { color: var(--text); background: rgba(38,37,30,0.06); }

.nav__drawer {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px; flex-direction: column; gap: 4px; z-index: 98;
  box-shadow: var(--shadow-lg); animation: fadeInUp 0.15s ease both;
}
.nav__drawer.nav__drawer--open { display: flex; }
.nav__drawer-link {
  display: flex; align-items: center; padding: 12px 14px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-xs);
  transition: background var(--transition), color var(--transition);
}
.nav__drawer-link:hover { background: rgba(38,37,30,0.05); color: var(--text); }
.nav__drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }
.nav__drawer-cta {
  display: flex; align-items: center; justify-content: center; margin-top: 4px;
  padding: 13px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
}
.nav__drawer-cta:hover { color: var(--error); }
.nav__overlay { display: none; position: fixed; inset: 0; top: 60px; background: rgba(0,0,0,0.15); z-index: 97; }
.nav__overlay--open { display: block; }

/* ── Section Base ───────────────────────────────────────────── */
.section { padding: 96px 0; }
.section__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { margin-bottom: 0; display: flex; flex-direction: column; align-items: flex-start; }
.section-header.text-center { align-items: center; text-align: center; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: var(--text-secondary); background: var(--surface);
  border-radius: var(--radius-full); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px; color: var(--text);
}
.section-sub {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; max-width: 580px;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-wrap { border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  font-family: var(--font-sans); line-height: 1.65;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ── Device Hero ────────────────────────────────────────────── */
.device-hero { padding: 56px 0 48px; background: var(--bg); border-bottom: 1px solid var(--border); }
.device-hero__content { max-width: 720px; }
.device-hero__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); color: var(--text-secondary);
  width: fit-content; margin-bottom: 20px;
}
.device-hero__badge--esim {
  color: var(--success); border-color: rgba(31,138,101,0.2);
  background: rgba(31,138,101,0.06);
}
.device-hero__title {
  font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--text); margin-bottom: 16px;
}
.device-hero__desc {
  font-family: var(--font-sans); font-size: 1rem;
  color: var(--text-secondary); line-height: 1.7; max-width: 640px; margin-bottom: 28px;
}
.device-hero__specs { display: flex; flex-wrap: wrap; gap: 12px; }

.spec {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 18px; min-width: 100px;
}
.spec__label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-dim);
}
.spec__value { font-size: 14px; font-weight: 600; color: var(--text); }
.spec__value--yes { color: var(--success); }
.spec__value--no { color: var(--error); }

/* ── Activation Card ────────────────────────────────────────── */
.activation-card { margin-top: 32px; background: var(--surface-dark); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.activation-card h4 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 16px; }
.activation-card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.activation-card li { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.activation-card p {
  margin-top: 14px; padding: 10px 12px; background: rgba(245,78,0,0.04);
  border-left: 2px solid var(--accent); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 13px; color: var(--text-secondary); line-height: 1.55;
}

/* ── Detail Grid ────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.detail-card { background: var(--surface-dark); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.detail-card h3 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.detail-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.detail-card p ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.detail-card p li { margin-bottom: 4px; }

/* ── Related Grid ───────────────────────────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 40px; }
.related-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  background: var(--surface-dark); border: 1px solid var(--border);
  border-radius: var(--radius-xs); transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.related-card:hover { border-color: rgba(245,78,0,0.3); transform: translateY(-1px); }
.related-card__name { font-size: 13px; font-weight: 500; color: var(--text); }
.related-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: var(--radius-full);
  background: rgba(55,114,207,0.08); color: var(--blue); align-self: flex-start;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.faq-item { background: var(--surface-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 26px; }
.faq-question { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--text); margin-bottom: 8px; }
.faq-answer { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }
.faq-answer ol { padding-left: 18px; }

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  padding: 120px 0; text-align: center; background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-section::before, .cta-section::after { display: none; }
.cta-section__inner { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.cta-section__title {
  font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px; color: var(--text);
}
.cta-section__title .highlight { color: var(--accent); }
.cta-section__sub {
  font-family: var(--font-sans); font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.cta-section__actions {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 48px 0 0; background: var(--bg); }
.footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 400;
  color: var(--text); letter-spacing: -0.4px; width: 148px;
}
.footer__logo-icon { flex-shrink: 0; width: 22px; height: 22px; }
.footer__desc {
  font-family: var(--font-sans); font-size: 13px; color: var(--text-secondary);
  line-height: 1.7; max-width: 260px;
}
.footer__col-title {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-dim); margin-bottom: 14px;
}
.footer__col-links { display: flex; flex-direction: column; gap: 8px; }
.footer__col-links a { font-family: var(--font-sans); font-size: 14px; color: var(--text-secondary); }
.footer__col-links a:hover { color: var(--accent); }
.footer__bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  border-top: 1px solid var(--border); display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__copyright { font-family: var(--font-sans); font-size: 12px; color: var(--text-dim); }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { font-family: var(--font-sans); font-size: 12px; color: var(--text-dim); }
.footer__bottom-links a:hover { color: var(--text-secondary); }

/* ── Responsive: 1024px ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: 768px ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }
  .breadcrumb { padding: 0 16px; flex-wrap: wrap; }
  .device-hero { padding: 40px 0 32px; }
  .device-hero__specs { gap: 8px; }
  .spec { min-width: 80px; padding: 10px 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .cta-section { padding: 72px 0; }
  .cta-section__actions { flex-direction: column; align-items: stretch; }
}

/* ── Responsive: 480px ──────────────────────────────────────── */
@media (max-width: 480px) {
  .device-hero__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .device-hero__specs { flex-direction: column; }
  .spec { min-width: 0; width: 100%; }
}
