/* store.css — Hodox eSIM web storefront theme.
   Palette: "Deep Ocean" — deep teal ink #0b2e33, cyan brand #0e8fa3,
   warm sand accent #ef9a34, on light or (automatic) dark ground.
   Everything is tokenised so the country/checkout/account pages inherit the
   same look and dark mode for free. */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef6f7;      /* pale cyan band */
  --sand: #f6f1e7;           /* warm neutral band */
  --ink: #0b2e33;            /* deep teal ink */
  --muted: #5b7377;
  --border: #d8e6e8;

  --brand: #0e8fa3;          /* cyan-teal — primary interactive */
  --brand-deep: #0a6070;
  --brand-soft: #e3f2f4;
  --accent: #ef9a34;         /* warm sand/amber — CTA pop (used sparingly) */
  --accent-ink: #b9741a;
  --ok: #12a150;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 30px rgba(11, 46, 51, 0.10);
  --shadow-sm: 0 3px 14px rgba(11, 46, 51, 0.07);
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071a1e;
    --surface: #0d262b;
    --surface-2: #103137;
    --sand: #14322f;
    --ink: #eaf6f7;
    --muted: #96b6bb;
    --border: #1d444b;

    --brand: #34c6dd;
    --brand-deep: #1a9fb8;
    --brand-soft: #10333b;
    --accent: #f6b25c;
    --accent-ink: #f8c680;

    --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 3px 14px rgba(0, 0, 0, 0.4);
  }
}
/* Explicit override wins over the media query in both directions. */
:root[data-theme="dark"] {
  --bg: #071a1e; --surface: #0d262b; --surface-2: #103137; --sand: #14322f;
  --ink: #eaf6f7; --muted: #96b6bb; --border: #1d444b;
  --brand: #34c6dd; --brand-deep: #1a9fb8; --brand-soft: #10333b;
  --accent: #f6b25c; --accent-ink: #f8c680;
  --shadow: 0 12px 34px rgba(0,0,0,0.5); --shadow-sm: 0 3px 14px rgba(0,0,0,0.4);
}
:root[data-theme="light"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #eef6f7; --sand: #f6f1e7;
  --ink: #0b2e33; --muted: #5b7377; --border: #d8e6e8;
  --brand: #0e8fa3; --brand-deep: #0a6070; --brand-soft: #e3f2f4;
  --accent: #ef9a34; --accent-ink: #b9741a;
  --shadow: 0 10px 30px rgba(11,46,51,0.10); --shadow-sm: 0 3px 14px rgba(11,46,51,0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

/* ---------- Header + primary nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 0.85rem;
  height: 64px;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 0.5rem; }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 27px; height: 27px; border-radius: 8px; flex: none;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  display: grid; place-items: center;
}
.logo .mark svg { width: 16px; height: 16px; }
.logo span { color: var(--brand); }

/* In-page tab navigation (anchor links). Scrolls horizontally on small
   screens instead of collapsing into a menu — always reachable. */
.site-nav {
  display: flex; align-items: center; gap: 0.15rem;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--muted); font-weight: 650; font-size: 0.94rem;
  padding: 0.45rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); }
/* Current-page tab: looks like an active link but is a non-interactive <span>,
   so clicking the page you're already on doesn't reload it. */
.site-nav .current {
  color: var(--brand); background: var(--brand-soft); font-weight: 650;
  font-size: 0.94rem; padding: 0.45rem 0.7rem; border-radius: 999px;
  white-space: nowrap; cursor: default;
}

.spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.currency-select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.9rem 0.4rem 0.8rem;
  background: var(--surface-2) 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='%230e8fa3' 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.45rem;
  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, filter 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 34%, transparent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-accent { background: var(--accent); color: #23160a; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-accent:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- Hero / search ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 120% at 88% -20%, #14b3c9 0%, transparent 52%),
    radial-gradient(90% 90% at -5% 115%, #f2a03d 0%, transparent 42%),
    linear-gradient(150deg, #0b6b7d 0%, #063842 100%);
  padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2.8rem, 6vw, 3.6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.45; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin: 0.6rem 0 0.55rem; max-width: 16ch; }
.hero p { margin: 0 0 1.4rem; color: #e4f5f8; font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 48ch; }
.hero .eyebrow { color: #b7ecf4; }

.search {
  display: flex; gap: 0.4rem; background: #fff; border-radius: 999px;
  padding: 0.38rem 0.38rem 0.38rem 1.1rem; max-width: 540px;
  box-shadow: 0 16px 40px rgba(4, 26, 32, 0.32);
}
.search input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem;
  color: #0b2e33; background: transparent;
}
.search input::placeholder { color: #7d9296; }
.search .btn { padding: 0.6rem 1.35rem; }

.search-results {
  max-width: 540px; margin-top: 0.5rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border);
  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(--surface-2); text-decoration: none; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 0.55rem 1.3rem; margin-top: 1.3rem; }
.trust-strip .ti { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: #eafbfd; font-weight: 600; }
.trust-strip svg { width: 17px; height: 17px; flex: none; }

/* ---------- Sections ---------- */
section.block { padding: clamp(2.2rem, 5vw, 3.2rem) 0; scroll-margin-top: 76px; }
.sec-head { margin-bottom: 1.4rem; }
.block h2, .sec-head h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; margin: 0.35rem 0 0; }
.sec-head p { color: var(--muted); margin: 0.5rem 0 0; max-width: 54ch; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }

.band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-sand { background: var(--sand); }

/* Country grid */
.grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
}
.country-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0.95rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.08s ease;
}
.country-card:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.country-card .flag { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.35rem; line-height: 1; flex: none; }
.country-card .name { font-weight: 700; font-size: 0.95rem; }

/* Photo cards — landmark imagery for country + region cards, matching the app:
   full-bleed photo, dark bottom scrim, circular flag/emoji badge, name overlay.
   The gradient background shows through when a photo is missing (img removed). */
.country-card.photo, .region-card {
  position: relative; display: block; padding: 0; overflow: hidden;
  height: 132px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  box-shadow: var(--shadow-sm); color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.08s ease;
}
.country-card.photo:hover, .region-card:hover {
  text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--border));
}
.country-card.photo .ph, .region-card .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.country-card.photo .scrim, .region-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 32%, rgba(0,0,0,0.30) 64%, rgba(0,0,0,0.72) 100%);
}
.country-card.photo .badge, .region-card .badge {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; line-height: 1;
  background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.4);
}
.country-card.photo .name, .region-card .name {
  position: absolute; left: 12px; right: 12px; bottom: 11px;
  font-weight: 700; font-size: 0.98rem; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.region-row { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.05rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); text-decoration: none; }

