/* Wallpaper store. Mobile first: most visitors arrive from a phone. */
:root {
  --bg: #0b0c10; --panel: #14161c; --panel-2: #1b1e26; --line: #272a33;
  --text: #f3f1ec; --muted: #a3a7b3; --accent: #f4c77d; --accent-ink: #1d1503; --good: #7bd8a6; --bad: #ff8f8f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px; --pad: 20px; --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: at least 44px tall so they are easy to tap */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; font-weight: 600;
  transition: transform .12s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { border-color: #3a3e4a; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffd791; }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.added { background: rgba(123, 216, 166, .14); border-color: rgba(123, 216, 166, .5); color: var(--good); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 12, 16, .82); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 17px; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #f4c77d, #c96b8f 55%, #5b6cf0); display: block; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a.link { padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 15px; border-radius: 10px; }
.top nav a.link:hover { color: var(--text); }
@media (max-width: 640px) { .top nav a.link.wide { display: none; } }
@media (max-width: 430px) { .top nav a.link { display: none; } }
.brand span, .top nav a { white-space: nowrap; }

/* Hero */
.hero { padding: 36px 0 28px; overflow: hidden; }
.hero .wrap { display: grid; gap: 34px; align-items: center; }
.hero h1 { font-size: clamp(38px, 9.5vw, 68px); }
.hero .lede { margin-top: 16px; color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); max-width: 34em; }
.hero .cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; padding: 0; list-style: none; }
.hero .facts li::before { content: "✓"; color: var(--good); margin-right: 7px; font-weight: 700; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 300px; }
.phones .phone { width: 34%; max-width: 190px; }
.phones .phone:nth-child(1) { transform: rotate(-7deg) translate(14%, 4%); z-index: 1; }
.phones .phone:nth-child(2) { width: 40%; max-width: 224px; z-index: 2; }
.phones .phone:nth-child(3) { transform: rotate(7deg) translate(-14%, 4%); z-index: 1; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
}

