/* Shoppies marketing site — matches the app's Sunset theme.
   Sunset gradient: #FFAE7B (orange) → #D9558C (magenta). Wordmark = the app's
   real Pacifico v2 logo, masked with the gradient. Background = the user's
   desktop wallpaper, blurred hard. */
:root {
  --c1: #FFAE7B;
  --c2: #D9558C;
  --grad: linear-gradient(115deg, #FFAE7B 0%, #E86E84 52%, #D9558C 100%);
  --accent: #E76A93;
  --ink: rgba(255,255,255,0.94);
  --ink-2: rgba(255,255,255,0.66);
  --ink-3: rgba(255,255,255,0.4);
  --line: rgba(255,255,255,0.12);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0a0810;
  color: var(--ink);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
}

/* Blurred wallpaper background */
.bg {
  position: fixed; inset: -60px; z-index: -2;
  background: url(assets/bg.jpg) center/cover no-repeat;
  filter: blur(72px) saturate(1.2); transform: scale(1.12);
}
.bg-veil {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,6,14,0.5) 0%, rgba(8,6,14,0.64) 55%, rgba(8,6,14,0.9) 100%);
}

.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Wordmark = the real Pacifico v2 SVG, masked with the Sunset gradient */
.wordmark {
  display: block; width: 122px; height: 46px; position: relative;
  /* Gradient fill lives on ::before (masked); the glow lives on the element
     itself so the mask can't clip it — mask is applied AFTER filter, which was
     erasing the drop-shadow. Two-tone, like the app's wordmark glow. */
  filter: drop-shadow(0 0 9px rgba(255, 174, 123, 0.55)) drop-shadow(0 0 22px rgba(217, 85, 140, 0.45));
}
.wordmark::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  -webkit-mask: url(assets/wordmark.svg) left center / contain no-repeat;
  mask: url(assets/wordmark.svg) left center / contain no-repeat;
}
.wordmark.sm { width: 84px; height: 32px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 38px 0 80px; }
.hero-copy h1 { font-family: "Syne", sans-serif; font-size: clamp(38px, 4.8vw, 60px); font-weight: 500; line-height: 1.06; letter-spacing: -0.012em; color: #fff; }
.hero-copy h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 470px; }

.downloads { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.dl { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; border-radius: 14px; padding: 0 22px; height: 58px; font-weight: 600; transition: transform .15s ease, filter .15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif; }
.dl svg { width: 20px; height: 24px; flex: none; }
.dl:hover { transform: translateY(-1px); filter: brightness(1.05); }
.dl-mac { background: var(--grad); color: #3a1320; box-shadow: 0 14px 36px rgba(217,85,140,0.34); }
.dl-mac span { font-size: 17px; }
.dl-app { background: #0b0b0d; color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.dl-app .two { display: flex; flex-direction: column; line-height: 1.04; text-align: left; font-size: 18px; font-weight: 600; }
.dl-app .two small { font-size: 10.5px; font-weight: 400; opacity: 0.8; }

/* Device mockups — real transparent frame PNGs with the screenshot layered behind */
.devices { position: relative; padding-bottom: 30px; }
.macbook { position: relative; max-width: 560px; margin: 0 auto; }
.iphone { position: absolute; right: -6px; bottom: -36px; width: 152px; z-index: 4; }
.dvc .frame { width: 100%; display: block; position: relative; z-index: 3; filter: drop-shadow(0 34px 70px rgba(0,0,0,0.55)); }
.screen-fit { position: absolute; z-index: 1; overflow: hidden; display: grid; }
.screen-fit .ph, .screen-fit .shot { grid-area: 1 / 1; width: 100%; height: 100%; }
.screen-fit .shot { object-fit: cover; }
.screen-fit .ph { display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 13px;
  background: radial-gradient(120% 120% at 26% 16%, rgba(255,174,123,0.24), transparent 55%), radial-gradient(130% 130% at 100% 100%, rgba(217,85,140,0.28), transparent 55%), #140d14; }
/* Screen cut-outs within each frame — generous so the shot tucks under the bezel */
.mac-fit { left: 10.2%; top: 6.1%; width: 80%; height: 75.4%; border-radius: 6px; }
.ip-fit { left: 9.7%; top: 5.6%; width: 80.2%; height: 88.8%; border-radius: 18px; }
/* Graceful fallback before the frame PNGs are added */
.dvc.noframe .frame { display: none; }
.dvc.noframe .screen-fit { position: static; border: 1px solid var(--line); border-radius: 16px; }
.macbook.noframe .screen-fit { aspect-ratio: 16 / 10; }
.iphone.noframe { width: 150px; }
.iphone.noframe .screen-fit { aspect-ratio: 9 / 19.5; border-radius: 30px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 36px 0 84px; }
.feat .ic { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--accent); }
.feat .ic svg { width: 34px; height: 34px; }
.feat h3 { margin-top: 14px; font-family: "Syne", sans-serif; font-size: 21px; font-weight: 700; color: #fff; }
.feat p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 330px; }

/* Footer */
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-3); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.16); color: var(--ink-2); }
.socials svg { width: 17px; height: 17px; }
.socials a:hover { color: #fff; border-color: var(--c2); }
.copyright { color: var(--ink-3); font-size: 13px; padding: 16px 0 50px; }

/* Policy pages */
.doc { padding: 24px 0 80px; max-width: 760px; }
.doc h1 { font-family: "Syne", sans-serif; font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.doc .meta { color: var(--ink-3); font-size: 14px; margin: 12px 0 30px; }
.doc h2 { font-family: "Syne", sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin: 32px 0 9px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc ul { margin: 8px 0 8px 22px; } .doc li { margin: 6px 0; }
.doc a { color: var(--c2); }
.nav .home { color: var(--ink-2); text-decoration: none; font-size: 15px; border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; }
.nav .home:hover { border-color: var(--c2); color: #fff; }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .devices { margin: 6px 0 24px; max-width: 520px; }
  .features { grid-template-columns: 1fr; gap: 26px; }
  .nav-links { gap: 18px; }
}

/* Pre-launch splash — a big glowing wordmark on the blurred wallpaper, nothing else.
   The wordmark <img> carries its own Sunset gradient fill (so it renders over file://
   and Quick Look, where CSS masks don't load). It pops in with a glitter burst. */
.splash { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.splash-logo {
  width: clamp(250px, 46vw, 560px); height: auto; display: block; cursor: pointer;
  opacity: 0; transform: scale(0.7);
  filter: drop-shadow(0 0 22px rgba(255, 174, 123, 0.55)) drop-shadow(0 0 60px rgba(217, 85, 140, 0.50));
  /* Short beat (animation-delay) then pop in — PURE CSS, so the logo reveals even if
     JS is blocked/stale. JS only hooks the moment it starts to fire the glitter. */
  animation: logoIntro 0.85s cubic-bezier(.2, .8, .2, 1) 0.55s both, splashGlow 4.6s ease-in-out 1.4s infinite;
}
#glitter { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
@keyframes logoIntro { 0% { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes splashGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 174, 123, 0.50)) drop-shadow(0 0 52px rgba(217, 85, 140, 0.42)); }
  50%      { filter: drop-shadow(0 0 32px rgba(255, 174, 123, 0.72)) drop-shadow(0 0 86px rgba(217, 85, 140, 0.62)); }
}
@media (prefers-reduced-motion: reduce) { .splash-logo { opacity: 1; transform: none; animation: none; } }