/* How it works */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-deep)); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 0.8rem; }
.step h3 { font-size: 1.06rem; font-weight: 700; margin: 0; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0 0; }

/* Why cards */
.feat { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.fcard .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 0.75rem; }
.fcard .ic svg { width: 22px; height: 22px; }
.fcard h3 { font-size: 1.02rem; font-weight: 700; margin: 0; }
.fcard p { color: var(--muted); font-size: 0.93rem; margin: 0.3rem 0 0; }

/* About */
.about-text { max-width: 68ch; color: var(--muted); }
.about-text p { margin: 0 0 0.9rem; }
.about-text strong { color: var(--ink); }

/* Device band */
.compat { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.compat .ic { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, var(--brand), var(--brand-deep)); display: grid; place-items: center; flex: none; }
.compat .ic svg { width: 24px; height: 24px; }
.compat b { font-weight: 750; }
.compat p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 800px; }
details.q { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 1.1rem; box-shadow: var(--shadow-sm); }
details.q summary { list-style: none; cursor: pointer; font-weight: 700; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary .pl { color: var(--brand); font-weight: 800; transition: transform 0.2s ease; flex: none; }
details.q[open] summary .pl { transform: rotate(45deg); }
details.q .a { color: var(--muted); font-size: 0.96rem; padding: 0 0 1rem; margin-top: -0.15rem; }

.badges { display: flex; gap: 0.6rem 1.1rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-weight: 650; font-size: 0.92rem; }
.badges .b { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0.45rem 0.9rem; }
.badges svg { width: 16px; height: 16px; }

/* ---------- 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: var(--surface); padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem;
  position: relative; box-shadow: var(--shadow-sm);
}
.plan-card.popular { border-color: var(--brand); box-shadow: var(--shadow); }
.plan-card .badge {
  position: absolute; top: -10px; right: 12px;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep)); 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-family: var(--font-mono); font-size: 1.55rem; font-weight: 800; color: var(--brand); font-feature-settings: "tnum" 1; }
.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: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--ink);
  padding: 0.9rem 1.1rem; border-radius: var(--radius); margin: 1rem 0;
}
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 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(--brand); 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(--surface-2); padding: 0.5rem 0.7rem; border-radius: 8px; }

/* ---------- Marketing / legal prose pages ---------- */
.prose { max-width: 760px; padding: clamp(1.8rem, 4vw, 2.6rem) 1.25rem clamp(2.6rem, 6vw, 4rem); margin: 0 auto; }
.prose > p:first-child { font-size: 1.08rem; }
.prose h2 { color: var(--brand); font-size: 1.3rem; margin: 2rem 0 0.7rem; }
.prose h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.prose p { color: var(--muted); margin: 0 0 1rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); font-weight: 600; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-top: 1rem; }
.prose .card p { margin-bottom: 0.45rem; }
.hero.hero-slim { padding: clamp(2rem, 4vw, 2.6rem) 0; }

/* ---------- Footer ---------- */
.site-footer { background: #06232a; color: #b9d4d8; padding: 2.4rem 0; margin-top: 1rem; font-size: 0.9rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #7fd6e4; }
.site-footer a { color: #b9d4d8; }
.site-footer a:hover { color: #fff; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; margin-top: 0.75rem; }
.site-footer .fine { margin-top: 1rem; font-size: 0.82rem; color: #7f9ba0; }

@media (max-width: 860px) {
  .steps, .feat { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* On phones the header wraps: logo + currency + account on row 1, and the
     tabs drop to a full-width, horizontally-scrollable row 2 — so the nav is
     always reachable (never hidden). */
  .site-header .wrap { flex-wrap: wrap; height: auto; min-height: 58px; padding-top: 0.45rem; padding-bottom: 0.45rem; }
  .site-nav { order: 5; flex-basis: 100%; margin: 0 -0.25rem -0.1rem; }
  .header-actions .btn span.label { display: none; }
}
@media (max-width: 560px) {
  .steps, .feat { grid-template-columns: 1fr; }
}
