/* Pixperia links page: light theme, mobile-first */
:root {
  --bg: #F4F4F5; --surface: #FFFFFF; --line: #E4E4E7; --line-2: #D0D0D6;
  --ink: #0A0A0A; --ink-2: #52525B; --ink-3: #8A8A93;
  --sky: #0D99FF; --sky-ink: #0670BD; --amber: #FFB547;
  --hero: #0A0A0A; --hero-2: #1B1B1D; --hero-ink: #F5F5F5; --hero-dim: #9A9AA2;
  --r-sm: 10px; --r: 14px; --r-lg: 22px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: min(560px, calc(100vw - 32px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--col); margin-inline: auto; }

/* Top nav (STORTUP style) */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.stuck { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo img { height: 34px; width: auto; }
.nav-follow { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; transition: transform .15s; }
.nav-follow:hover { transform: translateY(-1px); }
.nav-follow svg { width: 17px; height: 17px; }

/* Hero offer box */
.hero { margin-top: 10px; position: relative; display: grid; grid-template-columns: 46% 1fr; min-height: 300px; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 100% 0%, var(--hero-2), var(--hero) 60%); color: var(--hero-ink); overflow: hidden; isolation: isolate; }
.reels { position: relative; overflow: hidden; margin-right: -30%; -webkit-mask-image: linear-gradient(90deg, #000 0 38%, rgba(0,0,0,.35) 66%, transparent 86%); mask-image: linear-gradient(90deg, #000 0 38%, rgba(0,0,0,.35) 66%, transparent 86%); }
.reels-track { display: flex; gap: 8px; padding-left: 14px; height: 100%; align-items: center; padding-block: 18px; width: max-content; animation: drift 38s linear infinite; }
.reels:hover .reels-track, .reels:focus-within .reels-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.reel { flex: none; width: 96px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #1C1C1E; box-shadow: 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-3deg); transition: transform .25s; }
.reel:nth-child(even) { transform: rotate(2.5deg) translateY(8px); }
.reel:hover { transform: rotate(0) scale(1.04); }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }

.offer { position: relative; z-index: 1; padding: 20px 18px 20px 4px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.timer { display: flex; align-items: flex-start; gap: 8px; }
.clock { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clock .sep { color: var(--amber); padding-bottom: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.pair { display: flex; gap: 3px; }
.dig { position: relative; width: .74em; height: 1.22em; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); overflow: hidden; }
.dig::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(0,0,0,.35); }
.dig span { display: block; }
.dig.flip span { animation: roll .42s cubic-bezier(.2,.8,.2,1); }
@keyframes roll { from { transform: translateY(-70%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
.timer-label { font-size: 11px; line-height: 1.15; font-weight: 600; color: var(--hero-dim); padding-top: 4px; }
.timer-label b { display: block; color: var(--amber); font-weight: 700; }
.timer-bar { margin-top: 8px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: -4px; }
.timer-bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 1s linear; }
.hero.bonus .timer-bar i { background: var(--sky); }

.pitch { margin: 0; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.pitch-sub { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--hero-dim); text-wrap: pretty; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price s { color: var(--hero-dim); font-size: 14px; text-decoration-thickness: 1.5px; text-decoration-color: #FF6B6B; }
.price strong { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--amber); line-height: 1; }
.buy { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border-radius: 999px; background: var(--sky); color: #0A0A0A; font-weight: 700; font-size: 14.5px; transition: transform .15s, box-shadow .2s; box-shadow: 0 6px 20px -6px rgba(13,153,255,.6); }
.buy svg { width: 16px; height: 16px; transition: transform .2s; }
.buy:hover { transform: translateY(-1px); }
.buy:hover svg { transform: translateX(3px); }

/* Tabs */
.tabs { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); margin-top: 26px; border-bottom: 1px solid var(--line-2); }
.tab { appearance: none; border: 0; background: none; height: 46px; font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--ink-3); transition: color .2s; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; bottom: -1px; left: 0; height: 2.5px; width: calc(100% / var(--n, 3)); background: var(--ink); border-radius: 2px; transition: transform .35s cubic-bezier(.3,.9,.3,1); }

.panel { padding-top: 14px; }
.panel[hidden] { display: none; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 14px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s; }
.row:hover { border-color: var(--line-2); }
.row.enter { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.txt { flex: 1; min-width: 0; }
.txt b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.txt small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.meta { color: var(--ink-3); }
.act { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); transition: background .2s, color .2s, border-color .2s; }
.act svg { width: 19px; height: 19px; }
.row:hover .act, .act:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.act.dl:hover svg { animation: nudge .5s ease; }
@keyframes nudge { 40% { transform: translateY(3px); } }
.grab { flex: none; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: #E6F4FF; color: var(--sky-ink); font-weight: 700; font-size: 13px; transition: background .2s, color .2s; }
.row:hover .grab { background: var(--sky); color: #0A0A0A; }
a.row { color: inherit; }
.row .go svg { transition: transform .2s; }
.row:hover .go svg { transform: translateX(3px); }

.more { display: flex; margin: 18px auto 0; height: 42px; padding: 0 22px; align-items: center; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.more:hover { background: var(--ink); color: #fff; }
.more[hidden] { display: none; }

.foot { margin: 40px auto 28px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.socials { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .2s, color .2s; }
.socials a:hover { background: var(--surface); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }

/* Lead popup */
.sheet { border: 0; padding: 0; width: min(420px, calc(100vw - 24px)); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10,10,10,.45); }
.sheet::backdrop { background: rgba(10,10,10,.5); backdrop-filter: blur(3px); }
.sheet[open] { animation: pop .32s cubic-bezier(.2,.9,.3,1.15); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.sheet form { padding: 24px 22px 22px; display: grid; gap: 14px; }
.sheet h2 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.sheet p { margin: -6px 0 0; color: var(--ink-2); font-size: 14px; }
.sheet .file { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; }
.sheet .file svg { width: 18px; height: 18px; color: var(--sky-ink); flex: none; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { height: 46px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font: 15px var(--sans); color: var(--ink); transition: border-color .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); }
.field .err { color: #C93A3A; font-weight: 500; font-size: 12.5px; }
.submit { height: 48px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.close svg { width: 16px; height: 16px; }
.fine { font-size: 12px; color: var(--ink-3); text-align: center; margin: -4px 0 0; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 50; width: max-content; max-width: calc(100vw - 32px); transform: translate(-50%, calc(100% + 40px)); display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transition: transform .35s cubic-bezier(.2,.9,.3,1.1); }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #6EE7A8; }

@media (max-width: 400px) {
  .hero { grid-template-columns: 42% 1fr; }
  .reel { width: 80px; }
  .clock { font-size: 32px; }
  .pitch { font-size: 14.5px; }
  .pitch-sub { font-size: 11.5px; }
  .price strong { font-size: 26px; }
}
@media (min-width: 640px) {
  .hero { min-height: 330px; }
  .reel { width: 112px; }
  .offer { padding: 26px 26px 26px 6px; }
  .clock { font-size: 46px; }
  .pitch { font-size: 18px; }
  .pitch-sub { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reels { overflow-x: auto; }
}

/* PHP build additions */
[hidden] { display: none !important; }
.hero.no-reels { grid-template-columns: 1fr; }
.hero.no-reels .offer { padding-left: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit:disabled { opacity: .6; cursor: progress; }
.form-err { margin: -4px 0 0; color: #C93A3A; font-size: 13px; font-weight: 500; }

/* Country dropdown and inputs themed (custom arrow, focus ring) */
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field select:hover, .field input:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus { box-shadow: 0 0 0 3px rgba(13,153,255,.18); }
.field select option { color: var(--ink); background: var(--surface); }
