/* Swapstar website — same identity as the app ("TABLOID POP"): hot pink, cream paper with halftone dots, stickers with
   thick ink outlines and hard ink shadows, Bowlby One + Baloo 2. No dark mode. */
@font-face { font-family: "Bowlby"; src: url(/fonts/BowlbyOne-Regular.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Baloo"; src: url(/fonts/Baloo2-ExtraBold.woff) format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Baloo"; src: url(/fonts/Baloo2-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
:root { --pink: #FF3D8B; --pink-deep: #E0206F; --sun: #FFD23F; --cobalt: #3A3DFF; --mint: #2EE6A8; --lilac: #B78CFF; --paper: #FFF3DC; --ink: #20123A; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--pink); color: var(--ink); font-family: "Baloo", system-ui, sans-serif; font-weight: 600; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- first screen: logo + picture + the two store buttons, nothing else ---------- */
.hero { position: relative; height: 100vh; height: 100lvh; overflow: hidden; }
.hero-pic { position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); }
.hero-logo { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 22px); transform: translateX(-50%); width: min(78vw, 360px); z-index: 2; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(32,18,58,.18)); }
.hero .stores { position: absolute; left: 50%; transform: translate(-50%, -100%); top: calc(100vh - 20px); top: calc(100svh - 20px - env(safe-area-inset-bottom)); z-index: 2; width: max-content; max-width: calc(100vw - 24px); }

.stores { display: flex; gap: 12px; justify-content: center; }
.store { display: flex; align-items: center; gap: 10px; text-decoration: none; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink); padding: 8px 16px 8px 12px; min-width: 0; transition: transform .08s, box-shadow .08s; }
.store:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.store small { font-size: 11px; font-weight: 600; }
.store b { font-family: "Bowlby", sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .2px; }
@media (max-width: 360px) { .store { padding: 7px 10px 7px 8px; gap: 6px; } .store svg { width: 24px; height: 24px; } .store b { font-size: 15px; } .stores { gap: 8px; } }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; height: 100vh; height: 100lvh; }
  .hero-pic { left: auto; right: 0; width: 60%; height: 100%; }
  .hero-pic img { object-position: 50% 62%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, #000 80%, transparent 100%); mask-composite: intersect; }
  .hero-side { grid-column: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 44px; padding-left: 7vw; z-index: 2; height: 100vh; }
  .hero-logo, .hero .stores { position: static; transform: none; width: auto; }
  .hero-logo img { width: min(34vw, 460px); }
  .store { padding: 10px 20px 10px 14px; } .store b { font-size: 21px; } .store svg { width: 34px; height: 34px; }
}

/* ---------- below the fold (paper) ---------- */
.below { margin-top: 26vh; background: var(--pink); }
.paper { background: var(--paper); background-image: radial-gradient(rgba(255,61,139,.13) 22%, transparent 24%); background-size: 16px 16px; border-top: 3px solid var(--ink); border-radius: 36px 36px 0 0; padding: 56px 18px 30px; }
.wrap { max-width: 1060px; margin: 0 auto; }
h1, h2, h3 { font-family: "Bowlby", sans-serif; font-weight: 400; letter-spacing: .2px; margin: 0; line-height: 1.05; }
.slogan { text-align: center; font-size: clamp(38px, 8vw, 78px); }
.slogan em { font-style: normal; color: var(--pink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.intro { text-align: center; font-size: clamp(18px, 2.4vw, 23px); max-width: 680px; margin: 18px auto 0; }
.features { display: grid; gap: 54px; margin: 64px 0; }
.feature { display: grid; gap: 22px; align-items: center; }
.feature h2 { font-size: clamp(28px, 4.4vw, 46px); }
.feature p { font-size: 19px; margin: 12px 0 0; }
.sticker { display: inline-block; background: var(--sun); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 12px; padding: 2px 12px; font-weight: 800; transform: rotate(-3deg); margin-bottom: 14px; }
.phone { width: min(78vw, 300px); margin: 0 auto; border: 4px solid var(--ink); border-radius: 44px; background: var(--ink); padding: 10px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-2deg); }
.phone img { border-radius: 34px; width: 100%; height: auto; }
.feature:nth-child(even) .phone { transform: rotate(2deg); }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 60px; }
  .feature:nth-child(even) .phone { order: 2; }
}
.cta { text-align: center; margin: 40px 0 10px; }
.cta h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 26px; }
footer { text-align: center; padding: 50px 18px calc(30px + env(safe-area-inset-bottom)); font-size: 15px; }
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
footer a { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--ink); }

/* ---------- other pages ---------- */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--pink); border-bottom: 3px solid var(--ink); padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; display: flex; align-items: center; gap: 12px; }
.topbar a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar img { height: 30px; width: auto; }
.back { background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); padding: 0 10px; font-weight: 800; }
.doc { background: var(--paper); min-height: 100vh; padding: 34px 18px 60px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 6vw, 54px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.55; }
.doc .muted { opacity: .7; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); padding: 18px 20px; margin: 18px 0; }
.code { font-family: "Bowlby", sans-serif; font-size: 34px; letter-spacing: 3px; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; padding: 4px 16px; display: inline-block; box-shadow: 3px 3px 0 var(--ink); }
.post { max-width: 460px; margin: 0 auto; }
.post img { border: 4px solid var(--ink); border-radius: 26px; box-shadow: 7px 7px 0 var(--ink); width: 100%; height: auto; background: #fff; }
.post h1 { text-align: center; margin: 26px 0 8px; }
.post p { text-align: center; }
.center { text-align: center; }
