/* store.css — Hodox eSIM web storefront theme.
   Brand palette shared with the marketing site: purple gradient
   #667eea -> #764ba2, ink #1a1a2e, accent #764ba2, light bg #f8f9ff. */

:root {
  --brand-1: #667eea;
  --brand-2: #764ba2;
  --brand-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --ink: #1a1a2e;
  --muted: #6b6b80;
  --accent: #764ba2;
  --bg: #ffffff;
  --bg-soft: #f8f9ff;
  --border: #e7e7f2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(118, 75, 162, 0.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.logo span { color: var(--ink); }
.spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.currency-select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 2rem 0.4rem 0.8rem;
  background: var(--bg-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 0.7rem center;
  font: inherit; color: var(--ink); cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  border: 0; border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- Hero / search ---------- */
.hero {
  background: var(--brand-grad); color: #fff;
  padding: 3rem 0 3.5rem;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 0.5rem; }
.hero p { margin: 0 0 1.5rem; opacity: 0.92; font-size: 1.05rem; }

.search {
  display: flex; background: #fff; border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem; max-width: 560px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.search input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem;
  color: var(--ink); background: transparent;
}
.search .btn-primary { padding: 0.6rem 1.4rem; }

.search-results {
  max-width: 560px; margin-top: 0.5rem; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.search-results a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.1rem; color: var(--ink); border-bottom: 1px solid var(--border);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--bg-soft); text-decoration: none; }

/* ---------- Sections ---------- */
section.block { padding: 2.5rem 0; }
.block h2 { font-size: 1.35rem; margin: 0 0 1.2rem; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }

.grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.country-card {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.06s ease;
}
.country-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.country-card .flag { font-size: 1.6rem; line-height: 1; }
.country-card .name { font-weight: 600; font-size: 0.95rem; }

.region-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--ink); font-weight: 600;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- Plan cards (country page) ---------- */
.plan-list { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.plan-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem;
  position: relative;
}
.plan-card.popular { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-card .badge {
  position: absolute; top: -10px; right: 12px;
  background: var(--brand-grad); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.plan-card .data { font-size: 1.5rem; font-weight: 800; }
.plan-card .meta { color: var(--muted); font-size: 0.9rem; }
.plan-card .price { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.plan-card .price small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.plan-card ul { margin: 0.3rem 0 0.6rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- States ---------- */
.notice {
  background: #fff6e0; border: 1px solid #f2d68a; color: #7a5a00;
  padding: 0.9rem 1.1rem; border-radius: var(--radius); margin: 1rem 0;
}
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6fb 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Install help ---------- */
.install-help { text-align: left; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.8rem; }
.install-help summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: revert; }
.install-body { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.install-body p { margin: 0.5rem 0; }
.install-body .tip { background: var(--bg-soft); padding: 0.5rem 0.7rem; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a2e; color: #cfd0e0; padding: 2rem 0; margin-top: 2rem; font-size: 0.9rem; }
.site-footer a { color: #cfd0e0; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.6rem; }

@media (max-width: 640px) {
  .header-actions .btn span.label { display: none; }
  .hero { padding: 2rem 0 2.5rem; }
}
