/* Mobile PWA presentation. Desktop rules remain owned by styles.css. */
.mobile-brand,.mobile-notification,.mobile-bottom-nav,.mobile-more-sheet,.notification-panel{display:none}

@media (max-width: 767px){
  :root{--mobile-purple:#cb35f4;--mobile-hot:#f04bff;--mobile-deep:#080511;--mobile-card:#160b22}
  html{scroll-padding-top:92px;scroll-behavior:smooth}
  body{min-width:320px;padding-bottom:calc(108px + env(safe-area-inset-bottom));overflow-x:hidden;background:radial-gradient(ellipse at 50% 0%,#31104a 0%,#11091b 38%,#080511 78%)}
  .topbar{position:sticky;top:0;z-index:20;min-height:94px;height:auto;padding:calc(10px + env(safe-area-inset-top)) 18px 10px;display:flex;justify-content:space-between;gap:12px;background:linear-gradient(100deg,#0a0512f5,#11071bfa);border-bottom:2px solid #df45ff;box-shadow:0 4px 24px #bb21ff49}
  .topbar>.brand,.topbar>.menu{display:none}
  .mobile-brand{display:flex;align-items:center;gap:12px;min-width:0}
  .mobile-brand img{width:62px;height:62px;flex:none;border:2px solid #ffcf22;border-radius:50%;object-fit:cover;box-shadow:0 0 16px #ce36fb88}
  .mobile-brand span{display:grid;gap:2px;line-height:1.12}
  .mobile-brand strong{font-size:clamp(18px,5vw,23px);font-weight:900;font-style:italic;letter-spacing:-.04em;color:#fff}
  .mobile-brand small{font-size:15px;color:#cfc6d6}
  .topbar nav{display:none!important}
  .mobile-notification{display:grid;place-items:center;flex:none;width:58px;height:58px;margin:auto 0 auto auto;border:2px solid var(--mobile-hot);border-radius:17px;background:linear-gradient(145deg,#210d31,#0b0712);color:#fff;box-shadow:0 0 16px #d136ff4a;cursor:pointer}
  .mobile-notification svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .hero{display:block;isolation:isolate;position:relative;min-height:440px;height:clamp(440px,118vw,510px);padding:36px 18px 24px;overflow:hidden;border-bottom:3px solid #ed45ff;background:#10071d url('/assets/swap-meet-j-header-background.png') center 46%/cover no-repeat}
  .hero::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(8,4,16,.92) 0%,rgba(12,5,21,.77) 43%,rgba(12,5,21,.23) 78%,rgba(12,5,21,.07) 100%),linear-gradient(0deg,rgba(8,4,15,.74),transparent 48%);pointer-events:none}
  .hero::after{content:"";position:absolute;inset:auto -4% -1px;height:38px;z-index:3;pointer-events:none;background:linear-gradient(165deg,transparent 0 40%,#8e16d5 43%,#e03dff 49%,transparent 53%)}
  .hero-brand{display:none}
  .hero-copy{position:relative;z-index:4;width:min(100%,350px);max-width:350px;padding:0;margin:0}
  .hero h1{margin:0 0 13px;font-size:clamp(38px,10.5vw,48px);line-height:.94;letter-spacing:-.065em;text-transform:none;font-style:italic;white-space:nowrap;text-shadow:0 3px 16px #05020dbb}
  .hero h1 span{margin-top:4px;color:#ffcf00;font-size:1em;white-space:nowrap;text-shadow:2px 4px #8f2be3,4px 6px #080511}
  .hero p{max-width:310px;margin:15px 0 0;font-size:clamp(14px,4vw,17px);line-height:1.34;color:#fff;text-shadow:0 2px 8px #080511}
  .hero-person{position:absolute;z-index:2;top:auto;right:-38%;bottom:0;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center bottom;clip-path:none;mask-image:none;filter:saturate(1.16) contrast(1.05) drop-shadow(0 5px 15px #080511d9);opacity:1;pointer-events:none}
  .actions{position:relative;z-index:5;display:flex;flex-wrap:nowrap;gap:8px;margin-top:25px;width:min(530px,calc(100vw - 34px))}
  .actions .button{min-height:58px;flex:1 1 0;padding:10px 8px;border-radius:16px;font-size:clamp(13px,3.75vw,17px);line-height:1.05;text-align:center;white-space:nowrap;box-shadow:0 6px 15px #0008,0 0 15px #dc3dff4d}
  .actions .button.gold{border:2px solid #ffdb37;background:linear-gradient(180deg,#ffdf20,#ffb900);color:#100a13}
  .actions .media-button{border:2px solid #e544ff;background:linear-gradient(130deg,#240c34eF,#090611f5);color:#fff}
  .actions .media-button span{color:#ff47ff}
  .stats{position:relative;z-index:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 15px 21px;background:linear-gradient(135deg,#100719,#0b0712 50%,#190923);border:0;border-bottom:2px solid #dc40ff;box-shadow:0 8px 30px #8e23bc24}
  .stats .stat{min-width:0;min-height:112px;padding:12px 10px;display:flex;align-items:center;gap:9px;border:1.5px solid #d936ff!important;border-radius:20px;background:linear-gradient(145deg,#241035,#100a19 72%);box-shadow:inset 0 0 18px #b42be72b,0 0 10px #cd35f744}
  .stats .stat:nth-child(odd),.stats .stat:nth-child(even){border-right:1.5px solid #d936ff!important}
  .stats .stat:nth-child(n+5){display:none}
  .stats .stat em{display:grid;place-items:center;flex:none;width:42px;height:42px;margin:0;border-radius:50%;font-size:28px;line-height:1;color:#ffd21a;text-shadow:0 0 12px currentColor}
  .stats .stat .facebook-icon{background:#147ce6;color:#fff!important;font-size:32px!important}
  .stats .stat .tiktok-icon{font-size:34px!important;color:#fff!important;text-shadow:2px 2px #fc315f,-2px -1px #15e9ef!important}
  .stats .stat .youtube-icon{width:44px;height:33px;border-radius:10px;background:#f00028;color:white!important;font-size:20px!important}
  .stats .stat strong{display:block;font-size:clamp(15px,4.4vw,21px);font-weight:900;line-height:1.05;overflow-wrap:anywhere}
  .stats .stat p{margin:6px 0 0;font-size:clamp(11px,3.15vw,14px);line-height:1.25;color:#f0e9f6}
  .section{padding:25px 16px 28px}
  .why-section{background:linear-gradient(180deg,#11091a,#0b0712 88%);border-bottom:2px solid #d43cff}
  .why-section .split{display:block;max-width:none}
  .why-section .pair-photo{display:none}
  .section-head{max-width:none;margin:0 0 18px;text-align:left}
  .section-head h2,.opportunities-intro h2{margin:0;color:#fff;font-size:clamp(30px,8.5vw,40px);line-height:.97;letter-spacing:-.055em;text-transform:none}
  .section-head h2:after,.opportunities-intro h2:after{content:"";display:block;width:46%;max-width:175px;height:5px;margin:11px 0 0;border-radius:9px;background:linear-gradient(90deg,#ffdc00,#d630ff);box-shadow:0 0 11px #e72cff8a}
  .why-section .section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .why-section .section-head h2{max-width:75%}
  .learn-more,.see-all-deals{flex:none;border:1px solid #db37ff;border-radius:999px;padding:10px 12px;background:linear-gradient(120deg,#250d37,#100817);font-weight:800;font-size:12px;white-space:nowrap;box-shadow:0 0 12px #bd2ce83a}
  .home-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .home-feature{min-width:0;min-height:170px;padding:13px 10px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;text-align:center;border:1.5px solid #da3eff;border-radius:21px;background:linear-gradient(150deg,#261038,#12091b 75%);box-shadow:inset 0 0 18px #aa2cdb2b,0 0 11px #bd25e83b}
  .home-feature>span{font-size:34px;line-height:1.1;filter:drop-shadow(0 3px 5px #0008)}
  .home-feature h3{margin:3px 0 0;font-size:clamp(15px,4.1vw,19px);line-height:1.03;font-weight:900;letter-spacing:-.025em}
  .home-feature p{margin:2px 0 0;color:#f2ebf7;font-size:clamp(11px,3.3vw,14px);line-height:1.29}
  .opportunities{padding:22px 14px 25px;background:linear-gradient(110deg,#1a0b25,#0c0713 55%,#180923);border-top:0;border-bottom:2px solid #d43cff}
  .opportunities-inner{display:block;max-width:none}
  .opportunities-intro{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 3px 15px}
  .opportunities-intro h2{max-width:71%;font-size:clamp(29px,8.1vw,38px)}
  .opportunities-intro p{display:none}
  .opportunities-intro h2:after{width:56%}
  .see-all-deals{font-size:12px;padding:10px 12px}
  .opportunity-track{display:flex;gap:13px;margin:0 -14px;padding:3px 14px 13px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .opportunity-track::-webkit-scrollbar{display:none}
  .opportunity-card{position:relative;flex:0 0 clamp(156px,49vw,195px);min-height:154px;padding:15px 11px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;text-align:center;border:1.5px solid #dd40ff;border-radius:22px;background:linear-gradient(150deg,#29103d,#100817 80%);box-shadow:inset 0 0 18px #bd30e933,0 0 11px #ca36f44a;scroll-snap-align:center}
  .opportunity-card>span{width:auto;height:auto;flex:none;font-size:39px;line-height:1.05;filter:drop-shadow(0 4px 4px #0009)}
  .opportunity-card h3{margin:3px 0 0;font-size:clamp(16px,4.4vw,20px);line-height:1.02;font-weight:900;letter-spacing:-.02em}
  .opportunity-card p{display:none}
  .opportunity-hit-area{position:absolute;inset:0;z-index:2;border-radius:inherit}
  .opportunity-hit-area:focus-visible{outline:3px solid #ffd21a;outline-offset:3px}
  .carousel-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 auto 1px}
  .carousel-arrow{width:43px;height:43px;display:grid;place-items:center;border:1px solid #d937ff;border-radius:50%;background:#1a0b28;color:#fff;font-size:32px;line-height:1;box-shadow:0 0 12px #c431ec55;cursor:pointer}
  .carousel-dots{display:flex;align-items:center;justify-content:center;gap:9px}
  .carousel-dot{width:15px;height:15px;padding:0;border:0;border-radius:50%;background:#514a59;box-shadow:inset 0 2px 4px #0008;cursor:pointer}
  .carousel-dot.is-current{background:#ffd000;box-shadow:0 0 10px #ffd00099}
  .cta{position:relative;isolation:isolate;margin:20px 14px 22px;padding:21px 15px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:176px;text-align:center;border:3px solid #d934ff;border-radius:24px;background:linear-gradient(115deg,#ffca00,#ffdf1e 45%,#ffbd00);color:#080611;box-shadow:0 0 20px #c52aff60}
  .cta::before,.cta::after{content:"";position:absolute;inset:0 auto 0 0;z-index:-1;width:24px;border-radius:20px 0 0 20px;background:repeating-conic-gradient(#080611 0% 25%,#fff 0% 50%) 0 0/20px 20px}
  .cta::after{inset:0 0 0 auto;border-radius:0 20px 20px 0}
  .cta h2{max-width:100%;margin:0;font-family:Inter,Arial,sans-serif;font-size:clamp(22px,6.4vw,31px);font-weight:1000;font-style:italic;line-height:1.03;letter-spacing:-.04em;text-transform:uppercase;color:#090611}
  .cta p{max-width:95%;margin:0;font-size:clamp(13px,3.8vw,17px);font-weight:700;line-height:1.25;color:#100b13}
  .cta .button{position:relative;z-index:1;min-height:52px;max-width:calc(100% - 24px);margin-top:4px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #e544ff;border-radius:999px;background:linear-gradient(110deg,#7905b2,#21082f 55%,#7404a5);color:#fff;font-size:clamp(14px,4vw,18px);line-height:1.05;white-space:normal;box-shadow:0 5px 12px #67249a77,0 0 15px #ce23ff7a}
  footer{padding:22px 18px 20px}
  .mobile-bottom-nav{position:fixed;inset:auto 12px calc(8px + env(safe-area-inset-bottom));top:auto;z-index:50;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:1fr;gap:3px;min-height:82px;height:82px;padding:8px 9px;border:2px solid #d938ff;border-radius:999px;background:linear-gradient(145deg,rgba(22,11,32,.97),rgba(8,6,14,.98));box-shadow:0 0 18px #cb2dff66,inset 0 0 15px #74139a33;backdrop-filter:blur(16px)}
  .mobile-tab{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:17px;color:#f7f3fa;font-size:clamp(11px,3.2vw,14px);font-weight:700;line-height:1.05;text-align:center;text-decoration:none;transition:background .18s ease,color .18s ease,transform .18s ease}
  .mobile-tab svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .mobile-tab[data-tab="home"] svg{fill:currentColor;stroke:currentColor}
  .mobile-tab.is-active{color:#ffd21a;background:linear-gradient(140deg,#8b10bb,#3d0c5a);box-shadow:inset 0 0 14px #e243ff52,0 0 10px #d535ff50}
  .mobile-tab:active{transform:scale(.96)}
  .mobile-tab:focus-visible,.mobile-notification:focus-visible,.carousel-arrow:focus-visible,.carousel-dot:focus-visible,.see-all-deals:focus-visible,.learn-more:focus-visible{outline:3px solid #ffdc25;outline-offset:2px}
  .mobile-more-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:min(82dvh,680px);margin:0;padding:17px 20px calc(25px + env(safe-area-inset-bottom));border:1px solid #e044ff;border-bottom:0;border-radius:28px 28px 0 0;background:linear-gradient(155deg,#241034,#0c0713 75%);color:#fff;box-shadow:0 -12px 48px #000b,0 0 26px #be27e93b;overflow:auto}
  .mobile-more-sheet[open]{display:block;animation:smj-sheet-up .2s ease-out}
  .mobile-more-sheet::backdrop{background:#05020bb8;backdrop-filter:blur(4px)}
  .sheet-grab{width:40px;height:4px;margin:0 auto 17px;border-radius:10px;background:#755c81}
  .mobile-more-sheet .eyebrow{display:block;margin-bottom:5px}
  .mobile-more-sheet h2,.notification-panel h2{margin:0 0 18px;font-size:32px;text-transform:none}
  .mobile-more-sheet .dialog-close,.notification-panel .dialog-close{top:17px;right:18px;width:39px;height:39px;display:grid;place-items:center;border:1px solid #cb35f4;border-radius:50%;background:#170a23;color:#fff;font-size:27px}
  .more-links{display:grid;gap:9px}
  .more-links>a{min-height:64px;padding:10px 12px;display:grid;grid-template-columns:36px 1fr 18px;align-items:center;gap:9px;border:1px solid #8f3cae88;border-radius:15px;background:linear-gradient(120deg,#1c0d29,#100918);text-decoration:none}
  .more-links>a>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#311144;color:#ffd21a;font-size:19px}
  .more-links>a strong,.more-links>a small{display:block}
  .more-links>a strong{font-size:15px}
  .more-links>a small{margin-top:3px;color:#c7bdce;font-size:12px}
  .more-links>a>b{font-size:23px;color:#e844ff}
  .install-app-mobile{width:100%;margin-top:4px}
  .notification-panel{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(390px,calc(100vw - 32px));margin:0;padding:28px 23px 24px;border:1px solid #dc3cff;border-radius:22px;background:linear-gradient(150deg,#241034,#0b0712);color:#fff;box-shadow:0 16px 60px #000b,0 0 28px #c632ff45}
  .notification-panel[open]{display:block}
  .notification-panel::backdrop{background:#05020bc4;backdrop-filter:blur(5px)}
  .notification-panel h2{margin-top:7px}
  .notification-empty{margin:0;padding:18px 14px;border:1px solid #8d39a688;border-radius:15px;background:#160b21;color:#ddd2e4;line-height:1.45}
  .page-hero{padding:38px 19px 28px;background:linear-gradient(120deg,#180922,#0a0612 72%,#241033);border-bottom:2px solid #cb35f4}
  .page-hero h1{font-size:clamp(40px,11vw,55px);line-height:.93;text-transform:none}
  .page-hero .lead{font-size:15px;line-height:1.4}
  .page-body{padding:23px 16px 35px}
  .content-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tile{min-width:0;padding:14px 11px;border:1px solid #c635f4;border-radius:17px;background:linear-gradient(150deg,#21102f,#100817);box-shadow:inset 0 0 15px #b126db22,0 0 9px #bb25ed2c}
  .tile strong{font-size:39px}
  .tile p{font-size:12px;line-height:1.35}
  .form-layout{gap:18px}
  .form{padding:17px 14px;border-radius:19px}
  .fields{grid-template-columns:1fr;gap:12px}
  .field.full{grid-column:auto}
  .field input,.field select,.field textarea{font-size:16px}
  .field textarea{min-height:116px}
  .photo-pair{grid-template-columns:1fr}
  .photo-pair img{height:220px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cards .card{padding:14px 11px;border-color:#d33fff;border-radius:17px}
  .cards .card h3{font-size:16px;line-height:1.05}
  .cards .card p{font-size:12px;line-height:1.35}
  .draft{font-size:11px;line-height:1.4}
  .install-dialog{z-index:80}
}

@media (max-width: 360px){
  .topbar{padding-left:13px;padding-right:13px}
  .mobile-brand img{width:54px;height:54px}
  .mobile-notification{width:51px;height:51px}
  .hero{padding-left:15px;padding-right:15px}
  .hero-copy{width:min(100%,290px)}
  .hero-person{right:-42%;width:95%;height:98%}
  .actions{width:calc(100vw - 30px)}
  .actions .button{min-width:0;font-size:11px;padding-inline:3px}
  .stats{padding-inline:10px;gap:8px}
  .stats .stat{min-height:105px;padding:9px 7px;gap:6px}
  .stats .stat em{width:35px;height:35px;font-size:23px}
  .stats .stat strong{font-size:14px}
  .home-feature{min-height:166px;padding-inline:8px}
  .cta{margin-inline:10px;padding-inline:10px}
  .mobile-bottom-nav{left:8px;right:8px;padding-inline:6px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}

/* In the installed PWA, dock the navigation to the screen edge while keeping
   its controls clear of the iPhone home-indicator area. */
@media (display-mode: standalone){
  .mobile-bottom-nav{
    bottom:0;
    height:calc(34px + env(safe-area-inset-bottom));
    min-height:calc(34px + env(safe-area-inset-bottom));
    padding-bottom:10px;
    grid-auto-rows:58px;
    align-content:end;
    border-radius:24px 24px 0 0;
  }
}

@keyframes smj-sheet-up{from{transform:translateY(30px);opacity:.75}to{transform:translateY(0);opacity:1}}
