/* Tiny Planet — minimal dark theme */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #131313;
  --border: #262626;
  --text: #ededed;
  --muted: #a3a3a3;
  --accent: #8ab4ff;
  --accent-ink: #0a0a0a;
  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 650; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.0625rem;
}
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover { color: var(--text); }

/* Buttons & badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--text); color: var(--accent-ink); }
.btn-secondary { border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-weight: 600; font-size: 0.9375rem;
}
.badge svg { width: 18px; height: 18px; }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 12px; }
.section-lead { color: var(--muted); max-width: 40rem; margin: 0 0 40px; font-size: 1.0625rem; }
.eyebrow {
  color: var(--muted); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px;
}

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .container { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.25rem); letter-spacing: -0.035em; margin-bottom: 20px; }
.hero p { color: var(--muted); font-size: 1.1875rem; max-width: 34rem; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mockup {
  position: relative;
  align-self: center;
  height: max-content;
  width: min(300px, 80%); margin: 0 auto;
  padding: 10px;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 48px;
}
.mockup img {
  width: 100%; height: auto;
  aspect-ratio: 1024 / 2227;
  object-fit: cover;
  border-radius: 38px;
}
/* Dynamic Island */
.mockup::after {
  content: ""; position: absolute;
  top: calc(10px + 1.6%); left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.4%;
  background: #000; border-radius: 999px;
}

/* Features */
.grid-3 { display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.feature svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 20px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* eSIM plans carousel */
.esim-viewport {
  overflow-x: auto; /* fallback without JS/Embla: native swipe */
  scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px; /* let cards bleed to the screen edge on mobile */
}
.esim-viewport::-webkit-scrollbar { display: none; }
.is-enhanced .esim-viewport { overflow: hidden; }
.esim-track { display: flex; touch-action: pan-y pinch-zoom; margin-left: -12px; }
.esim-slide { flex: 0 0 84%; min-width: 0; padding-left: 12px; display: flex; }
.esim-card {
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 196px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  user-select: none; -webkit-user-select: none;
}
.is-enhanced .esim-viewport { cursor: grab; }
.esim-flag { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 18px; }
.esim-card h3 { font-size: 1.125rem; }
.esim-meta { color: var(--muted); font-size: 0.9375rem; margin: 4px 0 20px; }
.esim-foot { margin-top: auto; }
.esim-price { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1; }

.esim-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .icon-play,
.icon-btn[data-state="paused"] .icon-pause { display: none; }
.icon-btn[data-state="paused"] .icon-play { display: block; }
.esim-controls [data-esim-toggle] { margin-right: auto; }
.esim-controls [data-esim-toggle][hidden] { display: none; }

.payment-note { color: var(--muted); font-size: 0.9375rem; margin: 24px 0 0; }

/* Powered by */
.powered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.powered .container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 32px 64px; list-style: none; padding: 0; margin: 8px 0 0;
}
.logos li { display: flex; align-items: center; justify-content: center; }
.logos img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

/* Footer */
.site-footer { padding: 48px 0; color: var(--muted); font-size: 0.9375rem; }
.footer-top { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.business { margin: 0 0 4px; }
.copyright { margin: 0; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #d4d4d4; font-size: 1.0625rem; line-height: 1.75; }
.legal p { margin: 0 0 16px; }
.legal ul { padding-left: 1.25rem; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.business-block {
  margin-top: 48px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.business-block p { margin: 0; font-size: 1rem; }

/* Breakpoints */
@media (max-width: 479px) {
  .nav { gap: 14px; }
  .nav .nav-optional { display: none; }
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  section { padding: 96px 0; }
  .hero { padding: 96px 0 64px; }
  .hero .container { grid-template-columns: 1.2fr 0.8fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .esim-viewport { margin: 0; padding: 0; }
  .esim-slide { flex-basis: 40%; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .esim-slide { flex-basis: 25%; }
}