/* Phone frame, used everywhere a wallpaper is shown */
.phone { position: relative; aspect-ratio: 1320 / 2868; border-radius: 13% / 6%; background: #000; overflow: hidden;
  box-shadow: 0 0 0 2px #2d3038, 0 0 0 5px #0c0d11, 0 24px 60px rgba(0, 0, 0, .55); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone::before { content: ""; position: absolute; top: 2.2%; left: 50%; width: 30%; height: 3.1%; transform: translateX(-50%);
  background: #000; border-radius: 999px; z-index: 2; }
.phone.duo { aspect-ratio: 1878 / 2670; border-radius: 7% / 5%; }
.phone.duo::before { width: 5%; height: 2.4%; top: 1.6%; left: 88%; }
.lock { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35); pointer-events: none; font-family: var(--sans); }
.lock .date { margin-top: 15%; font-size: 5.2cqw; font-weight: 600; opacity: .95; }
.lock .time { font-size: 25cqw; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.phone { container-type: inline-size; }

/* Sections */
section { padding: 44px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(28px, 6vw, 40px); margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 40em; }

/* Price cards */
.prices { display: grid; gap: 12px; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.price .amount { font-family: var(--serif); font-size: 40px; line-height: 1; }
.price .what { font-weight: 600; }
.price .note { color: var(--muted); font-size: 14px; flex: 1; }
.price .btn { margin-top: 12px; }
.price.best { border-color: var(--accent); background: linear-gradient(180deg, rgba(244, 199, 125, .10), var(--panel) 60%); position: relative; }
.price.best .tag { position: absolute; top: -11px; left: 18px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Packs */
.pack { padding: 26px 0; border-top: 1px solid var(--line); }
.pack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.pack-head h3 { font-size: 26px; }
.pack-head .tagline { color: var(--muted); font-size: 15px; margin-top: 3px; }
/* A row you swipe sideways on phones; a full grid on wide screens */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--pad) 18px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.row::-webkit-scrollbar { display: none; }
.row.duo { grid-auto-columns: 52%; }
.thumb { scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: left; border-radius: 16px; }
.thumb .phone { box-shadow: 0 0 0 1px #2d3038, 0 12px 28px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.thumb:hover .phone { transform: translateY(-3px); }
.thumb .name { display: block; margin-top: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .free { position: absolute; left: 8%; bottom: 4%; z-index: 3; background: var(--good); color: #062213; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
@media (min-width: 560px) { .row { grid-auto-columns: 26%; } .row.duo { grid-auto-columns: 34%; } }
@media (min-width: 900px) {
  .row { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; gap: 18px 16px; }
  .row.duo { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1100px) { .row { grid-template-columns: repeat(10, 1fr); gap: 12px; } .row.duo { grid-template-columns: repeat(8, 1fr); } }

/* Free sample */
.free-box { background: linear-gradient(135deg, rgba(91, 108, 240, .18), rgba(201, 107, 143, .14) 60%, rgba(244, 199, 125, .12));
  border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px; }
.free-box h2 { font-size: clamp(26px, 6vw, 36px); }
.free-form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-width: 520px; }
.free-form input[type=email], .field input { min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35);
  padding: 0 16px; width: 100%; font-size: 16px; }
.free-form label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.free-form label.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
@media (min-width: 620px) { .free-form .line { display: flex; gap: 10px; } .free-form .line .btn { flex: none; } }
.msg { font-size: 14px; min-height: 1.4em; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--good); }

/* Steps and FAQ */
.steps { display: grid; gap: 14px; padding: 0; list-style: none; margin: 0; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(244, 199, 125, .16); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 120px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { text-decoration: none; padding: 6px 0; }
footer a:hover { color: var(--text); }

/* Cart bar: always within thumb reach */
.cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(20, 22, 28, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s ease; }
.cart.show { transform: none; }
.cart .inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.cart .sum { flex: 1; min-width: 0; }
.cart .label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart .hint { font-size: 13px; color: var(--accent); background: none; border: 0; padding: 2px 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.cart .hint.plain { color: var(--muted); text-decoration: none; cursor: default; }
.cart .clear { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 12px 8px; flex: none; }
.cart .btn { flex: none; }

/* Viewer */
dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
dialog::backdrop { background: rgba(5, 6, 9, .9); backdrop-filter: blur(6px); }
.viewer { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 12px var(--pad) calc(16px + env(safe-area-inset-bottom)); gap: 10px; max-width: 760px; margin: 0 auto; }
.viewer .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.viewer .stage { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; }
.viewer .stage .phone { height: 100%; max-height: 100%; width: auto; max-width: 100%; }
.viewer .nav { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); font-size: 20px; }
.viewer .info { display: grid; gap: 10px; }
.viewer .info .title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.viewer .info h3 { font-size: 22px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); font-size: 18px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; min-height: 40px; padding: 0 14px; }
.toggle[aria-pressed=true] { color: var(--text); border-color: #454957; }
@media (max-width: 520px) { .viewer .nav { display: none; } }

/* Download page */
.page { padding: 34px 0 60px; }
.page h1 { font-size: clamp(32px, 7vw, 48px); }
.notice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: 15px; }
.notice.warn { border-color: rgba(244, 199, 125, .5); }
.group { margin-top: 34px; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.group-head h2 { font-size: 26px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
.dl-grid.duo { grid-template-columns: repeat(2, 1fr); }
.dl-card .phone { box-shadow: 0 0 0 1px #2d3038, 0 10px 24px rgba(0, 0, 0, .4); }
.dl-card .t { font-size: 14px; margin: 9px 0 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 560px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .dl-grid { grid-template-columns: repeat(5, 1fr); } .dl-grid.duo { grid-template-columns: repeat(4, 1fr); } }
.howto { margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.howto ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.howto li { margin: 4px 0; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; display: inline-block; vertical-align: -5px; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Text pages */
.prose { max-width: 760px; padding: 34px var(--pad) 80px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 7vw, 46px); margin-bottom: 8px; }
.prose h2 { font-size: 23px; margin: 30px 0 8px; }
.prose p, .prose li { color: #cfd2da; margin: 10px 0; }
.prose ul { padding-left: 20px; }
.prose .draft { background: rgba(244, 199, 125, .1); border: 1px solid rgba(244, 199, 125, .45); border-radius: 12px; padding: 12px 14px; color: var(--accent); font-size: 14px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 14px; color: var(--muted); }
.order-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
