/* Boorio — shared site styles (light, apple.com-style) */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 17px/1.47 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 48px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink); font-size: 12.5px; opacity: 0.85; letter-spacing: -0.01em; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 48px; flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    padding: 8px 22px 22px; border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
  }
  .nav-links a { font-size: 22px; font-weight: 600; padding: 10px 0; opacity: 1; }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
}

/* ---------- local (product) nav ---------- */
.localnav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }
.localnav-inner { max-width: 1024px; margin: 0 auto; padding: 0 22px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.localnav-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.localnav-title:hover { text-decoration: none; }
.localnav-links { display: flex; gap: 20px; font-size: 12.5px; }
.localnav-links a { color: var(--ink); opacity: .8; }
.localnav-links a[aria-current="page"] { opacity: .45; pointer-events: none; }

/* ---------- sections ---------- */
.section { padding: 96px 22px; text-align: center; overflow: hidden; }
.section.alt { background: var(--soft); }
.section.tight { padding-top: 64px; padding-bottom: 64px; }
.wrap { max-width: 980px; margin: 0 auto; }
.wrap.narrow { max-width: 720px; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.015em; }
.eyebrow.orange { color: #bf4800; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; font-weight: 700; line-height: 1.05; }
.display { font-size: clamp(56px, 11vw, 112px); letter-spacing: -0.045em; }
.headline { font-size: clamp(40px, 7vw, 80px); }
.headline.sm { font-size: clamp(34px, 5.4vw, 56px); }
.sub { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; color: var(--grey); font-weight: 400; margin: 14px auto 0; max-width: 820px; letter-spacing: -0.02em; }
.body { font-size: 19px; color: var(--grey); max-width: 640px; margin: 18px auto 0; line-height: 1.45; }
.body strong { color: var(--ink); font-weight: 600; }

/* ---------- links & buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; margin-top: 26px; }
.more { font-size: 19px; color: var(--link); }
.more::after { content: " \203A"; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 980px; font-size: 17px; line-height: 1.2;
  background: var(--blue); color: #fff; border: 0;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #333336; }
.store {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 14px; color: var(--grey); background: rgba(0,0,0,.04); border-radius: 980px; padding: 7px 16px;
}
.section.alt .store { background: rgba(0,0,0,.05); }
.platforms { font-size: 14px; color: var(--grey); margin-top: 10px; letter-spacing: 0.02em; }

/* ---------- imagery ---------- */
.media { margin: 56px auto 0; max-width: 980px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); background: #e8e8ed; }
.media img, .media video { width: 100%; }
.media.flat { box-shadow: none; }
.app-icon { width: 112px; height: 112px; border-radius: 25px; margin: 0 auto 22px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.app-icon.sm { width: 72px; height: 72px; border-radius: 16px; margin: 0; }
.logo-hero { width: min(420px, 78vw); margin: 0 auto 10px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); }

.icons-row { display: flex; justify-content: center; gap: 22px; margin-top: 48px; flex-wrap: wrap; }
.icons-row a { width: 76px; text-align: center; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--grey); }
.icons-row a:hover { text-decoration: none; color: var(--ink); }
.icons-row .pw-tile { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(160deg, #78c850, #3f8f2f); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.icons-row .pw-tile img { width: 64px; }

/* row of phone screenshots */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.4vw, 28px); max-width: 860px; margin: 56px auto 0; }
.phones.two { grid-template-columns: repeat(2, 1fr); max-width: 580px; }
.phones figure { margin: 0; }
.phones img { width: 100%; border-radius: clamp(14px, 3vw, 36px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.35); background: #e8e8ed; }
.phones figcaption { font-size: 14px; color: var(--grey); margin-top: 14px; line-height: 1.35; }
.phones figcaption b { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
@media (min-width: 761px) { .phones .lift { transform: translateY(-28px); } }

/* split feature: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; text-align: left; }
.split .body { margin-left: 0; }
.split.flip > :first-child { order: 2; }
.split .phone { max-width: 320px; margin: 0 auto; }
.split .phone img { border-radius: 36px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.35); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .split .body { margin-left: auto; }
  .split.flip > :first-child { order: 0; }
  .split .phone { max-width: 240px; }
}

/* feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 56px auto 0; text-align: left; }
.tile { background: #fff; border-radius: 22px; padding: 30px 28px; }
.section:not(.alt) .tile { background: var(--soft); }
.tile h3 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--grey); font-size: 17px; }
.tile .ico { font-size: 30px; margin-bottom: 14px; display: block; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* card strip (Pocket War) */
.cards { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; max-width: 980px; margin: 48px auto 0; }
.cards img { width: 100%; border-radius: 12px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 10px; } }

/* ---------- legal / text pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 22px 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 10px; }
.doc .meta { color: var(--grey); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: #333336; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { background: var(--soft); border-radius: 18px; padding: 20px 22px; margin: 24px 0; font-size: 17px; line-height: 1.55; }
.note p { margin: 0; }

/* FAQ (support) */
.faq { max-width: 760px; margin: 0 auto; text-align: left; }
.faq h3 { font-size: 28px; margin: 48px 0 8px; display: flex; align-items: center; gap: 14px; }
.faq h3 img { width: 40px; height: 40px; border-radius: 10px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-size: 19px; font-weight: 600; position: relative; letter-spacing: -0.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 300; color: var(--grey); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: #333336; font-size: 17px; line-height: 1.55; }
.contact-card { background: var(--soft); border-radius: 28px; padding: 44px 28px; max-width: 760px; margin: 40px auto 0; }
.contact-card .big { font-size: clamp(24px, 4.4vw, 34px); font-weight: 700; letter-spacing: -0.03em; word-break: break-word; }

/* ---------- footer ---------- */
.footer { background: var(--soft); color: var(--grey); font-size: 12px; line-height: 1.5; padding: 28px 22px 36px; }
.footer-inner { max-width: 980px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 6px; }
.footer a { color: var(--grey); }
.footer a:hover { color: var(--ink); }
.footer-bottom { padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 18px; }
  .media { margin-top: 40px; border-radius: 20px; }
  .phones { margin-top: 40px; }
  .body { font-size: 17px; }
  .icons-row { gap: 8px; flex-wrap: nowrap; }
  .icons-row a { width: 74px; }
  .icons-row .pw-tile, .icons-row .app-icon.sm { width: 64px; height: 64px; border-radius: 14px; }
  .icons-row .pw-tile img { width: 58px; }
}

/* Boorio logo (the wordmark with the blue i) in the nav and the home hero */
.wordmark img { height: 22px; width: auto; display: block; }
.hero-logo { width: min(520px, 80vw); height: auto; display: block; margin: 0 auto; }

/* ---------- home product slider ---------- */
.slider-section { padding-left: 0; padding-right: 0; }
.slider { position: relative; max-width: 1100px; margin: 0 auto; }
.slider-track {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { box-shadow: inset 0 0 0 3px rgba(0,113,227,.45); border-radius: 12px; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; padding: 0 22px; display: flex; flex-direction: column; justify-content: space-between; }
.slide-text { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.slide .platforms { margin-top: 18px; }
.slide-media {
  position: relative; margin: 36px auto 0; width: 100%; max-width: 980px; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #e8e8ed; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25);
}
.slide-media > img, .slide-media > video { width: 100%; height: 100%; object-fit: cover; }

/* screenshot trio inside a slide */
.slide-media.trio { display: flex; justify-content: center; align-items: center; gap: 3%; padding: 4% 6%; background: linear-gradient(160deg, #dff3d6, #cfe6f7); }
.slide-media.trio img { height: 100%; width: auto; max-width: 30%; object-fit: contain; border-radius: 6% / 3%; box-shadow: 0 18px 36px -18px rgba(0,0,0,.45); }

/* stage: a wide backdrop with a phone-shaped video on top */
.stage { background-size: cover; background-position: center; }
.stage-phone {
  position: absolute; top: 6%; bottom: 6%; left: 7%; aspect-ratio: 720 / 1560;
  border-radius: 9% / 4.2%; overflow: hidden; background: #000;
  border: 6px solid #1d1d1f; box-shadow: 0 24px 48px -16px rgba(0,0,0,.5);
}
.stage-phone video { width: 100%; height: 100%; object-fit: cover; }

.slider-arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; padding: 0 0 3px;
  background: rgba(210,210,215,.64); color: var(--ink); font-size: 30px; line-height: 40px; font-family: var(--font);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, opacity .2s;
}
.slider-arrow:hover { background: rgba(223,223,227,.9); }
.slider-arrow:disabled { opacity: .35; cursor: default; }
.slider-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 26px; }
.slider-dots { display: flex; justify-content: center; gap: 2px; }
.slider-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.24); transition: width .3s, background .3s; }
.slider-dots button[aria-selected="true"]::before { width: 24px; background: var(--ink); }

@media (hover: none), (max-width: 760px) { .slider-arrow { display: none; } }
@media (max-width: 760px) {
  .slide { padding: 0 18px; }
  .slide-media { aspect-ratio: 4 / 3; border-radius: 20px; margin-top: 24px; }
  .slide-media.trio { padding: 5% 4%; }
  .stage { background-position: 90% center; }
  .stage-phone { left: 7%; top: 5%; bottom: 5%; border-width: 4px; }
}

/* the stage on the Shark Frenzy page */
.media.stage { aspect-ratio: 16 / 9; position: relative; }
@media (max-width: 760px) { .media.stage { aspect-ratio: 4 / 3; } }

/* Pocket War: the live menu kingdom (day and night, troops about) behind the logo and title */
.pw-bg-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.pw-bg-hero .pw-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pw-bg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.55) 100%); }
.pw-bg-hero .headline, .pw-bg-hero .sub, .pw-bg-hero .platforms, .pw-bg-hero .store { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.pw-bg-hero .logo-hero { filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
