/* Unboxed Apps storefront — built on the apps.theunboxed.uk design tokens */
:root {
  --bg: #07080c;
  --surface: rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f3f4f8;
  --text-dim: #9aa0b4;
  --text-faint: #80869c;   /* 5.5:1 on the page background (readable small text) */
  --accent: #7c93ff;
  --accent-2: #b083ff;
  --accent-3: #ff8fd8;
  --accent-4: #5ad9ff;
  --success: #6cffa1;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
  --gradient-main: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  color: var(--text); background-color: var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  letter-spacing: -0.011em; line-height: 1.5;
}
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(124,147,255,0.38), transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(176,90,255,0.32), transparent 42%),
    radial-gradient(circle at 25% 85%, rgba(255,143,216,0.24), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(90,217,255,0.26), transparent 42%);
  filter: blur(70px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0% { transform: translate(0,0) scale(1) rotate(0); }
  50% { transform: translate(-3%,3%) scale(1.1) rotate(4deg); }
  100% { transform: translate(3%,-2%) scale(1.02) rotate(-3deg); }
}
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #b9c4ff; }
::selection { background: rgba(124,147,255,0.35); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

.gradient-text {
  background-image: var(--gradient-main); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 6s ease infinite;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9,10,15,0.7); backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: .55;
  background: linear-gradient(90deg, transparent, rgba(124,147,255,.7), rgba(255,143,216,.6), transparent);
}
.topbar { min-height: 62px; }   /* drawn by store.js: keep its room so the page doesn't jump */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16.5px; color: var(--text); white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px;
  background-image: var(--gradient-main); background-size: 220% 220%; animation: gradientShift 7s ease infinite;
  color: #0a0b10; font-weight: 800; font-size: 14px; box-shadow: 0 6px 18px rgba(176,90,255,.4);
}
.topnav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-dim); border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--border); }
.nav-link.primary { background: rgba(124,147,255,.12); border-color: rgba(124,147,255,.35); color: #c3cdff; }
.nav-link.primary:hover { background: rgba(124,147,255,.2); }
@media (max-width: 700px) { .topnav .hide-sm { display: none; } .topbar .wrap { height: 56px; } .topbar { min-height: 56px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 650; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit;
}
.btn-primary {
  color: #0a0b10; background-image: var(--gradient-main); background-size: 200% 200%;
  animation: gradientShift 8s ease infinite; box-shadow: 0 10px 30px rgba(176,131,255,.35);
}
.btn-primary:hover { color: #0a0b10; transform: translateY(-2px); box-shadow: 0 14px 38px rgba(176,131,255,.5); }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.1); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.03em; font-weight: 750; }
.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-dim); margin-bottom: 22px;
}
.eyebrow b {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #0a0b10;
  background: var(--gradient-main); padding: 3px 8px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 auto 20px; max-width: 900px; font-weight: 800; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

.icon-cloud { position: relative; margin: 64px auto 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.icon-cloud .app-icon { width: 76px; height: 76px; border-radius: 20px; font-size: 28px; animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .icon-cloud .app-icon { width: 56px; height: 56px; border-radius: 15px; font-size: 21px; } }

/* ---------- App icon (generated) ---------- */
.app-icon {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #0a0b10; border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
img.app-icon { object-fit: cover; }

/* ---------- Tabs / chips ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: #0a0b10; background: var(--gradient-main); border-color: transparent; }

/* ---------- App cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; color: inherit;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 60ms);
}
.app-card:hover { color: inherit; transform: translateY(-6px); border-color: rgba(176,131,255,.55); box-shadow: 0 22px 54px rgba(124,147,255,.22), 0 10px 24px rgba(255,143,216,.16); }
.app-card-head { display: flex; gap: 14px; align-items: center; }
.app-card h3 { margin: 0 0 2px; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.app-card .tagline { margin: 0; color: var(--text-dim); font-size: 13.5px; }
.app-card .desc { margin: 0; font-size: 14px; color: #c9cbdb; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.badge.new { background: rgba(108,255,161,.12); border-color: rgba(108,255,161,.35); color: var(--success); }
.badge.solo { background: rgba(255,143,216,.12); border-color: rgba(255,143,216,.35); color: var(--accent-3); }
.price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.price small { color: var(--text-faint); font-weight: 500; }

.empty { text-align: center; color: var(--text-dim); padding: 60px 0; grid-column: 1 / -1; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 22px;
}
.plan.featured { border-color: transparent; background:
  linear-gradient(180deg, rgba(20,21,30,.96), rgba(14,15,22,.96)) padding-box, var(--gradient-main) border-box; border: 1.5px solid transparent;
  box-shadow: 0 24px 60px rgba(124,147,255,.2); }
.plan .tag { position: absolute; top: -12px; left: 28px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #0a0b10; background: var(--gradient-main); padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan .amount span { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.plan p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--success); font-weight: 800; }
.plan .btn { width: 100%; }
.trust { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 30px; color: var(--text-dim); font-size: 14px; }
.trust span::before { content: "●"; margin-right: 8px; font-size: 9px; vertical-align: middle; color: var(--accent-2); }

/* ---------- Steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step, .feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step .num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  color: #0a0b10; background: var(--gradient-main); margin-bottom: 16px;
}
.step h3, .feature h3 { margin: 0 0 8px; font-size: 18px; }
.step p, .feature p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.feature .ico { font-size: 22px; margin-bottom: 14px; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(124,147,255,.12); border: 1px solid rgba(124,147,255,.3); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: 60px 28px; border-radius: 28px; border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 20% 0%, rgba(124,147,255,.25), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(255,143,216,.2), transparent 60%), var(--surface);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -0.03em; }
.cta-band p { color: var(--text-dim); margin: 0 0 26px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: rgba(124,147,255,.35); background: var(--surface-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-dim); }

/* ---------- Catalog page ---------- */
.page-head { padding: 64px 0 28px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 12px; letter-spacing: -0.04em; }
.page-head p { color: var(--text-dim); margin: 0; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.search {
  flex: 1 1 280px; max-width: 420px; padding: 12px 16px; border-radius: 12px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); outline: none;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,147,255,.2); }
.toolbar select {
  padding: 11px 40px 11px 14px; border-radius: 12px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
  background-color: var(--surface-2); border: 1px solid var(--border-strong); -webkit-appearance: none; appearance: none; color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b6b3c9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.toolbar select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,147,255,.2); }
.toolbar select option { background: #16141f; color: #ecebf6; }
.toolbar .tabs { margin: 0; justify-content: flex-start; }

/* ---------- App detail ---------- */
.detail { padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-areas: "top buy" "main buy"; column-gap: 40px; align-items: start; }
.d-top { grid-area: top; } .d-main { grid-area: main; min-width: 0; } .detail > .buy-box { grid-area: buy; }
/* Phones: the ways to get it come straight after the version facts, before About. */
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; grid-template-areas: "top" "buy" "main"; } .detail > .buy-box { position: static; margin-bottom: 6px; } }
.detail-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.detail-head .app-icon { width: 96px; height: 96px; border-radius: 24px; font-size: 38px; }
.detail h1 { margin: 0 0 4px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; }
.detail .tagline { margin: 0; color: var(--text-dim); font-size: 17px; }
.detail .body { font-size: 16.5px; color: #d6d8e6; }
.detail ul.feat { padding: 0; list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.detail ul.feat li { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.buy-box { position: sticky; top: 90px; padding: 26px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); display: grid; gap: 14px; }
.buy-box .opt { padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(0,0,0,.2); }
.buy-box .opt h4 { margin: 0 0 4px; font-size: 15px; display: flex; justify-content: space-between; }
.buy-box .opt p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-dim); }
.buy-box .opt .btn { width: 100%; }
.back { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--text-dim); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.shots { margin-top: 0; }
.shots img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); display: block; }
button.shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; display: block; width: 100%; transition: transform .15s; }
button.shot:hover { transform: translateY(-2px); }
button.shot:focus-visible { outline: 2px solid var(--accent, #7c93ff); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(5,6,10,.92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox figcaption { color: var(--text-dim); font-size: 13px; min-height: 1em; }
.lb-close, .lb-nav { position: absolute; border: 1px solid var(--border-strong); background: rgba(20,22,32,.85); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 18px; line-height: 1; }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 28px; padding-bottom: 3px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(60,64,90,.95); }
html.lb-open { overflow: hidden; }
@media (max-width: 700px) { .lightbox { padding: 64px 8px 72px; } .lb-nav { top: auto; bottom: 14px; transform: none; } .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); } }
.shot-placeholder {
  aspect-ratio: 16/10; border-radius: 18px; border: 1px dashed var(--border-strong); display: grid; place-items: center;
  color: var(--text-faint); font-size: 14px; background: var(--surface); margin-top: 28px;
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; color: var(--text-faint); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand p { color: var(--text-dim); margin: 12px 0 16px; max-width: 280px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h2 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.foot-col a { color: var(--text-dim); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border); }
.foot-bottom a { color: var(--text-dim); }
.foot-bottom span a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 0 24px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; margin: 0 0 6px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: #d6d8e6; font-size: 15.5px; }
.legal .draft { padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(255,143,216,.5); background: rgba(255,143,216,.08); color: var(--accent-3); font-size: 14px; }

/* ---------- App page sections ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 0 0 28px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--border); }
.facts div { background: rgba(10,11,16,.85); padding: 12px 14px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; }
.d-section { margin: 34px 0 0; }
.d-section h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 12px; }
.highlights { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.highlights li { padding: 14px 16px 14px 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); position: relative; font-size: 14.5px; }
.highlights li::before { content: "✓"; position: absolute; left: 16px; top: 13px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0a0b10; background: var(--gradient-main); }
.feature-block { display: grid; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--border); }
.feature-block:first-of-type { border-top: 0; padding-top: 6px; }
.feature-block.has-img { grid-template-columns: 1fr 1fr; }
.feature-block.flip.has-img > img, .feature-block.flip.has-img > .shot { order: -1; }
.feature-block h3 { margin: 0 0 8px; font-size: 18px; }
.feature-block .body { font-size: 15px; margin: 0 0 8px; }
.feature-block button.shot { cursor: zoom-in; }
.feature-block img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; border: 1px solid var(--border); background: rgba(0,0,0,.25); }
@media (max-width: 700px) { .feature-block.has-img { grid-template-columns: 1fr; } .feature-block.flip.has-img > img, .feature-block.flip.has-img > .shot { order: 0; } }
ul.plain { padding-left: 18px; margin: 0; } ul.plain li { color: #d6d8e6; margin: 6px 0; }

/* ---------- Content pages ---------- */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 58px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 14px; }
.page-hero p { color: var(--text-dim); font-size: 18px; max-width: 640px; margin: 0 auto; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { color: #d6d8e6; font-size: 16px; line-height: 1.65; }
.prose ol, .prose ul { padding-left: 22px; }
.callout { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); margin: 22px 0; }
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; color: var(--text-dim); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.compare { width: 100%; border-collapse: collapse; margin: 10px 0 30px; font-size: 15px; }
.compare th, .compare td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.compare th { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.compare td.yes { color: var(--success); font-weight: 700; }
.compare td.no { color: var(--text-faint); }
.compare-wrap { overflow-x: auto; }
.legal-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.legal-list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.legal-list a:hover { border-color: var(--border-strong); color: var(--text); }
.legal-list span { color: var(--text-dim); font-size: 14px; }
.dl-card { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 26px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); }
.dl-card .app-icon { width: 88px; height: 88px; border-radius: 22px; font-size: 38px; }
.dl-card h2 { margin: 0 0 6px; }
.dl-card p { margin: 0; color: var(--text-dim); }
.dl-meta { font-size: 13px; color: var(--text-faint); margin-top: 8px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.platform { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.platform h3 { margin: 0 0 6px; font-size: 16px; }
.platform p { margin: 0; color: var(--text-dim); font-size: 14px; }
.notfound { text-align: center; padding: 120px 0 60px; }
.notfound h1 { font-size: 72px; margin: 0; }

/* Phones: keep the header to logo + Sign in + Download. */
@media (max-width: 520px) {
  .topbar .wrap { gap: 8px; }
  .topnav { gap: 6px; }
  .topnav .nav-link:not(.primary) { display: none; }
  .topbar .brand { font-size: 15px; gap: 8px; }
  .topbar .brand-mark { width: 26px; height: 26px; font-size: 12px; }
  .topnav .btn-sm { padding: 7px 12px; }
}

.code-bar { text-align: center; padding: 9px 16px; font-size: 14px; color: #0a0b10; background: var(--gradient-main); }

/* Logo: the Unfold mark (brand/final/unboxed-mark.svg) replaces the old lettered square. */
.brand-mark { background: url(brand-mark.svg) center / 100% 100% no-repeat; animation: none; color: transparent; font-size: 0; border-radius: 23%; box-shadow: 0 6px 18px rgba(110, 80, 255, .35); }

/* Version history on app pages */
.history summary { cursor: pointer; font-size: 20px; font-weight: 700; padding: 6px 0; }
.history-item { padding: 14px 0; border-top: 1px solid var(--border, rgba(255,255,255,.08)); }
.history-item h3 { font-size: 15px; margin: 0 0 6px; }
.history-item h3 span { color: var(--muted, #9a98ad); font-weight: 400; margin-left: 8px; font-size: 13px; }

/* Ratings and reviews */
.stars-sm { color: #ffc857; font-weight: 600; margin-right: 6px; }
.rating-big strong { font-size: 28px; color: var(--text, #fff); margin-right: 4px; }
.review { padding: 14px 0; border-top: 1px solid var(--border, rgba(255,255,255,.08)); }
.review h3 { font-size: 15px; margin: 4px 0; }
.review-stars { color: #ffc857; letter-spacing: 2px; }
.review-stars span { color: rgba(255,255,255,.18); }
.review-by { font-size: 12px; color: var(--muted, #9a98ad); margin: 4px 0 0; }
.review-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 14px; }

/* App videos: our own thumbnail first, YouTube's player only after a click */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--border, rgba(255,255,255,.08)); border-radius: 14px; overflow: hidden; background: #0f0e18; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s, transform .3s; }
.video:hover img { opacity: 1; transform: scale(1.02); }
.video .play { position: absolute; left: 50%; top: 45%; width: 62px; height: 44px; margin: -22px 0 0 -31px; border-radius: 12px; background: rgba(10,10,20,.78); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.video .play::after { content: ""; position: absolute; left: 25px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.video:hover .play { background: linear-gradient(135deg, #8fa2ff, #b083ff 50%, #ff8fd8); }
.video .video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.video-note { font-size: 12px; color: var(--muted, #9a98ad); margin-top: 10px; }
.d-main > .d-section:first-child { margin-top: 18px; }

/* Pictures keep their own shape: a tall phone screenshot is drawn as a phone screen, not centred
   in a wide box. Corners, outline and shadow sit on the picture itself. */
.feature-block button.shot { display: flex; justify-content: center; width: 100%; }
.feature-block img { width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: unset; background: none; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.shots { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.shots button.shot { width: auto; max-width: 100%; }
.shots img { width: auto; max-width: 100%; height: auto; max-height: 320px; aspect-ratio: auto; object-fit: unset; }

/* Download page: the real Unboxed Apps logo on every launcher card (same logo on every platform). */
.dl-logo { width: 72px; height: 72px; flex: none; border-radius: 23%; box-shadow: 0 8px 22px rgba(110, 80, 255, .35); }
