/* mifi.appnice.dev (also appnice.dev/mifi/): hand-kept, not made by build.py. Only relative URLs in this folder. */
:root {
  --sky: #76CBFA; --sky-hi: #BFE6FD; --ink: #1E3A5F; --ink-soft: #46607f;
  --cream: #FFF8EC; --edge: #E9DCC4; --gold: #FFC94D; --grass: #3FAE5A; --pink: #FF7FA8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky-hi); color: var(--ink); font: 18px/1.5 "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 800; }
h2 { font-size: clamp(30px, 6vw, 44px); text-align: center; }
.lead { text-align: center; max-width: 640px; margin: 10px auto 0; color: var(--ink-soft); font-size: 19px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }

/* Top bar */
.top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.top .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; font-size: 20px; }
.top .brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang { text-decoration: none; font-weight: 700; padding: 4px 14px; border-radius: 999px; background: var(--cream); border: 2px solid var(--edge); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; text-align: center;
  background: linear-gradient(var(--sky) 0%, #9AD8FB 55%, transparent 100%); }
.hero .world { position: relative; height: 200px; margin-top: -40px; background: url(img/bg-world.webp) 70% 100% / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.hero .logo { width: min(300px, 70vw); margin: 0 auto; filter: drop-shadow(0 10px 16px rgba(30,58,95,.2)); }
.hero h1 { font-size: clamp(30px, 7vw, 54px); margin-top: 8px; padding: 0 8px; }
.hero .sub { margin: 10px auto 0; max-width: 560px; color: var(--ink-soft); font-size: 19px; }
.hero .fx { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.hero .fx.b1 { width: 70px; left: 6%; top: 120px; }
.hero .fx.b2 { width: 46px; right: 8%; top: 90px; animation-delay: -3s; }
.hero .fx.f1 { width: 54px; right: 14%; top: 300px; animation-delay: -5s; }
.hero > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero .fx { animation: drift 9s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-22px) rotate(3deg); } }

/* Buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; border: 3px solid var(--ink);
  box-shadow: 0 5px 0 rgba(30,58,95,.25); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(30,58,95,.25); }
.btn.light { background: var(--cream); color: var(--ink); border-color: var(--edge); }
.btn.yt { background: #E62117; border-color: #E62117; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 600; opacity: .8; line-height: 1; }
.btn span { text-align: left; line-height: 1.1; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Cards */
.card { background: var(--cream); border: 3px solid var(--edge); border-radius: 28px; padding: 24px; box-shadow: 0 8px 0 rgba(233,220,196,.7); }

/* How it plays */
.steps { display: grid; gap: 24px; margin-top: 36px; grid-template-columns: 1fr; }
.step { text-align: center; }
.step .num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold); font-weight: 800; font-size: 22px; }
.step h3 { margin-top: 10px; font-size: 24px; }
.step p { margin: 6px 0 0; color: var(--ink-soft); }
.phone { width: 220px; margin: 18px auto 0; border-radius: 28px; border: 6px solid var(--ink); box-shadow: 0 16px 30px -12px rgba(30,58,95,.45); background: var(--ink); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Languages */
.langs { list-style: none; padding: 0; margin: 32px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-width: 900px; }
.langs li { background: var(--cream); border: 2px solid var(--edge); border-radius: 18px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.langs .flag { font-size: 26px; line-height: 1; }
.langs li.def { border-color: var(--gold); background: #FFF1CC; }
.note { text-align: center; margin-top: 16px; color: var(--ink-soft); font-size: 16px; }

/* Inside / parents: text + phone */
.split { display: grid; gap: 32px; align-items: center; margin-top: 32px; grid-template-columns: 1fr; }
.split .phone { width: 240px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 280px; } .split.flip { grid-template-columns: 280px 1fr; } .split.flip .phone-col { order: -1; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-hi); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.facts b { display: block; }
.facts span.t { color: var(--ink-soft); font-size: 16px; }
.lands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.lands li { padding: 2px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--edge); font-size: 15px; font-weight: 600; }
.big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; text-align: center; }
.big div { background: #fff; border: 2px solid var(--edge); border-radius: 18px; padding: 10px 4px; }
.big b { display: block; font-size: clamp(26px, 6vw, 36px); line-height: 1.1; color: var(--grass); }
.big span { font-size: 14px; color: var(--ink-soft); }

.alt { background: var(--cream); border-top: 3px solid var(--edge); border-bottom: 3px solid var(--edge); }
.alt .card { background: #fff; }

/* YouTube */
.thumbs { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }
.thumbs a { display: block; border-radius: 20px; overflow: hidden; border: 3px solid var(--edge); background: #fff; text-decoration: none; position: relative; }
.thumbs a::after { content: ""; position: absolute; left: 50%; top: 42%; width: 56px; height: 40px; margin: -20px 0 0 -28px; border-radius: 12px; background: rgba(230,33,23,.9)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.thumbs span { display: block; padding: 8px 12px; font-weight: 700; }
@media (min-width: 700px) { .thumbs { grid-template-columns: repeat(3, 1fr); } }
.center { text-align: center; margin-top: 28px; }

/* Plus */
.plus { max-width: 720px; margin: 0 auto; text-align: center; }
.plus .badge { display: inline-block; background: var(--gold); border-radius: 999px; padding: 2px 16px; font-weight: 800; }
.plus ul { text-align: left; max-width: 520px; margin: 18px auto 0; }

/* Footer */
footer { background: var(--ink); color: #e8f2fc; padding: 40px 0 48px; text-align: center; font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin: 12px 0; }
footer a { color: #fff; text-underline-offset: 3px; }
footer img { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto; }
